e71b87d07b7c4aa2ab1192f9d30f3d8e9be42a38
[gnulib.git] / ChangeLog
1 2008-06-02  Bruno Haible  <bruno@clisp.org>
2
3         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4         it exists.
5
6 2008-06-02  Bruno Haible  <bruno@clisp.org>
7
8         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
9         * lib/copy-acl.c (qcopy_acl): Update comment.
10
11 2008-06-02  Bruno Haible  <bruno@clisp.org>
12
13         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
14         like ACL APIs.
15
16 2008-06-02  Bruno Haible  <bruno@clisp.org>
17
18         * tests/test-file-has-acl.sh: Use different code for Cygwin.
19         * tests/test-set-mode-acl.sh: Likewise.
20         * tests/test-copy-acl.sh: Likewise.
21         * tests/test-copy-file.sh: Likewise.
22
23 2008-06-02  Bruno Haible  <bruno@clisp.org>
24
25         * tests/test-file-has-acl.sh: Remove unused code.
26
27 2008-06-01  Bruno Haible  <bruno@clisp.org>
28
29         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31         messages.
32         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33
34 2008-06-01  Bruno Haible  <bruno@clisp.org>
35
36         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39         APIs.
40         * modules/acl-tests (configure.ac): Remove tests now contained in
41         m4/acl.m4.
42
43 2008-06-02  Jim Meyering  <meyering@redhat.com>
44
45         announce-gen: use a better key-server host name
46         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47         it may be more consistently reliable.  Suggested by Werner Koch
48         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49
50 2008-06-01  Bruno Haible  <bruno@clisp.org>
51
52         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54
55 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56
57         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58
59 2008-06-01  Bruno Haible  <bruno@clisp.org>
60
61         New ACL tests.
62         * tests/test-file-has-acl.sh: New file.
63         * tests/test-file-has-acl.c: New file.
64         * tests/test-set-mode-acl.sh: New file.
65         * tests/test-set-mode-acl.c: New file.
66         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
67         * tests/test-copy-acl.c: New file.
68         * modules/acl-tests: New file, based on modules/copy-file-tests.
69         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
70         (Depends-on): Add acl-tests.
71         (configure.ac): Remove checks.
72         (Makefile.am): Don't create test-sameacls program here any more.
73
74 2008-06-01  Bruno Haible  <bruno@clisp.org>
75
76         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
77         * tests/test-sameacls.c: Include progname.h.
78         (main): Invoke set_program_name. Portability fixes for MacOS X,
79         Solaris, HP-UX.
80
81 2008-06-01  Bruno Haible  <bruno@clisp.org>
82
83         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
84         function.
85         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
86
87 2008-06-01  Bruno Haible  <bruno@clisp.org>
88
89         * modules/rpmatch (Depends-on): Add strdup.
90
91 2008-06-01  Bruno Haible  <bruno@clisp.org>
92
93         * lib/pipe.c: Include unistd-safer.h.
94         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
95         * modules/pipe (Depends-on): Add unistd-safer.
96
97 2008-05-30  Simon Josefsson  <simon@josefsson.org>
98
99         * modules/autobuild (configure.ac): Call AB_INIT.
100
101 2008-05-30  Simon Josefsson  <simon@josefsson.org>
102
103         * tests/test-getaddrinfo.c: Don't print debug messages by default.
104         Suggested by Bruno Haible <bruno@clisp.org>.
105
106 2008-05-30  Simon Josefsson  <simon@josefsson.org>
107
108         * tests/test-base64.c: Cast size_t to unsigned long when invoking
109         printf.  Use %lu instead of %d.  Reported by Bruno Haible
110         <bruno@clisp.org>.
111
112 2008-05-29  Eric Blake  <ebb9@byu.net>
113
114         Prefer new POSIX 200x interfaces over futimesat.
115         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
116         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
117         when available.
118         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
119
120 2008-05-28  Bruno Haible  <bruno@clisp.org>
121
122         * modules/stpcpy (License): Change to LGPLv2+.
123         Requested by David Lutterkort <dlutter@redhat.com>.
124
125 2008-05-27  Bruno Haible  <bruno@clisp.org>
126
127         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
128         current mingw.
129         Reported by Jose E. Marchesi <jemarch@gnu.org>.
130
131 2008-05-27  Bruno Haible  <bruno@clisp.org>
132
133         * modules/iconv_open (Link): New section, from module 'iconv'.
134         * modules/striconv (Link): Likewise.
135         * modules/striconveh (Link): Likewise.
136         * modules/xstriconv (Link): Likewise.
137         * modules/unicodeio (Link): Likewise.
138         * modules/propername (Link): Likewise.
139         Reported by Jim Meyering.
140
141 2008-05-26  Jim Meyering  <meyering@redhat.com>
142
143         sha256: do not artificially restrict buffer length to be < 2^32
144         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
145         uint32_t to size_t.
146         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
147         to match.
148
149         avoid unaligned access errors, e.g., on sparc
150         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
151         direct access through a possibly-unaligned uint64* pointer.
152         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
153         direct access through a possibly-unaligned uint32* pointer.
154         Prompted by this patch from Tom "spot" Callaway:
155         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
156
157         sha512.c: fix typo in comment
158         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
159
160 2008-05-25  Bruno Haible  <bruno@clisp.org>
161
162         * lib/set-mode-acl.c: Renamed from lib/acl.c.
163         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
164         (Makefile.am): Update lib_SOURCES.
165
166 2008-05-25  Bruno Haible  <bruno@clisp.org>
167
168         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
169
170 2008-05-25  Jim Meyering  <meyering@redhat.com>
171
172         useless-if-before-free: freed expr may have white-space differences
173         * build-aux/useless-if-before-free: Recognize cases in which the
174         freed expression differs from the tested one in embedded white
175         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
176         $1 was used, so we can't make any regexp shy.  Improved tests now
177         detect this.
178
179         useless-if-before-free: accept white space in the expression.
180         * build-aux/useless-if-before-free: For now, any white space
181         in the expression must be identical in the free argument.
182
183         useless-if-before-free: efficiency tweak
184         * build-aux/useless-if-before-free: Make the expression-matching
185         regexp "shy".
186         Make the *outer* regexp shy, not the expr-matching one.
187
188         update code-in-comment to accept cast of free arg
189         * build-aux/useless-if-before-free: Update regexp.
190
191 2008-05-25  Bruno Haible  <bruno@clisp.org>
192
193         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
194         * modules/copy-file-tests (Files, Makefile.am): Update.
195         * tests/test-copy-file.c (func_test_copy): Update.
196
197 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
198
199         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
200
201 2008-05-23  Bruno Haible  <bruno@clisp.org>
202
203         Improve support for ACLs on OSF/1.
204         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
205         Remove fallback for unknown flavors of ACLs.
206
207 2008-05-22  Bruno Haible  <bruno@clisp.org>
208
209         Add support for ACLs on OSF/1.
210         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
211         replacements.
212         (acl_free_text): New macro fallback.
213         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
214         acl_free.
215         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
216         acl_free_text function. Require AC_C_INLINE.
217
218 2008-05-22  Bruno Haible  <bruno@clisp.org>
219
220         Make copy_acl work on MacOS X 10.5.
221         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
222         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
223         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
224         If MODE_INSIDE_ACL, don't assume that every system has the same text
225         representation for ACLs as FreeBSD.
226         * lib/copy-acl.c (copy_acl): Add support for platforms with
227         !MODE_INSIDE_ACL.
228         * lib/file-has-acl.c (file_has_acl): Likewise.
229         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
230         FreeBSD, MacOS X, or IRIX, respectively.
231
232 2008-05-22  Bruno Haible  <bruno@clisp.org>
233
234         * lib/acl.h: Don't include <sys/acl.h>.
235         (GETACLCNT): Move fallback to lib/acl-internal.h.
236         * lib/acl-internal.h: Include <sys/acl.h> here.
237         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
238
239 2008-05-22  Bruno Haible  <bruno@clisp.org>
240
241         Split off copy_acl function to separate file.
242         * lib/copy-acl.c: New file, extracted from lib/acl.c.
243         * lib/acl.c (copy_acl): Moved function to separate file.
244         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
245         * modules/acl (Files): Add lib/copy-acl.c.
246         (Makefiles.am): Augment lib_SOURCES.
247
248 2008-05-22  Bruno Haible  <bruno@clisp.org>
249
250         * modules/copy-file-tests: New file.
251         * tests/test-copy-file.sh: New file.
252         * tests/test-copy-file.c: New file.
253         * tests/test-copy-file-sameacls.c: New file.
254
255 2008-05-22  Eric Blake  <ebb9@byu.net>
256
257         Avoid gcc warning.
258         * tests/test-memcmp.c (main): Pass NULL indirectly.
259
260 2008-05-21  Bruno Haible  <bruno@clisp.org>
261
262         Add reference doc about ACLs.
263         * doc/acl-resources.txt: New file.
264         * doc/acl-cygwin.txt: New file.
265
266 2008-05-21  Bruno Haible  <bruno@clisp.org>
267
268         Avoid one more warning from gcc.
269         * lib/vasnprintf.c (IF_LINT): Update comments.
270         (VASNPRINTF): Use it also for the 'prefix' array initializer.
271
272 2008-05-21  Jim Meyering  <meyering@redhat.com>
273
274         avoid a warning from gcc
275         * lib/vasnprintf.c (IF_LINT): Define.
276         (scale10_round_decimal_long_double):
277         Use it to avoid a "may be used uninitialized" warning.
278         (scale10_round_decimal_double): Likewise.
279
280 2008-05-21  Simon Josefsson  <simon@josefsson.org>
281
282         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
283         declared.
284
285 2008-05-20  Bruno Haible  <bruno@clisp.org>
286
287         * tests/test-memcmp.c (main): Test also the sign of the result. Test
288         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
289
290 2008-05-20  Simon Josefsson  <simon@josefsson.org>
291
292         * modules/memcmp-tests: New file.
293         * tests/test-memcmp.c: New file.
294
295 2008-05-19  Bruno Haible  <bruno@clisp.org>
296
297         * modules/propername (Notice, configure.ac): Put quoted "..." into
298         --keyword option.
299         * lib/propername.h: Update comments accordingly.
300         Reported by Eric Blake.
301
302 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
303
304         * modules/getpass-gnu (Depends-on): Add fseeko.
305
306 2008-05-19  Simon Josefsson  <simon@josefsson.org>
307
308         * modules/base64-tests: New file.
309
310 2008-05-19  Bo Borgerson <gigabo@gmail.com>
311
312         * lib/base64.c (base64_decode_ctx): If a decode context structure
313         was passed in use it to ignore newlines.  If a context structure
314         was _not_ passed in, continue to treat newlines as garbage (this
315         is the historical behavior).  Formerly base64_decode.
316         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
317         takes a decode context structure.
318         * lib/base64.h (base64_decode): Macro for four-argument calls.
319         (base64_decode_alloc): Likewise.
320         * lib/base64.c (base64_decode_ctx): If a decode context structure
321         was passed in use it to ignore newlines.  If a context structure
322         was _not_ passed in, continue to treat newlines as garbage (this
323         is the historical behavior).  Formerly base64_decode.
324         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
325         takes a decode context structure.
326         * lib/base64.h (base64_decode): Macro for four-argument calls.
327         (base64_decode_alloc): Likewise.
328
329 2008-05-19  Jim Meyering  <meyering@redhat.com>
330
331         avoid a warning from gcc
332         * lib/trim.c (IF_LINT): Define.
333         (trim2): Use it to avoid a "may be used uninitialized" warning.
334
335         Fix doc typo.
336         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
337
338 2008-05-19  Bruno Haible  <bruno@clisp.org>
339
340         * doc/glibc-functions/getpass.texi: Document limits of other
341         implementations.
342
343 2008-05-19  Simon Josefsson  <simon@josefsson.org>
344             Bruno Haible <bruno@clisp.org>
345
346         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
347
348 2008-05-18  Bruno Haible  <bruno@clisp.org>
349
350         * modules/propername: New file, from GNU gettext.
351         * lib/propername.h: New file, from GNU gettext.
352         * lib/propername.c: New file, from GNU gettext.
353         * MODULES.html.sh (Internationalization functions): Add propername.
354
355 2008-05-16  Jim Meyering  <meyering@redhat.com>
356             Bruno Haible  <bruno@clisp.org>
357
358         Avoid some warnings from "gcc -Wshadow".
359         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
360
361 2008-05-15  Eric Blake  <ebb9@byu.net>
362
363         Extend previous patch to cygwin 1.7.0.
364         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
365         fast implementation in cygwin >= 1.7.0.
366         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
367         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
368
369 2008-05-15  Bruno Haible  <bruno@clisp.org>
370
371         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
372         implementation in glibc >= 2.9.
373         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
375
376 2008-05-15  Bruno Haible  <bruno@clisp.org>
377
378         * MODULES.html.sh (Internationalization functions): Remove linebreak.
379         (Unicode string functions): Add unilbrk/*.
380         Reported by Karl Berry.
381
382 2008-05-15  Eric Blake  <ebb9@byu.net>
383
384         Fix violation of <stdbool.h> replacement in regex.
385         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
386         * lib/regexec.c (re_search_internal): Likewise.
387         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
388
389 2008-05-15  Jim Meyering  <meyering@redhat.com>
390
391         avoid distracting test output when git or cvs is not found
392         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
393         * tests/test-vc-list-files-git.sh: Likewise.
394
395 2008-05-15  Eric Blake  <ebb9@byu.net>
396
397         Glibc finally accepted the memmem speedup code, bugzilla #5514.
398         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
399         glibc version.
400         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
401         * doc/posix-functions/strstr.texi (strstr): Likewise.
402         * lib/str-two-way.h (MAX): Sychronize with glibc.
403
404 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
405
406         * lib/regcomp.c (optimize_utf8): Add a note on why we test
407         opr.ctx_type.
408         (calc_first): Initialize constraint field.
409         (duplicate_node_closure): Use it instead of special casing ANCHORS.
410         Fix grammar.
411         (duplicate_node): Merge constraint field for all node types.
412         (calc_eclosure_iter): Look at constraint field for all node types.
413         * lib/regex_internal.c (create_cd_newstate): Don't look at
414         opr.ctx_type.
415
416 2008-05-14  Bruno Haible  <bruno@clisp.org>
417
418         Help GCC to do better code generation.
419         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
420         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
421         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
422         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
423         Declare with attribute 'malloc' if supported.
424
425 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
426
427         use "echo STR|wc -c" rather than unportable "expr length STR"
428         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
429         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
430
431 2008-05-14  Jim Meyering  <meyering@redhat.com>
432
433         use dd ibs=$n count=1 ... rather than less-portable head -c$n
434         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
435         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
436         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
437         via Collin Lasse.
438
439 2008-05-14  Eric Blake  <ebb9@byu.net>
440
441         Avoid quadratic growth in gl_LIBSOURCES.
442         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
443         Suggested by Bruno Haible.
444
445         Test xmemdup0.
446         * modules/xmemdup0-tests: New file.
447         * tests/test-xmemdup0.c: Likewise.
448
449 2008-05-13  Eric Blake  <ebb9@byu.net>
450
451         Split xmemdup0 into its own module.
452         * modules/xmemdup0: New file.
453         * lib/xmemdup0.h: Likewise.
454         * lib/xmemdup0.c: Likewise.
455         * MODULES.html.sh (Memory management functions): Add xmemdup0.
456         * lib/xalloc.h (xmemdup0): Remove.
457         * lib/xmalloc.c (xmemdup0): Likewise.
458
459 2008-05-13  Eric Blake  <ebb9@byu.net>
460             Bruno Haible  <bruno@clisp.org>
461
462         Reduce number of forks required during autoconf.
463         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
464         and gl_LIBSOURCES_DIR.
465         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
466         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
467         m4_syscmd per file.
468         <m4_foreach_w>: Move...
469         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
470
471 2008-05-13  Eric Blake  <ebb9@byu.net>
472
473         * gnulib-tool: Fix various comment typos.
474
475 2008-05-12  Bruno Haible  <bruno@clisp.org>
476
477         Tailor the linebreaking algorithm.
478         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
479
480 2008-05-12  Bruno Haible  <bruno@clisp.org>
481
482         Update to Unicode 5.0.0.
483         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
484         LBP_JV, LBP_JT. Redistribute values.
485         (unilbrk_table): Change size.
486         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
487         Unicode TR#14 rev. 22.
488         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
489         LBP_JV, LBP_JT. Redistribute values.
490         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
491         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
492         Update.
493         * lib/unilbrk/lbrkprop1.h: Regenerated.
494         * lib/unilbrk/lbrkprop2.h: Regenerated.
495         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
496         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
497         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
498         Likewise.
499         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
500         Likewise.
501         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
502         result.
503         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
504         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
505         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
506         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
507         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
508         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
509
510 2008-05-11  Bruno Haible  <bruno@clisp.org>
511
512         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
513
514 2008-05-11  Bruno Haible  <bruno@clisp.org>
515
516         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
517         * modules/unilbrk/gen-lbrk: New file.
518
519 2008-05-11  Bruno Haible  <bruno@clisp.org>
520
521         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
522         * m4/sha512.m4 (gl_SHA512): Likewise.
523
524 2008-05-11  Jim Meyering  <meyering@redhat.com>
525
526         New modules: crypto/sha256, crypto/sha512 (from coreutils)
527         * modules/crypto/sha256: New file.
528         * modules/crypto/sha512: Likewise.
529         * lib/sha256.c: Likewise.
530         * lib/sha256.h: Likewise.
531         * lib/sha512.c: Likewise.
532         * lib/sha512.h: Likewise.
533         * lib/u64.h: Likewise.
534         * m4/sha256.m4: Likewise.
535         * m4/sha512.m4: Likewise.
536         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
537
538 2008-05-10  Bruno Haible  <bruno@clisp.org>
539
540         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
541         (Input/Output <stdio.h>): Add xprintf.
542         (Signal handling <signal.h>): Add strsignal.
543         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
544         (Core language properties): Add func.
545         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
546         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
547         strings.
548         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
549         (Input/output): New section.
550         (File system functions): Add openat-die, stat-macros.
551         (Networking functions): Add sockets.
552         (Unicode string functions): Add unictype/*.
553         (Support for building libraries and executables): Add gperf.
554         (Support for building documentation): Add agpl-3.0.
555         (Misc): Add nocrash.
556
557 2008-05-10  Bruno Haible  <bruno@clisp.org>
558
559         * modules/unictype/gen-ctype: New file.
560
561 2008-05-10  Jim Meyering  <meyering@redhat.com>
562
563         Make chdir-safer.c more efficient on a system with no symlinks.
564         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
565         also if ELOOP is zero.  Suggested by Bruno Haible.
566
567         Make chdir-safer.c slightly safer.
568         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
569         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
570
571         Avoid compile failure on systems without ELOOP (like mingw).
572         * lib/chdir-safer.c (ELOOP): Define if not already defined.
573         Reported by Bruno Haible.
574
575 2008-05-10  Bruno Haible  <bruno@clisp.org>
576
577         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
578         (is_utf8_encoding): Use a case-insensitive comparison.
579         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
580         streq.
581
582 2008-05-10  Bruno Haible  <bruno@clisp.org>
583
584         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
585         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
586         * lib/unilbrk/ulc-common.h (iconv_string_length,
587         iconv_string_keeping_offsets): Remove declarations.
588         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
589         Don't include <iconv.h>, streq.h, xsize.h.
590         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
591         conversion.
592         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
593         <iconv.h>, streq.h, xsize.h.
594         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
595         conversion.
596         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
597         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
598         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
599         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
600
601 2008-05-10  Bruno Haible  <bruno@clisp.org>
602
603         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
604         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
605
606         * modules/unilbrk/u32-width-linebreaks-tests: New file.
607         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
608
609         * modules/unilbrk/u16-width-linebreaks-tests: New file.
610         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
611
612         * modules/unilbrk/u8-width-linebreaks-tests: New file.
613         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
614
615         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
616         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
617
618         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
619         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
620
621         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
622         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
623
624         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
625         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
626
627 2008-05-10  Bruno Haible  <bruno@clisp.org>
628
629         Split up 'linebreak' module.
630         * lib/unilbrk.h: New file, based on lib/linebreak.h.
631         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
632         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
633         modifications.
634         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
635         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
636         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
637         lib/linebreak.c.
638         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
639         lib/linebreak.c.
640         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
641         lib/linebreak.c.
642         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
643         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
644         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
645         lib/linebreak.c.
646         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
647         lib/linebreak.c.
648         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
649         lib/linebreak.c.
650         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
651         lib/linebreak.c.
652         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
653         lib/linebreak.c.
654         * modules/unilbrk/base: New file.
655         * modules/unilbrk/tables: New file.
656         * modules/unilbrk/u8-possible-linebreaks: New file.
657         * modules/unilbrk/u16-possible-linebreaks: New file.
658         * modules/unilbrk/u32-possible-linebreaks: New file.
659         * modules/unilbrk/ulc-common: New file.
660         * modules/unilbrk/ulc-possible-linebreaks: New file.
661         * modules/unilbrk/u8-width-linebreaks: New file.
662         * modules/unilbrk/u16-width-linebreaks: New file.
663         * modules/unilbrk/u32-width-linebreaks: New file.
664         * modules/unilbrk/ulc-width-linebreaks: New file.
665         * lib/linebreak.h: Remove file.
666         * lib/linebreak.c: Remove file.
667         * m4/linebreak.m4: Remove file.
668         * modules/linebreak: Remove file.
669         * NEWS: Mention the changes.
670
671 2008-05-09  Eric Blake  <ebb9@byu.net>
672
673         Add xmemdup0.
674         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
675         implementation.
676         * lib/xmalloc.c (xmemdup0): New C implementation.
677
678 2008-05-08  Bruno Haible  <bruno@clisp.org>
679
680         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
681
682 2008-05-07  Eric Blake  <ebb9@byu.net>
683
684         Support cross-compilation of <wctype.h>.
685         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
686         AC_CACHE_CHECK.
687
688 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
689
690         * build-aux/vc-list-files: Add support for bzr.
691
692 2008-05-03  Jim Meyering  <meyering@redhat.com>
693
694         avoid failed assertion with tight malloc
695         * tests/test-getndelim2.c: Correct an off-by-one assertion.
696
697 2008-05-03  Simon Josefsson  <simon@josefsson.org>
698
699         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
700         are needed from arpa/inet.h.
701         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
702         Reported by Bruno Haible.
703
704 2008-05-02  Jim Meyering  <meyering@redhat.com>
705
706         avoid compilation error on FreeBSD 6
707         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
708
709 2008-05-01  Jim Meyering  <meyering@redhat.com>
710
711         useless-if-before-free: correct --help's exit status description
712         * build-aux/useless-if-before-free (usage): Like grep, exit 0
713         for one or more matches, etc.  Reported by Bruno Haible.
714
715         vc-list-files: make the stand-alone gnulib test work
716         * modules/vc-list-files-tests (configure.ac):
717         Define and AC_SUBST abs_aux_dir.
718         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
719         $(abs_top_srcdir) to each script and having each of them
720         duplicate the work of setting PATH, set PATH here, using
721         the new variable, abs_aux_dir instead.
722         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
723         * tests/test-vc-list-files-git.sh: Likewise.
724         Reported by Bruno Haible.
725
726 2008-05-01  Bruno Haible  <bruno@clisp.org>
727
728         * lib/getndelim2.c (getndelim2): Fix newsize computation during
729         reallocation. Rename 'done' to 'found_delimiter'.
730
731 2008-05-01  Jim Meyering  <meyering@redhat.com>
732
733         vc-list-files: accommodate /bin/sh like the one from Solaris 10
734         * build-aux/vc-list-files: Use `...`, not $(...).
735
736 2008-04-30  Jim Meyering  <meyering@redhat.com>
737
738         add tests for vc-list-files
739         * modules/vc-list-files-tests: New module.
740         * tests/test-vc-list-files-cvs.sh: New file.
741         * tests/test-vc-list-files-git.sh: New file.
742
743         avoid a warning from gcc
744         * lib/getndelim2.c (IF_LINT): Define.
745         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
746
747         vc-list-files: work properly with build-aux/cvsu, too
748         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
749         to all cvs-based clauses.
750
751         vc-list-files: work properly in the CVS+awk case, too
752         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
753
754         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
755         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
756         take more than one file argument, so .  Add quotes, just in case $dir
757         ever contains a shell meta-character.  Prompted by Soren Hansen in
758         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
759
760 2008-04-29  Eric Blake  <ebb9@byu.net>
761
762         Optimize getndelim2 to use block operations when possible.
763         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
764         freadseek, and memchr2.
765         * lib/getndelim2.c (getndelim2): Use them for block reads.
766
767 2008-04-29  Bruno Haible  <bruno@clisp.org>
768
769         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
770         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
771         * modules/inet_ntop (Depends-on): Add extensions.
772         * modules/inet_pton (Depends-on): Likewise.
773         Reported by Simon Josefsson.
774
775 2008-04-29  Jim Meyering  <meyering@redhat.com>
776
777         When the is more than one match in a block, match all of them.
778         * build-aux/useless-if-before-free: Iterate through each block
779         until there are no more matches.
780
781         Fix broken useless-if-before-free script.
782         * build-aux/useless-if-before-free: Fix typo: missing "?" after
783         the expression to match cast of argument to free-like function.
784
785 2008-04-29  Eric Blake  <ebb9@byu.net>
786
787         Use new header.
788         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
789
790 2008-04-29  Jim Meyering  <meyering@redhat.com>
791
792         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
793         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
794         by gnulib to exist and to declare e.g., inet_ntop.
795         Don't include "inet_ntop.h", now removed.
796
797         * m4/arpa_inet_h.m4: Remove trailing blanks.
798
799 2008-04-29  Eric Blake  <ebb9@byu.net>
800
801         Silence valgrind on safe reads beyond potential array bounds.
802         * lib/rawmemchr.valgrind: New file.
803         * lib/strchrnul.valgrind: Likewise.
804         * modules/rawmemchr (Files): Distribute new file.
805         * modules/strchrnul (Files): Likewise.
806         Suggested by Bruno Haible.
807
808 2008-04-29  Bruno Haible  <bruno@clisp.org>
809
810         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
811         (inet_ntop, inet_pton): Change portability warning's wording.
812         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
813         Invoke gl_CHECK_NEXT_HEADERS.
814         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
815         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
816         set ARPA_INET_H.
817         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
818         * modules/arpa_inet (Description): No longer only for systems that
819         lack it.
820         (Depends-on): Add include_next.
821         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
822         HAVE_ARPA_INET_H.
823
824 2008-04-29  Jim Meyering  <meyering@redhat.com>
825
826         * modules/mkdir (License): Re-license as LGPLv2+.
827
828 2008-04-29  Bruno Haible  <bruno@clisp.org>
829
830         * modules/rawmemchr (Maintainer): Set to Eric.
831         * modules/strchrnul (Maintainer): Likewise.
832
833 2008-04-29  Simon Josefsson  <simon@josefsson.org>
834
835         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
836         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
837
838         * modules/arpa_inet (arpa/inet.h): Use them.
839
840 2008-04-28  Eric Blake  <ebb9@byu.net>
841
842         Test getndelim2.
843         * modules/getndelim2-tests: New file.
844         * tests/test-getndelim2.c: Likewise.
845         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
846         stream.
847         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
848
849         * MODULES.html.sh: Document new module.
850
851 2008-04-20  Bruno Haible  <bruno@clisp.org>
852
853         * lib/c-stack.c (die): Use raise.
854         * modules/c-stack (Depends-on): Add raise.
855
856 2008-04-28  Bruno Haible  <bruno@clisp.org>
857
858         Expect rpmatch to be declared.
859         * lib/yesno.c (rpmatch): Remove declaration.
860
861         Declare rpmatch.
862         * lib/stdlib.in.h (rpmatch): New declaration.
863         * lib/rpmatch.c: Include <stdlib.h> first.
864         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
865         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
867         HAVE_RPMATCH.
868         * modules/rpmatch (Depends-on): Add stdlib, extensions.
869         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
870         (Include): Set to <stdlib.h>.
871         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
872         HAVE_RPMATCH.
873         * NEWS: Document the change.
874
875 2008-04-28  Bruno Haible  <bruno@clisp.org>
876
877         Change rpmatch to use nl_langinfo when appropriate.
878         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
879         (N_): New macro.
880         (localized_pattern): New function/macro.
881         (try): Remove match, nomatch arguments. Copy the pattern into safe
882         memory before caching it.
883         (rpmatch): Use localized_pattern. Add translator comments.
884         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
885         Suggested by Eric Blake.
886         * modules/rpmatch (Depends-on): Add stdbool.
887
888 2008-04-28  Eric Blake  <ebb9@byu.net>
889
890         Add rawmemchr module, matching glibc.
891         * modules/string (Makefile.am): New indicator.
892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
893         * lib/string.in.h (rawmemchr): Declare when appropriate.
894         * modules/rawmemchr: New file.
895         * m4/rawmemchr.m4: Likewise.
896         * lib/rawmemchr.c: Likewise.
897         * modules/rawmemchr-tests: Likewise.
898         * tests/test-rawmemchr.c: Likewise.
899         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
900         module.
901         * modules/strchrnul (Depends-on): Add rawmemchr.
902         * lib/strchrnul.c (strchrnul): Optimize a corner case.
903
904         Whitespace cleanup.
905         * tests/test-strchrnul.c: Reindent.
906         * lib/strchrnul.c: Likewise.
907
908         Optimize and test strchrnul.
909         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
910         * modules/strchrnul-tests: New file.
911         * tests/test-strchrnul.c: Likewise.
912
913         Remove intprops dependency.
914         * modules/memchr (Depends-on): Remove intprops.
915         * modules/memrchr (Depends-on): Likewise.
916         * modules/memchr2 (Depends-on): Likewise.
917         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
918         * lib/memrchr.c (__memrchr): Likewise.
919         * lib/memrchr2.c (memchr2): Likewise.
920         Reported by Simon Josefsson.
921
922 2008-04-28  Simon Josefsson  <simon@josefsson.org>
923
924         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
925         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
926
927 2008-04-28  Simon Josefsson  <simon@josefsson.org>
928
929         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
930
931         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
932
933         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
934
935         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
936         declarations.
937         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
938
939         * m4/inet_pton.m4: Don't check for header files.
940
941         * m4/inet_ntop.m4: Don't check for header files.
942
943 2008-04-28  Simon Josefsson  <simon@josefsson.org>
944
945         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
946         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
947         trigger for cygwin).
948         Reported by Bruno Haible  <bruno@clisp.org>.
949
950 2008-04-28  Bruno Haible  <bruno@clisp.org>
951
952         * doc/posix-functions/strdup.texi: Mention mingw problem.
953
954 2008-04-27  Bruno Haible  <bruno@clisp.org>
955
956         * modules/stat-time-tests (Depends-on): Add sleep.
957         * tests/test-stat-time.c (force_unlink): New function.
958         (cleanup): Use it.
959         (test_mtime): Remove the ctime related tests.
960         (test_ctime): New function, containing the ctime related tests.
961         (main): Call test_ctime, except on native Windows platforms.
962
963 2008-04-27  Bruno Haible  <bruno@clisp.org>
964
965         * lib/rpmatch.c (rpmatch): Add some comments.
966         Reported by James Youngman <jay@gnu.org>.
967
968 2008-04-27  Bruno Haible  <bruno@clisp.org>
969
970         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
971         quiet NaNs.
972
973 2008-04-27  Bruno Haible  <bruno@clisp.org>
974
975         Make test-yesno.sh work on mingw.
976         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
977         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
978         (main): Set stdin to binary mode.
979         * modules/yesno-tests (Depends-on): Add binary-io.
980
981 2008-04-27  Bruno Haible  <bruno@clisp.org>
982
983         Fix 'isfinite' on x86, x86_64, ia64 platforms.
984         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
985         argument that lie outside the IEEE 854 domain.
986         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
987         (gl_ISFINITE): Use it.
988         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
989
990 2008-04-27  Bruno Haible  <bruno@clisp.org>
991
992         Allow local renaming in config.h.
993         * lib/memrchr.c (memrchr): Don't undefine outside libc.
994
995 2008-04-27  Bruno Haible  <bruno@clisp.org>
996
997         * lib/memchr.c (__memchr): Change type of 'i'.
998         * lib/memchr2.c (memchr2): Likewise.
999
1000 2008-04-26  Eric Blake  <ebb9@byu.net>
1001         and Bruno Haible  <bruno@clisp.org>
1002
1003         Optimize and test memrchr.
1004         * modules/memrchr (Depends-on): Add intprops.
1005         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
1006         * modules/memrchr-tests: New file.
1007         * tests/test-memrchr.c: New file.
1008
1009 2008-04-26  Bruno Haible  <bruno@clisp.org>
1010
1011         Add tentative support for DragonFly BSD.
1012         * lib/stdio-impl.h: Add macros for DragonFly BSD.
1013         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
1014         fp.
1015         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1016         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
1017         * lib/fpurge.c (fpurge): Likewise.
1018         * lib/freadable.c (freaadable): Likewise.
1019         * lib/freadahead.c (freadahead): Likewise.
1020         * lib/freading.c (freading): Likewise.
1021         * lib/freadptr.c (freadptr): Likewise.
1022         * lib/freadseek.c (freadptrinc): Likewise.
1023         * lib/fseeko.c (fseeko): Likewise.
1024         * lib/fseterr.c (fseterr): Likewise.
1025         * lib/fwritable.c (fwritable): Likewise.
1026         * lib/fwriting.c (fwriting): Likewise.
1027
1028 2008-04-26  Bruno Haible  <bruno@clisp.org>
1029
1030         * lib/stdio-impl.h: New file.
1031         * lib/fbufmode.c: Include stdio-impl.h.
1032         (fbufmode): Use fp_, remove redundant #defines.
1033         * lib/fflush.c: Include stdio-impl.h.
1034         (clear_ungetc_buffer): Remove redundant #defines.
1035         * lib/fpurge.c: Include stdio-impl.h.
1036         (fpurge): Remove redundant #defines.
1037         * lib/freadable.c: Include stdio-impl.h.
1038         (freadable): Remove redundant #defines.
1039         * lib/freadahead.c: Include stdio-impl.h.
1040         (freadahead): Remove redundant #defines.
1041         * lib/freading.c: Include stdio-impl.h.
1042         (freading): Remove redundant #defines.
1043         * lib/freadptr.c: Include stdio-impl.h.
1044         (freadptr): Remove redundant #defines.
1045         * lib/freadseek.c: Include stdio-impl.h.
1046         (freadptrinc): Remove redundant #defines.
1047         * lib/fseeko.c: Include stdio-impl.h.
1048         (rpl_fseeko): Remove redundant #defines.
1049         * lib/fseterr.c: Include stdio-impl.h.
1050         (fseterr): Remove redundant #defines.
1051         * lib/fwritable.c: Include stdio-impl.h.
1052         (fwritable: Remove redundant #defines.
1053         * lib/fwriting.c: Include stdio-impl.h.
1054         (fwriting): Remove redundant #defines.
1055         * modules/fbufmode (Files): Add lib/stdio-impl.h.
1056         * modules/fflush (Files): Likewise.
1057         * modules/fpurge (Files): Likewise.
1058         * modules/freadable (Files): Likewise.
1059         * modules/freadahead (Files): Likewise.
1060         * modules/freading (Files): Likewise.
1061         * modules/freadptr (Files): Likewise.
1062         * modules/freadseek (Files): Likewise.
1063         * modules/fseeko (Files): Likewise.
1064         * modules/fseterr (Files): Likewise.
1065         * modules/fwritable (Files): Likewise.
1066         * modules/fwriting (Files): Likewise.
1067
1068 2008-04-26  Bruno Haible  <bruno@clisp.org>
1069
1070         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1071         restore_seek_optimization, update_fpos_cache): New functions, extracted
1072         from rpl_fflush.
1073         (rpl_fflush): Use them.
1074         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
1075         (gl_REPLACE_FFLUSH): Use it.
1076
1077 2008-04-26  Bruno Haible  <bruno@clisp.org>
1078
1079         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
1080         on Solaris.
1081         * tests/test-xstrtoimax.sh: Likewise.
1082         * tests/test-xstrtoumax.sh: Likewise.
1083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1084
1085 2008-04-26  Bruno Haible  <bruno@clisp.org>
1086
1087         * modules/memchr-tests: New file.
1088         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
1089
1090 2008-04-26  Eric Blake  <ebb9@byu.net>
1091             Bruno Haible  <bruno@clisp.org>
1092
1093         * lib/memchr.c: Include intprops.h.
1094         (__memchr): Optimize parallel detection of matching bytes. Rename local
1095         variables. Add explanatory comments.
1096
1097 2008-04-26  Bruno Haible  <bruno@clisp.org>
1098
1099         Fix module 'memchr', broken since 2000-10-28.
1100         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
1101
1102 2008-04-26  Bruno Haible  <bruno@clisp.org>
1103
1104         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
1105         comments.
1106
1107 2008-04-25  Eric Blake  <ebb9@byu.net>
1108
1109         Use native fstatat on cygwin 1.7.0.
1110         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
1111         first.
1112
1113 2008-04-23  Eric Blake  <ebb9@byu.net>
1114
1115         Improve memchr2 performance.
1116         * lib/memchr2.c (memchr2): Further optimize parallel detection of
1117         NUL bytes.
1118         * modules/memchr2 (Depends-on): Use intprops.h.
1119
1120 2008-04-23  Simon Josefsson  <simon@josefsson.org>
1121
1122         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
1123         an inline function instead of a CPP macro.  Patch by Ben Pfaff
1124         <blp@cs.stanford.edu>.
1125
1126 2008-04-23  Simon Josefsson  <simon@josefsson.org>
1127
1128         * lib/arpa_inet.in.h: New file.
1129
1130         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
1131         (Makefile.am): Sed in substitute header file.
1132
1133         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
1134         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
1135
1136         * modules/inet_ntop (configure.ac): Use
1137         gl_ARPA_INET_MODULE_INDICATOR.
1138
1139         * modules/inet_pton (configure.ac): Use
1140         gl_ARPA_INET_MODULE_INDICATOR.
1141
1142 2008-04-22  Jim Meyering  <meyering@redhat.com>
1143
1144         * modules/verify (License): Re-license as LGPLv2+.
1145
1146 2008-04-22  Simon Josefsson  <simon@josefsson.org>
1147
1148         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
1149         parameter to void* as per POSIX standard (MinGW uses char*).
1150
1151 2008-04-21  Bruno Haible  <bruno@clisp.org>
1152
1153         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1154         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
1155         Define to replacements if REPLACE_ISWCNTRL is 1.
1156         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
1157         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
1158         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
1159         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
1160         what it fixes.
1161         * doc/posix-functions/iswalpha.texi: Likewise.
1162         * doc/posix-functions/iswblank.texi: Likewise.
1163         * doc/posix-functions/iswcntrl.texi: Likewise.
1164         * doc/posix-functions/iswdigit.texi: Likewise.
1165         * doc/posix-functions/iswgraph.texi: Likewise.
1166         * doc/posix-functions/iswlower.texi: Likewise.
1167         * doc/posix-functions/iswprint.texi: Likewise.
1168         * doc/posix-functions/iswpunct.texi: Likewise.
1169         * doc/posix-functions/iswspace.texi: Likewise.
1170         * doc/posix-functions/iswupper.texi: Likewise.
1171         * doc/posix-functions/iswxdigit.texi: Likewise.
1172         Reported by Alain Guibert.
1173
1174 2008-04-21  Bruno Haible  <bruno@clisp.org>
1175
1176         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
1177         Patch by Alain Guibert.
1178
1179 2008-04-21  Bruno Haible  <bruno@clisp.org>
1180
1181         Fix test failures on mingw.
1182         * tests/test-xstrtol.c (print_no_progname): New function.
1183         (main): Install it in error_print_progname hook.
1184         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
1185         * tests/test-xstrtoimax.sh: Likewise.
1186         * tests/test-xstrtoumax.sh: Likewise.
1187
1188 2008-04-21  Bruno Haible  <bruno@clisp.org>
1189
1190         Fix test failure on mingw.
1191         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
1192
1193 2008-04-21  Bruno Haible  <bruno@clisp.org>
1194
1195         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
1196         Actually assign a value.
1197
1198 2008-04-20  Bruno Haible  <bruno@clisp.org>
1199
1200         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
1201         take 2.
1202         * lib/canonicalize.c (canonicalize_file_name): Elide if the
1203         'canonicalize-lgpl' module is also used.
1204         * lib/canonicalize-lgpl.c: Undo last change.
1205         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
1206
1207 2008-04-20  Bruno Haible  <bruno@clisp.org>
1208
1209         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
1210         config.h. Provide _mkdir based fallback for mingw.
1211         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
1212         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
1213         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
1214         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
1215         rather than defining mkdir in config.h.
1216         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
1217         (gl_SYS_STAT_H_DEFAULTS): New macro.
1218         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
1219         HAVE_IO_H any more.
1220         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
1221         HAVE_DECL_MKDIR and HAVE_IO_H.
1222
1223 2008-04-20  Bruno Haible  <bruno@clisp.org>
1224
1225         * lib/isapipe.c: Port to native Windows platforms.
1226
1227 2008-04-20  Bruno Haible  <bruno@clisp.org>
1228
1229         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
1230
1231 2008-04-21  Eric Blake  <ebb9@byu.net>
1232
1233         Work around preprocessors that don't handle UINTMAX_MAX.
1234         * lib/memchr2.c (memchr2): Avoid embedded #if.
1235         Reported by Alain Guibert, fix suggested by Bruno Haible.
1236
1237 2008-04-21  Simon Josefsson  <simon@josefsson.org>
1238
1239         * doc/posix-functions/strftime.texi (strftime): Explain better
1240         Windows incompatibility.  Suggested by Micah Cowan
1241         <micah@cowan.name>.
1242
1243 2008-04-20  Bruno Haible  <bruno@clisp.org>
1244
1245         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
1246         unistr/u8-mblen.
1247
1248 2008-04-20  Bruno Haible  <bruno@clisp.org>
1249
1250         Fix test failure on platforms with non-GNU iconv.
1251         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
1252         (U_TO_U8): Use it, rather than u16_to_u8.
1253         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
1254         units at the end of the input string.
1255         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
1256
1257 2008-04-20  Bruno Haible  <bruno@clisp.org>
1258
1259         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
1260         when the resulting length is 0.
1261         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
1262
1263 2008-04-20  Bruno Haible  <bruno@clisp.org>
1264
1265         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
1266         works.
1267         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
1268
1269 2008-04-20  Bruno Haible  <bruno@clisp.org>
1270
1271         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
1272         * modules/tsearch-tests (configure.ac): Test for initstate function.
1273
1274 2008-04-20  Bruno Haible  <bruno@clisp.org>
1275
1276         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
1277         for nlink_t if missing.
1278         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
1279
1280 2008-04-19  Bruno Haible  <bruno@clisp.org>
1281
1282         Work around snprintf bug on Linux libc5.
1283         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
1284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1285         gl_SNPRINTF_SIZE1.
1286         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1287         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
1288         that test failed.
1289         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1290         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
1291         * modules/snprintf (Files): Add m4/printf.m4.
1292         * modules/vsnprintf (Files): Likewise.
1293         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
1294         * doc/posix-functions/vsnprintf.texi: Likewise.
1295
1296 2008-04-19  Bruno Haible  <bruno@clisp.org>
1297
1298         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
1299         from 0.0058 to less than 10^-7.
1300
1301 2008-04-19  Bruno Haible  <bruno@clisp.org>
1302
1303         Fix rounding when a precision is given.
1304         * lib/vasnprintf.c (is_borderline): New function.
1305         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
1306         9...9x.
1307         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
1308         %e, %g.
1309         * tests/test-vasprintf-posix.c (test_function): Likewise.
1310         * tests/test-snprintf-posix.h (test_function): Likewise.
1311         * tests/test-sprintf-posix.h (test_function): Likewise.
1312         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
1313         * tests/test-printf-posix.h (test_function): Likewise.
1314         * tests/test-printf-posix.output: Update.
1315         Reported by John Darrington <john@darrington.wattle.id.au> via
1316         Ben Pfaff <blp@cs.stanford.edu>.
1317
1318 2008-04-18  Simon Josefsson  <simon@josefsson.org>
1319
1320         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
1321         Suggested by Bruno Haible <bruno@clisp.org>.
1322
1323 2008-04-17  Bruno Haible  <bruno@clisp.org>
1324
1325         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
1326         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
1327         implementation.
1328         Patch by Bruce Merry <bmerry@gmail.com>.
1329
1330 2008-04-17  Simon Josefsson  <simon@josefsson.org>
1331
1332         * doc/posix-functions/strftime.texi (strftime): Mention that %e
1333         doesn't work under Windows.
1334
1335 2008-04-16  Bruno Haible  <bruno@clisp.org>
1336
1337         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
1338         New macros.
1339         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
1340         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
1341         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
1342         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
1343         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
1344         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
1345         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
1346         macros.
1347         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
1348         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
1349         Northern Sotho, Uighur.
1350
1351 2008-04-16  Bruno Haible  <bruno@clisp.org>
1352
1353         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
1354         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
1355         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
1356         Reported by Daniel Bergström <daniel@octocode.com>.
1357
1358 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
1359             Bruno Haible  <bruno@clisp.org>
1360
1361         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
1362         function.
1363         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
1364         New functions, mostly extracted from gl_locale_name_default.
1365         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
1366
1367 2008-04-16  Eric Blake  <ebb9@byu.net>
1368
1369         Adjust strtod detection to catch glibc 2.7 bug.
1370         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
1371         Reported by John Gatewood Ham.
1372
1373 2008-04-16  Bruno Haible  <bruno@clisp.org>
1374
1375         Add tentative support for Linux libc5.
1376         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
1377         * lib/fpurge.c (fpurge): Likewise.
1378         * lib/freadable.c (freadable): Likewise.
1379         * lib/freadahead.c (freadahead): Likewise.
1380         * lib/freading.c (freading): Likewise.
1381         * lib/freadptr.c (freadptr): Likewise.
1382         * lib/freadseek.c (freadptrinc): Likewise.
1383         * lib/fseeko.c (rpl_fseeko): Likewise.
1384         * lib/fseterr.c (fseterr): Likewise.
1385         * lib/fwritable.c (fwritable): Likewise.
1386         * lib/fwriting.c (fwriting): Likewise.
1387         Reported by Alain Guibert <alguibert+bts@free.fr>.
1388
1389 2008-04-15  Bruno Haible  <bruno@clisp.org>
1390
1391         * modules/mathl (configure.ac): Define module indicator.
1392
1393 2008-04-15  Bruno Haible  <bruno@clisp.org>
1394
1395         * lib/logl.c (logl): Remove unused variables.
1396
1397 2008-04-15  Bruno Haible  <bruno@clisp.org>
1398
1399         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
1400         fails.
1401
1402 2008-04-15  Bruno Haible  <bruno@clisp.org>
1403
1404         * lib/trim.c (trim2): Fix argument of isspace() macro.
1405
1406 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
1407
1408         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
1409         to 0.
1410         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
1411
1412 2008-04-14  Bruno Haible  <bruno@clisp.org>
1413
1414         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
1415         AC_LANG_PROGRAM argument.
1416         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1417         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
1418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1419         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1420         * m4/math_h.m4 (gl_MATH_H): Likewise.
1421         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1423         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1424         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
1425         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1426         * m4/regex.m4 (gl_REGEX): Likewise.
1427         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
1428         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
1429         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1430         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
1431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1432         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1433         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1434         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1435
1436 2008-04-14  Jim Meyering  <meyering@redhat.com>
1437
1438         test-strtod: fix typos: s/abs/fabs/
1439         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
1440
1441 2008-04-13  Bruno Haible  <bruno@clisp.org>
1442
1443         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
1444         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
1445         module is also used and while not building the reloc-wrapper.
1446
1447 2008-04-13  Bruno Haible  <bruno@clisp.org>
1448
1449         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
1450
1451 2008-04-13  Bruno Haible  <bruno@clisp.org>
1452
1453         Fix AIX compilation failure introduced on 2008-04-02.
1454         * tests/test-frexp.c (exp): Undefine before redefining.
1455         * tests/test-frexpl.c (exp): Likewise.
1456
1457 2008-04-13  Bruno Haible  <bruno@clisp.org>
1458
1459         Work around a HP-UX stdio bug.
1460         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
1461         * tests/test-ftello.c (main): Likewise.
1462         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
1463         * doc/posix-functions/ftello.texi: Likewise.
1464
1465 2008-04-13  Bruno Haible  <bruno@clisp.org>
1466
1467         Make test-signbit pass on HP-UX/hppa.
1468         * tests/test-signbit.c (minus_zerol): New variable.
1469         (test_signbitl): Use it.
1470
1471 2008-04-13  Bruno Haible  <bruno@clisp.org>
1472
1473         Make truncl work on OSF/1 4.0.
1474         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
1475         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1476         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
1478         HAVE_DECL_TRUNCL.
1479         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
1480         HAVE_DECL_TRUNCL.
1481         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
1482
1483 2008-04-13  Bruno Haible  <bruno@clisp.org>
1484
1485         * lib/unictype.h: Remove trailing comma from enumeration definitions.
1486
1487 2008-04-13  Bruno Haible  <bruno@clisp.org>
1488
1489         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
1490         expression, so as to avoid HP-UX 11 cc compiler bug.
1491
1492 2008-04-13  Bruno Haible  <bruno@clisp.org>
1493
1494         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
1495
1496 2008-04-13  Bruno Haible  <bruno@clisp.org>
1497
1498         * lib/git-merge-changelog.c: Remove empty declaration outside of
1499         functions.
1500
1501 2008-04-13  Bruno Haible  <bruno@clisp.org>
1502
1503         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
1504
1505 2008-04-13  Bruno Haible  <bruno@clisp.org>
1506
1507         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
1508         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
1509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
1510         also if it exists but lacks definitions of the SHUT_* macros.
1511         * modules/sys_socket (Description): Update.
1512         Reported by Elbert Pol <e.pol@chello.nl>.
1513
1514 2008-04-13  Bruno Haible  <bruno@clisp.org>
1515
1516         * lib/localcharset.c (OS2): Don't redefine if already defined.
1517         Reported by Elbert Pol <e.pol@chello.nl>.
1518
1519 2008-04-13  Bruno Haible  <bruno@clisp.org>
1520
1521         * lib/binary-io.h [__EMX__]: Include <io.h>.
1522         Reported by Elbert Pol <e.pol@chello.nl>.
1523
1524 2008-04-12  Bruno Haible  <bruno@clisp.org>
1525
1526         * lib/fpucw.h: Enable the definitions also for x86_64.
1527         Needed for NetBSD/x86_64.
1528         Reported by Thomas Klausner <tk@giga.or.at>.
1529
1530 2008-04-12  Bruno Haible  <bruno@clisp.org>
1531
1532         * tests/test-strtod.c: Include isnand.h.
1533         (main): Use isnand instead of isnan.
1534         Reported by Jim Meyering.
1535
1536 2008-04-12  Bruno Haible  <bruno@clisp.org>
1537
1538         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
1539         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1540
1541 2008-04-12  Jim Meyering  <meyering@redhat.com>
1542
1543         * m4/math_h.m4 (gl_MATH_H): Fix typos.
1544
1545 2008-04-12  Bruno Haible  <bruno@clisp.org>
1546
1547         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
1548         Reported by Elbert Pol <e.pol@chello.nl>.
1549
1550 2008-04-12  Eric Blake  <ebb9@byu.net>
1551
1552         Work around Solaris 10 math.h bug.
1553         * m4/math_h.m4 (gl_MATH_H): Check for bug.
1554         (gl_MATH_H_DEFAULTS): Set up default.
1555         * modules/math (Makefile.am): Replace new indicators.
1556         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
1557         * tests/test-math.c (main): Test this.
1558         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
1559         * doc/posix-headers/math.texi (math.h): Mention bug.
1560         Reported by Nelson H. F. Beebe and Jim Meyering.
1561
1562 2008-04-11  Bruno Haible  <bruno@clisp.org>
1563
1564         Adapt to future versions of Apple GCC.
1565         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
1566         Reported by Peter O'Gorman <peter@pogma.com>.
1567
1568 2008-04-11  Bruno Haible  <bruno@clisp.org>
1569
1570         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
1571
1572 2008-04-11  Bruno Haible  <bruno@clisp.org>
1573
1574         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
1575
1576         * modules/getaddrinfo-tests (Makefile.am): Define
1577         test_getaddrinfo_LDADD.
1578
1579 2008-04-11  Bruno Haible  <bruno@clisp.org>
1580
1581         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
1582         (init): Fix syntax error.
1583         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
1584         is declared.
1585
1586 2008-04-11  Bruno Haible  <bruno@clisp.org>
1587
1588         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
1589         * modules/glob (Depends-on): Add stdbool.
1590
1591 2008-04-11  Bruno Haible  <bruno@clisp.org>
1592
1593         * lib/trim.c: Include <string.h>.
1594
1595 2008-04-11  Eric Blake  <ebb9@byu.net>
1596
1597         Avoid compile failure on OS/2.
1598         * lib/regex_internal.h (internal_function): Disable optimization
1599         on OS/2 (__EMX__), where it caused compiler error.
1600         Reported by Elbert Pol.
1601
1602 2008-04-11  Bruno Haible  <bruno@clisp.org>
1603
1604         Flush the standard error stream before aborting. Needed on mingw.
1605         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
1606         * tests/test-array_list.c (ASSERT): Likewise.
1607         * tests/test-array_oset.c (ASSERT): Likewise.
1608         * tests/test-avltree_list.c (ASSERT): Likewise.
1609         * tests/test-avltree_oset.c (ASSERT): Likewise.
1610         * tests/test-avltreehash_list.c (ASSERT): Likewise.
1611         * tests/test-binary-io.c (ASSERT): Likewise.
1612         * tests/test-byteswap.c (ASSERT): Likewise.
1613         * tests/test-c-ctype.c (ASSERT): Likewise.
1614         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
1615         * tests/test-c-strcasestr.c (ASSERT): Likewise.
1616         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
1617         * tests/test-c-strstr.c (ASSERT): Likewise.
1618         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
1619         * tests/test-canonicalize.c (ASSERT): Likewise.
1620         * tests/test-carray_list.c (ASSERT): Likewise.
1621         * tests/test-ceilf1.c (ASSERT): Likewise.
1622         * tests/test-ceilf2.c (ASSERT): Likewise.
1623         * tests/test-ceill.c (ASSERT): Likewise.
1624         * tests/test-count-one-bits.c (ASSERT): Likewise.
1625         * tests/test-fbufmode.c (ASSERT): Likewise.
1626         * tests/test-fflush2.c (ASSERT): Likewise.
1627         * tests/test-floorf1.c (ASSERT): Likewise.
1628         * tests/test-floorf2.c (ASSERT): Likewise.
1629         * tests/test-floorl.c (ASSERT): Likewise.
1630         * tests/test-fopen.c (ASSERT): Likewise.
1631         * tests/test-fpending.c (ASSERT): Likewise.
1632         * tests/test-fprintf-posix.c (ASSERT): Likewise.
1633         * tests/test-fpurge.c (ASSERT): Likewise.
1634         * tests/test-freadable.c (ASSERT): Likewise.
1635         * tests/test-freadahead.c (ASSERT): Likewise.
1636         * tests/test-freading.c (ASSERT): Likewise.
1637         * tests/test-freadptr.c (ASSERT): Likewise.
1638         * tests/test-freadptr2.c (ASSERT): Likewise.
1639         * tests/test-freadseek.c (ASSERT): Likewise.
1640         * tests/test-freopen.c (ASSERT): Likewise.
1641         * tests/test-frexp.c (ASSERT): Likewise.
1642         * tests/test-frexpl.c (ASSERT): Likewise.
1643         * tests/test-fseek.c (ASSERT): Likewise.
1644         * tests/test-fseeko.c (ASSERT): Likewise.
1645         * tests/test-fstrcmp.c (ASSERT): Likewise.
1646         * tests/test-ftell.c (ASSERT): Likewise.
1647         * tests/test-ftello.c (ASSERT): Likewise.
1648         * tests/test-func.c (ASSERT): Likewise.
1649         * tests/test-fwritable.c (ASSERT): Likewise.
1650         * tests/test-fwriting.c (ASSERT): Likewise.
1651         * tests/test-getdelim.c (ASSERT): Likewise.
1652         * tests/test-getline.c (ASSERT): Likewise.
1653         * tests/test-i-ring.c (ASSERT): Likewise.
1654         * tests/test-iconv-utf.c (ASSERT): Likewise.
1655         * tests/test-iconv.c (ASSERT): Likewise.
1656         * tests/test-isfinite.c (ASSERT): Likewise.
1657         * tests/test-isnand.c (ASSERT): Likewise.
1658         * tests/test-isnanf.c (ASSERT): Likewise.
1659         * tests/test-isnanl.h (ASSERT): Likewise.
1660         * tests/test-ldexpl.c (ASSERT): Likewise.
1661         * tests/test-linked_list.c (ASSERT): Likewise.
1662         * tests/test-linkedhash_list.c (ASSERT): Likewise.
1663         * tests/test-localename.c (ASSERT): Likewise.
1664         * tests/test-lseek.c (ASSERT): Likewise.
1665         * tests/test-mbscasecmp.c (ASSERT): Likewise.
1666         * tests/test-mbscasestr1.c (ASSERT): Likewise.
1667         * tests/test-mbscasestr2.c (ASSERT): Likewise.
1668         * tests/test-mbscasestr3.c (ASSERT): Likewise.
1669         * tests/test-mbscasestr4.c (ASSERT): Likewise.
1670         * tests/test-mbschr.c (ASSERT): Likewise.
1671         * tests/test-mbscspn.c (ASSERT): Likewise.
1672         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
1673         * tests/test-mbspbrk.c (ASSERT): Likewise.
1674         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
1675         * tests/test-mbsrchr.c (ASSERT): Likewise.
1676         * tests/test-mbsspn.c (ASSERT): Likewise.
1677         * tests/test-mbsstr1.c (ASSERT): Likewise.
1678         * tests/test-mbsstr2.c (ASSERT): Likewise.
1679         * tests/test-mbsstr3.c (ASSERT): Likewise.
1680         * tests/test-memchr2.c (ASSERT): Likewise.
1681         * tests/test-memmem.c (ASSERT): Likewise.
1682         * tests/test-open.c (ASSERT): Likewise.
1683         * tests/test-printf-frexp.c (ASSERT): Likewise.
1684         * tests/test-printf-frexpl.c (ASSERT): Likewise.
1685         * tests/test-printf-posix.c (ASSERT): Likewise.
1686         * tests/test-quotearg.c (ASSERT): Likewise.
1687         * tests/test-rbtree_list.c (ASSERT): Likewise.
1688         * tests/test-rbtree_oset.c (ASSERT): Likewise.
1689         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
1690         * tests/test-round1.c (ASSERT): Likewise.
1691         * tests/test-roundf1.c (ASSERT): Likewise.
1692         * tests/test-roundl.c (ASSERT): Likewise.
1693         * tests/test-signbit.c (ASSERT): Likewise.
1694         * tests/test-sleep.c (ASSERT): Likewise.
1695         * tests/test-snprintf-posix.c (ASSERT): Likewise.
1696         * tests/test-snprintf.c (ASSERT): Likewise.
1697         * tests/test-sprintf-posix.c (ASSERT): Likewise.
1698         * tests/test-stat-time.c (ASSERT): Likewise.
1699         * tests/test-strcasestr.c (ASSERT): Likewise.
1700         * tests/test-strerror.c (ASSERT): Likewise.
1701         * tests/test-striconv.c (ASSERT): Likewise.
1702         * tests/test-striconveh.c (ASSERT): Likewise.
1703         * tests/test-striconveha.c (ASSERT): Likewise.
1704         * tests/test-strsignal.c (ASSERT): Likewise.
1705         * tests/test-strstr.c (ASSERT): Likewise.
1706         * tests/test-strtod.c (ASSERT): Likewise.
1707         * tests/test-trunc1.c (ASSERT): Likewise.
1708         * tests/test-trunc2.c (ASSERT): Likewise.
1709         * tests/test-truncf1.c (ASSERT): Likewise.
1710         * tests/test-truncf2.c (ASSERT): Likewise.
1711         * tests/test-truncl.c (ASSERT): Likewise.
1712         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
1713         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
1714         * tests/test-vasnprintf.c (ASSERT): Likewise.
1715         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
1716         * tests/test-vasprintf.c (ASSERT): Likewise.
1717         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
1718         * tests/test-vprintf-posix.c (ASSERT): Likewise.
1719         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
1720         * tests/test-vsnprintf.c (ASSERT): Likewise.
1721         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
1722         * tests/test-wcwidth.c (ASSERT): Likewise.
1723         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
1724         * tests/test-xprintf-posix.c (ASSERT): Likewise.
1725         * tests/test-xvasprintf.c (ASSERT): Likewise.
1726         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
1727         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
1728         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
1729         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
1730         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
1731         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
1732         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
1733         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
1734         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
1735         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
1736         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
1737         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
1738         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
1739         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
1740         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
1741         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
1742         * tests/unictype/test-block_list.c (ASSERT): Likewise.
1743         * tests/unictype/test-block_of.c (ASSERT): Likewise.
1744         * tests/unictype/test-block_test.c (ASSERT): Likewise.
1745         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
1746         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
1747         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
1748         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
1749         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
1750         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
1751         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
1752         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
1753         * tests/unictype/test-combining.c (ASSERT): Likewise.
1754         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
1755         * tests/unictype/test-digit.c (ASSERT): Likewise.
1756         * tests/unictype/test-mirror.c (ASSERT): Likewise.
1757         * tests/unictype/test-numeric.c (ASSERT): Likewise.
1758         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
1759         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
1760         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
1761         * tests/unictype/test-scripts.c (ASSERT): Likewise.
1762         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
1763         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
1764         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
1765         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
1766         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
1767         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
1768         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
1769         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
1770         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
1771         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
1772         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
1773         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
1774         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
1775         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
1776         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
1777         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
1778         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
1779         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
1780         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
1781         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
1782         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
1783         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
1784         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
1785         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
1786         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
1787         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
1788         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
1789         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
1790         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
1791         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
1792         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
1793         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
1794         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
1795         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
1796         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
1797         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
1798         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
1799         Reported by Eric Blake.
1800
1801 2008-04-11  Bruno Haible  <bruno@clisp.org>
1802
1803         * lib/wchar.in.h: Tweak comment.
1804
1805 2008-04-11  Bruno Haible  <bruno@clisp.org>
1806
1807         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
1808         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
1809         gl_COMMON.
1810         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
1811
1812 2008-04-11  Bruno Haible  <bruno@clisp.org>
1813
1814         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
1815
1816 2008-04-11  Simon Josefsson  <simon@josefsson.org>
1817
1818         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
1819         of attempting to use non-existing /dev/*random.  Based on patch
1820         from Adam Strzelecki <ono@java.pl> in
1821         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
1822
1823 2008-04-08  Bruno Haible  <bruno@clisp.org>
1824
1825         Add tentative support for emx+gcc.
1826         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
1827         * lib/fpurge.c (fpurge): Likewise.
1828         * lib/freadable.c (freadable): Likewise.
1829         * lib/freadahead.c (freadahead): Likewise.
1830         * lib/freading.c (freading): Likewise.
1831         * lib/freadptr.c (freadptr): Likewise.
1832         * lib/freadseek.c (freadptrinc): Likewise.
1833         * lib/fseeko.c (rpl_fseeko): Likewise.
1834         * lib/fseterr.c (fseterr): Likewise.
1835         * lib/fwritable.c (fwritable): Likewise.
1836         * lib/fwriting.c (fwriting): Likewise.
1837         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
1838
1839 2008-04-09  Eric Blake  <ebb9@byu.net>
1840
1841         Avoid some autoconf warnings.
1842         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
1843         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
1844         * m4/afs.m4 (gl_AFS): Likewise.
1845         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
1846         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
1847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1848         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
1849         (gl_INTEGER_TYPE_SUFFIX): Likewise.
1850         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
1851         (AC_CHECK_DECLS_ONCE): Likewise.
1852         Rename file...
1853         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
1854         gnulib-tool requires autoconf 2.59 or better.
1855         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
1856
1857 2008-04-08  Eric Blake  <ebb9@byu.net>
1858
1859         Use 'git describe --match' if present (added in git 1.5.5).
1860         * build-aux/git-version-gen: Limit result to tags that match 'v*'
1861         if possible.
1862
1863 2008-04-08  Bruno Haible  <bruno@clisp.org>
1864
1865         Add tentative support for OpenServer.
1866         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
1867         _ptr, _cnt.
1868         * lib/fpurge.c (fpurge): Likewise.
1869         * lib/freadable.c (freadable): Likewise.
1870         * lib/freadahead.c (freadahead): Likewise.
1871         * lib/freading.c (freading): Likewise.
1872         * lib/freadptr.c (freadptr): Likewise.
1873         * lib/freadseek.c (freadptrinc): Likewise.
1874         * lib/fseeko.c (rpl_fseeko): Likewise.
1875         * lib/fseterr.c (fseterr): Likewise.
1876         * lib/fwritable.c (fwritable): Likewise.
1877         * lib/fwriting.c (fwriting): Likewise.
1878         Reported by Roger Cornelius <rac@tenzing.org> and
1879         Brian K. White <brian@aljex.com>.
1880
1881 2008-04-06  Jim Meyering  <meyering@redhat.com>
1882
1883         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
1884
1885 2008-04-06  Bruno Haible  <bruno@clisp.org>
1886
1887         Avoid possible error with non-ASCII bytes in UTF-8 locales.
1888         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
1889         * tests/test-printf-posix.sh: Likewise.
1890         * tests/test-vfprintf-posix.sh: Likewise.
1891         * tests/test-vprintf-posix.sh: Likewise.
1892         * tests/test-xprintf-posix.sh: Likewise.
1893
1894 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1895
1896         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
1897         hide error from 'ls', needed on OS/2.
1898         Report by Elbert Pol <elbert.pol@gmail.com>.
1899
1900 2008-04-04  Eric Blake  <ebb9@byu.net>
1901
1902         Make test-fseeko.c failures meaningful.
1903         * tests/test-fseeko.c: Print line number on failure.
1904         * tests/test-fseek.c: Likewise.
1905         Reported by Nelson H. F. Beebe.
1906
1907         Improve strtod bug detection check.
1908         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
1909         required for Solaris 10.
1910         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
1911
1912 2008-04-04  Bruno Haible  <bruno@clisp.org>
1913
1914         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
1915         by m4/setenv.m4.
1916
1917 2008-04-03  Eric Blake  <ebb9@byu.net>
1918
1919         Ensure sane .version contents.
1920         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
1921         version string.
1922         * build-aux/git-version-gen: Improve documentation.
1923
1924         Make GNU make output nicer.
1925         * top/GNUmakefile [!_have-Makefile]: Add dependency on
1926         MAKECMDGOALS to enforce message for all command line targets.  Set
1927         srcdir for use in maint.mk.
1928
1929         Another maintainer tweak.
1930         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
1931         a target that regenerates version.
1932
1933 2008-04-03  Jim Meyering  <meyering@redhat.com>
1934
1935         vc-list-files: don't cause coreutils "make po-check" failure
1936         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
1937
1938 2008-04-03  Eric Blake  <ebb9@byu.net>
1939
1940         Allow VPATH usage of vc-list-files.
1941         * build-aux/vc-list-files (scriptversion): Add timestamp.
1942         (options): Add --help, --version, -C.
1943         (CVS): Support installed cvsu.
1944
1945 2008-04-02  Bruno Haible  <bruno@clisp.org>
1946
1947         Avoid some "statement with no effect" warnings from gcc.
1948         * tests/test-wctype.c (main): Explicitly ignore unused values.
1949         Reported by Jim Meyering.
1950
1951 2008-04-02  Jim Meyering  <meyering@redhat.com>
1952
1953         Avoid some warnings from "gcc -Wshadow".
1954         * tests/test-frexp.c (exp): Define to a different identifier.
1955         * tests/test-frexpl.c (exp): Likewise.
1956
1957 2008-04-03  Jim Meyering  <meyering@redhat.com>
1958
1959         bootstrap: remove dangling *.[ch] symlinks from lib
1960         * build-aux/bootstrap [dangling symlink removal]: Move find's
1961         -depth option to precede all others, to avoid a warning.
1962         Remove *.[ch] files too, and from "$source_base" (usually lib/).
1963
1964 2008-04-02  Bruno Haible  <bruno@clisp.org>
1965
1966         Avoid some warnings from "gcc -Wshadow".
1967         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
1968         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
1969         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
1970         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
1971         Reported by Jim Meyering.
1972
1973 2008-04-01  Bruno Haible  <bruno@clisp.org>
1974
1975         Fix test to work on IRIX 6.5 with cc.
1976         * tests/test-math.c (numeric_equal): New function.
1977         (main): Use it.
1978
1979 2008-04-01  Bruno Haible  <bruno@clisp.org>
1980
1981         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
1982
1983 2008-04-01  Bruno Haible  <bruno@clisp.org>
1984
1985         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
1986         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1987         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
1988         (Depends-on): Remove math.
1989
1990         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
1991         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1992         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
1993         (Depends-on): Remove math.
1994
1995         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
1996         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1997         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
1998         (Depends-on): Remove math.
1999         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
2000         (Depends-on): Remove math.
2001
2002         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
2003         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2004         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
2005         (Depends-on): Remove math.
2006         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
2007         (Depends-on): Remove math.
2008
2009         * tests/test-round1.c: Include nan.h.
2010         (main): Use NaNd instead of NAN.
2011         * modules/round-tests (Files): Add tests/nan.h.
2012
2013         * tests/test-trunc1.c: Include nan.h.
2014         (main): Use NaNd instead of NAN.
2015         * modules/trunc-tests (Files): Add tests/nan.h.
2016
2017         * tests/test-roundf1.c: Include nan.h.
2018         (main): Use NaNf instead of NAN.
2019         * modules/roundf-tests (Files): Add tests/nan.h.
2020
2021         * tests/test-truncf1.c: Include nan.h.
2022         (main): Use NaNf instead of NAN.
2023         * modules/truncf-tests (Files): Add tests/nan.h.
2024
2025         * tests/test-ceilf1.c: Include nan.h.
2026         (main): Use NaNf instead of NAN.
2027         * modules/ceilf-tests (Files): Add tests/nan.h.
2028
2029         * tests/test-floorf1.c: Include nan.h.
2030         (main): Use NaNf instead of NAN.
2031         * modules/floorf-tests (Files): Add tests/nan.h.
2032
2033         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
2034         (main): Use NaNf instead of NAN.
2035         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
2036
2037         * tests/test-isnand.c: Include nan.h instead of <math.h>.
2038         (main): Use NaNd instead of NAN.
2039         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
2040
2041         * tests/test-frexp.c: Include nan.h.
2042         (main): Use NaNd instead of NAN.
2043         * modules/frexp-tests (Files): Add tests/nan.h.
2044
2045         * lib/isnan.c: Don't include <math.h>.
2046         (FUNC): Don't use NAN macro.
2047         * modules/isnand-nolibm (Depends-on): Remove math.
2048         * modules/isnanf-nolibm (Depends-on): Remove math.
2049         * modules/isnanl (Depends-on): Remove math.
2050         * modules/isnanl-nolibm (Depends-on): Remove math.
2051
2052         * tests/nan.h: New file.
2053
2054 2008-04-01  Eric Blake  <ebb9@byu.net>
2055
2056         Fix typos.
2057         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
2058         values to be the right type.
2059
2060         For now, cater to gnulib strtod inaccuracies.
2061         * tests/test-strtod.c (main): Allow 1-ulp error on expected
2062         fractional results.  While not as nice from a QoI perspective, it
2063         is a quicker patch than correctly implementing decimal to binary
2064         rounding.
2065
2066 2008-03-31  Eric Blake  <ebb9@byu.net>
2067
2068         Guarantee a definition of NAN.
2069         * lib/math.in.h (NAN): Define if missing.
2070         * tests/test-math.c (main): Test it.
2071         * doc/posix-headers/math.texi (math.h): Document this.
2072         * lib/isnan.c (rpl_isnand): Use it.
2073         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
2074         * tests/test-floorf1.c (NaN): Likewise.
2075         * tests/test-frexp.c (NaN): Likewise.
2076         * tests/test-isnand.c (NaN): Likewise.
2077         * tests/test-isnanf.c (NaN): Likewise.
2078         * tests/test-round1.c (NaN): Likewise.
2079         * tests/test-roundf1.c (NaN): Likewise.
2080         * tests/test-snprintf-posix.h (NaN): Likewise.
2081         * tests/test-sprintf-posix.h (NaN): Likewise.
2082         * tests/test-trunc1.c (NaN): Likewise.
2083         * tests/test-truncf1.c (NaN): Likewise.
2084         * tests/test-vasnprintf-posix.c (NaN): Likewise.
2085         * tests/test-vasprintf-posix.c (NaN): Likewise.
2086         * modules/isnand-nolibm (Depends-on): Add math.
2087         * modules/isnanf-nolibm (Depends-on): Likewise.
2088         * modules/isnanl (Depends-on): Likewise.
2089         * modules/isnanl-nolibm (Depends-on): Likewise.
2090         * modules/snprintf-posix-tests (Depends-on): Likewise.
2091         * modules/sprintf-posix-tests (Depends-on): Likewise.
2092         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
2093         * modules/vsprintf-posix-tests (Depends-on): Likewise.
2094         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
2095         * modules/vasprintf-posix-tests (Depends-on): Likewise.
2096
2097 2008-03-31  Bruno Haible  <bruno@clisp.org>
2098
2099         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
2100         * doc/posix-functions/strtod.texi: Likewise.
2101
2102 2008-03-31  Bruno Haible  <bruno@clisp.org>
2103
2104         * tests/test-strtod.c (main): Don't use C99 syntax.
2105
2106 2008-03-31  Bruno Haible  <bruno@clisp.org>
2107
2108         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
2109         Reported by Eric Blake.
2110
2111 2008-03-31  Jim Meyering  <meyering@redhat.com>
2112
2113         Don't compare actual signbit return values.
2114         * tests/test-strtod.c (main): Rather, compare only their
2115         zero/non-zero nature.
2116
2117 2008-03-31  Eric Blake  <ebb9@byu.net>
2118
2119         More strtod documentation.
2120         * doc/posix-functions/strtod.texi (strtod): Interpret more test
2121         failures as distinct bugs.
2122
2123 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2124
2125         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
2126         Problem reported by Erik Benada in
2127         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
2128
2129 2008-03-30  Bruno Haible  <bruno@clisp.org>
2130
2131         * tests/test-strtod.c: Add comments about which assertion fails on which
2132         platform.
2133         * doc/posix-functions/strtod.texi: Add info about many more platforms.
2134
2135 2008-03-30  Eric Blake  <ebb9@byu.net>
2136
2137         Test signbit behavior on zeros.
2138         * tests/test-signbit.c (test_signbitf): Add tests for zero.
2139         (test_signbitd, test_signbitl): Likewise.
2140
2141         More strtod touchups.
2142         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
2143         sign of negative underflow, for now.  Use .5, not .1.
2144         * doc/posix-functions/strtod.texi (strtod): Mention these
2145         limitations.
2146         Reported by Jim Meyering.
2147
2148 2008-03-30  Bruno Haible  <bruno@clisp.org>
2149
2150         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
2151         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
2152
2153 2008-03-30  Bruno Haible  <bruno@clisp.org>
2154
2155         Avoid failure when attempting to return empty iconv results on some
2156         platforms.
2157         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
2158         allocation, don't report ENOMEM when the resulting string is empty.
2159
2160 2008-03-30  Bruno Haible  <bruno@clisp.org>
2161
2162         Fix buffer overrun.
2163         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
2164         Don't consider the width for tmp_length. Check count against tmp_length
2165         before doing the padding. Ensure enough allocation during padding.
2166
2167 2008-03-30  Eric Blake  <ebb9@byu.net>
2168
2169         strtod touchups.
2170         * lib/strtod.c (strtod): Avoid compiler warnings.
2171         Reported by Jim Meyering.
2172
2173 2008-03-30  Bruno Haible  <bruno@clisp.org>
2174
2175         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
2176         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
2177         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
2178         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
2179         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
2180         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
2181         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
2182         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
2183
2184         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
2185         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
2186         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
2187         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
2188         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
2189         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
2190         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
2191         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
2192
2193         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
2194         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
2195         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
2196         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
2197         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
2198         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
2199         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
2200         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
2201
2202         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
2203         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
2204
2205         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
2206         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
2207
2208         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
2209         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
2210
2211         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
2212         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
2213         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
2214
2215         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
2216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
2217         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
2218
2219         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
2220         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
2221         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
2222
2223         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
2224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
2225         * modules/vasprintf (Depends-on): Add EOVERFLOW.
2226
2227         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
2228         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
2229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
2230         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
2231         (Depends-on): Add EOVERFLOW.
2232         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
2233         (Depends-on): Add EOVERFLOW.
2234         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2235         (Depends-on): Add EOVERFLOW.
2236         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2237         (Depends-on): Add EOVERFLOW.
2238         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2239         (Depends-on): Add EOVERFLOW.
2240         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2241         (Depends-on): Add EOVERFLOW.
2242         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2243         (Depends-on): Add EOVERFLOW.
2244         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2245         (Depends-on): Add EOVERFLOW.
2246
2247         * lib/sprintf.c (EOVERFLOW): Remove fallback.
2248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
2249         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
2250
2251         * lib/snprintf.c (EOVERFLOW): Remove fallback.
2252         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
2253         * modules/snprintf (Depends-on): Add EOVERFLOW.
2254
2255         * lib/poll.c (EOVERFLOW): Remove fallback.
2256         * modules/poll (Depends-on): Add EOVERFLOW.
2257
2258         * lib/getugroups.c (EOVERFLOW): Remove fallback.
2259         * modules/getugroups (Depends-on): Add EOVERFLOW.
2260
2261         * lib/getdelim.c (EOVERFLOW): Remove fallback.
2262         * modules/getdelim (Depends-on): Add EOVERFLOW.
2263
2264         * lib/ftell.c (EOVERFLOW): Remove fallback.
2265         * modules/ftell (Depends-on): Add EOVERFLOW.
2266
2267         * lib/fprintf.c (EOVERFLOW): Remove fallback.
2268         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
2269         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
2270
2271         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
2272
2273         * modules/EOVERFLOW-tests: New file.
2274         * tests/test-EOVERFLOW.c: New file.
2275
2276         * modules/EOVERFLOW: New file.
2277         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
2278
2279 2008-03-30  Bruno Haible  <bruno@clisp.org>
2280
2281         Fix bug introduced on 2007-06-10.
2282         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
2283         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
2284
2285 2008-03-30  Bruno Haible  <bruno@clisp.org>
2286
2287         Improve freadseek's efficiency after ungetc.
2288         * lib/freadseek.c: Include freadahead.h.
2289         (freadptrinc): New function, extracted from freadseek.
2290         (freadseek): Use it in a loop. Use freadahead to determine the number
2291         of loop iterations.
2292         * modules/freadseek (Depends-on): Add freadahead.
2293         (configure.ac): Require AC_C_INLINE.
2294
2295 2008-03-30  Bruno Haible  <bruno@clisp.org>
2296
2297         * lib/freadseek.c (freadseek): Don't ignore the return value of
2298         freadptr.
2299
2300 2008-03-29  Eric Blake  <ebb9@byu.net>
2301
2302         Add hex float support.
2303         * modules/strtod (Depends-on): Add c-ctype.
2304         (Link): Mention POW_LIB.
2305         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
2306         whitespace between 'e' and exponent.
2307         * tests/test-strtod.c (main): Enable hex float tests.
2308         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
2309         now provides.
2310
2311         Document various strtod bugs, with some fixes.
2312         * doc/posix-functions/strtod.texi (strtod): Document bugs with
2313         "-0x", "inf", "nan", and hex constants.
2314         * doc/posix-functions/atof.texi (atof): Likewise.
2315         * modules/stdlib (Makefile.am): Support strtod.
2316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
2317         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
2318         detect additional strtod bugs.
2319         * lib/stdlib.in.h (rpl_strtod): Add declarations.
2320         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
2321         bool where appropriate.  Parse 'inf' and 'nan'.
2322         * tests/test-strtod.c: New file.
2323         * modules/strtod (Depends-on): Add stdbool, stdlib.
2324         (configure.ac): Turn on module indicator.
2325         * modules/strtod-tests: New module.
2326
2327 2008-03-29  Eric Blake  <ebb9@byu.net>
2328
2329         Fix ftell on mingw.
2330         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
2331         * modules/ftell-tests (Depends-on): Add binary-io.
2332         * modules/ftello-tests (Depends-on): Likewise.
2333         * tests/test-ftell.c (main): Enhance test to cover behavior after
2334         ungetc.  Enforce binary mode.
2335         * tests/test-ftello.c (main): Likewise.
2336
2337         Pass test-freadseek on cygwin.
2338         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
2339         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
2340         ungetc buffer.
2341
2342         * tests/test-fflush2.c (main): Fix typo.
2343
2344 2008-03-29  Bruno Haible  <bruno@clisp.org>
2345
2346         * tests/test-fflush2.c (main): Temporarily disable the contents of
2347         this test.
2348         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
2349         Reported by Eric Blake.
2350
2351 2008-03-28  Simon Josefsson  <simon@josefsson.org>
2352
2353         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
2354         (GC_SHA224_DIGEST_SIZE): Add.
2355
2356         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
2357         (gc_hash_digest_length): Likewise.
2358         (gc_hash_buffer): Likewise.
2359
2360 2008-03-25  Bruno Haible  <bruno@clisp.org>
2361
2362         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
2363         detail which gettext release to use.
2364         Reported by Simon Josefsson.
2365
2366 2008-03-26  Jim Meyering  <meyering@redhat.com>
2367
2368         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
2369         * modules/gnumakefile (clean-GNUmakefile): Also, use
2370         test ... && ... || : syntax rather than if-then ... fi.
2371
2372         gnumakefile: Don't double-quote-expand $(VPATH) value.
2373         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
2374
2375 2008-03-24  Eric Blake  <ebb9@byu.net>
2376
2377         Alter GNUmakefile to install into top directory.
2378         * modules/maintainer-makefile: Split, and add dependency...
2379         * modules/gnumakefile: to this new module.
2380         * build-aux/GNUmakefile: Move...
2381         * top/GNUmakefile: ...here.
2382         * build-aux/maint.mk: Move...
2383         * top/maint.mk: ...here.
2384         * MODULES.html.sh (Support for maintaining...): Document new
2385         module.
2386
2387 2008-03-23  Bruno Haible  <bruno@clisp.org>
2388
2389         * gnulib-tool: New options --vc-files, --no-vc-files.
2390         (func_usage): Document them.
2391         (vc_files): New variable.
2392         (func_import): Consider vc_files.
2393         (func_create_testdir): Set vc_files to empty.
2394         Suggested by Jim Meyering and Karl Berry.
2395
2396 2008-03-23  Bruno Haible  <bruno@clisp.org>
2397
2398         Fix regex compilation error on HP-UX 11.
2399         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
2400         * modules/regex (Files): Add m4/mbstate_t.m4.
2401         Reported by Ton Voon <ton.voon@altinity.com>.
2402
2403 2008-03-23  Bruno Haible  <bruno@clisp.org>
2404
2405         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
2406
2407 2008-03-23  Eric Blake  <ebb9@byu.net>
2408             Bruno Haible  <bruno@clisp.org>
2409
2410         Install files from top/ in the destination directory.
2411         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
2412         augmentation also for the files from top/.
2413         (func_import, func_create_testdir): Rewrite file names:
2414         top/filename -> filename.
2415
2416 2008-03-23  Bruno Haible  <bruno@clisp.org>
2417
2418         Tweak "gnulib --version" output.
2419         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
2420
2421 2008-03-23  Bruno Haible  <bruno@clisp.org>
2422
2423         Tweak "gnulib --version" output.
2424         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
2425         rather than contents of ChangeLog, when possible.
2426
2427 2008-03-21  Eric Blake  <ebb9@byu.net>
2428
2429         More --version tweaks.
2430         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
2431         date of last ChangeLog entry.
2432
2433 2008-03-21  Jim Meyering  <meyering@redhat.com>
2434
2435         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
2436
2437 2008-03-20  Eric Blake  <ebb9@byu.net>
2438
2439         VPATH fix.
2440         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
2441
2442 2008-03-20  Simon Josefsson  <simon@josefsson.org>
2443
2444         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
2445         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
2446
2447 2008-03-20  Eric Blake  <ebb9@byu.net>
2448
2449         Sync GNUmakefile with coreutils.
2450         * build-aux/GNUmakefile (have-Makefile): Rename...
2451         (_have-Makefile): ...to this, for namespace consideration.
2452         (GNUmakefile.cfg): Include, if present.
2453         (_autoreconf): Define a default.
2454         (_is-dist-target): New rule for rebuilds to pick up intra-release
2455         version.
2456         (maint-cfg.mk): Rename...
2457         (cfg.mk): ...to this.
2458
2459 2008-03-18  Jim Meyering  <meyering@redhat.com>
2460
2461         New script and module: mktempd
2462         * MODULES.html.sh (maint+release support): Add mktempd.
2463         * build-aux/mktempd: New file.
2464         * modules/mktempd: New file.
2465
2466 2008-03-15  Jim Meyering  <meyering@redhat.com>
2467
2468         Undo last change.
2469         * lib/sha1.c, lib/md5.c: 63 != ~63.
2470         Reported by Andreas Schwab.
2471
2472         sha1.c, md5.c: Hoist a redundant expression.
2473         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
2474         "ctx->buflen" only once, before calling *_process_block.
2475         * lib/md5.c (md5_process_bytes): Likewise.
2476
2477 2008-03-14  Eric Blake  <ebb9@byu.net>
2478
2479         Bump copyright year in files generated by gnulib-tool.
2480         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
2481         gnulib-tool, rather than hard-coding it.
2482
2483         Fix 'gnulib-tool --version' output to work with git.
2484         * gnulib-tool (func_gnulib_dir): New function, extracted from...
2485         (startup): ...here.
2486         (func_version): Use it to invoke git-version-gen, rather than
2487         relying on CVS keyword expansion.  Modernize wording.
2488         (cvsdatestamp, last_checkin_date, version): Kill unused
2489         variables.
2490
2491 2008-03-12  Jim Meyering  <meyering@redhat.com>
2492
2493         Recognize optional cast of the argument to free.
2494         * build-aux/useless-if-before-free: Update regexps.
2495
2496         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
2497
2498 2008-03-11  Bruno Haible  <bruno@clisp.org>
2499
2500         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
2501         by a single package.
2502         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
2503         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
2504         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
2505         Reported by Sam Steingold <sds@gnu.org>.
2506
2507 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2508
2509         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
2510         repositories.
2511
2512 2008-03-11  Bruno Haible  <bruno@clisp.org>
2513
2514         Avoid conflicts between local macro definitions.
2515         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2516         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
2517
2518 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
2519             Bruno Haible  <bruno@clisp.org>
2520
2521         Make va_copy work with some version of xlc on AIX 5.1.
2522         * lib/stdarg.in.h: New file.
2523         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
2524         On AIX, use a <stdarg.h> file substitute.
2525         * modules/stdarg (Files): Add lib/stdarg.in.h.
2526         (Depends-on): Add include_next.
2527         (Makefile.am): Build a stdarg.h substitute if requested.
2528         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
2529
2530 2008-03-10  Bruno Haible  <bruno@clisp.org>
2531
2532         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
2533         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2534         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2535
2536 2008-03-10  Bruno Haible  <bruno@clisp.org>
2537
2538         * modules/stdlib (Depends-on): Add include_next, remove
2539         absolute-header.
2540
2541 2008-03-09  Bruno Haible  <bruno@clisp.org>
2542
2543         * lib/freadahead.h (freadahead): Document more precisely.
2544         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
2545         the sum of both buffer sizes.
2546         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
2547         * NEWS: Document the change.
2548
2549 2008-03-09  Bruno Haible  <bruno@clisp.org>
2550
2551         Extend freadptr to return also the buffer size.
2552         * lib/freadptr.h (freadptr): Add sizep argument.
2553         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
2554         (freadptr): Add sizep argument. Determine buffer size like freadahead
2555         does.
2556         * tests/test-freadptr.c: Don't include freadahead.h.
2557         (main): Adapt for new calling convention of freadptr.
2558         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
2559         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
2560         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
2561         tests/test-freadptr2.sh.
2562         (Depends): Remove freadahead.
2563         (TESTS): Add test-freadptr2.sh.
2564         (check_PROGRAMS): Add test-freadptr2.
2565
2566 2008-03-09  Bruno Haible  <bruno@clisp.org>
2567
2568         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
2569         Report and solution by Simon Josefsson.
2570
2571 2008-03-06  Bruno Haible  <bruno@clisp.org>
2572
2573         Make fflush after ungetc work on BSD platforms.
2574         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
2575         * tests/test-fflush2.c: New file.
2576         * tests/test-fflush2.sh: New file.
2577         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
2578         tests/test-fflush2.c.
2579         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
2580         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
2581
2582 2008-03-06  Eric Blake  <ebb9@byu.net>
2583
2584         Likewise for ftello.
2585         * modules/ftello (Dependencies): Add extensions.
2586         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
2587
2588 2008-03-06  Bruno Haible  <bruno@clisp.org>
2589
2590         * modules/fseeko (Dependencies): Add extensions.
2591         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
2592         Needed on glibc systems.
2593
2594 2008-03-06  Bruno Haible  <bruno@clisp.org>
2595
2596         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
2597         email address.
2598         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2599
2600 2008-03-06  Bruno Haible  <bruno@clisp.org>
2601
2602         * users.txt: Add libgnupdf.
2603
2604 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2605
2606         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
2607         (Header File Substitutes, Function Substitutes,
2608         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
2609         (Build robot for gnulib): Fix typo.
2610
2611 2008-03-06  Bruno Haible  <bruno@clisp.org>
2612
2613         * doc/gnulib-tool.texi (VCS Issues): Small updates.
2614         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2615
2616 2008-03-06  Bruno Haible  <bruno@clisp.org>
2617
2618         * doc/func.texi: New file, extracted from doc/gnulib.texi.
2619         * doc/gnulib.texi: Include it.
2620
2621 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2622
2623         * modules/func (License): Change license to unlimited; there was
2624         no LGPL parts in the module anyway.
2625
2626 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2627
2628         * modules/__func__: Renamed to modules/func.
2629         * modules/__func__-tests: Renamed to modules/func-tests.
2630         * tests/test-__func__.c: Renamed to tests/test-func.c.
2631         * m4/__func__.m4: Renamed to m4/func.m4.
2632         * doc/gnulib.texi (__func__): Section renamed to func.
2633         Suggested by Eric Blake <ebb9@byu.net>.
2634
2635 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2636
2637         * doc/gnulib.texi (__func__): Use C99 terminology when talking
2638         about __func__.  Make example self-contained.  Suggested by Eric
2639         Blake <ebb9@byu.net>.
2640
2641         * tests/test-__func__.c (main): Avoid extraneous () around __func.
2642         Suggested by Eric Blake <ebb9@byu.net>.
2643
2644 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2645
2646         * modules/__func__: New file.
2647         * modules/__func__-tests: New file.
2648         * tests/test-__func__.c: New file.
2649         * m4/__func__.m4: New file.
2650         * doc/gnulib.texi (__func__): Document __func__ module.
2651
2652 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2653
2654         * modules/byteswap (License): Re-license as LGPLv2+.
2655
2656 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2657
2658         * doc/Makefile: Add pdf target.
2659
2660 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2661
2662         * modules/inline (License): Use 'unlimited', since there are only
2663         *.m4 files in this module.
2664
2665 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2666             Bruno Haible  <bruno@clisp.org>
2667
2668         Add support for HP C 7.1 on OpenVMS 8.3.
2669         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
2670
2671 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2672
2673         Update VMS specifics.
2674         * lib/getopt.c [VMS]: Remove include of unixlib.h.
2675
2676 2008-03-02  Jim Meyering  <meyering@redhat.com>
2677
2678         Remove the last dependency on the "free" module.
2679         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
2680         Reported by Bob Proulx.
2681
2682         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
2683
2684         Remove useless "if" tests before free.  Deprecate "free" module.
2685         * doc/posix-functions/free.texi: Mention that this
2686         module is no longer useful.
2687         * modules/free (Notice): Say this module is obsolete.
2688         * modules/readutmp (Depends-on): Remove free.
2689         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
2690         * lib/putenv.c (putenv): Likewise.
2691         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
2692         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
2693         * tests/test-c-strcasestr.c (main): Likewise.
2694         * tests/test-c-strstr.c (main): Likewise.
2695         * tests/test-mbscasestr1.c (main): Likewise.
2696         * tests/test-mbscasestr2.c (main): Likewise.
2697         * tests/test-mbsstr1.c (main): Likewise.
2698         * tests/test-mbsstr2.c (main): Likewise.
2699         * tests/test-memmem.c (main): Likewise.
2700         * tests/test-strcasestr.c (main): Likewise.
2701         * tests/test-striconv.c (main): Likewise.
2702         * tests/test-striconveh.c (main): Likewise.
2703         * tests/test-striconveha.c (main): Likewise.
2704         * tests/test-strstr.c (main): Likewise.
2705
2706         * build-aux/git-version-gen: Adjust a comment and the Usage string.
2707
2708         bootstrap: sync from coreutils again
2709         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
2710
2711 2008-03-01  Jim Meyering  <meyering@redhat.com>
2712
2713         bootstrap: sync from coreutils
2714         * build-aux/bootstrap (update_po_files): Copy a .po file into place
2715         also when the target doesn't exist.
2716
2717 2008-03-01  Eric Blake  <ebb9@byu.net>
2718
2719         Fix bugs in last patch.
2720         * lib/memchr2.c (memchr2): Fix typo.
2721         * tests/test-memchr2.c: Test previous bug, and don't use GNU
2722         extension.
2723         Reported by Bruce Korb.
2724
2725         New module 'memchr2'.
2726         * modules/memchr2: New file.
2727         * modules/memchr2-tests: Likewise.
2728         * lib/memchr2.h: Likewise.
2729         * lib/memchr2.c: Likewise, based on memchr.c.
2730         * tests/test-memchr2.c: New test.
2731         * MODULES.html.sh (String handling): Add memchr2.
2732
2733 2008-02-29  Bruno Haible  <bruno@clisp.org>
2734
2735         * modules/freadseek-tests: New file.
2736         * tests/test-freadseek.sh: New file.
2737         * tests/test-freadseek.c: New file.
2738
2739         New module 'freadseek'.
2740         * modules/freadseek: New file.
2741         * lib/freadseek.h: New file.
2742         * lib/freadseek.c: New file.
2743         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
2744
2745 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
2746
2747         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
2748         wydawca.
2749
2750         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
2751         program_invocation_name and program_invocation_short_name are
2752         present.
2753
2754 2008-02-28  Bruno Haible  <bruno@clisp.org>
2755
2756         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
2757         * tests/test-freadptr.sh: Also test non-seekable stdin.
2758
2759 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
2760
2761         * build-aux/bootstrap (source_base, m4_base)
2762         (doc_base, tests_base): New variables.
2763         (gnulib_tool_options): Do not hardcode base directories, use
2764         the above variables instead.
2765
2766 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
2767
2768         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
2769
2770 2008-02-28  Bruno Haible  <bruno@clisp.org>
2771
2772         * modules/freadptr-tests: New file.
2773         * tests/test-freadptr.sh: New file.
2774         * tests/test-freadptr.c: New file.
2775
2776         New module 'freadptr'.
2777         * modules/freadptr: New file.
2778         * lib/freadptr.h: New file.
2779         * lib/freadptr.c: New file.
2780         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
2781
2782 2008-02-26  Karl Berry  <karl@freefriends.org>
2783
2784         Sync from Libtool:
2785         * libltdl/argz.c (argz_add, argz_count): New functions.
2786         * libltdl/argz.in.h: Declare them.
2787         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
2788
2789 2008-02-22  Bruno Haible  <bruno@clisp.org>
2790
2791         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
2792         is a pointer type.  Needed for HP-UX 10.
2793         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
2794         * doc/posix-functions/gmtime_r.texi: Likewise.
2795         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2796
2797 2008-02-24  Bruno Haible  <bruno@clisp.org>
2798
2799         * modules/environ-tests: New file.
2800         * tests/test-environ.c: New file.
2801
2802         New module 'environ'.
2803         * modules/environ: New file.
2804         * lib/unistd.in.h (environ): New declaration.
2805         * m4/environ.m4: New file.
2806         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
2807         after use.
2808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
2809         HAVE_DECL_ENVIRON.
2810         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
2811         HAVE_DECL_ENVIRON.
2812         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
2813         wrong claim that 'environ' is missing on some systems.
2814         * modules/execute (Depends-on): Add environ.
2815         * lib/execute.c (environ): Remove fallback declaration.
2816         * modules/pipe (Depends-on): Add environ.
2817         * lib/pipe.c (environ): Remove fallback declaration.
2818         * modules/setenv (Depends-on): Add environ.
2819         * lib/setenv.c (environ): Remove fallback declaration.
2820         * modules/unsetenv (Depends-on): Add environ.
2821         * lib/unsetenv.c (environ): Remove fallback declaration.
2822         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
2823         m4/environ.m4.
2824         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
2825         (gl_PREREQ_UNSETENV): Likewise.
2826
2827 2008-02-24  Bruno Haible  <bruno@clisp.org>
2828
2829         * doc/posix-functions/environ.texi: Document the MacOS X problem.
2830
2831 2008-02-20  Bob Proulx  <bob@proulx.com>
2832
2833         Enable use of older two part flavor 'git describe'.
2834         * build-aux/git-version-gen: If using the older two part flavor of
2835         git version then recreate the third part now present in the
2836         newer three part flavor of git describe.
2837
2838 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
2839
2840         * lib/fts.c (fts_build): Typo correction to comment.
2841
2842 2008-02-17  Bruno Haible  <bruno@clisp.org>
2843
2844         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
2845         generating no-op conflicts.
2846
2847 2008-02-17  Bruno Haible  <bruno@clisp.org>
2848
2849         Speed up by 10%.
2850         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
2851         result_entries, rather than an index-based loop.
2852
2853 2008-02-17  Bruno Haible  <bruno@clisp.org>
2854
2855         Speed up by 25%.
2856         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
2857         'hashcode_cached'.
2858         (entry_create): New function.
2859         (entry_hashcode): Use the cached hashcode if possible.
2860         (read_changelog_file, try_split_merged_entry): Use entry_create.
2861
2862 2008-02-17  Bruno Haible  <bruno@clisp.org>
2863
2864         Speed up from O(n^2) to O(n) for long ChangeLog files.
2865         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
2866         (read_changelog_file): Change implementation of entries_reversed list
2867         to rbtreehash.
2868         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
2869
2870 2008-02-17  Bruno Haible  <bruno@clisp.org>
2871
2872         New option --split-merged-entry.
2873         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
2874         (find_paragraph_end, try_split_merged_entry): New functions.
2875         (long_options): Add option --split-merged-entry.
2876         (usage): Document option --split-merged-entry.
2877         (main): Implement option --split-merged-entry.
2878         Reported by Eric Blake.
2879
2880 2008-02-17  Bruno Haible  <bruno@clisp.org>
2881
2882         * lib/git-merge-changelog.c: Include c-strstr.h.
2883         (main): Support the "git pull --rebase" situation.
2884         * modules/git-merge-changelog (Depends-on): Add c-strstr.
2885         Reported by Eric Blake.
2886
2887 2008-02-16  Eric Blake  <ebb9@byu.net>
2888
2889         Avoid doubling \ in common case of "c-maybe" quoting style.
2890         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
2891         eliding outer quotes.
2892         * lib/quotearg.h: Document this.
2893         * tests/test-quotearg.c (result_strings, inputs, results_g)
2894         (flag_results, locale_results): Test it by adding a new string to
2895         each test group.
2896         (compare_strings): Test new string.
2897
2898 2008-02-13  Eric Blake  <ebb9@byu.net>
2899
2900         Avoid trigraph quoting in default output.
2901         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
2902         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
2903         unless explicitly requested.
2904         * tests/test-quotearg.c (flag_results, main): Add additional tests.
2905
2906 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
2907
2908         Don't rely on signed integer overflowing to negative value.
2909         * lib/getugroups.c (getugroups): Include <limits.h>.
2910         Instead, compare against INT_MAX, and increment only if the test passes.
2911
2912 2008-02-13  Jim Meyering  <meyering@redhat.com>
2913         and Eric Blake  <ebb9@byu.net>
2914
2915         Avoid shadowing warning and compile errors on Linux.
2916         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
2917         forwarding macros on Linux.
2918         (dcgettext): Define a stub, for Linux.
2919         (results_g, main): Avoid warnings.
2920
2921 2008-02-12  Eric Blake  <ebb9@byu.net>
2922
2923         Silence warning in last patch.
2924         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
2925
2926         Quotearg part 4: add tests, fix c-maybe colon quoting.
2927         * lib/quotearg.h: Improve documentation.
2928         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
2929         escapes when adding outer quotes.  When quoting trigraphs, use
2930         valid C notation.  When quoting NUL, omit extra characters if next
2931         character is not digit.  Alter prototype.
2932         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
2933         callers.
2934         * modules/quotearg-tests: New module.
2935         * tests/test-quotearg.c: New test.
2936
2937 2008-02-07  Eric Blake  <ebb9@byu.net>
2938
2939         Quotearg part 3: add flag to control outer quote elision.
2940         * lib/quotearg.h (c_maybe_quoting_style): New style.
2941         (enum quoting_flags): Better documentation of flags.
2942         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
2943         c-maybe style.
2944         (quotearg_buffer_restyled): Handle new flag to elide outer
2945         quotes.
2946
2947         Quotearg part 2: add flag that can control NUL elision.
2948         * lib/quotearg.h (set_quoting_flags): New prototype.
2949         * lib/quotearg.c (struct quoting_options): Add flag field.
2950         (set_quoting_flags): New function.
2951         (quotearg_buffer_restyled): Add flags parameter.
2952         (quotearg_alloc_mem): Set the flag if length cannot be returned.
2953         (quotearg_n_options): Set the flag, since length cannot be
2954         returned.
2955         (quoting_options_from_style): Default flags correctly.
2956
2957         Quotearg part 1: more wrappers, restore quotearg_char state.
2958         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
2959         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
2960         (quotearg_colon_mem): New wrappers.
2961         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
2962         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
2963         functions.
2964         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
2965         (quotearg_colon_mem): New functions.
2966
2967 2008-02-11  Bruno Haible  <bruno@clisp.org>
2968
2969         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
2970         library in the current directory: it does not work with parallel make.
2971         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2972
2973 2008-02-11  Bruno Haible  <bruno@clisp.org>
2974
2975         * .gitattributes: New file.
2976
2977 2008-02-11  Jim Meyering  <meyering@redhat.com>
2978
2979         useless-if-before-free: Fix reversed exit values.
2980         * build-aux/useless-if-before-free: Use correct values
2981         for EXIT_MATCH and EXIT_NO_MATCH.
2982
2983         * build-aux/useless-if-before-free: Close stdout carefully.
2984
2985 2008-02-10  Bruno Haible  <bruno@clisp.org>
2986
2987         New module 'git-merge-changelog'.
2988         * modules/git-merge-changelog: New file.
2989         * lib/git-merge-changelog.c: New file.
2990
2991 2008-02-10  Jim Meyering  <meyering@redhat.com>
2992
2993         useless-if-before-free: New option: --list (-l).
2994
2995         useless-if-before-free: Don't exit immediately upon open failure.
2996         * build-aux/useless-if-before-free: Exit 2 for errors.
2997         Upon failure to open a file, don't exit immediately.
2998         Rather, just warn and continue with any remaining files.
2999
3000 2008-02-10  Bruno Haible  <bruno@clisp.org>
3001
3002         New abstract list operation 'node_set_value'.
3003         * lib/gl_list.h (gl_list_node_set_value): New function.
3004         (struct gl_list_implementation): New field node_set_value.
3005         * lib/gl_list.c (gl_list_node_set_value): New function.
3006         * lib/gl_array_list.c (gl_array_node_set_value): New function.
3007         (gl_array_list_implementation): Update.
3008         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
3009         (gl_carray_list_implementation): Update.
3010         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
3011         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3012         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3013         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
3014         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3015         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3016         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3017         Update.
3018         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3019         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
3020         (gl_sublist_list_implementation): Update.
3021
3022 2008-02-10  Bruno Haible  <bruno@clisp.org>
3023
3024         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
3025         Needed when ELEMENT is #defined to 'some_type *'.
3026
3027 2008-02-10  Jim Meyering  <meyering@redhat.com>
3028
3029         New script and module: useless-if-before-free
3030         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
3031         * build-aux/useless-if-before-free: New file.
3032         * modules/useless-if-before-free: New file.
3033
3034         * build-aux/gitlog-to-changelog: Use committer date, not author date.
3035
3036         xstrtol_error: Fix typo.
3037         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
3038         s/exit_failure/exit_status/.
3039
3040 2008-02-09  Jim Meyering  <meyering@redhat.com>
3041
3042         New script and module: gitlog-to-changelog
3043         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
3044         * modules/gitlog-to-changelog: New file.
3045         * build-aux/gitlog-to-changelog: New file.
3046
3047 2008-02-08  Jim Meyering  <meyering@redhat.com>
3048
3049         Avoid two "parameter unused" warnings.
3050         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
3051         Mark "st" as used.
3052
3053         Use "git COMMAND", not "git-COMMAND".
3054         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
3055         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
3056         * build-aux/git-version-gen: Use "git status", not "git-status".
3057
3058 2008-02-07  Bruno Haible  <bruno@clisp.org>
3059
3060         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
3061         Avoids a crash on Windows Vista.
3062         Reported by Adam Strzelecki <ono@java.pl> via
3063         Simon Josefsson <simon@josefsson.org>.
3064
3065 2008-02-06  Bruno Haible  <bruno@clisp.org>
3066
3067         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
3068         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
3069         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
3070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
3071         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3072         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3073         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
3074         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
3075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3076         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3079         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3080         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3081         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3082         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
3083         left-adjust flag.
3084         * tests/test-snprintf-posix.h (test_function): Likewise.
3085         * tests/test-sprintf-posix.h (test_function): Likewise.
3086         * tests/test-vasprintf-posix.c (test_function): Likewise.
3087         * doc/posix-functions/fprintf.texi: Update.
3088         * doc/posix-functions/printf.texi: Update.
3089         * doc/posix-functions/snprintf.texi: Update.
3090         * doc/posix-functions/sprintf.texi: Update.
3091         * doc/posix-functions/vfprintf.texi: Update.
3092         * doc/posix-functions/vprintf.texi: Update.
3093         * doc/posix-functions/vsnprintf.texi: Update.
3094         * doc/posix-functions/vsprintf.texi: Update.
3095         Reported by Peter Fales <psfales@alcatel-lucent.com>.
3096
3097 2008-02-06  Bruno Haible  <bruno@clisp.org>
3098
3099         Fix bug introduced on 2008-01-26.
3100         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
3101
3102 2008-02-06  Bruno Haible  <bruno@clisp.org>
3103
3104         Fix bug introduced on 2007-06-10.
3105         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
3106         !NEED_PRINTF_FLAG_ZERO.
3107
3108 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
3109
3110         getloadavg: use libperfstat on AIX5
3111         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
3112
3113 2008-02-03  Bruno Haible  <bruno@clisp.org>
3114
3115         * lib/diffseq.h: Add comments about required #includes.
3116         Reported by Michael Biggs <gnulib@doubleplum.net>.
3117
3118 2008-02-01  Bruno Haible  <bruno@clisp.org>
3119
3120         * users.txt: Add gnuit.
3121
3122 2008-01-31  Bruno Haible  <bruno@clisp.org>
3123
3124         * lib/md4.c (set_uint32): Mark as inline.
3125         * lib/md5.c (set_uint32): Likewise.
3126         * lib/sha1.c (set_uint32): Likewise.
3127         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
3128         * m4/md5.m4 (gl_MD5): Likewise.
3129         * m4/sha1.m4 (gl_SHA1): Likewise.
3130
3131 2008-01-31  Jim Meyering  <meyering@redhat.com>
3132
3133         Use "sizeof VAR", rather than a literal "4".
3134         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
3135         * lib/md4.c (md4_read_ctx): Likewise.
3136         * lib/sha1.c (sha1_read_ctx): Likewise.
3137
3138 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3139
3140         * tests/test-sha1.c: New file, based on test-md5.c.
3141
3142         * modules/crypto/sha1-tests: New file.
3143
3144 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3145
3146         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
3147
3148 2008-01-31  Jim Meyering  <meyering@redhat.com>
3149
3150         Prefer "sizeof v" over the equivalent "4".
3151         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
3152         * lib/md5.c (set_uint32): Likewise.
3153         * lib/sha1.c (set_uint32): Likewise.
3154
3155 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3156
3157         * lib/sha1.c (set_uint32): Mark function as static.
3158
3159 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3160
3161         md2: clarify comments to say that alignment is not required.
3162         * lib/md2.h: Remove warning about alignment in comment.
3163         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
3164         never been required.
3165
3166 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3167
3168         md4: adapt alignment constraint fix from sha1.
3169         * lib/md4.c (set_uint32): New function, from sha1.c
3170         (md4_read_ctx): Use it.
3171         (md4_finish_ctx): Doc fix.
3172         * lib/md4.h: Doc fix.
3173
3174 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3175
3176         md5: adapt alignment constraint fix from sha1.
3177         * lib/md5.c (set_uint32): New function, from sha1.c
3178         (md5_read_ctx): Use it.
3179         (md5_finish_ctx): Doc fix.
3180         * lib/md5.h: Doc fix.
3181
3182 2008-01-30  Peter Palfrader  <weasel@debian.org>
3183
3184         sha1: remove the result buffer alignment constraint
3185         * lib/sha1.c (set_uint32): New function.
3186         (sha1_read_ctx): Rewrite to remove the result buffer alignment
3187         constraint.
3188         (sha1_finish_ctx): Remove comment warning about alignment constraint.
3189         * lib/sha1.h: Likewise.
3190
3191 2008-01-30  Andreas Schwab  <schwab@suse.de>
3192             Bruno Haible  <bruno@clisp.org>
3193
3194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
3195         correct definition of LDBL_MIN_EXP.
3196
3197 2008-01-30  Karl Berry  <karl@gnu.org>
3198
3199         * config/srclist-update: try to preserve x bit on updates.
3200         * config/srclistvars.sh: update for karl.
3201
3202 2008-01-29  Jim Meyering  <meyering@redhat.com>
3203
3204         vasnprintf.c: Avoid warning about unused label
3205         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
3206         "overflow" label definition and associated code with the
3207         same cpp condition that guards the sole use of that label.
3208
3209 2008-01-26  Bruno Haible  <bruno@clisp.org>
3210
3211         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3212         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
3213         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
3214         * lib/isnanl-nolibm.h (isnanl): Likewise.
3215         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3216
3217 2008-01-26  Bruno Haible  <bruno@clisp.org>
3218
3219         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
3220         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
3221
3222 2008-01-26  Bruno Haible  <bruno@clisp.org>
3223
3224         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
3225         GCC >= 4.0 built-in.
3226         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
3227
3228 2008-01-26  Bruno Haible  <bruno@clisp.org>
3229
3230         Rename isnan, applicable to 'double' only, to isnand.
3231         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
3232         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
3233         (configure.ac): Update.
3234         (Include): Replace "isnan.h" with "isnand.h".
3235         * m4/isnand.m4: Renamed from m4/isnan.m4.
3236         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
3237         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
3238         instead of isnan.c.
3239         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
3240         instead of HAVE_ISNAN_IN_LIBC.
3241         (isnand): Renamed from isnan.
3242         * lib/isnand.c: New file.
3243         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
3244         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
3245         (Makefile.am): Update.
3246         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
3247         Include isnand.h instead of isnan.h.
3248         (main): Test isnand instead of isnan.
3249         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
3250         isnan-nolibm.
3251         * modules/frexp (Depends-on): Likewise.
3252         * modules/frexp-tests (Depends-on): Likewise.
3253         * modules/frexp-nolibm (Depends-on): Likewise.
3254         * modules/frexp-nolibm-tests (Depends-on): Likewise.
3255         * modules/isfinite (Depends-on): Likewise.
3256         * modules/round-tests (Depends-on): Likewise.
3257         * modules/signbit (Depends-on): Likewise.
3258         * modules/signbit-tests (Depends-on): Likewise.
3259         * modules/snprintf-posix (Depends-on): Likewise.
3260         * modules/sprintf-posix (Depends-on): Likewise.
3261         * modules/trunc-tests (Depends-on): Likewise.
3262         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3263         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3264         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3265         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3266         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3267         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3268         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3269         * modules/vasnprintf-posix (Depends-on): Likewise.
3270         * modules/vasprintf-posix (Depends-on): Likewise.
3271         * modules/vfprintf-posix (Depends-on): Likewise.
3272         * modules/vsnprintf-posix (Depends-on): Likewise.
3273         * modules/vsprintf-posix (Depends-on): Likewise.
3274         * lib/frexp.c: Include isnand.h instead of isnan.h.
3275         (ISNAN): Set to isnand instead of isnan.
3276         * lib/isfinite.c: Include isnand.h instead of isnan.h.
3277         (gl_isfinited): Use isnand instead of isnan.
3278         * lib/signbitd.c: Include isnand.h instead of isnan.h.
3279         (gl_signbitd): Use isnand instead of isnan.
3280         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
3281         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
3282         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
3283         (main): Use isnand instead of isnan.
3284         * tests/test-round1.c: Include isnand.h.
3285         (main): Use isnand instead of isnan.
3286         * tests/test-round2.c: Include isnand.h instead of isnan.h.
3287         (ISNAN): Set to isnand instead of isnan.
3288         * tests/test-trunc1.c: Include isnand.h.
3289         (main): Use isnand instead of isnan.
3290         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
3291         (equal): Use isnand instead of isnan.
3292         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
3293         isnand-nolibm.
3294         * NEWS: Mention the change.
3295
3296 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3297             Bruno Haible  <bruno@clisp.org>
3298
3299         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
3300         the GCC builtins for signbits are present and set
3301         REPLACE_SIGNBIT_USING_GCC if so.
3302         * lib/math.in.h (signbit): Define using GCC builtins if
3303         REPLACE_SIGNBIT_USING_GCC is set.
3304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3305         REPLACE_SIGNBIT_USING_GCC.
3306         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
3307
3308 2008-01-25  Jim Meyering  <meyering@redhat.com>
3309
3310         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
3311         * lib/poll.c: Include <config.h>, not "config.h".
3312         * tests/test-getaddrinfo.c: Likewise.
3313
3314 2008-01-25  Simon Josefsson  <simon@josefsson.org>
3315
3316         * modules/sockets-tests: New file.
3317
3318 2008-01-24  Simon Josefsson  <simon@josefsson.org>
3319
3320         * modules/sockets: New module, can be used to call WSA_Startup and
3321         WSA_Cleanup when needed.
3322
3323         * lib/sockets.h, lib/sockets.c: New files.
3324
3325         * m4/sockets.m4: New file.
3326
3327         * tests/test-sockets.c: New file.
3328
3329 2008-01-19  Bruno Haible  <bruno@clisp.org>
3330
3331         * doc/posix-headers: Renamed from doc/headers.
3332         * doc/posix-functions: Renamed from doc/functions.
3333         * doc/gnulib.texi: Update.
3334
3335 2008-01-19  Bruno Haible  <bruno@clisp.org>
3336
3337         * doc/glibc-functions/strcasestr.texi: Include contents of
3338         doc/functions/strcasestr.texi, fixing the list of platforms.
3339         * doc/functions/strcasestr.texi: Remove file.
3340
3341 2008-01-19  Bruno Haible  <bruno@clisp.org>
3342
3343         * doc/glibc-functions/memmem.texi: Include contents of
3344         doc/functions/memmem.texi.
3345         * doc/functions/memmem.texi: Remove file.
3346
3347 2008-01-18  Bruno Haible  <bruno@clisp.org>
3348
3349         * doc/glibc-functions/*.texi: New files.
3350         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
3351         to use the new files.
3352
3353 2008-01-17  Bruno Haible  <bruno@clisp.org>
3354
3355         * tests/test-gethostname.c (main): Fix printf statement.
3356
3357 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3358
3359         * modules/gethostname-tests: New file.
3360
3361         * tests/test-gethostname.c: New file.
3362
3363 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3364
3365         * lib/gethostname.c: Include string.h unconditionally, strncpy is
3366         used by the UNAME case.  Reported by Bruno Haible
3367         <bruno@clisp.org>.
3368
3369 2008-01-17  Eric Blake  <ebb9@byu.net>
3370
3371         Convert c-strcasestr to be more efficient.
3372         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
3373         (Depends-on): Add c-strcase, remove malloca, strnlen.
3374         * tests/test-c-strcasestr.c (main): Enhance test.
3375         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
3376
3377 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
3378
3379         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
3380         Use it in creating po/Makevars.
3381
3382 2008-01-15  Simon Josefsson  <simon@josefsson.org>
3383
3384         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
3385         Applications that requires it should initialize libgcrypt
3386         manually.
3387
3388 2008-01-16  Simon Josefsson  <simon@josefsson.org>
3389
3390         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
3391
3392 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3393
3394         Fix problem with getdate on mingw32 reported by Simon Josefsson
3395         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
3396         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
3397         tzname", when deciding whether to declare tzname.
3398         * lib/strftime.c (tzname): Likewise.
3399
3400 2008-01-15  Bruno Haible  <bruno@clisp.org>
3401
3402         Work around a MacOS X 10.5 bug in frexpl().
3403         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
3404         * doc/functions/frexpl.texi: Document the bug.
3405         Reported by Elias Pipping <pipping@gentoo.org>.
3406
3407 2008-01-14  Eric Blake  <ebb9@byu.net>
3408
3409         Touch up previous patch.
3410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
3411         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
3412
3413         Convert strcasestr module to use Two-Way algorithm.
3414         * modules/strcasestr-simple: New module, based on the old
3415         strcasestr, but with Two-Way rather than KMP.
3416         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
3417         * lib/string.in.h (rpl_strcasestr): Declare.
3418         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
3419         performance.
3420         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
3421         * modules/string (Makefile.am): Support strcasestr.
3422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3423         * modules/strcasestr-tests (Depends-on): Check for alarm.
3424         * tests/test-strcasestr.c: Augment test.
3425         * lib/str-two-way.h: Clean up stray macro.
3426         * NEWS: Document new module.
3427         * MODULES.html.sh (string handling): Likewise.
3428         * doc/functions/strcasestr.texi: New file.
3429         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
3430         here, since it is not a POSIX function.
3431
3432 2008-01-14  Colin Watson  <cjwatson@debian.org>
3433             Bruno Haible  <bruno@clisp.org>
3434
3435         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
3436         works fine; if not, set REPLACE_STRSIGNAL.
3437         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
3438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3439         REPLACE_STRSIGNAL.
3440         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
3441         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
3442         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
3443
3444 2008-01-14  Bruno Haible  <bruno@clisp.org>
3445
3446         * modules/strsignal (Include): Change to <string.h>.
3447
3448 2008-01-14  Colin Watson  <cjwatson@debian.org>
3449
3450         * modules/argp (Notice): Add a notice recommending to change
3451         XGETTEXT_OPTIONS.
3452         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
3453
3454 2008-01-13  Colin Watson  <cjwatson@debian.org>
3455
3456         * modules/strsignal-tests: New file.
3457         * tests/test-strsignal.c: New file.
3458
3459         * lib/strsignal.c: New file, from glibc with modifications.
3460         * lib/siglist.h: New file, from glibc with modifications.
3461         * lib/string.in.h (strsignal): New declaration.
3462         * m4/strsignal.m4: New file.
3463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3464         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
3465         * modules/strsignal: New file.
3466         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
3467         HAVE_DECL_STRSIGNAL.
3468
3469 2008-01-13  Bruno Haible  <bruno@clisp.org>
3470
3471         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
3472         locale encoding is not ASCII. Needed for OpenBSD 4.0.
3473         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3474         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3475
3476 2008-01-13  Bruno Haible  <bruno@clisp.org>
3477
3478         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
3479         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
3480         * lib/argp.h (__attribute__): Likewise.
3481         * lib/c-stack.c (__attribute__): Likewise.
3482         * lib/error.h (__attribute__): Likewise.
3483         * lib/fts.c (__attribute__): Likewise.
3484         * lib/openat.h (__attribute__): Likewise.
3485         * lib/stdio.in.h (__attribute__): Likewise.
3486         * lib/string.in.h (__attribute__): Likewise.
3487         * lib/utimens.c (__attribute__): Likewise.
3488         * lib/vasnprintf.h (__attribute__): Likewise.
3489         * lib/xalloc.h (__attribute__): Likewise.
3490         * lib/xprintf.h (__attribute__): Likewise.
3491         * lib/xstrtol.h (__attribute__): Likewise.
3492         * lib/xvasprintf.h (__attribute__): Likewise.
3493
3494 2008-01-12  Bruno Haible  <bruno@clisp.org>
3495
3496         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
3497         * doc/glibc-headers/a.out.texi: New file.
3498         * doc/glibc-headers/aliases.texi: New file.
3499         * doc/glibc-headers/alloca.texi: New file.
3500         * doc/glibc-headers/ar.texi: New file.
3501         * doc/glibc-headers/argp.texi: New file.
3502         * doc/glibc-headers/argz.texi: New file.
3503         * doc/glibc-headers/byteswap.texi: New file.
3504         * doc/glibc-headers/crypt.texi: New file.
3505         * doc/glibc-headers/endian.texi: New file.
3506         * doc/glibc-headers/envz.texi: New file.
3507         * doc/glibc-headers/err.texi: New file.
3508         * doc/glibc-headers/error.texi: New file.
3509         * doc/glibc-headers/execinfo.texi: New file.
3510         * doc/glibc-headers/fpu_control.texi: New file.
3511         * doc/glibc-headers/fstab.texi: New file.
3512         * doc/glibc-headers/fts.texi: New file.
3513         * doc/glibc-headers/getopt.texi: New file.
3514         * doc/glibc-headers/ieee754.texi: New file.
3515         * doc/glibc-headers/ifaddrs.texi: New file.
3516         * doc/glibc-headers/libintl.texi: New file.
3517         * doc/glibc-headers/mcheck.texi: New file.
3518         * doc/glibc-headers/mntent.texi: New file.
3519         * doc/glibc-headers/obstack.texi: New file.
3520         * doc/glibc-headers/paths.texi: New file.
3521         * doc/glibc-headers/printf.texi: New file.
3522         * doc/glibc-headers/pty.texi: New file.
3523         * doc/glibc-headers/resolv.texi: New file.
3524         * doc/glibc-headers/shadow.texi: New file.
3525         * doc/glibc-headers/sysexits.texi: New file.
3526         * doc/glibc-headers/ttyent.texi: New file.
3527
3528 2008-01-12  Jim Meyering  <meyering@redhat.com>
3529
3530         announce-gen: emit Gnulib's git-based version string.
3531         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
3532         New option --gnulib-version=V, where V is expected to be
3533         the output of running git describe in the gnulib directory.
3534         (get_tool_versions): Request feedback on xdelta.  I suspect it's
3535         not useful, and plan to stop publishing an xdelta file with each
3536         coreutils release.
3537
3538         * build-aux/announce-gen: Also check for lzma-compressed files.
3539
3540 2008-01-11  Bruno Haible  <bruno@clisp.org>
3541
3542         * tests/test-memmem.c (main): Increase maximum allowed time.
3543         * tests/test-strstr.c (main): Likewise.
3544
3545 2008-01-11  Bruno Haible  <bruno@clisp.org>
3546
3547         * doc/functions/memmem.texi: Add more precisions about platforms.
3548         * doc/functions/strstr.texi: Likewise.
3549
3550 2008-01-10  Eric Blake  <ebb9@byu.net>
3551
3552         * m4/strstr.m4: Delete cruft from copy-n-paste.
3553         Reported by Bruno Haible.
3554
3555 2008-01-10  Bruno Haible  <bruno@clisp.org>
3556
3557         Make c-strstr rely on strstr.
3558         * lib/c-strstr.c: Don't include str-kmp.h.
3559         (c_strstr): Define in terms of strstr.
3560         * modules/c-strstr (Files): Remove lib/str-kmp.h.
3561         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
3562
3563 2008-01-10  Bruno Haible  <bruno@clisp.org>
3564
3565         * doc/gnulib.texi (String Functions in C Locale): New section.
3566         * doc/c-ctype.texi: New file.
3567         * doc/c-strcase.texi: New file.
3568         * doc/c-strcaseeq.texi: New file.
3569         * doc/c-strcasestr.texi: New file.
3570         * doc/c-strstr.texi: New file.
3571         * doc/c-strtod.texi: New file.
3572         * doc/c-strtold.texi: New file.
3573
3574 2008-01-10  Eric Blake  <ebb9@byu.net>
3575
3576         * lib/relocatable.h: Fix a comment.
3577
3578 2008-01-10  Eric Blake  <ebb9@byu.net>
3579
3580         Share two-way algorithm.
3581         * lib/str-two-way.h: New file, merged from...
3582         * lib/memmem.c: ...here...
3583         * lib/strstr.c: ...and here.
3584         * modules/memmem (Files): Use it.
3585         * modules/strstr (Files): Likewise.
3586
3587         Avoid quadratic strstr implementations.
3588         * lib/strstr.c: New file.
3589         * m4/strstr.m4: Likewise.
3590         * modules/strstr: Likewise.
3591         * modules/strstr-tests: Likewise.
3592         * tests/test-strstr.c: Likewise.
3593         * lib/string.in.h (rpl_strstr): Declare.
3594         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
3595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
3596         * modules/string (Makefile.am): Likewise.
3597         * MODULES.html.sh (string handling): Mention new module.
3598         * doc/functions/strstr.texi (strstr): Document the bug.
3599
3600 2008-01-10  Bruno Haible  <bruno@clisp.org>
3601
3602         * lib/relocatable.h (relocate): State whether result is freshly
3603         allocated or not.
3604         * lib/relocatable.c (relocate): Return a freshly allocated string
3605         instead of a pointer to a privately held string.
3606         Reported by Sylvain Beucler <beuc@gnu.org>.
3607
3608 2008-01-10  Colin Watson  <cjwatson@debian.org>
3609
3610         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
3611         s/S_ISNLK/S_ISLNK/.
3612
3613 2008-01-09  Bruno Haible  <bruno@clisp.org>
3614
3615         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
3616         and other files.
3617         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
3618         if it's only a guess.
3619         * modules/memmem: Simplify by depending on memmem-simple.
3620
3621 2008-01-09  Bruno Haible  <bruno@clisp.org>
3622
3623         Work around OpenBSD 4.0 tdelete() bug.
3624         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
3625         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
3626         macros and don't redefine the enum values.
3627         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
3628         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
3629         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
3630
3631 2008-01-09  Bruno Haible  <bruno@clisp.org>
3632
3633         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
3634         (main): Don't perform the tests if setlocale did not install a UTF-8
3635         locale. Needed on OpenBSD 4.0.
3636         * modules/wcwidth-tests (Depends-on): Add localcharset.
3637
3638 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
3639
3640         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
3641         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
3642         * NEWS: announce this.
3643         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
3644
3645 2008-01-09  Simon Josefsson  <simon@josefsson.org>
3646         and Eric Blake  <ebb9@byu.net>
3647
3648         Add memmem-simple module.
3649         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
3650         (gl_FUNC_MEMMEM): Separate performance from presence checks.
3651         * modules/memmem-simple: New file.
3652         * modules/memmem (Description): Tweak.
3653         * MODULES.html.sh (string handling): Mention new module.
3654         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
3655         addressed by memmem-simple.
3656         * NEWS: Document the difference.
3657
3658 2008-01-09  Eric Blake  <ebb9@byu.net>
3659
3660         Give gcc some memmem optimization hints.
3661         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
3662         (strcasestr): Declare as pure.
3663         * modules/memmem (Maintainer): Claim my implementation.
3664
3665 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3666
3667         Support AIX 6.1 and higher.
3668         * build-aux/config.libpath: Likewise.
3669         * build-aux/config.rpath: Likewise.
3670
3671 2008-01-08  Jim Meyering  <meyering@redhat.com>
3672             Bruno Haible  <bruno@clisp.org>
3673
3674         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
3675         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
3676         Reported by Peter Fales in
3677         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
3678
3679 2008-01-08  Bruno Haible  <bruno@clisp.org>
3680
3681         * modules/unictype/category-of (Depends-on): Add
3682         unictype/category-none.
3683         * modules/unictype/category-and-tests (Depends-on): Add
3684         unictype/category-{L,N,Lu,Nd}.
3685         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
3686         * modules/unictype/category-or-tests (Depends-on): Add
3687         unictype/category-{L,N}.
3688         * modules/unictype/category-name-tests (Depends-on): Add
3689         unictype/category-{Z,Nl}.
3690         Reported by Simon Josefsson.
3691
3692 2008-01-08  Bruno Haible  <bruno@clisp.org>
3693
3694         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
3695         convention better.
3696         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
3697         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
3698         Reported by Peter Miller <millerp@canb.auug.org.au>.
3699
3700 2008-01-08  Eric Blake  <ebb9@byu.net>
3701
3702         Rewrite memmem to guarantee linear complexity without malloc.
3703         * lib/memmem.c (memmem): Use Two-Way rather than
3704         Knuth-Morris-Pratt, to allow O(1) space usage.
3705         (critical_factorization, two_way_short_needle)
3706         (two_way_long_needle): New functions.
3707         (knuth_morris_pratt): Delete.
3708         * modules/memmem (Depends-on): No longer need malloca or stdbool.
3709         Add stdint.
3710         * tests/test-memmem.c (main): Add tests for periodic needle and
3711         sublinear performance.
3712         * doc/functions/memmem.texi (memmem): Document other deficiencies
3713         in cygwin and older glibc.
3714
3715 2008-01-08  Bruno Haible  <bruno@clisp.org>
3716
3717         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
3718         augmentation.
3719
3720 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
3721
3722         Add a configure time option: --disable-acl.
3723         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
3724         AC_ARG_ENABLE(acl).
3725
3726 2008-01-06  Simon Josefsson  <simon@josefsson.org>
3727
3728         * tests/test-localename.c: Don't include obsolete "setenv.h".
3729
3730         * modules/localename-tests (Depends-on): Need unsetenv.
3731
3732 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3733
3734         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
3735
3736 2008-01-06  Colin Watson  <cjwatson@debian.org>
3737
3738         * users.txt: Add man-db.
3739
3740 2008-01-07  Bruno Haible  <bruno@clisp.org>
3741
3742         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
3743         previous section name.
3744
3745 2008-01-07  Bruno Haible  <bruno@clisp.org>
3746
3747         * lib/progname.c (set_program_name): Don't strip off a leading
3748         "lt-" prefix outside a .libs directory.
3749         Suggested by Paul Eggert.
3750
3751 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
3752             Bruno Haible  <bruno@clisp.org>
3753
3754         Improve memory cleanup in 'relocatable' module.
3755         * lib/relocatable.h (compute_curr_prefix): Change return type to
3756         'char *'.
3757         * lib/relocatable.c (compute_curr_prefix): Change return type to
3758         'char *'. Free curr_installdir after use.
3759         (relocate): Free curr_prefix_better after use.
3760         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
3761
3762 2008-01-01  Bruno Haible  <bruno@clisp.org>
3763
3764         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
3765         failure on older glibc systems.
3766         Reported by Peter Fales <psfales@alcatel-lucent.com>.
3767
3768 2008-01-05  Eric Blake  <ebb9@byu.net>
3769
3770         Avoid quadratic system memmem.
3771         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
3772         Reported by Ralf Wildenhues.
3773
3774         Fix memmem test for mingw.
3775         * modules/memmem-tests (configure.ac): Check for alarm.
3776         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
3777         it.
3778         * doc/functions/memmem.texi: New file.
3779         * doc/gnulib.texi (Function Substitutes): Add memmem.
3780         Reported by Bruno Haible.
3781
3782 2008-01-04  Bruno Haible  <bruno@clisp.org>
3783
3784         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
3785         Require gl_HEADER_STRINGS_H_DEFAULTS, not
3786         gl_HEADER_STRING_H_DEFAULTS.
3787
3788 2008-01-04  Eric Blake  <ebb9@byu.net>
3789
3790         Shorten duration of memmem test.
3791         * tests/test-memmem.c (main): Use alarm to declare failure if test
3792         is taking too long.
3793         Reported by Ralf Wildenhues.
3794
3795 2007-12-21  Simon Josefsson  <simon@josefsson.org>
3796
3797         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
3798         string, needed by strerror.
3799
3800 2008-01-03  Colin Watson  <cjwatson@debian.org>
3801             Bruno Haible  <bruno@clisp.org>
3802
3803         * doc/gnulib-tool.texi (Localization): New section.
3804
3805 2008-01-02  Bruno Haible  <bruno@clisp.org>
3806
3807         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
3808         variables to 'unsigned char *' type.
3809         Reported by Paul Eggert.
3810
3811 2008-01-02  Jim Meyering  <jim@meyering.net>
3812
3813         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
3814
3815 2007-12-31  Jim Meyering  <jim@meyering.net>
3816
3817         Avoid use of private FTS type name.
3818         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
3819
3820 2007-12-30  Karl Berry  <karl@gnu.org>
3821
3822         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
3823         work around defect in Texinfo and/or the standalone Info browser.
3824
3825 2007-12-30  Bruno Haible  <bruno@clisp.org>
3826
3827         Unify 5 copies of the KMP code.
3828         * lib/str-kmp.h: New file.
3829         * lib/c-strcasestr.c: Include str-kmp.h.
3830         (knuth_morris_pratt): Remove function.
3831         (c_strcasestr): Update.
3832         * lib/c-strstr.c: Include str-kmp.h.
3833         (knuth_morris_pratt): Remove function.
3834         (c_strcasestr): Update.
3835         * lib/mbscasestr.c: Include str-kmp.h.
3836         (knuth_morris_pratt_unibyte): Remove function.
3837         * lib/mbsstr.c: Include str-kmp.h.
3838         (knuth_morris_pratt_unibyte): Remove function.
3839         * lib/strcasestr.c: Include str-kmp.h.
3840         (knuth_morris_pratt): Remove function.
3841         (strcasestr): Update.
3842         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
3843         * modules/c-strstr (Files): Likewise.
3844         * modules/mbscasestr (Files): Likewise.
3845         * modules/mbsstr (Files): Likewise.
3846         * modules/strcasestr (Files): Likewise.
3847         Suggested by Paul Eggert.
3848
3849 2007-12-30  Bruno Haible  <bruno@clisp.org>
3850
3851         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
3852         defined.
3853
3854 2007-12-30  Bruno Haible  <bruno@clisp.org>
3855
3856         * lib/xmalloca.h: Include xalloc.h.
3857         (xnmalloca): New macro.
3858
3859 2007-12-30  Bruno Haible  <bruno@clisp.org>
3860
3861         * lib/malloca.h (nmalloca): New macro.
3862         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
3863         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
3864         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
3865         knuth_morris_pratt_multibyte): Likewise.
3866         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
3867         knuth_morris_pratt_multibyte): Likewise.
3868         * lib/memmem.c (knuth_morris_pratt): Likewise.
3869         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
3870
3871 2007-12-25  Bruno Haible  <bruno@clisp.org>
3872
3873         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
3874         * lib/glob.c: Don't include openat.h.
3875         (link_exists2_p): Add back the code that deals with the
3876         !GLOB_ALTDIRFUNC case.
3877         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
3878         let it do the filename concatenation.
3879         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
3880         * modules/glob (Depends-on): Remove openat.
3881
3882 2007-12-31  Bruno Haible  <bruno@clisp.org>
3883
3884         * modules/dirfd (License): Change to LGPLv2+.
3885         Approved by Jim Meyering.
3886
3887 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3888
3889         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
3890         when multiplying M by sizeof (size_t).
3891
3892 2007-12-10  Martin Lambers  <marlam@marlam.de>
3893
3894         Override getpagesize on mingw.
3895         * lib/getpagesize.c: New file.
3896         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
3897         * modules/getpagesize (Files): Add lib/getpagesize.c.
3898         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
3899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3900         REPLACE_GETPAGESIZE.
3901         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
3902
3903 2007-12-25  Bruno Haible  <bruno@clisp.org>
3904
3905         * modules/localcharset (Notice): New field.
3906         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
3907         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3908
3909 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3910             Bruno Haible  <bruno@clisp.org>
3911
3912         Avoid using the syntax symbol() in formatted documentation.
3913         * MODULES.html.sh (func_module): When replacing symbol() with a
3914         hyperlink, remove the parentheses. Show an error if some remain.
3915         Recognize and render the '...' syntax.
3916         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
3917         Rework. Add paragraph about GCC's inlining.
3918         * doc/alloca.texi: Likewise.
3919         * doc/error.texi: Remove parentheses from symbol reference.
3920         * doc/gnulib-intro.texi: Likewise.
3921         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
3922         * modules/fnmatch (Description): Reword to say "the ... function".
3923         * modules/full-read (Description): Likewise.
3924         * modules/full-write (Description): Likewise.
3925         * modules/safe-read (Description): Likewise.
3926         * modules/safe-write (Description): Likewise.
3927         * modules/strchrnul (Description): Likewise.
3928         * modules/trim (Description): Likewise.
3929         * modules/error (Description): Remove parentheses from symbol
3930         references.
3931         * modules/verror (Description): Likewise.
3932         Reported by Karl Berry.
3933
3934 2007-12-25  Bruno Haible  <bruno@clisp.org>
3935
3936         Fixup after 2007-10-16 commit.
3937         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
3938
3939 2007-12-24  Bruno Haible  <bruno@clisp.org>
3940
3941         Make --enable-relocatable work with DESTDIR.
3942         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
3943         to compute installdir from destprog.
3944         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
3945         also set the RELOC_DESTDIR variable.
3946         Reported by Левашев Иван <octagram@bluebottle.com>.
3947
3948 2007-12-24  Bruno Haible  <bruno@clisp.org>
3949
3950         Fix link error due to xalloc_die().
3951         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
3952         of xreadlink.
3953         * lib/relocwrapper.c: Update comments.
3954         * build-aux/install-reloc: Remove xreadlink.c from file list.
3955         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
3956         xreadlink.c.
3957         Reported by Левашев Иван <octagram@bluebottle.com>.
3958
3959 2007-12-24  Bruno Haible  <bruno@clisp.org>
3960
3961         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
3962         * lib/setenv.h: Remove file.
3963         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
3964         lib/setenv.h.
3965         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
3966         (Depends-on): Add stdlib.
3967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
3968         gl_FUNC_UNSETENV.
3969         (Include): Replace setenv.h with <stdlib.h>.
3970         * modules/unsetenv: New file.
3971         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
3972         * lib/unsetenv.c: Include <stdlib.h> first.
3973         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
3974         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
3975         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
3976         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
3977         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
3978         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
3979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
3980         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
3981         * doc/functions/unsetenv.texi: Update.
3982         * modules/xsetenv (Depends-on): Add unsetenv.
3983         * modules/getdate (Depends-on): Likewise.
3984         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
3985         * lib/xsetenv.c: Don't include setenv.h.
3986         * lib/getdate.y: Likewise.
3987         * lib/relocwrapper.c: Likewise.
3988         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
3989         (Depends-on): Add stdlib.
3990         * NEWS: Mention the changes.
3991         Reported by Левашев Иван <octagram@bluebottle.com>.
3992
3993 2007-12-23  Bruno Haible  <bruno@clisp.org>
3994
3995         * lib/memmem.c (memmem): Use lowercase variable names. Tab
3996         indentation.
3997
3998 2007-12-23  Bruno Haible  <bruno@clisp.org>
3999
4000         * lib/c-strcasestr.c: Add more comments.
4001         * lib/c-strstr.c: Likewise.
4002         * lib/mbscasestr.c: Likewise.
4003         * lib/mbsstr.c: Likewise.
4004         * lib/strcasestr.c: Likewise.
4005         * lib/memmem.c: Likewise.
4006
4007 2007-12-23  Bruno Haible  <bruno@clisp.org>
4008
4009         * tests/test-memmem.c: Include <string.h> first.
4010
4011 2007-12-22  Bruno Haible  <bruno@clisp.org>
4012
4013         * gnulib-tool (func_create_testdir): Change $auxdir while generating
4014         the contents of $testsbase.
4015         Reported by Ralf Wildenhues.
4016
4017 2007-12-22  Bruno Haible  <bruno@clisp.org>
4018
4019         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
4020         two variables local_ldadd_before, local_ldadd_last.
4021
4022 2007-12-20  Eric Blake  <ebb9@byu.net>
4023
4024         Work around circular library issue when cross-compiling.
4025         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
4026         that progname.o does not need to pull in rpl_memcmp.
4027
4028 2007-12-19  Eric Blake  <ebb9@byu.net>
4029
4030         Fix memmem to avoid O(n^2) worst-case complexity.
4031         * lib/memmem.c (knuth_morris_pratt): New function.
4032         (memmem): Use it if first few naive iterations fail.
4033         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
4034         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
4035         * modules/memchr (License): Likewise.
4036         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
4037         malloca.
4038         * tests/test-memmem.c: Rewrite, borrowing ideas from
4039         test-mbsstr1.c; the old version wouldn't even compile!
4040         * modules/memmem-tests: New file.
4041         * lib/string.in.h (rpl_memmem): Add declaration.
4042         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
4043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
4044         REPLACE_MEMMEM.
4045
4046 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4047
4048         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
4049         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
4050         before any system include files, and undef after them all.  This
4051         should fix a problem on VMS reported by John E. Malmberg in
4052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
4053
4054 2007-12-17  Eric Blake  <ebb9@byu.net>
4055
4056         Revert addition of verify, for BSD/OS.
4057         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
4058         can't handle large files, for the sake of obsolete platforms.
4059         * modules/fseeko (Depends-on): Remove verify.
4060         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
4061         * doc/functions/ftello.texi (ftello): Likewise.
4062         * doc/functions/fgetpos.texi (fgetpos): Likewise.
4063         Reported by Larry Jones.
4064
4065 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
4066
4067         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
4068         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
4069
4070 2007-12-17  Jim Meyering  <meyering@redhat.com>
4071
4072         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
4073         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
4074         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
4075         * modules/getcwd (Depends-on): Add openat.
4076         Reported by Petr Salinger.
4077
4078 2007-12-17  Bruno Haible  <bruno@clisp.org>
4079
4080         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
4081         avoid a segmentation fault of the configure test on x86_64 systems.
4082
4083 2007-12-15  Jim Meyering  <meyering@redhat.com>
4084
4085         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
4086
4087 2007-12-13  Eric Blake  <ebb9@byu.net>
4088
4089         Another fseek test.
4090         * tests/test-fseek.c (main): Also test ungetc handling.
4091         * tests/test-fseeko.c (main): Likewise.
4092         * modules/fseeko (Depends-on): Add verify.
4093         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
4094         large.
4095         Reported by Larry Jones.
4096
4097         Fix fseeko on mingw.
4098         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
4099         seek.
4100
4101         Beef up fseek tests.
4102         * tests/test-fseek.c (main): Also test eof handling.
4103         * tests/test-fseeko.c (main): Likewise.
4104         Reported by Larry Jones.
4105
4106 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
4107
4108         Fix fseeko on BSD-based platforms.
4109         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
4110         successful seek.
4111
4112 2007-12-12  Eric Blake  <ebb9@byu.net>
4113
4114         Allow circular dependency of separate libtests.a
4115         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
4116         when use_libtests.
4117
4118 2007-12-11  Eric Blake  <ebb9@byu.net>
4119
4120         Fix bug with -0.0L in previous patch.
4121         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
4122         * tests/test-isnan.c (main): Also test on zeroes.
4123         * tests/test-isnanf.c (main): Likewise.
4124         * tests/test-isnanl.h (main): Likewise.
4125
4126         Detect pseudo-denormals on x86 even when cross-compiling.
4127         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
4128         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
4129         invalid bit patterns that happen to satisfy ==.
4130
4131         Avoid link failures with separate libtests.a.
4132         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
4133         last, to satisfy circular dependencies.
4134
4135 2007-12-11  Eric Blake  <ebb9@byu.net>
4136         and Bruno Haible  <bruno@clisp.org>
4137
4138         Fix OpenBSD 4.0 <float.h> handling of long double.
4139         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
4140         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
4141         * doc/headers/float.texi (float.h): Document OpenBSD bug.
4142
4143 2007-12-11  Jim Meyering  <meyering@redhat.com>
4144
4145         * users.txt: Add libvirt.
4146
4147         Support versions of autoconf prior to 2.59c.
4148         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
4149         if it is not already defined.
4150
4151 2007-12-09  Bruno Haible  <bruno@clisp.org>
4152
4153         Let 'gnulib-tool --import' collect sources needed for the tests in
4154         tests/ rather than in lib/.
4155         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
4156         argument. If true, add rules to generate libtests.a, and put libtests.a
4157         into $(LDADD). Consider source files in subdirectories and set
4158         uses_subdirs.
4159         (func_emit_initmacro_start, func_emit_initmacro_end,
4160         func_emit_initmacro_done): Pass all arguments explicitly.
4161         (func_import): Determine two module lists main_modules,
4162         testsrelated_modules. Determine use_libtests. Determine two variables
4163         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
4164         instead of just sed_transform_lib_file. Determine two variables
4165         main_files and testsrelated_files. Compute 'files' as the union of
4166         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
4167         func_add_or_update. In the generated gnulib-comp.m4, collect the
4168         object files for tests/ in different variables than those for lib/.
4169         Substitute LIBTESTS_LIBDEPS.
4170         (func_create_testdir): Combine the uses_subdirs results from
4171         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
4172
4173 2007-12-09  Bruno Haible  <bruno@clisp.org>
4174
4175         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
4176         the build-aux directory.
4177
4178 2007-12-09  Bruno Haible  <bruno@clisp.org>
4179
4180         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
4181         introduced on 2006-09-09.
4182
4183 2007-12-07  Jim Meyering  <meyering@redhat.com>
4184
4185         Let these macros work also with autoconf-2.59.
4186         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
4187         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
4188         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4189
4190 2007-12-06  Jim Meyering  <meyering@redhat.com>
4191
4192         Avoid a configure-time syntax error in gl_FUNC_ACL.
4193         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
4194         function in each branch, before testing the cache variable.
4195
4196 2007-12-04  Eric Blake  <ebb9@byu.net>
4197
4198         Make scripts executable.
4199         * build-aux/config.guess: Add execute permissions.
4200         * build-aux/config.sub: Likewise.
4201         * build-aux/gendocs.sh: Likewise.
4202
4203         Fix frexp on mingw.
4204         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
4205         cross-compiling.
4206         * doc/functions/frexp.texi (frexp): Document the bug.
4207
4208         Make cygwin fseeko check more reliable.
4209         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
4210         version numbers, rather than unrelated feature check.
4211         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
4212         * doc/functions/ftello.texi (ftello): Likewise.
4213         Reported by Bruno Haible.
4214
4215         * m4/strerror.m4: Bump version number.
4216
4217 2007-12-03  Bruno Haible  <bruno@clisp.org>
4218
4219         * doc/functions/mprotect.texi: Mention the mingw problem.
4220
4221 2007-12-03  Eric Blake  <ebb9@byu.net>
4222
4223         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
4224         REPLACE_STRERROR is initialized before this macro.
4225
4226 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
4227
4228         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
4229         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
4230         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
4231         put -lsec in even for programs other than 'ls'.  This fixes a problem
4232         for gettext reported by Bruno Haible in
4233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
4234         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
4235         Add support for Solaris 10.  This isn't efficient, but should get the
4236         job done for now.
4237
4238 2007-12-03  James Youngman  <jay@gnu.org>
4239
4240         * doc/regexprops-generic.texi: change "an close-group" to "a
4241         close-group" and "illegal" to "not allowed".
4242
4243 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4244
4245         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
4246         pr_byname.h. Needed for the rare case when the maintainer has done
4247         "make maintainer-clean" in the source directory and then attempts a
4248         build outside the source directory.
4249         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
4250         scripts_byname.h.
4251
4252 2007-12-02  Martin Lambers <marlam@marlam.de>
4253             Bruno Haible  <bruno@clisp.org>
4254
4255         * lib/getpagesize.h: Remove file.
4256         * lib/unistd.in.h: Include declaration of getpagesize here.
4257         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
4258         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
4259         HAVE_SYS_PARAM_H.
4260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
4261         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4262         * modules/getpagesize (Files): Remove lib/getpagesize.h.
4263         (Depends-on): Add unistd.
4264         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4265         (Include): Use <unistd.h> instead of getpagesize.h.
4266         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
4267         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4268         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
4269         gl_GETPAGESIZE invocation, already handled by module dependency.
4270         * lib/pagealign_alloc.c: Don't include getpagesize.h.
4271
4272 2007-12-02  Bruno Haible  <bruno@clisp.org>
4273
4274         * modules/strings-tests: New file.
4275         * tests/test-strings.c: New file.
4276
4277         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
4278         * lib/strings.in.h: New file.
4279         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
4280         * m4/strings_h.m4: New file.
4281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
4282         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
4283         * modules/strings: New file.
4284         * modules/string (Makefile.am): Update.
4285         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
4286         Reported by Karl Berry.
4287
4288 2007-12-01  Eric Blake  <ebb9@byu.net>
4289
4290         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
4291         accomodate fix in cygwin 1.5.25.
4292
4293 2007-12-01  Jim Meyering  <meyering@redhat.com>
4294
4295         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
4296         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4297         that would inhibit utf8-optimization of a regexp containing line-
4298         or buffer-anchors, e.g., `^', `$'.
4299
4300 2007-11-30  Bruno Haible  <bruno@clisp.org>
4301
4302         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
4303         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
4304         glthread_recursive_lock_init.
4305         * lib/lock.c (glthread_recursive_lock_init)
4306         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
4307         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4308
4309 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4310
4311         New function qset_acl, like set_acl but with syscall semantics.
4312         * lib/acl.h (qset_acl): New decl.
4313         * lib/acl.c (qset_acl): New function.
4314         (set_acl): Use new function.  Use more-consistent diagnostics.
4315
4316 2007-11-28  Jim Meyering  <meyering@redhat.com>
4317
4318         * modules/physmem (License): Change from GPL to LGPLv2+.
4319
4320 2007-11-26  Bruno Haible  <bruno@clisp.org>
4321
4322         * lib/vasnprintf.c (decode_long_double): Don't abort if the
4323         'long double' type has excess precision.
4324         Reported by Jim Meyering in
4325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
4326
4327 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4328
4329         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
4330         Sync from <http://gnu.org/licenses>.
4331         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
4332         with license text from same location.
4333         * doc/maintain.texi, doc/standards.texi:  Sync from
4334         <http://savannah.gnu.org/projects/gnustandards>.
4335
4336 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
4337         and Jim Meyering  <meyering@redhat.com>
4338
4339         Adjust getdate' grammar to accept a slightly more regular language.
4340         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
4341         Before, the former was rejected.
4342         * lib/getdate.y (digits_to_date_time): New function, factored
4343         out of ...
4344         (number): ...here.  Just call digits_to_date_time.
4345         (hybrid): New non-terminal to handle an <unsigned number,
4346         signed relative offset> sequence consistently.
4347
4348 2007-11-18  Jim Meyering  <meyering@redhat.com>
4349
4350         Pull my changes from coreutils:
4351         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
4352         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
4353         use of $gnulib_tool_option_extras, so that it's separated from the
4354         preceding argument.
4355
4356         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
4357         * build-aux/bootstrap (cp_mark_as_generated): Create any required
4358         parent destination directories before copying a file into place.
4359
4360 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
4361
4362         bootstrap: work also with 4-argument variant of AC_INIT
4363         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
4364
4365 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4366
4367         Port test-getaddrinfo to Solaris.
4368         Problem reported by Bruno Haible in
4369         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
4370         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
4371         explanation of setting 'hints'.
4372         Don't reject an implementation merely because it returns EAI_SERVICE.
4373         (EAI_SERVICE): Define to 0 if not defined.
4374
4375 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4376
4377         The license of gnu-make and posix-shell is now "GPLed build tool".
4378         * modules/gnu-make (License): Likewise.
4379         * modules/posix-shell (License): Likewise.
4380
4381         New module posix-shell, for determining a POSIX shell
4382         or perhaps something that is close enough to a POSIX shell.
4383         * m4/posix-shell.m4: New file.
4384         * modules/posix-shell: New file.
4385
4386         * MODULES.html.sh: Mention new module.
4387
4388         New module gnu-make, for determining whether we're using GNU Make.
4389         * m4/gnu-make.m4: New file.
4390         * modules/gnu-make: New file.
4391         * MODULES.html.sh: Mention new module.
4392
4393 2007-11-14  Jim Meyering  <meyering@redhat.com>
4394
4395         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
4396         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
4397         use this macro to create a function _definition_.
4398         Remove useless "#undef ARGMATCH_DIE".
4399
4400 2007-11-14  Bruno Haible  <bruno@clisp.org>
4401
4402         * lib/config.charset: Update for OpenBSD 4.1.
4403         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
4404
4405 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4406
4407         Document 64-bit #if problems in stdint.texi.
4408         * doc/headers/stdint.texi (stdint.h): Mention problems with
4409         64-bit-#if, and how to work around them.
4410
4411         Don't insist on 'long long int' support in the preprocessor.  It
4412         breaks too many things.  For example, PRIdMAX still uses a 'long
4413         long int' format with the latest Sun compiler, even though
4414         HAVE_LONG_LONG_INT isn't defined due to that compiler's
4415         preprocessor problem.  This causes the latest coreutils to dump
4416         core on Solaris 10 sparc with the Sun C compiler.
4417         Instead, fix the 2007-10-16 problem in a different way, by evaluating
4418         the troublesome expressions at configure-time, not at #if-time.
4419         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
4420         preprocessor.
4421         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
4422         compile-time C checks, done at 'configure'-time.
4423         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
4424         * modules/inttypes (Makefile): Substitute the new symbols that
4425         gl_INTTYPES_H now generates.
4426         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
4427
4428 2007-11-12  Bruno Haible  <bruno@clisp.org>
4429
4430         Tests for Unicode character classification functions.
4431
4432         * modules/unictype/bidicategory-byname-tests: New file.
4433         * modules/unictype/bidicategory-name-tests: New file.
4434         * modules/unictype/bidicategory-of-tests: New file.
4435         * modules/unictype/bidicategory-test-tests: New file.
4436         * modules/unictype/block-list-tests: New file.
4437         * modules/unictype/block-of-tests: New file.
4438         * modules/unictype/block-test-tests: New file.
4439         * modules/unictype/category-C-tests: New file.
4440         * modules/unictype/category-Cc-tests: New file.
4441         * modules/unictype/category-Cf-tests: New file.
4442         * modules/unictype/category-Cn-tests: New file.
4443         * modules/unictype/category-Co-tests: New file.
4444         * modules/unictype/category-Cs-tests: New file.
4445         * modules/unictype/category-L-tests: New file.
4446         * modules/unictype/category-Ll-tests: New file.
4447         * modules/unictype/category-Lm-tests: New file.
4448         * modules/unictype/category-Lo-tests: New file.
4449         * modules/unictype/category-Lt-tests: New file.
4450         * modules/unictype/category-Lu-tests: New file.
4451         * modules/unictype/category-M-tests: New file.
4452         * modules/unictype/category-Mc-tests: New file.
4453         * modules/unictype/category-Me-tests: New file.
4454         * modules/unictype/category-Mn-tests: New file.
4455         * modules/unictype/category-N-tests: New file.
4456         * modules/unictype/category-Nd-tests: New file.
4457         * modules/unictype/category-Nl-tests: New file.
4458         * modules/unictype/category-No-tests: New file.
4459         * modules/unictype/category-P-tests: New file.
4460         * modules/unictype/category-Pc-tests: New file.
4461         * modules/unictype/category-Pd-tests: New file.
4462         * modules/unictype/category-Pe-tests: New file.
4463         * modules/unictype/category-Pf-tests: New file.
4464         * modules/unictype/category-Pi-tests: New file.
4465         * modules/unictype/category-Po-tests: New file.
4466         * modules/unictype/category-Ps-tests: New file.
4467         * modules/unictype/category-S-tests: New file.
4468         * modules/unictype/category-Sc-tests: New file.
4469         * modules/unictype/category-Sk-tests: New file.
4470         * modules/unictype/category-Sm-tests: New file.
4471         * modules/unictype/category-So-tests: New file.
4472         * modules/unictype/category-Z-tests: New file.
4473         * modules/unictype/category-Zl-tests: New file.
4474         * modules/unictype/category-Zp-tests: New file.
4475         * modules/unictype/category-Zs-tests: New file.
4476         * modules/unictype/category-and-not-tests: New file.
4477         * modules/unictype/category-and-tests: New file.
4478         * modules/unictype/category-byname-tests: New file.
4479         * modules/unictype/category-name-tests: New file.
4480         * modules/unictype/category-none-tests: New file.
4481         * modules/unictype/category-of-tests: New file.
4482         * modules/unictype/category-or-tests: New file.
4483         * modules/unictype/category-test-withtable-tests: New file.
4484         * modules/unictype/combining-class-tests: New file.
4485         * modules/unictype/ctype-alnum-tests: New file.
4486         * modules/unictype/ctype-alpha-tests: New file.
4487         * modules/unictype/ctype-blank-tests: New file.
4488         * modules/unictype/ctype-cntrl-tests: New file.
4489         * modules/unictype/ctype-digit-tests: New file.
4490         * modules/unictype/ctype-graph-tests: New file.
4491         * modules/unictype/ctype-lower-tests: New file.
4492         * modules/unictype/ctype-print-tests: New file.
4493         * modules/unictype/ctype-punct-tests: New file.
4494         * modules/unictype/ctype-space-tests: New file.
4495         * modules/unictype/ctype-upper-tests: New file.
4496         * modules/unictype/ctype-xdigit-tests: New file.
4497         * modules/unictype/decimal-digit-tests: New file.
4498         * modules/unictype/digit-tests: New file.
4499         * modules/unictype/mirror-tests: New file.
4500         * modules/unictype/numeric-tests: New file.
4501         * modules/unictype/property-alphabetic-tests: New file.
4502         * modules/unictype/property-ascii-hex-digit-tests: New file.
4503         * modules/unictype/property-bidi-arabic-digit-tests: New file.
4504         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
4505         * modules/unictype/property-bidi-block-separator-tests: New file.
4506         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
4507         * modules/unictype/property-bidi-common-separator-tests: New file.
4508         * modules/unictype/property-bidi-control-tests: New file.
4509         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
4510         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
4511         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
4512         * modules/unictype/property-bidi-european-digit-tests: New file.
4513         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
4514         * modules/unictype/property-bidi-left-to-right-tests: New file.
4515         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
4516         * modules/unictype/property-bidi-other-neutral-tests: New file.
4517         * modules/unictype/property-bidi-pdf-tests: New file.
4518         * modules/unictype/property-bidi-segment-separator-tests: New file.
4519         * modules/unictype/property-bidi-whitespace-tests: New file.
4520         * modules/unictype/property-byname-tests: New file.
4521         * modules/unictype/property-combining-tests: New file.
4522         * modules/unictype/property-composite-tests: New file.
4523         * modules/unictype/property-currency-symbol-tests: New file.
4524         * modules/unictype/property-dash-tests: New file.
4525         * modules/unictype/property-decimal-digit-tests: New file.
4526         * modules/unictype/property-default-ignorable-code-point-tests: New file.
4527         * modules/unictype/property-deprecated-tests: New file.
4528         * modules/unictype/property-diacritic-tests: New file.
4529         * modules/unictype/property-extender-tests: New file.
4530         * modules/unictype/property-format-control-tests: New file.
4531         * modules/unictype/property-grapheme-base-tests: New file.
4532         * modules/unictype/property-grapheme-extend-tests: New file.
4533         * modules/unictype/property-grapheme-link-tests: New file.
4534         * modules/unictype/property-hex-digit-tests: New file.
4535         * modules/unictype/property-hyphen-tests: New file.
4536         * modules/unictype/property-id-continue-tests: New file.
4537         * modules/unictype/property-id-start-tests: New file.
4538         * modules/unictype/property-ideographic-tests: New file.
4539         * modules/unictype/property-ids-binary-operator-tests: New file.
4540         * modules/unictype/property-ids-trinary-operator-tests: New file.
4541         * modules/unictype/property-ignorable-control-tests: New file.
4542         * modules/unictype/property-iso-control-tests: New file.
4543         * modules/unictype/property-join-control-tests: New file.
4544         * modules/unictype/property-left-of-pair-tests: New file.
4545         * modules/unictype/property-line-separator-tests: New file.
4546         * modules/unictype/property-logical-order-exception-tests: New file.
4547         * modules/unictype/property-lowercase-tests: New file.
4548         * modules/unictype/property-math-tests: New file.
4549         * modules/unictype/property-non-break-tests: New file.
4550         * modules/unictype/property-not-a-character-tests: New file.
4551         * modules/unictype/property-numeric-tests: New file.
4552         * modules/unictype/property-other-alphabetic-tests: New file.
4553         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
4554         * modules/unictype/property-other-grapheme-extend-tests: New file.
4555         * modules/unictype/property-other-id-continue-tests: New file.
4556         * modules/unictype/property-other-id-start-tests: New file.
4557         * modules/unictype/property-other-lowercase-tests: New file.
4558         * modules/unictype/property-other-math-tests: New file.
4559         * modules/unictype/property-other-uppercase-tests: New file.
4560         * modules/unictype/property-paired-punctuation-tests: New file.
4561         * modules/unictype/property-paragraph-separator-tests: New file.
4562         * modules/unictype/property-pattern-syntax-tests: New file.
4563         * modules/unictype/property-pattern-white-space-tests: New file.
4564         * modules/unictype/property-private-use-tests: New file.
4565         * modules/unictype/property-punctuation-tests: New file.
4566         * modules/unictype/property-quotation-mark-tests: New file.
4567         * modules/unictype/property-radical-tests: New file.
4568         * modules/unictype/property-sentence-terminal-tests: New file.
4569         * modules/unictype/property-soft-dotted-tests: New file.
4570         * modules/unictype/property-space-tests: New file.
4571         * modules/unictype/property-terminal-punctuation-tests: New file.
4572         * modules/unictype/property-test-tests: New file.
4573         * modules/unictype/property-titlecase-tests: New file.
4574         * modules/unictype/property-unassigned-code-value-tests: New file.
4575         * modules/unictype/property-unified-ideograph-tests: New file.
4576         * modules/unictype/property-uppercase-tests: New file.
4577         * modules/unictype/property-variation-selector-tests: New file.
4578         * modules/unictype/property-white-space-tests: New file.
4579         * modules/unictype/property-xid-continue-tests: New file.
4580         * modules/unictype/property-xid-start-tests: New file.
4581         * modules/unictype/property-zero-width-tests: New file.
4582         * modules/unictype/scripts-tests: New file.
4583         * modules/unictype/syntax-c-ident-tests: New file.
4584         * modules/unictype/syntax-c-whitespace-tests: New file.
4585         * modules/unictype/syntax-java-ident-tests: New file.
4586         * modules/unictype/syntax-java-whitespace-tests: New file.
4587         * tests/unictype/test-bidi_byname.c: New file.
4588         * tests/unictype/test-bidi_name.c: New file.
4589         * tests/unictype/test-bidi_of.c: New file.
4590         * tests/unictype/test-bidi_test.c: New file.
4591         * tests/unictype/test-block_list.c: New file.
4592         * tests/unictype/test-block_of.c: New file.
4593         * tests/unictype/test-block_test.c: New file.
4594         * tests/unictype/test-categ_and.c: New file.
4595         * tests/unictype/test-categ_and_not.c: New file.
4596         * tests/unictype/test-categ_byname.c: New file.
4597         * tests/unictype/test-categ_name.c: New file.
4598         * tests/unictype/test-categ_none.c: New file.
4599         * tests/unictype/test-categ_of.c: New file.
4600         * tests/unictype/test-categ_or.c: New file.
4601         * tests/unictype/test-categ_test_withtable.c: New file.
4602         * tests/unictype/test-combining.c: New file.
4603         * tests/unictype/test-decdigit.c: New file.
4604         * tests/unictype/test-digit.c: New file.
4605         * tests/unictype/test-mirror.c: New file.
4606         * tests/unictype/test-numeric.c: New file.
4607         * tests/unictype/test-pr_byname.c: New file.
4608         * tests/unictype/test-pr_test.c: New file.
4609         * tests/unictype/test-predicate-part1.h: New file.
4610         * tests/unictype/test-predicate-part2.h: New file.
4611         * tests/unictype/test-scripts.c: New file.
4612         * tests/unictype/test-sy_c_ident.c: New file.
4613         * tests/unictype/test-sy_java_ident.c: New file.
4614
4615         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
4616         for Unicode 5.0.0.
4617         * tests/unictype/test-categ_Cc.c: Likewise.
4618         * tests/unictype/test-categ_Cf.c: Likewise.
4619         * tests/unictype/test-categ_Cn.c: Likewise.
4620         * tests/unictype/test-categ_Co.c: Likewise.
4621         * tests/unictype/test-categ_Cs.c: Likewise.
4622         * tests/unictype/test-categ_L.c: Likewise.
4623         * tests/unictype/test-categ_Ll.c: Likewise.
4624         * tests/unictype/test-categ_Lm.c: Likewise.
4625         * tests/unictype/test-categ_Lo.c: Likewise.
4626         * tests/unictype/test-categ_Lt.c: Likewise.
4627         * tests/unictype/test-categ_Lu.c: Likewise.
4628         * tests/unictype/test-categ_M.c: Likewise.
4629         * tests/unictype/test-categ_Mc.c: Likewise.
4630         * tests/unictype/test-categ_Me.c: Likewise.
4631         * tests/unictype/test-categ_Mn.c: Likewise.
4632         * tests/unictype/test-categ_N.c: Likewise.
4633         * tests/unictype/test-categ_Nd.c: Likewise.
4634         * tests/unictype/test-categ_Nl.c: Likewise.
4635         * tests/unictype/test-categ_No.c: Likewise.
4636         * tests/unictype/test-categ_P.c: Likewise.
4637         * tests/unictype/test-categ_Pc.c: Likewise.
4638         * tests/unictype/test-categ_Pd.c: Likewise.
4639         * tests/unictype/test-categ_Pe.c: Likewise.
4640         * tests/unictype/test-categ_Pf.c: Likewise.
4641         * tests/unictype/test-categ_Pi.c: Likewise.
4642         * tests/unictype/test-categ_Po.c: Likewise.
4643         * tests/unictype/test-categ_Ps.c: Likewise.
4644         * tests/unictype/test-categ_S.c: Likewise.
4645         * tests/unictype/test-categ_Sc.c: Likewise.
4646         * tests/unictype/test-categ_Sk.c: Likewise.
4647         * tests/unictype/test-categ_Sm.c: Likewise.
4648         * tests/unictype/test-categ_So.c: Likewise.
4649         * tests/unictype/test-categ_Z.c: Likewise.
4650         * tests/unictype/test-categ_Zl.c: Likewise.
4651         * tests/unictype/test-categ_Zp.c: Likewise.
4652         * tests/unictype/test-categ_Zs.c: Likewise.
4653         * tests/unictype/test-ctype_alnum.c: Likewise.
4654         * tests/unictype/test-ctype_alpha.c: Likewise.
4655         * tests/unictype/test-ctype_blank.c: Likewise.
4656         * tests/unictype/test-ctype_cntrl.c: Likewise.
4657         * tests/unictype/test-ctype_digit.c: Likewise.
4658         * tests/unictype/test-ctype_graph.c: Likewise.
4659         * tests/unictype/test-ctype_lower.c: Likewise.
4660         * tests/unictype/test-ctype_print.c: Likewise.
4661         * tests/unictype/test-ctype_punct.c: Likewise.
4662         * tests/unictype/test-ctype_space.c: Likewise.
4663         * tests/unictype/test-ctype_upper.c: Likewise.
4664         * tests/unictype/test-ctype_xdigit.c: Likewise.
4665         * tests/unictype/test-decdigit.h: Likewise.
4666         * tests/unictype/test-digit.h: Likewise.
4667         * tests/unictype/test-numeric.h: Likewise.
4668         * tests/unictype/test-pr_alphabetic.c: Likewise.
4669         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
4670         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4671         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4672         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
4673         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4674         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
4675         * tests/unictype/test-pr_bidi_control.c: Likewise.
4676         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
4677         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
4678         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4679         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4680         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4681         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4682         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4683         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4684         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
4685         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
4686         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
4687         * tests/unictype/test-pr_combining.c: Likewise.
4688         * tests/unictype/test-pr_composite.c: Likewise.
4689         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4690         * tests/unictype/test-pr_dash.c: Likewise.
4691         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4692         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
4693         * tests/unictype/test-pr_deprecated.c: Likewise.
4694         * tests/unictype/test-pr_diacritic.c: Likewise.
4695         * tests/unictype/test-pr_extender.c: Likewise.
4696         * tests/unictype/test-pr_format_control.c: Likewise.
4697         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4698         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4699         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4700         * tests/unictype/test-pr_hex_digit.c: Likewise.
4701         * tests/unictype/test-pr_hyphen.c: Likewise.
4702         * tests/unictype/test-pr_id_continue.c: Likewise.
4703         * tests/unictype/test-pr_id_start.c: Likewise.
4704         * tests/unictype/test-pr_ideographic.c: Likewise.
4705         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
4706         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
4707         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4708         * tests/unictype/test-pr_iso_control.c: Likewise.
4709         * tests/unictype/test-pr_join_control.c: Likewise.
4710         * tests/unictype/test-pr_left_of_pair.c: Likewise.
4711         * tests/unictype/test-pr_line_separator.c: Likewise.
4712         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4713         * tests/unictype/test-pr_lowercase.c: Likewise.
4714         * tests/unictype/test-pr_math.c: Likewise.
4715         * tests/unictype/test-pr_non_break.c: Likewise.
4716         * tests/unictype/test-pr_not_a_character.c: Likewise.
4717         * tests/unictype/test-pr_numeric.c: Likewise.
4718         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4719         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
4720         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
4721         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4722         * tests/unictype/test-pr_other_id_start.c: Likewise.
4723         * tests/unictype/test-pr_other_lowercase.c: Likewise.
4724         * tests/unictype/test-pr_other_math.c: Likewise.
4725         * tests/unictype/test-pr_other_uppercase.c: Likewise.
4726         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
4727         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
4728         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
4729         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
4730         * tests/unictype/test-pr_private_use.c: Likewise.
4731         * tests/unictype/test-pr_punctuation.c: Likewise.
4732         * tests/unictype/test-pr_quotation_mark.c: Likewise.
4733         * tests/unictype/test-pr_radical.c: Likewise.
4734         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4735         * tests/unictype/test-pr_soft_dotted.c: Likewise.
4736         * tests/unictype/test-pr_space.c: Likewise.
4737         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4738         * tests/unictype/test-pr_titlecase.c: Likewise.
4739         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4740         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4741         * tests/unictype/test-pr_uppercase.c: Likewise.
4742         * tests/unictype/test-pr_variation_selector.c: Likewise.
4743         * tests/unictype/test-pr_white_space.c: Likewise.
4744         * tests/unictype/test-pr_xid_continue.c: Likewise.
4745         * tests/unictype/test-pr_xid_start.c: Likewise.
4746         * tests/unictype/test-pr_zero_width.c: Likewise.
4747         * tests/unictype/test-sy_c_whitespace.c: Likewise.
4748         * tests/unictype/test-sy_java_whitespace.c: Likewise.
4749
4750 2007-11-12  Bruno Haible  <bruno@clisp.org>
4751
4752         Unicode character classification functions.
4753         * lib/unictype.h: New file.
4754         * modules/unictype/base: New file.
4755         * modules/unictype/category-L: New file.
4756         * modules/unictype/category-Lu: New file.
4757         * modules/unictype/category-Ll: New file.
4758         * modules/unictype/category-Lt: New file.
4759         * modules/unictype/category-Lm: New file.
4760         * modules/unictype/category-Lo: New file.
4761         * modules/unictype/category-M: New file.
4762         * modules/unictype/category-Mn: New file.
4763         * modules/unictype/category-Mc: New file.
4764         * modules/unictype/category-Me: New file.
4765         * modules/unictype/category-N: New file.
4766         * modules/unictype/category-Nd: New file.
4767         * modules/unictype/category-Nl: New file.
4768         * modules/unictype/category-No: New file.
4769         * modules/unictype/category-P: New file.
4770         * modules/unictype/category-Pc: New file.
4771         * modules/unictype/category-Pd: New file.
4772         * modules/unictype/category-Ps: New file.
4773         * modules/unictype/category-Pe: New file.
4774         * modules/unictype/category-Pi: New file.
4775         * modules/unictype/category-Pf: New file.
4776         * modules/unictype/category-Po: New file.
4777         * modules/unictype/category-S: New file.
4778         * modules/unictype/category-Sm: New file.
4779         * modules/unictype/category-Sc: New file.
4780         * modules/unictype/category-Sk: New file.
4781         * modules/unictype/category-So: New file.
4782         * modules/unictype/category-Z: New file.
4783         * modules/unictype/category-Zs: New file.
4784         * modules/unictype/category-Zl: New file.
4785         * modules/unictype/category-Zp: New file.
4786         * modules/unictype/category-C: New file.
4787         * modules/unictype/category-Cc: New file.
4788         * modules/unictype/category-Cf: New file.
4789         * modules/unictype/category-Cs: New file.
4790         * modules/unictype/category-Co: New file.
4791         * modules/unictype/category-Cn: New file.
4792         * modules/unictype/category-or: New file.
4793         * modules/unictype/category-of: New file.
4794         * modules/unictype/category-test: New file.
4795         * modules/unictype/category-test-withtable: New file.
4796         * modules/unictype/category-byname: New file.
4797         * modules/unictype/category-none: New file.
4798         * modules/unictype/category-and: New file.
4799         * modules/unictype/category-and-not: New file.
4800         * modules/unictype/category-name: New file.
4801         * modules/unictype/combining-class: New file.
4802         * modules/unictype/category-all: New file.
4803         * modules/unictype/bidicategory-all: New file.
4804         * modules/unictype/bidicategory-byname: New file.
4805         * modules/unictype/bidicategory-name: New file.
4806         * modules/unictype/bidicategory-of: New file.
4807         * modules/unictype/bidicategory-test: New file.
4808         * modules/unictype/decimal-digit: New file.
4809         * modules/unictype/digit: New file.
4810         * modules/unictype/numeric: New file.
4811         * modules/unictype/mirror: New file.
4812         * modules/unictype/property-white-space: New file.
4813         * modules/unictype/property-alphabetic: New file.
4814         * modules/unictype/property-other-alphabetic: New file.
4815         * modules/unictype/property-not-a-character: New file.
4816         * modules/unictype/property-default-ignorable-code-point: New file.
4817         * modules/unictype/property-other-default-ignorable-code-point: New
4818         file.
4819         * modules/unictype/property-deprecated: New file.
4820         * modules/unictype/property-logical-order-exception: New file.
4821         * modules/unictype/property-variation-selector: New file.
4822         * modules/unictype/property-private-use: New file.
4823         * modules/unictype/property-unassigned-code-value: New file.
4824         * modules/unictype/property-uppercase: New file.
4825         * modules/unictype/property-other-uppercase: New file.
4826         * modules/unictype/property-lowercase: New file.
4827         * modules/unictype/property-other-lowercase: New file.
4828         * modules/unictype/property-titlecase: New file.
4829         * modules/unictype/property-soft-dotted: New file.
4830         * modules/unictype/property-id-start: New file.
4831         * modules/unictype/property-other-id-start: New file.
4832         * modules/unictype/property-id-continue: New file.
4833         * modules/unictype/property-other-id-continue: New file.
4834         * modules/unictype/property-xid-start: New file.
4835         * modules/unictype/property-xid-continue: New file.
4836         * modules/unictype/property-pattern-white-space: New file.
4837         * modules/unictype/property-pattern-syntax: New file.
4838         * modules/unictype/property-join-control: New file.
4839         * modules/unictype/property-grapheme-base: New file.
4840         * modules/unictype/property-grapheme-extend: New file.
4841         * modules/unictype/property-other-grapheme-extend: New file.
4842         * modules/unictype/property-grapheme-link: New file.
4843         * modules/unictype/property-bidi-control: New file.
4844         * modules/unictype/property-bidi-left-to-right: New file.
4845         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
4846         * modules/unictype/property-bidi-arabic-right-to-left: New file.
4847         * modules/unictype/property-bidi-european-digit: New file.
4848         * modules/unictype/property-bidi-eur-num-separator: New file.
4849         * modules/unictype/property-bidi-eur-num-terminator: New file.
4850         * modules/unictype/property-bidi-arabic-digit: New file.
4851         * modules/unictype/property-bidi-common-separator: New file.
4852         * modules/unictype/property-bidi-block-separator: New file.
4853         * modules/unictype/property-bidi-segment-separator: New file.
4854         * modules/unictype/property-bidi-whitespace: New file.
4855         * modules/unictype/property-bidi-non-spacing-mark: New file.
4856         * modules/unictype/property-bidi-boundary-neutral: New file.
4857         * modules/unictype/property-bidi-pdf: New file.
4858         * modules/unictype/property-bidi-embedding-or-override: New file.
4859         * modules/unictype/property-bidi-other-neutral: New file.
4860         * modules/unictype/property-hex-digit: New file.
4861         * modules/unictype/property-ascii-hex-digit: New file.
4862         * modules/unictype/property-ideographic: New file.
4863         * modules/unictype/property-unified-ideograph: New file.
4864         * modules/unictype/property-radical: New file.
4865         * modules/unictype/property-ids-binary-operator: New file.
4866         * modules/unictype/property-ids-trinary-operator: New file.
4867         * modules/unictype/property-zero-width: New file.
4868         * modules/unictype/property-space: New file.
4869         * modules/unictype/property-non-break: New file.
4870         * modules/unictype/property-iso-control: New file.
4871         * modules/unictype/property-format-control: New file.
4872         * modules/unictype/property-dash: New file.
4873         * modules/unictype/property-hyphen: New file.
4874         * modules/unictype/property-punctuation: New file.
4875         * modules/unictype/property-line-separator: New file.
4876         * modules/unictype/property-paragraph-separator: New file.
4877         * modules/unictype/property-quotation-mark: New file.
4878         * modules/unictype/property-sentence-terminal: New file.
4879         * modules/unictype/property-terminal-punctuation: New file.
4880         * modules/unictype/property-currency-symbol: New file.
4881         * modules/unictype/property-math: New file.
4882         * modules/unictype/property-other-math: New file.
4883         * modules/unictype/property-paired-punctuation: New file.
4884         * modules/unictype/property-left-of-pair: New file.
4885         * modules/unictype/property-combining: New file.
4886         * modules/unictype/property-composite: New file.
4887         * modules/unictype/property-decimal-digit: New file.
4888         * modules/unictype/property-numeric: New file.
4889         * modules/unictype/property-diacritic: New file.
4890         * modules/unictype/property-extender: New file.
4891         * modules/unictype/property-ignorable-control: New file.
4892         * modules/unictype/property-test: New file.
4893         * modules/unictype/property-byname: New file.
4894         * modules/unictype/property-all: New file.
4895         * modules/unictype/scripts: New file.
4896         * modules/unictype/scripts-all: New file.
4897         * modules/unictype/block-of: New file.
4898         * modules/unictype/block-test: New file.
4899         * modules/unictype/block-list: New file.
4900         * modules/unictype/block-all: New file.
4901         * modules/unictype/syntax-c-whitespace: New file.
4902         * modules/unictype/syntax-java-whitespace: New file.
4903         * modules/unictype/syntax-c-ident: New file.
4904         * modules/unictype/syntax-java-ident: New file.
4905         * modules/unictype/ctype-alnum: New file.
4906         * modules/unictype/ctype-alpha: New file.
4907         * modules/unictype/ctype-cntrl: New file.
4908         * modules/unictype/ctype-digit: New file.
4909         * modules/unictype/ctype-graph: New file.
4910         * modules/unictype/ctype-lower: New file.
4911         * modules/unictype/ctype-print: New file.
4912         * modules/unictype/ctype-punct: New file.
4913         * modules/unictype/ctype-space: New file.
4914         * modules/unictype/ctype-upper: New file.
4915         * modules/unictype/ctype-xdigit: New file.
4916         * modules/unictype/ctype-blank: New file.
4917         * lib/unictype/bidi_byname.c: New file.
4918         * lib/unictype/bidi_name.c: New file.
4919         * lib/unictype/bidi_of.c: New file.
4920         * lib/unictype/bidi_test.c: New file.
4921         * lib/unictype/bitmap.h: New file.
4922         * lib/unictype/block_test.c: New file.
4923         * lib/unictype/blocks.c: New file.
4924         * lib/unictype/categ_C.c: New file.
4925         * lib/unictype/categ_Cc.c: New file.
4926         * lib/unictype/categ_Cf.c: New file.
4927         * lib/unictype/categ_Cn.c: New file.
4928         * lib/unictype/categ_Co.c: New file.
4929         * lib/unictype/categ_Cs.c: New file.
4930         * lib/unictype/categ_L.c: New file.
4931         * lib/unictype/categ_Ll.c: New file.
4932         * lib/unictype/categ_Lm.c: New file.
4933         * lib/unictype/categ_Lo.c: New file.
4934         * lib/unictype/categ_Lt.c: New file.
4935         * lib/unictype/categ_Lu.c: New file.
4936         * lib/unictype/categ_M.c: New file.
4937         * lib/unictype/categ_Mc.c: New file.
4938         * lib/unictype/categ_Me.c: New file.
4939         * lib/unictype/categ_Mn.c: New file.
4940         * lib/unictype/categ_N.c: New file.
4941         * lib/unictype/categ_Nd.c: New file.
4942         * lib/unictype/categ_Nl.c: New file.
4943         * lib/unictype/categ_No.c: New file.
4944         * lib/unictype/categ_P.c: New file.
4945         * lib/unictype/categ_Pc.c: New file.
4946         * lib/unictype/categ_Pd.c: New file.
4947         * lib/unictype/categ_Pe.c: New file.
4948         * lib/unictype/categ_Pf.c: New file.
4949         * lib/unictype/categ_Pi.c: New file.
4950         * lib/unictype/categ_Po.c: New file.
4951         * lib/unictype/categ_Ps.c: New file.
4952         * lib/unictype/categ_S.c: New file.
4953         * lib/unictype/categ_Sc.c: New file.
4954         * lib/unictype/categ_Sk.c: New file.
4955         * lib/unictype/categ_Sm.c: New file.
4956         * lib/unictype/categ_So.c: New file.
4957         * lib/unictype/categ_Z.c: New file.
4958         * lib/unictype/categ_Zl.c: New file.
4959         * lib/unictype/categ_Zp.c: New file.
4960         * lib/unictype/categ_Zs.c: New file.
4961         * lib/unictype/categ_and.c: New file.
4962         * lib/unictype/categ_and_not.c: New file.
4963         * lib/unictype/categ_byname.c: New file.
4964         * lib/unictype/categ_name.c: New file.
4965         * lib/unictype/categ_none.c: New file.
4966         * lib/unictype/categ_of.c: New file.
4967         * lib/unictype/categ_or.c: New file.
4968         * lib/unictype/categ_test.c: New file.
4969         * lib/unictype/combining.c: New file.
4970         * lib/unictype/ctype_alnum.c: New file.
4971         * lib/unictype/ctype_alpha.c: New file.
4972         * lib/unictype/ctype_blank.c: New file.
4973         * lib/unictype/ctype_cntrl.c: New file.
4974         * lib/unictype/ctype_digit.c: New file.
4975         * lib/unictype/ctype_graph.c: New file.
4976         * lib/unictype/ctype_lower.c: New file.
4977         * lib/unictype/ctype_print.c: New file.
4978         * lib/unictype/ctype_punct.c: New file.
4979         * lib/unictype/ctype_space.c: New file.
4980         * lib/unictype/ctype_upper.c: New file.
4981         * lib/unictype/ctype_xdigit.c: New file.
4982         * lib/unictype/decdigit.c: New file.
4983         * lib/unictype/digit.c: New file.
4984         * lib/unictype/identsyntaxmap.h: New file.
4985         * lib/unictype/mirror.c: New file.
4986         * lib/unictype/numeric.c: New file.
4987         * lib/unictype/pr_alphabetic.c: New file.
4988         * lib/unictype/pr_ascii_hex_digit.c: New file.
4989         * lib/unictype/pr_bidi_arabic_digit.c: New file.
4990         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
4991         * lib/unictype/pr_bidi_block_separator.c: New file.
4992         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
4993         * lib/unictype/pr_bidi_common_separator.c: New file.
4994         * lib/unictype/pr_bidi_control.c: New file.
4995         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
4996         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
4997         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
4998         * lib/unictype/pr_bidi_european_digit.c: New file.
4999         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
5000         * lib/unictype/pr_bidi_left_to_right.c: New file.
5001         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
5002         * lib/unictype/pr_bidi_other_neutral.c: New file.
5003         * lib/unictype/pr_bidi_pdf.c: New file.
5004         * lib/unictype/pr_bidi_segment_separator.c: New file.
5005         * lib/unictype/pr_bidi_whitespace.c: New file.
5006         * lib/unictype/pr_byname.c: New file.
5007         * lib/unictype/pr_byname.gperf: New file.
5008         * lib/unictype/pr_combining.c: New file.
5009         * lib/unictype/pr_composite.c: New file.
5010         * lib/unictype/pr_currency_symbol.c: New file.
5011         * lib/unictype/pr_dash.c: New file.
5012         * lib/unictype/pr_decimal_digit.c: New file.
5013         * lib/unictype/pr_default_ignorable_code_point.c: New file.
5014         * lib/unictype/pr_deprecated.c: New file.
5015         * lib/unictype/pr_diacritic.c: New file.
5016         * lib/unictype/pr_extender.c: New file.
5017         * lib/unictype/pr_format_control.c: New file.
5018         * lib/unictype/pr_grapheme_base.c: New file.
5019         * lib/unictype/pr_grapheme_extend.c: New file.
5020         * lib/unictype/pr_grapheme_link.c: New file.
5021         * lib/unictype/pr_hex_digit.c: New file.
5022         * lib/unictype/pr_hyphen.c: New file.
5023         * lib/unictype/pr_id_continue.c: New file.
5024         * lib/unictype/pr_id_start.c: New file.
5025         * lib/unictype/pr_ideographic.c: New file.
5026         * lib/unictype/pr_ids_binary_operator.c: New file.
5027         * lib/unictype/pr_ids_trinary_operator.c: New file.
5028         * lib/unictype/pr_ignorable_control.c: New file.
5029         * lib/unictype/pr_iso_control.c: New file.
5030         * lib/unictype/pr_join_control.c: New file.
5031         * lib/unictype/pr_left_of_pair.c: New file.
5032         * lib/unictype/pr_line_separator.c: New file.
5033         * lib/unictype/pr_logical_order_exception.c: New file.
5034         * lib/unictype/pr_lowercase.c: New file.
5035         * lib/unictype/pr_math.c: New file.
5036         * lib/unictype/pr_non_break.c: New file.
5037         * lib/unictype/pr_not_a_character.c: New file.
5038         * lib/unictype/pr_numeric.c: New file.
5039         * lib/unictype/pr_other_alphabetic.c: New file.
5040         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
5041         * lib/unictype/pr_other_grapheme_extend.c: New file.
5042         * lib/unictype/pr_other_id_continue.c: New file.
5043         * lib/unictype/pr_other_id_start.c: New file.
5044         * lib/unictype/pr_other_lowercase.c: New file.
5045         * lib/unictype/pr_other_math.c: New file.
5046         * lib/unictype/pr_other_uppercase.c: New file.
5047         * lib/unictype/pr_paired_punctuation.c: New file.
5048         * lib/unictype/pr_paragraph_separator.c: New file.
5049         * lib/unictype/pr_pattern_syntax.c: New file.
5050         * lib/unictype/pr_pattern_white_space.c: New file.
5051         * lib/unictype/pr_private_use.c: New file.
5052         * lib/unictype/pr_punctuation.c: New file.
5053         * lib/unictype/pr_quotation_mark.c: New file.
5054         * lib/unictype/pr_radical.c: New file.
5055         * lib/unictype/pr_sentence_terminal.c: New file.
5056         * lib/unictype/pr_soft_dotted.c: New file.
5057         * lib/unictype/pr_space.c: New file.
5058         * lib/unictype/pr_terminal_punctuation.c: New file.
5059         * lib/unictype/pr_test.c: New file.
5060         * lib/unictype/pr_titlecase.c: New file.
5061         * lib/unictype/pr_unassigned_code_value.c: New file.
5062         * lib/unictype/pr_unified_ideograph.c: New file.
5063         * lib/unictype/pr_uppercase.c: New file.
5064         * lib/unictype/pr_variation_selector.c: New file.
5065         * lib/unictype/pr_white_space.c: New file.
5066         * lib/unictype/pr_xid_continue.c: New file.
5067         * lib/unictype/pr_xid_start.c: New file.
5068         * lib/unictype/pr_zero_width.c: New file.
5069         * lib/unictype/scripts.c: New file.
5070         * lib/unictype/sy_c_ident.c: New file.
5071         * lib/unictype/sy_c_whitespace.c: New file.
5072         * lib/unictype/sy_java_ident.c: New file.
5073         * lib/unictype/sy_java_whitespace.c: New file.
5074
5075         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
5076         Unicode 5.0.0.
5077         * lib/unictype/blocks.h: Likewise.
5078         * lib/unictype/categ_C.h: Likewise.
5079         * lib/unictype/categ_Cc.h: Likewise.
5080         * lib/unictype/categ_Cf.h: Likewise.
5081         * lib/unictype/categ_Cn.h: Likewise.
5082         * lib/unictype/categ_Co.h: Likewise.
5083         * lib/unictype/categ_Cs.h: Likewise.
5084         * lib/unictype/categ_L.h: Likewise.
5085         * lib/unictype/categ_Ll.h: Likewise.
5086         * lib/unictype/categ_Lm.h: Likewise.
5087         * lib/unictype/categ_Lo.h: Likewise.
5088         * lib/unictype/categ_Lt.h: Likewise.
5089         * lib/unictype/categ_Lu.h: Likewise.
5090         * lib/unictype/categ_M.h: Likewise.
5091         * lib/unictype/categ_Mc.h: Likewise.
5092         * lib/unictype/categ_Me.h: Likewise.
5093         * lib/unictype/categ_Mn.h: Likewise.
5094         * lib/unictype/categ_N.h: Likewise.
5095         * lib/unictype/categ_Nd.h: Likewise.
5096         * lib/unictype/categ_Nl.h: Likewise.
5097         * lib/unictype/categ_No.h: Likewise.
5098         * lib/unictype/categ_P.h: Likewise.
5099         * lib/unictype/categ_Pc.h: Likewise.
5100         * lib/unictype/categ_Pd.h: Likewise.
5101         * lib/unictype/categ_Pe.h: Likewise.
5102         * lib/unictype/categ_Pf.h: Likewise.
5103         * lib/unictype/categ_Pi.h: Likewise.
5104         * lib/unictype/categ_Po.h: Likewise.
5105         * lib/unictype/categ_Ps.h: Likewise.
5106         * lib/unictype/categ_S.h: Likewise.
5107         * lib/unictype/categ_Sc.h: Likewise.
5108         * lib/unictype/categ_Sk.h: Likewise.
5109         * lib/unictype/categ_Sm.h: Likewise.
5110         * lib/unictype/categ_So.h: Likewise.
5111         * lib/unictype/categ_Z.h: Likewise.
5112         * lib/unictype/categ_Zl.h: Likewise.
5113         * lib/unictype/categ_Zp.h: Likewise.
5114         * lib/unictype/categ_Zs.h: Likewise.
5115         * lib/unictype/categ_of.h: Likewise.
5116         * lib/unictype/combining.h: Likewise.
5117         * lib/unictype/ctype_alnum.h: Likewise.
5118         * lib/unictype/ctype_alpha.h: Likewise.
5119         * lib/unictype/ctype_blank.h: Likewise.
5120         * lib/unictype/ctype_cntrl.h: Likewise.
5121         * lib/unictype/ctype_digit.h: Likewise.
5122         * lib/unictype/ctype_graph.h: Likewise.
5123         * lib/unictype/ctype_lower.h: Likewise.
5124         * lib/unictype/ctype_print.h: Likewise.
5125         * lib/unictype/ctype_punct.h: Likewise.
5126         * lib/unictype/ctype_space.h: Likewise.
5127         * lib/unictype/ctype_upper.h: Likewise.
5128         * lib/unictype/ctype_xdigit.h: Likewise.
5129         * lib/unictype/decdigit.h: Likewise.
5130         * lib/unictype/digit.h: Likewise.
5131         * lib/unictype/mirror.h: Likewise.
5132         * lib/unictype/numeric.h: Likewise.
5133         * lib/unictype/pr_alphabetic.h: Likewise.
5134         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5135         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5136         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5137         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5138         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5139         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5140         * lib/unictype/pr_bidi_control.h: Likewise.
5141         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5142         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5143         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5144         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5145         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5146         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5147         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5148         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5149         * lib/unictype/pr_bidi_pdf.h: Likewise.
5150         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5151         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5152         * lib/unictype/pr_combining.h: Likewise.
5153         * lib/unictype/pr_composite.h: Likewise.
5154         * lib/unictype/pr_currency_symbol.h: Likewise.
5155         * lib/unictype/pr_dash.h: Likewise.
5156         * lib/unictype/pr_decimal_digit.h: Likewise.
5157         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5158         * lib/unictype/pr_deprecated.h: Likewise.
5159         * lib/unictype/pr_diacritic.h: Likewise.
5160         * lib/unictype/pr_extender.h: Likewise.
5161         * lib/unictype/pr_format_control.h: Likewise.
5162         * lib/unictype/pr_grapheme_base.h: Likewise.
5163         * lib/unictype/pr_grapheme_extend.h: Likewise.
5164         * lib/unictype/pr_grapheme_link.h: Likewise.
5165         * lib/unictype/pr_hex_digit.h: Likewise.
5166         * lib/unictype/pr_hyphen.h: Likewise.
5167         * lib/unictype/pr_id_continue.h: Likewise.
5168         * lib/unictype/pr_id_start.h: Likewise.
5169         * lib/unictype/pr_ideographic.h: Likewise.
5170         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5171         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5172         * lib/unictype/pr_ignorable_control.h: Likewise.
5173         * lib/unictype/pr_iso_control.h: Likewise.
5174         * lib/unictype/pr_join_control.h: Likewise.
5175         * lib/unictype/pr_left_of_pair.h: Likewise.
5176         * lib/unictype/pr_line_separator.h: Likewise.
5177         * lib/unictype/pr_logical_order_exception.h: Likewise.
5178         * lib/unictype/pr_lowercase.h: Likewise.
5179         * lib/unictype/pr_math.h: Likewise.
5180         * lib/unictype/pr_non_break.h: Likewise.
5181         * lib/unictype/pr_not_a_character.h: Likewise.
5182         * lib/unictype/pr_numeric.h: Likewise.
5183         * lib/unictype/pr_other_alphabetic.h: Likewise.
5184         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5185         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5186         * lib/unictype/pr_other_id_continue.h: Likewise.
5187         * lib/unictype/pr_other_id_start.h: Likewise.
5188         * lib/unictype/pr_other_lowercase.h: Likewise.
5189         * lib/unictype/pr_other_math.h: Likewise.
5190         * lib/unictype/pr_other_uppercase.h: Likewise.
5191         * lib/unictype/pr_paired_punctuation.h: Likewise.
5192         * lib/unictype/pr_paragraph_separator.h: Likewise.
5193         * lib/unictype/pr_pattern_syntax.h: Likewise.
5194         * lib/unictype/pr_pattern_white_space.h: Likewise.
5195         * lib/unictype/pr_private_use.h: Likewise.
5196         * lib/unictype/pr_punctuation.h: Likewise.
5197         * lib/unictype/pr_quotation_mark.h: Likewise.
5198         * lib/unictype/pr_radical.h: Likewise.
5199         * lib/unictype/pr_sentence_terminal.h: Likewise.
5200         * lib/unictype/pr_soft_dotted.h: Likewise.
5201         * lib/unictype/pr_space.h: Likewise.
5202         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5203         * lib/unictype/pr_titlecase.h: Likewise.
5204         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5205         * lib/unictype/pr_unified_ideograph.h: Likewise.
5206         * lib/unictype/pr_uppercase.h: Likewise.
5207         * lib/unictype/pr_variation_selector.h: Likewise.
5208         * lib/unictype/pr_white_space.h: Likewise.
5209         * lib/unictype/pr_xid_continue.h: Likewise.
5210         * lib/unictype/pr_xid_start.h: Likewise.
5211         * lib/unictype/pr_zero_width.h: Likewise.
5212         * lib/unictype/scripts.h: Likewise.
5213         * lib/unictype/scripts_byname.gperf: Likewise.
5214         * lib/unictype/sy_c_ident.h: Likewise.
5215         * lib/unictype/sy_c_whitespace.h: Likewise.
5216         * lib/unictype/sy_java_ident.h: Likewise.
5217         * lib/unictype/sy_java_whitespace.h: Likewise.
5218
5219         * lib/unictype/Makefile: New file.
5220         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
5221         glibc.
5222         * lib/unictype/3level.h: New file, copied from glibc.
5223         * lib/unictype/3levelbit.h: New file.
5224
5225 2007-11-11  Bruno Haible  <bruno@clisp.org>
5226
5227         * modules/gperf: New file.
5228         * modules/iconv_open (Depends-on): Add it.
5229         (Makefile.am): Remove the GPERF definition.
5230
5231 2007-11-11  Bruno Haible  <bruno@clisp.org>
5232
5233         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
5234         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
5235
5236 2007-11-11  Bruno Haible  <bruno@clisp.org>
5237
5238         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
5239         (usage): Remove function.
5240
5241 2007-11-11  Bruno Haible  <bruno@clisp.org>
5242
5243         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
5244         gl_FUNC_CEILF_LIBS.
5245         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
5246         gl_FUNC_CEIL_LIBS.
5247         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
5248         gl_FUNC_CEILL_LIBS.
5249         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
5250         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
5251         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
5252
5253 2007-11-11  Bruno Haible  <bruno@clisp.org>
5254
5255         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
5256         roundf were declared but do not exist on functions.
5257         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
5258         roundl were declared but do not exist on functions.
5259         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
5260         HAVE_FLOORL_AND_CEILL, respectively.
5261         Needed for Sun C on Solaris 10.
5262
5263 2007-11-11  Bruno Haible  <bruno@clisp.org>
5264
5265         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
5266         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
5267         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
5268         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
5269         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
5270         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
5271         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
5272         HAVE_DECL_ROUNDF.
5273         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
5274         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
5275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
5276         of HAVE_DECL_ROUND*.
5277         * modules/math (Makefile.am): Update.
5278
5279 2007-11-10  Bruno Haible  <bruno@clisp.org>
5280
5281         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
5282         ptrdiff_t as m4/intl.m4.
5283
5284 2007-11-10  Jim Meyering  <meyering@redhat.com>
5285
5286         Avoid link failure for the argmatch test.
5287         * tests/test-argmatch.c (usage): Define function to avoid a link
5288         failure: argmatch_die requires a usage function.
5289
5290 2007-11-09  Bruno Haible  <bruno@clisp.org>
5291
5292         * doc/functions/snprintf.texi: Mention BeOS deficiency.
5293         * doc/functions/vsnprintf.texi: Likewise.
5294         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
5295         with a size argument < 2.
5296
5297 2007-11-09  Bruno Haible  <bruno@clisp.org>
5298
5299         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
5300         buffer. Fixes an inefficiency introduced on 2007-11-03.
5301
5302 2007-11-09  Bruno Haible  <bruno@clisp.org>
5303
5304         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
5305         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
5306
5307 2007-11-08  Jim Meyering  <meyering@redhat.com>
5308
5309         Change cache variable name prefix "jm_" to "gl_" everywhere.
5310         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
5311         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
5312         * m4/uptime.m4: s/gl_/jm_/
5313
5314 2007-11-07  Bruno Haible  <bruno@clisp.org>
5315
5316         Update to GNU gettext 0.17.
5317         * m4/intl.m4: Update to GNU gettext 0.17.
5318         * m4/po.m4: Likewise.
5319         * modules/gettext (Files): Remove m4/ulonglong.m4.
5320         (configure.ac): Require gettext infrastructure from version 0.17.
5321
5322 2007-11-06  Bruno Haible  <bruno@clisp.org>
5323
5324         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
5325         symbolic values are not defined in a public header.
5326         * lib/freadable.c (freadable) [QNX]: Likewise.
5327         * lib/freadahead.c (freadahead) [QNX]: Likewise.
5328         * lib/freading.c (freading) [QNX]: Likewise.
5329         * lib/fseterr.c (fseterr) [QNX]: Likewise.
5330         * lib/fwritable.c (fwritable) [QNX]: Likewise.
5331         * lib/fwriting.c (fwriting) [QNX]: Likewise.
5332         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
5333         Reported by Alain Magloire.
5334
5335         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
5336
5337 2007-11-05  Bruno Haible  <bruno@clisp.org>
5338
5339         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
5340         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
5341         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
5342         Reported by Eric Blake.
5343
5344 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5345             Bruno Haible  <bruno@clisp.org>
5346
5347         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
5348         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
5349         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
5350         (malloc): Undefine also before including <stdlib.h>.
5351         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
5352         Needed on OSF/1 4.0.
5353
5354 2007-11-05  Jim Meyering  <meyering@redhat.com>
5355
5356         git-version-gen: sync from coreutils.
5357         * build-aux/git-version-gen: Add comments.
5358         Change the first '-' to '.' in the snapshot version string,
5359         e.g., 6.9-377-08144 -> 6.9.377-08144
5360         Remove first parameter.
5361         Don't declare a version "-dirty" merely because a time
5362         stamp has changed.
5363
5364 2007-11-04  Bruno Haible  <bruno@clisp.org>
5365
5366         * lib/lock.h: Protect all macro definitions containing an 'if'
5367         statement through a "do { ... } while (0)".
5368         * lib/tls.h: Likewise.
5369
5370 2007-11-04  Bruno Haible  <bruno@clisp.org>
5371
5372         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
5373
5374 2007-11-04  Bruno Haible  <bruno@clisp.org>
5375
5376         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
5377         * modules/fprintf-posix (Depends-on): Add nocrash.
5378         * modules/snprintf-posix (Depends-on): Likewise.
5379         * modules/sprintf-posix (Depends-on): Likewise.
5380         * modules/vasnprintf-posix (Depends-on): Likewise.
5381         * modules/vasprintf-posix (Depends-on): Likewise.
5382         * modules/vfprintf-posix (Depends-on): Likewise.
5383         * modules/vsnprintf-posix (Depends-on): Likewise.
5384         * modules/vsprintf-posix (Depends-on): Likewise.
5385         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5386         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5387         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5388         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5389         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5390         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5391         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5392
5393 2007-11-04  Bruno Haible  <bruno@clisp.org>
5394
5395         * modules/nocrash: New file.
5396         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
5397         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
5398
5399 2007-11-04  Bruno Haible  <bruno@clisp.org>
5400
5401         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
5402         precision handling.
5403         * tests/test-vasprintf-posix.c (test_function): Likewise.
5404         * tests/test-snprintf-posix.h (test_function): Likewise.
5405         * tests/test-sprintf-posix.h (test_function): Likewise.
5406
5407         Fix *printf behaviour for large precisions on mingw and BeOS.
5408         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
5409         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
5410         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
5411         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5412         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5413         gl_PRINTF_PRECISION and test its result. Invoke
5414         gl_PREREQ_VASNPRINTF_PRECISION.
5415         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5416         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5417         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5418         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5419         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5422         * doc/functions/fprintf.texi: Update.
5423         * doc/functions/printf.texi: Update.
5424         * doc/functions/snprintf.texi: Update.
5425         * doc/functions/sprintf.texi: Update.
5426         * doc/functions/vfprintf.texi: Update.
5427         * doc/functions/vprintf.texi: Update.
5428         * doc/functions/vsnprintf.texi: Update.
5429         * doc/functions/vsprintf.texi: Update.
5430
5431 2007-11-04  Bruno Haible  <bruno@clisp.org>
5432
5433         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
5434
5435 2007-11-04  Bruno Haible  <bruno@clisp.org>
5436
5437         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
5438         Reported by Sylvain Beucler <beuc@gnu.org>.
5439
5440 2007-11-03  Bruno Haible  <bruno@clisp.org>
5441
5442         * tests/test-fprintf-posix2.sh: New file.
5443         * tests/test-fprintf-posix2.c: New file.
5444         * modules/fprintf-posix-tests (Files): Add them.
5445         (TESTS): Add test-fprintf-posix2.sh.
5446         (configure.ac): Check for getrlimit and setrlimit.
5447         (check_PROGRAMS): Add test-fprintf-posix2.
5448
5449         * tests/test-printf-posix2.sh: New file.
5450         * tests/test-printf-posix2.c: New file.
5451         * modules/printf-posix-tests (Files): Add them.
5452         (TESTS): Add test-printf-posix2.sh.
5453         (configure.ac): Check for getrlimit and setrlimit.
5454         (check_PROGRAMS): Add test-printf-posix2.
5455
5456         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
5457         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
5458         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
5459         (decode_double): New function, copied from decode_long_double.
5460         (scale10_round_decimal_decoded): New function, extracted from
5461         scale10_round_decimal_long_double.
5462         (scale10_round_decimal_long_double): Use it.
5463         (scale10_round_decimal_double): New function.
5464         (floorlog10): New function.
5465         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
5466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
5467         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5468         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5469         gl_PRINTF_ENOMEM and test its result. Invoke
5470         gl_PREREQ_VASNPRINTF_ENOMEM.
5471         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5472         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5473         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5474         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5475         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5476         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5477         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5478         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
5479         * modules/snprintf-posix (Depends-on): Likewise.
5480         * modules/sprintf-posix (Depends-on): Likewise.
5481         * modules/vasnprintf-posix (Depends-on): Likewise.
5482         * modules/vasprintf-posix (Depends-on): Likewise.
5483         * modules/vfprintf-posix (Depends-on): Likewise.
5484         * modules/vsnprintf-posix (Depends-on): Likewise.
5485         * modules/vsprintf-posix (Depends-on): Likewise.
5486         * doc/functions/fprintf.texi: Update.
5487         * doc/functions/printf.texi: Update.
5488         * doc/functions/snprintf.texi: Update.
5489         * doc/functions/sprintf.texi: Update.
5490         * doc/functions/vfprintf.texi: Update.
5491         * doc/functions/vprintf.texi: Update.
5492         * doc/functions/vsnprintf.texi: Update.
5493         * doc/functions/vsprintf.texi: Update.
5494
5495 2007-11-03  Bruno Haible  <bruno@clisp.org>
5496
5497         * modules/frexp-nolibm-tests: New file.
5498
5499         * modules/frexp-nolibm: New file.
5500         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
5501
5502 2007-11-03  Bruno Haible  <bruno@clisp.org>
5503
5504         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
5505         value is C99 compliant.
5506         Needed for OSF/1 5.1.
5507
5508 2007-11-03  Bruno Haible  <bruno@clisp.org>
5509
5510         Fix out-of-memory handling of vasnprintf.
5511         * lib/printf-parse.c: Include <errno.h>.
5512         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
5513         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
5514         is already set.
5515
5516 2007-11-02  Eric Blake  <ebb9@byu.net>
5517
5518         Fix tests on cygwin.
5519         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
5520
5521 2007-11-01  Bruno Haible  <bruno@clisp.org>
5522
5523         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
5524         warning.
5525         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
5526         needed for POSIX compatibility.
5527
5528 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5529
5530         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
5531         for compatibility with GNU.
5532
5533 2007-11-01  Bruno Haible  <bruno@clisp.org>
5534
5535         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
5536         (putenv): Renamed from rpl_putenv. Change argument type from
5537         'const char *' to 'char *'.
5538         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
5539         of defining putenv in config.h, just set REPLACE_PUTENV.
5540         * modules/putenv (Depends-on): Add stdlib.
5541         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5542         (Include): Use <stdlib.h>.
5543         * lib/stdlib.in.h (putenv): New declaration.
5544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
5545         REPLACE_PUTENV.
5546         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
5547         REPLACE_PUTENV.
5548         Needed for MacOS X 10.5.0.
5549         Reported by Peter O'Gorman <peter@pogma.com>.
5550
5551 2007-11-01  Jim Meyering  <meyering@redhat.com>
5552
5553         Treat an empty date string exactly like "0".
5554         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
5555         if the remaining date string (to be parsed) is empty, use "0".
5556         Reported by Mischa Molhoek and discussed in this thread:
5557         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
5558
5559 2007-10-31  Bruno Haible  <bruno@clisp.org>
5560
5561         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
5562         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
5563         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
5564         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
5565         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
5566         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
5567
5568 2007-10-31  Bruno Haible  <bruno@clisp.org>
5569
5570         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
5571         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
5572         (AC_TYPE_LONG_LONG_INT): Use it.
5573         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
5574         it as well.
5575         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
5576         to m4/longlong.m4.
5577         * modules/stdint (Files): Remove m4/ulonglong.m4.
5578         * modules/strtoull (Files): Use m4/longlong.m4 instead of
5579         m4/ulonglong.m4.
5580         * modules/strtoumax (Files): Likewise.
5581
5582 2007-10-30  Bruno Haible  <bruno@clisp.org>
5583
5584         * modules/xvasprintf-posix: New file.
5585         Suggested by Eric Blake.
5586
5587 2007-10-30  Bruno Haible  <bruno@clisp.org>
5588
5589         * modules/xprintf-posix-tests: New file.
5590         * tests/test-xprintf-posix.sh: New file.
5591         * tests/test-xprintf-posix.c: New file.
5592         * tests/test-xfprintf-posix.c: New file.
5593
5594         * modules/xprintf-posix: New file.
5595
5596 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5597
5598         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
5599         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
5600         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
5601
5602 2007-10-29  Bruno Haible  <bruno@clisp.org>
5603
5604         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
5605         contain the special marker '_cv_'.
5606         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5607         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5608         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5609         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5610         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5611         Reported by Ralf Wildenhues.
5612
5613 2007-10-29  Bruno Haible  <bruno@clisp.org>
5614
5615         * gnulib-tool (func_import): When --lgpl is not specified, set
5616         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
5617         GPLv3.
5618         Reported by Simon Josefsson.
5619
5620 2007-10-28  Bruno Haible  <bruno@clisp.org>
5621
5622         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
5623         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
5624         HAVE_DECL_ISFINITE.
5625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5626         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
5627         HAVE_DECL_ISFINITE.
5628
5629 2007-10-28  Bruno Haible  <bruno@clisp.org>
5630
5631         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
5632         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
5633
5634 2007-10-28  Bruno Haible  <bruno@clisp.org>
5635
5636         Fix link errors with Sun C 5.0 on Solaris 10.
5637         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
5638         function is declared but not present in the compiler's libm.
5639         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5640         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5641         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
5642         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
5643         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
5644         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
5645         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
5646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5647         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
5648         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
5649         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
5650         HAVE_DECL_FLOORL.
5651
5652 2007-10-28  Bruno Haible  <bruno@clisp.org>
5653
5654         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
5655         gl_FUNC_FLOORL. Cache the result.
5656         (gl_FUNC_FLOORL): Use it.
5657         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
5658         gl_FUNC_CEILL. Cache the result.
5659         (gl_FUNC_CEILL): Use it.
5660
5661         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
5662         gl_FUNC_FLOOR. Cache the result.
5663         (gl_FUNC_FLOOR): Use it.
5664         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
5665         gl_FUNC_CEIL. Cache the result.
5666         (gl_FUNC_CEIL): Use it.
5667
5668         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
5669         gl_FUNC_FLOORF. Cache the result.
5670         (gl_FUNC_FLOORF): Use it.
5671         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
5672         gl_FUNC_CEILF. Cache the result.
5673         (gl_FUNC_CEILF): Use it.
5674
5675 2007-10-28  Bruno Haible  <bruno@clisp.org>
5676
5677         * gnulib-tool: Allow specifying the LGPL version number through
5678         --lgpl=2 or --lgpl=3.
5679         (func_usage): Document --lgpl with argument.
5680         Handle --lgpl=... arguments.
5681         (func_import): Recognize also gl_LGPL calls with an argument. When
5682         --lgpl=2 is used and the module's license is just LGPL, report an
5683         error. Set sed_transform_lib_file according to the lgpl variable. In
5684         the generated files, use --lgpl or gl_LGPL invocations with argument,
5685         if necessary.
5686         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
5687         an LGPv2+ license.
5688         * doc/gnulib-tool.texi (Modified imports): Update explanation of
5689         gl_LGPL macro.
5690
5691 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5692             Bruno Haible  <bruno@clisp.org>
5693
5694         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
5695         (u16_uctomb_aux): Likewise.
5696         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
5697         !HAVE_INLINE.
5698         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
5699
5700 2007-10-28  Bruno Haible  <bruno@clisp.org>
5701
5702         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
5703         Invoke AM_GETTEXT_OPTION if it exists.
5704         * modules/vasprintf: Likewise.
5705         * modules/verror: Likewise.
5706         * modules/xprintf: Likewise.
5707         * modules/xvasprintf: Likewise.
5708
5709 2007-10-27  Ben Pfaff  <blp@gnu.org>
5710
5711         * lib/math.in.h: Define isfinite macro and prototypes for
5712         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
5713         implementations.
5714         * m4/math_h.m4: New substitutions for isfinite module.
5715         * lib/isfinite.c: New file.
5716         * m4/isfinite.m4: New file.
5717         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
5718         * modules/isfinite: New file.
5719         * modules/isfinite-tests: New file.
5720         * tests/tests-isfinite.c: New file.
5721         * doc/functions/isfinite.texi: Mention isfinite module.
5722         * MODULES.html.sh: Mention new module.
5723
5724 2007-10-27  Ben Pfaff  <blp@gnu.org>
5725
5726         Ralf Wildenhues reported that Tru64 4.0D declares the round
5727         functions but does not have definitions.
5728         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
5729         cannot be found in any library, set the output variable to
5730         "missing" instead of "".
5731         * m4/round.m4: Also use our substitute if we cannot find round in
5732         any library, even if it is declared.
5733         * m4/roundf.m4: Likewise for roundf.
5734         * m4/roundl.m4: Likewise for roundl.
5735         * lib/math.in.h: Undefine roundf, round, roundl before defining
5736         their replacements, to allow for hypothetical systems where these
5737         may be defined as macros but not available in libraries.
5738
5739 2007-10-27  Bruno Haible  <bruno@clisp.org>
5740
5741         * doc/gnulib.texi: Invoke @firstparagraphindent.
5742         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
5743         changes in gnulib.
5744         (Source changes): New section.
5745
5746 2007-10-26  Bruno Haible  <bruno@clisp.org>
5747
5748         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
5749         borrowed from autoconf.
5750
5751 2007-10-26  Bruno Haible  <bruno@clisp.org>
5752
5753         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
5754         strerror returned the empty string. Needed on HP-UX 11.00.
5755
5756 2007-10-24  Micah Cowan  <micah@cowan.name>
5757
5758         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
5759         * build-aux/bootstrap: Remove support for now-unnecessary option,
5760         --cvs-user, and envvars CVS_USER, CVS_RSH.
5761
5762 2007-10-24  Jim Meyering  <meyering@redhat.com>
5763
5764         Avoid diagnostics from sha1sum when there is no cached checksum.
5765         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
5766         if the po.s1 file hasn't been created yet.
5767
5768         * build-aux/bootstrap: Sync from coreutils:
5769         2007-10-24  Jim Meyering  <meyering@redhat.com>
5770         Get gnulib from the git repository, not from an obsolete cvs one.
5771         * build-aux/bootstrap: Suggestion from Micah Cowan.
5772         2007-10-04  Jim Meyering  <jim@meyering.net>
5773         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
5774         (update_po_files): Work also when there are no .po files in po/.
5775
5776 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
5777
5778         * README: Append ".git" to git and cg examples.
5779         Problem reported by Benoit Sigoure.
5780
5781 2007-10-23  Micah Cowan  <micah@cowan.name>
5782
5783         * users.txt: Add wget.
5784
5785 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5786
5787         Fix linking of some unistdio tests on FreeBSD.
5788         * modules/unistdio/u16-vsnprintf-tests
5789         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
5790         * modules/unistdio/u16-vsprintf-tests
5791         (test_u16_vsnprintf1_LDADD): Likewise.
5792         * modules/unistdio/u32-vsnprintf-tests
5793         (test_u32_vsnprintf1_LDADD): Likewise.
5794         * modules/unistdio/u32-vsprintf-tests
5795         (test_u32_vsprintf1_LDADD): Likewise.
5796         * modules/unistdio/u8-vsnprintf-tests
5797         (test_u8_vsnprintf1_LDADD): Likewise.
5798         * modules/unistdio/u8-vsprintf-tests
5799         (test_u8_vsprintf1_LDADD): Likewise.
5800         * modules/unistdio/ulc-vsnprintf-tests
5801         (test_ulc_vsnprintf1_LDADD): Likewise.
5802         * modules/unistdio/ulc-vsprintf-tests
5803         (test_ulc_vsprintf1_LDADD): Likewise.
5804
5805         Fix linking of some uniconv tests on FreeBSD.
5806         * modules/uniconv/u16-conv-from-enc-tests
5807         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
5808         * modules/uniconv/u16-conv-to-enc-tests
5809         (test_u16_conv_to_enc_LDADD): Likewise.
5810         * modules/uniconv/u16-strconv-from-enc-tests
5811         (test_u16_strconv_from_enc_LDADD): Likewise.
5812         * modules/uniconv/u16-strconv-to-enc-tests
5813         (test_u16_strconv_to_enc_LDADD): Likewise.
5814         * modules/uniconv/u32-conv-from-enc-tests
5815         (test_u32_conv_from_enc_LDADD): Likewise.
5816         * modules/uniconv/u32-conv-to-enc-tests
5817         (test_u32_conv_to_enc_LDADD): Likewise.
5818         * modules/uniconv/u32-strconv-from-enc-tests
5819         (test_u32_strconv_from_enc_LDADD): Likewise.
5820         * modules/uniconv/u32-strconv-to-enc-tests
5821         (test_u32_strconv_to_enc_LDADD): Likewise.
5822         * modules/uniconv/u8-conv-from-enc-tests
5823         (test_u8_conv_from_enc_LDADD): Likewise.
5824         * modules/uniconv/u8-conv-to-enc-tests
5825         (test_u8_conv_to_enc_LDADD): Likewise.
5826         * modules/uniconv/u8-strconv-from-enc-tests
5827         (test_u8_strconv_from_enc_LDADD): Likewise.
5828         * modules/uniconv/u8-strconv-to-enc-tests
5829         (test_u8_strconv_to_enc_LDADD): Likewise.
5830
5831 2007-10-22  Bruno Haible  <bruno@clisp.org>
5832
5833         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
5834         size.
5835
5836 2007-10-22  Eric Blake  <ebb9@byu.net>
5837
5838         Tweak x*printf documentation.
5839         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
5840         variable name and comments.
5841         Suggested by Bruno Haible.
5842
5843 2007-10-22  Bruno Haible  <bruno@clisp.org>
5844
5845         * lib/acl.c (copy_acl): Fix file name in comment.
5846
5847 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
5848
5849         Fix Tru64 problem with stdbool.h.
5850         * lib/stdbool.in.h (false, true):
5851         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
5852         Don't declare as an enum in this situation; it runs afoul of Tru64.
5853         Problem reported by Steven M. Schweda in
5854         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
5855
5856 2007-10-22  Eric Blake  <ebb9@byu.net>
5857
5858         Also wrap vf?printf.
5859         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
5860         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
5861         (xvprintf, xvfprintf): New functions.
5862
5863 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5864
5865         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
5866         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
5867
5868         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
5869         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
5870
5871 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
5872
5873         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
5874         by Bruno Haible.
5875
5876 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5877
5878         * lib/getloadavg.c
5879         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
5880         Undef `sys' after including sys/table.h, for Tru64 4.0D.
5881
5882         * tests/test-i-ring.c: Work for C89.
5883
5884 2007-10-22  Bruno Haible  <bruno@clisp.org>
5885
5886         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
5887         -1u, in preprocessor expression, so that we don't test for the bug
5888         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
5889         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
5890
5891 2007-10-22  Eric Blake  <ebb9@byu.net>
5892
5893         * tests/test-yesno.sh: Silence stderr during test.
5894
5895 2007-10-22  Simon Josefsson  <simon@josefsson.org>
5896
5897         * modules/crypto/gc-camellia: New file.
5898
5899         * m4/gc-camellia.m4: New file.
5900
5901         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
5902
5903         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
5904
5905 2007-10-22  Simon Josefsson  <simon@josefsson.org>
5906
5907         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
5908         --help to stdout.  Reported by sms@antinode.org (Steven
5909         M. Schweda).
5910
5911 2007-10-22  Simon Josefsson  <simon@josefsson.org>
5912
5913         * users.txt: Fix link to libksba.
5914
5915 2007-10-21  Ben Pfaff  <blp@gnu.org>
5916
5917         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
5918         round.c roundf implementation that depends on floorf and ceilf to
5919         be tested unconditionally.
5920
5921 2007-10-21  Ben Pfaff  <blp@gnu.org>
5922
5923         * m4/check-libm-func.m4: Removed.
5924         * m4/check-math-lib.m4: New file.
5925         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
5926         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
5927         definition and lack of AC_LIBOBJ([roundf]).
5928         * m4/roundl.m4: Ditto, and similarly for roundl.
5929         * modules/round: Reference new m4 file.
5930         * modules/roundf: Ditto.
5931         * modules/roundl: Ditto.
5932         * tests/test-round2.c (main): Use ROUND instead of round.
5933         Bug report from Bruno Haible.
5934
5935 2007-10-21  Bruno Haible  <bruno@clisp.org>
5936
5937         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
5938         context.
5939
5940 2007-10-21  Bruno Haible  <bruno@clisp.org>
5941
5942         * tests/test-wcwidth.c (main): Allow negative result for some control
5943         characters.
5944
5945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
5946         Needed on OSF/1 5.1.
5947
5948 2007-10-21  Bruno Haible  <bruno@clisp.org>
5949
5950         * tests/test-floorf1.c: Include isnanf.h.
5951         (main): Use isnanf() instead of isnan().
5952         * tests/test-ceilf1.c: Include isnanf.h.
5953         (main): Use isnanf() instead of isnan().
5954         * tests/test-truncf1.c: Include isnanf.h.
5955         (main): Use isnanf() instead of isnan().
5956         * tests/test-roundf1.c: Include isnanf.h.
5957         (main): Use isnanf() instead of isnan().
5958
5959 2007-10-21  Eric Blake  <ebb9@byu.net>
5960
5961         * users.txt: Update URL for m4.
5962
5963 2007-10-21  Bruno Haible  <bruno@clisp.org>
5964
5965         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
5966
5967 2007-10-21  Bruno Haible  <bruno@clisp.org>
5968
5969         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
5970         Git's management files if the CVS files are not present.
5971
5972 2007-10-20  Bruno Haible  <bruno@clisp.org>
5973
5974         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
5975         gcc-3.4.x.
5976
5977 2007-10-20  Ben Pfaff  <blp@gnu.org>
5978
5979         * lib/math.in.h: Declare round, roundf, roundl if we are providing
5980         implementations.
5981         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
5982         * lib/round.c: New file.
5983         * lib/roundf.c: New file.
5984         * lib/roundl.c: New file.
5985         * m4/round.m4: New file.
5986         * m4/roundf.m4: New file.
5987         * m4/roundl.m4: New file.
5988         * m4/check-libm-func-m4: New file.
5989         * modules/math: Replace round, roundf, roundl related @VARS@ in
5990         math.in.h.
5991         * modules/round: New file.
5992         * modules/round-tests: New file.
5993         * modules/roundf: New file.
5994         * modules/roundf-tests: New file.
5995         * modules/roundl: New file.
5996         * modules/roundl-tests: New file.
5997         * tests/test-round1.c: New file.
5998         * tests/test-round2.c: New file.
5999         * tests/test-roundf1.c: New file.
6000         * tests/test-roundf2.c: New file.
6001         * tests/test-roundl.c: New file.
6002         * doc/functions/round.texi: Mention round module.
6003         * doc/functions/roundf.texi: Mention roundf module.
6004         * doc/functions/roundl.texi: Mention roundl module.
6005         * MODULES.html.sh: Mention new modules.
6006         Thanks to Bruno Haible for suggestions.
6007
6008 2007-10-20  Jim Meyering  <meyering@redhat.com>
6009
6010         * lib/xprintf.c: Include <config.h> unconditionally.
6011
6012         Change xprintf's license to GPL.
6013         * modules/xprintf (License): s/LGPL/GPL/, since this module
6014         depends on modules (exit and exitfail) which are GPL.
6015         Suggestion from Bruno Haible.
6016
6017         xprintf fixes.
6018         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
6019         Use a clearer diagnostic.
6020         Patch from Bruno Haible.
6021
6022 2007-10-20  Bruno Haible  <bruno@clisp.org>
6023
6024         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
6025         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
6026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6027
6028 2007-10-20  Bruno Haible  <bruno@clisp.org>
6029
6030         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
6031         precision in the comparison result > x - 1 or similar.
6032         * tests/test-ceilf2.c (correct_result_p): Likewise.
6033         * tests/test-truncf2.c (correct_result_p): Likewise.
6034         * tests/test-trunc2.c (correct_result_p): Likewise.
6035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6036
6037 2007-10-20  Bruno Haible  <bruno@clisp.org>
6038
6039         * modules/ceil: New file.
6040         * m4/ceil.m4: New file.
6041         * doc/functions/ceil.texi: Mention the 'ceil' module.
6042
6043 2007-10-20  Bruno Haible  <bruno@clisp.org>
6044
6045         * modules/floor: New file.
6046         * m4/floor.m4: New file.
6047         * doc/functions/floor.texi: Mention the 'floor' module.
6048
6049 2007-10-20  Bruno Haible  <bruno@clisp.org>
6050
6051         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
6052         of %a.
6053         * modules/floorf-tests (Depends-on): Likewise.
6054         * modules/truncf-tests (Depends-on): Likewise.
6055         * modules/trunc-tests (Depends-on): Likewise.
6056         Reported by Ben Pfaff.
6057
6058 2007-10-19  Jim Meyering  <meyering@redhat.com>
6059
6060         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
6061         Don't bother testing specific errno values.  Just test ferror.
6062
6063         New module: xprintf
6064         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
6065
6066 2007-10-19  Bruno Haible  <bruno@clisp.org>
6067
6068         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
6069         syntax.
6070         * modules/javaexec (Makefile.am): Likewise.
6071         * modules/relocatable-prog (Makefile.am): Likewise.
6072         Suggested by Jim Meyering.
6073
6074 2007-10-18  Bruno Haible  <bruno@clisp.org>
6075
6076         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
6077         Reported by Jim Meyering.
6078
6079 2007-10-18  Eric Blake  <ebb9@byu.net>
6080
6081         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
6082
6083 2007-10-18  Bruno Haible  <bruno@clisp.org>
6084
6085         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
6086         the format string into writable memory. Needed in Fortify conditions.
6087
6088 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
6089             Bruno Haible  <bruno@clisp.org>
6090
6091         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
6092         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
6093         * modules/trim (Depends-on): Add mbchar.
6094         (configure.ac): Add gl_FUNC_MBRTOWC.
6095         (Makefile.am): Augment lib_SOURCES.
6096
6097 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
6098
6099         Modify glob.c to use fstatat and dirfd, to simplify it.
6100         Suggested by Eric Blake.
6101         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
6102         Don't include <stdbool.h>; not used.
6103         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
6104         (link_exists_p): Simplify implementation, since we can now assume
6105         dirfd and fstatat.
6106         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
6107
6108 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6109
6110         * gnulib-tool (func_get_dependencies): Fix sed script to
6111         match only tests.
6112
6113 2007-10-17  Bruno Haible  <bruno@clisp.org>
6114
6115         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
6116         allow locale names without encoding suffix.
6117         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6118         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6119
6120 2007-10-16  Bruno Haible  <bruno@clisp.org>
6121
6122         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
6123         * lib/getgroups.c (getgroups): Likewise.
6124         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
6125
6126 2007-10-16  Bruno Haible  <bruno@clisp.org>
6127
6128         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
6129         * modules/malloc-posix (License): Likewise.
6130         * modules/realloc-posix (License): Likewise.
6131         * modules/calloc-posix (License): Likewise.
6132         * modules/intprops (License): Change from GPL to LGPL, with
6133         Paul Eggert's approval.
6134
6135 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6136
6137         Merge glibc changes into lib/glob.c.
6138
6139         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
6140         2007-10-15 04:59:03 UTC.  Here are the changes:
6141
6142         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6143
6144         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
6145
6146         * lib/glob.c: Add some branch prediction throughout.
6147
6148         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6149
6150         [BZ #5103]
6151         * lib/glob.c (glob): Recognize patterns starting \/.
6152
6153         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
6154
6155         [BZ #3996]
6156         * lib/glob.c (attribute_hidden): Define if not defined.
6157         (glob): Unescape dirname, filename or username when needed and not
6158         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
6159         is NULL.  Handle unescaped [ in pattern without closing ].
6160         Don't pass GLOB_CHECK down to recursive glob for directories.
6161         (__glob_pattern_type): New function.
6162         (__glob_pattern_p): Implement using __glob_pattern_type.
6163         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6164         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6165         Remove unreachable code.
6166
6167         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
6168
6169         * lib/glob.c (glob_in_dir): Add some comments and asserts to
6170         explain why there are no leaks.
6171
6172         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
6173
6174         [BZ #3253]
6175         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6176         time, rather allocate increasingly bigger arrays of pointers, if
6177         possible with alloca, if too large with malloc.
6178
6179 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6180
6181         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
6182         Problem reported by H.Merijn Brand in
6183         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
6184         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
6185         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6186
6187 2007-10-15  Bruno Haible  <bruno@clisp.org>
6188
6189         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
6190         with explicit rpl_ prefix.
6191         * lib/fopen.c (fopen): Likewise.
6192         * lib/freopen.c (freopen): Likewise.
6193         * lib/iconv.c (iconv): Likewise.
6194         * lib/iconv_close.c (iconv_close): Likewise.
6195
6196 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6197
6198         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
6199
6200 2007-10-15  Bruno Haible  <bruno@clisp.org>
6201
6202         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
6203         <stddef.h> instead of <stdlib.h> since we only need NULL.
6204         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6205
6206 2007-10-15  Bruno Haible  <bruno@clisp.org>
6207
6208         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
6209         Replace paragraph talking about LIBOBJS.
6210         Reported by Colin Watson <cjwatson@debian.org>.
6211
6212 2007-10-15  Bruno Haible  <bruno@clisp.org>
6213
6214         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
6215         <stdlib.h> before using NULL.
6216
6217 2007-10-15  Simon Josefsson  <simon@josefsson.org>
6218
6219         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
6220         Reported by Albert Chin <china@thewrittenword.com>.
6221
6222 2007-10-14  Bruno Haible  <bruno@clisp.org>
6223
6224         * modules/iconv_open-utf-tests: New file.
6225         * tests/test-iconv-utf.c: New file.
6226
6227         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
6228         * modules/iconv_open-utf: New file.
6229         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
6230         (iconv, iconv_close): New declarations.
6231         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
6232         be defined.
6233         (iconv_open): Add special handling of conversion between UTF-8 and
6234         UTF-{16,32}{BE,LE}.
6235         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
6236         * lib/iconv_close.c: New file.
6237         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
6238         gl_FUNC_ICONV_OPEN.
6239         (gl_FUNC_ICONV_OPEN): Use it.
6240         (gl_FUNC_ICONV_OPEN_UTF): New macro.
6241         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
6242         and REPLACE_ICONV_UTF.
6243         * modules/iconv_open (Depends-on): Add c-strcase.
6244         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
6245         ICONV_CONST.
6246         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
6247
6248 2007-10-13  Albert Chin  <china@thewrittenword.com>
6249             Bruno Haible  <bruno@clisp.org>
6250
6251         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
6252         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
6253
6254 2007-10-13  Bruno Haible  <bruno@clisp.org>
6255
6256         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
6257         defined, use the ISO C99 inline semantics.
6258         * lib/argp.h (ARGP_EI): Likewise.
6259
6260 2007-10-13  Bruno Haible  <bruno@clisp.org>
6261
6262         Handle 'inline' change in gcc 4.3.0.
6263         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
6264         argp_fmtstream_write, argp_fmtstream_set_lmargin,
6265         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
6266         argp_fmtstream_point): Disable 'extern' declaration if the function
6267         definition is going to be provided inline.
6268         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
6269         semantics, not the ISO C99 inline semantics.
6270         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
6271         'extern' declaration if the function definition is going to be provided
6272         inline.
6273         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
6274         the GNU C inline semantics, not the ISO C99 inline semantics. With
6275         GCC 4.2, avoid a warning.
6276
6277 2007-10-13  Bruno Haible  <bruno@clisp.org>
6278
6279         * lib/freading.h (freading): Enable the use of __freading for
6280         glibc >= 2.7.
6281         * lib/freading.c (freading): Likewise.
6282
6283 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
6284
6285         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
6286         "warning: C99 inline functions are not supported; using GNU89".
6287
6288 2007-10-12  Bruno Haible  <bruno@clisp.org>
6289
6290         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
6291         of 2.
6292         * tests/test-ceilf2.c: New file.
6293         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
6294
6295         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
6296         * modules/ceilf-tests: Update.
6297
6298 2007-10-12  Bruno Haible  <bruno@clisp.org>
6299
6300         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
6301         of 2.
6302         * tests/test-floorf2.c: New file.
6303         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
6304
6305         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
6306         * modules/floorf-tests: Update.
6307
6308 2007-10-12  Bruno Haible  <bruno@clisp.org>
6309
6310         * tests/test-trunc2.c: New file.
6311         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
6312
6313         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
6314         * modules/trunc-tests: Update.
6315
6316 2007-10-12  Bruno Haible  <bruno@clisp.org>
6317
6318         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
6319         of 2.
6320         * tests/test-truncf2.c: New file.
6321         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
6322
6323         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
6324         * modules/truncf-tests: Update.
6325
6326 2007-10-11  Eric Blake  <ebb9@byu.net>
6327
6328         Don't claim strerror is broken on Interix.
6329         * doc/functions/strerror.texi (strerror): Known broken systems are
6330         now Solaris 8, and not Interix.
6331         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
6332         Interix on cross-compile.
6333         Reported by Martin Koeppe in
6334         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
6335
6336 2007-10-11  Bruno Haible  <bruno@clisp.org>
6337
6338         * modules/i-ring-tests: New file.
6339         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
6340         instead of assert.
6341
6342 2007-10-11  Bruno Haible  <bruno@clisp.org>
6343
6344         * modules/filenamecat-tests: New file.
6345         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
6346         * lib/filenamecat.c: Remove test code.
6347
6348 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6349
6350         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
6351
6352         * lib/strerror.c: Include <string.h> always, to test interface,
6353         and to remove the need for the dummy.
6354         Include intprops.h to compute width instead of doing it ourselves
6355         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
6356         (strerror): Define it to return NULL if there's no system strerror.
6357         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
6358         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
6359         ancient pre-strerror Unix systems well any more.  Saying "unknown
6360         system error" is enough.
6361         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
6362         simpler strerror.c implementation.
6363         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
6364         Simplify the tests to reflect the simpler strerror implementation.
6365         * modules/strerror (Depends-on): Add intprops.
6366
6367 2007-10-09  Eric Blake  <ebb9@byu.net>
6368
6369         Silence test-fpending.
6370         * modules/fpending-tests (Files): Add wrapper script.
6371         * tests/test-fpending.sh: New file.
6372
6373 2007-10-09  Bruno Haible  <bruno@clisp.org>
6374
6375         * MODULES.html.sh (func_module): Don't create a hyperlink for
6376         function names like 'printf_frexp'.
6377         (Misc): Add crc, memxor.
6378         (Characteristics of floating types): New section.
6379         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
6380         isnanf-nolibm, signbit, trunc, truncf, truncl.
6381         (Enhancements for ISO C 99 functions): New subsection Input/output.
6382         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
6383         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
6384         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
6385         (Compatibility checks for POSIX:2001 functions): Add clock-time.
6386         (Enhancements for POSIX:2001 functions): Add chdir-long.
6387         (File system functions): Add areadlink, chdir-safer, read-file.
6388         Remove cycle-check.
6389         (File system as inode set): New section.
6390         (Date and time): Add gethrxtime.
6391         (Multithreading): Add openmp.
6392         (Internationalization functions): Add localename.
6393         (Unicode string functions): Add unistr/u*-mbsnlen.
6394         (Support for maintaining and releasing projects): Add git-version-gen.
6395         (Lone files): Remove directories.
6396
6397 2007-10-08  Ben Pfaff  <blp@gnu.org>
6398
6399         * lib/xmalloca.h: Fix typo in comment.
6400
6401 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6402
6403         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
6404         when avoiding problems with integer overflow.  Use a portable test
6405         instead.
6406
6407 2007-10-08  Simon Josefsson  <simon@josefsson.org>
6408
6409         * modules/dummy (License): Change to LGPLv2+.
6410         * modules/float (License): Likewise
6411         * modules/realloc (License): Likewise
6412         * modules/stdlib (License): Likewise
6413
6414 2007-10-07  Bruno Haible  <bruno@clisp.org>
6415
6416         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
6417         * floor.c (TWO_MANT_DIG): Likewise.
6418         * ceil.c (TWO_MANT_DIG): Likewise.
6419         Reported by Ben Pfaff.
6420
6421 2007-10-07  Bruno Haible  <bruno@clisp.org>
6422
6423         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
6424         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
6425         * lib/frexp.c (FUNC): Likewise.
6426         * lib/printf-frexp.h (printf_frexp): Likewise.
6427         * lib/printf-frexpl.h (printf_frexpl): Likewise.
6428         * lib/printf-frexp.c (FUNC): Likewise.
6429         Suggested by Jim Meyering.
6430
6431 2007-10-07  Jim Meyering  <meyering@redhat.com>
6432
6433         Make xnanosleep's integer overflow test more robust.
6434         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
6435         so that gcc-4.3.0 doesn't optimize away this test for overflow.
6436
6437 2007-10-07  Bruno Haible  <bruno@clisp.org>
6438
6439         * NEWS: Mention the license change.
6440
6441         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
6442         abbreviations in the modules files.
6443
6444         Change copyright notice from GPLv2+ to GPLv3+.
6445         * README: Change copyright notice.
6446         * MODULES.html.sh: Likewise.
6447         * build-aux/bootstrap.conf: Likewise.
6448         * build-aux/config.libpath: Likewise.
6449         * build-aux/csharpcomp.sh.in: Likewise.
6450         * build-aux/csharpexec.sh.in: Likewise.
6451         * build-aux/install-reloc: Likewise.
6452         * build-aux/javacomp.sh.in: Likewise.
6453         * build-aux/javaexec.sh.in: Likewise.
6454         * build-aux/ldd.sh.in: Likewise.
6455         * build-aux/reloc-ldflags: Likewise.
6456         * build-aux/relocatable.sh.in: Likewise.
6457         * build-aux/x-to-1.in: Likewise.
6458         * check-module: Likewise.
6459         * config/srclistvars.sh: Likewise.
6460         * gnulib-tool: Likewise.
6461         * lib/acl-internal.h: Likewise.
6462         * lib/acl.c: Likewise.
6463         * lib/acl.h: Likewise.
6464         * lib/acl_entries.c: Likewise.
6465         * lib/areadlink-with-size.c: Likewise.
6466         * lib/areadlink.c: Likewise.
6467         * lib/areadlink.h: Likewise.
6468         * lib/argmatch.c: Likewise.
6469         * lib/argmatch.h: Likewise.
6470         * lib/argp-ba.c: Likewise.
6471         * lib/argp-eexst.c: Likewise.
6472         * lib/argp-fmtstream.c: Likewise.
6473         * lib/argp-fmtstream.h: Likewise.
6474         * lib/argp-fs-xinl.c: Likewise.
6475         * lib/argp-help.c: Likewise.
6476         * lib/argp-namefrob.h: Likewise.
6477         * lib/argp-parse.c: Likewise.
6478         * lib/argp-pin.c: Likewise.
6479         * lib/argp-pv.c: Likewise.
6480         * lib/argp-pvh.c: Likewise.
6481         * lib/argp-xinl.c: Likewise.
6482         * lib/argp.h: Likewise.
6483         * lib/at-func.c: Likewise.
6484         * lib/atanl.c: Likewise.
6485         * lib/backupfile.c: Likewise.
6486         * lib/backupfile.h: Likewise.
6487         * lib/basename.c: Likewise.
6488         * lib/binary-io.h: Likewise.
6489         * lib/byteswap.in.h: Likewise.
6490         * lib/c-stack.c: Likewise.
6491         * lib/c-stack.h: Likewise.
6492         * lib/c-strcasestr.c: Likewise.
6493         * lib/c-strcasestr.h: Likewise.
6494         * lib/c-strstr.c: Likewise.
6495         * lib/c-strstr.h: Likewise.
6496         * lib/c-strtod.c: Likewise.
6497         * lib/calloc.c: Likewise.
6498         * lib/canon-host.c: Likewise.
6499         * lib/canon-host.h: Likewise.
6500         * lib/canonicalize-lgpl.c: Likewise.
6501         * lib/canonicalize.c: Likewise.
6502         * lib/canonicalize.h: Likewise.
6503         * lib/ceil.c: Likewise.
6504         * lib/ceilf.c: Likewise.
6505         * lib/ceill.c: Likewise.
6506         * lib/chdir-long.c: Likewise.
6507         * lib/chdir-long.h: Likewise.
6508         * lib/chdir-safer.c: Likewise.
6509         * lib/chdir-safer.h: Likewise.
6510         * lib/chown.c: Likewise.
6511         * lib/classpath.c: Likewise.
6512         * lib/classpath.h: Likewise.
6513         * lib/clean-temp.c: Likewise.
6514         * lib/clean-temp.h: Likewise.
6515         * lib/cloexec.c: Likewise.
6516         * lib/close-stream.c: Likewise.
6517         * lib/closein.c: Likewise.
6518         * lib/closein.h: Likewise.
6519         * lib/closeout.c: Likewise.
6520         * lib/closeout.h: Likewise.
6521         * lib/concat-filename.c: Likewise.
6522         * lib/copy-file.c: Likewise.
6523         * lib/copy-file.h: Likewise.
6524         * lib/count-one-bits.h: Likewise.
6525         * lib/crc.c: Likewise.
6526         * lib/crc.h: Likewise.
6527         * lib/creat-safer.c: Likewise.
6528         * lib/csharpcomp.c: Likewise.
6529         * lib/csharpcomp.h: Likewise.
6530         * lib/csharpexec.c: Likewise.
6531         * lib/csharpexec.h: Likewise.
6532         * lib/cycle-check.c: Likewise.
6533         * lib/cycle-check.h: Likewise.
6534         * lib/diacrit.c: Likewise.
6535         * lib/diacrit.h: Likewise.
6536         * lib/diffseq.h: Likewise.
6537         * lib/dirchownmod.c: Likewise.
6538         * lib/dirent.in.h: Likewise.
6539         * lib/dirfd.c: Likewise.
6540         * lib/dirfd.h: Likewise.
6541         * lib/dirname.c: Likewise.
6542         * lib/dirname.h: Likewise.
6543         * lib/dummy.c: Likewise.
6544         * lib/dup-safer.c: Likewise.
6545         * lib/dup2.c: Likewise.
6546         * lib/eealloc.h: Likewise.
6547         * lib/error.c: Likewise.
6548         * lib/error.h: Likewise.
6549         * lib/euidaccess.c: Likewise.
6550         * lib/exclude.c: Likewise.
6551         * lib/exclude.h: Likewise.
6552         * lib/execute.c: Likewise.
6553         * lib/execute.h: Likewise.
6554         * lib/exitfail.c: Likewise.
6555         * lib/exitfail.h: Likewise.
6556         * lib/expl.c: Likewise.
6557         * lib/fatal-signal.c: Likewise.
6558         * lib/fatal-signal.h: Likewise.
6559         * lib/fbufmode.c: Likewise.
6560         * lib/fbufmode.h: Likewise.
6561         * lib/fchdir.c: Likewise.
6562         * lib/fchmodat.c: Likewise.
6563         * lib/fchownat.c: Likewise.
6564         * lib/fcntl--.h: Likewise.
6565         * lib/fcntl-safer.h: Likewise.
6566         * lib/fcntl.in.h: Likewise.
6567         * lib/fd-safer.c: Likewise.
6568         * lib/fflush.c: Likewise.
6569         * lib/file-has-acl.c: Likewise.
6570         * lib/file-set.c: Likewise.
6571         * lib/file-type.c: Likewise.
6572         * lib/file-type.h: Likewise.
6573         * lib/fileblocks.c: Likewise.
6574         * lib/filemode.c: Likewise.
6575         * lib/filemode.h: Likewise.
6576         * lib/filename.h: Likewise.
6577         * lib/filenamecat.c: Likewise.
6578         * lib/filenamecat.h: Likewise.
6579         * lib/findprog.c: Likewise.
6580         * lib/findprog.h: Likewise.
6581         * lib/float.in.h: Likewise.
6582         * lib/floor.c: Likewise.
6583         * lib/floorf.c: Likewise.
6584         * lib/floorl.c: Likewise.
6585         * lib/fopen-safer.c: Likewise.
6586         * lib/fopen.c: Likewise.
6587         * lib/fpending.c: Likewise.
6588         * lib/fpending.h: Likewise.
6589         * lib/fprintf.c: Likewise.
6590         * lib/fprintftime.h: Likewise.
6591         * lib/fpucw.h: Likewise.
6592         * lib/fpurge.c: Likewise.
6593         * lib/fpurge.h: Likewise.
6594         * lib/freadable.c: Likewise.
6595         * lib/freadable.h: Likewise.
6596         * lib/freadahead.c: Likewise.
6597         * lib/freadahead.h: Likewise.
6598         * lib/freading.c: Likewise.
6599         * lib/freading.h: Likewise.
6600         * lib/free.c: Likewise.
6601         * lib/freopen.c: Likewise.
6602         * lib/frexp.c: Likewise.
6603         * lib/frexpl.c: Likewise.
6604         * lib/fseek.c: Likewise.
6605         * lib/fseterr.c: Likewise.
6606         * lib/fseterr.h: Likewise.
6607         * lib/fstatat.c: Likewise.
6608         * lib/fstrcmp.c: Likewise.
6609         * lib/fstrcmp.h: Likewise.
6610         * lib/fsusage.c: Likewise.
6611         * lib/fsusage.h: Likewise.
6612         * lib/ftell.c: Likewise.
6613         * lib/ftello.c: Likewise.
6614         * lib/fts-cycle.c: Likewise.
6615         * lib/fts.c: Likewise.
6616         * lib/fts_.h: Likewise.
6617         * lib/full-read.c: Likewise.
6618         * lib/full-read.h: Likewise.
6619         * lib/full-write.c: Likewise.
6620         * lib/full-write.h: Likewise.
6621         * lib/fwritable.c: Likewise.
6622         * lib/fwritable.h: Likewise.
6623         * lib/fwriteerror.c: Likewise.
6624         * lib/fwriteerror.h: Likewise.
6625         * lib/fwriting.c: Likewise.
6626         * lib/fwriting.h: Likewise.
6627         * lib/gcd.c: Likewise.
6628         * lib/gcd.h: Likewise.
6629         * lib/getcwd.c: Likewise.
6630         * lib/getdate.h: Likewise.
6631         * lib/getdate.y: Likewise.
6632         * lib/getdomainname.c: Likewise.
6633         * lib/getdomainname.h: Likewise.
6634         * lib/getgroups.c: Likewise.
6635         * lib/gethostname.c: Likewise.
6636         * lib/gethrxtime.c: Likewise.
6637         * lib/gethrxtime.h: Likewise.
6638         * lib/getloadavg.c: Likewise.
6639         * lib/getndelim2.c: Likewise.
6640         * lib/getndelim2.h: Likewise.
6641         * lib/getnline.c: Likewise.
6642         * lib/getnline.h: Likewise.
6643         * lib/getopt.c: Likewise.
6644         * lib/getopt.in.h: Likewise.
6645         * lib/getopt1.c: Likewise.
6646         * lib/getopt_int.h: Likewise.
6647         * lib/getpagesize.h: Likewise.
6648         * lib/getsubopt.c: Likewise.
6649         * lib/gettime.c: Likewise.
6650         * lib/getugroups.c: Likewise.
6651         * lib/getugroups.h: Likewise.
6652         * lib/getusershell.c: Likewise.
6653         * lib/gl_anyavltree_list1.h: Likewise.
6654         * lib/gl_anyavltree_list2.h: Likewise.
6655         * lib/gl_anyhash_list1.h: Likewise.
6656         * lib/gl_anyhash_list2.h: Likewise.
6657         * lib/gl_anylinked_list1.h: Likewise.
6658         * lib/gl_anylinked_list2.h: Likewise.
6659         * lib/gl_anyrbtree_list1.h: Likewise.
6660         * lib/gl_anyrbtree_list2.h: Likewise.
6661         * lib/gl_anytree_list1.h: Likewise.
6662         * lib/gl_anytree_list2.h: Likewise.
6663         * lib/gl_anytree_oset.h: Likewise.
6664         * lib/gl_anytreehash_list1.h: Likewise.
6665         * lib/gl_anytreehash_list2.h: Likewise.
6666         * lib/gl_array_list.c: Likewise.
6667         * lib/gl_array_list.h: Likewise.
6668         * lib/gl_array_oset.c: Likewise.
6669         * lib/gl_array_oset.h: Likewise.
6670         * lib/gl_avltree_list.c: Likewise.
6671         * lib/gl_avltree_list.h: Likewise.
6672         * lib/gl_avltree_oset.c: Likewise.
6673         * lib/gl_avltree_oset.h: Likewise.
6674         * lib/gl_avltreehash_list.c: Likewise.
6675         * lib/gl_avltreehash_list.h: Likewise.
6676         * lib/gl_carray_list.c: Likewise.
6677         * lib/gl_carray_list.h: Likewise.
6678         * lib/gl_linked_list.c: Likewise.
6679         * lib/gl_linked_list.h: Likewise.
6680         * lib/gl_linkedhash_list.c: Likewise.
6681         * lib/gl_linkedhash_list.h: Likewise.
6682         * lib/gl_list.c: Likewise.
6683         * lib/gl_list.h: Likewise.
6684         * lib/gl_oset.c: Likewise.
6685         * lib/gl_oset.h: Likewise.
6686         * lib/gl_rbtree_list.c: Likewise.
6687         * lib/gl_rbtree_list.h: Likewise.
6688         * lib/gl_rbtree_oset.c: Likewise.
6689         * lib/gl_rbtree_oset.h: Likewise.
6690         * lib/gl_rbtreehash_list.c: Likewise.
6691         * lib/gl_rbtreehash_list.h: Likewise.
6692         * lib/gl_sublist.c: Likewise.
6693         * lib/gl_sublist.h: Likewise.
6694         * lib/group-member.c: Likewise.
6695         * lib/group-member.h: Likewise.
6696         * lib/hard-locale.c: Likewise.
6697         * lib/hard-locale.h: Likewise.
6698         * lib/hash-pjw.c: Likewise.
6699         * lib/hash-pjw.h: Likewise.
6700         * lib/hash-triple.c: Likewise.
6701         * lib/hash.c: Likewise.
6702         * lib/hash.h: Likewise.
6703         * lib/human.c: Likewise.
6704         * lib/human.h: Likewise.
6705         * lib/i-ring.c: Likewise.
6706         * lib/i-ring.h: Likewise.
6707         * lib/idcache.c: Likewise.
6708         * lib/imaxabs.c: Likewise.
6709         * lib/imaxdiv.c: Likewise.
6710         * lib/inet_pton.c: Likewise.
6711         * lib/inet_pton.h: Likewise.
6712         * lib/intprops.h: Likewise.
6713         * lib/inttostr.c: Likewise.
6714         * lib/inttostr.h: Likewise.
6715         * lib/inttypes.in.h: Likewise.
6716         * lib/isapipe.c: Likewise.
6717         * lib/isdir.c: Likewise.
6718         * lib/isnan.c: Likewise.
6719         * lib/isnan.h: Likewise.
6720         * lib/isnanf.c: Likewise.
6721         * lib/isnanf.h: Likewise.
6722         * lib/isnanl-nolibm.h: Likewise.
6723         * lib/isnanl.c: Likewise.
6724         * lib/isnanl.h: Likewise.
6725         * lib/javacomp.c: Likewise.
6726         * lib/javacomp.h: Likewise.
6727         * lib/javaexec.c: Likewise.
6728         * lib/javaexec.h: Likewise.
6729         * lib/javaversion.c: Likewise.
6730         * lib/javaversion.h: Likewise.
6731         * lib/javaversion.java: Likewise.
6732         * lib/lbrkprop.h: Likewise.
6733         * lib/lchmod.h: Likewise.
6734         * lib/lchown.c: Likewise.
6735         * lib/ldexpl.c: Likewise.
6736         * lib/linebreak.c: Likewise.
6737         * lib/linebreak.h: Likewise.
6738         * lib/linebuffer.c: Likewise.
6739         * lib/linebuffer.h: Likewise.
6740         * lib/locale.in.h: Likewise.
6741         * lib/logl.c: Likewise.
6742         * lib/long-options.c: Likewise.
6743         * lib/long-options.h: Likewise.
6744         * lib/lstat.c: Likewise.
6745         * lib/lstat.h: Likewise.
6746         * lib/math.in.h: Likewise.
6747         * lib/mbchar.c: Likewise.
6748         * lib/mbchar.h: Likewise.
6749         * lib/mbfile.h: Likewise.
6750         * lib/mbiter.h: Likewise.
6751         * lib/mbscasecmp.c: Likewise.
6752         * lib/mbscasestr.c: Likewise.
6753         * lib/mbschr.c: Likewise.
6754         * lib/mbscspn.c: Likewise.
6755         * lib/mbslen.c: Likewise.
6756         * lib/mbsncasecmp.c: Likewise.
6757         * lib/mbsnlen.c: Likewise.
6758         * lib/mbspbrk.c: Likewise.
6759         * lib/mbspcasecmp.c: Likewise.
6760         * lib/mbsrchr.c: Likewise.
6761         * lib/mbssep.c: Likewise.
6762         * lib/mbsspn.c: Likewise.
6763         * lib/mbsstr.c: Likewise.
6764         * lib/mbstok_r.c: Likewise.
6765         * lib/mbswidth.c: Likewise.
6766         * lib/mbswidth.h: Likewise.
6767         * lib/mbuiter.h: Likewise.
6768         * lib/memcasecmp.c: Likewise.
6769         * lib/memcasecmp.h: Likewise.
6770         * lib/memchr.c: Likewise.
6771         * lib/memcmp.c: Likewise.
6772         * lib/memcoll.c: Likewise.
6773         * lib/memcoll.h: Likewise.
6774         * lib/memcpy.c: Likewise.
6775         * lib/memrchr.c: Likewise.
6776         * lib/mkancesdirs.c: Likewise.
6777         * lib/mkdir-p.c: Likewise.
6778         * lib/mkdir-p.h: Likewise.
6779         * lib/mkdir.c: Likewise.
6780         * lib/mkdirat.c: Likewise.
6781         * lib/mkdtemp.c: Likewise.
6782         * lib/mkstemp-safer.c: Likewise.
6783         * lib/mkstemp.c: Likewise.
6784         * lib/modechange.c: Likewise.
6785         * lib/modechange.h: Likewise.
6786         * lib/mountlist.c: Likewise.
6787         * lib/mountlist.h: Likewise.
6788         * lib/mpsort.c: Likewise.
6789         * lib/nanosleep.c: Likewise.
6790         * lib/obstack.c: Likewise.
6791         * lib/obstack.h: Likewise.
6792         * lib/open-safer.c: Likewise.
6793         * lib/open.c: Likewise.
6794         * lib/openat-die.c: Likewise.
6795         * lib/openat-priv.h: Likewise.
6796         * lib/openat-proc.c: Likewise.
6797         * lib/openat.c: Likewise.
6798         * lib/openat.h: Likewise.
6799         * lib/pagealign_alloc.c: Likewise.
6800         * lib/pagealign_alloc.h: Likewise.
6801         * lib/physmem.c: Likewise.
6802         * lib/physmem.h: Likewise.
6803         * lib/pipe-safer.c: Likewise.
6804         * lib/pipe.c: Likewise.
6805         * lib/pipe.h: Likewise.
6806         * lib/posixtm.c: Likewise.
6807         * lib/posixtm.h: Likewise.
6808         * lib/posixver.c: Likewise.
6809         * lib/printf-frexp.c: Likewise.
6810         * lib/printf-frexp.h: Likewise.
6811         * lib/printf-frexpl.c: Likewise.
6812         * lib/printf-frexpl.h: Likewise.
6813         * lib/printf.c: Likewise.
6814         * lib/progname.c: Likewise.
6815         * lib/progname.h: Likewise.
6816         * lib/progreloc.c: Likewise.
6817         * lib/putenv.c: Likewise.
6818         * lib/quote.c: Likewise.
6819         * lib/quote.h: Likewise.
6820         * lib/quotearg.c: Likewise.
6821         * lib/quotearg.h: Likewise.
6822         * lib/raise.c: Likewise.
6823         * lib/readline.c: Likewise.
6824         * lib/readline.h: Likewise.
6825         * lib/readlink.c: Likewise.
6826         * lib/readtokens.c: Likewise.
6827         * lib/readtokens.h: Likewise.
6828         * lib/readtokens0.c: Likewise.
6829         * lib/readtokens0.h: Likewise.
6830         * lib/readutmp.c: Likewise.
6831         * lib/readutmp.h: Likewise.
6832         * lib/realloc.c: Likewise.
6833         * lib/relocwrapper.c: Likewise.
6834         * lib/rename-dest-slash.c: Likewise.
6835         * lib/rename.c: Likewise.
6836         * lib/rmdir.c: Likewise.
6837         * lib/rpmatch.c: Likewise.
6838         * lib/safe-read.c: Likewise.
6839         * lib/safe-read.h: Likewise.
6840         * lib/safe-write.c: Likewise.
6841         * lib/safe-write.h: Likewise.
6842         * lib/same-inode.h: Likewise.
6843         * lib/same.c: Likewise.
6844         * lib/same.h: Likewise.
6845         * lib/save-cwd.c: Likewise.
6846         * lib/save-cwd.h: Likewise.
6847         * lib/savedir.c: Likewise.
6848         * lib/savedir.h: Likewise.
6849         * lib/savewd.c: Likewise.
6850         * lib/savewd.h: Likewise.
6851         * lib/search.in.h: Likewise.
6852         * lib/setenv.c: Likewise.
6853         * lib/setenv.h: Likewise.
6854         * lib/settime.c: Likewise.
6855         * lib/sh-quote.c: Likewise.
6856         * lib/sh-quote.h: Likewise.
6857         * lib/sig2str.c: Likewise.
6858         * lib/sig2str.h: Likewise.
6859         * lib/signal.in.h: Likewise.
6860         * lib/signbitd.c: Likewise.
6861         * lib/signbitf.c: Likewise.
6862         * lib/signbitl.c: Likewise.
6863         * lib/sigprocmask.c: Likewise.
6864         * lib/sincosl.c: Likewise.
6865         * lib/sleep.c: Likewise.
6866         * lib/sprintf.c: Likewise.
6867         * lib/sqrtl.c: Likewise.
6868         * lib/stat-time.h: Likewise.
6869         * lib/stdio--.h: Likewise.
6870         * lib/stdio-safer.h: Likewise.
6871         * lib/stdlib--.h: Likewise.
6872         * lib/stdlib-safer.h: Likewise.
6873         * lib/stdlib.in.h: Likewise.
6874         * lib/stpcpy.c: Likewise.
6875         * lib/stpncpy.c: Likewise.
6876         * lib/strchrnul.c: Likewise.
6877         * lib/strcspn.c: Likewise.
6878         * lib/strerror.c: Likewise.
6879         * lib/strftime.c: Likewise.
6880         * lib/strftime.h: Likewise.
6881         * lib/striconveh.c: Likewise.
6882         * lib/striconveh.h: Likewise.
6883         * lib/striconveha.c: Likewise.
6884         * lib/striconveha.h: Likewise.
6885         * lib/stripslash.c: Likewise.
6886         * lib/strnlen1.c: Likewise.
6887         * lib/strnlen1.h: Likewise.
6888         * lib/strtod.c: Likewise.
6889         * lib/strtoimax.c: Likewise.
6890         * lib/strtok_r.c: Likewise.
6891         * lib/strtol.c: Likewise.
6892         * lib/strtoll.c: Likewise.
6893         * lib/strtoul.c: Likewise.
6894         * lib/strtoull.c: Likewise.
6895         * lib/sysexits.in.h: Likewise.
6896         * lib/tempname.c: Likewise.
6897         * lib/tempname.h: Likewise.
6898         * lib/timespec.h: Likewise.
6899         * lib/tls.c: Likewise.
6900         * lib/tls.h: Likewise.
6901         * lib/tmpdir.c: Likewise.
6902         * lib/tmpdir.h: Likewise.
6903         * lib/tmpfile-safer.c: Likewise.
6904         * lib/tmpfile.c: Likewise.
6905         * lib/trigl.c: Likewise.
6906         * lib/trigl.h: Likewise.
6907         * lib/trim.c: Likewise.
6908         * lib/trim.h: Likewise.
6909         * lib/trunc.c: Likewise.
6910         * lib/truncf.c: Likewise.
6911         * lib/truncl.c: Likewise.
6912         * lib/tsearch.c: Likewise.
6913         * lib/unicodeio.c: Likewise.
6914         * lib/unicodeio.h: Likewise.
6915         * lib/unistd--.h: Likewise.
6916         * lib/unistd-safer.h: Likewise.
6917         * lib/unistdio/ulc-fprintf.c: Likewise.
6918         * lib/unistdio/ulc-vfprintf.c: Likewise.
6919         * lib/unlinkdir.c: Likewise.
6920         * lib/unlinkdir.h: Likewise.
6921         * lib/unlocked-io.h: Likewise.
6922         * lib/unsetenv.c: Likewise.
6923         * lib/userspec.c: Likewise.
6924         * lib/utime.c: Likewise.
6925         * lib/utimecmp.c: Likewise.
6926         * lib/utimecmp.h: Likewise.
6927         * lib/utimens.c: Likewise.
6928         * lib/verify.h: Likewise.
6929         * lib/verror.c: Likewise.
6930         * lib/verror.h: Likewise.
6931         * lib/version-etc-fsf.c: Likewise.
6932         * lib/version-etc.c: Likewise.
6933         * lib/version-etc.h: Likewise.
6934         * lib/vfprintf.c: Likewise.
6935         * lib/vprintf.c: Likewise.
6936         * lib/vsprintf.c: Likewise.
6937         * lib/w32spawn.h: Likewise.
6938         * lib/wait-process.c: Likewise.
6939         * lib/wait-process.h: Likewise.
6940         * lib/wcwidth.c: Likewise.
6941         * lib/write-any-file.c: Likewise.
6942         * lib/xalloc-die.c: Likewise.
6943         * lib/xalloc.h: Likewise.
6944         * lib/xasprintf.c: Likewise.
6945         * lib/xgetcwd.c: Likewise.
6946         * lib/xgetcwd.h: Likewise.
6947         * lib/xgetdomainname.c: Likewise.
6948         * lib/xgetdomainname.h: Likewise.
6949         * lib/xgethostname.c: Likewise.
6950         * lib/xmalloc.c: Likewise.
6951         * lib/xmalloca.c: Likewise.
6952         * lib/xmalloca.h: Likewise.
6953         * lib/xmemcoll.c: Likewise.
6954         * lib/xnanosleep.c: Likewise.
6955         * lib/xreadlink.c: Likewise.
6956         * lib/xreadlink.h: Likewise.
6957         * lib/xsetenv.c: Likewise.
6958         * lib/xsetenv.h: Likewise.
6959         * lib/xstriconv.c: Likewise.
6960         * lib/xstriconv.h: Likewise.
6961         * lib/xstrndup.c: Likewise.
6962         * lib/xstrndup.h: Likewise.
6963         * lib/xstrtod.c: Likewise.
6964         * lib/xstrtod.h: Likewise.
6965         * lib/xstrtol-error.c: Likewise.
6966         * lib/xstrtol.c: Likewise.
6967         * lib/xstrtol.h: Likewise.
6968         * lib/xtime.h: Likewise.
6969         * lib/xvasprintf.c: Likewise.
6970         * lib/xvasprintf.h: Likewise.
6971         * lib/yesno.c: Likewise.
6972         * lib/yesno.h: Likewise.
6973         * posix-modules: Likewise.
6974         * tests/test-alloca-opt.c: Likewise.
6975         * tests/test-arcfour.c: Likewise.
6976         * tests/test-arctwo.c: Likewise.
6977         * tests/test-argmatch.c: Likewise.
6978         * tests/test-argp-2.sh: Likewise.
6979         * tests/test-argp.c: Likewise.
6980         * tests/test-arpa_inet.c: Likewise.
6981         * tests/test-array_list.c: Likewise.
6982         * tests/test-array_oset.c: Likewise.
6983         * tests/test-atexit.c: Likewise.
6984         * tests/test-avltree_list.c: Likewise.
6985         * tests/test-avltree_oset.c: Likewise.
6986         * tests/test-avltreehash_list.c: Likewise.
6987         * tests/test-base64.c: Likewise.
6988         * tests/test-binary-io.c: Likewise.
6989         * tests/test-byteswap.c: Likewise.
6990         * tests/test-c-ctype.c: Likewise.
6991         * tests/test-c-strcasecmp.c: Likewise.
6992         * tests/test-c-strcasestr.c: Likewise.
6993         * tests/test-c-strncasecmp.c: Likewise.
6994         * tests/test-c-strstr.c: Likewise.
6995         * tests/test-canonicalize-lgpl.c: Likewise.
6996         * tests/test-canonicalize.c: Likewise.
6997         * tests/test-carray_list.c: Likewise.
6998         * tests/test-ceilf.c: Likewise.
6999         * tests/test-ceill.c: Likewise.
7000         * tests/test-count-one-bits.c: Likewise.
7001         * tests/test-crc.c: Likewise.
7002         * tests/test-dirname.c: Likewise.
7003         * tests/test-fbufmode.c: Likewise.
7004         * tests/test-fcntl.c: Likewise.
7005         * tests/test-fflush.c: Likewise.
7006         * tests/test-floorf.c: Likewise.
7007         * tests/test-floorl.c: Likewise.
7008         * tests/test-fopen.c: Likewise.
7009         * tests/test-fprintf-posix.c: Likewise.
7010         * tests/test-fprintf-posix.h: Likewise.
7011         * tests/test-fpurge.c: Likewise.
7012         * tests/test-freadable.c: Likewise.
7013         * tests/test-freadahead.c: Likewise.
7014         * tests/test-freading.c: Likewise.
7015         * tests/test-freopen.c: Likewise.
7016         * tests/test-frexp.c: Likewise.
7017         * tests/test-frexpl.c: Likewise.
7018         * tests/test-fseek.c: Likewise.
7019         * tests/test-fseeko.c: Likewise.
7020         * tests/test-fseterr.c: Likewise.
7021         * tests/test-fstrcmp.c: Likewise.
7022         * tests/test-ftell.c: Likewise.
7023         * tests/test-ftello.c: Likewise.
7024         * tests/test-fwritable.c: Likewise.
7025         * tests/test-fwriting.c: Likewise.
7026         * tests/test-getaddrinfo.c: Likewise.
7027         * tests/test-getpass.c: Likewise.
7028         * tests/test-gettimeofday.c: Likewise.
7029         * tests/test-hmac-md5.c: Likewise.
7030         * tests/test-hmac-sha1.c: Likewise.
7031         * tests/test-iconv.c: Likewise.
7032         * tests/test-iconvme.c: Likewise.
7033         * tests/test-inttypes.c: Likewise.
7034         * tests/test-isnan.c: Likewise.
7035         * tests/test-isnanf.c: Likewise.
7036         * tests/test-isnanl-nolibm.c: Likewise.
7037         * tests/test-isnanl.c: Likewise.
7038         * tests/test-isnanl.h: Likewise.
7039         * tests/test-ldexpl.c: Likewise.
7040         * tests/test-linked_list.c: Likewise.
7041         * tests/test-linkedhash_list.c: Likewise.
7042         * tests/test-locale.c: Likewise.
7043         * tests/test-localename.c: Likewise.
7044         * tests/test-lock.c: Likewise.
7045         * tests/test-lseek.c: Likewise.
7046         * tests/test-malloca.c: Likewise.
7047         * tests/test-math.c: Likewise.
7048         * tests/test-mbscasecmp.c: Likewise.
7049         * tests/test-mbscasestr1.c: Likewise.
7050         * tests/test-mbscasestr2.c: Likewise.
7051         * tests/test-mbscasestr3.c: Likewise.
7052         * tests/test-mbscasestr4.c: Likewise.
7053         * tests/test-mbschr.c: Likewise.
7054         * tests/test-mbscspn.c: Likewise.
7055         * tests/test-mbsncasecmp.c: Likewise.
7056         * tests/test-mbspbrk.c: Likewise.
7057         * tests/test-mbspcasecmp.c: Likewise.
7058         * tests/test-mbsrchr.c: Likewise.
7059         * tests/test-mbsspn.c: Likewise.
7060         * tests/test-mbsstr1.c: Likewise.
7061         * tests/test-mbsstr2.c: Likewise.
7062         * tests/test-mbsstr3.c: Likewise.
7063         * tests/test-md5.c: Likewise.
7064         * tests/test-memmem.c: Likewise.
7065         * tests/test-netinet_in.c: Likewise.
7066         * tests/test-open.c: Likewise.
7067         * tests/test-printf-frexp.c: Likewise.
7068         * tests/test-printf-frexpl.c: Likewise.
7069         * tests/test-printf-posix.c: Likewise.
7070         * tests/test-printf-posix.h: Likewise.
7071         * tests/test-rbtree_list.c: Likewise.
7072         * tests/test-rbtree_oset.c: Likewise.
7073         * tests/test-rbtreehash_list.c: Likewise.
7074         * tests/test-read-file.c: Likewise.
7075         * tests/test-rijndael.c: Likewise.
7076         * tests/test-search.c: Likewise.
7077         * tests/test-signbit.c: Likewise.
7078         * tests/test-sleep.c: Likewise.
7079         * tests/test-snprintf-posix.c: Likewise.
7080         * tests/test-snprintf-posix.h: Likewise.
7081         * tests/test-snprintf.c: Likewise.
7082         * tests/test-sprintf-posix.c: Likewise.
7083         * tests/test-sprintf-posix.h: Likewise.
7084         * tests/test-stat-time.c: Likewise.
7085         * tests/test-stdbool.c: Likewise.
7086         * tests/test-stdint.c: Likewise.
7087         * tests/test-stdio.c: Likewise.
7088         * tests/test-stdlib.c: Likewise.
7089         * tests/test-stpncpy.c: Likewise.
7090         * tests/test-strcasestr.c: Likewise.
7091         * tests/test-striconv.c: Likewise.
7092         * tests/test-striconveh.c: Likewise.
7093         * tests/test-striconveha.c: Likewise.
7094         * tests/test-string.c: Likewise.
7095         * tests/test-sys_select.c: Likewise.
7096         * tests/test-sys_socket.c: Likewise.
7097         * tests/test-sys_stat.c: Likewise.
7098         * tests/test-sys_time.c: Likewise.
7099         * tests/test-sysexits.c: Likewise.
7100         * tests/test-time.c: Likewise.
7101         * tests/test-tls.c: Likewise.
7102         * tests/test-trunc.c: Likewise.
7103         * tests/test-truncf.c: Likewise.
7104         * tests/test-truncl.c: Likewise.
7105         * tests/test-unistd.c: Likewise.
7106         * tests/test-vasnprintf-posix.c: Likewise.
7107         * tests/test-vasnprintf-posix2.c: Likewise.
7108         * tests/test-vasnprintf.c: Likewise.
7109         * tests/test-vasprintf-posix.c: Likewise.
7110         * tests/test-vasprintf.c: Likewise.
7111         * tests/test-verify.c: Likewise.
7112         * tests/test-vfprintf-posix.c: Likewise.
7113         * tests/test-vprintf-posix.c: Likewise.
7114         * tests/test-vsnprintf-posix.c: Likewise.
7115         * tests/test-vsnprintf.c: Likewise.
7116         * tests/test-vsprintf-posix.c: Likewise.
7117         * tests/test-wchar.c: Likewise.
7118         * tests/test-wctype.c: Likewise.
7119         * tests/test-wcwidth.c: Likewise.
7120         * tests/test-xstrtol.c: Likewise.
7121         * tests/test-xvasprintf.c: Likewise.
7122         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
7123         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
7124         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7125         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7126         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7127         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
7128         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7129         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7130         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7131         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
7132         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7133         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7134         * tests/uniname/test-uninames.c: Likewise.
7135         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
7136         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
7137         * tests/unistdio/test-u16-printf1.h: Likewise.
7138         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
7139         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
7140         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
7141         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
7142         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7143         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7144         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
7145         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
7146         * tests/unistdio/test-u32-printf1.h: Likewise.
7147         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
7148         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
7149         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
7150         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
7151         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7152         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7153         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
7154         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
7155         * tests/unistdio/test-u8-printf1.h: Likewise.
7156         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
7157         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
7158         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
7159         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
7160         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7161         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7162         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
7163         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
7164         * tests/unistdio/test-ulc-printf1.h: Likewise.
7165         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
7166         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
7167         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
7168         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
7169         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7170         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7171         * tests/uniwidth/test-u16-strwidth.c: Likewise.
7172         * tests/uniwidth/test-u16-width.c: Likewise.
7173         * tests/uniwidth/test-u32-strwidth.c: Likewise.
7174         * tests/uniwidth/test-u32-width.c: Likewise.
7175         * tests/uniwidth/test-u8-strwidth.c: Likewise.
7176         * tests/uniwidth/test-u8-width.c: Likewise.
7177         * tests/uniwidth/test-uc_width.c: Likewise.
7178         * config/srclist-update: Likewise.
7179         (fixlicense): Update to GPLv3+.
7180
7181         Change copyright notice from LGPLv2.1+ to LGPLv3+.
7182         * tests/test-tsearch.c: Change copyright notice.
7183
7184         Change copyright notice from LGPLv2.0+ to LGPLv3+.
7185         * lib/c-strcaseeq.h: Change copyright notice.
7186         * lib/streq.h: Likewise.
7187         * lib/uniconv.h: Likewise.
7188         * lib/uniconv/u-conv-from-enc.h: Likewise.
7189         * lib/uniconv/u-conv-to-enc.h: Likewise.
7190         * lib/uniconv/u-strconv-from-enc.h: Likewise.
7191         * lib/uniconv/u-strconv-to-enc.h: Likewise.
7192         * lib/uniconv/u16-conv-from-enc.c: Likewise.
7193         * lib/uniconv/u16-conv-to-enc.c: Likewise.
7194         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
7195         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
7196         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
7197         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
7198         * lib/uniconv/u32-conv-from-enc.c: Likewise.
7199         * lib/uniconv/u32-conv-to-enc.c: Likewise.
7200         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
7201         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
7202         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
7203         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
7204         * lib/uniconv/u8-conv-from-enc.c: Likewise.
7205         * lib/uniconv/u8-conv-to-enc.c: Likewise.
7206         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
7207         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
7208         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
7209         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
7210         * lib/uniname.h: Likewise.
7211         * lib/uniname/uniname.c: Likewise.
7212         * lib/unistdio.h: Likewise.
7213         * lib/unistdio/u-asnprintf.h: Likewise.
7214         * lib/unistdio/u-asprintf.h: Likewise.
7215         * lib/unistdio/u-printf-args.c: Likewise.
7216         * lib/unistdio/u-printf-args.h: Likewise.
7217         * lib/unistdio/u-printf-parse.h: Likewise.
7218         * lib/unistdio/u-snprintf.h: Likewise.
7219         * lib/unistdio/u-sprintf.h: Likewise.
7220         * lib/unistdio/u-vasprintf.h: Likewise.
7221         * lib/unistdio/u-vsnprintf.h: Likewise.
7222         * lib/unistdio/u-vsprintf.h: Likewise.
7223         * lib/unistdio/u16-asnprintf.c: Likewise.
7224         * lib/unistdio/u16-asprintf.c: Likewise.
7225         * lib/unistdio/u16-printf-parse.c: Likewise.
7226         * lib/unistdio/u16-snprintf.c: Likewise.
7227         * lib/unistdio/u16-sprintf.c: Likewise.
7228         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
7229         * lib/unistdio/u16-u16-asprintf.c: Likewise.
7230         * lib/unistdio/u16-u16-snprintf.c: Likewise.
7231         * lib/unistdio/u16-u16-sprintf.c: Likewise.
7232         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
7233         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
7234         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
7235         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
7236         * lib/unistdio/u16-vasnprintf.c: Likewise.
7237         * lib/unistdio/u16-vasprintf.c: Likewise.
7238         * lib/unistdio/u16-vsnprintf.c: Likewise.
7239         * lib/unistdio/u16-vsprintf.c: Likewise.
7240         * lib/unistdio/u32-asnprintf.c: Likewise.
7241         * lib/unistdio/u32-asprintf.c: Likewise.
7242         * lib/unistdio/u32-printf-parse.c: Likewise.
7243         * lib/unistdio/u32-snprintf.c: Likewise.
7244         * lib/unistdio/u32-sprintf.c: Likewise.
7245         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
7246         * lib/unistdio/u32-u32-asprintf.c: Likewise.
7247         * lib/unistdio/u32-u32-snprintf.c: Likewise.
7248         * lib/unistdio/u32-u32-sprintf.c: Likewise.
7249         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
7250         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
7251         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
7252         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
7253         * lib/unistdio/u32-vasnprintf.c: Likewise.
7254         * lib/unistdio/u32-vasprintf.c: Likewise.
7255         * lib/unistdio/u32-vsnprintf.c: Likewise.
7256         * lib/unistdio/u32-vsprintf.c: Likewise.
7257         * lib/unistdio/u8-asnprintf.c: Likewise.
7258         * lib/unistdio/u8-asprintf.c: Likewise.
7259         * lib/unistdio/u8-printf-parse.c: Likewise.
7260         * lib/unistdio/u8-snprintf.c: Likewise.
7261         * lib/unistdio/u8-sprintf.c: Likewise.
7262         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
7263         * lib/unistdio/u8-u8-asprintf.c: Likewise.
7264         * lib/unistdio/u8-u8-snprintf.c: Likewise.
7265         * lib/unistdio/u8-u8-sprintf.c: Likewise.
7266         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
7267         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
7268         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
7269         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
7270         * lib/unistdio/u8-vasnprintf.c: Likewise.
7271         * lib/unistdio/u8-vasprintf.c: Likewise.
7272         * lib/unistdio/u8-vsnprintf.c: Likewise.
7273         * lib/unistdio/u8-vsprintf.c: Likewise.
7274         * lib/unistdio/ulc-asnprintf.c: Likewise.
7275         * lib/unistdio/ulc-asprintf.c: Likewise.
7276         * lib/unistdio/ulc-printf-parse.c: Likewise.
7277         * lib/unistdio/ulc-snprintf.c: Likewise.
7278         * lib/unistdio/ulc-sprintf.c: Likewise.
7279         * lib/unistdio/ulc-vasnprintf.c: Likewise.
7280         * lib/unistdio/ulc-vasprintf.c: Likewise.
7281         * lib/unistdio/ulc-vsnprintf.c: Likewise.
7282         * lib/unistdio/ulc-vsprintf.c: Likewise.
7283         * lib/unistr.h: Likewise.
7284         * lib/unistr/u-cpy-alloc.h: Likewise.
7285         * lib/unistr/u-cpy.h: Likewise.
7286         * lib/unistr/u-endswith.h: Likewise.
7287         * lib/unistr/u-move.h: Likewise.
7288         * lib/unistr/u-set.h: Likewise.
7289         * lib/unistr/u-startswith.h: Likewise.
7290         * lib/unistr/u-stpcpy.h: Likewise.
7291         * lib/unistr/u-stpncpy.h: Likewise.
7292         * lib/unistr/u-strcat.h: Likewise.
7293         * lib/unistr/u-strcpy.h: Likewise.
7294         * lib/unistr/u-strcspn.h: Likewise.
7295         * lib/unistr/u-strdup.h: Likewise.
7296         * lib/unistr/u-strlen.h: Likewise.
7297         * lib/unistr/u-strncat.h: Likewise.
7298         * lib/unistr/u-strncpy.h: Likewise.
7299         * lib/unistr/u-strnlen.h: Likewise.
7300         * lib/unistr/u-strpbrk.h: Likewise.
7301         * lib/unistr/u-strspn.h: Likewise.
7302         * lib/unistr/u-strstr.h: Likewise.
7303         * lib/unistr/u-strtok.h: Likewise.
7304         * lib/unistr/u16-check.c: Likewise.
7305         * lib/unistr/u16-chr.c: Likewise.
7306         * lib/unistr/u16-cmp.c: Likewise.
7307         * lib/unistr/u16-cpy-alloc.c: Likewise.
7308         * lib/unistr/u16-cpy.c: Likewise.
7309         * lib/unistr/u16-endswith.c: Likewise.
7310         * lib/unistr/u16-mblen.c: Likewise.
7311         * lib/unistr/u16-mbsnlen.c: Likewise.
7312         * lib/unistr/u16-mbtouc-aux.c: Likewise.
7313         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7314         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7315         * lib/unistr/u16-mbtouc.c: Likewise.
7316         * lib/unistr/u16-mbtoucr.c: Likewise.
7317         * lib/unistr/u16-move.c: Likewise.
7318         * lib/unistr/u16-next.c: Likewise.
7319         * lib/unistr/u16-prev.c: Likewise.
7320         * lib/unistr/u16-set.c: Likewise.
7321         * lib/unistr/u16-startswith.c: Likewise.
7322         * lib/unistr/u16-stpcpy.c: Likewise.
7323         * lib/unistr/u16-stpncpy.c: Likewise.
7324         * lib/unistr/u16-strcat.c: Likewise.
7325         * lib/unistr/u16-strchr.c: Likewise.
7326         * lib/unistr/u16-strcmp.c: Likewise.
7327         * lib/unistr/u16-strcpy.c: Likewise.
7328         * lib/unistr/u16-strcspn.c: Likewise.
7329         * lib/unistr/u16-strdup.c: Likewise.
7330         * lib/unistr/u16-strlen.c: Likewise.
7331         * lib/unistr/u16-strmblen.c: Likewise.
7332         * lib/unistr/u16-strmbtouc.c: Likewise.
7333         * lib/unistr/u16-strncat.c: Likewise.
7334         * lib/unistr/u16-strncmp.c: Likewise.
7335         * lib/unistr/u16-strncpy.c: Likewise.
7336         * lib/unistr/u16-strnlen.c: Likewise.
7337         * lib/unistr/u16-strpbrk.c: Likewise.
7338         * lib/unistr/u16-strrchr.c: Likewise.
7339         * lib/unistr/u16-strspn.c: Likewise.
7340         * lib/unistr/u16-strstr.c: Likewise.
7341         * lib/unistr/u16-strtok.c: Likewise.
7342         * lib/unistr/u16-to-u32.c: Likewise.
7343         * lib/unistr/u16-to-u8.c: Likewise.
7344         * lib/unistr/u16-uctomb-aux.c: Likewise.
7345         * lib/unistr/u16-uctomb.c: Likewise.
7346         * lib/unistr/u32-check.c: Likewise.
7347         * lib/unistr/u32-chr.c: Likewise.
7348         * lib/unistr/u32-cmp.c: Likewise.
7349         * lib/unistr/u32-cpy-alloc.c: Likewise.
7350         * lib/unistr/u32-cpy.c: Likewise.
7351         * lib/unistr/u32-endswith.c: Likewise.
7352         * lib/unistr/u32-mblen.c: Likewise.
7353         * lib/unistr/u32-mbsnlen.c: Likewise.
7354         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7355         * lib/unistr/u32-mbtouc.c: Likewise.
7356         * lib/unistr/u32-mbtoucr.c: Likewise.
7357         * lib/unistr/u32-move.c: Likewise.
7358         * lib/unistr/u32-next.c: Likewise.
7359         * lib/unistr/u32-prev.c: Likewise.
7360         * lib/unistr/u32-set.c: Likewise.
7361         * lib/unistr/u32-startswith.c: Likewise.
7362         * lib/unistr/u32-stpcpy.c: Likewise.
7363         * lib/unistr/u32-stpncpy.c: Likewise.
7364         * lib/unistr/u32-strcat.c: Likewise.
7365         * lib/unistr/u32-strchr.c: Likewise.
7366         * lib/unistr/u32-strcmp.c: Likewise.
7367         * lib/unistr/u32-strcpy.c: Likewise.
7368         * lib/unistr/u32-strcspn.c: Likewise.
7369         * lib/unistr/u32-strdup.c: Likewise.
7370         * lib/unistr/u32-strlen.c: Likewise.
7371         * lib/unistr/u32-strmblen.c: Likewise.
7372         * lib/unistr/u32-strmbtouc.c: Likewise.
7373         * lib/unistr/u32-strncat.c: Likewise.
7374         * lib/unistr/u32-strncmp.c: Likewise.
7375         * lib/unistr/u32-strncpy.c: Likewise.
7376         * lib/unistr/u32-strnlen.c: Likewise.
7377         * lib/unistr/u32-strpbrk.c: Likewise.
7378         * lib/unistr/u32-strrchr.c: Likewise.
7379         * lib/unistr/u32-strspn.c: Likewise.
7380         * lib/unistr/u32-strstr.c: Likewise.
7381         * lib/unistr/u32-strtok.c: Likewise.
7382         * lib/unistr/u32-to-u16.c: Likewise.
7383         * lib/unistr/u32-to-u8.c: Likewise.
7384         * lib/unistr/u32-uctomb.c: Likewise.
7385         * lib/unistr/u8-check.c: Likewise.
7386         * lib/unistr/u8-chr.c: Likewise.
7387         * lib/unistr/u8-cmp.c: Likewise.
7388         * lib/unistr/u8-cpy-alloc.c: Likewise.
7389         * lib/unistr/u8-cpy.c: Likewise.
7390         * lib/unistr/u8-endswith.c: Likewise.
7391         * lib/unistr/u8-mblen.c: Likewise.
7392         * lib/unistr/u8-mbsnlen.c: Likewise.
7393         * lib/unistr/u8-mbtouc-aux.c: Likewise.
7394         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7395         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7396         * lib/unistr/u8-mbtouc.c: Likewise.
7397         * lib/unistr/u8-mbtoucr.c: Likewise.
7398         * lib/unistr/u8-move.c: Likewise.
7399         * lib/unistr/u8-next.c: Likewise.
7400         * lib/unistr/u8-prev.c: Likewise.
7401         * lib/unistr/u8-set.c: Likewise.
7402         * lib/unistr/u8-startswith.c: Likewise.
7403         * lib/unistr/u8-stpcpy.c: Likewise.
7404         * lib/unistr/u8-stpncpy.c: Likewise.
7405         * lib/unistr/u8-strcat.c: Likewise.
7406         * lib/unistr/u8-strchr.c: Likewise.
7407         * lib/unistr/u8-strcmp.c: Likewise.
7408         * lib/unistr/u8-strcpy.c: Likewise.
7409         * lib/unistr/u8-strcspn.c: Likewise.
7410         * lib/unistr/u8-strdup.c: Likewise.
7411         * lib/unistr/u8-strlen.c: Likewise.
7412         * lib/unistr/u8-strmblen.c: Likewise.
7413         * lib/unistr/u8-strmbtouc.c: Likewise.
7414         * lib/unistr/u8-strncat.c: Likewise.
7415         * lib/unistr/u8-strncmp.c: Likewise.
7416         * lib/unistr/u8-strncpy.c: Likewise.
7417         * lib/unistr/u8-strnlen.c: Likewise.
7418         * lib/unistr/u8-strpbrk.c: Likewise.
7419         * lib/unistr/u8-strrchr.c: Likewise.
7420         * lib/unistr/u8-strspn.c: Likewise.
7421         * lib/unistr/u8-strstr.c: Likewise.
7422         * lib/unistr/u8-strtok.c: Likewise.
7423         * lib/unistr/u8-to-u16.c: Likewise.
7424         * lib/unistr/u8-to-u32.c: Likewise.
7425         * lib/unistr/u8-uctomb-aux.c: Likewise.
7426         * lib/unistr/u8-uctomb.c: Likewise.
7427         * lib/unitypes.h: Likewise.
7428         * lib/uniwidth.h: Likewise.
7429         * lib/uniwidth/cjk.h: Likewise.
7430         * lib/uniwidth/u16-strwidth.c: Likewise.
7431         * lib/uniwidth/u16-width.c: Likewise.
7432         * lib/uniwidth/u32-strwidth.c: Likewise.
7433         * lib/uniwidth/u32-width.c: Likewise.
7434         * lib/uniwidth/u8-strwidth.c: Likewise.
7435         * lib/uniwidth/u8-width.c: Likewise.
7436         * lib/uniwidth/width.c: Likewise.
7437
7438 2007-10-07  Bruno Haible  <bruno@clisp.org>
7439
7440         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
7441         The file is still under LGPL (see modules/inttypes).
7442
7443 2007-10-06  Bruno Haible  <bruno@clisp.org>
7444
7445         * modules/trunc (Dependencies): Add 'extensions'.
7446         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
7447         Reported by Ben Pfaff <blp@gnu.org>.
7448
7449 2007-10-06  Bruno Haible  <bruno@clisp.org>
7450
7451         * modules/freopen-tests: New file.
7452         * tests/test-freopen.c: New file.
7453
7454         * modules/fopen-tests: New file.
7455         * tests/test-fopen.c: New file.
7456
7457         * modules/fopen: New file.
7458         * lib/fopen.c: New file.
7459         * m4/fopen.m4: New file.
7460         * modules/freopen: New file.
7461         * lib/freopen.c: New file.
7462         * m4/freopen.m4: New file.
7463         * lib/stdio.in.h (fopen, freopen): New declarations.
7464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
7465         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7466         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
7467         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7468         * doc/functions/fopen.texi: Mention the 'fopen' module.
7469         * doc/functions/freopen.texi: Mention the 'freopen' module.
7470
7471 2007-10-06  Bruno Haible  <bruno@clisp.org>
7472
7473         * modules/open-tests: New file.
7474         * tests/test-open.c: New file.
7475
7476         * modules/open: New file.
7477         * lib/open.c: New file.
7478         * m4/open.m4: New file.
7479         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
7480         lib/open.c does.
7481         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
7482         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
7483         macros.
7484         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
7485         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
7486         REPLACE_OPEN.
7487         * doc/functions/open.texi: Mention the 'open' module.
7488
7489 2007-10-04  Bruno Haible  <bruno@clisp.org>
7490
7491         * modules/ceill-tests: New file.
7492         * tests/test-ceill.c: New file.
7493
7494         * modules/ceill: New file.
7495         * lib/ceill.c: Replace entire file.
7496         * m4/ceill.m4: New file.
7497         * lib/math.in.h (ceill): Replace declaration.
7498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
7499         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
7500         * doc/functions/ceill.texi: Mention the 'ceill' module.
7501         * modules/mathl (Files): Remove lib/ceill.c.
7502         (Depends-on): Add ceill.
7503
7504 2007-10-04  Bruno Haible  <bruno@clisp.org>
7505
7506         * modules/ceilf-tests: New file.
7507         * tests/test-ceilf.c: New file.
7508
7509         * modules/ceilf: New file.
7510         * lib/ceil.c: New file.
7511         * lib/ceilf.c: New file.
7512         * m4/ceilf.m4: New file.
7513         * lib/math.in.h (ceilf): New declaration.
7514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
7515         HAVE_DECL_CEILF.
7516         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
7517         HAVE_DECL_CEILF.
7518         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
7519
7520 2007-10-04  Bruno Haible  <bruno@clisp.org>
7521
7522         * modules/floorl-tests: New file.
7523         * tests/test-floorl.c: New file.
7524
7525         * modules/floorl: New file.
7526         * lib/floorl.c: Replace entire file.
7527         * m4/floorl.m4: New file.
7528         * lib/math.in.h (floorl): Replace declaration.
7529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
7530         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
7531         * doc/functions/floorl.texi: Mention the 'floorl' module.
7532         * modules/mathl (Files): Remove lib/floorl.c.
7533         (Depends-on): Add floorl.
7534
7535 2007-10-04  Bruno Haible  <bruno@clisp.org>
7536
7537         * modules/floorf-tests: New file.
7538         * tests/test-floorf.c: New file.
7539
7540         * modules/floorf: New file.
7541         * lib/floor.c: New file.
7542         * lib/floorf.c: New file.
7543         * m4/floorf.m4: New file.
7544         * lib/math.in.h (floorf): New declaration.
7545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
7546         HAVE_DECL_FLOORF.
7547         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
7548         HAVE_DECL_FLOORF.
7549         * doc/functions/floorf.texi: Mention the 'floorf' module.
7550
7551 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
7552             Bruno Haible  <bruno@clisp.org>
7553
7554         Advertise for the Git server instead of the CVS server.
7555         * doc/gnulib-intro.texi (Steady Development): Mention the Git
7556         repository instead of the CVS one.
7557         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
7558         about all VCS systems generically.
7559         * doc/gnulib.texi (Introduction): Capitalize `Git'.
7560
7561 2007-10-04  Bruno Haible  <bruno@clisp.org>
7562
7563         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
7564         means.
7565         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
7566
7567 2007-10-04  Bruno Haible  <bruno@clisp.org>
7568
7569         * modules/truncl-tests: New file.
7570         * tests/test-truncl.c: New file.
7571
7572         * modules/truncl: New file.
7573         * lib/truncl.c: New file.
7574         * m4/truncl.m4: New file.
7575         * lib/math.in.h (truncl): New declaration.
7576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
7577         HAVE_DECL_TRUNCL.
7578         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
7579         HAVE_DECL_TRUNCL.
7580         * doc/functions/truncl.texi: Mention the 'truncl' module.
7581
7582 2007-10-04  Bruno Haible  <bruno@clisp.org>
7583
7584         * modules/truncf-tests: New file.
7585         * tests/test-truncf.c: New file.
7586
7587         * modules/truncf: New file.
7588         * lib/trunc.c: Make paramerizable through USE_* macros.
7589         * lib/truncf.c: New file.
7590         * m4/truncf.m4: New file.
7591         * lib/math.in.h (truncf): New declaration.
7592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
7593         HAVE_DECL_TRUNCF.
7594         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
7595         HAVE_DECL_TRUNCF.
7596         * doc/functions/truncf.texi: Mention the 'truncf' module.
7597
7598 2007-10-03  Bruno Haible  <bruno@clisp.org>
7599
7600         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7601         augmentation also for tests modules.
7602         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
7603         * modules/atexit-tests (Makefile.am): Likewise.
7604         * modules/binary-io-tests (Makefile.am): Likewise.
7605         * modules/c-strcase-tests (Makefile.am): Likewise.
7606         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
7607         * modules/canonicalize-tests (Makefile.am): Likewise.
7608         * modules/closein-tests (Makefile.am): Likewise.
7609         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7610         * modules/freadahead-tests (Makefile.am): Likewise.
7611         * modules/fseek-tests (Makefile.am): Likewise.
7612         * modules/fseeko-tests (Makefile.am): Likewise.
7613         * modules/ftell-tests (Makefile.am): Likewise.
7614         * modules/ftello-tests (Makefile.am): Likewise.
7615         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
7616         * modules/isnanl-tests (Makefile.am): Likewise.
7617         * modules/lseek-tests (Makefile.am): Likewise.
7618         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7619         * modules/mbscasestr-tests (Makefile.am): Likewise.
7620         * modules/mbschr-tests (Makefile.am): Likewise.
7621         * modules/mbscspn-tests (Makefile.am): Likewise.
7622         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7623         * modules/mbspbrk-tests (Makefile.am): Likewise.
7624         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7625         * modules/mbsrchr-tests (Makefile.am): Likewise.
7626         * modules/mbsspn-tests (Makefile.am): Likewise.
7627         * modules/mbsstr-tests (Makefile.am): Likewise.
7628         * modules/printf-posix-tests (Makefile.am): Likewise.
7629         * modules/snprintf-posix-tests (Makefile.am): Likewise.
7630         * modules/sprintf-posix-tests (Makefile.am): Likewise.
7631         * modules/tsearch-tests (Makefile.am): Likewise.
7632         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7633         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7634         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7635         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7636         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7637         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7638         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7639         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7640         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
7641         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
7642         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7643         * modules/xstrtol-tests (Makefile.am): Likewise.
7644         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7645         * modules/yesno-tests (Makefile.am): Likewise.
7646
7647 2007-10-03  Bruno Haible  <bruno@clisp.org>
7648
7649         * modules/trunc-tests: New file.
7650         * tests/test-trunc.c: New file.
7651
7652         * modules/trunc: New file.
7653         * lib/trunc.c: New file.
7654         * m4/trunc.m4: New file.
7655         * lib/math.in.h (trunc): New declaration.
7656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
7657         HAVE_DECL_TRUNC.
7658         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
7659         HAVE_DECL_TRUNC.
7660         * doc/functions/trunc.texi: Mention the 'trunc' module.
7661
7662 2007-10-03  Bruno Haible  <bruno@clisp.org>
7663
7664         * tests/test-fpending.c: New file, mostly copied
7665         from coreutils/lib/t-fpending.c.
7666         * modules/fpending-tests: New file.
7667
7668 2007-10-03  Bruno Haible  <bruno@clisp.org>
7669
7670         Port the stdio extensions to QNX (untested).
7671         * lib/fseterr.c (fseterr): Add support for QNX.
7672         * lib/fbufmode.c (fbufmode): Likewise.
7673         * lib/freadable.c (freadable): Likewise.
7674         * lib/fwritable.c (fwritable): Likewise.
7675         * lib/freading.c (freading): Likewise.
7676         * lib/fwriting.c (fwriting): Likewise.
7677         * lib/freadahead.c (freadahed): Likewise.
7678         * lib/fpurge.c (fpurge): Likewise.
7679         * lib/fseeko.c (rpl_fseeko): Likewise.
7680
7681 2007-10-03  Bruno Haible  <bruno@clisp.org>
7682             Jim Meyering  <jim@meyering.net>
7683             Eric Blake  <ebb9@byu.net>
7684
7685         * doc/relocatable.texi: Use @command instead of @program.
7686
7687 2007-10-02  Jim Meyering  <jim@meyering.net>
7688
7689         Perform one more "_.h" -> ".in.h" substitution.
7690         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
7691         instead of unistd_.h here, too.
7692
7693 2007-10-01  Bruno Haible  <bruno@clisp.org>
7694
7695         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
7696         Needed for the alloca-opt module.
7697
7698 2007-09-30  Bruno Haible  <bruno@clisp.org>
7699
7700         * lib/alloca.in.h: Renamed from lib/alloca_.h.
7701         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
7702         alloca_.h.
7703         * lib/argz.in.h: Renamed from lib/argz_.h.
7704         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
7705         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
7706         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
7707         byteswap_.h.
7708         * lib/dirent.in.h: Renamed from lib/dirent_.h.
7709         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
7710         dirent_.h.
7711         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
7712         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
7713         fcntl_.h.
7714         * lib/float.in.h: Renamed from lib/float_.h.
7715         * modules/float (Files, Makefile.am): Use float.in.h instead of
7716         float_.h.
7717         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
7718         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
7719         fnmatch_.h.
7720         * lib/getopt.in.h: Renamed from lib/getopt_.h.
7721         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
7722         getopt_.h.
7723         * lib/glob.in.h: Renamed from lib/glob_.h.
7724         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
7725         * lib/iconv.in.h: Renamed from lib/iconv_.h.
7726         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
7727         iconv_.h.
7728         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
7729         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
7730         inttypes_.h.
7731         * lib/locale.in.h: Renamed from lib/locale_.h.
7732         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
7733         locale_.h.
7734         * lib/math.in.h: Renamed from lib/math_.h.
7735         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
7736         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
7737         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
7738         of netinet_in_.h. Add dependency.
7739         * lib/poll.in.h: Renamed from lib/poll_.h.
7740         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
7741         * lib/search.in.h: Renamed from lib/search_.h.
7742         * modules/search (Files, Makefile.am): Use search.in.h instead of
7743         search_.h.
7744         * lib/signal.in.h: Renamed from lib/signal_.h.
7745         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
7746         _signal.h.
7747         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
7748         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
7749         stdbool_.h.
7750         * lib/stdint.in.h: Renamed from lib/stdint_.h.
7751         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
7752         stdint_.h.
7753         * lib/stdio.in.h: Renamed from lib/stdio_.h.
7754         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
7755         stdio_.h.
7756         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
7757         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
7758         stdlib_.h.
7759         * lib/string.in.h: Renamed from lib/string_.h.
7760         * modules/string (Files, Makefile.am): Use string.in.h instead of
7761         string_.h.
7762         * doc/gnulib-tool.texi (Initial import): Update.
7763         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
7764         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
7765         of sys_select_.h. Add dependency.
7766         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
7767         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
7768         of sys_socket_.h.
7769         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
7770         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
7771         sys_stat_.h.
7772         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
7773         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
7774         sys_time_.h.
7775         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
7776         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
7777         sysexits_.h.
7778         * lib/time.in.h: Renamed from lib/time_.h.
7779         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
7780         * lib/unistd.in.h: Renamed from lib/unistd_.h.
7781         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
7782         unistd_.h.
7783         * lib/wchar.in.h: Renamed from lib/wchar_.h.
7784         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
7785         wchar_.h.
7786         * lib/wctype.in.h: Renamed from lib/wctype_.h.
7787         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
7788         wctype_.h.
7789         * build-aux/bootstrap (slurp): Update.
7790         * lib/.cppi-disable: Update.
7791
7792 2007-09-30  Bruno Haible  <bruno@clisp.org>
7793
7794         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
7795         Needed on BeOS.
7796
7797 2007-09-30  Bruno Haible  <bruno@clisp.org>
7798
7799         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
7800
7801 2007-09-29  Bruno Haible  <bruno@clisp.org>
7802
7803         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
7804
7805 2007-09-29  Bruno Haible  <bruno@clisp.org>
7806
7807         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
7808         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
7809         * build-aux/install-reloc: Compile also areadlink.c.
7810         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
7811
7812 2007-09-29  Bruno Haible  <bruno@clisp.org>
7813
7814         * gnulib-tool (func_emit_initmacro_done): Indentation.
7815
7816 2007-09-29  Bruno Haible  <bruno@clisp.org>
7817
7818         * README: Add CVS checkout update instructions.
7819         Info from Bob Proulx <bob@proulx.com>.
7820
7821 2007-09-28  Eric Blake  <ebb9@byu.net>
7822
7823         Provide move-if-change.
7824         * build-aux/move-if-change: New file, based on best practice
7825         rather than any canonical upstream location.
7826
7827 2007-09-28  Jim Meyering  <jim@meyering.net>
7828
7829         Fix canonicalize loop-detection corner case.
7830         Do not attempt to stat the symlink values stored via seen_triple.
7831         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
7832         on linux-2.6.18, (but not 2.6.22).
7833         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
7834         triple_compare.  The former compares dev,ino,filename, while the latter
7835         would actually stat dirname(filename) when dev and ino were equal.
7836         * lib/hash-triple.c: Install <string.h>.
7837         (STREQ): Define.
7838         (triple_compare_ino_str): New function.
7839         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
7840
7841 2007-09-28  Eric Blake  <ebb9@byu.net>
7842
7843         Enforce that AC_REPLACE_FUNCS files exist.
7844         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
7845         override check for typos.
7846
7847         Fix test-closein on Solaris 10.
7848         * tests/test-closein.c (main): Don't assume stdin can be inherited
7849         closed on all systems.
7850         * tests/test-closein.sh: Likewise.
7851         Reported by Piotr Tarnowski.
7852
7853 2007-09-28  Jim Meyering  <jim@meyering.net>
7854
7855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
7856
7857 2007-09-27  Jim Meyering  <jim@meyering.net>
7858
7859         canonicalize: Avoid a false-positive cycle failure.
7860         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
7861         Sort.  Remove cycle-check.
7862         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
7863         not cycle-check.h.
7864         (seen_triple): New function.
7865         (canonicalize_filename_mode): Use it instead of cycle-check.
7866         * tests/test-canonicalize.c: Add a test for this bug.
7867         * tests/test-canonicalize.sh: Set up and run the test.
7868
7869         New module, file-set, from coreutils.
7870         * modules/file-set: Define it.
7871         * lib/file-set.c, lib/file-set.h: Implement.
7872
7873         New module, hash-triple, from coreutils.
7874         * modules/hash-triple: Define it.
7875         * lib/hash-triple.c, lib/hash-triple.h: Implement.
7876
7877 2007-09-25  Eric Blake  <ebb9@byu.net>
7878
7879         Fix strerror on Interix.
7880         * lib/string_.h (strerror): Declare replacement.
7881         * doc/functions/strerror.texi (strerror): Document the Interix
7882         shortcoming.
7883         * modules/string (Makefile.am): Support new hooks.
7884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
7885         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
7886         gl_FUNC_STRERROR_SEPARATE.
7887         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
7888         * lib/strerror.c (rpl_strerror): Provide replacement.
7889         * modules/strerror (Depends-on): Add string.
7890         (configure.ac): Detect use of module.
7891         * tests/test-strerror.c: New file.
7892         * modules/strerror-tests: New test module.
7893         * modules/argp (Depends-on): Add strerror.
7894         * modules/error (Depends-on): Likewise.
7895         Reported by Martin Koeppe.
7896
7897 2007-09-24  Bruno Haible  <bruno@clisp.org>
7898
7899         * README: Update git instructions.
7900
7901 2007-09-24  Eric Blake  <ebb9@byu.net>
7902
7903         Revert fpending breakage from 2007-09-08.
7904         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
7905         __fpending.c.
7906
7907 2007-09-24  Jim Meyering  <jim@meyering.net>
7908
7909         filenamecat.c: Add a test.
7910         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
7911         showing how the function works when DIR is the empty string.
7912
7913 2007-09-21  Simon Josefsson  <simon@josefsson.org>
7914
7915         * tests/test-canonicalize.sh: Turn on executable bit.
7916
7917 2007-09-19  Eric Blake  <ebb9@byu.net>
7918
7919         * README: Update CVS instructions.
7920
7921 2007-09-18  Bruno Haible  <bruno@clisp.org>
7922
7923         * modules/areadlink: New file.
7924         * lib/areadlink.h (areadlink): New declaration.
7925         * lib/areadlink.c: New file, based on lib/xreadlink.c.
7926
7927 2007-09-17  Jim Meyering  <jim@meyering.net>
7928
7929         * lib/savewd.c (ESTALE) [!defined]: Define.
7930         Reported to be required on Interix by Martin Koeppe.
7931
7932 2007-09-17  Bruno Haible  <bruno@clisp.org>
7933
7934         * gnulib-tool (func_version): Use $version.
7935
7936 2007-09-16  Bruno Haible  <bruno@clisp.org>
7937
7938         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
7939         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
7940         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
7941         Reported by Greg Schafer <gschafer@zip.com.au>.
7942
7943 2007-09-15  Bruno Haible  <bruno@clisp.org>
7944
7945         * gnulib-tool (sed): Try a little harder to make bash understand the
7946         alias.
7947         Reported by Bruce Korb <bruce.korb@gmail.com>.
7948
7949 2007-09-13  Eric Blake  <ebb9@byu.net>
7950
7951         * ChangeLog: Remove conflict markers.
7952
7953 2007-09-13  Simon Josefsson  <simon@josefsson.org>
7954
7955         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
7956         Reported by Bruno Haible <bruno@clisp.org>.
7957
7958 2007-09-12  Bruno Haible  <bruno@clisp.org>
7959
7960         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
7961         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
7962         is not defined.
7963
7964 2007-09-12  Eric Blake  <ebb9@byu.net>
7965
7966         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
7967         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
7968         Autoconf definition.
7969         * modules/euidaccess (Depends-on): Add extensions, for
7970         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
7971         * modules/fnmatch (Depends-on): Likewise.
7972         * modules/getaddrinfo (Depends-on): Likewise.
7973         * modules/getdelim (Depends-on): Likewise.
7974         * modules/getline (Depends-on): Likewise.
7975         * modules/getsubopt (Depends-on): Likewise.
7976         * modules/gettext (Depends-on): Likewise.
7977         * modules/group-member (Depends-on): Likewise.
7978         * modules/mbchar (Depends-on): Likewise.
7979         * modules/memmem (Depends-on): Likewise.
7980         * modules/mempcpy (Depends-on): Likewise.
7981         * modules/memrchr (Depends-on): Likewise.
7982         * modules/pagealign_alloc (Depends-on): Likewise.
7983         * modules/readutmp (Depends-on): Likewise.
7984         * modules/stpcpy (Depends-on): Likewise.
7985         * modules/stpncpy (Depends-on): Likewise.
7986         * modules/strchrnul (Depends-on): Likewise.
7987         * modules/strndup (Depends-on): Likewise.
7988         * modules/strsep (Depends-on): Likewise.
7989         * modules/strverscmp (Depends-on): Likewise.
7990         * modules/vasprintf (Depends-on): Likewise.
7991         * modules/wcwidth (Depends-on): Likewise.
7992         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
7993         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
7994         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
7995         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
7996         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7997         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7998         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
7999         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8000         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
8001         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8002         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8003         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
8004         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
8005         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8006         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
8007         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8008         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8009         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
8010         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8011         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
8012         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
8013         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
8014         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
8015         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
8016         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
8017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8018         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
8019         so that lock.m4 can be used in gettext without extensions module.
8020
8021 2007-09-11  Bruno Haible  <bruno@clisp.org>
8022
8023         * m4/isc-posix.m4: Remove file.
8024         Suggested by Eric Blake.
8025
8026 2007-09-11  Eric Blake  <ebb9@byu.net>
8027
8028         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
8029
8030 2007-09-10  Bruno Haible  <bruno@clisp.org>
8031
8032         * posix-modules: Fix typo in error message.
8033         Reported by Matt <mkraai@beckman.com>.
8034
8035 2007-09-09  Bruno Haible  <bruno@clisp.org>
8036
8037         * doc/functions/getdelim.texi: Update list of platforms lacking the
8038         function.
8039         * doc/functions/getline.texi: Likewise.
8040
8041 2007-09-09  Jim Meyering  <jim@meyering.net>
8042
8043         * lib/hash.c (hash_initialize): Detect calloc failure.
8044         Reported by Bruno Haible.
8045
8046 2007-09-09  Bruno Haible  <bruno@clisp.org>
8047
8048         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
8049         malloc or realloc fails.
8050
8051 2007-09-09  Bruno Haible  <bruno@clisp.org>
8052
8053         * modules/getcwd (Depends-on): Add malloc-posix.
8054         * modules/glob (Depends-on): Likewise.
8055         * modules/putenv (Depends-on): Likewise.
8056         * modules/strdup (Depends-on): Likewise.
8057         * modules/getdelim (Depends-on): Add realloc-posix.
8058         * modules/read-file (Depends-on): Likewise.
8059
8060 2007-09-09  Bruno Haible  <bruno@clisp.org>
8061
8062         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
8063         (gl_FUNC_MALLOC_POSIX): Require it.
8064         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
8065         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
8066         * modules/realloc (Files): Add m4/malloc.m4.
8067         * modules/calloc (Files): Likewise.
8068
8069 2007-09-09  Bruno Haible  <bruno@clisp.org>
8070
8071         * modules/malloc-posix: New file.
8072         * modules/malloc (Depends-on): Add malloc-posix.
8073         * lib/malloc.c: Include errno.h.
8074         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
8075         and a POSIX-compatible malloc into a single function. Set ENOMEM
8076         when returning NULL.
8077         * m4/malloc.m4: New file.
8078         * doc/functions/malloc.texi: Mention the malloc-posix module.
8079         * lib/stdlib_.h (malloc): New declaration.
8080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8081         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
8082         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
8083         and HAVE_MALLOC_POSIX.
8084
8085 2007-09-09  Bruno Haible  <bruno@clisp.org>
8086
8087         * modules/realloc-posix: New file.
8088         * modules/realloc (Depends-on): Add realloc-posix.
8089         * lib/realloc.c: Include errno.h.
8090         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
8091         and a POSIX-compatible realloc into a single function. Set ENOMEM
8092         when returning NULL.
8093         * m4/realloc.m4: New file.
8094         * doc/functions/realloc.texi: Mention the realloc-posix module.
8095         * lib/stdlib_.h (realloc): New declaration.
8096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8097         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
8098         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
8099         and HAVE_REALLOC_POSIX.
8100
8101 2007-09-09  Bruno Haible  <bruno@clisp.org>
8102
8103         * modules/calloc-posix: New file.
8104         * modules/calloc (Depends-on): Add calloc-posix.
8105         * lib/calloc.c: Include errno.h.
8106         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
8107         and a POSIX-compatible calloc into a single function. Set ENOMEM
8108         when returning NULL.
8109         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
8110         * doc/functions/calloc.texi: Mention the calloc-posix module.
8111         * lib/stdlib_.h (calloc): New declaration.
8112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8113         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
8114         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
8115         and HAVE_CALLOC_POSIX.
8116
8117 2007-09-09  Bruno Haible  <bruno@clisp.org>
8118
8119         Allow for modules to show an arbitrary notice.
8120         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
8121         * gnulib-tool: New option --extract-notice.
8122         (func_usage): Document it.
8123         (sed_extract_prog): Update.
8124         (func_get_notice): New function.
8125         (func_modules_notice): New function.
8126         (func_import, func_create_testdir): Invoke it.
8127         Suggested by Jim Meyering.
8128
8129 2007-09-09  Bruno Haible  <bruno@clisp.org>
8130
8131         * gnulib-tool: New options --verbose, --quiet.
8132         (func_usage): Document them.
8133         (verbose): New variable.
8134         (func_execute_command): New function.
8135         (func_import): Don't show the module list and the file list if
8136         $verbose < 0.
8137         (func_create_testdir): Likewise. Use func_execute_command.
8138         (func_create_megatestdir): Use func_execute_command.
8139
8140 2007-09-08  Bruno Haible  <bruno@clisp.org>
8141
8142         * gnulib-tool (func_import): Prefer rsync over wget when available,
8143         for fetching the PO files.
8144
8145 2007-09-08  Bruno Haible  <bruno@clisp.org>
8146
8147         * posix-modules: New file. Portions copied from gnulib-tool.
8148         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
8149
8150 2007-09-08  Jim Meyering  <jim@meyering.net>
8151
8152         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
8153         * lib/fpending.h: Rename from __fpending.h.
8154         * lib/fpending.c: Rename from __fpending.c.
8155         Include "fpending.h", not "__fpending.h".
8156         * lib/__fpending.h, lib/__fpending.c: Remove files.
8157         * modules/fpending (Files): Reflect new file names.
8158         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
8159
8160 2007-09-08  Bruno Haible  <bruno@clisp.org>
8161
8162         * m4/inttypes-h.m4: Remove stub file.
8163
8164 2007-09-07  Simon Josefsson  <simon@josefsson.org>
8165
8166         * doc/headers/stdint.texi: Discuss #include_next issue.
8167
8168 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8169
8170         * build-aux/bootstrap: Remove obsolete comment about wget --help.
8171
8172 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8173
8174         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
8175         in variable name.
8176
8177 2007-09-03  Jim Meyering  <jim@meyering.net>
8178
8179         New module: git-version-gen.
8180         * modules/git-version-gen: New file.
8181
8182         Import changes from coreutils for bootstrap script.
8183
8184         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
8185
8186         bootstrap: uses rsync to download the .po files
8187         * build-aux/bootstrap (po_download_command_format): New global.
8188         (download_po_files): Use rsync.
8189         (update_po_files): Don't remove .po files after download,
8190         so future rsync runs can take advantage of the copies.
8191
8192         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
8193
8194         Solve the unnecessary-.po-file-regeneration problem once and for all.
8195         * build-aux/bootstrap (download_po_files): New function, renamed from
8196         get_translations.  Now, downloads, but doesn't update LINGUAS.
8197         (update_po_files): New function.
8198
8199         bootstrap: Ignore more.
8200         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
8201         uniwidth to e.g., lib/.gitignore.
8202         (slurp): Handle the sys_stat_.h -> sys mapping, too.
8203
8204         * build-aux/bootstrap: New setting: vc_ignore.
8205         (insert_sorted_if_absent): Create $file if absent.
8206         Adapt to new, possibly empty, list: $vc_ignore.
8207
8208         bootstrap: generate more ignorable names
8209         * build-aux/bootstrap (slurp): When generating ignorable names,
8210         also map .sin to .sed, .gperf to .c, and .y to .c.
8211
8212 2007-09-03  Jim Meyering  <jim@meyering.net>
8213
8214         * build-aux/git-version-gen: New file, from coreutils.  For details, see
8215         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
8216
8217 2007-09-02  Bruno Haible  <bruno@clisp.org>
8218
8219         Fix mis-recognition of 'mcs' on QNX 6.
8220         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
8221         output contains the string "Mono".
8222         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
8223         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
8224
8225 2007-09-01  Bruno Haible  <bruno@clisp.org>
8226
8227         Fix collision between uniwidth/* and linebreak modules.
8228         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
8229         u32_width): Remove declarations.
8230         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
8231         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
8232         streq3, streq2, streq1, streq0): Remove functions.
8233         (STREQ): Remove macro.
8234         (is_cjk_encoding): Remove function.
8235         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
8236         (uc_width, u8_width, u16_width, u32_width): Remove functions.
8237         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
8238         * NEWS: Document the change.
8239
8240 2007-09-01  Bruno Haible  <bruno@clisp.org>
8241
8242         * lib/streq.h: Add double-inclusion guard.
8243
8244 2007-09-01  Karl Berry  <karl@gnu.org>
8245
8246         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
8247
8248 2007-08-28  Jim Meyering  <jim@meyering.net>
8249
8250         Rename mreadlink_with_size to areadlink_with_size.
8251         * NEWS: Document the change.
8252         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
8253         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
8254         * lib/mreadlink.h: Rename this to...
8255         * lib/areadlink.h: ...this.
8256         * modules/mreadlink-with-size: Rename this to...
8257         * modules/areadlink-with-size: ...this.
8258         * lib/canonicalize.c: Reflect the renaming.
8259         * modules/canonicalize: Likewise.
8260
8261 2007-08-26  Bruno Haible  <bruno@clisp.org>
8262
8263         * gnulib-tool (func_import): When deciding which files to remove,
8264         consider also dangling symbolic links.
8265         Reported by Eric Blake.
8266
8267 2007-08-26  Bruno Haible  <bruno@clisp.org>
8268
8269         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
8270
8271 2007-08-23  Simon Josefsson  <simon@josefsson.org>
8272
8273         * lib/readline.c: Don't include getline.h, the prototype is now
8274         found in stdio.h.
8275
8276 2007-08-23  Jim Meyering  <jim@meyering.net>
8277
8278         Getdelim touchup.
8279         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
8280         around the funlockfile call, since funlockfile never sets errno.
8281         Don't set errno upon failed realloc.
8282
8283 2007-08-22  Eric Blake  <ebb9@byu.net>
8284
8285         Getline touchups.
8286         * lib/getdelim.c (getdelim): Revert regression that required *n to
8287         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
8288         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
8289         getdelim, rather than whether implementation is missing.
8290         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
8291         * lib/stdio_.h (getline): Also declare if replacement is
8292         required.
8293         * doc/functions/getdelim.texi: New file.
8294         * doc/functions/getline.texi: Likewise.
8295         * doc/gnulib.texi (Function Substitutes): Add new files.
8296         Reported by Bruno Haible.
8297
8298 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
8299
8300         * users.txt: Add Guile.
8301
8302 2007-08-22  Eric Blake  <ebb9@byu.net>
8303
8304         * tests/test-getdelim.c (main): Use remove, not unlink.
8305         * tests/test-getline.c (main): Likewise.
8306
8307         Move getline and getdelim into stdio.h, per POSIX 200x.
8308         * modules/getline (Files): Remove getline.h.
8309         (Depends-on): Add stdio.
8310         (configure.ac): Add module indicator.
8311         * modules/getdelim (Files): Remove getdelim.h.
8312         (Depends-on): Add stdio.
8313         (configure.ac): Add module indicator.
8314         * modules/stdio (Makefile.am): Work with new indicators.
8315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
8317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8318         * lib/getdelim.h: Delete.
8319         * lib/getline.h: Delete.
8320         * lib/stdio_.h (getdelim, getline): Declare.
8321         * modules/getdelim-tests: New module.
8322         * modules/getline-tests: Likewise.
8323         * tests/test-getdelim.c: New file.
8324         * tests/test-getline.c: Likewise.
8325         * NEWS: Document the change.
8326         * lib/getline.c: Update choice of header.
8327         * lib/csharpcomp.c: Likewise.
8328         * lib/getpass.c: Likewise.
8329         * lib/javacomp.c: Likewise.
8330         * lib/javaversion.c: Likewise.
8331         * lib/yesno.c: Likewise.
8332         * lib/getdelim.c: Likewise.
8333         (getdelim): Set errno on failure, and avoid memory leak.
8334
8335 2007-08-19  Bruno Haible  <bruno@clisp.org>
8336
8337         * modules/closein (Depends-on): Add freadahead.
8338         * lib/closein.c: Include freadahead.h.
8339         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
8340         is zero.
8341
8342 2007-08-19  Bruno Haible  <bruno@clisp.org>
8343
8344         * modules/freadahead-tests: New file.
8345         * tests/test-freadahead.sh: New file.
8346         * tests/test-freadahead.c: New file.
8347
8348         * modules/freadahead: New file.
8349         * lib/freadahead.h: New file.
8350         * lib/freadahead.c: New file.
8351         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
8352         fbufmode, fpurge, freadable, fwritable.
8353
8354 2007-08-19  Eric Blake  <ebb9@byu.net>
8355
8356         Test yesno in combination with closein.
8357         * lib/yesno.c (yesno): Document use of stdin.
8358         * modules/yesno-tests (Files): New module.
8359         * tests/test-yesno.c (main): New file.
8360         * tests/test-yesno.sh: Likewise.
8361
8362 2007-08-19  Bruno Haible  <bruno@clisp.org>
8363
8364         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
8365         * lib/fseeko.c (rpl_fseeko): Likewise.
8366         * lib/fseterr.c (fseterr): Likewise.
8367
8368 2007-08-19  Bruno Haible  <bruno@clisp.org>
8369
8370         * tests/test-lseek.c (main): Disable a test for BeOS.
8371         * doc/functions/lseek.texi: Document the BeOS bug.
8372
8373 2007-08-19  Bruno Haible  <bruno@clisp.org>
8374             Eric Blake  <ebb9@byu.net>
8375
8376         * lib/lseek.c: Include <sys/stat.h>.
8377         (rpl_lseek): Add workaround code also for Unix platforms.
8378         Needed for BeOS.
8379         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
8380         * doc/functions/lseek.texi: Document BeOS definiency.
8381
8382 2007-08-18  Bruno Haible  <bruno@clisp.org>
8383
8384         * modules/fstrcmp-tests: New file.
8385         * tests/test-fstrcmp.c: New file.
8386
8387 2007-08-18  Bruno Haible  <bruno@clisp.org>
8388
8389         * modules/fstrcmp: New file, from GNU gettext with modifications.
8390         * lib/fstrcmp.h: New file, from GNU gettext.
8391         * lib/fstrcmp.c: New file, from GNU gettext.
8392         * MODULES.html.sh (String handling): Add fstrcmp.
8393
8394 2007-08-18  Bruno Haible  <bruno@clisp.org>
8395
8396         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
8397         'bool'.
8398         (diag, compareseq): Remove const from the ctxt argument.
8399         (USE_HEURISTIC): Undefine at the end.
8400
8401 2007-08-18  Jim Meyering  <jim@meyering.net>
8402
8403         New file: lib/idcache.h
8404         * NEWS: Mention the addition.
8405         * modules/idcache (Files): Add lib/idcache.h
8406         * lib/idcache.c: Include "idcache.h".
8407         Don't include <sys/types.h>.
8408         Add a FIXME comment.
8409         Move file-scoped "static" declarations to the top.
8410         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
8411
8412 2007-08-17  Bruno Haible  <bruno@clisp.org>
8413         and Paul Eggert  <eggert@cs.ucla.edu>
8414
8415         * MODULES.html.sh: Add diffseq.
8416         * modules/diffseq: New file.
8417         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
8418         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
8419
8420 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8421
8422         Import changes from coreutils for bootstrap script.
8423
8424         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
8425
8426         * build-aux/bootstrap (slurp): Work even in environments where
8427         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
8428         current code does not slurp files whose names start with ".", and
8429         this looks like it might be a troublesome area.
8430
8431         2007-07-11  Jim Meyering  <jim@meyering.net>
8432
8433         If there's a GPL vN copyright comment, require that N == 3.
8434
8435         2007-07-08  Jim Meyering  <jim@meyering.net>
8436
8437         Run the coreutils-specific code only if tests/Makefile.am.in exists.
8438         * build-aux/bootstrap (mam_template): Move definition out of loop.
8439
8440         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
8441
8442         * build-aux/bootstrap (symlink_to_dir): Rename function from
8443         symlink_to_gnulib.  Add a directory parameter.  Update all
8444         callers.
8445         (cp_mark_as_generated): Also check for -- and link to -- files in
8446         gl/.
8447
8448         2007-07-08  Jim Meyering  <jim@meyering.net>
8449
8450         Adapt to deeper hierarchy in gnulib.
8451         * build-aux/bootstrap (symlink_to_dir): If the destination
8452         directory doesn't exist, create it. This is required at least for
8453         "lib/uniwidth/cjk.h".
8454
8455         2007-05-15  Jim Meyering  <jim@meyering.net>
8456
8457         * build-aux/bootstrap: Now that generated Makefile.am files
8458         are no longer under version control, they must be created at
8459         bootstrap time.
8460
8461 2007-08-14  Ben Pfaff  <blp@gnu.org>
8462
8463         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
8464
8465 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8466
8467         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
8468         given the changes below.
8469         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
8470         even on hosts that have padding bits beyond the supported 64.
8471
8472 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8473
8474         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
8475         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
8476         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
8477         depends on it.
8478         (xstrtol_error): Remove.
8479         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
8480         but with a different signature.
8481         (ATTRIBUTE_NORETURN, __attribute__): New macros.
8482         * lib/xstrtol-error.c: Include exitfail.h.
8483         (xstrtol_fatal): New function, with a different signature from the
8484         old xstrtol_error, so that the caller need not worry about passing
8485         in an exit status, or about storage management of the option argument.
8486         (xstrtol_error): Now a static function.  Redo signature to
8487         implement xstrtol_fatal.  Output the correct number of hyphens in
8488         front of the option so that the caller need not worry about
8489         storage management.
8490         (N_): New macro.
8491         (_): Remove; not used now.
8492         * modules/xstrtol: Depend on getopt.
8493         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
8494         of old STRTOL_FATAL_ERROR macro.
8495         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
8496         of test program.
8497         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
8498         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
8499
8500 2007-08-08  Eric Blake  <ebb9@byu.net>
8501
8502         * lib/xstrtol-error.c: Add missing include.
8503
8504         Move xstrtol messages into gnulib domain, when --pobase is used.
8505         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
8506         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
8507         * modules/xstrtol (Files): Distribute new file.
8508         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
8509         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
8510         * tests/test-xstrtol.c: ...into new file.
8511         * tests/test-xstrtoul.c: Also test xstrtoul.
8512         * tests/test-xstrtoimax.c: Also test xstrtoimax.
8513         * tests/test-xstrtoumax.c: Also test xstrtoumax.
8514         * tests/test-xstrtol.sh: Drive the tests.
8515         * tests/test-xstrtoimax.sh: Likewise.
8516         * tests/test-xstrtoumax.sh: Likewise.
8517         * modules/xstrtol-tests: New module.
8518         * modules/xstrtoimax-tests: Likewise.
8519         * modules/xstrtoumax-tests: Likewise.
8520
8521 2007-08-08  Jim Meyering  <jim@meyering.net>
8522
8523         New function: mfile_name_concat.
8524         * lib/filenamecat.c (mfile_name_concat): New function, just like
8525         file_name_concat, but return NULL upon failure rather than exiting
8526         with a diagnostic.
8527         * lib/filenamecat.h: Declare it.
8528
8529 2007-08-07  Bruno Haible  <bruno@clisp.org>
8530
8531         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
8532         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
8533         warning from gcc.
8534         Reported by Eric Blake.
8535
8536 2007-08-07  Simon Josefsson  <simon@josefsson.org>
8537
8538         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
8539         * modules/crypto/arcfour (License): Likewise.
8540         * modules/crypto/des-tests (License): Likewise.
8541         * modules/crypto/gc-arctwo-tests (License): Likewise.
8542         * modules/crypto/gc-des-tests (License): Likewise.
8543         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
8544         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
8545         * modules/crypto/gc-md2-tests (License): Likewise.
8546         * modules/crypto/gc-md4-tests (License): Likewise.
8547         * modules/crypto/gc-md5-tests (License): Likewise.
8548         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
8549         * modules/crypto/gc-rijndael-tests (License): Likewise.
8550         * modules/crypto/gc-sha1-tests (License): Likewise.
8551         * modules/crypto/gc-tests (License): Likewise.
8552         * modules/crypto/hmac-md5 (License): Likewise.
8553         * modules/crypto/hmac-sha1 (License): Likewise.
8554         * modules/crypto/md2-tests (License): Likewise.
8555         * modules/crypto/md4-tests (License): Likewise.
8556         * modules/crypto/md5 (License): Likewise.
8557         * modules/crypto/rijndael (License): Likewise.
8558         * modules/crypto/sha1 (License): Likewise.
8559         * modules/memxor (License): Likewise.
8560
8561 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
8562         and Bruno Haible  <bruno@clisp.org>
8563
8564         * NEWS: Describe interface changes to human, xstrtol.
8565         * lib/human.h: Include <xstrtol.h>.
8566         (human_options): Return enum strtol_error, not int.  Remove
8567         bool arg; take int * instead.
8568         * lib/human.c: Don't include "gettext.h".
8569         (_): Remove; no longer used.
8570         Don't include <xstrtol.h>, since human.h does it.
8571         (human_options): Adjust to abovementioned interface changes.
8572         Do not report error to stderr; that's now the caller's
8573         responsibility.
8574         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
8575         interface change.
8576         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
8577         Str, Argument_type_string.  All uses changed.  Put " argument"
8578         in diagnostics to make them clearer.  Change wording of suffix
8579         message for clarity.
8580         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
8581         Argument_type_string.
8582         (STRTOL_FATAL_WARN): Remove; no longer used.
8583         * modules/human (Depends-on): Remove gettext-h.
8584
8585 2007-08-06  Simon Josefsson  <simon@josefsson.org>
8586
8587         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
8588
8589 2007-07-31  Bruno Haible  <bruno@clisp.org>
8590
8591         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
8592         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
8593         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
8594
8595 2007-07-31  Bruno Haible  <bruno@clisp.org>
8596
8597         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
8598         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
8599
8600 2007-07-30  Bruno Haible  <bruno@clisp.org>
8601
8602         * modules/base64 (License): Use the synonymous term "LGPLv2+".
8603         * modules/c-ctype (License): Likewise.
8604         * modules/c-strcase (License): Likewise.
8605         * modules/check-version (License): Likewise.
8606         * modules/iconv (License): Likewise.
8607         * modules/iconv_open (License): Likewise.
8608         * modules/read-file (License): Likewise.
8609         * modules/striconv (License): Likewise.
8610         * modules/strverscmp (License): Likewise.
8611         * modules/vasprintf (License): Likewise.
8612         * modules/crypto/des (License): Likewise.
8613         * modules/crypto/gc (License): Likewise.
8614         * modules/crypto/gc-arcfour (License): Likewise.
8615         * modules/crypto/gc-arctwo (License): Likewise.
8616         * modules/crypto/gc-des (License): Likewise.
8617         * modules/crypto/gc-hmac-md5 (License): Likewise.
8618         * modules/crypto/gc-hmac-sha1 (License): Likewise.
8619         * modules/crypto/gc-md2 (License): Likewise.
8620         * modules/crypto/gc-md4 (License): Likewise.
8621         * modules/crypto/gc-md5 (License): Likewise.
8622         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
8623         * modules/crypto/gc-random (License): Likewise.
8624         * modules/crypto/gc-rijndael (License): Likewise.
8625         * modules/crypto/gc-sha1 (License): Likewise.
8626         * modules/crypto/md2 (License): Likewise.
8627         * modules/crypto/md4 (License): Likewise.
8628
8629 2007-07-30  Jim Meyering  <jim@meyering.net>
8630
8631         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
8632         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
8633         it has valid stat data.  This bug would cause du not to count the
8634         sizes of inaccessible directories.
8635         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
8636         in <http://bugzilla.redhat.com/250077>.
8637
8638 2007-07-25  Peter O'Gorman  <peter@pogma.com>
8639             Bruno Haible  <bruno@clisp.org>
8640
8641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
8642         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
8643         #include_next, gives a diagnostic about it, but reports no error in
8644         the exit code.
8645         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8646
8647 2007-07-24  Ben Pfaff  <blp@gnu.org>
8648
8649         Improve name: "count-one-bits" is better than "popcount".
8650         * MODULES.html.sh: Update name.
8651         * lib/popcount.h: Renamed lib/count-one-bits.h.
8652         (popcount): Renamed count_one_bits.
8653         (popcountl): Renamed count_one_bits_l.
8654         (popcountll): Renamed count_one_bits_ll.
8655         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
8656         * modules/popcount: Renamed module/count-one-bits.
8657         * modules/popcount-tests: Renamed module/count-one-bits-tests.
8658         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
8659
8660 2007-07-23  Ben Pfaff  <blp@gnu.org>
8661
8662         * lib/popcount.h (popcount32): Reduce size of constants, to allow
8663         better code generation, and add U to large constants to avoid
8664         warnings, in non-GCC case.
8665         Suggested by Bruno Haible.
8666
8667 2007-07-23  Ben Pfaff  <blp@gnu.org>
8668
8669         * lib/popcount.h: Use verify_true instead of if...abort.
8670         * modules/popcount: Depend on verify module.
8671         Suggested by Jim Meyering.
8672
8673 2007-07-23  Bruno Haible  <bruno@clisp.org>
8674
8675         * gnulib-tool (func_import): Create a .cvsignore file also when the
8676         directory is not yet in CVS but the toplevel directory is. When
8677         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
8678         Reported by Karl Berry.
8679
8680 2007-07-22  Ben Pfaff  <blp@gnu.org>
8681
8682         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
8683         case.
8684         Suggested by Eric Blake.
8685
8686 2007-07-22  Ben Pfaff  <blp@gnu.org>
8687
8688         New module: popcount.
8689         * MODULES.html.sh: Add popcount.
8690         * modules/popcount: New file.
8691         * modules/popcount-tests: New file.
8692         * tests/test-popcount.c: New file.
8693         * lib/popcount.h: New file.
8694         * m4/popcount.m4: New file.
8695
8696 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8697
8698         * build-aux/announce-gen: Update to GPLv3.
8699
8700         * build-aux/config.guess: Update from config.
8701
8702 2007-07-21  Bruno Haible  <bruno@clisp.org>
8703
8704         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
8705         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
8706
8707 2007-07-20  Jim Meyering  <jim@meyering.net>
8708
8709         * check-module: Diagnose a self-dependency.
8710
8711 2007-07-19  Bruno Haible  <bruno@clisp.org>
8712
8713         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
8714         empty.
8715         Reported by Eric Blake.
8716
8717 2007-07-18  Bruno Haible  <bruno@clisp.org>
8718
8719         * gnulib-tool: New options --po-base, --po-domain.
8720         (func_usage): Document them.
8721         (pobase, po_domain): New variables.
8722         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
8723         DEFAULT_TEXT_DOMAIN.
8724         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
8725         (func_import): Consider pobase and po_domain. Create a po/ directory.
8726         (func_create_testdir): Set pobase and po_domain to empty.
8727         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
8728         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
8729
8730 2007-07-18  Bruno Haible  <bruno@clisp.org>
8731
8732         * gnulib-tool (func_get_automake_snippet): Synthesize also an
8733         EXTRA_DIST augmentation for files in build-aux/.
8734
8735 2007-07-16  Bruno Haible  <bruno@clisp.org>
8736
8737         * modules/lseek (License): Use the synonymous term "LGPLv2+".
8738         * modules/getdelim (License): Likewise.
8739
8740 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8741
8742         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
8743         * modules/d-type (License): Likewise.
8744         * modules/extensions (License): Likewise.
8745         * modules/fnmatch (License): Likewise.
8746         * modules/fseeko (License): Likewise.
8747         * modules/getaddrinfo (License): Likewise.
8748         * modules/getline (License): Likewise.
8749         * modules/getlogin_r (License): Likewise.
8750         * modules/getpass (License): Likewise.
8751         * modules/gettimeofday (License): Likewise.
8752         * modules/glob (License): Likewise.
8753         * modules/inet_ntop (License): Likewise.
8754         * modules/malloc (License): Likewise.
8755         * modules/malloca (License): Likewise.
8756         * modules/memmem (License): Likewise.
8757         * modules/mempcpy (License): Likewise.
8758         * modules/memset (License): Likewise.
8759         * modules/minmax (License): Likewise.
8760         * modules/mktime (License): Likewise.
8761         * modules/netinet_in (License): Likewise.
8762         * modules/pathmax (License): Likewise.
8763         * modules/poll (License): Likewise.
8764         * modules/regex (License): Likewise.
8765         * modules/snprintf (License): Likewise.
8766         * modules/stdbool (License): Likewise.
8767         * modules/stdint (License): Likewise.
8768         * modules/stdio (License): Likewise.
8769         * modules/strcase (License): Likewise.
8770         * modules/strcasestr (License): Likewise.
8771         * modules/strdup (License): Likewise.
8772         * modules/string (License): Likewise.
8773         * modules/strndup (License): Likewise.
8774         * modules/strnlen (License): Likewise.
8775         * modules/strpbrk (License): Likewise.
8776         * modules/strptime (License): Likewise.
8777         * modules/strsep (License): Likewise.
8778         * modules/sys_select (License): Likewise.
8779         * modules/sys_socket (License): Likewise.
8780         * modules/sys_stat (License): Likewise.
8781         * modules/sys_time (License): Likewise.
8782         * modules/time (License): Likewise.
8783         * modules/time_r (License): Likewise.
8784         * modules/timegm (License): Likewise.
8785         * modules/unistd (License): Likewise.
8786         * modules/vsnprintf (License): Likewise.
8787         * modules/wctype (License): Likewise.
8788
8789 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8790
8791         * modules/argz (License): LGPLv2+.
8792
8793 2007-07-15  Karl Berry  <karl@gnu.org>
8794
8795         * doc/gnulib.texi: revise node structure per new fdl.texi.
8796
8797 2007-07-14  Bruno Haible  <bruno@clisp.org>
8798
8799         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
8800         the output file.
8801         * lib/uniname/uninames.h: Regenerated.
8802
8803 2007-07-14  Karl Berry  <karl@gnu.org>
8804
8805         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
8806         omitting sectioning and index commands.
8807
8808 2007-07-13  Bruno Haible  <bruno@clisp.org>
8809
8810         New gnulib-tool option --more-symlinks.
8811         * gnulib-tool (func_usage): Document --more-symlinks.
8812         (do_copyrights): New variable.
8813         Recognize option --more-symlinks.
8814         (func_import): Don't add a copyright notice transform to
8815         sed_transform_lib_file if do_copyrights is empty.
8816
8817 2007-07-13  Bruno Haible  <bruno@clisp.org>
8818
8819         * lib/vasnprintf.c (decimal_point_char): Define also if
8820         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
8821         && !NEED_PRINTF_DIRECTIVE_A.
8822         Reported by Clemens Koller <clemens.koller@anagramm.de> via
8823         Gary V. Vaughan <gary@gnu.org>.
8824
8825 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8826
8827         * lib/inttypes_.h: Undo previous change, since it was fixed
8828         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
8829
8830 2007-07-13  Bruno Haible  <bruno@clisp.org>
8831
8832         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
8833         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
8834
8835 2007-07-13  Jim Meyering  <jim@meyering.net>
8836
8837         df: Don't fail for Tru64's "file-on-file mount".
8838         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
8839         so we fall through and use statfs instead.  Details here:
8840         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
8841         Reported by Albert Chin.
8842
8843 2007-07-13  Bruno Haible  <bruno@clisp.org>
8844
8845         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
8846         * modules/configmake (License): Likewise.
8847         * modules/gettext (License): Likewise.
8848         * modules/gettext-h (License): Likewise.
8849         * modules/include_next (License): Likewise.
8850         * modules/link-warning (License): Likewise.
8851         * modules/localcharset (License): Likewise.
8852         * modules/localename (License): Likewise.
8853         * modules/lock (License): Likewise.
8854         * modules/relocatable-lib-lgpl (License): Likewise.
8855         * modules/size_max (License): Likewise.
8856         * modules/vasnprintf (License): Likewise.
8857         * modules/wchar (License): Likewise.
8858         * modules/xsize (License): Likewise.
8859
8860 2007-07-13  Bruno Haible  <bruno@clisp.org>
8861
8862         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
8863         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
8864
8865 2007-07-12  Bruno Haible  <bruno@clisp.org>
8866
8867         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
8868         in the modules files.
8869
8870 2007-07-11  Karl Berry  <karl@gnu.org>
8871
8872         * MODULES.html.sh (func_module): use
8873          sed -e '\|^'"${includefile}"'$|d'
8874          instead of /.../d, to avoid errors on $includefile's containing /.
8875
8876 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8877
8878         * gnulib-tool (func_import): Avoid duplication of --avoid
8879         statements
8880         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
8881         names to `_' in variable names.
8882
8883 2007-07-10  Eric Blake  <ebb9@byu.net>
8884
8885         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
8886         * NEWS: Document this change.
8887
8888 2007-07-08  Bruno Haible  <bruno@clisp.org>
8889
8890         Update to Unicode 5.0.
8891         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
8892         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
8893         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
8894         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
8895         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
8896         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
8897         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
8898         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
8899         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
8900         U+10A3F, U+1D242..U+1D244.
8901         (nonspacing_table_ind): Update.
8902         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
8903         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
8904
8905 2007-07-08  Bruno Haible  <bruno@clisp.org>
8906
8907         Update to Unicode 5.0.
8908         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
8909         code transform. Extend the name index field of unicode_name_to_code and
8910         unicode_code_to_name from 16 to 24 bits.
8911         * lib/uniname/uniname.c (unicode_character_name,
8912         unicode_name_character): Add the range 0x12xxx to the code transform.
8913         * lib/uniname/uninames.h: Regenerated.
8914         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
8915
8916 2007-07-07  Bruno Haible  <bruno@clisp.org>
8917
8918         * modules/wcwidth-tests: New file.
8919         * tests/test-wcwidth.c: New file.
8920
8921         Work around MacOS X wcwidth() bug.
8922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
8923         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
8924         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
8925         original wcwidth in non-UTF-8 locales.
8926         * modules/wcwidth (Depends-on): Add localcharset, streq,
8927         uniwidth/width.
8928         * doc/functions/wcwidth.texi: Update.
8929
8930 2007-07-07  Bruno Haible  <bruno@clisp.org>
8931
8932         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
8933         (wcwidth): New declaration.
8934         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
8935         macros.
8936         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
8937         here. Prepare for creating <wchar.h> unconditionally.
8938         * modules/wchar (Depends-on): Add link-warning.
8939         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
8940         REPLACE_WCWIDTH, and GL_LINK_WARNING.
8941         * lib/wcwidth.h: Remove file.
8942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
8943         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
8944         * modules/wcwidth (Files): Remove lib/wcwidth.h.
8945         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
8946         (Include): Replace wcwidth.h with <wchar.h>.
8947         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
8948         * lib/mbchar.h: Don't include wcwidth.h.
8949         * lib/mbswidth.c: Likewise.
8950         * NEWS: Mention the change.
8951
8952 2007-07-07  Bruno Haible  <bruno@clisp.org>
8953
8954         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
8955         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
8956         definition with an external declaration.
8957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
8958         defined as a function. Remove AC_C_INLINE requirement.
8959         * modules/wcwidth (Files): Add lib/wcwidth.c.
8960         (Makefile.am): Remove redundant statement.
8961
8962 2007-07-07  Bruno Haible  <bruno@clisp.org>
8963
8964         * MODULES.html.sh (Unicode string functions): Add the new modules.
8965
8966         * tests/uniwidth/test-u32-strwidth.c: New file.
8967         * modules/uniwidth/u32-strwidth-tests: New file.
8968
8969         * lib/uniwidth/u32-strwidth.c: New file.
8970         * modules/uniwidth/u32-strwidth: New file.
8971
8972         * tests/uniwidth/test-u16-strwidth.c: New file.
8973         * modules/uniwidth/u16-strwidth-tests: New file.
8974
8975         * lib/uniwidth/u16-strwidth.c: New file.
8976         * modules/uniwidth/u16-strwidth: New file.
8977
8978         * tests/uniwidth/test-u8-strwidth.c: New file.
8979         * modules/uniwidth/u8-strwidth-tests: New file.
8980
8981         * lib/uniwidth/u8-strwidth.c: New file.
8982         * modules/uniwidth/u8-strwidth: New file.
8983
8984         * tests/uniwidth/test-u32-width.c: New file.
8985         * modules/uniwidth/u32-width-tests: New file.
8986
8987         * lib/uniwidth/u32-width.c: New file.
8988         * modules/uniwidth/u32-width: New file.
8989
8990         * tests/uniwidth/test-u16-width.c: New file.
8991         * modules/uniwidth/u16-width-tests: New file.
8992
8993         * lib/uniwidth/u16-width.c: New file.
8994         * modules/uniwidth/u16-width: New file.
8995
8996         * tests/uniwidth/test-u8-width.c: New file.
8997         * modules/uniwidth/u8-width-tests: New file.
8998
8999         * lib/uniwidth/u8-width.c: New file.
9000         * modules/uniwidth/u8-width: New file.
9001
9002         * tests/uniwidth/test-uc_width.c: New file.
9003         * modules/uniwidth/width-tests: New file.
9004
9005         * lib/uniwidth/width.c: New file, from GNU libiconv.
9006         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
9007         * modules/uniwidth/width: New file.
9008
9009         * lib/uniwidth.h: New file, from GNU libiconv.
9010         * modules/uniwidth/base: New file.
9011
9012 2007-07-07  Bruno Haible  <bruno@clisp.org>
9013
9014         * lib/uniname.h: New file, from GNU gettext.
9015         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
9016         * lib/uniname/uninames.h: New file, from GNU gettext.
9017         * lib/uniname/uniname.c: New file, from GNU gettext.
9018         * tests/uniname/test-uninames.sh: New file.
9019         * tests/uniname/test-uninames.c: New file, from GNU gettext.
9020         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
9021         * modules/uniname/base: New file.
9022         * modules/uniname/uniname: New file.
9023         * modules/uniname/uniname-tests: New file.
9024         * MODULES.html.sh (Unicode string functions): Add the new modules.
9025
9026 2007-07-06  Bruno Haible  <bruno@clisp.org>
9027
9028         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
9029
9030 2007-07-06  Bruno Haible  <bruno@clisp.org>
9031
9032         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
9033         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
9034         includes <cygwin/sys_time.h> which includes <sys/select.h> which
9035         include <sys/time.h>.
9036         Reported by Eric Blake.
9037
9038 2007-07-06  Eric Blake  <ebb9@byu.net>
9039
9040         Fix testing canonicalize on cygwin.
9041         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9042         Revert patch from 2007-06-19.
9043         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
9044         canonicalize module is also in use.
9045         * tests/test-canonicalize.c: New file.
9046         * tests/test-canonicalize.sh: Likewise.
9047         * modules/canonicalize-tests: Likewise.
9048
9049 2007-07-06  Jim Meyering  <jim@meyering.net>
9050
9051         * lib/getugroups.c (getugroups): Detect getgrent failure.
9052         Adjust comment to reflect reality: this function may return -1.
9053
9054 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9055
9056         * build-aux/bootstrap (TP_URL,get_translations): Update to use
9057         the new TP address.
9058         (usage): Fix typo
9059         (gnulib_mk): New variable.
9060
9061 2007-07-05  Jim Meyering  <jim@meyering.net>
9062
9063         Don't let endgrent clobber errno, no matter how improbable.
9064         * lib/getugroups.c (getugroups): Save and restore errno around
9065         endgrent call.
9066
9067         Close the group DB even when failing with 2^31 or more members.
9068         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
9069
9070 2007-07-04  Jim Meyering  <jim@meyering.net>
9071
9072         * lib/getugroups.h: New file.
9073         * lib/getugroups.c: Include "getugroups.h".
9074         Remove uses of "register" keyword.
9075         Move local variable, "cp", down into scope where used.
9076         Give "username" parameter the "const" attribute.
9077         * modules/getugroups (Files): Add lib/getugroups.h
9078
9079 2007-07-04  Karl Berry  <karl@gnu.org>
9080
9081         * MODULES.html.sh (func_all_modules): Complete rename of
9082         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
9083
9084 2007-07-02  Bruno Haible  <bruno@clisp.org>
9085
9086         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
9087         mode, when inttypes.h comes from gnulib.
9088         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9089
9090 2007-07-02  Simon Josefsson  <simon@josefsson.org>
9091
9092         * NEWS: Mention lgpl module name change.
9093
9094         * modules/lgpl-2.1: Renamed from lgpl.
9095
9096         * NEWS: Mention gpl module name change.
9097
9098         * modules/gpl-3.0: New file, based on gpl-2.0.
9099
9100         * modules/gpl-2.0: Renamed from gpl.
9101
9102         * modules/gpl: Fix filename, doc/gpl.texi is now found at
9103         doc/gpl-2.0.texi.
9104
9105 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9106
9107         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
9108         #define __STDC_LIMIT_MACROS temporarily while including
9109         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
9110         Problem reported by Joel E. Denny in
9111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
9112
9113 2007-07-01  Bruno Haible  <bruno@clisp.org>
9114
9115         * lib/unistdio.h: New file.
9116         * lib/unistdio/u-asnprintf.h: New file.
9117         * lib/unistdio/u-asprintf.h: New file.
9118         * lib/unistdio/u-printf-args.c: New file.
9119         * lib/unistdio/u-printf-args.h: New file.
9120         * lib/unistdio/u-printf-parse.h: New file.
9121         * lib/unistdio/u-snprintf.h: New file.
9122         * lib/unistdio/u-sprintf.h: New file.
9123         * lib/unistdio/u-vasprintf.h: New file.
9124         * lib/unistdio/u-vsnprintf.h: New file.
9125         * lib/unistdio/u-vsprintf.h: New file.
9126         * lib/unistdio/ulc-asnprintf.c: New file.
9127         * lib/unistdio/ulc-asprintf.c: New file.
9128         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
9129         * lib/unistdio/ulc-printf-parse.c: New file.
9130         * lib/unistdio/ulc-snprintf.c: New file.
9131         * lib/unistdio/ulc-sprintf.c: New file.
9132         * lib/unistdio/ulc-vasnprintf.c: New file.
9133         * lib/unistdio/ulc-vasprintf.c: New file.
9134         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
9135         * lib/unistdio/ulc-vsnprintf.c: New file.
9136         * lib/unistdio/ulc-vsprintf.c: New file.
9137         * lib/unistdio/u8-asnprintf.c: New file.
9138         * lib/unistdio/u8-asprintf.c: New file.
9139         * lib/unistdio/u8-printf-parse.c: New file.
9140         * lib/unistdio/u8-snprintf.c: New file.
9141         * lib/unistdio/u8-sprintf.c: New file.
9142         * lib/unistdio/u8-vasnprintf.c: New file.
9143         * lib/unistdio/u8-vasprintf.c: New file.
9144         * lib/unistdio/u8-vsnprintf.c: New file.
9145         * lib/unistdio/u8-vsprintf.c: New file.
9146         * lib/unistdio/u8-u8-asnprintf.c: New file.
9147         * lib/unistdio/u8-u8-asprintf.c: New file.
9148         * lib/unistdio/u8-u8-snprintf.c: New file.
9149         * lib/unistdio/u8-u8-sprintf.c: New file.
9150         * lib/unistdio/u8-u8-vasnprintf.c: New file.
9151         * lib/unistdio/u8-u8-vasprintf.c: New file.
9152         * lib/unistdio/u8-u8-vsnprintf.c: New file.
9153         * lib/unistdio/u8-u8-vsprintf.c: New file.
9154         * lib/unistdio/u16-asnprintf.c: New file.
9155         * lib/unistdio/u16-asprintf.c: New file.
9156         * lib/unistdio/u16-printf-parse.c: New file.
9157         * lib/unistdio/u16-snprintf.c: New file.
9158         * lib/unistdio/u16-sprintf.c: New file.
9159         * lib/unistdio/u16-vasnprintf.c: New file.
9160         * lib/unistdio/u16-vasprintf.c: New file.
9161         * lib/unistdio/u16-vsnprintf.c: New file.
9162         * lib/unistdio/u16-vsprintf.c: New file.
9163         * lib/unistdio/u16-u16-asnprintf.c: New file.
9164         * lib/unistdio/u16-u16-asprintf.c: New file.
9165         * lib/unistdio/u16-u16-snprintf.c: New file.
9166         * lib/unistdio/u16-u16-sprintf.c: New file.
9167         * lib/unistdio/u16-u16-vasnprintf.c: New file.
9168         * lib/unistdio/u16-u16-vasprintf.c: New file.
9169         * lib/unistdio/u16-u16-vsnprintf.c: New file.
9170         * lib/unistdio/u16-u16-vsprintf.c: New file.
9171         * lib/unistdio/u32-asnprintf.c: New file.
9172         * lib/unistdio/u32-asprintf.c: New file.
9173         * lib/unistdio/u32-printf-parse.c: New file.
9174         * lib/unistdio/u32-snprintf.c: New file.
9175         * lib/unistdio/u32-sprintf.c: New file.
9176         * lib/unistdio/u32-vasnprintf.c: New file.
9177         * lib/unistdio/u32-vasprintf.c: New file.
9178         * lib/unistdio/u32-vsnprintf.c: New file.
9179         * lib/unistdio/u32-vsprintf.c: New file.
9180         * lib/unistdio/u32-u32-asnprintf.c: New file.
9181         * lib/unistdio/u32-u32-asprintf.c: New file.
9182         * lib/unistdio/u32-u32-snprintf.c: New file.
9183         * lib/unistdio/u32-u32-sprintf.c: New file.
9184         * lib/unistdio/u32-u32-vasnprintf.c: New file.
9185         * lib/unistdio/u32-u32-vasprintf.c: New file.
9186         * lib/unistdio/u32-u32-vsnprintf.c: New file.
9187         * lib/unistdio/u32-u32-vsprintf.c: New file.
9188         * tests/unistdio/test-ulc-asnprintf1.c: New file.
9189         * tests/unistdio/test-ulc-asnprintf1.h: New file.
9190         * tests/unistdio/test-ulc-printf1.h: New file.
9191         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
9192         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
9193         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
9194         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
9195         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
9196         * tests/unistdio/test-ulc-vasprintf1.c: New file.
9197         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
9198         * tests/unistdio/test-ulc-vsprintf1.c: New file.
9199         * tests/unistdio/test-u8-asnprintf1.c: New file.
9200         * tests/unistdio/test-u8-asnprintf1.h: New file.
9201         * tests/unistdio/test-u8-printf1.h: New file.
9202         * tests/unistdio/test-u8-vasnprintf1.c: New file.
9203         * tests/unistdio/test-u8-vasnprintf2.c: New file.
9204         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
9205         * tests/unistdio/test-u8-vasnprintf3.c: New file.
9206         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
9207         * tests/unistdio/test-u8-vasprintf1.c: New file.
9208         * tests/unistdio/test-u8-vsnprintf1.c: New file.
9209         * tests/unistdio/test-u8-vsprintf1.c: New file.
9210         * tests/unistdio/test-u16-asnprintf1.c: New file.
9211         * tests/unistdio/test-u16-asnprintf1.h: New file.
9212         * tests/unistdio/test-u16-printf1.h: New file.
9213         * tests/unistdio/test-u16-vasnprintf1.c: New file.
9214         * tests/unistdio/test-u16-vasnprintf2.c: New file.
9215         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
9216         * tests/unistdio/test-u16-vasnprintf3.c: New file.
9217         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
9218         * tests/unistdio/test-u16-vasprintf1.c: New file.
9219         * tests/unistdio/test-u16-vsnprintf1.c: New file.
9220         * tests/unistdio/test-u16-vsprintf1.c: New file.
9221         * tests/unistdio/test-u32-asnprintf1.c: New file.
9222         * tests/unistdio/test-u32-asnprintf1.h: New file.
9223         * tests/unistdio/test-u32-printf1.h: New file.
9224         * tests/unistdio/test-u32-vasnprintf1.c: New file.
9225         * tests/unistdio/test-u32-vasnprintf2.c: New file.
9226         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
9227         * tests/unistdio/test-u32-vasnprintf3.c: New file.
9228         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
9229         * tests/unistdio/test-u32-vasprintf1.c: New file.
9230         * tests/unistdio/test-u32-vsnprintf1.c: New file.
9231         * tests/unistdio/test-u32-vsprintf1.c: New file.
9232         * modules/unistdio/base: New file.
9233         * modules/unistdio/u-printf-args: New file.
9234         * modules/unistdio/ulc-asnprintf: New file.
9235         * modules/unistdio/ulc-asprintf: New file.
9236         * modules/unistdio/ulc-fprintf: New file.
9237         * modules/unistdio/ulc-printf-parse: New file.
9238         * modules/unistdio/ulc-snprintf: New file.
9239         * modules/unistdio/ulc-sprintf: New file.
9240         * modules/unistdio/ulc-vasnprintf: New file.
9241         * modules/unistdio/ulc-vasprintf: New file.
9242         * modules/unistdio/ulc-vfprintf: New file.
9243         * modules/unistdio/ulc-vsnprintf: New file.
9244         * modules/unistdio/ulc-vsprintf: New file.
9245         * modules/unistdio/u8-asnprintf: New file.
9246         * modules/unistdio/u8-asprintf: New file.
9247         * modules/unistdio/u8-printf-parse: New file.
9248         * modules/unistdio/u8-snprintf: New file.
9249         * modules/unistdio/u8-sprintf: New file.
9250         * modules/unistdio/u8-vasnprintf: New file.
9251         * modules/unistdio/u8-vasprintf: New file.
9252         * modules/unistdio/u8-vsnprintf: New file.
9253         * modules/unistdio/u8-vsprintf: New file.
9254         * modules/unistdio/u8-u8-asnprintf: New file.
9255         * modules/unistdio/u8-u8-asprintf: New file.
9256         * modules/unistdio/u8-u8-snprintf: New file.
9257         * modules/unistdio/u8-u8-sprintf: New file.
9258         * modules/unistdio/u8-u8-vasnprintf: New file.
9259         * modules/unistdio/u8-u8-vasprintf: New file.
9260         * modules/unistdio/u8-u8-vsnprintf: New file.
9261         * modules/unistdio/u8-u8-vsprintf: New file.
9262         * modules/unistdio/u16-asnprintf: New file.
9263         * modules/unistdio/u16-asprintf: New file.
9264         * modules/unistdio/u16-printf-parse: New file.
9265         * modules/unistdio/u16-snprintf: New file.
9266         * modules/unistdio/u16-sprintf: New file.
9267         * modules/unistdio/u16-vasnprintf: New file.
9268         * modules/unistdio/u16-vasprintf: New file.
9269         * modules/unistdio/u16-vsnprintf: New file.
9270         * modules/unistdio/u16-vsprintf: New file.
9271         * modules/unistdio/u16-u16-asnprintf: New file.
9272         * modules/unistdio/u16-u16-asprintf: New file.
9273         * modules/unistdio/u16-u16-snprintf: New file.
9274         * modules/unistdio/u16-u16-sprintf: New file.
9275         * modules/unistdio/u16-u16-vasnprintf: New file.
9276         * modules/unistdio/u16-u16-vasprintf: New file.
9277         * modules/unistdio/u16-u16-vsnprintf: New file.
9278         * modules/unistdio/u16-u16-vsprintf: New file.
9279         * modules/unistdio/u32-asnprintf: New file.
9280         * modules/unistdio/u32-asprintf: New file.
9281         * modules/unistdio/u32-printf-parse: New file.
9282         * modules/unistdio/u32-snprintf: New file.
9283         * modules/unistdio/u32-sprintf: New file.
9284         * modules/unistdio/u32-vasnprintf: New file.
9285         * modules/unistdio/u32-vasprintf: New file.
9286         * modules/unistdio/u32-vsnprintf: New file.
9287         * modules/unistdio/u32-vsprintf: New file.
9288         * modules/unistdio/u32-u32-asnprintf: New file.
9289         * modules/unistdio/u32-u32-asprintf: New file.
9290         * modules/unistdio/u32-u32-snprintf: New file.
9291         * modules/unistdio/u32-u32-sprintf: New file.
9292         * modules/unistdio/u32-u32-vasnprintf: New file.
9293         * modules/unistdio/u32-u32-vasprintf: New file.
9294         * modules/unistdio/u32-u32-vsnprintf: New file.
9295         * modules/unistdio/u32-u32-vsprintf: New file.
9296         * modules/unistdio/ulc-asnprintf-tests: New file.
9297         * modules/unistdio/ulc-vasnprintf-tests: New file.
9298         * modules/unistdio/ulc-vasprintf-tests: New file.
9299         * modules/unistdio/ulc-vsnprintf-tests: New file.
9300         * modules/unistdio/ulc-vsprintf-tests: New file.
9301         * modules/unistdio/u8-asnprintf-tests: New file.
9302         * modules/unistdio/u8-vasnprintf-tests: New file.
9303         * modules/unistdio/u8-vasprintf-tests: New file.
9304         * modules/unistdio/u8-vsnprintf-tests: New file.
9305         * modules/unistdio/u8-vsprintf-tests: New file.
9306         * modules/unistdio/u16-asnprintf-tests: New file.
9307         * modules/unistdio/u16-vasnprintf-tests: New file.
9308         * modules/unistdio/u16-vasprintf-tests: New file.
9309         * modules/unistdio/u16-vsnprintf-tests: New file.
9310         * modules/unistdio/u16-vsprintf-tests: New file.
9311         * modules/unistdio/u32-asnprintf-tests: New file.
9312         * modules/unistdio/u32-vasnprintf-tests: New file.
9313         * modules/unistdio/u32-vasprintf-tests: New file.
9314         * modules/unistdio/u32-vsnprintf-tests: New file.
9315         * modules/unistdio/u32-vsprintf-tests: New file.
9316         * MODULES.html.sh (Unicode string functions): Add the new modules.
9317
9318 2007-07-01  Bruno Haible  <bruno@clisp.org>
9319
9320         * lib/sprintf.c (sprintf): Limit the available length estimation,
9321         to avoid address wraparound.
9322         * lib/vsprintf.c (vsprintf): Likewise.
9323         * modules/sprintf-posix (Dependencies): Add stdint.
9324         * modules/vsprintf-posix (Dependencies): Likewise.
9325
9326 2007-07-01  Bruno Haible  <bruno@clisp.org>
9327
9328         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
9329         Windows PATH as well. Conservative double-quoting. Comments.
9330
9331 2007-07-01  Bruno Haible  <bruno@clisp.org>
9332             Eric Blake  <ebb9@byu.net>
9333             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9334
9335         * gnulib-tool (self_abspathname): Fix algorithm to cope with
9336         empty components in $PATH, denoting '.'.
9337
9338 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9339
9340         * gnulib-tool: Fix indentation.
9341         (func_create_megatestdir): Likewise.
9342         Report by Bruno Haible.
9343
9344 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9345
9346         Sync from Automake.
9347         * build-aux/gnupload: Fix shell portability issues with for loops.
9348         Report by Karl Berry.
9349
9350 2007-06-29  Simon Josefsson  <simon@josefsson.org>
9351
9352         * build-aux/maint.mk (POURL): Use translationproject.org.
9353
9354 2007-06-27  Simon Josefsson  <simon@josefsson.org>
9355             Bruno Haible  <bruno@clisp.org>
9356
9357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
9358         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
9359         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
9360         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
9361         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
9362
9363 2007-06-27  Bruno Haible  <bruno@clisp.org>
9364
9365         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
9366         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
9367
9368 2007-06-26  Karl Berry  <karl@gnu.org>
9369
9370         * MODULES.html.sh: remove xreadlink-with-size.
9371
9372 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9373
9374         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
9375         method that I hope also handles the double-include problem noted
9376         by Bruno Haible in
9377         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
9378
9379 2007-06-23  Bruno Haible  <bruno@clisp.org>
9380
9381         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9382         Don't let the 'mostlyclean' target fail if the last subdirectory could
9383         not be removed.
9384         Reported by Karl Berry.
9385
9386 2007-06-23  Bruno Haible  <bruno@clisp.org>
9387
9388         * gnulib-tool (echo): Add a speedier workaround for ksh.
9389         * tests/test-echo.sh: Likewise.
9390
9391 2007-06-23  Bruno Haible  <bruno@clisp.org>
9392
9393         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
9394         * tests/test-echo.sh: Likewise.
9395
9396 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9397
9398         * gnulib-tool (IFS): Initialize early, so we don't set it to
9399         empty later.
9400         (self_abspathname): Rewrite algorithm to set it, reindent.
9401         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9402         (func_create_megatestdir): Merge some sed scripts.
9403
9404 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9405
9406         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
9407         exposed by Sun Studio 11 cc on Solaris 8.
9408
9409 2007-06-22  Bruno Haible  <bruno@clisp.org>
9410
9411         * gnulib-tool (echo): Ensure the echo primitive does not interpret
9412         backslashes.
9413         * tests/test-echo.sh: New file.
9414
9415 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9416
9417         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
9418         simplify `sed_replace_build_aux' scripts, they are portable but
9419         echoing them with `echo' is not.
9420         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
9421
9422 2007-06-21  Karl Berry  <karl@gnu.org>
9423
9424         * config/srclist.txt: guess we can't handle the licenses via
9425         srclist at the moment.
9426
9427 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
9428
9429         * MODULES.html.sh: Add include_next.
9430         * modules/include_next: New file.
9431
9432 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9433
9434         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
9435         INCLUDE_NEXT.
9436         (gl_CHECK_NEXT_HEADERS): New macro.
9437         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
9438         the obsolescent gl_ABSOLUTE_HEADER.
9439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
9440         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
9441         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
9442         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9443         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9444         * m4/math_h.m4 (gl_MATH_H): Likewise.
9445         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
9446         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9447         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9448         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9449         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9450         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9451         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9453         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9454         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9455         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9456         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9457         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9458         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9459         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9460         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9461         * m4/inttypes.m4 (gl_INTTYPES_H): Define
9462         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
9463         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
9464         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
9465         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
9466         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
9467         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
9468         * lib/float_.h: Likewise.
9469         * lib/inttypes_.h: Likewise.
9470         * lib/math_.h: Likewise.
9471         * lib/search_.h: Likewise.
9472         * lib/signal_.h: Likewise.
9473         * lib/stdint_.h: Likewise.
9474         * lib/stdio_.h: Likewise.
9475         * lib/stdlib_.h: Likewise.
9476         * lib/string_.h: Likewise.
9477         * lib/sys_stat_.h: Likewise.
9478         * lib/sys_time_.h: Likewise.
9479         * lib/time_.h: Likewise.
9480         * lib/unistd_.h: Likewise.
9481         * lib/wchar_.h: Likewise.
9482         * lib/wctype_.h: Likewise.
9483         * lib/dirent_.h: Likewise.
9484         * lib/iconv_.h: Likewise.
9485         * lib/locale_.h: Likewise.
9486         * lib/netinet_in_.h: Likewise.
9487         * lib/sys_select_.h: Likewise.
9488         * lib/sys_socket_.h: Likewise.
9489         * lib/sysexits_.h: Likewise.
9490         * modules/fcntl (Depends-on): Depend on include_next, not
9491         absolute_header.
9492         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
9493         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
9494         * modules/fchdir: Likewise.
9495         * modules/float: Likewise.
9496         * modules/iconv_open: Likewise.
9497         * modules/inttypes: Likewise.
9498         * modules/locale: Likewise.
9499         * modules/math: Likewise.
9500         * modules/netinet_in: Likewise.
9501         * modules/search: Likewise.
9502         * modules/signal: Likewise.
9503         * modules/stdint: Likewise.
9504         * modules/stdio: Likewise.
9505         * modules/stdlib: Likewise.
9506         * modules/string: Likewise.
9507         * modules/sys_select: Likewise.
9508         * modules/sys_socket: Likewise.
9509         * modules/sys_stat: Likewise.
9510         * modules/sys_time: Likewise.
9511         * modules/sysexits: Likewise.
9512         * modules/time: Likewise.
9513         * modules/unistd: Likewise.
9514         * modules/wchar: Likewise.
9515         * modules/wctype: Likewise.
9516         * modules/sys_stat: Change maintainer to "all".
9517         * modules/unistd: Likewise.
9518
9519 2007-06-20  Karl Berry  <karl@gnu.org>
9520
9521         * config/srclist.txt: track www changes in license files.
9522
9523 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
9524
9525         * build-aux/bootstrap: Remove stray dot.
9526         Make sure build_aux settings are honored when linking
9527         gnulib_extra_files.
9528
9529 2007-06-19  Eric Blake  <ebb9@byu.net>
9530
9531         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9532         Allow compilation on cygwin.
9533
9534 2007-06-19  Jim Meyering  <jim@meyering.net>
9535
9536         xreadlink-with-size: Remove module.  No longer used.
9537         Ex-callers now use xreadlink or mreadlink-with-size.
9538         * modules/xreadlink-with-size: Remove module.
9539         * lib/xreadlink-with-size.c: Remove file.
9540         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
9541         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
9542         just before the function definition *is* accurate.
9543
9544         Eliminate one way canonicalize_filename_mode could exit.
9545         * lib/canonicalize.c (canonicalize_filename_mode):
9546         Use mreadlink_with_size, not xreadlink_with_size.
9547
9548 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9549
9550         Detect porting problems to FreeBSD/arm, which has time_t wider than
9551         long int.  Original problem reported for GNU diff by Xin Li in
9552         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
9553         * modules/getdate (Depends-on): Add intprops, verify.
9554         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
9555         is an integer type no wider than long int.
9556
9557 2007-06-18  Jim Meyering  <jim@meyering.net>
9558
9559         New module: mreadlink-with-size.
9560         * MODULES.html.sh: Add mreadlink-with-size.
9561         * modules/mreadlink-with-size: New module
9562         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
9563         not xreadlink-with-size.
9564         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
9565
9566 2007-06-16  Bruno Haible  <bruno@clisp.org>
9567
9568         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
9569         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
9570         Reported by Gary V. Vaughan <gary@gnu.org>.
9571
9572 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9573
9574         Revamp lchown so that it lives in unistd.h where it belongs.
9575         * lib/lchown.h: Remove.
9576         * lib/dirchownmod.c: Don't include lib/lchown.h.
9577         * lib/fchownat.c: Likewise.
9578         * lib/openat.c: Likewise.
9579         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
9580         does not follow symlinks.
9581         (EOPNOTSUPP): Define if not defined.
9582         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
9583         is defined to 0.
9584         (lchown): New decl.
9585         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
9586         Do not check for lchown decl.
9587         Set REPLACE_LCHOWN.
9588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
9589         REPLACE_LCHOWN.
9590         * modules/chown: Make it clear it follows symlinks.
9591         * modules/lchown: Make it clear it doesn't follow symlinks.
9592         (Files): Remove lib/lchown.h
9593         (Depends-on): Add unistd.
9594         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
9595         (Include): Include <unistd.h>, not "lchown.h".
9596         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
9597         REPLACE_LCHOWN.
9598
9599 2007-06-15  Jim Meyering  <jim@meyering.net>
9600
9601         Change license (GPL to LGPL) of fsusage and dependents.
9602         * modules/fsusage (License): Change to LGPL.
9603         * modules/full-read (License): Likewise.
9604         * modules/full-write (License): Likewise.
9605         * modules/safe-read (License): Likewise.
9606         * modules/safe-write (License): Likewise.
9607
9608 2007-06-14  Ben Pfaff  <blp@gnu.org>
9609
9610         Missing part of allocsa -> malloca transition.
9611         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
9612         gl_MALLOCA.
9613
9614 2007-06-12  Bruno Haible  <bruno@clisp.org>
9615
9616         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
9617         to ia64, x86_64, i386.
9618         Reported by Eric Blake.
9619
9620 2007-06-12  Bruno Haible  <bruno@clisp.org>
9621
9622         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
9623         cross-compiling to x86_64.
9624
9625 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
9626
9627         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
9628         glitch reported by Ralf Wildenhues in
9629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
9630
9631         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
9632         Vin Shelton.
9633
9634 2007-06-11  Bruno Haible  <bruno@clisp.org>
9635
9636         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
9637         replacement string.
9638         Reported by Eric Blake.
9639
9640 2007-06-10  Bruno Haible  <bruno@clisp.org>
9641
9642         Prepare vasnprintf code for use with Unicode strings.
9643         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
9644         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
9645         TYPE_U32_STRING.
9646         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
9647         a_u32_string variants.
9648         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9649         * lib/printf-args.c: Don't include config.h and the specification
9650         header if PRINTF_FETCHARGS is already defined.
9651         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9652         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
9653         TYPE_U16_STRING, TYPE_U32_STRING.
9654         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
9655         u16_directive, u16_directives, u32_directive, u32_directives): New
9656         types.
9657         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
9658         New declarations.
9659         * lib/printf-parse.c: Don't include config.h and the specification
9660         header if PRINTF_PARSE is already defined. Eliminate the set of
9661         parameters for WIDE_CHAR_VERSION; the user of this file must provide
9662         them now. Include c-ctype.h.
9663         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
9664         directive and CHAR_T_ONLY_ASCII.
9665         * lib/vasnprintf.c: Don't include config.h and the specification header
9666         if VASNPRINTF is already defined.
9667         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
9668         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
9669         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
9670         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
9671         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
9672         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
9673         code accordingly.
9674         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
9675         pad_ourselves also in this case, with the 'c' and 's' directives, and
9676         with a different notion of "width".
9677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
9678
9679 2007-06-10  Bruno Haible  <bruno@clisp.org>
9680
9681         * modules/unistr/u32-mbsnlen: New file.
9682         * lib/unistr/u32-mbsnlen.c: New file.
9683
9684         * modules/unistr/u16-mbsnlen: New file.
9685         * lib/unistr/u16-mbsnlen.c: New file.
9686
9687         * modules/unistr/u8-mbsnlen: New file.
9688         * lib/unistr/u8-mbsnlen.c: New file.
9689
9690         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
9691         declarations.
9692
9693 2007-06-10  Bruno Haible  <bruno@clisp.org>
9694
9695         * lib/string_.h (mbsnlen): New declaration.
9696         * lib/mbsnlen.c: New file.
9697         * m4/mbsnlen.m4: New file.
9698         * modules/mbsnlen: New file.
9699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
9700         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
9701         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
9702
9703 2007-06-10  Bruno Haible  <bruno@clisp.org>
9704
9705         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
9706
9707 2007-06-10  Bruno Haible  <bruno@clisp.org>
9708
9709         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
9710         * lib/mbuiter.h: Likewise.
9711
9712 2007-06-10  Bruno Haible  <bruno@clisp.org>
9713
9714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
9715         declaration.
9716
9717 2007-06-10  Karl Berry  <karl@gnu.org>
9718
9719         * config/srclist.txt: remove gettext entries, Bruno prefers
9720         to update individually.
9721
9722 2007-06-10  Bruno Haible  <bruno@clisp.org>
9723
9724         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
9725         'maxlen'. Ensure only length + width bytes are allocated, not
9726         length + 1 + width.
9727
9728 2007-06-09  Bruno Haible  <bruno@clisp.org>
9729
9730         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
9731         (CHAR_T): Remove macro.
9732         (VASNPRINTF): Update.
9733
9734 2007-06-09  Bruno Haible  <bruno@clisp.org>
9735
9736         * MODULES.html.sh (Unicode string functions): Add the new modules.
9737
9738         * modules/uniconv/u32-conv-to-enc: New file.
9739         * lib/uniconv/u32-conv-to-enc.c: New file.
9740         * modules/uniconv/u32-conv-to-enc-tests: New file.
9741         * tests/uniconv/test-u32-conv-to-enc.c: New file.
9742
9743         * modules/uniconv/u16-conv-to-enc: New file.
9744         * lib/uniconv/u16-conv-to-enc.c: New file.
9745         * lib/uniconv/u-conv-to-enc.h: New file.
9746         * modules/uniconv/u16-conv-to-enc-tests: New file.
9747         * tests/uniconv/test-u16-conv-to-enc.c: New file.
9748
9749         * modules/uniconv/u8-conv-to-enc: New file.
9750         * lib/uniconv/u8-conv-to-enc.c: New file.
9751         * modules/uniconv/u8-conv-to-enc-tests: New file.
9752         * tests/uniconv/test-u8-conv-to-enc.c: New file.
9753
9754         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
9755         u32_conv_to_encoding): New declarations.
9756
9757 2007-06-09  Bruno Haible  <bruno@clisp.org>
9758
9759         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
9760
9761 2007-06-09  Bruno Haible  <bruno@clisp.org>
9762
9763         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
9764         * modules/malloca: Renamed from modules/allocsa, updated.
9765         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
9766         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
9767         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
9768         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
9769         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
9770         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
9771         * modules/xmalloca: Renamed from modules/xallocsa, updated.
9772         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
9773         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
9774         * modules/c-strcasestr (Depends-on): Update.
9775         * lib/c-strcasestr.c: Update.
9776         * modules/c-strstr (Depends-on): Update.
9777         * lib/c-strstr.c: Update.
9778         * modules/canonicalize-lgpl (Depends-on): Update.
9779         * lib/canonicalize-lgpl.c: Update.
9780         * modules/clean-temp (Depends-on): Update.
9781         * lib/clean-temp.c: Update.
9782         * modules/csharpcomp (Depends-on): Update.
9783         * lib/csharpcomp.c: Update.
9784         * modules/csharpexec (Depends-on): Update.
9785         * lib/csharpexec.c: Update.
9786         * modules/javacomp (Depends-on): Update.
9787         * lib/javacomp.c: Update.
9788         * modules/javaexec (Depends-on): Update.
9789         * lib/javaexec.c: Update.
9790         * modules/mbscasestr (Depends-on): Update.
9791         * lib/mbscasestr.c: Update.
9792         * modules/mbsstr (Depends-on): Update.
9793         * lib/mbsstr.c: Update.
9794         * modules/setenv (Depends-on): Update.
9795         * lib/setenv.c: Update.
9796         * modules/strcasestr (Depends-on): Update.
9797         * lib/strcasestr.c: Update.
9798         * modules/striconveha (Depends-on): Update.
9799         * lib/striconveha.c: Update.
9800         * modules/relocatable-prog-wrapper (Files): Update.
9801         * lib/relocwrapper.c: Update.
9802         * build-aux/install-reloc: Update.
9803         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
9804
9805 2007-06-08  Bruno Haible  <bruno@clisp.org>
9806
9807         Port to uClibc.
9808         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
9809         * lib/fpurge.c (fpurge): Likewise.
9810         * lib/freading.c (freading): Likewise.
9811         * lib/fseeko.c (rpl_fseeko): Likewise.
9812         * lib/fseterr.c (fseterr): Likewise.
9813         * lib/fwriting.c (fwriting): Likewise.
9814         * tests/test-fflush.c (main): Avoid a failure on uClibc.
9815
9816 2007-06-08  Bruno Haible  <bruno@clisp.org>
9817
9818         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
9819         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
9820         * modules/gettext (Files): Add m4/intlmacosx.m4.
9821
9822 2007-06-07  Bruno Haible  <bruno@clisp.org>
9823
9824         * modules/localename-tests: New file.
9825         * tests/test-localename.c: New file.
9826
9827         New module 'localename'.
9828         * lib/localename.h: New file.
9829         * lib/localename.c: New file, from GNU gettext.
9830         * m4/localename.m4: New file.
9831         * modules/localename: New file.
9832
9833 2007-06-07  Bruno Haible  <bruno@clisp.org>
9834
9835         Work around the lack of <wchar.h> on some builds of uClibc.
9836         * doc/headers/wchar.texi: Update.
9837         * lib/wchar_.h: Include <wchar.h> only if it exists.
9838         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
9839         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
9840         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
9841         doesn't exist.
9842         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
9843         * modules/mbfile (Depends-on): Add wchar.
9844         * modules/mbiter (Depends-on): Likewise.
9845         * modules/mbuiter (Depends-on): Likewise.
9846         Reported by Simon Josefsson.
9847
9848 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
9849
9850         Work around problem reported by Steven M. Schweda in
9851         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
9852         Tru64 5.1B with the Compaq compiler environment installed declares
9853         an 'isblank' function but does not define it in the C library.
9854         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
9855         * lib/regex_internal.h (isblank): Likewise.
9856         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
9857         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9858
9859 2007-06-05  Bruno Haible  <bruno@clisp.org>
9860
9861         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
9862         ia64.
9863         * modules/printf-safe: New file.
9864         * modules/fprintf-posix (Depends-on): Add printf-safe.
9865         * modules/printf-posix (Depends-on): Likewise.
9866         * modules/snprintf-posix (Depends-on): Likewise.
9867         * modules/sprintf-posix (Depends-on): Likewise.
9868         * modules/vasnprintf-posix (Depends-on): Likewise.
9869         * modules/vasprintf-posix (Depends-on): Likewise.
9870         * modules/vfprintf-posix (Depends-on): Likewise.
9871         * modules/vprintf-posix (Depends-on): Likewise.
9872         * modules/vsnprintf-posix (Depends-on): Likewise.
9873         * modules/vsprintf-posix (Depends-on): Likewise.
9874         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9875         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
9876         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
9877         "no" on i386, x86_64, ia64.
9878         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
9879         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9880         on i386, x86_64, ia64.
9881         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
9882         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9883         on i386, x86_64, ia64.
9884         * tests/test-vasnprintf-posix.c: Include float.h.
9885         (LDBL80_WORDS): New macro.
9886         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9887         on i386, x86_64, ia64.
9888         * tests/test-vasprintf-posix.c: Include float.h.
9889         (LDBL80_WORDS): New macro.
9890         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9891         on i386, x86_64, ia64.
9892         * tests/test-snprintf-posix.c: Include float.h.
9893         * tests/test-sprintf-posix.c: Likewise.
9894         * tests/test-vsnprintf-posix.c: Likewise.
9895         * tests/test-vsprintf-posix.c: Likewise.
9896
9897 2007-06-05  Bruno Haible  <bruno@clisp.org>
9898
9899         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
9900         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
9901         non-IEEE numbers on i386, x86_64, ia64.
9902         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
9903         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
9904         * tests/test-isnanl.h: Include float.h.
9905         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
9906
9907 2007-06-05  Bruno Haible  <bruno@clisp.org>
9908
9909         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
9910         also the %a / %A. Handle the %a / %A code before this extra handling.
9911
9912 2007-06-05  Bruno Haible  <bruno@clisp.org>
9913
9914         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
9915         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
9916
9917 2007-06-05  Bruno Haible  <bruno@clisp.org>
9918
9919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
9920         typo in variable name.
9921
9922 2007-06-05  Eric Blake  <ebb9@byu.net>
9923
9924         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
9925         Reported by Simon Josefsson.
9926
9927 2007-06-04  Bruno Haible  <bruno@clisp.org>
9928
9929         Avoid test failures on some PowerPC platforms.
9930         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
9931         Define differently for PowerPC.
9932         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
9933         Reported by Gary V. Vaughan <gary@gnu.org>.
9934
9935 2007-06-02  Bruno Haible  <bruno@clisp.org>
9936
9937         Fix test-stdint failure on FreeBSD/ia64.
9938         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
9939         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
9940         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
9941         * doc/headers/stdint.texi: Update.
9942
9943 2007-06-01  Bruno Haible  <bruno@clisp.org>
9944
9945         * tests/test-binary-io.c (main): Pass a third argument to open().
9946         Reported by Gary V. Vaughan <gary@gnu.org>.
9947
9948 2007-06-01  Bruno Haible  <bruno@clisp.org>
9949
9950         * doc/functions/frexpl.texi: Update for mingw.
9951
9952 2007-06-01  Bruno Haible  <bruno@clisp.org>
9953
9954         * tests/test-lseek.c (main): Disable test of errno for invalid third
9955         argument.
9956         * doc/functions/lseek.texi: Update.
9957         Reported by Gary V. Vaughan <gary@gnu.org>.
9958
9959 2007-05-28  Bruno Haible  <bruno@clisp.org>
9960
9961         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
9962
9963 2007-05-31  Eric Blake  <ebb9@byu.net>
9964
9965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
9966         cross compiling.
9967
9968 2007-05-30  Eric Blake  <ebb9@byu.net>
9969         and Bruno Haible  <bruno@clisp.org>
9970
9971         Work around mingw test failures exposed by m4-1.4.9b.
9972         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
9973         * tests/test-unistd.c: Disable uid_t and git_t tests for the
9974         moment.
9975
9976 2007-05-30  Bruno Haible  <bruno@clisp.org>
9977
9978         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
9979         assuming that they are closed. Needed on HP-UX 11.
9980
9981 2007-05-29  Bruno Haible  <bruno@clisp.org>
9982
9983         Fix a problem with #include_next.
9984         * lib/dirent_.h: Split the double-inclusion guard.
9985         * lib/fcntl_.h: Likewise.
9986         * lib/float_.h: Likewise.
9987         * lib/iconv_.h: Likewise.
9988         * lib/inttypes_.h: Likewise.
9989         * lib/locale_.h: Likewise.
9990         * lib/math_.h: Likewise.
9991         * lib/netinet_in_.h: Likewise.
9992         * lib/search_.h: Likewise.
9993         * lib/signal_.h: Likewise.
9994         * lib/stdint_.h: Likewise.
9995         * lib/stdio_.h: Likewise.
9996         * lib/stdlib_.h: Likewise.
9997         * lib/string_.h: Likewise.
9998         * lib/sys_select_.h: Likewise.
9999         * lib/sys_socket_.h: Likewise.
10000         * lib/sys_stat_.h: Likewise.
10001         * lib/sys_time_.h: Likewise.
10002         * lib/sysexits_.h: Likewise.
10003         * lib/time_.h: Likewise.
10004         * lib/unistd_.h: Likewise.
10005         * lib/wchar_.h: Likewise.
10006         * lib/wctype_.h: Likewise.
10007
10008 2007-05-29  Bruno Haible  <bruno@clisp.org>
10009
10010         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
10011         for the moment.
10012
10013 2007-05-29  Bruno Haible  <bruno@clisp.org>
10014
10015         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
10016         invocation.
10017         Reported by Eric Blake.
10018
10019 2007-05-29  Bruno Haible  <bruno@clisp.org>
10020
10021         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
10022         compiling case.
10023
10024 2007-05-29  Eric Blake  <ebb9@byu.net>
10025             Bruno Haible  <bruno@clisp.org>
10026
10027         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
10028         cross compiles.
10029
10030 2007-05-28  Eric Blake  <ebb9@byu.net>
10031
10032         * modules/closein-tests (test_closein_LDADD): Support test on
10033         cygwin with libtool.
10034
10035 2007-05-28  Bruno Haible  <bruno@clisp.org>
10036
10037         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
10038         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10039         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10040         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10041         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10042         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10043         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10044         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10045         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10046
10047 2007-05-28  Eric Blake  <ebb9@byu.net>
10048
10049         Unconditionally include <config.h> in unit tests.
10050         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
10051         * tests/test-allocsa.c, tests/test-arcfour.c,
10052         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
10053         tests/test-array_list.c, tests/test-array_oset.c,
10054         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
10055         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
10056         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
10057         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
10058         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
10059         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
10060         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
10061         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
10062         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
10063         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
10064         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
10065         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
10066         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
10067         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
10068         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
10069         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
10070         test-md5.c, test-memmem.c, test-printf-posix.c,
10071         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
10072         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
10073         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
10074         test-strcasestr.c, test-striconv.c, test-striconveh.c,
10075         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
10076         test-vasnprintf-posix2.c, test-vasnprintf.c,
10077         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
10078         test-vfprintf-posix.c, test-vprintf-posix.c,
10079         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
10080         test-xvasprintf.c: Likewise.
10081
10082 2007-05-28  Bruno Haible  <bruno@clisp.org>
10083
10084         * gnulib-tool (func_import): Remember the --with-tests command-line
10085         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
10086         Reported by Eric Blake.
10087
10088 2007-05-28  Bruno Haible  <bruno@clisp.org>
10089
10090         * modules/ftell-tests: New file.
10091         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
10092         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
10093
10094         * lib/ftell.c: New file.
10095         * modules/ftell: New file.
10096         * m4/ftell.m4: New file.
10097         * doc/functions/ftell.texi: Update.
10098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
10099         REPLACE_FTELL.
10100         * lib/stdio_.h (rpl_ftell): New declaration.
10101         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
10102         REPLACE_FTELL.
10103
10104 2007-05-28  Eric Blake  <ebb9@byu.net>
10105
10106         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
10107
10108 2007-05-28  Bruno Haible  <bruno@clisp.org>
10109
10110         * modules/fseek-tests: New file.
10111         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
10112         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
10113
10114         * lib/fseek.c: New file.
10115         * modules/fseek: New file.
10116         * m4/fseek.m4: New file.
10117         * doc/functions/fseek.texi: Update.
10118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
10119         REPLACE_FSEEK.
10120         * lib/stdio_.h (rpl_fseek): New declaration.
10121         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
10122         REPLACE_FSEEK.
10123
10124 2007-05-28  Bruno Haible  <bruno@clisp.org>
10125
10126         * lib/stdio_.h (fflush): More comments.
10127
10128 2007-05-28  Bruno Haible  <bruno@clisp.org>
10129
10130         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
10131         runtime test.
10132
10133 2007-05-28  Eric Blake  <ebb9@byu.net>
10134
10135         Improve lseek module.
10136         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
10137         * lib/unistd_.h (lseek): Scale back link warning message.
10138         * tests/test-lseek.c: Beef up test.
10139         * tests/test-lseek.sh: Exercise more facets of lseek.
10140         Reported by Bruno Haible.
10141
10142 2007-05-28  Bruno Haible  <bruno@clisp.org>
10143
10144         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
10145         to define.
10146
10147 2007-05-27  Bruno Haible  <bruno@clisp.org>
10148
10149         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
10150
10151 2007-05-27  Bruno Haible  <bruno@clisp.org>
10152
10153         * modules/openmp: New file.
10154         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
10155         Noah Misch.
10156
10157 2007-05-26  Bruno Haible  <bruno@clisp.org>
10158
10159         * modules/chdir-long (Depends-on): Add fchdir.
10160         * modules/chdir-safer (Depends-on): Likewise.
10161         * modules/fts (Depends-on): Likewise.
10162         * modules/fts-lgpl (Depends-on): Likewise.
10163         * modules/openat (Depends-on): Likewise.
10164         * modules/savewd (Depends-on): Likewise.
10165
10166 2007-05-24  Eric Blake  <ebb9@byu.net>
10167
10168         Fix lseek on mingw.
10169         * modules/lseek: New module.
10170         * m4/lseek.m4: New file.
10171         * lib/lseek.c: New file.
10172         * modules/lseek-tests: New file.
10173         * tests/test-lseek.c: New file.
10174         * tests/test-lseek.sh: New file.
10175         * MODULES.html.sh: Document lseek module.
10176         * modules/fflush (Depends-on): Add lseek, fseeko.
10177         * modules/fseeko (Depends-on): Likewise.
10178         * modules/ftello (Depends-on): Likewise.
10179         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
10180         broken.
10181         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
10182         broken.
10183         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
10184         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
10185         * lib/ftello.c (rpl_ftello): Likewise.
10186         * tests/test-fseeko.c (main): Test this.
10187         * tests/test-fseeko.sh: Likewise.
10188         * tests/test-ftello.c (main): Likewise.
10189         * tests/test-ftello.sh: Likewise.
10190         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
10191         implies replacing fseek.
10192         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
10193         HAVE_FTELLO.
10194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
10195         * modules/unistd (Makefile.am): Likewise.
10196         * lib/unistd_.h (lseek): Declare a replacement.
10197         * doc/functions/lseek.texi (lseek): Document this fix.
10198         * doc/functions/fseek.texi (fseek): Likewise.
10199         * doc/functions/ftell.texi (ftell): Likewise.
10200
10201 2007-05-24  Bruno Haible  <bruno@clisp.org>
10202
10203         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
10204         in the printed representation of a NaN.
10205         * tests/test-vasprintf-posix.c (test_function): Likewise.
10206         * tests/test-snprintf-posix.h (test_function): Likewise.
10207         * tests/test-sprintf-posix.h (test_function): Likewise.
10208         Reported by Eric Blake.
10209
10210 2007-05-23  Eric Blake  <ebb9@byu.net>
10211
10212         Fix fseeko/ftello on cygwin 1.5.24.
10213         * doc/functions/fseeko.texi (fseeko): Document the fix.
10214         * doc/functions/ftello.texi (ftello): Document the fix.
10215         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
10216         * doc/functions/stdout.text (stdout): New file.
10217         * doc/functions/stderr.text (stderr): New file.
10218         * doc/gnulib.texi (Function Substitutes): Use new files.
10219         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
10220         prior to 1.7.0.
10221         * tests/test-ftello.c (main): Likewise for ftello.
10222         * tests/test-fseeko.sh: New file.
10223         * tests/test-ftello.sh: New file.
10224         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
10225         with seekable stdin.
10226         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
10227         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
10228         (gl_REPLACE_FSEEKO): New macro.
10229         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
10230         * modules/fseeko (Files): Distribute fseeko.c.
10231         * modules/ftello (Files): Distribute ftello.c.
10232         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
10233         mode.
10234         * lib/ftello.c (rpl_ftello): New file.
10235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
10236         fseeko, ftello.
10237         (gl_STDIN_LARGE_OFFSET): New macro.
10238         * modules/stdio (Makefile.am): Perform the replacement.
10239         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
10240
10241 2007-05-23  Bruno Haible  <bruno@clisp.org>
10242
10243         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
10244         GNULIB_POSIXCHECK is defined.
10245
10246 2007-05-21  Bruno Haible  <bruno@clisp.org>
10247
10248         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
10249         Check also the output for NaN arguments. When cross-compiling, guess
10250         no on IRIX.
10251         * lib/vasnprintf.c: Update comments.
10252         * tests/test-vasnprintf-posix.c (strisnan): New function.
10253         (test_function): Use it.
10254         * tests/test-vasprintf-posix.c (strisnan): New function.
10255         (test_function): Use it.
10256         * tests/test-snprintf-posix.h (strisnan): New function.
10257         (test_function): Use it.
10258         * tests/test-sprintf-posix.h (strisnan): New function.
10259         (test_function): Use it.
10260         Reported by Eric Blake.
10261
10262 2007-05-20  Bruno Haible  <bruno@clisp.org>
10263
10264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
10265         numbers that fails on BeOS.
10266         * doc/functions/frexpl.texi: Update.
10267
10268 2007-05-20  Jim Meyering  <jim@meyering.net>
10269
10270         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
10271         forced upon us by glibc-2.6.
10272
10273 2007-05-20  Bruno Haible  <bruno@clisp.org>
10274
10275         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
10276         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
10277         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
10278         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
10279         NEED_PRINTF_INFINITE.
10280         (is_infinitel): New function.
10281         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
10282         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
10283         gl_PREREQ_VASNPRINTF_INFINITE.
10284         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
10285         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10286         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
10287         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
10288         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
10289         gl_PREREQ_VASNPRINTF_INFINITE.
10290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10293         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10297         * doc/functions/fprintf.texi: Update.
10298         * doc/functions/printf.texi: Update.
10299         * doc/functions/snprintf.texi: Update.
10300         * doc/functions/sprintf.texi: Update.
10301         * doc/functions/vfprintf.texi: Update.
10302         * doc/functions/vprintf.texi: Update.
10303         * doc/functions/vsnprintf.texi: Update.
10304         * doc/functions/vsprintf.texi: Update.
10305
10306 2007-05-20  Bruno Haible  <bruno@clisp.org>
10307
10308         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
10309         was not found in libc.
10310         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10311
10312 2007-05-20  Bruno Haible  <bruno@clisp.org>
10313
10314         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10315         printed as "-nan" instead of "nan".
10316         * tests/test-vasprintf-posix.c (test_function): Likewise.
10317         * tests/test-snprintf-posix.h (test_function): Likewise.
10318         * tests/test-sprintf-posix.h (test_function): Likewise.
10319         Needed for HP-UX 11.
10320
10321 2007-05-20  Jim Meyering  <jim@meyering.net>
10322
10323         Fix buggy test for the fchownat-deref bug.
10324         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
10325         symlink required for the run-test.  Without it, this test would
10326         always declare that fchownat doesn't work, and client code would
10327         unnecessarily use the replacement function with fixed libc.
10328         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
10329         Reported by Greg Schafer.
10330
10331 2007-05-19  Bruno Haible  <bruno@clisp.org>
10332
10333         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
10334         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
10335         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
10336         Needed for IRIX 6.5 and Solaris 2.5.1.
10337
10338 2007-05-19  Bruno Haible  <bruno@clisp.org>
10339
10340         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
10341         (test_function): Skip tests involving -0.0 on platforms where
10342         -0.0 = 0.0.
10343         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
10344         (test_function): Skip tests involving -0.0 on platforms where
10345         -0.0 = 0.0.
10346         * tests/test-snprintf-posix.h (have_minus_zero): New function.
10347         (test_function): Skip tests involving -0.0 on platforms where
10348         -0.0 = 0.0.
10349         * tests/test-sprintf-posix.h (have_minus_zero): New function.
10350         (test_function): Skip tests involving -0.0 on platforms where
10351         -0.0 = 0.0.
10352         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
10353         tests.
10354         * tests/test-printf-posix.h (test_function): Likewise.
10355         * tests/test-printf-posix.output: Remove all -0.0 related results.
10356         Needed for IRIX 6.5.
10357
10358 2007-05-19  Bruno Haible  <bruno@clisp.org>
10359
10360         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10361         printed as "nan0x7fffffff" instead of "nan".
10362         * tests/test-vasprintf-posix.c (test_function): Likewise.
10363         * tests/test-snprintf-posix.h (test_function): Likewise.
10364         * tests/test-sprintf-posix.h (test_function): Likewise.
10365         * tests/test-fprintf-posix.h (NaN): Remove macro.
10366         (test_function): Remove all NaN related tests.
10367         * tests/test-printf-posix.h (NaN): Remove macro.
10368         (test_function): Remove all NaN related tests.
10369         * tests/test-printf-posix.output: Remove all NaN related results.
10370         Needed for IRIX 6.5.
10371
10372 2007-05-19  Bruno Haible  <bruno@clisp.org>
10373
10374         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
10375         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10376
10377 2007-05-19  Bruno Haible  <bruno@clisp.org>
10378
10379         * lib/float_.h: New file.
10380         * m4/float_h.m4: New file.
10381         * modules/float: New file.
10382         * modules/isnanl (Dependencies): Add float.
10383         * modules/isnanl-nolibm (Dependencies): Likewise.
10384         * modules/mathl (Dependencies): Likewise.
10385         * modules/printf-frexpl (Dependencies): Likewise.
10386         * modules/signbit (Dependencies): Likewise.
10387         * modules/vasnprintf (Dependencies): Likewise.
10388         * doc/headers/float.texi: Update.
10389
10390 2007-05-19  Jim Meyering  <jim@meyering.net>
10391
10392         * lib/utimens.c (gl_futimens): Rename from futimens,
10393         now that glibc-2.6 declares futimens.
10394         * lib/utimens.h: Likewise.
10395
10396 2007-05-19  Bruno Haible  <bruno@clisp.org>
10397
10398         Avoid test failures on mingw.
10399         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
10400         * tests/test-printf-posix.sh: Likewise.
10401         * tests/test-vfprintf-posix.sh: Likewise.
10402         * tests/test-vprintf-posix.sh: Likewise.
10403
10404 2007-05-19  Bruno Haible  <bruno@clisp.org>
10405
10406         Fix *printf result for NaN, Inf, -0.0 on mingw.
10407         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
10408         * lib/vasnprintf.c: Include math.h and isnan.h.
10409         (is_infinite_or_zero): New function.
10410         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
10411         values in the %f, %F, %e, %E, %g, %G directives.
10412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
10413         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10414         gl_PRINTF_INFINITE and test its result. Invoke
10415         gl_PREREQ_VASNPRINTF_INFINITE.
10416         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10417         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10418         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10419         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10420         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10421         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10422         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10423         * doc/functions/fprintf.texi: Update.
10424         * doc/functions/printf.texi: Update.
10425         * doc/functions/snprintf.texi: Update.
10426         * doc/functions/sprintf.texi: Update.
10427         * doc/functions/vfprintf.texi: Update.
10428         * doc/functions/vprintf.texi: Update.
10429         * doc/functions/vsnprintf.texi: Update.
10430         * doc/functions/vsprintf.texi: Update.
10431
10432 2007-05-19  Bruno Haible  <bruno@clisp.org>
10433
10434         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
10435         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
10436         Instead of multiplying with 10^k, set extra_zeroes to k.
10437         (scale10_round_long_double): Remove function.
10438
10439 2007-05-18  Bruno Haible  <bruno@clisp.org>
10440
10441         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
10442         introduced on 2007-05-06.
10443
10444 2007-05-18  Bruno Haible  <bruno@clisp.org>
10445
10446         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
10447         %g directives.
10448         * tests/test-vasprintf-posix.c (test_function): Likewise.
10449         * tests/test-snprintf-posix.h (test_function): Likewise.
10450         * tests/test-sprintf-posix.h (test_function): Likewise.
10451
10452 2007-05-18  Bruno Haible  <bruno@clisp.org>
10453
10454         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
10455         (strmatch): New function.
10456         (test_function): Test the %f directive on numbers of various exponents.
10457         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
10458         (strmatch): New function.
10459         (test_function): Test the %f directive on numbers of various exponents.
10460         * tests/test-snprintf-posix.h (strmatch): New function.
10461         (test_function): Test the %f directive on numbers of various exponents.
10462         * tests/test-sprintf-posix.h (strmatch): New function.
10463         (test_function): Test the %f directive on numbers of various exponents.
10464         * tests/test-snprintf-posix.c (SIZEOF): New macro.
10465         * tests/test-sprintf-posix.c (SIZEOF): New macro.
10466         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
10467         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
10468
10469 2007-05-18  Bruno Haible  <bruno@clisp.org>
10470
10471         Add support for 'long double' number output.
10472         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
10473         * lib/vasnprintf.c: Include math.h and float+.h.
10474         (mp_limb_t): New type.
10475         (GMP_LIMB_BITS): New macro.
10476         (mp_twolimb_t): New type.
10477         (GMP_TWOLIMB_BITS): New macro.
10478         (mpn_t): New type.
10479         (multiply, divide, convert_to_decimal, decode_long_double,
10480         scale10_round_long_double, scale10_round_decimal_long_double,
10481         floorlog10l): New functions.
10482         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
10483         for the %f, %F, %e, %E, %g, %G directives.
10484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
10485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10486         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
10487         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
10488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10495         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
10496         * modules/snprintf-posix (Depends-on): Likewise.
10497         * modules/sprintf-posix (Depends-on): Likewise.
10498         * modules/vasnprintf-posix (Depends-on): Likewise.
10499         * modules/vasprintf-posix (Depends-on): Likewise.
10500         * modules/vfprintf-posix (Depends-on): Likewise.
10501         * modules/vsnprintf-posix (Depends-on): Likewise.
10502         * modules/vsprintf-posix (Depends-on): Likewise.
10503         * modules/vasnprintf (Files): Add lib/float+.h.
10504         * doc/functions/fprintf.texi: Update.
10505         * doc/functions/printf.texi: Update.
10506         * doc/functions/snprintf.texi: Update.
10507         * doc/functions/sprintf.texi: Update.
10508         * doc/functions/vfprintf.texi: Update.
10509         * doc/functions/vprintf.texi: Update.
10510         * doc/functions/vsnprintf.texi: Update.
10511         * doc/functions/vsprintf.texi: Update.
10512
10513 2007-05-18  Bruno Haible  <bruno@clisp.org>
10514
10515         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
10516
10517 2007-05-18  Bruno Haible  <bruno@clisp.org>
10518
10519         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
10520         for printing 64-bit integers. Needed for mingw.
10521
10522 2007-05-18  Bruno Haible  <bruno@clisp.org>
10523
10524         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10525         gl_FUNC_FREXPL_WORKS.
10526         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
10527
10528 2007-05-18  Bruno Haible  <bruno@clisp.org>
10529
10530         * modules/frexpl-nolibm-tests: New file.
10531
10532         * modules/frexpl-nolibm: New file.
10533         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
10534
10535 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10536
10537         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
10538         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10539         GCC 4.2, which otherwise issues a lot of warnings.
10540         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
10541         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
10542         Likewise.
10543         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
10544         * modules/iconv_open (iconv.h): Likewise.
10545         * modules/locale (locale.h): Likewise.
10546         * modules/netinet_in (netinet/in.h): Likewise.
10547         * modules/sys_select (sys_select.h): Likewise.
10548         * modules/sys_socket (sys/socket.h): Likewise.
10549         * modules/sys_stat (sys/stat.h): Likewise.
10550         * modules/sysexits (sysexits.h): Likewise.
10551         * modules/unistd (unistd.h): Likewise.
10552
10553 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10554
10555         * modules/closein-tests (Makefile.am): Distribute
10556         `test-closein.sh'.
10557
10558 2007-05-17  Bruno Haible  <bruno@clisp.org>
10559
10560         * tests/test-printf-posix.output: Renamed from
10561         tests/test-fprintf-posix.out.
10562         * modules/fprintf-posix-tests: Update.
10563         * modules/printf-posix-tests: Update.
10564         * modules/vfprintf-posix-tests: Update.
10565         * modules/vprintf-posix-tests: Update.
10566         * tests/test-fprintf-posix.sh: Update.
10567         * tests/test-printf-posix.sh: Update.
10568         * tests/test-vfprintf-posix.sh: Update.
10569         * tests/test-vprintf-posix.sh: Update.
10570         Reported by Ralf Wildenhues.
10571
10572 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10573
10574         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
10575         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10576         GCC 4.2, which otherwise issues a lot of warnings.
10577         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
10578         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
10579         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
10580         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
10581         it should no longer be needed.
10582         * lib/string_.h: Likewise.
10583         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
10584         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
10585         * modules/inttypes (inttypes.h): Likewise.
10586         * modules/math (math.h): Likewise.
10587         * modules/search (search.h): Likewise.
10588         * modules/signal (signal.h): Likewise.
10589         * modules/stdint (stdint.h): Likewise.
10590         * modules/stdio (stdio.h): Likewise.
10591         * modules/stdlib (stdlib.h): Likewise.
10592         * modules/string (string.h): Likewise.
10593         * modules/sys_time (sys/time.h): Likewise.
10594         * modules/time (time.h): Likewise.
10595         * modules/wchar (wchar.h): Likewise.
10596         * modules/wctype (wtype.h): Likewise.
10597
10598 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10599
10600         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
10601
10602 2007-05-13  Bruno Haible  <bruno@clisp.org>
10603
10604         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
10605         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10606         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
10607         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10608         (gl_PREREQ_STRTOK_R): Don't require it here.
10609
10610 2007-05-13  Bruno Haible  <bruno@clisp.org>
10611
10612         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
10613         when used in C++ mode.
10614
10615 2007-05-12  Bruno Haible  <bruno@clisp.org>
10616
10617         * lib/linebuffer.h: Tweak doc.
10618         * lib/linebuffer.c: Likewise.
10619
10620 2007-05-12  James Youngman  <jay@gnu.org>
10621
10622         * lib/linebuffer.c (readlinebuffer_delim): New function,
10623         like readlinebuffer, but use a caller-specified delimiter.
10624         (readlinebuffer): Just call readlinebuffer_delim with '\n'
10625         as the delimiter.
10626         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
10627
10628 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10629
10630         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
10631         * modules/openat (Files): Remove openat-die.c.
10632         (Depends-on): Add openat-die.
10633         * modules/openat-die: New module.
10634
10635 2007-05-06  Bruno Haible  <bruno@clisp.org>
10636
10637         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
10638         Update with info about Cygwin.
10639         * doc/functions/fprintf.texi: Update.
10640         * doc/functions/printf.texi: Update.
10641         * doc/functions/snprintf.texi: Update.
10642         * doc/functions/sprintf.texi: Update.
10643         * doc/functions/vfprintf.texi: Update.
10644         * doc/functions/vprintf.texi: Update.
10645         * doc/functions/vsnprintf.texi: Update.
10646         * doc/functions/vsprintf.texi: Update.
10647         Reported by Eric Blake.
10648
10649 2007-05-06  Bruno Haible  <bruno@clisp.org>
10650
10651         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
10652         padding ourselves for the floating-point directives.
10653         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
10654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
10655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10656         gl_PRINTF_FLAG_ZERO and test its result. Invoke
10657         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
10658         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10659         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10660         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10661         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10662         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10663         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10664         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10665         * tests/test-snprintf-posix.h (test_function): Also check the width
10666         and some flags in the %f directive.
10667         * tests/test-sprintf-posix.h (test_function): Likewise.
10668         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10669         * tests/test-vasprintf-posix.c (test_function): Likewise.
10670         * doc/functions/fprintf.texi: Update.
10671         * doc/functions/printf.texi: Update.
10672         * doc/functions/snprintf.texi: Update.
10673         * doc/functions/sprintf.texi: Update.
10674         * doc/functions/vfprintf.texi: Update.
10675         * doc/functions/vprintf.texi: Update.
10676         * doc/functions/vsnprintf.texi: Update.
10677         * doc/functions/vsprintf.texi: Update.
10678
10679 2007-05-06  Bruno Haible  <bruno@clisp.org>
10680
10681         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
10682         pass the ' flag character to sprintf or snprintf.
10683         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
10684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
10685         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10686         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
10687         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
10688         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10690         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10691         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10693         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10694         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10695         * tests/test-snprintf-posix.h (test_function): Also check the grouping
10696         flag.
10697         * tests/test-sprintf-posix.h (test_function): Likewise.
10698         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10699         * tests/test-vasprintf-posix.c (test_function): Likewise.
10700         * doc/functions/fprintf.texi: Update.
10701         * doc/functions/printf.texi: Update.
10702         * doc/functions/snprintf.texi: Update.
10703         * doc/functions/sprintf.texi: Update.
10704         * doc/functions/vfprintf.texi: Update.
10705         * doc/functions/vprintf.texi: Update.
10706         * doc/functions/vsnprintf.texi: Update.
10707         * doc/functions/vsprintf.texi: Update.
10708
10709 2007-05-01  Bruno Haible  <bruno@clisp.org>
10710
10711         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
10712
10713 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10714
10715         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
10716         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
10717
10718 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
10719
10720         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
10721         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
10722         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
10723
10724 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
10725
10726         * lib/argp-help.c (struct hol_entry): New member `ord'.
10727         (HOL_ENTRY_PTRCMP): Use ord for comparison
10728         (hol_sort): Initialize ord.
10729
10730 2007-05-01  Bruno Haible  <bruno@clisp.org>
10731
10732         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
10733         Reported by Eric Blake.
10734         * doc/gnulib.texi (Function Substitutes): Update.
10735
10736 2007-05-01  Bruno Haible  <bruno@clisp.org>
10737
10738         * doc/functions.texi: Remove file, now redundant through
10739         doc/functions/*.texi.
10740
10741 2007-05-01  Bruno Haible  <bruno@clisp.org>
10742
10743         * modules/argp (Depends-on): Add sleep.
10744
10745 2007-05-01  Bruno Haible  <bruno@clisp.org>
10746
10747         * modules/sleep-tests: New file.
10748         * tests/test-sleep.c: New file.
10749
10750         * modules/sleep: New file.
10751         * lib/sleep.c: New file.
10752         * m4/sleep.m4: New file.
10753         * lib/unistd_.h (sleep): New declaration.
10754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
10755         HAVE_SLEEP.
10756         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
10757         * doc/functions/sleep.texi: Document the sleep module.
10758
10759 2007-05-01  Bruno Haible  <bruno@clisp.org>
10760
10761         * lib/sigprocmask.h: Remove file.
10762         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
10763         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
10764         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
10765         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
10766         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10767         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
10768         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
10769         HAVE_SIGSET_T as a shell variable.
10770         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
10771         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
10772         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
10773         (Depends-on): Add signal. Remove verify.
10774         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
10775         (Include): Mention <signal.h> instead of sigprocmask.h.
10776         * NEWS: Mention the change.
10777         * lib/fatal-signal.c: Don't include sigprocmask.h.
10778
10779 2007-05-01  Bruno Haible  <bruno@clisp.org>
10780
10781         * modules/signal: New file.
10782         * lib/signal_.h: New file.
10783         * m4/signal_h.m4: New file.
10784
10785 2007-05-01  Bruno Haible  <bruno@clisp.org>
10786
10787         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
10788         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
10789         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
10790         HAVE_WCTYPE_CTMP_BUG into wctype.h.
10791
10792 2007-05-01  Bruno Haible  <bruno@clisp.org>
10793
10794         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
10795         configure time.
10796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
10797         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
10798         * modules/sys_stat (Makefile.am): Substitute their values into
10799         sys/stat.h.
10800
10801 2007-05-01  Bruno Haible  <bruno@clisp.org>
10802
10803         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
10804         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
10805         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
10806
10807 2007-05-01  Bruno Haible  <bruno@clisp.org>
10808
10809         * doc/header/assert.texi: Undo last change: don't mention the gnulib
10810         'assert' module here.
10811
10812 2007-05-01  Bruno Haible  <bruno@clisp.org>
10813
10814         * doc/functions/*.texi: New files.
10815         * doc/functions/google-ranking.txt: New file.
10816         * doc/gnulib.texi (Function Substitutes): New chapter.
10817         (ctime, inet_ntoa): Remove sections.
10818         * doc/ctime.texi: Remove file.
10819         * doc/inet_ntoa.texi: Remove file.
10820         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
10821         dependencies.
10822         (%.info): New rule, specifying a --reference-limit.
10823
10824 2007-05-01  Bruno Haible  <bruno@clisp.org>
10825
10826         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
10827
10828 2007-05-01  Bruno Haible  <bruno@clisp.org>
10829
10830         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
10831         the portability of 'mkdir' to mingw systems.
10832
10833 2007-05-01  Bruno Haible  <bruno@clisp.org>
10834
10835         * doc/headers/google-ranking.txt: New file.
10836
10837 2007-04-30  Eric Blake  <ebb9@byu.net>
10838
10839         Prefer fseeko to fseek.
10840         * modules/getpass (Depends-on): Add fseeko.
10841         * lib/getpass.c (getpass): Use fseeko, not fseek.
10842
10843 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
10844
10845         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
10846         assumes the sorting is stable, while most qsort implementations
10847         are not.  Use argument addresses to ensure they never compare as
10848         equal.
10849
10850         * tests/test-argp-2.sh (usage-indent test): Fix output
10851         (func_compare): Restore diff options
10852         * tests/test-argp.c: Restore #include "progname.h"
10853
10854 2007-04-29  Bruno Haible  <bruno@clisp.org>
10855
10856         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
10857         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10858         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
10859         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10860         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
10861         (configure.ac): Define CHECK_SNPRINTF_POSIX.
10862         (TESTS, check_PROGRAMS): Add test-snprintf.
10863         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
10864         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
10865         (TESTS, check_PROGRAMS): Add test-vsnprintf.
10866         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
10867         assertions that fail on HP-UX, OSF/1, or IRIX.
10868         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
10869
10870 2007-04-29  Bruno Haible  <bruno@clisp.org>
10871
10872         * MODULES.html.sh (posix_functions): Remove 'contents'.
10873
10874 2007-04-29  Karl Berry  <karl@gnu.org>
10875
10876         * config/srclist.txt (gendocs_template_min): new entry.
10877
10878 2007-04-29  Bruno Haible  <bruno@clisp.org>
10879
10880         Work around fpurge bug on BSD systems.
10881         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
10882         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
10883         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
10884         fpurge to rpl_fpurge if the system already has this function.
10885         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
10886         the case where the system already has this function. Correct invariants
10887         on BSD systems.
10888         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
10889         BSD systems.
10890
10891 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
10892
10893         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
10894         proposed by Sven Verdoolaege.
10895
10896         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
10897         options.
10898         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
10899         (usage and help tests): Update
10900
10901 2007-04-29  Bruno Haible  <bruno@clisp.org>
10902
10903         * tests/test-fflush.c (main): Use a file of size 17, not 10.
10904         Print more information in case of failure. Disable a test on BeOS.
10905
10906 2007-04-29  Bruno Haible  <bruno@clisp.org>
10907
10908         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
10909         This helps debugging on systems on which no gdb is available.
10910
10911 2007-04-29  Bruno Haible  <bruno@clisp.org>
10912
10913         * lib/freading.h: Improve comments.
10914         * lib/fwriting.h: Likewise.
10915         * tests/test-freading.c (main): Don't check freading immediately after
10916         repositioning. Needed for glibc.
10917
10918 2007-04-29  Bruno Haible  <bruno@clisp.org>
10919
10920         * lib/freading.c (freading): Trivial simplification.
10921
10922 2007-04-28  Bruno Haible  <bruno@clisp.org>
10923
10924         * tests/test-fwriting.c (main): Also test the interaction between
10925         fflush and fwriting.
10926         * modules/fwriting-tests (Depends-on): Add fflush.
10927
10928         * tests/test-freading.c (main): Also test the interaction between
10929         fflush and freading.
10930         * modules/freading-tests (Depends-on): Add fflush.
10931
10932 2007-04-28  Bruno Haible  <bruno@clisp.org>
10933
10934         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
10935         fseeko and ftello.
10936         Suggested by Eric Blake.
10937
10938 2007-04-28  Jim Meyering  <jim@meyering.net>
10939
10940         Avoid false-negative in gl_STDINT_H's C99 conformance test.
10941         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
10942         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
10943
10944 2007-04-27  Eric Blake  <ebb9@byu.net>
10945
10946         * doc/headers/assert.texi (assert.h): Document assert module use.
10947
10948 2007-04-27  Bruno Haible  <bruno@clisp.org>
10949
10950         * doc/headers/*.texi: New files.
10951         * doc/gnulib.texi (Header File Substitutes): New chapter.
10952         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
10953         dependencies.
10954         (standards.info ,standards.html, standards.dvi): Update dependencies.
10955         (mostlyclean, clean): New targets.
10956
10957 2007-04-27  Bruno Haible  <bruno@clisp.org>
10958
10959         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
10960         * modules/sysexits (Files, Makefile.am): Update.
10961
10962         * lib/sys_socket_.h: Renamed from lib/socket_.h.
10963         * modules/sys_socket (Files, Makefile.am): Update.
10964
10965         * lib/sys_stat_.h: Renamed from lib/stat_.h.
10966         * modules/sys_stat (Files, Makefile.am): Update.
10967
10968 2007-04-27  Eric Blake  <ebb9@byu.net>
10969
10970         * lib/freading.h: Improve comments.
10971         * lib/fwriting.h: Likewise.
10972         * lib/fflush.c: Likewise.
10973
10974         Fix closein for mingw.
10975         * modules/closein-tests: Add tests for closein.
10976         * tests/test-closein.c: New file.
10977         * tests/test-closein.sh: Likewise.
10978         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
10979         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
10980
10981 2007-04-27  Bruno Haible  <bruno@clisp.org>
10982
10983         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
10984         version is < 6.
10985         * lib/math_.h [__DECC]: Likewise.
10986         * lib/stdio_.h [__DECC]: Likewise.
10987         * lib/stdlib_.h [__DECC]: Likewise.
10988         * lib/string_.h [__DECC]: Likewise.
10989         * lib/time_.h [__DECC]: Likewise.
10990         * lib/wchar_.h [__DECC]: Likewise.
10991         * lib/wctype_.h [__DECC]: Likewise.
10992
10993 2007-04-27  Bruno Haible  <bruno@clisp.org>
10994
10995         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
10996
10997 2007-04-27  Bruno Haible  <bruno@clisp.org>
10998
10999         * lib/fflush.c: Add comments.
11000         * modules/fpurge-tests (Depends-on): Add fflush.
11001         * modules/freadable-tests (Depends-on): Likewise.
11002         * modules/fwritable-tests (Depends-on): Likewise.
11003
11004 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
11005
11006         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
11007         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
11008         Report by Bruno Haible <bruno@clisp.org>.
11009
11010 2007-04-26  Eric Blake  <ebb9@byu.net>
11011
11012         Fix fflush on mingw.
11013         * modules/fflush (Depends-on): Add freading.
11014         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
11015         but unread data.
11016
11017 2007-04-26  Eric Blake  <ebb9@byu.net>
11018         and Bruno Haible  <bruno@clisp.org>
11019
11020         Implement freading and fwriting.
11021         * lib/freading.c: New file.
11022         * lib/freading.h: Likewise.
11023         * m4/freading.m4: Likewise.
11024         * modules/freading: Likewise.
11025         * modules/freading-tests: Likewise.
11026         * tests/test-freading.c: Likewise.
11027         * lib/fwriting.c: New file.
11028         * lib/fwriting.h: Likewise.
11029         * m4/fwriting.m4: Likewise.
11030         * modules/fwriting: Likewise.
11031         * modules/fwriting-tests: Likewise.
11032         * tests/test-fwriting.c: Likewise.
11033         * MODULES.html.sh (File stream based Input/Output): Mention them.
11034
11035 2007-04-26  Bruno Haible  <bruno@clisp.org>
11036
11037         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
11038         'long' when we assume it.
11039         Suggested by Eric Blake.
11040
11041 2007-04-26  Bruno Haible  <bruno@clisp.org>
11042
11043         Ensure fseeko, ftello are declared on glibc systems.
11044         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
11045         * modules/fseeko (configure.ac-early): Likewise.
11046         * modules/ftello (configure.ac-early): Likewise.
11047         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
11048         AC_FUNC_FSEEKO for this.
11049         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
11050         (gl_CHECK_FSEEKO): Remove macro.
11051
11052 2007-04-26  Bruno Haible  <bruno@clisp.org>
11053
11054         * tests/test-fflush.c (main): Also check the ftell result after
11055         fflush and fseek/fseeko.
11056         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
11057         file descriptor position cache in the stream.
11058         * lib/fseeko.c (rpl_fseeko): Likewise.
11059
11060 2007-04-26  Bruno Haible  <bruno@clisp.org>
11061
11062         * modules/fflush-tests (Depends-on): Add fseeko.
11063
11064 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
11065             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11066
11067         * lib/argz_.h: ensure error_t definition is obtained in same
11068         mechanism system argz.h would have.
11069         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
11070         argz facilities are known bad.  Err on the side of caution if
11071         cross-compiling.
11072
11073 2007-04-25  Eric Blake  <ebb9@byu.net>
11074
11075         * lib/fpurge.c (includes): Use stdlib.h for free.
11076         * tests/test-fflush.c (main): Also test fflush-fseeko.
11077
11078 2007-04-25  Bruno Haible  <bruno@clisp.org>
11079
11080         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
11081         * lib/fseeko.c: New file.
11082         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
11083         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
11084         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
11085         gl_FUNC_FSEEKO.
11086         (gl_FUNC_FSEEKO): Invoke it.
11087         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
11088         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
11089         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
11090
11091 2007-04-25  Bruno Haible  <bruno@clisp.org>
11092
11093         * modules/fflush (Depends-on): Add ftello.
11094
11095 2007-04-25  Bruno Haible  <bruno@clisp.org>
11096
11097         * modules/ftello-tests: New file.
11098         * tests/test-ftello.c: New file.
11099
11100         * modules/ftello: New file.
11101         * m4/ftello.m4: New file.
11102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
11103         HAVE_FTELLO.
11104         * lib/stdio_.h (ftello): New declaration.
11105         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
11106         HAVE_FTELLO.
11107
11108 2007-04-25  Bruno Haible  <bruno@clisp.org>
11109
11110         * modules/fseeko-tests: New file.
11111         * tests/test-fseeko.c: New file.
11112
11113         * modules/fseeko: New file.
11114         * m4/fseeko.m4: New file.
11115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
11116         HAVE_FSEEKO.
11117         * lib/stdio_.h (fseeko): New declaration.
11118         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
11119         HAVE_FSEEKO.
11120
11121 2007-04-25  Bruno Haible  <bruno@clisp.org>
11122
11123         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
11124
11125 2007-04-25  Bruno Haible  <bruno@clisp.org>
11126
11127         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
11128         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
11129         * tests/test-unistd.c: Likewise.
11130         * tests/test-fcntl.c: Likewise.
11131
11132 2007-04-23  Eric Blake  <ebb9@byu.net>
11133
11134         * lib/fflush.c: Fix missing include.
11135         Reported by Bruno Haible.
11136
11137 2007-04-23  Bruno Haible  <bruno@clisp.org>
11138
11139         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
11140         Reported by Eric Blake.
11141
11142 2007-04-23  Bruno Haible  <bruno@clisp.org>
11143
11144         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
11145
11146 2007-04-23  Bruno Haible  <bruno@clisp.org>
11147
11148         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
11149
11150 2007-04-23  Bruno Haible  <bruno@clisp.org>
11151
11152         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
11153         Needed on HP-UX 11.
11154
11155 2007-04-16  Eric Blake  <ebb9@byu.net>
11156
11157         Make fflush rely on fpurge.
11158         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
11159         open coding all variants.
11160         * modules/fflush (Depends-on): Add fpurge and unistd.
11161         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
11162         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
11163
11164         Fix --with-tests compilation on cygwin.
11165         * modules/argmatch-tests (Makefile.am): List gnulib library first
11166         in LDADD.
11167         * modules/argp-tests (Makefile.am): Likewise.
11168         * modules/array-list-tests (Makefile.am): Likewise.
11169         * modules/array-oset-tests (Makefile.am): Likewise.
11170         * modules/avltree-list-tests (Makefile.am): Likewise.
11171         * modules/avltree-oset-tests (Makefile.am): Likewise.
11172         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11173         * modules/carray-list-tests (Makefile.am): Likewise.
11174         * modules/dirname-tests (Makefile.am): Likewise.
11175         * modules/frexp-tests (Makefile.am): Likewise.
11176         * modules/isnanl-tests (Makefile.am): Likewise.
11177         * modules/linked-list-tests (Makefile.am): Likewise.
11178         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11179         * modules/lock-tests (Makefile.am): Likewise.
11180         * modules/rbtree-list-tests (Makefile.am): Likewise.
11181         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11182         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11183         * modules/tls-tests (Makefile.am): Likewise.
11184         * modules/tsearch-tests (Makefile.am): Likewise.
11185         * modules/xvasprintf-tests (Makefile.am): Likewise.
11186
11187         Fix fpurge for cygwin.
11188         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
11189         value.
11190         * modules/fpurge-tests (Depends-on): Clean up trash.
11191
11192 2007-04-16  Simon Josefsson  <simon@josefsson.org>
11193
11194         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
11195
11196         * m4/autobuild.m4: Re-indent.
11197
11198 2007-04-13  Bruno Haible  <bruno@clisp.org>
11199
11200         * modules/fpurge-tests: New file.
11201         * tests/test-fpurge.c: New file.
11202
11203         * modules/fpurge: New file.
11204         * lib/fpurge.h: New file.
11205         * lib/fpurge.c: New file.
11206         * m4/fpurge.m4: New file.
11207
11208 2007-04-13  Bruno Haible  <bruno@clisp.org>
11209
11210         * modules/fbufmode-tests: New file.
11211         * tests/test-fbufmode.c: New file.
11212
11213         * modules/fbufmode: New file.
11214         * lib/fbufmode.h: New file.
11215         * lib/fbufmode.c: New file.
11216         * m4/fbufmode.m4: New file.
11217
11218 2007-04-13  Bruno Haible  <bruno@clisp.org>
11219
11220         * modules/fwritable-tests: New file.
11221         * tests/test-fwritable.c: New file.
11222
11223         * modules/fwritable: New file.
11224         * lib/fwritable.h: New file.
11225         * lib/fwritable.c: New file.
11226         * m4/fwritable.m4: New file.
11227
11228 2007-04-13  Bruno Haible  <bruno@clisp.org>
11229
11230         * modules/freadable-tests: New file.
11231         * tests/test-freadable.c: New file.
11232
11233         * modules/freadable: New file.
11234         * lib/freadable.h: New file.
11235         * lib/freadable.c: New file.
11236         * m4/freadable.m4: New file.
11237
11238 2007-04-13  Bruno Haible  <bruno@clisp.org>
11239
11240         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
11241         MOSTLYCLEANFILES.
11242
11243 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11244
11245         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
11246         gzip bootstrap.conf to avoid dragging in i18n machinery.
11247         (gnulib_tool_option): Use it.
11248
11249 2007-04-13  Bruno Haible  <bruno@clisp.org>
11250
11251         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
11252         %F directives.
11253         * tests/test-vasprintf-posix.c (test_function): Likewise.
11254         * tests/test-snprintf-posix.h (test_function): Likewise.
11255         * tests/test-sprintf-posix.h (test_function): Likewise.
11256         * tests/test-fprintf-posix.h (test_function): Likewise.
11257         * tests/test-printf-posix.h (test_function): Likewise.
11258         * tests/test-fprintf-posix.out: Likewise.
11259
11260 2007-04-13  Bruno Haible  <bruno@clisp.org>
11261
11262         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
11263         * modules/tls-tests (configure.ac): Likewise.
11264         Reported by Arto C. Nirkko <anirkko@insel.ch>.
11265
11266 2007-04-13  Bruno Haible  <bruno@clisp.org>
11267
11268         * lib/tls.c (glthread_tls_get): Fix return type.
11269         Patch by Arto C. Nirkko <anirkko@insel.ch>.
11270
11271 2007-04-12  Eric Blake  <ebb9@byu.net>
11272
11273         * modules/gettime (Depends-on): Remove gettime.
11274         Reported by Dmitry V. Levin.
11275
11276 2007-04-12  Bruno Haible  <bruno@clisp.org>
11277
11278         * modules/fflush (Include): Mention <stdio.h>.
11279         * modules/strtoimax (Include): Mention <inttypes.h>.
11280         * modules/strtoumax (Include): Likewise.
11281
11282 2007-04-12  Eric Blake  <ebb9@byu.net>
11283
11284         * .cvsignore: New file.
11285         * .gitignore: Likewise.
11286
11287 2007-04-12  Bruno Haible  <bruno@clisp.org>
11288
11289         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
11290         not before, since $(LDADD) often contains libgnu.a.
11291         * modules/striconv-tests (test_striconv_LDADD): Likewise.
11292         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
11293         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
11294         Needed on Cygwin.
11295
11296 2007-04-12  Eric Blake  <ebb9@byu.net>
11297
11298         Work around glibc's failure to flush stdin on fclose.
11299         * lib/closein.c (close_stdin): Flush stdin before closing.
11300
11301         Work around glibc's failure to reset seekable stdin on exit.
11302         * modules/closein: New module.
11303         * lib/closein.c: New file.
11304         * lib/closein.h: Likewise.
11305         * m4/closein.m4: Likewise.
11306         * MODULES.html.sh (File stream based Input/Output): Document it.
11307
11308 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11309
11310         * gnulib-tool: Rename generated 'autobuild' script to
11311         'do-autobuild' in --create-megatestdir output.
11312
11313         * doc/gnulib.texi (Build robot for gnulib): Fix.
11314
11315 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11316
11317         * modules/sysexits (Depends-on): Add absolute-header.
11318
11319 2007-04-12  Eric Blake  <ebb9@byu.net>
11320
11321         No need to preserve errno on success.
11322         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
11323         Reported by Bruno Haible.
11324
11325 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11326
11327         * MODULES.html.sh (Support for maintaining and releasing
11328         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
11329
11330 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11331
11332         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
11333
11334 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11335
11336         * modules/autobuild: New module.
11337
11338         * m4/autobuild.m4: New file.
11339
11340 2007-04-11  Bruno Haible  <bruno@clisp.org>
11341
11342         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
11343         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
11344         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
11345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
11346         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11347         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11348         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11349         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11350         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11351         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11352         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
11353         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11354         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
11356         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11357         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11358         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
11359         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11360         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
11362         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11363         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
11365         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11366         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11367         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
11368         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11369         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11370         Reported by Eric Blake.
11371
11372 2007-04-11  Bruno Haible  <bruno@clisp.org>
11373
11374         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
11375
11376 2007-04-10  Bruno Haible  <bruno@clisp.org>
11377
11378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
11379         for NaN and Infinity. Needed on FreeBSD 6.1.
11380         * tests/test-vasnprintf-posix.c (test_function): Undo last change
11381         regarding results for "%010a" of Infinity and NaN.
11382         * tests/test-vasprintf-posix.c (test_function): Likewise.
11383         * tests/test-snprintf-posix.h (test_function): Likewise.
11384         * tests/test-sprintf-posix.h (test_function): Likewise.
11385         * tests/test-fprintf-posix.h (test_function): Likewise.
11386         * tests/test-printf-posix.h (test_function): Likewise.
11387         * tests/test-fprintf-posix.out: Likewise.
11388
11389 2007-04-10  Bruno Haible  <bruno@clisp.org>
11390
11391         * modules/locale-tests: New file.
11392         * tests/test-locale.c: New file.
11393
11394         * modules/locale: New file.
11395         * lib/locale_.h: New file.
11396         * m4/locale_h.m4: New file.
11397
11398 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11399             Bruno Haible  <bruno@clisp.org>
11400
11401         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
11402         be determined, test for availability of the copysignf, copysign,
11403         copysignl functions.
11404         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
11405         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
11406         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
11407
11408 2007-04-09  Eric Blake  <ebb9@byu.net>
11409
11410         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
11411         * modules/stdio (Makefile.am): Support fflush.
11412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11413         * modules/fflush: New file.
11414         * lib/fflush.c: Likewise.
11415         * m4/fflush.m4: Likewise.
11416         * modules/fflush-tests: New test.
11417         * tests/test-fflush.c: Likewise.
11418         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
11419
11420 2007-04-06  Bruno Haible  <bruno@clisp.org>
11421
11422         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
11423         (VASNPRINTF): Use signbit for faster determination whether to print a
11424         minus sign.
11425         * modules/vasnprintf (Files): Remove lib/float+.h.
11426         * modules/fprintf-posix (Depends-on): Add signbit.
11427         * modules/snprintf-posix (Depends-on): Likewise.
11428         * modules/sprintf-posix (Depends-on): Likewise.
11429         * modules/vasnprintf-posix (Depends-on): Likewise.
11430         * modules/vasprintf-posix (Depends-on): Likewise.
11431         * modules/vfprintf-posix (Depends-on): Likewise.
11432         * modules/vsnprintf-posix (Depends-on): Likewise.
11433         * modules/vsprintf-posix (Depends-on): Likewise.
11434
11435 2007-04-06  Bruno Haible  <bruno@clisp.org>
11436
11437         * tests/test-frexp.c (main): Test also the sign bit of zero results.
11438         * tests/test-frexpl.c (main): Likewise.
11439         * tests/test-ldexpl.c (main): Likewise.
11440         * modules/frexp-tests (Depends-on): Add signbit.
11441         * modules/frexpl-tests (Depdends-on): Likewise.
11442         * modules/ldexpl-tests (Depdends-on): Likewise.
11443
11444 2007-04-06  Bruno Haible  <bruno@clisp.org>
11445
11446         * modules/signbit-tests: New file.
11447         * tests/test-signbit.c: New file.
11448
11449         * modules/signbit: New file.
11450         * lib/signbitf.c: New file.
11451         * lib/signbitd.c: New file.
11452         * lib/signbitl.c: New file.
11453         * m4/signbit.m4: New file.
11454         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
11455         (signbit): New macro.
11456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
11457         REPLACE_SIGNBIT.
11458         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
11459         REPLACE_FREXPL into math.h.
11460
11461 2007-04-06  Bruno Haible  <bruno@clisp.org>
11462
11463         * modules/isnanf-nolibm-tests: New file.
11464         * tests/test-isnanf.c: New file.
11465
11466         * modules/isnanf-nolibm: New file.
11467         * lib/isnanf.h: New file.
11468         * lib/isnanf.c: New file.
11469         * lib/isnan.c: Consider the USE_FLOAT macro.
11470         * m4/isnanf.m4: New file.
11471
11472 2007-04-06  Bruno Haible  <bruno@clisp.org>
11473
11474         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
11475         (Link): New section.
11476
11477         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
11478
11479 2007-04-06  Bruno Haible  <bruno@clisp.org>
11480
11481         Assume the 'long double' type.
11482         * m4/longdouble.m4: Remove file.
11483         * config/srclist.txt: Don't mention longdouble.m4.
11484         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
11485         * lib/float+.h: Likewise.
11486         * lib/frexp.c: Likewise.
11487         * lib/printf-args.h: Likewise.
11488         * lib/printf-args.c: Likewise.
11489         * lib/printf-frexp.c: Likewise.
11490         * lib/printf-parse.c: Likewise.
11491         * lib/vasnprintf.c: Likewise.
11492         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
11493         * m4/intl.m4: Likewise.
11494         * m4/isnanl.m4: Likewise.
11495         * m4/printf.m4: Likewise.
11496         * m4/printf-frexpl.m4: Likewise.
11497         * m4/vasnprintf.m4: Likewise.
11498         * modules/allocsa (Files): Remove m4/longdouble.m4.
11499         * modules/gettext (Files): Likewise.
11500         * modules/relocatable-prog-wrapper (Files): Likewise.
11501         * modules/vasnprintf (Files): Likewise.
11502         * modules/isnanl (Files): Likewise.
11503         (Include): Simplify.
11504         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
11505         (Include): Simplify.
11506         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
11507         (Include): Simplify.
11508         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
11509         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11510         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
11511         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11512         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11513         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11514         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
11515         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11516         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11517         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11518         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
11519         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11520         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
11521         * tests/test-isnanl.c: Likewise.
11522         * tests/test-snprintf-posix.h: Likewise.
11523         * tests/test-sprintf-posix.h: Likewise.
11524         * tests/test-vasnprintf-posix.c: Likewise.
11525         * tests/test-vasnprintf-posix2.c: Likewise.
11526         * tests/test-vasprintf-posix.c: Likewise.
11527
11528 2007-04-06  Bruno Haible  <bruno@clisp.org>
11529
11530         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
11531         * lib/math_.h [__DECC]: Include the overridden include file through
11532         #include_next, outside the double-inclusion guard.
11533         * lib/stdio_.h [__DECC]: Likewise.
11534         * lib/stdlib_.h [__DECC]: Likewise.
11535         * lib/string_.h [__DECC]: Likewise.
11536         * lib/time_.h [__DECC]: Likewise.
11537         * lib/wchar_.h [__DECC]: Likewise.
11538         * lib/wctype_.h [__DECC]: Likewise.
11539         * lib/inttypes_.h [__DECC]: Likewise.
11540         Reported by Albert Chin <china@thewrittenword.com> in
11541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
11542
11543 2007-04-04  Eric Blake  <ebb9@byu.net>
11544
11545         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
11546         1.5.x.
11547
11548 2007-04-04  Bruno Haible  <bruno@clisp.org>
11549
11550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
11551         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
11552
11553 2007-04-04  Bruno Haible  <bruno@clisp.org>
11554
11555         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
11556         results for "%010a" of Infinity and NaN.
11557         * tests/test-vasprintf-posix.c (test_function): Likewise.
11558         * tests/test-snprintf-posix.h (test_function): Likewise.
11559         * tests/test-sprintf-posix.h (test_function): Likewise.
11560         * tests/test-fprintf-posix.h (test_function): Remove these tests.
11561         * tests/test-printf-posix.h (test_function): Likewise.
11562         * tests/test-fprintf-posix.out: Update.
11563         Needed for FreeBSD 6.1.
11564
11565 2007-04-04  Bruno Haible  <bruno@clisp.org>
11566
11567         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
11568         directly used by the gnulib modules nor by gnulib-tool.
11569
11570 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11571
11572         * DEPENDENCIES: Give overall description of version dependency
11573         desirability.  Use more-typical names for apps.
11574         Add shell, coreutils, diffutils, grep, tar, gzip.
11575
11576 2007-04-04  Simon Josefsson  <simon@josefsson.org>
11577
11578         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
11579
11580 2007-04-04  Karl Berry  <karl@gnu.org>
11581
11582         * MODULES.html.sh (func_module): missing '.
11583
11584 2007-04-03  Bruno Haible  <bruno@clisp.org>
11585
11586         * modules/argmatch-tests (Makefile.am): New variable
11587         test_argmatch_LDADD.
11588         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
11589         * modules/array-list-tests (Makefile.am): New variable
11590         test_array_list_LDADD.
11591         * modules/array-oset-tests (Makefile.am): New variable
11592         test_array_oset_LDADD.
11593         * modules/avltree-list-tests (Makefile.am): New variable
11594         test_avltree_list_LDADD.
11595         * modules/avltree-oset-tests (Makefile.am): New variable
11596         test_avltree_oset_LDADD.
11597         * modules/avltreehash-list-tests (Makefile.am): New variable
11598         test_avltreehash_list_LDADD.
11599         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
11600         test_canonicalize_lgpl_LDADD.
11601         * modules/carray-list-tests (Makefile.am): New variable
11602         test_carray_list_LDADD.
11603         * modules/dirname-tests (Makefile.am): New variable
11604         test_dirname_LDADD.
11605         * modules/linked-list-tests (Makefile.am): New variable
11606         test_linked_list_LDADD.
11607         * modules/linkedhash-list-tests (Makefile.am): New variable
11608         test_linkedhash_list_LDADD.
11609         * modules/rbtree-list-tests (Makefile.am): New variable
11610         test_rbtree_list_LDADD.
11611         * modules/rbtree-oset-tests (Makefile.am): New variable
11612         test_rbtree_oset_LDADD.
11613         * modules/rbtreehash-list-tests (Makefile.am): New variable
11614         test_rbtreehash_list_LDADD.
11615         * modules/xvasprintf-tests (Makefile.am): New variable
11616         test_xvasprintf_LDADD.
11617         Reported by Eric Blake.
11618
11619 2007-04-03  Eric Blake  <ebb9@byu.net>
11620
11621         * DEPENDENCIES: Weaken m4 requirements.
11622
11623 2007-04-03  Bruno Haible  <bruno@clisp.org>
11624
11625         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
11626         * modules/isnanl-tests (configure.ac): Likewise.
11627
11628 2007-04-03  Ben Pfaff  <blp@gnu.org>
11629
11630         * modules/iconv_open: Add $(srcdir)/ to source directory
11631         references in Makefile fragments that call gperf, to fix VPATH
11632         builds.
11633
11634 2007-04-03  Bruno Haible  <bruno@clisp.org>
11635
11636         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
11637         * lib/ldexpl.c: Undo last change.
11638
11639 2007-04-03  Bruno Haible  <bruno@clisp.org>
11640
11641         * modules/printf-frexpl (Depends-on): Undo last change.
11642         (Files): Add m4/ldexpl.m4.
11643
11644 2007-04-03  Bruno Haible  <bruno@clisp.org>
11645
11646         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
11647         * modules/isnanl (Link): New section.
11648
11649         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
11650         * modules/frexp (Link): New section.
11651
11652         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
11653         * modules/frexpl (Link): New section.
11654
11655         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
11656         * modules/ldexpl (Link): New section.
11657
11658 2007-04-03  Bruno Haible  <bruno@clisp.org>
11659
11660         * modules/TEMPLATE-EXTENDED: New file.
11661         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
11662
11663 2007-04-03  Bruno Haible  <bruno@clisp.org>
11664
11665         * DEPENDENCIES: New file.
11666         Suggested by Simon Josefsson.
11667
11668 2007-04-03  Bruno Haible  <bruno@clisp.org>
11669
11670         * doc/gnulib.texi: Escape @.
11671
11672 2007-04-03  James Youngman  <jay@gnu.org>
11673         and Paul Eggert  <eggert@cs.ucla.edu>
11674
11675         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
11676         birthtime on all systems that have birthtime, not just those which
11677         use st_birthtimensec rather than st_birthtim.  Putting zero in
11678         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
11679         that the birth time is not available for files on an NFS mount.
11680
11681 2007-04-03  Simon Josefsson  <simon@josefsson.org>
11682
11683         * modules/memxor: Move back from crypto/, suggested by Bruno.
11684         * modules/crypto/hmac-sha1: Fix memxor dependency.
11685
11686         * modules/crypto/gc: Moved from ../.
11687
11688 2007-04-02  Eric Blake  <ebb9@byu.net>
11689
11690         * lib/ldexpl.c (includes): Avoid libm.
11691
11692         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
11693
11694 2007-04-02  Bruno Haible  <bruno@clisp.org>
11695
11696         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
11697         on IRIX.
11698
11699 2007-04-02  Bruno Haible  <bruno@clisp.org>
11700
11701         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
11702         x86 or x86_64 platforms running MacOS X.
11703         Reported by Ryan Schmidt <@ryandesign.com>.
11704
11705 2007-04-02  Bruno Haible  <bruno@clisp.org>
11706
11707         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
11708         i386.
11709
11710 2007-04-01  Simon Josefsson  <simon@josefsson.org>
11711
11712         * modules/crypto/arcfour: Moved from ../.
11713         * modules/crypto/arcfour-tests: Moved from ../.
11714         * modules/crypto/arctwo: Moved from ../.
11715         * modules/crypto/arctwo-tests: Moved from ../.
11716         * modules/crypto/des: Moved from ../.
11717         * modules/crypto/des-tests: Moved from ../.
11718         * modules/crypto/gc-arcfour: Moved from ../.
11719         * modules/crypto/gc-arcfour-tests: Moved from ../.
11720         * modules/crypto/gc-arctwo: Moved from ../.
11721         * modules/crypto/gc-arctwo-tests: Moved from ../.
11722         * modules/crypto/gc-des: Moved from ../.
11723         * modules/crypto/gc-des-tests: Moved from ../.
11724         * modules/crypto/gc-hmac-md5: Moved from ../.
11725         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
11726         * modules/crypto/gc-hmac-sha1: Moved from ../.
11727         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
11728         * modules/crypto/gc-md2: Moved from ../.
11729         * modules/crypto/gc-md2-tests: Moved from ../.
11730         * modules/crypto/gc-md4: Moved from ../.
11731         * modules/crypto/gc-md4-tests: Moved from ../.
11732         * modules/crypto/gc-md5: Moved from ../.
11733         * modules/crypto/gc-md5-tests: Moved from ../.
11734         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
11735         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
11736         * modules/crypto/gc-random: Moved from ../.
11737         * modules/crypto/gc-rijndael: Moved from ../.
11738         * modules/crypto/gc-rijndael-tests: Moved from ../.
11739         * modules/crypto/gc-sha1: Moved from ../.
11740         * modules/crypto/gc-sha1-tests: Moved from ../.
11741         * modules/crypto/gc-tests: Moved from ../.
11742         * modules/crypto/hmac-md5: Moved from ../.
11743         * modules/crypto/hmac-md5-tests: Moved from ../.
11744         * modules/crypto/hmac-sha1: Moved from ../.
11745         * modules/crypto/hmac-sha1-tests: Moved from ../.
11746         * modules/crypto/md2: Moved from ../.
11747         * modules/crypto/md2-tests: Moved from ../.
11748         * modules/crypto/md4: Moved from ../.
11749         * modules/crypto/md4-tests: Moved from ../.
11750         * modules/crypto/md5: Moved from ../.
11751         * modules/crypto/md5-tests: Moved from ../.
11752         * modules/crypto/memxor: Moved from ../.
11753         * modules/crypto/rijndael: Moved from ../.
11754         * modules/crypto/rijndael-tests: Moved from ../.
11755         * modules/crypto/sha1: Moved from ../.
11756
11757 2007-03-30  James Youngman  <jay@gnu.org>
11758
11759         * tests/test-stat-time.c (prepare_test): use chmod() rather than
11760         rename() to change the ctime of a file (because ctime is unaffected
11761         by rename on jfs2 on AIX 5.1).
11762         (main): Start by doing cleanup, in case a previous run failed leaving
11763         test files behind.
11764
11765 2007-03-31  Bruno Haible  <bruno@clisp.org>
11766
11767         Support old proprietary implementations of iconv.
11768         * modules/iconv_open: New file.
11769         * lib/iconv_.h: New file.
11770         * m4/iconv_h.m4: New file.
11771         * lib/iconv_open.c: New file.
11772         * lib/iconv_open-aix.gperf: New file.
11773         * lib/iconv_open-hpux.gperf: New file.
11774         * lib/iconv_open-irix.gperf: New file.
11775         * lib/iconv_open-osf.gperf: New file.
11776         * m4/iconv_open.m4: New file.
11777         * modules/linebreak (Depends-on): Add iconv_open.
11778         * modules/striconv (Depends-on): Likewise.
11779         * modules/striconveh (Depends-on): Likewise.
11780         * modules/unicodeio (Depends-on): Likewise.
11781         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
11782         (iconv_t)(-1).
11783         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
11784         conversion if cd is (iconv_t)(-1).
11785         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
11786         is not possible.
11787
11788 2007-03-31  Bruno Haible  <bruno@clisp.org>
11789
11790         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
11791         work on Solaris either. Protect also second use of "autodetect_jp".
11792
11793 2007-03-31  Bruno Haible  <bruno@clisp.org>
11794
11795         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
11796         the function is not present.
11797
11798 2007-03-31  Bruno Haible  <bruno@clisp.org>
11799
11800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
11801         the function is not present.
11802
11803 2007-03-31  Bruno Haible  <bruno@clisp.org>
11804
11805         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
11806         a bug in HP-UX iconv_open().
11807
11808 2007-03-31  Bruno Haible  <bruno@clisp.org>
11809
11810         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
11811         (Mathematics <math.h>): New section, add fpieee.
11812         (Input/output <stdio.h>): Add fseterr.
11813         (Mathematics <math.h>): New section, add printf-frexp.
11814         (Container data structures): Add sublist.
11815         (Core language properties): Add fpucw, inline.
11816         (Functions for greatest-width integer types <inttypes.h>): Add
11817         imaxabs, imaxdiv, inttypes.
11818         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
11819         isnanl-nolibm, ldexp.
11820         (Mathematics <math.h>): New section, add printf-frexpl.
11821         (Support for systems lacking POSIX:2001): Add fprintf-posix,
11822         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
11823         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
11824         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
11825         (Unicode string functions): Add unistr/u*-mbtoucr.
11826         (Java): Add javacomp-script, javaexec-script.
11827         (C#): Add csharpcomp-script, csharpexec-script.
11828         (Support for building libraries and executables): Add havelib,
11829         relocatable-*.
11830         (Support for maintaining and releasing projects): Renamed from
11831         'Support for maintaining and release projects'. Add announce-gen.
11832
11833 2007-03-31  Bruno Haible  <bruno@clisp.org>
11834
11835         * README: Talk primarily about git.
11836         (git and CVS): Renamed from CVS.
11837         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
11838         gnulib is available through git.
11839         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
11840
11841 2007-03-30  Bruno Haible  <bruno@clisp.org>
11842
11843         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
11844         * lib/poll_.h: Likewise.
11845         * lib/stat_.h: Likewise.
11846         * lib/sys_time_.h: Likewise.
11847         * lib/sysexit_.h: Likewise.
11848         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
11849         * lib/stdbool_.h: Likewise.
11850         * lib/byteswap_.h: Add double-inclusion guard.
11851
11852 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
11853
11854         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
11855
11856 2007-03-30  Karl Berry  <karl@gnu.org>
11857
11858         * config/srclist-update: double space after USA in the license
11859         substitution, since that's how it's usually (?) written.
11860
11861 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11862
11863         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
11864         reported by Bruno Haible.
11865
11866 2007-03-29  Bruno Haible  <bruno@clisp.org>
11867
11868         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
11869         a bug in AIX iconv().
11870
11871 2007-03-29  Bruno Haible  <bruno@clisp.org>
11872
11873         * modules/ldexpl-tests: New file.
11874         * tests/test-ldexpl.c: New file.
11875
11876 2007-03-29  Bruno Haible  <bruno@clisp.org>
11877
11878         * lib/ldexpl.c: Include fpucw.h.
11879         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
11880         multiplication.
11881         * modules/ldexpl (Depends-on): Add fpucw.
11882
11883 2007-03-29  Bruno Haible  <bruno@clisp.org>
11884
11885         * modules/ldexpl: New file.
11886         * m4/ldexpl.m4: New file.
11887         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
11888         set.
11889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
11890         REPLACE_LDEXPL.
11891         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
11892         REPLACE_LDEXPL.
11893         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
11894         gl_FUNC_LDEXPL_WORKS.
11895         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
11896         * modules/mathl (Files): Remove lib/ldexpl.c.
11897         (Depends-on): Add ldexpl.
11898
11899 2007-03-29  Bruno Haible  <bruno@clisp.org>
11900
11901         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
11902
11903 2007-03-29  Bruno Haible  <bruno@clisp.org>
11904
11905         * tests/test-striconveh.c (main): Don't assume that a direct conversion
11906         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
11907         and possibly also HP-UX.
11908         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
11909         work on AIX, IRIX, HP-UX, OSF/1.
11910         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11911         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11912         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11913         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11914         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11915         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11916
11917 2007-03-29  Bruno Haible  <bruno@clisp.org>
11918
11919         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
11920
11921 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
11922
11923         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
11924         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
11925
11926 2007-03-29  Eric Blake  <ebb9@byu.net>
11927
11928         * lib/acl-internal.h: Remove redundant include.
11929         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
11930         Cygwin when a file is locked.
11931
11932 2007-03-29  Bruno Haible  <bruno@clisp.org>
11933
11934         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
11935         file.
11936         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
11937
11938 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
11939
11940         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
11941         try to remove a parent directory if the child couldn't be removed
11942         (except for the first rmdir, which could fail because the child
11943         doesn't exist).  Problem reported by Jeff Blaine in
11944         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
11945
11946 2007-03-28  Bruno Haible  <bruno@clisp.org>
11947
11948         * lib/striconveh.c (utf8conv_carefully): New function.
11949         (mem_cd_iconveh_internal): Invoke it.
11950
11951 2007-03-28  Bruno Haible  <bruno@clisp.org>
11952
11953         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
11954         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
11955         input.
11956         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
11957         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
11958         unistr/u8-uctomb.
11959
11960 2007-03-28  Bruno Haible  <bruno@clisp.org>
11961
11962         * modules/unistr/u8-mbtoucr: New file.
11963         * lib/unistr/u8-mbtoucr.c: New file.
11964         * modules/unistr/u16-mbtoucr: New file.
11965         * lib/unistr/u16-mbtoucr.c: New file.
11966         * modules/unistr/u16-mbtoucr: New file.
11967         * lib/unistr/u16-mbtoucr.c: New file.
11968         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
11969
11970 2007-03-27  Simon Josefsson  <simon@josefsson.org>
11971             Bruno Haible  <bruno@clisp.org>
11972
11973         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
11974         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
11975         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
11976
11977         * m4/stdio_h.m4: Add stubs for vasprintf too.
11978
11979         * modules/stdio: Support vasprintf in sed command.
11980
11981         * modules/vasprintf: Depend on stdio for prototypes.  Remove
11982         vasprintf.h.  Add stdio module indicator.
11983
11984         * lib/stdio_.h: Declare asprintf and vasprintf, based on
11985         vasprintf.h.
11986
11987         * lib/vasprintf.h: File removed.
11988
11989         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
11990         * lib/vasprintf.c: Ditto.
11991         * lib/xvasprintf.c: Ditto.
11992         * tests/test-vasprintf-posix.c: Ditto.
11993         * tests/test-vasprintf.c: Ditto.
11994
11995 2007-03-27  Bruno Haible  <bruno@clisp.org>
11996
11997         Make vasnprintf multithread-safe.
11998         * lib/vasnprintf.c (decimal_point_char): New function.
11999         (VASNPRINTF): Use it.
12000         Suggested by Simon Josefsson.
12001
12002 2007-03-27  Eric Blake  <ebb9@byu.net>
12003
12004         Support sub-second birthtime on cygwin.
12005         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
12006         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
12007         (get_stat_birthtime): Also work with st_birthtim.
12008
12009 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
12010
12011         * lib/stat-time.h (USE_BIRTHTIME): Remove.
12012         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
12013         (get_stat_birthtime_ns): Do not try to use "spare" fields.
12014         (get_stat_birthtime_ns): Simplify compile-time tests.
12015         (get_stat_birthtime): Change the API to look like
12016         get_stat_mtime etc., except return a negative tv_nsec on error.
12017         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
12018         Don't check for "spare" fields.
12019         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
12020         or for struct stat.st_birthtime, as these tests aren't used.
12021         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
12022
12023 2007-03-27  Bruno Haible  <bruno@clisp.org>
12024
12025         * lib/stat-time.h: Include <sys/stat.h>.
12026
12027 2007-03-27  James Youngman  <jay@gnu.org>
12028
12029         * lib/stat-time.h (get_stat_birthtime): New function for
12030           retrieving st_birthtime as provided by UFS2 (hence *BSD).
12031         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
12032           and its variants.
12033         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
12034         * modules/stat-time-test: New file.
12035         * tests/test-stat-time.c: New test, devised by Bruno Haible.
12036
12037 2007-03-26  Bruno Haible  <bruno@clisp.org>
12038
12039         Better support of signalling NaNs.
12040         * lib/atanl.c: Include isnanl.h.
12041         (atanl): Perform test for NaN at the beginning of the function and
12042         through a call to isnanl.
12043         * lib/cosl.c: Include isnanl.h.
12044         (cosl): Perform test for NaN at the beginning of the function and
12045         through a call to isnanl.
12046         * lib/ldexpl.c: Include isnanl.h.
12047         (ldexpl): Perform test for NaN through a call to isnanl.
12048         * lib/logl.c: Include isnanl.h.
12049         (logl): Perform test for NaN at the beginning of the function and
12050         through a call to isnanl.
12051         * lib/sinl.c: Include isnanl.h.
12052         (sinl): Perform test for NaN at the beginning of the function and
12053         through a call to isnanl.
12054         * lib/sqrtl.c: Include isnanl.h.
12055         (sqrtl): Perform test for NaN at the beginning of the function and
12056         through a call to isnanl.
12057         * lib/tanl.c: Include isnanl.h.
12058         (tanl): Perform test for NaN at the beginning of the function and
12059         through a call to isnanl.
12060         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
12061         * modules/mathl (Depends-on): Add isnanl.
12062
12063 2007-03-26  Eric Blake  <ebb9@byu.net>
12064
12065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
12066         regression in logic sense of previous patch.
12067
12068 2007-03-26  Bruno Haible  <bruno@clisp.org>
12069
12070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
12071         unportable shell command "if ! ...".
12072         Reported by Ralf Wildenhues.
12073
12074 2007-03-25  Bruno Haible  <bruno@clisp.org>
12075
12076         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
12077         <sysexits.h> file, and only add EX_CONFIG.
12078         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
12079         absolute file name and whether it is sufficient. Substitute also
12080         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
12081         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
12082         ABSOLUTE_SYSEXITS_H into sysexits.h.
12083
12084 2007-03-25  Bruno Haible  <bruno@clisp.org>
12085
12086         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
12087         hints is NULL.
12088
12089 2007-03-25  Bruno Haible  <bruno@clisp.org>
12090
12091         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
12092         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
12093
12094 2007-03-25  Bruno Haible  <bruno@clisp.org>
12095
12096         * lib/vasnprintf.c: Include langinfo.h.
12097         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
12098         multithread-safe.
12099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
12100         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
12101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
12107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12108         Reported by Simon Josefsson.
12109
12110 2007-03-25  Bruno Haible  <bruno@clisp.org>
12111
12112         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
12113         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
12114         * modules/vasnprintf (Depends-on): Add stdint.
12115
12116 2007-03-25  Bruno Haible  <bruno@clisp.org>
12117
12118         * modules/fpieee: New file.
12119         * m4/fpieee.m4: New file.
12120         * modules/isnan-nolibm (Depends-on): Add fpieee.
12121         * modules/isnanl-nolibm (Depends-on): Add fpieee.
12122         * modules/isnanl (Depends-on): Add fpieee.
12123
12124 2007-03-25  Bruno Haible  <bruno@clisp.org>
12125
12126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
12127
12128 2007-03-25  Bruno Haible  <bruno@clisp.org>
12129
12130         Avoid test failures on IRIX 6.5.
12131         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
12132         (main): Use it.
12133         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
12134         macros.
12135         (main): Use them.
12136
12137 2007-03-25  Bruno Haible  <bruno@clisp.org>
12138
12139         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
12140         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
12141         exists but doesn't work.
12142         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
12143         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
12144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
12145         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
12146
12147 2007-03-25  Bruno Haible  <bruno@clisp.org>
12148
12149         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
12150         returns inf. Needed on IRIX 6.5.
12151
12152 2007-03-25  Bruno Haible  <bruno@clisp.org>
12153
12154         * tests/test-frexpl.c: Include isnanl-nolibm.h.
12155         (main): Use isnanl instead of x != x idiom.
12156         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
12157
12158         * tests/test-frexp.c: Include isnan.h.
12159         (main): Use isnan instead of x != x idiom.
12160         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
12161
12162 2007-03-25  Bruno Haible  <bruno@clisp.org>
12163
12164         * tests/test-frexp.c (NaN): New function/macro.
12165         (main): Use it instead of 0.0 / 0.0.
12166         * tests/test-isnan.c (NaN): New function/macro.
12167         (main): Use it instead of 0.0 / 0.0.
12168         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
12169         (test_function): Use it instead of 0.0 / 0.0.
12170         * tests/test-vasprintf-posix.c (NaN): New function/macro.
12171         (test_function): Use it instead of 0.0 / 0.0.
12172         * tests/test-snprintf-posix.h (NaN): New function/macro.
12173         (test_function): Use it instead of 0.0 / 0.0.
12174         * tests/test-sprintf-posix.h (NaN): New function/macro.
12175         (test_function): Use it instead of 0.0 / 0.0.
12176         * tests/test-fprintf-posix.h (NaN): New function/macro.
12177         (test_function): Use it instead of 0.0 / 0.0.
12178         * tests/test-printf-posix.h (NaN): New function/macro.
12179         (test_function): Use it instead of 0.0 / 0.0.
12180
12181         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
12182
12183 2007-03-25  Bruno Haible  <bruno@clisp.org>
12184
12185         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
12186
12187 2007-03-25  Bruno Haible  <bruno@clisp.org>
12188
12189         * lib/regexec.c (merge_state_with_log): Make static.
12190
12191 2007-03-25  Bruno Haible  <bruno@clisp.org>
12192
12193         * lib/trigl.c (kernel_rem_pio2): Make static.
12194
12195 2007-03-25  Bruno Haible  <bruno@clisp.org>
12196
12197         * lib/sincosl.c (sincosl_table): Make static.
12198
12199 2007-03-25  Bruno Haible  <bruno@clisp.org>
12200
12201         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
12202         if the compiler does not support C99.
12203
12204 2007-03-25  Bruno Haible  <bruno@clisp.org>
12205
12206         * modules/time (Makefile.am): Ensure all rule action lines start with a
12207         tab.
12208
12209 2007-03-24  Bruno Haible  <bruno@clisp.org>
12210
12211         * modules/tsearch-tests: New file.
12212         * tests/test-tsearch.sh: New file.
12213         * tests/test-tsearch.c: New file, mostly copied from glibc.
12214
12215         * modules/search-tests: New file.
12216         * tests/test-search.c: New file.
12217
12218         * modules/search: New file.
12219         * lib/search_.h: New file, incorporating lib/tsearch.h.
12220         * m4/search_h.m4: New file.
12221         * lib/tsearch.h: Remove file.
12222         * lib/tsearch.c: Include search.h instead of tsearch.h.
12223         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
12224         HAVE_TSEARCH.
12225         * modules/tsearch (Files): Remove lib/tsearch.h.
12226         (Depends-on): Add search.
12227         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
12228         (Include): Change tsearch.h into search.h.
12229
12230 2007-03-24  Bruno Haible  <bruno@clisp.org>
12231
12232         * modules/fpucw: New file.
12233         * lib/fpucw.h: New file.
12234         * lib/frexp.c: Include fpucw.h.
12235         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12236         (FUNC): Use them.
12237         * lib/printf-frexp.c: Include fpucw.h.
12238         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12239         (FUNC): Use them.
12240         * lib/vasnprintf.c: Include fpucw.h.
12241         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
12242         'long double' calculations.
12243         * tests/test-frexpl.c: Include fpucw.h.
12244         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12245         * tests/test-printf-frexpl.c: Include fpucw.h.
12246         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12247         * modules/frexpl (Depends-on): Add fpucw.
12248         * modules/printf-frexpl (Depends-on): Likewise.
12249         * modules/fprintf-posix (Depends-on): Likewise.
12250         * modules/snprintf-posix (Depends-on): Likewise.
12251         * modules/sprintf-posix (Depends-on): Likewise.
12252         * modules/vasnprintf-posix (Depends-on): Likewise.
12253         * modules/vasprintf-posix (Depends-on): Likewise.
12254         * modules/vfprintf-posix (Depends-on): Likewise.
12255         * modules/vsnprintf-posix (Depends-on): Likewise.
12256         * modules/vsprintf-posix (Depends-on): Likewise.
12257         * modules/frexpl-tests (Depends-on): Likewise.
12258         * modules/printf-frexpl-tests (Depends-on): Likewise.
12259
12260 2007-03-24  Bruno Haible  <bruno@clisp.org>
12261
12262         * lib/float+.h: New file.
12263         * lib/isnan.c: Include float+.h.
12264         (SIZE): New macro.
12265         (FUNC): Compare only SIZE bytes of the value.
12266         * lib/vasnprintf.c: Include float+.h.
12267         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
12268         SIZEOF_LDBL or SIZEOF_DBL bytes.
12269         * modules/isnan-nolibm (Files): Add lib/float+.h.
12270         * modules/isnanl-nolibm (Files): Add lib/float+.h.
12271         * modules/isnanl (Files): Add lib/float+.h.
12272         * modules/vasnprintf (Files): Add lib/float+.h.
12273
12274 2007-03-24  Bruno Haible  <bruno@clisp.org>
12275
12276         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
12277         include isnanl-nolibm.h.
12278
12279 2007-03-24  Bruno Haible  <bruno@clisp.org>
12280
12281         * tests/test-read-file.c (main): Don't produce spurious output for
12282         expected situations. Make the test fail if it encountered unexpected
12283         results.
12284
12285 2007-03-24  Bruno Haible  <bruno@clisp.org>
12286
12287         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
12288         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
12289
12290 2007-03-24  Bruno Haible  <bruno@clisp.org>
12291
12292         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
12293
12294 2007-03-24  Bruno Haible  <bruno@clisp.org>
12295
12296         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
12297         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
12298
12299         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
12300         * modules/utf8-ucs4: Turn into a symbolic link to module
12301         unistr/u8-mbtouc.
12302
12303         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
12304         utf8-ucs4-unsafe.
12305         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
12306         unistr/u8-mbtouc-unsafe.
12307
12308         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
12309         * modules/utf16-ucs4: Turn into a symbolic link to module
12310         unistr/u16-mbtouc.
12311
12312         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
12313         utf16-ucs4-unsafe.
12314         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
12315         unistr/u16-mbtouc-unsafe.
12316
12317         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
12318         * modules/ucs4-utf8: Turn into a symbolic link to module
12319         unistr/u8-ubtomb.
12320
12321         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
12322         * modules/ucs4-utf16: Turn into a symbolic link to module
12323         unistr/u16-ubtomb.
12324
12325 2007-03-24  Bruno Haible  <bruno@clisp.org>
12326
12327         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
12328         Enable the function only if HAVE_INLINE.
12329         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
12330         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12331         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
12332         Enable the function only if HAVE_INLINE.
12333         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
12334         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12335         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
12336         Enable the function only if HAVE_INLINE.
12337         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
12338         Enable the function only if HAVE_INLINE.
12339         * modules/utf8-ucs4: Update.
12340         * modules/utf8-ucs4-unsafe: Update.
12341         * modules/utf16-ucs4: Update.
12342         * modules/utf16-ucs4-unsafe: Update.
12343         * modules/ucs4-utf8: Update.
12344         * modules/ucs4-utf16: Update.
12345
12346 2007-03-24  Bruno Haible  <bruno@clisp.org>
12347
12348         * lib/utf8-ucs4.h: Remove file.
12349         * lib/utf8-ucs4-unsafe.h: Remove file.
12350         * lib/utf16-ucs4.h: Remove file.
12351         * lib/utf16-ucs4-unsafe.h: Remove file.
12352         * lib/ucs4-utf8.h: Remove file.
12353         * lib/ucs4-utf16.h: Remove file.
12354         * lib/unistr.h: Include their previous contents.
12355         * m4/utf-ucs4.m4: Remove file.
12356         * m4/ucs4-utf.m4: Remove file.
12357         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
12358         (Depends-on): Add unistr/base.
12359         (configure.ac): Remove gl_UTF_UCS4.
12360         (Makefile.am): Update.
12361         (Include): Change to unistr.h.
12362         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
12363         (Depends-on): Add unistr/base.
12364         (configure.ac): Remove gl_UTF_UCS4.
12365         (Makefile.am): Update.
12366         (Include): Change to unistr.h.
12367         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
12368         (Depends-on): Add unistr/base.
12369         (configure.ac): Remove gl_UTF_UCS4.
12370         (Makefile.am): Update.
12371         (Include): Change to unistr.h.
12372         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
12373         (Depends-on): Add unistr/base.
12374         (configure.ac): Remove gl_UTF_UCS4.
12375         (Makefile.am): Update.
12376         (Include): Change to unistr.h.
12377         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
12378         (Depends-on): Add unistr/base.
12379         (configure.ac): Remove gl_UCS4_UTF.
12380         (Makefile.am): Update.
12381         (Include): Change to unistr.h.
12382         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
12383         (Depends-on): Add unistr/base.
12384         (configure.ac): Remove gl_UCS4_UTF.
12385         (Makefile.am): Update.
12386         (Include): Change to unistr.h.
12387         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
12388         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
12389         utf8-ucs4-unsafe.h.
12390         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
12391         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
12392         utf16-ucs4-unsafe.h.
12393         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
12394         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
12395         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
12396         * lib/unistr/u8-strchr.c: Likewise.
12397         * lib/unistr/u8-strrchr.c: Likewise.
12398         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
12399         * lib/unistr/u16-strchr.c: Likewise.
12400         * lib/unistr/u16-strrchr.c: Likewise.
12401         * lib/striconveh.c: Update.
12402         * lib/linebreak.c: Update.
12403
12404 2007-03-24  Bruno Haible  <bruno@clisp.org>
12405
12406         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
12407         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
12408
12409 2007-03-22  Bruno Haible  <bruno@clisp.org>
12410
12411         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
12412
12413 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
12414
12415         * MODULES.html.sh (File system functions): New module write-any-file.
12416         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
12417         * m4/write-any-file.m4: New files.
12418
12419 2007-03-23  Eric Blake  <ebb9@byu.net>
12420
12421         * gnulib-tool: Rearrange space-tab sequences, since some editors
12422         like to eat them.
12423
12424 2007-03-23  Eric Blake  <ebb9@byu.net>
12425
12426         * lib/version-etc.c (version_etc_va): Update license wording to
12427         be more concise.  Recommended by Richard Stallman.
12428
12429 2007-03-22  Bruno Haible  <bruno@clisp.org>
12430
12431         * lib/poll.c (MSG_PEEK): New fallback definition.
12432
12433 2007-03-22  Bruno Haible  <bruno@clisp.org>
12434
12435         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
12436         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
12437         (main): Update.
12438         Fixes a compilation error on BeOS.
12439
12440 2007-03-22  Bruno Haible  <bruno@clisp.org>
12441
12442         * modules/frexpl-tests: New file.
12443         * tests/test-frexpl.c: New file.
12444
12445         * modules/frexpl: New file.
12446         * m4/frexpl.m4: New file.
12447         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
12448         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
12449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
12450         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
12451         (Depends-on): Add frexpl. Remove isnanl-nolibm.
12452         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
12453
12454 2007-03-22  Bruno Haible  <bruno@clisp.org>
12455
12456         * lib/frexpl.c: Share code with lib/frexp.c.
12457         * modules/mathl (Files): Add lib/frexp.c.
12458         (Depends-on): Add isnanl-nolibm.
12459
12460 2007-03-22  Bruno Haible  <bruno@clisp.org>
12461
12462         * modules/printf-frexp (Files): Add m4/frexp.m4.
12463         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
12464         only if the found frexp function actually works.
12465
12466 2007-03-22  Bruno Haible  <bruno@clisp.org>
12467
12468         * lib/frexp.c: Remove older implementation that uses divisions.
12469
12470 2007-03-21  Bruno Haible  <bruno@clisp.org>
12471
12472         * modules/frexp-tests: New file.
12473         * tests/test-frexp.c: New file.
12474
12475         * modules/frexp: New file.
12476         * lib/frexp.c: New file.
12477         * m4/frexp.m4: New file.
12478         * lib/math_.h (frexp): New declaration.
12479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
12480         REPLACE_FREXP.
12481         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
12482
12483 2007-03-21  Bruno Haible  <bruno@clisp.org>
12484
12485         * modules/isnanl-tests: New file.
12486         * tests/test-isnanl.c: New file.
12487
12488         * modules/isnanl: New file.
12489         * lib/isnanl.h: New file.
12490         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
12491         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
12492         gl_FUNC_ISNANL_WORKS.
12493         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
12494         New macros.
12495
12496 2007-03-21  Bruno Haible  <bruno@clisp.org>
12497
12498         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
12499         lib/isnanl.h.
12500         (Include): Update.
12501         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
12502         * lib/vasnprintf.c: Update.
12503         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
12504         tests/test-isnanl.h, remove tests/test-isnanl.c.
12505         (Makefile.am): Update.
12506         * tests/test-isnanl-nolibm.c: New file.
12507         * tests/test-isnanl.h: New file.
12508         * tests/test-isnanl.c: Remove file.
12509
12510 2007-03-21  Jim Meyering  <jim@meyering.net>
12511
12512         When trying to open ".", treat ESTALE like EACCES.
12513         * lib/savewd.c (savewd_save): Resort to forking not just upon
12514         failure with EACCES, but also when errno is ESTALE.
12515
12516 2007-03-20  Bruno Haible  <bruno@clisp.org>
12517
12518         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
12519         Needed on AIX 5.1. Reported by Matthew Woehlke.
12520
12521 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12522
12523         Suggestions by Bruno Haible:
12524         * lib/acl-internal.h: Include "gettext.h" rather than rolling
12525         our own.
12526         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
12527         * modules/acl (Depends-on): Add gettext.
12528
12529 2007-03-19  Bruno Haible  <bruno@clisp.org>
12530
12531         * modules/iconvme: Remove file.
12532         * lib/iconvme.h: Remove file.
12533         * lib/iconvme.c: Remove file.
12534         * m4/iconvme.m4: Remove file.
12535
12536 2007-03-19  Bruno Haible  <bruno@clisp.org>
12537
12538         * doc/relocatable-maint.texi: Break long shell script line.
12539         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12540
12541 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12542
12543         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
12544         handle file_has_acl.
12545         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
12546         * lib/acl.c: Move header inclusions and related macro defns into
12547         lib/acl-internal.h.
12548         (S_ISLNK): Remove defn, since that's now done for us.
12549         (file_has_acl): Move to lib/file-has-acl.c.
12550         Call acl_trivial if available.  This is the crucial part of the fix.
12551         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
12552         shared within the library.  Rewrite a bit, partly to make it compatible
12553         with the GNU coding style.
12554         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
12555         Remove unnecessary double-quotes.
12556         Don't test for acl_to_text; the build will catch that.
12557         Replace acl_entries if it doesn't exist and it is needed.
12558         Check for -lsec and acl_trivial (as used on Solaris 10).
12559         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
12560         lib/file-has-acl.c.
12561         (Depends-on): Add sys_stat, for S_ISLNK.
12562
12563 2007-03-19  Ben Pfaff  <blp@gnu.org>
12564
12565         * doc/gnulib.texi: Fix typos.
12566         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12567
12568 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12569
12570         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
12571         If size is zero here, buf must be zero.
12572
12573 2007-03-19  Simon Josefsson  <simon@josefsson.org>
12574
12575         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
12576         <bruno@clisp.org>.
12577
12578 2007-03-18  Bruno Haible  <bruno@clisp.org>
12579
12580         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
12581         Suggested by Eric Blake.
12582
12583 2007-03-18  Ben Pfaff  <blp@gnu.org>
12584
12585         * doc/relocatable.texi: Recommend using as prefix a directory
12586         that does not exist and will never be created.  Based on
12587         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
12588         and others.
12589
12590 2007-03-17  Bruno Haible  <bruno@clisp.org>
12591
12592         * lib/fchownat.c: Include lchown.h.
12593
12594 2007-03-17  Bruno Haible  <bruno@clisp.org>
12595
12596         Fix endless loop when the given allocated size was > INT_MAX.
12597         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
12598         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
12599         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
12600         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
12601         * lib/sprintf.c (sprintf): Likewise.
12602
12603 2007-03-17  Bruno Haible  <bruno@clisp.org>
12604
12605         * tests/test-argp-2.sh (func_compare): Output a context diff.
12606
12607 2007-03-17  Bruno Haible  <bruno@clisp.org>
12608
12609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
12610         locale's decimal-point character.
12611
12612 2007-03-17  Bruno Haible  <bruno@clisp.org>
12613
12614         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
12615         before comparing it. Needed because on some platforms (e.g. x86) a
12616         'long double' occupies less bytes than sizeof (long double).
12617
12618 2007-03-17  Bruno Haible  <bruno@clisp.org>
12619
12620         * tests/test-crc.c (main): Make printf statements 64-bit clean.
12621         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
12622         * tests/test-getaddrinfo.c (simple): Likewise.
12623         * tests/test-read-file.c (main): Likewise.
12624
12625 2007-03-17  Bruno Haible  <bruno@clisp.org>
12626
12627         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
12628
12629 2007-03-17  Bruno Haible  <bruno@clisp.org>
12630
12631         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
12632         unused variable.
12633
12634 2007-03-17  Bruno Haible  <bruno@clisp.org>
12635
12636         * tests/test-c-strcasecmp.c: Include c-strcase.h.
12637         * tests/test-c-strncasecmp.c: Likewise.
12638
12639 2007-03-17  Bruno Haible  <bruno@clisp.org>
12640
12641         * modules/stdlib (Depends-on): Add unistd.
12642         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
12643         Needed for MacOS X 10.3.
12644
12645 2007-03-17  Bruno Haible  <bruno@clisp.org>
12646
12647         * lib/unistr/u-strdup.h: Include <stdlib.h>.
12648
12649 2007-03-17  Bruno Haible  <bruno@clisp.org>
12650
12651         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
12652
12653 2007-03-17  Bruno Haible  <bruno@clisp.org>
12654
12655         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
12656         to reflect files copied from gnulib (with or without modifications).
12657         Suggested by Jim Meyering.
12658
12659 2007-03-17  Eric Blake  <ebb9@byu.net>
12660
12661         * NEWS: Document stdlib change from 2007-02-18.
12662
12663 2007-03-17  Jim Meyering  <jim@meyering.net>
12664
12665         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
12666         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
12667         someone uses a name containing shell meta-characters.
12668         Reported by Alfred M. Szmidt.
12669
12670         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
12671
12672 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
12673
12674         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
12675         and copy gettext configuration files only if configure.ac contains
12676         a use of AM_GNU_GETTEXT_VERSION.
12677
12678 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
12679
12680         * build-aux/bootstrap (gnulib_name): New variable.
12681         (gnulib_tool_options): Use it.
12682
12683 2007-03-13  Simon Josefsson  <simon@josefsson.org>
12684
12685         * tests/test-des.c: Use new namespace.
12686
12687 2007-03-15  Bruno Haible  <bruno@clisp.org>
12688
12689         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
12690         Reported by James Youngman <jay@gnu.org>.
12691
12692 2007-03-15  Bruno Haible  <bruno@clisp.org>
12693
12694         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
12695         declared prototype. Needed with cc on OSF/1 5.1.
12696
12697 2007-03-15  Bruno Haible  <bruno@clisp.org>
12698
12699         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
12700         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
12701         (struct gl_list_implementation): Add dispose_fn argument to the
12702         'create_empty', 'create' methods.
12703         (struct gl_list_impl_base): Add field 'dispose_fn'.
12704         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
12705         argument.
12706         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
12707         dispose_fn argument.
12708         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
12709         dispose_fn on the dropped values.
12710         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
12711         dispose_fn argument.
12712         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
12713         dropped values.
12714         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
12715         (gl_tree_remove_node): Call dispose_fn on the dropped value.
12716         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
12717         (gl_tree_remove_node): Call dispose_fn on the dropped value.
12718         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
12719         argument.
12720         (gl_tree_list_free): Call dispose_fn on the dropped values.
12721         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
12722         the dropped values.
12723         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
12724         Add dispose_fn argument.
12725         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
12726         Call dispose_fn on the dropped values.
12727         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
12728         Add dispose_fn argument.
12729         (gl_sublist_create): Initialize the 'dispose_fn' field.
12730         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
12731         * tests/test-array_list.c (main): Update.
12732         * tests/test-carray_list.c (main): Update.
12733         * tests/test-avltree_list.c (main): Update.
12734         * tests/test-rbtree_list.c (main): Update.
12735         * tests/test-avltreehash_list.c (main): Update.
12736         * tests/test-rbtreehash_list.c (main): Update.
12737         * tests/test-linked_list.c (main): Update.
12738         * tests/test-linkedhash_list.c (main): Update.
12739         * tests/test-array_oset.c (main): Update.
12740
12741 2007-03-15  Bruno Haible  <bruno@clisp.org>
12742
12743         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
12744         (gl_oset_create_empty): Add dispose_fn argument.
12745         (struct gl_oset_implementation): Add dispose_fn argument to
12746         'create_empty' method.
12747         (struct gl_oset_impl_base): Add dispose_fn field.
12748         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
12749         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
12750         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
12751         values.
12752         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
12753         (gl_tree_oset_free): Call dispose_fn on the dropped values.
12754         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
12755         dropped value.
12756         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
12757         dropped value.
12758         * tests/test-array_oset.c (main): Update.
12759         * tests/test-avltree_oset.c (main): Update.
12760         * tests/test-rbtree_oset.c (main): Update.
12761         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
12762
12763 2007-03-13  Bruno Haible  <bruno@clisp.org>
12764
12765         * tests/test-stdbool.c (i): Update after last patch.
12766
12767 2007-03-12  Bruno Haible  <bruno@clisp.org>
12768
12769         * lib/quotearg.c: Include <wctype.h> early, before the definition of
12770         the iswprint macro. Needed on Solaris 2.5.1.
12771
12772 2007-03-12  Bruno Haible  <bruno@clisp.org>
12773
12774         * tests/test-printf-frexp.c (main): Declare x as volatile.
12775
12776 2007-03-12  Simon Josefsson  <simon@josefsson.org>
12777
12778         * doc/gnulib.texi (Build robot for gnulib): New section.
12779
12780 2007-03-12  Jim Meyering  <jim@meyering.net>
12781
12782         * build-aux/bootstrap: New file.
12783         * build-aux/bootstrap.conf: New file, from coreutils.
12784
12785 2007-03-11  Bruno Haible  <bruno@clisp.org>
12786
12787         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
12788
12789 2007-03-12  Simon Josefsson  <simon@josefsson.org>
12790
12791         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
12792         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
12793         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
12794
12795 2007-03-11  Bruno Haible  <bruno@clisp.org>
12796
12797         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
12798         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
12799
12800 2007-03-11  Bruno Haible  <bruno@clisp.org>
12801
12802         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
12803         formula. Needed for SunPRO C 5.0.
12804
12805 2007-03-11  Bruno Haible  <bruno@clisp.org>
12806
12807         * modules/long-options (Depends-on): Add getopt.
12808
12809 2007-03-11  Bruno Haible  <bruno@clisp.org>
12810
12811         * modules/modechange (Depends-on): Add stdbool.
12812
12813 2007-03-11  Bruno Haible  <bruno@clisp.org>
12814
12815         * modules/i-ring (Depends-on): Add stdbool.
12816
12817 2007-03-11  Bruno Haible  <bruno@clisp.org>
12818
12819         * modules/gc-des (Depends-on): Add stdbool.
12820
12821 2007-03-11  Bruno Haible  <bruno@clisp.org>
12822
12823         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
12824
12825 2007-03-11  Bruno Haible  <bruno@clisp.org>
12826
12827         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
12828
12829 2007-03-11  Bruno Haible  <bruno@clisp.org>
12830
12831         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
12832
12833 2007-03-11  Bruno Haible  <bruno@clisp.org>
12834
12835         * lib/vasnprintf.c (sprintf): Undefine.
12836
12837 2007-03-11  Bruno Haible  <bruno@clisp.org>
12838
12839         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
12840         initializers in SunPRO C and Compaq C compilers.
12841
12842 2007-03-11  Bruno Haible  <bruno@clisp.org>
12843
12844         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
12845         decrementing code ANSI C compliant.
12846
12847 2007-03-11  Bruno Haible  <bruno@clisp.org>
12848
12849         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
12850         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
12851
12852 2007-03-11  Bruno Haible  <bruno@clisp.org>
12853
12854         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
12855         <stdbool.h> substitute doesn't pass.
12856
12857 2007-03-11  Bruno Haible  <bruno@clisp.org>
12858
12859         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
12860
12861 2007-03-11  Bruno Haible  <bruno@clisp.org>
12862
12863         * gnulib-tool (func_create_megatestdir): Create also an autobuild
12864         script, for submission to autobuild.josefsson.org.
12865
12866 2007-03-10  Bruno Haible  <bruno@clisp.org>
12867
12868         * modules/canonicalize-lgpl-tests: New file.
12869         * tests/test-canonicalize-lgpl.sh: New file.
12870         * tests/test-canonicalize-lgpl.c: New file.
12871
12872         * modules/c-strcase-tests: New file.
12873         * tests/test-c-strcase.sh: New file.
12874         * tests/test-c-strcasecmp.c: New file.
12875         * tests/test-c-strncasecmp.c: New file.
12876
12877         * modules/atexit-tests: New file.
12878         * tests/test-atexit.sh: New file.
12879         * tests/test-atexit.c: New file.
12880
12881 2007-03-10  Bruno Haible  <bruno@clisp.org>
12882
12883         * tests/test-binary-io.sh: Use temporary filenames that are not so
12884         likely to clash with those of other tests (in a parallel make).
12885         * tests/test-binary-io.c: Likewise.
12886
12887 2007-03-10  Bruno Haible  <bruno@clisp.org>
12888
12889         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
12890         fallback; use #error instead.
12891         Suggested by Simon Josefsson.
12892
12893 2007-03-10  Bruno Haible  <bruno@clisp.org>
12894
12895         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
12896         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
12897         first and the last.
12898
12899 2007-03-10  Bruno Haible  <bruno@clisp.org>
12900
12901         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
12902
12903 2007-03-10  Bruno Haible  <bruno@clisp.org>
12904
12905         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
12906         "make distcheck".
12907         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
12908         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
12909         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
12910
12911 2007-03-10  Bruno Haible  <bruno@clisp.org>
12912
12913         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
12914         variable.
12915         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
12916         variable.
12917
12918 2007-03-09  Eric Blake  <ebb9@byu.net>
12919         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
12920
12921         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
12922         types are not being provided by gnulib.
12923         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
12924         types are supported.
12925
12926 2007-03-10  Bruno Haible  <bruno@clisp.org>
12927
12928         * lib/stdio_.h (__attribute__): New macro.
12929         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
12930         vsprintf): Specify __attribute__ __format__ for GCC.
12931         Suggested by Eric Blake.
12932
12933 2007-03-09  Bruno Haible  <bruno@clisp.org>
12934
12935         * modules/printf-posix-tests: New file.
12936         * tests/test-printf-posix.sh: New file.
12937         * tests/test-printf-posix.c: New file.
12938
12939         * modules/printf-posix: New file.
12940         * lib/printf.c: New file.
12941         * m4/printf-posix-rpl.m4: New file.
12942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
12943         REPLACE_PRINTF.
12944         * lib/stdio_.h (printf): New declaration.
12945         (format, __format__, ____printf____, ____scanf____, ____strftime____,
12946         ____strfmon____): New macros.
12947         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
12948         REPLACE_PRINTF.
12949
12950 2007-03-09  Bruno Haible  <bruno@clisp.org>
12951
12952         * tests/test-vasnprintf-posix2.sh: New file.
12953         * tests/test-vasnprintf-posix2.c: New file.
12954         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
12955         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
12956         (Makefile.am): Activate test-vasnprintf-posix2.sh.
12957
12958         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
12959         a locale dependent decimal point, rather than always '.'.
12960
12961 2007-03-09  Eric Blake  <ebb9@byu.net>
12962
12963         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
12964         spite of platforms like Tandem/NSK that define it to -1.
12965
12966 2007-03-08  Bruno Haible  <bruno@clisp.org>
12967
12968         * modules/vprintf-posix-tests: New file.
12969         * tests/test-vprintf-posix.sh: New file.
12970         * tests/test-vprintf-posix.c: New file.
12971         * tests/test-printf-posix.h: New file.
12972
12973         * modules/vprintf-posix: New file.
12974         * lib/vprintf.c: New file.
12975         * m4/vprintf-posix.m4: New file.
12976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
12977         REPLACE_VPRINTF.
12978         * lib/stdio_.h (vprintf): New declaration.
12979         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
12980         REPLACE_VPRINTF.
12981
12982 2007-03-08  Bruno Haible  <bruno@clisp.org>
12983
12984         * modules/fprintf-posix-tests: New file.
12985         * tests/test-fprintf-posix.sh: New file.
12986         * tests/test-fprintf-posix.c: New file.
12987
12988         * modules/fprintf-posix: New file.
12989         * lib/fprintf.c: New file.
12990         * m4/fprintf-posix.m4: New file.
12991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
12992         REPLACE_FPRINTF.
12993         * lib/stdio_.h (fprintf): New declaration.
12994         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
12995         REPLACE_FPRINTF.
12996
12997 2007-03-08  Bruno Haible  <bruno@clisp.org>
12998
12999         * modules/vfprintf-posix-tests: New file.
13000         * tests/test-vfprintf-posix.sh: New file.
13001         * tests/test-vfprintf-posix.c: New file.
13002         * tests/test-fprintf-posix.h: New file.
13003         * tests/test-fprintf-posix.out: New file.
13004
13005         * modules/vfprintf-posix: New file.
13006         * lib/vfprintf.c: New file.
13007         * m4/vfprintf-posix.m4: New file.
13008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
13009         REPLACE_VFPRINTF.
13010         * lib/stdio_.h (vfprintf): New declaration.
13011         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
13012         REPLACE_VFPRINTF.
13013
13014 2007-03-08  Bruno Haible  <bruno@clisp.org>
13015
13016         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
13017
13018 2007-03-08  Bruno Haible  <bruno@clisp.org>
13019
13020         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
13021         instead of 'expr' invocations.
13022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13023         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13027         Suggested by Paul Eggert.
13028
13029 2007-03-08  Bruno Haible  <bruno@clisp.org>
13030
13031         * modules/fseterr-tests: New file.
13032         * tests/test-fseterr.c: New file.
13033
13034         * modules/fseterr: New file.
13035         * lib/fseterr.h: New file.
13036         * lib/fseterr.c: New file.
13037
13038 2007-03-08  Bruno Haible  <bruno@clisp.org>
13039
13040         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
13041         * lib/getopt_.h: Likewise.
13042         * lib/mbswidth.h: Likewise.
13043         * lib/setenv.h: Likewise.
13044         * lib/vasnprintf.h: Likewise.
13045         * lib/vasprintf.h: Likewise.
13046         * lib/verror.h: Likewise.
13047         * lib/xsetenv.h: Likewise.
13048         * lib/xvasprintf.h: Likewise.
13049
13050 2007-03-08  Jim Meyering  <jim@meyering.net>
13051
13052         * users.txt: Add parted.
13053
13054         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
13055
13056 2007-03-07  Bruno Haible  <bruno@clisp.org>
13057
13058         * m4/printf.m4: Make the shell script snippets copy&pastable.
13059
13060 2007-03-02  Bruno Haible  <bruno@clisp.org>
13061
13062         * lib/netinet_in_.h: New file.
13063         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
13064         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
13065         * modules/netinet_in (Files): Add lib/netinet_in_.h.
13066         (Depends-on): Add absolute-header.
13067         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
13068         into netinet/in.h.
13069
13070 2007-03-03  Bruno Haible  <bruno@clisp.org>
13071
13072         * lib/sys_select_.h: New file.
13073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
13074         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
13075         * modules/sys_select (Files): Add lib/sys_select_.h.
13076         (Depends-on): Add absolute-header.
13077         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
13078         into sys/select.h.
13079
13080 2007-03-02  Bruno Haible  <bruno@clisp.org>
13081
13082         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
13083         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
13084         values.
13085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
13086         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
13087         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
13088         * modules/sys_socket (Depends-on): Add absolute-header.
13089         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
13090         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
13091         (Include): Remove requirement of inclusion of <sys/types.h>.
13092
13093 2007-03-02  Bruno Haible  <bruno@clisp.org>
13094
13095         * lib/byteswap_.h (bswap_32): Fix formula.
13096
13097 2007-03-06  Bruno Haible  <bruno@clisp.org>
13098
13099         * modules/sprintf-posix-tests: New file.
13100         * tests/test-sprintf-posix.c: New file.
13101
13102         * modules/sprintf-posix: New file.
13103         * lib/sprintf.c: New file.
13104         * m4/sprintf-posix.m4: New file.
13105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
13106         REPLACE_SPRINTF.
13107         * lib/stdio_.h (sprintf): New declaration.
13108         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
13109         REPLACE_SPRINTF.
13110
13111 2007-03-06  Bruno Haible  <bruno@clisp.org>
13112
13113         * modules/vsprintf-posix-tests: New file.
13114         * tests/test-vsprintf-posix.c: New file.
13115         * tests/test-sprintf-posix.h: New file.
13116
13117         * modules/vsprintf-posix: New file.
13118         * lib/vsprintf.c: New file.
13119         * m4/vsprintf-posix.m4: New file.
13120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
13121         REPLACE_VSPRINTF.
13122         * lib/stdio_.h (vsprintf): New declaration.
13123         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
13124         REPLACE_VSPRINTF.
13125
13126 2007-03-06  Bruno Haible  <bruno@clisp.org>
13127
13128         * modules/vsnprintf (Depend-on): Remove minmax.
13129
13130 2007-03-06  Bruno Haible  <bruno@clisp.org>
13131
13132         * modules/snprintf-posix-tests: New file.
13133         * tests/test-snprintf-posix.c: New file.
13134
13135         * modules/snprintf-posix: New file.
13136         * m4/snprintf-posix.m4: New file.
13137         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
13138         gl_FUNC_SNPRINTF.
13139         (gl_FUNC_SNPRINTF): Invoke it.
13140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
13141         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
13142         is set.
13143         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
13144
13145 2007-03-06  Bruno Haible  <bruno@clisp.org>
13146
13147         * modules/vsnprintf-posix-tests: New file.
13148         * tests/test-vsnprintf-posix.c: New file.
13149         * tests/test-snprintf-posix.h: New file.
13150
13151         * modules/vsnprintf-posix: New file.
13152         * m4/vsnprintf-posix.m4: New file.
13153         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
13154         gl_FUNC_VSNPRINTF.
13155         (gl_FUNC_VSNPRINTF): Invoke it.
13156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
13157         * lib/stdio_.h (vsnprintf): Define as a replacement if
13158         REPLACE_VSNPRINTF is set.
13159         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
13160
13161 2007-03-06  Bruno Haible  <bruno@clisp.org>
13162
13163         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
13164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
13165
13166 2007-03-06  Bruno Haible  <bruno@clisp.org>
13167
13168         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
13169         (asinl): Declare also if HAVE_DECL_ASINL is set.
13170         (atanl): Declare also if HAVE_DECL_ATANL is set.
13171         (ceill): Declare also if HAVE_DECL_CEILL is set.
13172         (cosl): Declare also if HAVE_DECL_COSL is set.
13173         (expl): Declare also if HAVE_DECL_EXPL is set.
13174         (floorl): Declare also if HAVE_DECL_FLOORL is set.
13175         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
13176         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
13177         (logl): Declare also if HAVE_DECL_LOGL is set.
13178         (sinl): Declare also if HAVE_DECL_SINL is set.
13179         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
13180         (tanl): Declare also if HAVE_DECL_TANL is set.
13181         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
13182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
13183         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
13184         declaration of frexpl, ldexpl.
13185         * modules/printf-frexpl (Depends-on): Add math.
13186         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
13187
13188 2007-03-05  Bruno Haible  <bruno@clisp.org>
13189
13190         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
13191         frexpl and ldexpl are declared.
13192         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
13193
13194 2007-03-05  Bruno Haible  <bruno@clisp.org>
13195
13196         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
13197         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
13198
13199 2007-03-05  Bruno Haible  <bruno@clisp.org>
13200
13201         * lib/stdio_.h: Include <stddef.h>.
13202
13203 2007-03-05  Bruno Haible  <bruno@clisp.org>
13204
13205         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
13206
13207 2007-03-05  Bruno Haible  <bruno@clisp.org>
13208
13209         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
13210         NetBSD 4, from Ralf Wildenhues.
13211
13212 2007-03-04  Bruno Haible  <bruno@clisp.org>
13213
13214         * lib/vasprintf.h: Update #if logic for the case when the functions
13215         exist but are overridden.
13216
13217 2007-03-04  Bruno Haible  <bruno@clisp.org>
13218
13219         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
13220         implementations: glibc-2.4 and MacOS X 10.3.
13221         * tests/test-vasnprintf-posix.c (test_function): Test also the case
13222         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
13223         * tests/test-vasprintf-posix.c (test_function): Likewise.
13224
13225 2007-03-04  Bruno Haible  <bruno@clisp.org>
13226
13227         * modules/vasprintf-posix-tests: New file.
13228         * tests/test-vasprintf-posix.c: New file.
13229
13230         * modules/vasprintf-posix: New file.
13231         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
13232         defined.
13233         * m4/vasprintf-posix.m4: New file.
13234         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
13235         gl_FUNC_VASPRINTF.
13236         (gl_FUNC_VASPRINTF): Invoke it.
13237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
13238         here.
13239         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
13240
13241 2007-03-04  Bruno Haible  <bruno@clisp.org>
13242
13243         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
13244         REPLACE_GETTIMEOFDAY.
13245         * modules/sys_time (Makefile.am): Likewise.
13246         * m4/sys_time_h.m4: Likewise.
13247         * m4/gettimeofday.m4: Likewise.
13248
13249 2007-03-04  Bruno Haible  <bruno@clisp.org>
13250
13251         * modules/vasnprintf-posix-tests: New file.
13252         * tests/test-vasnprintf-posix.c: New file.
13253
13254         * modules/vasnprintf-posix: New file.
13255         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
13256         printf-frexpl.h.
13257         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
13258         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
13259         REPLACE_VASNPRINTF is defined.
13260         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
13261         gl_FUNC_VASNPRINTF.
13262         (gl_FUNC_VASNPRINTF): Invoke it.
13263         * m4/vasnprintf-posix.m4: New file.
13264         * m4/printf.m4: New file.
13265
13266 2007-03-04  Bruno Haible  <bruno@clisp.org>
13267
13268         Compile progreloc.c only if --enable-relocatable is specified.
13269         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
13270         if --enable-relocatable was specified.
13271         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
13272         lib_SOURCES.
13273
13274 2007-03-04  Jim Meyering  <jim@meyering.net>
13275
13276         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
13277         Use it consistently, rather than enumerating errno constants.
13278
13279 2007-03-04  Bruno Haible  <bruno@clisp.org>
13280
13281         * modules/xvasprintf-tests: New file.
13282         * tests/test-xvasprintf.c: New file.
13283
13284         * modules/vasprintf-tests: New file.
13285         * tests/test-vasprintf.c: New file.
13286
13287         * modules/vasnprintf-tests: New file.
13288         * tests/test-vasnprintf.c: New file.
13289
13290         * modules/vsnprintf-tests: New file.
13291         * tests/test-vsnprintf.c: New file.
13292
13293         * modules/snprintf-tests: New file.
13294         * tests/test-snprintf.c: New file.
13295
13296 2007-03-04  Bruno Haible  <bruno@clisp.org>
13297
13298         Compile relocatable.c only if --enable-relocatable is specified.
13299         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
13300         gl_RELOCATABLE_LIBRARY.
13301         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
13302         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
13303         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
13304         gl_RELOCATABLE_LIBRARY.
13305         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
13306         (Makefile.am): Remove lib_SOURCES.
13307         * modules/relocatable-lib-lgpl (configure.ac): Invoke
13308         gl_RELOCATABLE_LIBRARY.
13309         (Makefile.am): Remove lib_SOURCES.
13310         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
13311         always.
13312         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13313         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
13314
13315 2007-03-04  Bruno Haible  <bruno@clisp.org>
13316
13317         * modules/argmatch-tests: New file.
13318         * tests/test-argmatch.c: New file.
13319
13320         * tests/test-allocsa.c (main): Halve the number of loop runs.
13321
13322         * modules/alloca-opt-tests: New file.
13323         * tests/test-alloca-opt.c: New file.
13324
13325 2007-03-04  Jim Meyering  <jim@meyering.net>
13326
13327         Work around difference between Linux ACLs and Solaris 10 ZFS.
13328         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
13329         for EINVAL.
13330
13331 2007-03-03  Bruno Haible  <bruno@clisp.org>
13332
13333         * modules/relocatable-prog (Depends-on): Add back progreloc's
13334         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
13335
13336 2007-03-03  Bruno Haible  <bruno@clisp.org>
13337
13338         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
13339         * modules/relocatable-lib: New file.
13340
13341 2007-03-03  Bruno Haible  <bruno@clisp.org>
13342
13343         * modules/relocatable-prog: Renamed from modules/relocatable.
13344         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
13345
13346 2007-03-03  Bruno Haible  <bruno@clisp.org>
13347
13348         * modules/relocatable-script (Files): Add doc/relocatable.texi,
13349         m4/relocatable-lib.m4.
13350         (Depends-on): Remove 'relocatable'.
13351         (configure.ac): Add gl_RELOCATABLE_NOP.
13352
13353 2007-03-03  Bruno Haible  <bruno@clisp.org>
13354
13355         * modules/relocatable-prog-wrapper: New file.
13356         * modules/relocatable (Depends-on): Add it. Remove all other
13357         dependencies except progname.
13358         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
13359
13360         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
13361         (gl_FUNC_STRERROR): Nop.
13362         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
13363
13364         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
13365         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
13366
13367         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
13368         (gl_FUNC_READLINK): Update.
13369
13370         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
13371
13372 2007-03-03  Bruno Haible  <bruno@clisp.org>
13373
13374         * lib/xreadlink.c: Include <unistd.h> unconditionally.
13375         * modules/xreadlink (Depends-on): Add unistd.
13376         * modules/xreadlink-with-size (Depends-on): Likewise.
13377
13378 2007-03-03  Bruno Haible  <bruno@clisp.org>
13379
13380         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
13381         extracted from gt_FUNC_SETENV.
13382         (gt_FUNC_SETENV): Remove macro.
13383         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
13384         remove gt_FUNC_SETENV.
13385
13386 2007-03-03  Bruno Haible  <bruno@clisp.org>
13387
13388         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
13389         ENABLE_RELOCATABLE here.
13390         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
13391
13392 2007-03-03  Bruno Haible  <bruno@clisp.org>
13393
13394         * modules/rbtreehash-list-tests (Depends-on): Add progname.
13395         * tests/test-rbtreehash_list.c: Include progname.h.
13396         (main): Call set_program_name.
13397
13398         * modules/rbtree-oset-tests (Depends-on): Add progname.
13399         * tests/test-rbtree_oset.c: Include progname.h.
13400         (main): Call set_program_name.
13401
13402         * modules/rbtree-list-tests (Depends-on): Add progname.
13403         * tests/test-rbtree_list.c: Include progname.h.
13404         (main): Call set_program_name.
13405
13406         * modules/linked-list-tests (Depends-on): Add progname.
13407         * tests/test-linked_list.c: Include progname.h.
13408         (main): Call set_program_name.
13409
13410 2007-03-03  Bruno Haible  <bruno@clisp.org>
13411
13412         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
13413         All uses of __restrict changed to _Restrict_.
13414         * lib/glob_.h (__restrict): Remove macro.
13415
13416 2007-03-02  Bruno Haible  <bruno@clisp.org>
13417
13418         * modules/gettext (configure.ac): Require gettext infrastructure
13419         from version 0.16.1.
13420
13421 2007-03-02  Bruno Haible  <bruno@clisp.org>
13422
13423         * modules/linkedhash-list-tests (Depends-on): Add progname.
13424         * tests/test-linkedhash_list.c: Include progname.h.
13425         (main): Call set_program_name.
13426
13427         * modules/carray-list-tests (Depends-on): Add progname.
13428         * tests/test-carray_list.c: Include progname.h.
13429         (main): Call set_program_name.
13430
13431         * modules/avltreehash-list-tests (Depends-on): Add progname.
13432         * tests/test-avltreehash_list.c: Include progname.h.
13433         (main): Call set_program_name.
13434
13435         * modules/avltree-oset-tests (Depends-on): Add progname.
13436         * tests/test-avltree_oset.c: Include progname.h.
13437         (main): Call set_program_name.
13438
13439         * modules/avltree-list-tests (Depends-on): Add progname.
13440         * tests/test-avltree_list.c: Include progname.h.
13441         (main): Call set_program_name.
13442
13443         * modules/array-oset-tests (Depends-on): Add progname.
13444         * tests/test-array_oset.c: Include progname.h.
13445         (main): Call set_program_name.
13446
13447         * modules/array-list-tests (Depends-on): Add progname.
13448         * tests/test-array_list.c: Include progname.h.
13449         (main): Call set_program_name.
13450
13451         * modules/argp-tests (Depends-on): Add progname.
13452         * tests/test-argp.c: Include argp.h first. Include progname.h.
13453         (main): Call set_program_name.
13454
13455 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
13456
13457         * doc/gnulib-tool.texi (Initial import): Reword description of
13458         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
13459         limited effect even if defined after the first system include.
13460
13461 2007-03-01  Bruno Haible  <bruno@clisp.org>
13462
13463         * build-aux/config.libpath: Update to libtool-1.5.22.
13464         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13465
13466 2007-03-01  Bruno Haible  <bruno@clisp.org>
13467
13468         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
13469         foo_CFLAGS.
13470         Reported by Ralf Wildenhues.
13471
13472 2007-03-01  Bruno Haible  <bruno@clisp.org>
13473
13474         * build-aux/install-reloc: Remove object files left over by some
13475         compilers.
13476         Reported by Ralf Wildenhues.
13477
13478 2007-03-01  Bruno Haible  <bruno@clisp.org>
13479
13480         * build-aux/install-reloc: Break long lines.
13481
13482 2007-03-01  Bruno Haible  <bruno@clisp.org>
13483
13484         * doc/relocatable.texi: Document that it may not work on OpenBSD.
13485         Reported by Ralf Wildenhues.
13486
13487 2007-03-01  Bruno Haible  <bruno@clisp.org>
13488
13489         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
13490         include ordering constraints.
13491
13492 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13493
13494         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
13495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
13496         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
13497         as another example.
13498         * lib/time_.h: Fix misspelling.
13499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13500         Require gl_HEADER_TIME_H_DEFAULTS.
13501         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
13502         * m4/time_r.m4 (gl_TIME_R): Likewise.
13503         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
13504
13505 2007-03-01  Bruno Haible  <bruno@clisp.org>
13506
13507         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
13508         * m4/utimens.m4 (gl_UTIMENS): Likewise.
13509
13510 2007-03-01  Jim Meyering  <jim@meyering.net>
13511
13512         * modules/xreadlink (Maintainer): Add my name.
13513         * modules/xreadlink-with-size (Depends-on): Alphabetize.
13514
13515 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
13516             Bruno Haible  <bruno@clisp.org>
13517
13518         * build-aux/install-reloc: Compile also c-ctype.c.
13519         * build-aux/relocatable.sh.in: New file.
13520         * doc/relocatable.texi: New file.
13521         * doc/relocatable-maint.texi: New file.
13522         * doc/gnulib.texi: Include relocatable-maint.texi.
13523         * lib/progreloc.c: Include unistd.h unconditionally.
13524         * lib/relocwrapper.c: Include unistd.h unconditionally.
13525         Include c-ctype.h.
13526         (add_dotbin): Use c_tolower.
13527         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
13528         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
13529         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
13530         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
13531         to m4/relocatable-lib.m4.
13532         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
13533         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
13534         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
13535         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
13536         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
13537         * modules/relocatable: New file.
13538         * modules/relocatable-lib: New file.
13539         * modules/relocatable-script: New file.
13540
13541 2007-02-28  Bruno Haible  <bruno@clisp.org>
13542
13543         Import --enable-relocatable infrastructure.
13544         * build-aux/config.libpath: New file, from GNU gettext.
13545         * build-aux/install-reloc: New file, from GNU gettext.
13546         * build-aux/reloc-ldflags: New file, from GNU gettext.
13547         * lib/relocatable.h: New file, from GNU gettext.
13548         * lib/relocatable.c: New file, from GNU gettext.
13549         * lib/relocwrapper.c: New file, from GNU gettext.
13550         * m4/relocatable.m4: New file, from GNU gettext.
13551
13552 2007-02-28  Bruno Haible  <bruno@clisp.org>
13553
13554         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
13555
13556         * modules/xreadlink: New file, from GNU gettext with modifications.
13557         * lib/xreadlink.c: New file, from GNU gettext.
13558         * lib/xreadlink.h: Add comments.
13559         (xreadlink): New declaration.
13560
13561         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
13562         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
13563         lib/xreadlink-with-size.c.
13564         (configure.ac): Remove gl_XREADLINK invocation.
13565         (Makefile.am): Augment lib_SOURCES.
13566         * m4/xreadlink.m4: Remove file.
13567         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
13568         (xreadlink_with_size): Renamed from xreadink.
13569         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
13570         * modules/canonicalize (Depends-on): Replace xreadlink with
13571         xreadlink-with-size.
13572         * lib/canonicalize.c (canonicalize_filename_mode): Update.
13573
13574 2007-02-25  Jim Meyering  <jim@meyering.net>
13575
13576         * build-aux/announce-gen: When complaining about excess arguments,
13577         list them.
13578
13579 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13580
13581         * README: Document signed integer overflow situation more
13582         accurately.
13583
13584 2007-02-25  Bruno Haible  <bruno@clisp.org>
13585
13586         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
13587         'a' or 'A' conversion.
13588
13589 2007-02-25  Bruno Haible  <bruno@clisp.org>
13590
13591         * modules/filename: Renamed from modules/pathname.
13592         (Files): Replace lib/pathname.h with lib/filename.h. Replace
13593         lib/concatpath.c with lib/concat-filename.c.
13594         (Makefile.am): Update.
13595         (Include): Replace pathname.h with filename.h.
13596         * lib/filename.h: Renamed from lib/pathname.h.
13597         (concatenated_filename): Renamed from concatenated_pathname.
13598         * lib/concat-filename.c: Renamed from lib/concatpath.c.
13599         (concatenated_filename): Renamed from concatenated_pathname.
13600         * lib/findprog.c: Include filename.h instead of pathname.h.
13601         (find_in_path): Update.
13602         * lib/javacomp.c: Include filename.h instead of pathname.h.
13603         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13604         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13605         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13606         is_oldgcj_14_13_usable, is_javac_usable): Update.
13607         * lib/javaexec.c: Include filename.h instead of pathname.h.
13608         (execute_java_class): Update.
13609         * modules/findprog: Update.
13610         * modules/javacomp: Update.
13611         * modules/javaexec: Update.
13612         * MODULES.html.sh (File system functions): Add 'filename', remove
13613         'pathname'.
13614
13615 2007-02-25  Bruno Haible  <bruno@clisp.org>
13616
13617         * modules/printf-frexpl-tests: New file.
13618         * tests/test-printf-frexpl.c: New file.
13619
13620         * modules/printf-frexpl: New file.
13621         * lib/printf-frexpl.h: New file.
13622         * lib/printf-frexpl.c: New file.
13623         * m4/printf-frexpl.m4: New file.
13624
13625 2007-02-25  Bruno Haible  <bruno@clisp.org>
13626
13627         * modules/printf-frexp-tests: New file.
13628         * tests/test-printf-frexp.c: New file.
13629
13630         * modules/printf-frexp: New file.
13631         * lib/printf-frexp.h: New file.
13632         * lib/printf-frexp.c: New file.
13633         * m4/printf-frexp.m4: New file.
13634
13635 2007-02-25  Bruno Haible  <bruno@clisp.org>
13636
13637         Assume automake >= 1.10 for the tests.
13638         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
13639         * modules/arctwo-tests: Likewise.
13640         * modules/argp-tests: Likewise.
13641         * modules/avltree-list-tests: Likewise.
13642         * modules/avltree-oset-tests: Likewise.
13643         * modules/avltreehash-list-tests: Likewise.
13644         * modules/carray-list-tests: Likewise.
13645         * modules/crc-tests: Likewise.
13646         * modules/des-tests: Likewise.
13647         * modules/gc-arcfour-tests: Likewise.
13648         * modules/gc-arctwo-tests: Likewise.
13649         * modules/gc-des-tests: Likewise.
13650         * modules/gc-hmac-md5-tests: Likewise.
13651         * modules/gc-hmac-sha1-tests: Likewise.
13652         * modules/gc-md2-tests: Likewise.
13653         * modules/gc-md4-tests: Likewise.
13654         * modules/gc-md5-tests: Likewise.
13655         * modules/gc-pbkdf2-sha1-tests: Likewise.
13656         * modules/gc-rijndael-tests: Likewise.
13657         * modules/gc-sha1-tests: Likewise.
13658         * modules/gc-tests: Likewise.
13659         * modules/getaddrinfo-tests: Likewise.
13660         * modules/hmac-md5-tests: Likewise.
13661         * modules/hmac-sha1-tests: Likewise.
13662         * modules/linked-list-tests: Likewise.
13663         * modules/linkedhash-list-tests: Likewise.
13664         * modules/lock-tests: Likewise.
13665         * modules/md2-tests: Likewise.
13666         * modules/md4-tests: Likewise.
13667         * modules/md5-tests: Likewise.
13668         * modules/rbtree-list-tests: Likewise.
13669         * modules/rbtree-oset-tests: Likewise.
13670         * modules/rbtreehash-list-tests: Likewise.
13671         * modules/read-file-tests: Likewise.
13672         * modules/rijndael-tests: Likewise.
13673         * modules/stdint-tests: Likewise.
13674         * modules/tls-tests: Likewise.
13675
13676 2007-02-24  Bruno Haible  <bruno@clisp.org>
13677
13678         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
13679         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
13680         function; instead check whether isnan with a double argument links.
13681         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
13682         function; instead check whether isnan with a 'long double' argument
13683         links.
13684         Reported by Eric Blake <ebb9@byu.net>.
13685
13686 2007-02-24  Bruno Haible  <bruno@clisp.org>
13687
13688         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
13689         defined.
13690         * lib/isnanl.c: Remove all code. Just include isnan.c.
13691         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
13692
13693 2007-02-25  Jim Meyering  <jim@meyering.net>
13694
13695         Avoid conflicting types for 'unsetenv' on FreeBSD.
13696         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
13697         conflicting with FreeBSD's (5.0 and 6.1) function declaration
13698         in stdlib.h.
13699
13700 2007-02-24  Bruno Haible  <bruno@clisp.org>
13701
13702         * modules/isnanl-nolibm-tests: New file.
13703         * tests/test-isnanl.c: New file.
13704
13705         * modules/isnanl-nolibm: New file.
13706         * lib/isnanl.h: New file.
13707         * lib/isnanl.c: New file.
13708         * m4/isnanl.m4: New file.
13709
13710 2007-02-24  Bruno Haible  <bruno@clisp.org>
13711
13712         * modules/isnan-nolibm-tests: New file.
13713         * tests/test-isnan.c: New file.
13714
13715         * modules/isnan-nolibm: New file.
13716         * lib/isnan.h: New file.
13717         * lib/isnan.c: New file.
13718         * m4/isnan.m4: New file.
13719
13720 2007-02-24  Bruno Haible  <bruno@clisp.org>
13721
13722         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
13723         assume that an exponent fits in 20 bits.
13724
13725 2007-02-24  Jim Meyering  <jim@meyering.net>
13726
13727         * m4/regex.m4: Update the description of the configure-time option,
13728         --without-included-regex, to state accurately what the defaults are,
13729         and perhaps to give people an idea why using this option is risky.
13730
13731 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13732
13733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
13734         loops on small arguments.  This attempts to avoid the problem
13735         Bruno Haible reported for AIX 4.3.2 in
13736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
13737
13738 2007-02-23  Bruno Haible  <bruno@clisp.org>
13739
13740         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
13741         Needed for help2man.
13742
13743 2007-02-23  Karl Berry  <karl@gnu.org>
13744
13745         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
13746         exists, foo.h should be cvs-ignored, not committed.
13747
13748 2007-02-23  Eric Blake  <ebb9@byu.net>
13749
13750         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
13751         * lib/stat-time.h (includes): Likewise.
13752         * lib/utimecmp.c (includes): Likewise.
13753         * lib/utimens.h (includes): Likewise.
13754         * lib/getdate.y (includes): Also include "timespec.h" for use
13755         internal to the module.
13756         * modules/utimens (Depends-on): Revert yesterday's patch.
13757         * modules/nanosleep (Depends-on): Add missing dependency.
13758
13759 2007-02-22  Bruno Haible  <bruno@clisp.org>
13760
13761         * lib/glob.c: Don't include getlogin_r.h.
13762
13763 2007-02-22  Jim Meyering  <jim@meyering.net>
13764
13765         * modules/utimens (Depends-on): Add timespec, required for
13766         utimens.h's inclusion of timespec.h.
13767
13768 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
13769
13770         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
13771         long unreadable paths in GNU/Linux.  Problem reported by Andreas
13772         Schwab in
13773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
13774         I'll try to think of a better way to fix the Solaris problem.
13775
13776         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
13777         like glibc; on Solaris 10, it fails with errno == EINVAL.
13778         POSIX says the behavior is unspecified if the first argument is NULL,
13779         so play it safe and never pass NULL to the system getcwd.
13780
13781 2007-02-21  Jim Meyering  <jim@meyering.net>
13782
13783         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
13784         of gettimeofday.  It would conflict with the one now always
13785         provided via sys_time_.h.  Reported by Matthew Woehlke, as
13786         an IRIX 6.5 build failure.
13787
13788 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
13789
13790         Minor fixups to port to Solaris 10 with Sun C 5.8.
13791         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
13792         * modules/getcwd (Depends-on): Add dirfd.
13793         * lib/putenv.c (putenv): #undef it.
13794         (rpl_putenv): New decl.
13795         (malloc, free): Include <stdlib.h> rather than prototyping separately.
13796
13797 2007-02-20  Bruno Haible  <bruno@clisp.org>
13798
13799         * modules/stdio-tests: New file.
13800         * tests/test-stdio.c: New file.
13801
13802         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
13803         (Depends-on): Add stdio.
13804         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13805         (Include): Use <stdio.h> instead of vsnprintf.h.
13806         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
13807         HAVE_DECL_VSNPRINTF.
13808         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
13809
13810         * modules/snprintf (Files): Remove lib/snprintf.h.
13811         (Depends-on): Add stdio.
13812         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13813         (Include): Use <stdio.h> instead of snprintf.h.
13814         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
13815         HAVE_DECL_SNPRINTF.
13816         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
13817         * lib/getaddrinfo.c: Likewise.
13818
13819         * modules/stdio: New file.
13820         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
13821         * lib/snprintf.h: Remove file.
13822         * lib/vsnprintf.h: Remove file.
13823         * lib/.cppi-disable: Remove snprintf.h.
13824         * m4/stdio_h.m4: New file.
13825         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
13826
13827 2007-02-20  Jim Meyering  <jim@meyering.net>
13828
13829         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
13830         used by e.g., mingw.  From Bruno Haible.
13831
13832 2007-02-19  Bruno Haible  <bruno@clisp.org>
13833
13834         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
13835         warnings.
13836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13837
13838 2007-02-19  Bruno Haible  <bruno@clisp.org>
13839
13840         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
13841         from mingw users.
13842
13843 2007-02-19  Bruno Haible  <bruno@clisp.org>
13844
13845         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
13846         warnings.
13847         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
13848
13849 2007-02-19  Jim Meyering  <jim@meyering.net>
13850
13851         Don't use FD after a successful "fdopendir (fd)".
13852         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
13853         Reset it by calling dirfd on the just-obtained DIR*.
13854
13855         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
13856         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
13857
13858 2007-02-18  Bruno Haible  <bruno@clisp.org>
13859
13860         * lib/readlink.c: Include <unistd.h>.
13861         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
13862         HAVE_READLINK.
13863         * modules/readlink (Depends-on): Add unistd.
13864         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13865         (Include): Add <unistd.h>.
13866
13867         * lib/getlogin_r.h: Remove file.
13868         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
13869         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
13870         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
13871         HAVE_DECL_GETLOGIN_R.
13872         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
13873         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13874         (Include): Use <unistd.h> instead of getlogin_r.h.
13875
13876         * lib/getcwd.h: Remove file.
13877         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
13878         * lib/xgetcwd.c: Likewise.
13879         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
13880         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
13881         * modules/getcwd (Files): Remove lib/getcwd.h.
13882         (Depends-on): Add unistd.
13883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13884         (Include): Use <unistd.h> instad of getcwd.h.
13885
13886         * lib/ftruncate.c: Include <unistd.h> first.
13887         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
13888         Set HAVE_FTRUNCATE.
13889         * modules/ftruncate (Depends-on): Add unistd.
13890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13891
13892         * lib/fchdir.c: Include <unistd.h> first.
13893         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
13894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
13895         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
13896         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13897         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
13898
13899         * lib/dup2.c: Include <unistd.h> first.
13900         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
13901         HAVE_DUP2.
13902         * modules/dup2 (Depends-on): Add unistd.
13903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13904
13905         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
13906         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
13907         REPLACE_CHOWN. Don't define chown as a macro here.
13908         * modules/chown (Depends-on): Add unistd.
13909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13910
13911         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
13912         Add definition for GL_LINK_WARNING.
13913         (chown, dup2): New declarations.
13914         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
13915         link warning.
13916         (ftruncate): New declaration.
13917         (getcwd): New declaration, taken from old getcwd.h.
13918         (getlogin_r): New declaration, taken from old getlogin_r.h.
13919         (readlink): New declaration.
13920         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
13921         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
13922         (gl_PREREQ_UNISTD): Remove macro.
13923         (gl_UNISTD_MODULE_INDICATOR): New macro.
13924         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
13925         many new variables. Don't set UNISTD_H.
13926         * modules/unistd (Description): Change.
13927         (Depends-on): Add link-warning.
13928         (configure.ac): Update.
13929         (Makefile.am): Create unistd.h always. Substitute many new variables
13930         into it.
13931
13932 2007-02-18  Bruno Haible  <bruno@clisp.org>
13933
13934         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
13935         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
13936         HAVE_GETSUBOPT.
13937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
13938         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
13939         * lib/getsubopt.h: Remove file.
13940         * modules/getsubopt (Files): Remove lib/getsubopt.h.
13941         (Depends-on): Add stdlib.
13942         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13943         (Includes): Use <stdlib.h> instead of getsubopt.h.
13944         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
13945         Set HAVE_GETSUBOPT.
13946         * lib/getsubopt.c: Don't include getsubopt.h.
13947
13948 2007-02-18  Bruno Haible  <bruno@clisp.org>
13949
13950         * modules/fchdir (Depends-on): Add dup2.
13951
13952 2007-02-18  Bruno Haible  <bruno@clisp.org>
13953
13954         * lib/stdlib_.h: Handle glibc's special invocation convention
13955         specially.
13956
13957 2007-02-18  Bruno Haible  <bruno@clisp.org>
13958
13959         * modules/stdlib-tests: New file.
13960         * tests/test-stdlib.c: New file.
13961
13962         * modules/mkstemp (Files): Remove lib/mkstemp.h.
13963         (Depends-on): Add stdlib.
13964         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13965         (Includes): Use <stdlib.h> instead of mkstemp.h.
13966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
13967         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
13968         * lib/mkstemp.c: Don't include mkstemp.h.
13969         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
13970         * lib/stdlib--.h: Don't include mkstemp.h.
13971
13972         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
13973         (Depends-on): Add stdlib.
13974         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13975         (Includes): Use <stdlib.h> instead of mkdtemp.h.
13976         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
13977         HAVE_MKDTEMP.
13978         * lib/mkdtemp.c: Don't include mkdtemp.h.
13979         * lib/clean-temp.c: Don't include mkdtemp.h.
13980
13981         * modules/exit (Files): Remove lib/exit.h.
13982         (Depends-on): Add stdlib.
13983         (Makefile.am): Remove lib_SOURCES.
13984         (Include): Use <stdlib.h> instead of exit.h.
13985         * lib/argmatch.c: Don't include exit.h.
13986         * lib/execute.c: Likewise.
13987         * lib/pagealign_alloc.c: Likewise.
13988         * lib/pipe.c: Likewise.
13989         * lib/wait-process.c: Likewise.
13990         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
13991         * lib/exitfail.c: Likewise.
13992         * lib/savewd.c: Likewise.
13993         * lib/xsetenv.c: Likewise.
13994
13995         * modules/stdlib: New file.
13996         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
13997         and extra comments about mkstemp().
13998         * lib/exit.h: Remove file.
13999         * lib/mkdtemp.h: Remove file.
14000         * lib/mkstemp.h: Remove file.
14001         * m4/stdlib_h.m4: New file.
14002         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
14003
14004 2007-02-18  Bruno Haible  <bruno@clisp.org>
14005
14006         * modules/math-tests: New file.
14007         * tests/test-math.c: New file.
14008
14009         * modules/math: New file.
14010         * modules/mathl (Files): Remove lib/mathl.h.
14011         (Depends-on): Add math.
14012         (Makefile.am): Don't mention mathl.h.
14013         (Include): Use <math.h> instead of mathl.h.
14014         * lib/math_.h: New file.
14015         * lib/mathl.h: Remove file.
14016         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
14017         mathl.h.
14018         * lib/asinl.c: Likewise.
14019         * lib/atanl.c: Likewise.
14020         * lib/ceill.c: Likewise.
14021         * lib/cosl.c: Likewise.
14022         * lib/expl.c: Likewise.
14023         * lib/floorl.c: Likewise.
14024         * lib/frexpl.c: Likewise.
14025         * lib/ldexpl.c: Likewise.
14026         * lib/logl.c: Likewise.
14027         * lib/sincosl.c: Likewise.
14028         * lib/sinl.c: Likewise.
14029         * lib/sqrtl.c: Likewise.
14030         * lib/tanl.c: Likewise.
14031         * lib/trigl.c: Likewise.
14032         * m4/math_h.m4: New file.
14033         * MODULES.html.sh (Mathematics): Add math.
14034
14035 2007-02-17  Bruno Haible  <bruno@clisp.org>
14036
14037         * modules/wctype-tests: New file.
14038         * tests/test-wctype.c: New file.
14039
14040         * modules/wchar-tests: New file.
14041         * tests/test-wchar.c: New file.
14042
14043         * modules/unistd-tests: New file.
14044         * tests/test-unistd.c: New file.
14045
14046         * modules/time-tests: New file.
14047         * tests/test-time.c: New file.
14048
14049         * modules/sysexits-tests: New file.
14050         * tests/test-sysexits.c: New file.
14051
14052         * modules/sys_time-tests: New file.
14053         * tests/test-sys_time.c: New file.
14054
14055         * modules/sys_stat-tests: New file.
14056         * tests/test-sys_stat.c: New file.
14057
14058         * modules/sys_socket-tests: New file.
14059         * tests/test-sys_socket.c: New file.
14060
14061         * modules/sys_select-tests: New file.
14062         * tests/test-sys_select.c: New file.
14063
14064         * modules/string-tests: New file.
14065         * tests/test-string.c: New file.
14066
14067         * modules/stdbool-tests: New file.
14068         * tests/test-stdbool.c: New file.
14069
14070         * modules/netinet_in-tests: New file.
14071         * tests/test-netinet_in.c: New file.
14072
14073         * modules/inttypes-tests: New file.
14074         * tests/test-inttypes.c: New file.
14075
14076         * modules/fcntl-tests: New file.
14077         * tests/test-fcntl.c: New file.
14078
14079         * modules/byteswap-tests: New file.
14080         * tests/test-byteswap.c: New file.
14081
14082         * modules/arpa_inet-tests: New file.
14083         * tests/test-arpa_inet.c: New file.
14084
14085 2007-02-17  Bruno Haible  <bruno@clisp.org>
14086
14087         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
14088         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
14089         if the corresponding module is not enabled. Emit link warnings if
14090         the function is used nevertheless.
14091         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
14092         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
14093         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
14094         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
14095         * modules/inttypes (Depends-on): Add link-warning.
14096         (Makefile.am): Copy the contents of build-aux/link-warning.h into
14097         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
14098         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
14099         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
14100         * modules/imaxdiv (configure.ac): Likewise.
14101         * modules/strtoimax (configure.ac): Likewise.
14102         * modules/strtoumax (configure.ac): Likewise.
14103
14104 2007-02-17  Bruno Haible  <bruno@clisp.org>
14105
14106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
14107         gl_STRING_MODULE_INDICATOR_DEFAULTS.
14108         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
14109         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
14110
14111 2007-02-17  Bruno Haible  <bruno@clisp.org>
14112
14113         * modules/link-warning: New file.
14114         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
14115         * lib/string_.h (GL_LINK_WARNING): Remove definition.
14116         * modules/string (Depends-on): Add link-warning.
14117         (Makefile.am): Copy the contents of build-aux/link-warning.h into
14118         string.h.
14119         * MODULES.html.sh (Support for building libraries and executables): Add
14120         link-warning.
14121
14122 2007-02-17  Bruno Haible  <bruno@clisp.org>
14123
14124         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
14125         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
14126         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
14127         long lines.
14128
14129 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
14130             Bruno Haible  <bruno@clisp.org>
14131
14132         * modules/tmpfile: New file.
14133         * lib/tmpfile.c: New file.
14134         * m4/tmpfile.m4: New file.
14135         * MODULES.html.sh (func_all_modules): New section "Input/output".
14136
14137 2007-02-15  Bruno Haible  <bruno@clisp.org>
14138
14139         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
14140         (supports_delete_on_close): New function.
14141         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
14142
14143 2007-02-14  Bruno Haible  <bruno@clisp.org>
14144
14145         * modules/mbspcasecmp-tests: New file.
14146         * tests/test-mbspcasecmp.sh: New file.
14147         * tests/test-mbspcasecmp.c: New file.
14148
14149         New module mbspcasecmp.
14150         * modules/mbspcasecmp: New file.
14151         * lib/mbspcasecmp.c: New file.
14152         * lib/string_.h (strncasecmp): Change warning message.
14153         (mbspcasecmp): New declaration.
14154         * m4/mbspcasecmp.m4: New file.
14155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14156         GNULIB_MBSPCASECMP.
14157         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
14158         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
14159
14160 2007-02-14  Bruno Haible  <bruno@clisp.org>
14161
14162         * modules/mbsncasecmp-tests: New file.
14163         * tests/test-mbsncasecmp.sh: New file.
14164         * tests/test-mbsncasecmp.c: New file.
14165
14166         New module mbsncasecmp.
14167         * modules/mbsncasecmp: New file.
14168         * lib/mbsncasecmp.c: New file.
14169         * lib/string_.h (mbsncasecmp): New declaration.
14170         * m4/mbsncasecmp.m4: New file.
14171         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14172         GNULIB_MBSNCASECMP.
14173         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
14174         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
14175
14176 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14177
14178         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
14179         Verify that it doesn't overlap with our flags.
14180         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
14181         do not have the desired effect in multibyte locales; instead, use
14182         mbscasecmp.
14183         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
14184         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
14185         we don't require GNU fnmatch ourselves (if our users require it, they
14186         should do so explicitly).
14187
14188         Fix regex code so it doesn't rely on strcasecmp.
14189         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
14190         Otherwise, include gnulib's langinfo.h.
14191         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
14192         undesirable behavior in non-C locales.  Instead, rely on localecharset.
14193         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
14194         * modules/regex (FILES): Remove m4/codeset.m4.
14195         (Depends-on): Add localcharset.  Remove strcase.
14196
14197 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14198
14199         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
14200         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14201
14202 2007-02-13  Bruno Haible  <bruno@clisp.org>
14203
14204         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
14205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14206
14207 2007-02-12  Bruno Haible  <bruno@clisp.org>
14208
14209         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14210         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
14211         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
14212         time warning rather than a link error.
14213
14214 2007-02-12  Bruno Haible  <bruno@clisp.org>
14215
14216         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
14217         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14219
14220 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14221
14222         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
14223         args, not 2.
14224
14225 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14226
14227         New module 'time', so that apps can include <time.h> as per
14228         POSIX and GNU instead of separate include files like time_r.h
14229         and timegm.h.  This implementation tries out a simpler approach
14230         for replacing decls in standard include files (as compared to
14231         the string module), somewhat as an experiment.
14232
14233         * config/srclist.txt: Comment out mktime.c for now.
14234         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
14235         since it doesn't apply any more.  Use generic wording instead.
14236         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
14237         'time'.
14238         * lib/time_.h, m4/time_h.m4, modules/time: New files.
14239         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
14240         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
14241         Don't include <sys/types.h>; no longer needed since we assume C89.
14242         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
14243         * lib/strftime.c: Likewise.
14244         * lib/time_r.c: Likewise.
14245         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
14246         * lib/nanosleep.c: Include <time.h> first, to check interface.
14247         * lib/strptime.c: Likewise.
14248         * lib/time_r.c: Likewise.
14249         * lib/timegm.c: Likewise.
14250         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
14251         needed.
14252         * lib/timegm.c: Don't include timegm.h; no longer needed.
14253         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
14254         time.h now handles any problems in that area.
14255         (struct timespec, nanosleep): Remove; time.h now arranges for these.
14256         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
14257         that time.h defines struct timespec.
14258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
14259         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
14260         handles that.
14261         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
14262         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
14263         needed.  Set REPLACE_LOCALTIME.
14264         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
14265         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
14266         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
14267         nanosleep; time_h.m4 now does that.  Don't require
14268         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
14269         module handles this now.
14270         * modules/getdate (Depends-on): Remove timespec.  Add time.
14271         * modules/nanosleep (Depends-on): Likewise.
14272         * modules/stat-time (Depends-on): Likewise.
14273         * modules/nanosleep (Include): Include time.h, not timespec.h.
14274         * modules/strptime (Files): Remove lib/strptime.h.
14275         (Depends-on): Add extensions, time.
14276         (Include): Include time.h, not strptime.h.
14277         * modules/time_r (Files): Remove lib/time_r.h.
14278         (Depends-on): Add time.
14279         (Include): Include time.h, not time_r.h.
14280         * modules/timegm: Likewise.
14281         * modules/timespec (Description): Now does timespec-related decls
14282         of our own, instead of struct timespec itself.
14283         (Depends-on): Add time; remove extensions.
14284         (Maintainer): Add self.
14285         * modules/utimecmp (Depends-on): Add time; remove timespec.
14286         * modules/utimens (Depends-on): Likewise.
14287         * modules/xnanosleep (Depends-on): Likewise.
14288
14289 2007-02-11  Bruno Haible  <bruno@clisp.org>
14290
14291         * lib/c-strstr.c: Include allocsa.h.
14292         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14293         * lib/c-strcasestr.c: Include allocsa.h.
14294         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14295         * lib/strcasestr.c: Include allocsa.h.
14296         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14297         * lib/mbsstr.c: Include allocsa.h.
14298         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14299         allocsa/freesa instead of malloc/free.
14300         * lib/mbscasestr.c: Include allocsa.h.
14301         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14302         allocsa/freesa instead of malloc/free.
14303         * modules/c-strstr (Depends-on): Add allocsa.
14304         * modules/c-strcasestr (Depends-on): Likewise.
14305         * modules/strcasestr (Depends-on): Likewise.
14306         * modules/mbsstr (Depends-on): Likewise.
14307         * modules/mbscasestr (Depends-on): Likewise.
14308
14309 2007-02-11  Bruno Haible  <bruno@clisp.org>
14310
14311         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
14312
14313         * modules/mbsspn-tests: New file.
14314         * tests/test-mbsspn.sh: New file.
14315         * tests/test-mbsspn.c: New file.
14316
14317 2007-02-11  Bruno Haible  <bruno@clisp.org>
14318
14319         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
14320
14321         * modules/mbspbrk-tests: New file.
14322         * tests/test-mbspbrk.sh: New file.
14323         * tests/test-mbspbrk.c: New file.
14324
14325 2007-02-11  Bruno Haible  <bruno@clisp.org>
14326
14327         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
14328         unneeded cast.
14329
14330         * modules/mbscspn-tests: New file.
14331         * tests/test-mbscspn.sh: New file.
14332         * tests/test-mbscspn.c: New file.
14333
14334 2007-02-11  Bruno Haible  <bruno@clisp.org>
14335
14336         * modules/mbscasecmp-tests: New file.
14337         * tests/test-mbscasecmp.sh: New file.
14338         * tests/test-mbscasecmp.c: New file.
14339
14340 2007-02-11  Bruno Haible  <bruno@clisp.org>
14341
14342         Ensure O(n) worst-case complexity of mbscasestr.
14343         * lib/mbscasestr.c: Include stdbool.h.
14344         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14345         functions.
14346         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
14347         the bookkeeping indicates that it's worth it.
14348         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
14349
14350         * modules/mbscasestr-tests: New file.
14351         * tests/test-mbscasestr1.c: New file.
14352         * tests/test-mbscasestr2.sh: New file.
14353         * tests/test-mbscasestr2.c: New file.
14354         * tests/test-mbscasestr3.sh: New file.
14355         * tests/test-mbscasestr3.c: New file.
14356         * tests/test-mbscasestr4.sh: New file.
14357         * tests/test-mbscasestr4.c: New file.
14358         * m4/locale-tr.m4: New file.
14359
14360 2007-02-11  Bruno Haible  <bruno@clisp.org>
14361
14362         Ensure O(n) worst-case complexity of mbsstr.
14363         * lib/mbsstr.c: Include stdbool.h.
14364         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14365         functions.
14366         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
14367         bookkeeping indicates that it's worth it.
14368         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
14369
14370         * modules/mbsstr-tests: New file.
14371         * tests/test-mbsstr1.c: New file.
14372         * tests/test-mbsstr2.sh: New file.
14373         * tests/test-mbsstr2.c: New file.
14374         * tests/test-mbsstr3.sh: New file.
14375         * tests/test-mbsstr3.c: New file.
14376         * m4/locale-fr.m4: New file.
14377
14378 2007-02-11  Bruno Haible  <bruno@clisp.org>
14379
14380         * lib/mbsrchr.c (mbsrchr): Fix bug.
14381
14382         * modules/mbsrchr-tests: New file.
14383         * tests/test-mbsrchr.sh: New file.
14384         * tests/test-mbsrchr.c: New file.
14385
14386 2007-02-11  Bruno Haible  <bruno@clisp.org>
14387
14388         * lib/mbschr.c (mbschr): Fix bug.
14389
14390         * modules/mbschr-tests: New file.
14391         * tests/test-mbschr.sh: New file.
14392         * tests/test-mbschr.c: New file.
14393         * m4/locale-zh.m4: New file.
14394
14395 2007-02-11  Bruno Haible  <bruno@clisp.org>
14396
14397         Support for copying multibyte string iterators.
14398         * lib/mbiter.h: Include <string.h>.
14399         (mbiter_multi_copy): New function.
14400         (mbi_copy): New macro.
14401         * lib/mbuiter.h: Include <string.h>.
14402         (mbuiter_multi_copy): New function.
14403         (mbui_copy): New macro.
14404
14405 2007-02-11  Bruno Haible  <bruno@clisp.org>
14406
14407         New module mbslen.
14408         * modules/mbslen: New file.
14409         * lib/mbslen.c: New file.
14410         * lib/string_.h (mbslen): New declaration.
14411         * m4/mbslen.m4: New file.
14412         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14413         GNULIB_MBSLEN.
14414         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
14415         * MODULES.html.sh (Internationalization functions): Add mbslen.
14416
14417 2007-02-11  Bruno Haible  <bruno@clisp.org>
14418
14419         Ensure O(n) worst-case complexity of strcasestr substitute.
14420         * lib/strcasestr.c: Include stdbool.h.
14421         (knuth_morris_pratt): New function.
14422         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14423         bookkeeping indicates that it's worth it.
14424         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
14425
14426         * modules/strcasestr-tests: New file.
14427         * tests/test-strcasestr.c: New file.
14428
14429 2007-02-11  Bruno Haible  <bruno@clisp.org>
14430
14431         Ensure O(n) worst-case complexity of c_strcasestr.
14432         * lib/c-strcasestr.c: Include stdbool.h, string.h.
14433         (knuth_morris_pratt): New function.
14434         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
14435         the bookkeeping indicates that it's worth it.
14436         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
14437
14438         * modules/c-strcasestr-tests: New file.
14439         * tests/test-c-strcasestr.c: New file.
14440
14441 2007-02-11  Bruno Haible  <bruno@clisp.org>
14442
14443         Ensure O(n) worst-case complexity of c_strstr.
14444         * lib/c-strstr.c: Include stdbool.h, string.h.
14445         (knuth_morris_pratt): New function.
14446         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14447         bookkeeping indicates that it's worth it.
14448         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
14449
14450         * lib/c-strstr.c: Complete rewrite for maintainability.
14451
14452         * modules/c-strstr-tests: New file.
14453         * tests/test-c-strstr.c: New file.
14454
14455 2007-02-11  Bruno Haible  <bruno@clisp.org>
14456
14457         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
14458         5.2.1 and earlier, whereby \055 was treated just like the range
14459         delimiter '-'.
14460         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14461
14462 2007-02-08  Bruno Haible  <bruno@clisp.org>
14463
14464         * modules/regex (Depends-on): Add stdbool.
14465         Reported by Dalibor Topic <robilad@kaffe.org>.
14466
14467 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14468
14469         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
14470         Prefer returning from main to exiting from it.
14471         Remove unnecessary parens after sizeof.
14472
14473 2007-02-05  Bruno Haible  <bruno@clisp.org>
14474
14475         New module mbssep.
14476         * modules/mbssep: New file.
14477         * lib/mbssep.c: New file.
14478         * lib/string_.h (strsep): Add a conditional link warning.
14479         (mbssep): New declaration.
14480         * m4/mbssep.m4: New file.
14481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14482         GNULIB_MBSSEP.
14483         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
14484         * MODULES.html.sh (Internationalization functions): Add mbssep.
14485
14486 2007-02-05  Bruno Haible  <bruno@clisp.org>
14487
14488         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
14489         Optimize search in case of 1 delimiter.
14490
14491 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14492
14493         * lib/acl.h: Include sys/types.h before sys/acl.h.
14494
14495 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14496
14497         Merge upstream fix for glibc bugzilla #3957:
14498
14499         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
14500
14501         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
14502         bit for RE_HAT_LISTS_NOT_NEWLINE.
14503         (build_charclass_op): Remove bogus comment.
14504
14505 2007-02-05  Simon Josefsson  <simon@josefsson.org>
14506
14507         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
14508
14509 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14510
14511         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
14512         * lib/memmem.c [!defined _LIBC]: Include config.h.
14513
14514 2007-02-04  Bruno Haible  <bruno@clisp.org>
14515
14516         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
14517         warning message.
14518
14519 2007-02-04  Bruno Haible  <bruno@clisp.org>
14520
14521         New module mbstok_r.
14522         * modules/mbstok_r: New file.
14523         * lib/mbstok_r.c: New file.
14524         * lib/string_.h (strtok_r): Change argument names to match the
14525         comments. Add a conditional link warning.
14526         (mbstok_r): New declaration.
14527         * m4/mbstok_r.m4: New file.
14528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14529         GNULIB_MBSTOK_R.
14530         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
14531         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
14532
14533 2007-02-04  Bruno Haible  <bruno@clisp.org>
14534
14535         New module mbsspn.
14536         * modules/mbsspn: New file.
14537         * lib/mbsspn.c: New file.
14538         * lib/string_.h (strspn): Add a conditional link warning.
14539         (mbsspn): New declaration.
14540         * m4/mbsspn.m4: New file.
14541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14542         GNULIB_MBSSPN.
14543         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
14544         * MODULES.html.sh (Internationalization functions): Add mbsspn.
14545
14546 2007-02-04  Bruno Haible  <bruno@clisp.org>
14547
14548         New module mbspbrk.
14549         * modules/mbspbrk: New file.
14550         * lib/mbspbrk.c: New file.
14551         * lib/string_.h (strpbrk): Add a conditional link warning.
14552         (mbspbrk): New declaration.
14553         * m4/mbspbrk.m4: New file.
14554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14555         GNULIB_MBSPBRK.
14556         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
14557         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
14558
14559 2007-02-04  Bruno Haible  <bruno@clisp.org>
14560
14561         New module mbscspn.
14562         * modules/mbscspn: New file.
14563         * lib/mbscspn.c: New file.
14564         * lib/string_.h (strcspn): Add a conditional link warning.
14565         (mbscspn): New declaration.
14566         * m4/mbscspn.m4: New file.
14567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14568         GNULIB_MBSCSPN.
14569         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
14570         * MODULES.html.sh (Internationalization functions): Add mbscspn.
14571
14572 2007-02-04  Bruno Haible  <bruno@clisp.org>
14573
14574         New module mbscasestr, reduced goal of strcasestr.
14575         * modules/mbscasestr: New file.
14576         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
14577         (mbscasestr): Renamed from strcasestr.
14578         * lib/strcasestr.c: Don't include mbuiter.h.
14579         (strcasestr): Remove support for multibyte locales.
14580         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
14581         Change the conditional link warning.
14582         (mbscasestr): New declaration.
14583         * m4/mbscasestr.m4: New file.
14584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
14585         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
14586         REPLACE_STRCASESTR.
14587         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
14588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14589         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14590         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
14591         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
14592         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14593         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
14594         (Depends-on): Remove mbuiter.
14595         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
14596
14597 2007-02-04  Bruno Haible  <bruno@clisp.org>
14598
14599         Simplify handling of strncasecmp.
14600         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
14601         the conditional link warning.
14602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14603         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
14604         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
14605         * modules/strcase (configure.ac): Don't invoke
14606         gl_STRING_MODULE_INDICATOR.
14607         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
14608
14609 2007-02-04  Bruno Haible  <bruno@clisp.org>
14610
14611         New module mbscasecmp, reduced goal of strcasecmp.
14612         * modules/mbscasecmp: New file.
14613         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
14614         (mbscasecmp): Renamed from strcasecmp.
14615         * lib/strcasecmp.c: Don't include mbuiter.h.
14616         (strcasecmp): Remove support for multibyte locales.
14617         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
14618         Change the conditional link warning.
14619         (mbscasecmp): New declaration.
14620         * m4/mbscasecmp.m4: New file.
14621         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
14622         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
14623         REPLACE_STRCASECMP.
14624         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
14625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14626         GNULIB_MBSCASECMP.
14627         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
14628         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
14629         * modules/strcase (Files): Remove m4/mbrtowc.m4.
14630         (Depends-on): Remove mbuiter.
14631         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
14632
14633 2007-02-04  Bruno Haible  <bruno@clisp.org>
14634
14635         New module mbsstr. Remove module strstr.
14636         * modules/mbsstr: New file.
14637         * modules/strstr: Remove file.
14638         * lib/mbsstr.c: Renamed from lib/strstr.c.
14639         (mbsstr): Renamed from strstr.
14640         * lib/string_.h (strstr): Remove declaration. Change the conditional
14641         link warning.
14642         (mbsstr): New declaration.
14643         * m4/mbsstr.m4: New file.
14644         * m4/strstr.m4: Remove file.
14645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14646         REPLACE_STRSTR.
14647         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
14648         Don't initialize GNULIB_STRSTR.
14649         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
14650         substitute GNULIB_STRSTR and REPLACE_STRSTR.
14651         * MODULES.html.sh (Internationalization functions): Add mbsstr.
14652         (Support for systems lacking ANSI C 89): Remove strstr.
14653
14654 2007-02-04  Bruno Haible  <bruno@clisp.org>
14655
14656         New module mbsrchr.
14657         * modules/mbsrchr: New file.
14658         * lib/mbsrchr.c: New file.
14659         * lib/string_.h (strrchr): Add a conditional link warning.
14660         (mbsrchr): New declaration.
14661         * m4/mbsrchr.m4: New file.
14662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14663         GNULIB_MBSRCHR.
14664         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
14665         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
14666
14667 2007-02-04  Bruno Haible  <bruno@clisp.org>
14668
14669         New module mbschr.
14670         * modules/mbschr: New file.
14671         * lib/mbschr.c: New file.
14672         * lib/string_.h (strchr): Add a conditional link warning.
14673         (mbschr): New declaration.
14674         * m4/mbschr.m4: New file.
14675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14676         GNULIB_MBSCHR.
14677         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
14678         * MODULES.html.sh (Internationalization functions): Add mbschr.
14679
14680 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14681
14682         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
14683
14684         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
14685
14686 2007-02-04  Bruno Haible  <bruno@clisp.org>
14687
14688         New module description section 'configure.ac-early'.
14689         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
14690         (func_get_autoconf_early_snippet): New function.
14691         (func_import, func_create_testdir): Use it. Remove special cases for
14692         modules 'extensions' and 'lock'.
14693         * modules/extensions (configure.ac-early): Require
14694         gl_USE_SYSTEM_EXTENSIONS.
14695         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
14696
14697 2007-02-04  Bruno Haible  <bruno@clisp.org>
14698
14699         Make use of gcj-4.3's -fsource and -ftarget option.
14700         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
14701         and if so try the options -fsource and -ftarget.
14702         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
14703         source_version, ftarget_option, target_version arguments.
14704         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
14705         (is_envjavac_oldgcj_14_14_usable): Renamed from
14706         is_envjavac_gcj_14_14_usable.
14707         (is_envjavac_oldgcj_14_13_usable): Renamed from
14708         is_envjavac_gcj_14_13_usable.
14709         (is_gcj_present): Update.
14710         (is_gcj_43, is_gcj43_usable): New functions.
14711         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
14712         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
14713         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
14714         try the options -fsource and -ftarget.
14715
14716 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14717
14718         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
14719         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
14720         larger value.
14721
14722 2007-02-03  Jim Meyering  <jim@meyering.net>
14723
14724         Give tools a better chance to allocate space for very large buffers.
14725         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
14726
14727         Make pwd and readlink work also when run with an unreadable parent dir
14728         on systems with openat support.
14729         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
14730         provided getcwd function, even when we have openat support.
14731         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
14732
14733 2007-02-02  Bruno Haible  <bruno@clisp.org>
14734
14735         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14736         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
14737         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
14738         portability problems if one of these functions is only used on specific
14739         platforms.
14740         Reported by Paul Eggert.
14741
14742 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14743
14744         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
14745         is causing more trouble than it's curing.
14746         * lib/regex_internal.h (__mempcpy): Remove.
14747         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
14748         (and make the code a tad smaller to boot).
14749         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
14750
14751 2007-02-02  Jim Meyering  <jim@meyering.net>
14752
14753         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
14754         section, not in the Makefile.am: one.
14755
14756 2007-02-02  Eric Blake  <ebb9@byu.net>
14757
14758         * lib/strchrnul.c: Always include config.h first.
14759
14760         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
14761         gnulib strstr is not necessary here.
14762
14763 2007-02-02  Simon Josefsson  <simon@josefsson.org>
14764
14765         * m4/socklen.m4: Fix typo.
14766
14767 2007-02-02  Eric Blake  <ebb9@byu.net>
14768
14769         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
14770         * modules/netinet_in (Makefile.am): Likewise.
14771
14772 2007-02-01  Bruno Haible  <bruno@clisp.org>
14773
14774         * lib/string_.h (GL_LINK_WARNING): New macro.
14775         (strcasecmp, strstr, strcasestr): If provided by the system,
14776         conditionally define as a macro that leads to a warning instead of to
14777         an error.
14778         (strncasecmp): Conditionally define as a macro that leads to a warning.
14779
14780 2007-02-01  Karl Berry  <karl@gnu.org>
14781
14782         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
14783
14784 2007-02-01  Bruno Haible  <bruno@clisp.org>
14785
14786         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
14787         renamings.
14788
14789 2007-02-01  Eric Blake  <ebb9@byu.net>
14790
14791         * modules/regex (Depends-on): Revert dependence on mempcpy.
14792         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
14793         module's definition of mempcpy.
14794         Reported by Paul Eggert.
14795
14796 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14797
14798         * lib/string_.h: If the gnulib module XYZ is not present, undefine
14799         the symbol XYZ before redefining it.  This fixes a problem with
14800         programs that don't use XYZ, when compiled on systems that define
14801         XYZ to something else.
14802
14803 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
14804
14805         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
14806         occurs when "mkdir -m foo" creates a setgid directory that is (1)
14807         writeable to group or other and (2) is intended to have a special
14808         mode bit that is set or cleared.  In such a case, the directory
14809         should be neither group- nor other-writeable until the special
14810         mode bits are right.
14811
14812 2007-01-31  Eric Blake  <ebb9@byu.net>
14813
14814         * modules/mountlist (Depends-on): Add strstr.
14815
14816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
14817         bug.
14818         * modules/string (Makefile.am): Remove redundant replacement.
14819         * modules/regex (Depends-on): Add mempcpy.
14820
14821 2007-01-31  Bruno Haible  <bruno@clisp.org>
14822
14823         New module description field 'Link'.
14824         * gnulib-tool (func_usage): Document --extract-link-directive.
14825         (sed_extract_prog): Recognize 'Link' directive.
14826         (func_get_link_directive): New function.
14827         (func_import): Show summary of link directives.
14828         Handle --extract-link-directive option.
14829         * modules/acl (Link): New section.
14830         * modules/clock-time (Link): New section.
14831         * modules/euidaccess (Link): New section.
14832         * modules/gettext (Link): New section.
14833         * modules/iconv (Link): New section.
14834         * modules/lock (Link): New section.
14835         * modules/nanosleep (Link): New section.
14836         * modules/readline (Link): New section.
14837
14838 2007-01-27  Bruno Haible  <bruno@clisp.org>
14839
14840         Enforce the use of gnulib modules for unportable <string.h> functions.
14841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
14842         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
14843         (gl_HEADER_STRING_H_BODY): Require it.
14844         * lib/string_.h: If the gnulib module XYZ is not present, redefine
14845         the symbol XYZ to one that gives a link error.
14846         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
14847         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
14848         * modules/mempcpy (configure.ac): Likewise.
14849         * modules/memrchr (configure.ac): Likewise.
14850         * modules/stpcpy (configure.ac): Likewise.
14851         * modules/stpncpy (configure.ac): Likewise.
14852         * modules/strcase (configure.ac): Likewise.
14853         * modules/strcasestr (configure.ac): Likewise.
14854         * modules/strchrnul (configure.ac): Likewise.
14855         * modules/strdup (configure.ac): Likewise.
14856         * modules/strndup (configure.ac): Likewise.
14857         * modules/strnlen (configure.ac): Likewise.
14858         * modules/strpbrk (configure.ac): Likewise.
14859         * modules/strsep (configure.ac): Likewise.
14860         * modules/strstr (configure.ac): Likewise.
14861         * modules/strtok_r (configure.ac): Likewise.
14862
14863 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
14864
14865         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
14866
14867 2007-01-30  Jim Meyering  <jim@meyering.net>
14868
14869         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
14870
14871 2007-01-29  Bruno Haible  <bruno@clisp.org>
14872
14873         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
14874         * lib/execute.c: Likewise.
14875         * lib/pipe.c: Likewise.
14876         * lib/printf-args.h: Likewise.
14877         * lib/printf-args.c: Likewise.
14878         * lib/printf-parse.c: Likewise.
14879         * lib/vasnprintf.c: Likewise.
14880
14881 2007-01-29  Eric Blake  <ebb9@byu.net>
14882
14883         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
14884         declaration.
14885
14886 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14887
14888         * lib/strptime.h (strptime): Use 'restrict' for args where
14889         POSIX requires this.
14890         * lib/strptime.c (strptime): Likewise.
14891         Change license notice from LGPL to GPL, since gnulib-tool will
14892         change this as needed.
14893         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
14894         defined.
14895         Include "strptime.h" first, to check interface.
14896         Do not #undef _LIBC and _NL_CURRENT.
14897         Do not include <stdlib.h>; no longer needed.
14898         Include "time_r.h" and declare ptime_locale_status
14899         only if _LIBC is not defined.
14900         (__P): Remove unused macro.
14901         (match_string): Bring back glibc version, but use it only if _LIBC
14902         is defined.
14903         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
14904         Remove unnecessary assertion and abort() call.
14905         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
14906         * m4/strptime.m4: Fix serial number comment.
14907         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
14908         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
14909         (Depends-on): Add time_r.
14910
14911 2007-01-29  Bruno Haible  <bruno@clisp.org>
14912
14913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14914         strptime.
14915         * modules/strptime (Depends-on): Add stdbool.
14916         * lib/strptime.h: Include <time.h> always. Add comments.
14917
14918 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14919
14920         * modules/strptime: New file.
14921         * lib/strptime.h: New file.
14922         * lib/strptime.c: New file.
14923         * m4/strptime.m4: New file.
14924
14925 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14926
14927         * MODULES.html.sh: New module mpsort.
14928         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
14929
14930         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
14931         a circularity problem with HP-UX ia64 reported by Bob Proulx in
14932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
14933         All uses changed.
14934         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
14935         All uses changed.
14936         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
14937         to _Restrict_.
14938         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
14939         the parameter matches the prototype.
14940
14941 2007-01-28  Jim Meyering  <jim@meyering.net>
14942
14943         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
14944         sys/time.h here, reverting that part of the previous patch:
14945         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
14946
14947 2007-01-28  Bruno Haible  <bruno@clisp.org>
14948
14949         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
14950         value of $(SYS_TIME_H).
14951         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
14952         remove it conditionally, too. [added by Jim Meyering]
14953         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
14954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
14955         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
14956         GETTIMEOFDAY_REPLACEMENT to 1.
14957
14958 2007-01-28  Bruno Haible  <bruno@clisp.org>
14959
14960         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
14961         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
14962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
14963         Set UNISTD_H instead of UNISTD_H2.
14964         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
14965
14966 2007-01-28  Bruno Haible  <bruno@clisp.org>
14967
14968         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
14969         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
14970
14971 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14972
14973         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
14974         (func_create_testdir): Ensure C locale for `grep' and `tr'
14975         character ranges.
14976         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
14977         ACLOCAL_AMFLAGS parsing state machine.
14978
14979 2007-01-27  Bruno Haible  <bruno@clisp.org>
14980
14981         * modules/unistr/base: Update.
14982
14983 2007-01-27  Bruno Haible  <bruno@clisp.org>
14984
14985         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
14986         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
14987         * modules/unistr/u32-mbtouc-unsafe: Renamed from
14988         modules/unistr/u32-mbtouc.
14989         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
14990         * lib/unistr.h: Update.
14991         * lib/linebreak.c: Update.
14992         * modules/unistr/u32-mbtouc: Renamed from
14993         modules/unistr/u32-mbtouc-safe.
14994         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
14995         * lib/unistr.h: Update.
14996         * lib/unistr/u32-to-u8.c: Update.
14997         * lib/unistr/u32-to-u16.c: Update.
14998
14999 2007-01-27  Bruno Haible  <bruno@clisp.org>
15000
15001         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
15002         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
15003         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
15004         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
15005         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
15006         * modules/unistr/u16-mbtouc-unsafe: Renamed from
15007         modules/unistr/u16-mbtouc.
15008         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
15009         * lib/unistr.h: Update.
15010         * lib/linebreak.c: Update.
15011         * modules/linebreak: Update.
15012         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
15013         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
15014         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
15015         * modules/unistr/u16-mbtouc: Renamed from
15016         modules/unistr/u16-mbtouc-safe.
15017         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
15018         * lib/unistr.h: Update.
15019         * lib/unistr/u16-to-u8.c: Update.
15020         * modules/unistr/u16-to-u8: Update.
15021         * lib/unistr/u16-to-u32.c: Update.
15022         * modules/unistr/u16-to-u32: Update.
15023
15024 2007-01-27  Bruno Haible  <bruno@clisp.org>
15025
15026         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
15027         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
15028         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
15029         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
15030         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
15031         * modules/unistr/u8-mbtouc-unsafe: Renamed from
15032         modules/unistr/u8-mbtouc.
15033         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
15034         * lib/unistr.h: Update.
15035         * lib/striconveh.c: Update.
15036         * modules/striconveh: Update.
15037         * lib/linebreak.c: Update.
15038         * modules/linebreak: Update.
15039         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
15040         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
15041         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
15042         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
15043         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
15044         * lib/unistr.h: Update.
15045         * lib/striconveh.c: Update.
15046         * modules/striconveh: Update.
15047         * lib/unistr/u8-to-u16.c: Update.
15048         * modules/unistr/u8-to-u16: Update.
15049         * lib/unistr/u8-to-u32.c: Update.
15050         * modules/unistr/u8-to-u32: Update.
15051
15052 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15053
15054         Sync from Libtool.
15055         * lib/argz.c: Do not include strings.h nor memory.h, include
15056         string.h unconditionally.  Patch by Simon Josefsson.
15057
15058 2007-01-27  Bruno Haible  <bruno@clisp.org>
15059
15060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
15061         from gl_HEADER_STRING_H_BODY.
15062         (gl_HEADER_STRING_H_BODY): Require it.
15063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
15064         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
15065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
15066         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
15067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15068         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
15069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15070         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
15071         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
15072         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15073         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
15074         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
15075         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
15076         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15077         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15078
15079 2007-01-27  Bruno Haible  <bruno@clisp.org>
15080
15081         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
15082         check_PROGRAMS into noinst_PROGRAMS.
15083         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
15084         check_PROGRAMS in this case.
15085         (func_import): Set for_test to false.
15086         (func_create_testdir): Set for_test to true.
15087
15088 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15089             Bruno Haible  <bruno@clisp.org>
15090
15091         * modules/strcasestr (Files): Remove lib/strcasestr.h.
15092         (Depends-on): Add string.
15093         (Includes): Use <string.h> instead of strcasestr.h.
15094         * modules/string (Makefile.am): Also substitute the value of
15095         REPLACE_STRCASESTR.
15096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
15097         assume strcasestr is declared in <string.h> not <strings.h>. Also
15098         set REPLACE_STRCASESTR.
15099         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
15100         REPLACE_STRCASESTR.
15101         * lib/strcasestr.h: Remove file.
15102         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
15103         * lib/string_.h (strcasestr): New declaration.
15104
15105 2007-01-27  Bruno Haible  <bruno@clisp.org>
15106
15107         * lib/string_.h: Use 'extern'.
15108
15109 2007-01-27  Jim Meyering  <jim@meyering.net>
15110
15111         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
15112         of set-but-not-used local, "q".
15113
15114         * lib/mempcpy.c: Include <config.h> before <string.h>.
15115         This fixes a compilation error on HP-UX, due to the system's
15116         "restrict"-using mempcpy prototype.
15117
15118 2007-01-26  Bruno Haible  <bruno@clisp.org>
15119
15120         Small optimization.
15121         * lib/javacomp.c: Include c-strstr.h.
15122          (is_envjavac_gcj): Use c_strstr instead of strstr.
15123         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
15124
15125 2007-01-26  Bruno Haible  <bruno@clisp.org>
15126
15127         * MODULES.html.sh (Unicode string functions): Add the new modules.
15128
15129         * modules/uniconv/u32-strconv-to-locale: New file.
15130         * lib/uniconv/u32-strconv-to-locale.c: New file.
15131
15132         * modules/uniconv/u16-strconv-to-locale: New file.
15133         * lib/uniconv/u16-strconv-to-locale.c: New file.
15134
15135         * modules/uniconv/u8-strconv-to-locale: New file.
15136         * lib/uniconv/u8-strconv-to-locale.c: New file.
15137
15138         * modules/uniconv/u32-strconv-from-locale: New file.
15139         * lib/uniconv/u32-strconv-from-locale.c: New file.
15140
15141         * modules/uniconv/u16-strconv-from-locale: New file.
15142         * lib/uniconv/u16-strconv-from-locale.c: New file.
15143
15144         * modules/uniconv/u8-strconv-from-locale: New file.
15145         * lib/uniconv/u8-strconv-from-locale.c: New file.
15146
15147         * modules/uniconv/u32-strconv-to-enc: New file.
15148         * lib/uniconv/u32-strconv-to-enc.c: New file.
15149         * modules/uniconv/u32-strconv-to-enc-tests: New file.
15150         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
15151
15152         * modules/uniconv/u16-strconv-to-enc: New file.
15153         * lib/uniconv/u16-strconv-to-enc.c: New file.
15154         * lib/uniconv/u-strconv-to-enc.h: New file.
15155         * modules/uniconv/u16-strconv-to-enc-tests: New file.
15156         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
15157
15158         * modules/uniconv/u8-strconv-to-enc: New file.
15159         * lib/uniconv/u8-strconv-to-enc.c: New file.
15160         * modules/uniconv/u8-strconv-to-enc-tests: New file.
15161         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
15162
15163         * modules/uniconv/u32-strconv-from-enc: New file.
15164         * lib/uniconv/u32-strconv-from-enc.c: New file.
15165         * modules/uniconv/u32-strconv-from-enc-tests: New file.
15166         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
15167
15168         * modules/uniconv/u16-strconv-from-enc: New file.
15169         * lib/uniconv/u16-strconv-from-enc.c: New file.
15170         * modules/uniconv/u16-strconv-from-enc-tests: New file.
15171         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
15172
15173         * modules/uniconv/u8-strconv-from-enc: New file.
15174         * lib/uniconv/u8-strconv-from-enc.c: New file.
15175         * lib/uniconv/u-strconv-from-enc.h: New file.
15176         * modules/uniconv/u8-strconv-from-enc-tests: New file.
15177         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
15178
15179         * modules/uniconv/u32-conv-from-enc: New file.
15180         * lib/uniconv/u32-conv-from-enc.c: New file.
15181         * modules/uniconv/u32-conv-from-enc-tests: New file.
15182         * tests/uniconv/test-u32-conv-from-enc.c: New file.
15183
15184         * modules/uniconv/u16-conv-from-enc: New file.
15185         * lib/uniconv/u16-conv-from-enc.c: New file.
15186         * lib/uniconv/u-conv-from-enc.h: New file.
15187         * modules/uniconv/u16-conv-from-enc-tests: New file.
15188         * tests/uniconv/test-u16-conv-from-enc.c: New file.
15189
15190         * modules/uniconv/u8-conv-from-enc: New file.
15191         * lib/uniconv/u8-conv-from-enc.c: New file.
15192         * modules/uniconv/u8-conv-from-enc-tests: New file.
15193         * tests/uniconv/test-u8-conv-from-enc.c: New file.
15194
15195         * modules/uniconv/base: New file.
15196         * lib/uniconv.h: New file.
15197
15198 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
15199
15200         * doc/gnulib-tool.texi (Initial import): Update to match current
15201         behavior with strdup module.
15202         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
15203         * lib/memmem.h: Remove; all uses removed.  This is now done
15204         by <string.h>.
15205         * lib/mempcpy.h: Likewise.
15206         * lib/memrchr.h: Likewise.
15207         * lib/stpcpy.h: Likewise.
15208         * lib/stpncpy.h: Likewise.
15209         * lib/strcase.h: Likewise.
15210         * lib/strchrnul.h: Likewise.
15211         * lib/strdup.h: Likewise.
15212         * lib/strndup.h: Likewise.
15213         * lib/strnlen.h: Likewise.
15214         * lib/strpbrk.h: Likewise.
15215         * lib/strsep.h: Likewise.
15216         * lib/strstr.h: Likewise.
15217         * lib/strtok_r.h: Likewise.
15218         * lib/string_.h: New file.
15219         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
15220         Rely on <string.h> instead.
15221         * lib/canon-host.c: Likewise.
15222         * lib/chdir-long.c: Likewise.
15223         * lib/concatpath.c: Likewise.
15224         * lib/exclude.c: Likewise.
15225         * lib/fchdir.c: Likewise.
15226         * lib/getaddrinfo.c: Likewise.
15227         * lib/getcwd.c: Likewise.
15228         * lib/getsubopt.c: Likewise.
15229         * lib/glob.c: Likewise.
15230         * lib/hard-locale.c: Likewise.
15231         * lib/iconvme.c: Likewise.
15232         * lib/javacomp.c: Likewise.
15233         * lib/mempcpy.c: Likewise.
15234         * lib/memrchr.c: Likewise.
15235         * lib/regex_internal.h: Likewise.
15236         * lib/stpncpy.c: Likewise.
15237         * lib/strcasecmp.c: Likewise.
15238         * lib/strchrnul.c: Likewise.
15239         * lib/strdup.c: Likewise.
15240         * lib/striconv.c: Likewise.
15241         * lib/striconveh.c: Likewise.
15242         * lib/striconveha.c: Likewise.
15243         * lib/strncasecmp.c: Likewise.
15244         * lib/strndup.c: Likewise.
15245         * lib/strnlen.c: Likewise.
15246         * lib/strsep.c: Likewise.
15247         * lib/strstr.c: Likewise.
15248         * lib/strtok_r.c: Likewise.
15249         * lib/userspec.c: Likewise.
15250         * lib/w32spawn.h: Likewise.
15251         * lib/xstrndup.c: Likewise.
15252         * lib/mountlist.c (strstr): Remove decl.
15253         * m4/string_h.m4: New file.
15254         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
15255         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
15256         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
15257         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
15258         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
15259         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
15260         Set REPLACE_STRCASECMP if necessary.
15261         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
15262         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
15263         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
15264         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
15265         HAVE_DECL_STRDUP if necessary.
15266         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
15267         since gl_FUNC_STRNDUP does that now.
15268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
15269         Check for decl here...
15270         (gl_PREREQ_STRNLEN): ... not here.
15271         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
15272         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
15273         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
15274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
15275         necessary.
15276         * modules/string: New file.
15277         * modules/memmem (Files): Remove special-purpose include file.
15278         (Depends-on): Add string.
15279         (Include): Include <string.h>, not the removed file.
15280         * modules/mempcpy: Likewise.
15281         * modules/memrchr: Likewise.
15282         * modules/stpcpy: Likewise.
15283         * modules/stpncpy: Likewise.
15284         * modules/strcase: Likewise.
15285         * modules/strchrnul: Likewise.
15286         * modules/strdup: Likewise.
15287         * modules/strndup: Likewise.
15288         * modules/strnlen: Likewise.
15289         * modules/strpbrk: Likewise.
15290         * modules/strsep: Likewise.
15291         * modules/strstr: Likewise.
15292         * modules/strtok_r: Likewise.
15293         * tests/test-dirname.c: Don't include "strdup.h", since
15294         <string.h> now suffices.
15295         * tests/test-memmem.c: Don't include "memmem.h", since
15296         <string.h> now suffices.
15297
15298 2007-01-25  Bruno Haible  <bruno@clisp.org>
15299
15300         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
15301         *resultp is 0.
15302
15303         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
15304         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
15305         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
15306         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
15307
15308         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
15309         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
15310         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
15311         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
15312         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
15313         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
15314
15315 2007-01-24  Bruno Haible  <bruno@clisp.org>
15316
15317         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
15318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
15319         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
15320         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
15321         gl_FUNC_FTS_CORE.
15322         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
15323         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
15324         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15325         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
15326         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
15327         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
15328         gl_FUNC_FCHOWNAT.
15329         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
15330         gl_FUNC_STRFTIME.
15331         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
15332         Reported by Ralf Wildenhues.
15333
15334 2007-01-24  Bruno Haible  <bruno@clisp.org>
15335
15336         Drop AC_REQUIRE calls that are redundant with the module dependencies.
15337         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
15338         gl_GETADDRINFO.
15339         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
15340         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
15341         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
15342
15343 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
15344
15345         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
15346         Don't use 'exit'; just return from 'main'.
15347         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
15348
15349         * lib/fnmatch_.h: Readjust white space and comments to match
15350         glibc, to avoid spurious diffs.
15351
15352 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15353
15354         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
15355         2004-12-01 change by Jakub Jelinek, since this code won't compile
15356         if !LIBC.  Problem reported by Bob Proulx.
15357
15358 2007-01-23  Bruno Haible  <bruno@clisp.org>
15359
15360         * lib/striconveh.c: Include c-strcaseeq.h.
15361         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
15362         * modules/striconveh (Depends-on): Add c-strcaseeq.
15363
15364 2007-01-23  Bruno Haible  <bruno@clisp.org>
15365
15366         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
15367
15368         * modules/c-strcaseeq: New file.
15369         * lib/c-strcaseeq.h: New file.
15370
15371         * modules/streq: New file.
15372         * lib/streq.h: New file.
15373
15374 2007-01-23  Bruno Haible  <bruno@clisp.org>
15375
15376         * modules/striconveha-tests: New file.
15377         * tests/test-striconveha.c: New file.
15378
15379         * lib/striconveha.h: Include <stdbool.h>.
15380         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
15381         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
15382         (mem_iconveha_notranslit): Renamed from mem_iconveha.
15383         (mem_iconveha): New function.
15384         (str_iconveha_notranslit): Renamed from str_iconveha.
15385         (str_iconveha): New function.
15386         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
15387         c-strcase.
15388
15389 2007-01-23  Bruno Haible  <bruno@clisp.org>
15390
15391         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
15392         encodings without forgiving before trying any encoding with handler.
15393         (str_iconveha): Try all encodings without forgiving before trying any
15394         encoding with handler.
15395
15396 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15397
15398         Import the following changes from libc.
15399
15400         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
15401
15402         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
15403
15404         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15405
15406         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
15407         normal_bracket label.
15408
15409         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
15410
15411         [BZ #361]
15412         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
15413         to normal_bracket after fetching the next character.
15414
15415 2007-01-22  Bruno Haible  <bruno@clisp.org>
15416
15417         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
15418         argument.
15419         * lib/striconveh.c (iconv_carefully_1): New function.
15420         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
15421         argument.
15422         (str_cd_iconveh): Update.
15423         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
15424         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
15425         * tests/test-striconveh.c (MAGIC): New macro.
15426         (new_offsets): New function.
15427         (main): Test call with and without offsets.
15428
15429 2007-01-22  Bruno Haible  <bruno@clisp.org>
15430
15431         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
15432         * modules/sys_select (Makefile.am): Likewise.
15433         * modules/sys_socket (Makefile.am): Likewise.
15434         * modules/sys_time (Makefile.am): Likewise.
15435
15436 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15437
15438         * modules/gettimeofday (License): Change from GPL to LGPL, since
15439         gettimeofday is a library function.
15440
15441 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15442
15443         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
15444
15445 2007-01-21  Bruno Haible  <bruno@clisp.org>
15446
15447         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
15448
15449 2007-01-21  Bruno Haible  <bruno@clisp.org>
15450
15451         * modules/striconveha: New file.
15452         * lib/striconveha.h: New file.
15453         * lib/striconveha.c: New file.
15454         * MODULES.html.sh (Internationalization functions): Add striconveha.
15455         * lib/striconv.c (str_iconv): Optimize the case of an empty input
15456         string.
15457         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
15458
15459 2007-01-21  Bruno Haible  <bruno@clisp.org>
15460
15461         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
15462         * lib/striconveh.c (str_iconveh): Likewise.
15463
15464 2007-01-21  Bruno Haible  <bruno@clisp.org>
15465
15466         * lib/striconveh.h (mem_iconveh): New declaration.
15467         * lib/striconveh.c (mem_iconveh): New function.
15468         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
15469
15470 2007-01-21  Bruno Haible  <bruno@clisp.org>
15471
15472         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
15473
15474         * lib/striconveh.h (mem_cd_iconveh): Change specification.
15475         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
15476         original result buffer.
15477         (str_cd_iconveh): Update.
15478         * tests/test-striconveh.c (main): Update.
15479
15480         * lib/striconv.h (mem_cd_iconv): Change specification.
15481         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
15482         result buffer.
15483         (str_cd_iconv): Update.
15484         * tests/test-striconv.c (main): Update.
15485
15486 2007-01-21  Bruno Haible  <bruno@clisp.org>
15487
15488         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
15489
15490 2007-01-20  Jim Meyering  <jim@meyering.net>
15491
15492         * lib/userspec.c (parse_with_separator): If a user or group string
15493         starts with "+", skip the corresponding name-to-ID look-up, since
15494         such a look-up must fail: user and group names may not include "+".
15495
15496 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15497
15498         * lib/poll.c: Include sys/time.h and time.h unconditionally,
15499         since we now assume the sys_time module.
15500         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
15501         check for sys/time.h; no longer needed.
15502         * modules/poll (Depends-on): Depend on sys_time.
15503
15504 2007-01-18  Bruno Haible  <bruno@clisp.org>
15505
15506         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
15507         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15508
15509         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
15510         gettimeofday.
15511
15512         * tests/test-gettimeofday.c: Include <time.h>.
15513         (dummy): Remove variable.
15514
15515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
15516         gl_HEADER_SYS_TIME_H.
15517         (gl_HEADER_SYS_TIME_H): New macro.
15518
15519         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
15520         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15521         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15522         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
15523         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15524         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
15525         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
15526         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15527         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
15528         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
15529         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15530
15531         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
15532         last change; it caused a compilation error when cross-compiling to
15533         Cygwin.
15534
15535 2007-01-18  Jim Meyering  <jim@meyering.net>
15536
15537         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
15538         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
15539         than the race-prone "test -d sys || mkdir sys".
15540         (configure.ac): Use AC_PROG_MKDIR_P.
15541         * modules/sys_select: Likewise.
15542         * modules/sys_socket: Likewise.
15543         * modules/sys_time: Likewise.
15544
15545 2007-01-18  Eric Blake  <ebb9@byu.net>
15546
15547         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
15548         replace gettimeofday.
15549         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
15550         name, to avoid infinite recursion.
15551
15552 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
15553
15554         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
15555         module sys_time.
15556         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
15557         assume timespec.h defines struct timeval.
15558         * lib/settime.c: Likewise.
15559         * lib/utimens.c: Likewise.
15560         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
15561         since we now assume the gettimeofday module.
15562         * lib/tempname.c (__gen_tempname): Likewise.
15563         * lib/gettimeofday.h: Remove.
15564         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
15565         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
15566         Include <time.h>, for 'time()'.
15567         (localtime_buffer_addr): Also use this workaround if
15568         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
15569         to simplify the uses.  All uses changed.
15570         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
15571         that #undef is inside {}, and 'const' follows type name consistently.
15572         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
15573         (gettimeofday): Do not use the maximum possible value for
15574         tv->tv_usec, since that might break usages other than ls.c.
15575         Instead, we'll leave ls.c alone.  This undoes today's patch
15576         by Bruno.  Add a compile-time warning for 1s-clock resolution;
15577         we've never observed the problem but might as well keep the
15578         canary.
15579         * lib/nanosleep.c: Include timespec.h first, for interface check.
15580         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
15581         now assume the sys_time module.
15582         * lib/tempname.c: Likewise.
15583         * lib/timespec.h: Likewise.
15584         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
15585         needed.
15586         * lib/strftime.c: Likewise.
15587         * lib/timespec.h: Likewise.
15588         * lib/posixtm.c: Include posixtm.h first, for interface check.
15589         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
15590         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
15591         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
15592         * lib/sys_time_.h: New file.
15593         * lib/timespec.h (struct timespec): Use long int, not long.
15594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15595         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
15596         Remove obsolescent call to AC_HEADER_TIME.
15597         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15599         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15600         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
15601         Likewise.
15602         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15603         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
15604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
15605         into the sys_time module.  Check for gettimeofday just once.
15606         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
15607         for gettimeofday signature to just check the signature.  Merely
15608         compile it, since linking doesn't test signature.  Improve test for
15609         whether gettimeofday.o is actually needed.
15610         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
15611         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
15612         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
15613         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15614         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
15615         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
15616         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
15617         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
15618         than worrying about sys/time.h.
15619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15620         Don't bother worrying about TIME_WITH_SYS_TIME.
15621         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15622         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
15623         * m4/sys_time_h.m4: New file.
15624         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
15625         Don't include sys/time.h.  Return from main rather than exiting.
15626         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
15627         all uses changed.
15628         * modules/gethrxtime (Depends-on): Add sys_time.
15629         * modules/gettime (Depends-on): Likewise.
15630         * modules/gettimeofday (Depends-on): Likewise.
15631         * modules/nanosleep (Depends-on): Likewise.
15632         * modules/settime (Depends-on): Likewise.
15633         * modules/tempname (Depends-on): Likewise.
15634         * modules/utimens (Depends-on): Likewise.
15635         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
15636         (Include:) Change back to <sys/time.h>.
15637         (Maintainer:) Add self.
15638         * modules/sys_time: New file.
15639         * modules/tempname (Depends-on): Add gettimeofday.
15640         * tests/test-gettimeofday.c: Include <sys/time.h>
15641         rather than gettimeofday.h.
15642
15643 2007-01-17  Bruno Haible  <bruno@clisp.org>
15644
15645         * gnulib-tool (func_get_license): Revert last patch. Instead, let
15646         the license default to GPL.
15647         (func_create_testdir): Don't complain if a module is LGPL and its
15648         tests module depends on GPLed modules.
15649
15650 2007-01-17  Bruno Haible  <bruno@clisp.org>
15651
15652         * lib/gettimeofday.c (gettimeofday): Add code for the case
15653         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
15654         maximum possible value for tv->tv_usec, rather than the minimum one.
15655
15656 2005-10-08  Martin Lambers  <marlam@marlam.de>
15657 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15658 2007-01-16  Bruno Haible  <bruno@clisp.org>
15659
15660         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
15661         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
15662         gl_FUNC_GETTIMEOFDAY.
15663         (Include): Add gettimeofday.h.
15664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
15665         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
15666         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
15667         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
15668         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
15669         * lib/gettimeofday.h: New file.
15670         * lib/gettimeofday.c: Include <sys/timeb.h>.
15671         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
15672         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15673         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
15674         fall back on time().
15675
15676         * tests/test-gettimeofday.c: New file.
15677         * modules/gettimeofday-tests: New file.
15678
15679 2007-01-16  Eric Blake  <ebb9@byu.net>
15680
15681         * modules/fnmatch (Depends-on): Depend on wchar.
15682         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
15683         * m4/fnmatch.m4: Likewise.
15684         * modules/mbchar (Makefile.am): Assume <wchar.h>.
15685         * m4/mbchar.m4: Likewise.
15686         * modules/mbswidth (Depends-on): Depend on wchar.
15687         * lib/mbswidth.c: Assume <wchar.h>.
15688         * m4/mbswidth.m4: Likewise.
15689         * modules/quotearg (Depends-on): Depend on wchar.
15690         * lib/quotearg.c: Assume <wchar.h>.
15691         * m4/quotearg.m4: Likewise.
15692         * modules/regex (Depends-on): Depend on wchar.
15693         * lib/regex_internal.h: Assume <wchar.h>.
15694         * m4/regex.m4: Likewise.
15695         * modules/stdint (Depends-on): Depend on wchar.
15696         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
15697         * m4/stdint.m4: Likewise.
15698         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
15699         * modules/strftime (Depends-on): Depend on wchar.
15700         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
15701         * modules/strtol (Depends-on): Depend on wchar.
15702         * lib/strtol.c: Assume <wchar.h>.
15703         * modules/wcwidth (Depends-on): Depend on wchar.
15704         * lib/wcwidth.h: Assume <wchar.h>.
15705         * m4/wcwidth.m4: Likewise.
15706
15707 2007-01-16  Bruno Haible  <bruno@clisp.org>
15708
15709         * modules/csharpexec-script: New, created from...
15710         * modules/csharpexec: ... this.
15711
15712 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
15713
15714         * modules/javaexec-script: New, created from...
15715         * modules/javaexec: ... this.
15716
15717 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15718
15719         * modules/poll (Dependencies): Add sys_select.
15720
15721 2007-01-15  Jim Meyering  <jim@meyering.net>
15722
15723         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
15724         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
15725         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
15726         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
15727
15728 2007-01-15  Bruno Haible  <bruno@clisp.org>
15729
15730         * modules/striconveh: New file.
15731         * lib/striconveh.h: New file.
15732         * lib/striconveh.c: New file.
15733         * MODULES.html.sh (Internationalization functions): Add striconveh.
15734
15735         * modules/striconveh-tests: New file.
15736         * tests/test-striconveh.c: New file.
15737
15738 2007-01-15  Bruno Haible  <bruno@clisp.org>
15739
15740         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
15741         not from GNU libiconv or GNU libc.
15742
15743 2007-01-15  Bruno Haible  <bruno@clisp.org>
15744
15745         * doc/gnulib-intro.texi (Copyright): Explain the different license
15746         terms for module descriptions, autoconf macros, tests, documentation.
15747
15748 2007-01-14  Bruno Haible  <bruno@clisp.org>
15749
15750         * modules/striconv-tests: New file.
15751         * tests/test-striconv.c: New file.
15752
15753 2007-01-14  Bruno Haible  <bruno@clisp.org>
15754
15755         * modules/iconv-tests: New file.
15756         * tests/test-iconv.c: New file.
15757
15758 2007-01-14  Bruno Haible  <bruno@clisp.org>
15759
15760         * gnulib-tool (func_get_license): For test modules, use the license of
15761         the main module.
15762
15763 2007-01-14  Bruno Haible  <bruno@clisp.org>
15764
15765         * modules/iconv (Include): Clarify that <iconv.h> can only be included
15766         if iconv is found to exist.
15767
15768 2007-01-14  Bruno Haible  <bruno@clisp.org>
15769
15770         * modules/c-ctype-tests: New file.
15771         * tests/test-c-ctype.c: New file.
15772
15773 2007-01-14  Bruno Haible  <bruno@clisp.org>
15774
15775         * modules/binary-io-tests: New file.
15776         * tests/test-binary-io.sh: New file.
15777         * tests/test-binary-io.c: New file.
15778
15779 2007-01-14  Bruno Haible  <bruno@clisp.org>
15780
15781         * modules/array-oset-tests: New file.
15782         * tests/test-array_oset.c: New file.
15783
15784 2007-01-14  Bruno Haible  <bruno@clisp.org>
15785
15786         * modules/array-list-tests: New file.
15787         * tests/test-array_list.c: New file.
15788
15789 2007-01-14  Bruno Haible  <bruno@clisp.org>
15790
15791         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
15792         and make.
15793         Reported by Simon Josefsson in
15794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
15795
15796 2007-01-14  Bruno Haible  <bruno@clisp.org>
15797
15798         * modules/allocsa-tests: New file.
15799         * tests/test-allocsa.c: New file.
15800
15801 2007-01-14  Bruno Haible  <bruno@clisp.org>
15802
15803         * modules/fchdir (Depends-on): Add absolute-header.
15804         * modules/unistd (Depends-on): Likewise.
15805
15806 2006-12-30  Bruno Haible  <bruno@clisp.org>
15807
15808         * modules/fchdir: New file.
15809         * modules/unistd (Files): Add lib/unistd_.h.
15810         (Makefile.am): Generate unistd.h from unistd_.h.
15811         * lib/fchdir.c: New file.
15812         * lib/dirent_.h: New file.
15813         * lib/unistd_.h: New file.
15814         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
15815         * m4/fchdir.m4: New file.
15816         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
15817         (gl_HEADER_UNISTD): Invoke it.
15818         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
15819         function.
15820         * lib/backupfile.c (opendir, closedir): Undefine.
15821         * lib/chown.c (open, close): Undefine.
15822         * lib/clean-temp.c (open, close): Undefine.
15823         * lib/copy-file.c (open, close): Undefine.
15824         * lib/execute.c (open, close): Undefine.
15825         * lib/fsusage.c (open, close): Undefine.
15826         * lib/gc-gnulib.c (open, close): Undefine.
15827         * lib/getcwd.c (opendir, closedir): Undefine.
15828         * lib/glob.c (opendir, closedir): Undefine.
15829         * lib/javacomp.c (open, close): Undefine.
15830         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
15831         * lib/openat-proc.c (open, close): Undefine.
15832         * lib/pagealign_alloc.c (open, close): Undefine.
15833         * lib/pipe.c (open, close): Undefine.
15834         * lib/progreloc.c (open, close): Undefine.
15835         * lib/savedir.c (opendir, closedir): Undefine.
15836         * lib/utime.c (open, close): Undefine.
15837         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
15838
15839 2007-01-10  Bruno Haible  <bruno@clisp.org>
15840
15841         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
15842
15843 2007-01-12  Eric Blake  <ebb9@byu.net>
15844
15845         Provide a robust <wchar.h>.  Further simplifications are now
15846         possible in other modules, but not included here.
15847         * modules/wchar: New module.
15848         * m4/wchar.m4: New file.
15849         * lib/wchar_.h: Likewise.
15850         * modules/mbchar (Depends-on): Depend on wchar, as the first use
15851         of the new module.
15852         * MODULES.html.sh (Extended multibyte and wide character utilities):
15853         New section.
15854
15855 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
15856
15857         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
15858         to a reasonable default for memory allocation.
15859         (xreadlink): Don't allocate a huge buffer, to work around a buggy
15860         file system that reports garbage st_size values for symlinks.
15861         Problem reported by Liyang Hu.
15862
15863 2007-01-11  Simon Josefsson  <simon@josefsson.org>
15864
15865         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
15866         Emacs .#* auto-save files).
15867
15868 2007-01-11  Bruno Haible  <bruno@clisp.org>
15869
15870         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
15871         directory.
15872
15873 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15874
15875         Use @...@ consistently in lib/wctype_.h.
15876         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
15877         on it being set to 1 or 0.
15878         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
15879         go back to AC_SUBSTing it.
15880         * modules/wctype (Makefile.am): Undo previous change.
15881
15882 2007-01-10  Eric Blake  <ebb9@byu.net>
15883
15884         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
15885         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
15886         * modules/wctype (Makefile.am): Likewise.
15887         Reported by Chris McGuire.
15888
15889 2007-01-10  Jim Meyering  <jim@meyering.net>
15890
15891         fts.c: a small readability/maintainability improvement
15892         * lib/fts.c (fts_read): Make this code slightly more readable and
15893         maintainable by hoisting the "sp->fts_cur = p" assignments to
15894         immediately follow the statements that set P.  Derived from
15895         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
15896
15897 2007-01-10  Eric Blake  <ebb9@byu.net>
15898
15899         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
15900         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
15901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15902         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15903         Reported by Chris McGuire.
15904
15905 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15906
15907         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
15908         in sed script.
15909
15910 2007-01-09  Bruno Haible  <bruno@clisp.org>
15911
15912         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
15913         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
15914         variables.
15915         (func_module): Use them.
15916
15917 2007-01-09  Bruno Haible  <bruno@clisp.org>
15918
15919         * modules/unistr/base: New file.
15920         * lib/unistr.h: New file.
15921
15922         * modules/unistr/u8-to-u16: New file.
15923         * lib/unistr/u8-to-u16.c: New file.
15924
15925         * modules/unistr/u8-to-u32: New file.
15926         * lib/unistr/u8-to-u32.c: New file.
15927
15928         * modules/unistr/u16-to-u8: New file.
15929         * lib/unistr/u16-to-u8.c: New file.
15930
15931         * modules/unistr/u16-to-u32: New file.
15932         * lib/unistr/u16-to-u32.c: New file.
15933
15934         * modules/unistr/u32-to-u8: New file.
15935         * lib/unistr/u32-to-u8.c: New file.
15936
15937         * modules/unistr/u32-to-u16: New file.
15938         * lib/unistr/u32-to-u16.c: New file.
15939
15940         * modules/unistr/u8-check: New file.
15941         * modules/unistr/u16-check: New file.
15942         * modules/unistr/u32-check: New file.
15943         * lib/unistr/u8-check.c: New file.
15944         * lib/unistr/u16-check.c: New file.
15945         * lib/unistr/u32-check.c: New file.
15946
15947         * modules/unistr/u8-chr: New file.
15948         * modules/unistr/u16-chr: New file.
15949         * modules/unistr/u32-chr: New file.
15950         * lib/unistr/u8-chr.c: New file.
15951         * lib/unistr/u16-chr.c: New file.
15952         * lib/unistr/u32-chr.c: New file.
15953
15954         * modules/unistr/u8-cmp: New file.
15955         * modules/unistr/u16-cmp: New file.
15956         * modules/unistr/u32-cmp: New file.
15957         * lib/unistr/u8-cmp.c: New file.
15958         * lib/unistr/u16-cmp.c: New file.
15959         * lib/unistr/u32-cmp.c: New file.
15960
15961         * modules/unistr/u8-cpy: New file.
15962         * modules/unistr/u16-cpy: New file.
15963         * modules/unistr/u32-cpy: New file.
15964         * lib/unistr/u8-cpy.c: New file.
15965         * lib/unistr/u16-cpy.c: New file.
15966         * lib/unistr/u32-cpy.c: New file.
15967         * lib/unistr/u-cpy.h: New file.
15968
15969         * modules/unistr/u8-cpy-alloc: New file.
15970         * modules/unistr/u16-cpy-alloc: New file.
15971         * modules/unistr/u32-cpy-alloc: New file.
15972         * lib/unistr/u8-cpy-alloc.c: New file.
15973         * lib/unistr/u16-cpy-alloc.c: New file.
15974         * lib/unistr/u32-cpy-alloc.c: New file.
15975         * lib/unistr/u-cpy-alloc.h: New file.
15976
15977         * modules/unistr/u8-endswith: New file.
15978         * modules/unistr/u16-endswith: New file.
15979         * modules/unistr/u32-endswith: New file.
15980         * lib/unistr/u8-endswith.c: New file.
15981         * lib/unistr/u16-endswith.c: New file.
15982         * lib/unistr/u32-endswith.c: New file.
15983         * lib/unistr/u-endswith.h: New file.
15984
15985         * modules/unistr/u8-mblen: New file.
15986         * modules/unistr/u16-mblen: New file.
15987         * modules/unistr/u32-mblen: New file.
15988         * lib/unistr/u8-mblen.c: New file.
15989         * lib/unistr/u16-mblen.c: New file.
15990         * lib/unistr/u32-mblen.c: New file.
15991
15992         * modules/unistr/u8-mbtouc: New file.
15993         * modules/unistr/u16-mbtouc: New file.
15994         * modules/unistr/u32-mbtouc: New file.
15995         * lib/unistr/u8-mbtouc.c: New file.
15996         * lib/unistr/u16-mbtouc.c: New file.
15997         * lib/unistr/u32-mbtouc.c: New file.
15998
15999         * modules/unistr/u8-mbtouc-safe: New file.
16000         * modules/unistr/u16-mbtouc-safe: New file.
16001         * modules/unistr/u32-mbtouc-safe: New file.
16002         * lib/unistr/u8-mbtouc-safe.c: New file.
16003         * lib/unistr/u16-mbtouc-safe.c: New file.
16004         * lib/unistr/u32-mbtouc-safe.c: New file.
16005
16006         * modules/unistr/u8-move: New file.
16007         * modules/unistr/u16-move: New file.
16008         * modules/unistr/u32-move: New file.
16009         * lib/unistr/u8-move.c: New file.
16010         * lib/unistr/u16-move.c: New file.
16011         * lib/unistr/u32-move.c: New file.
16012         * lib/unistr/u-move.h: New file.
16013
16014         * modules/unistr/u8-next: New file.
16015         * modules/unistr/u16-next: New file.
16016         * modules/unistr/u32-next: New file.
16017         * lib/unistr/u8-next.c: New file.
16018         * lib/unistr/u16-next.c: New file.
16019         * lib/unistr/u32-next.c: New file.
16020
16021         * modules/unistr/u8-prev: New file.
16022         * modules/unistr/u16-prev: New file.
16023         * modules/unistr/u32-prev: New file.
16024         * lib/unistr/u8-prev.c: New file.
16025         * lib/unistr/u16-prev.c: New file.
16026         * lib/unistr/u32-prev.c: New file.
16027
16028         * modules/unistr/u8-set: New file.
16029         * modules/unistr/u16-set: New file.
16030         * modules/unistr/u32-set: New file.
16031         * lib/unistr/u8-set.c: New file.
16032         * lib/unistr/u16-set.c: New file.
16033         * lib/unistr/u32-set.c: New file.
16034         * lib/unistr/u-set.h: New file.
16035
16036         * modules/unistr/u8-startswith: New file.
16037         * modules/unistr/u16-startswith: New file.
16038         * modules/unistr/u32-startswith: New file.
16039         * lib/unistr/u8-startswith.c: New file.
16040         * lib/unistr/u16-startswith.c: New file.
16041         * lib/unistr/u32-startswith.c: New file.
16042         * lib/unistr/u-startswith.h: New file.
16043
16044         * modules/unistr/u8-stpcpy: New file.
16045         * modules/unistr/u16-stpcpy: New file.
16046         * modules/unistr/u32-stpcpy: New file.
16047         * lib/unistr/u8-stpcpy.c: New file.
16048         * lib/unistr/u16-stpcpy.c: New file.
16049         * lib/unistr/u32-stpcpy.c: New file.
16050         * lib/unistr/u-stpcpy.h: New file.
16051
16052         * modules/unistr/u8-stpncpy: New file.
16053         * modules/unistr/u16-stpncpy: New file.
16054         * modules/unistr/u32-stpncpy: New file.
16055         * lib/unistr/u8-stpncpy.c: New file.
16056         * lib/unistr/u16-stpncpy.c: New file.
16057         * lib/unistr/u32-stpncpy.c: New file.
16058         * lib/unistr/u-stpncpy.h: New file.
16059
16060         * modules/unistr/u8-strcat: New file.
16061         * modules/unistr/u16-strcat: New file.
16062         * modules/unistr/u32-strcat: New file.
16063         * lib/unistr/u8-strcat.c: New file.
16064         * lib/unistr/u16-strcat.c: New file.
16065         * lib/unistr/u32-strcat.c: New file.
16066         * lib/unistr/u-strcat.h: New file.
16067
16068         * modules/unistr/u8-strchr: New file.
16069         * modules/unistr/u16-strchr: New file.
16070         * modules/unistr/u32-strchr: New file.
16071         * lib/unistr/u8-strchr.c: New file.
16072         * lib/unistr/u16-strchr.c: New file.
16073         * lib/unistr/u32-strchr.c: New file.
16074
16075         * modules/unistr/u8-strcmp: New file.
16076         * modules/unistr/u16-strcmp: New file.
16077         * modules/unistr/u32-strcmp: New file.
16078         * lib/unistr/u8-strcmp.c: New file.
16079         * lib/unistr/u16-strcmp.c: New file.
16080         * lib/unistr/u32-strcmp.c: New file.
16081
16082         * modules/unistr/u8-strcpy: New file.
16083         * modules/unistr/u16-strcpy: New file.
16084         * modules/unistr/u32-strcpy: New file.
16085         * lib/unistr/u8-strcpy.c: New file.
16086         * lib/unistr/u16-strcpy.c: New file.
16087         * lib/unistr/u32-strcpy.c: New file.
16088         * lib/unistr/u-strcpy.h: New file.
16089
16090         * modules/unistr/u8-strcspn: New file.
16091         * modules/unistr/u16-strcspn: New file.
16092         * modules/unistr/u32-strcspn: New file.
16093         * lib/unistr/u8-strcspn.c: New file.
16094         * lib/unistr/u16-strcspn.c: New file.
16095         * lib/unistr/u32-strcspn.c: New file.
16096         * lib/unistr/u-strcspn.h: New file.
16097
16098         * modules/unistr/u8-strdup: New file.
16099         * modules/unistr/u16-strdup: New file.
16100         * modules/unistr/u32-strdup: New file.
16101         * lib/unistr/u8-strdup.c: New file.
16102         * lib/unistr/u16-strdup.c: New file.
16103         * lib/unistr/u32-strdup.c: New file.
16104         * lib/unistr/u-strdup.h: New file.
16105
16106         * modules/unistr/u8-strlen: New file.
16107         * modules/unistr/u16-strlen: New file.
16108         * modules/unistr/u32-strlen: New file.
16109         * lib/unistr/u8-strlen.c: New file.
16110         * lib/unistr/u16-strlen.c: New file.
16111         * lib/unistr/u32-strlen.c: New file.
16112         * lib/unistr/u-strlen.h: New file.
16113
16114         * modules/unistr/u8-strmblen: New file.
16115         * modules/unistr/u16-strmblen: New file.
16116         * modules/unistr/u32-strmblen: New file.
16117         * lib/unistr/u8-strmblen.c: New file.
16118         * lib/unistr/u16-strmblen.c: New file.
16119         * lib/unistr/u32-strmblen.c: New file.
16120
16121         * modules/unistr/u8-strmbtouc: New file.
16122         * modules/unistr/u16-strmbtouc: New file.
16123         * modules/unistr/u32-strmbtouc: New file.
16124         * lib/unistr/u8-strmbtouc.c: New file.
16125         * lib/unistr/u16-strmbtouc.c: New file.
16126         * lib/unistr/u32-strmbtouc.c: New file.
16127
16128         * modules/unistr/u8-strncat: New file.
16129         * modules/unistr/u16-strncat: New file.
16130         * modules/unistr/u32-strncat: New file.
16131         * lib/unistr/u8-strncat.c: New file.
16132         * lib/unistr/u16-strncat.c: New file.
16133         * lib/unistr/u32-strncat.c: New file.
16134         * lib/unistr/u-strncat.h: New file.
16135
16136         * modules/unistr/u8-strncmp: New file.
16137         * modules/unistr/u16-strncmp: New file.
16138         * modules/unistr/u32-strncmp: New file.
16139         * lib/unistr/u8-strncmp.c: New file.
16140         * lib/unistr/u16-strncmp.c: New file.
16141         * lib/unistr/u32-strncmp.c: New file.
16142
16143         * modules/unistr/u8-strncpy: New file.
16144         * modules/unistr/u16-strncpy: New file.
16145         * modules/unistr/u32-strncpy: New file.
16146         * lib/unistr/u8-strncpy.c: New file.
16147         * lib/unistr/u16-strncpy.c: New file.
16148         * lib/unistr/u32-strncpy.c: New file.
16149         * lib/unistr/u-strncpy.h: New file.
16150
16151         * modules/unistr/u8-strnlen: New file.
16152         * modules/unistr/u16-strnlen: New file.
16153         * modules/unistr/u32-strnlen: New file.
16154         * lib/unistr/u8-strnlen.c: New file.
16155         * lib/unistr/u16-strnlen.c: New file.
16156         * lib/unistr/u32-strnlen.c: New file.
16157         * lib/unistr/u-strnlen.h: New file.
16158
16159         * modules/unistr/u8-strpbrk: New file.
16160         * modules/unistr/u16-strpbrk: New file.
16161         * modules/unistr/u32-strpbrk: New file.
16162         * lib/unistr/u8-strpbrk.c: New file.
16163         * lib/unistr/u16-strpbrk.c: New file.
16164         * lib/unistr/u32-strpbrk.c: New file.
16165         * lib/unistr/u-strpbrk.h: New file.
16166
16167         * modules/unistr/u8-strrchr: New file.
16168         * modules/unistr/u16-strrchr: New file.
16169         * modules/unistr/u32-strrchr: New file.
16170         * lib/unistr/u8-strrchr.c: New file.
16171         * lib/unistr/u16-strrchr.c: New file.
16172         * lib/unistr/u32-strrchr.c: New file.
16173
16174         * modules/unistr/u8-strspn: New file.
16175         * modules/unistr/u16-strspn: New file.
16176         * modules/unistr/u32-strspn: New file.
16177         * lib/unistr/u8-strspn.c: New file.
16178         * lib/unistr/u16-strspn.c: New file.
16179         * lib/unistr/u32-strspn.c: New file.
16180         * lib/unistr/u-strspn.h: New file.
16181
16182         * modules/unistr/u8-strstr: New file.
16183         * modules/unistr/u16-strstr: New file.
16184         * modules/unistr/u32-strstr: New file.
16185         * lib/unistr/u8-strstr.c: New file.
16186         * lib/unistr/u16-strstr.c: New file.
16187         * lib/unistr/u32-strstr.c: New file.
16188         * lib/unistr/u-strstr.h: New file.
16189
16190         * modules/unistr/u8-strtok: New file.
16191         * modules/unistr/u16-strtok: New file.
16192         * modules/unistr/u32-strtok: New file.
16193         * lib/unistr/u8-strtok.c: New file.
16194         * lib/unistr/u16-strtok.c: New file.
16195         * lib/unistr/u32-strtok.c: New file.
16196         * lib/unistr/u-strtok.h: New file.
16197
16198         * modules/unistr/u8-uctomb: New file.
16199         * modules/unistr/u16-uctomb: New file.
16200         * modules/unistr/u32-uctomb: New file.
16201         * lib/unistr/u8-uctomb.c: New file.
16202         * lib/unistr/u16-uctomb.c: New file.
16203         * lib/unistr/u32-uctomb.c: New file.
16204
16205         * MODULES.html.sh (Unicode string functions): Add the new modules.
16206
16207 2007-01-08  Bruno Haible  <bruno@clisp.org>
16208
16209         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
16210         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
16211         subdirectories.
16212
16213 2007-01-08  Karl Berry  <karl@gnu.org>
16214
16215         * doc/error.texi: mention that main() fns must set program_name
16216         when progname is used.
16217
16218 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
16219
16220         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
16221         WCTYPE_H is empty, for the benefit of builds from non-distclean
16222         directories.  Problem reported by Eric Blake in
16223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
16224
16225 2007-01-08  Bruno Haible  <bruno@clisp.org>
16226
16227         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
16228         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
16229         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
16230         PROVIDE_CANONICALIZE_FILENAME_MODE.
16231         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
16232
16233 2007-01-08  Bruno Haible  <bruno@clisp.org>
16234
16235         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
16236         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
16237         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
16238         * lib/fts.c: Likewise.
16239         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
16240
16241 2006-12-25  Bruno Haible  <bruno@clisp.org>
16242
16243         * modules/utf8-ucs4-safe: New file.
16244         * lib/utf8-ucs4-safe.h: New file.
16245         * lib/unistr/utf8-ucs4-safe.c: New file.
16246
16247         * modules/utf16-ucs4-safe: New file.
16248         * lib/utf16-ucs4-safe.h: New file.
16249         * lib/unistr/utf16-ucs4-safe.c: New file.
16250
16251         * MODULES.html.sh (Unicode string functions): Add the new modules.
16252
16253 2007-01-08  Bruno Haible  <bruno@clisp.org>
16254
16255         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
16256         (Depends-on): Add unitypes.
16257         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16258         (u8_mbtouc_aux): Move out to separate file.
16259         (u8_mbtouc): Use ucs4_t, uint8_t types.
16260         * lib/unistr/utf8-ucs4.c: New file.
16261
16262         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
16263         (Depends-on): Add unitypes.
16264         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16265         (u16_mbtouc_aux): Move out to separate file.
16266         (u16_mbtouc): Use ucs4_t, uint16_t types.
16267         * lib/unistr/utf16-ucs4.c: New file.
16268
16269         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
16270         (Depends-on): Add unitypes.
16271         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
16272         (u8_uctomb_aux): Move out to separate file.
16273         (u8_uctomb): Use ucs4_t, uint8_t types.
16274         * lib/unistr/ucs4-utf8.c: New file.
16275
16276         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
16277         (Depends-on): Add unitypes.
16278         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
16279         (u16_uctomb_aux): Move out to separate file.
16280         (u16_uctomb): Use ucs4_t, uint16_t types.
16281         * lib/unistr/ucs4-utf16.c: New file.
16282
16283 2006-12-25  Bruno Haible  <bruno@clisp.org>
16284
16285         * modules/unitypes: New file.
16286         * lib/unitypes.h: New file.
16287         * MODULES.html.sh (func_all_modules): New section "Unicode string
16288         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
16289         this section. Add unitypes.
16290
16291 2007-01-08  Bruno Haible  <bruno@clisp.org>
16292
16293         Avoid variable names that conflict with those from libtool.
16294         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
16295         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
16296         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
16297         library_names_spec to acl_library_names_spec, hardcode_* to
16298         acl_hardcode_*.
16299         Reported by Ralf Wildenhues.
16300
16301 2007-01-08  Bruno Haible  <bruno@clisp.org>
16302
16303         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
16304         definition.
16305         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
16306         definition.
16307         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
16308         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
16309         definition.
16310         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
16311         definition.
16312         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
16313         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
16314         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
16315         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
16316         definition.
16317         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
16318         definition.
16319         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
16320         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
16321         GC_USE_<algorithm>.
16322         * lib/gc-libgcrypt.c: Likewise.
16323         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
16324         * modules/gc-arctwo (configure.ac): Likewise.
16325         * modules/gc-des (configure.ac): Likewise.
16326         * modules/gc-hmac-md5 (configure.ac): Likewise.
16327         * modules/gc-hmac-sha1 (configure.ac): Likewise.
16328         * modules/gc-md2 (configure.ac): Likewise.
16329         * modules/gc-md4 (configure.ac): Likewise.
16330         * modules/gc-md5 (configure.ac): Likewise.
16331         * modules/gc-random (configure.ac): Likewise.
16332         * modules/gc-rijndael (configure.ac): Likewise.
16333         * modules/gc-sha1 (configure.ac): Likewise.
16334
16335 2007-01-08  Bruno Haible  <bruno@clisp.org>
16336
16337         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
16338         macro definition.
16339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
16340         definition.
16341         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
16342         definition.
16343         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
16344         * modules/fcntl-safer (configure.ac): Likewise.
16345         * modules/fopen-safer (configure.ac): Likewise.
16346         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
16347         GNULIB_FWRITEERROR macro definition.
16348
16349 2007-01-08  Bruno Haible  <bruno@clisp.org>
16350
16351         * m4/gnulib-common.m4: New file.
16352         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
16353         (func_get_filelist): Add m4/gnulib-common.m4.
16354
16355 2007-01-08  Bruno Haible  <bruno@clisp.org>
16356
16357         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
16358         command.
16359
16360 2007-01-08  Jim Meyering  <jim@meyering.net>
16361
16362         Use a more robust test for a "can't happen" condition.
16363         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
16364         narrowed the st_size value.  Presuming the "can't happen" condition
16365         is true, that narrowing could conceivably convert an invalid st_size
16366         value into a valid one.  Instead, use a change based on Matthew
16367         Woehlke's original patch.
16368
16369         Slight readability improvement: use an assert-like macro
16370         in place of literal "abort ()" uses.
16371         * lib/fts.c (fts_assert): Define.
16372         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
16373         Use this macro instead of a bare 'abort'.
16374
16375 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16376
16377         Don't worry about using IRIX 5.3's wctype.h broken definitions;
16378         simply work around them.
16379         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
16380         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
16381         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
16382         declaring.
16383         Don't bother to define as macros, since the standard doesn't require it.
16384         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
16385         longer worry about IRIX 5.3.
16386         (HAVE_WCTYPE_CTMP_BUG): Remove.
16387
16388 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16389
16390         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
16391         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
16392         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16393         Problems reported by Georg Schwarz for IRIX 5.3.
16394
16395         * gnulib-tool (autoconf_minversion): Take the maximum version number
16396         found, not the minimum.  Problem reported by James Youngman.
16397
16398 2007-01-03  Karl Berry  <karl@gnu.org>
16399
16400         * doc/error.texi: new file, explaining interaction with progname.
16401         * doc/gnulib.texi: include it.  Update copyright.
16402
16403 2007-01-03  Simon Josefsson  <simon@josefsson.org>
16404
16405         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
16406         AC_CANONICAL_HOST, to improve autobuild outputs.
16407
16408 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
16409             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16410
16411         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
16412         sockets, server sockets, and other file descriptors.  Count errors
16413         to compute the return value.  Reorder the code a bit to be easier
16414         to follow.  Don't set event bits that were not requested (except
16415         POLLERR and POLLHUP).
16416
16417 2007-01-01  Bruno Haible  <bruno@clisp.org>
16418
16419         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
16420
16421 2007-01-03  Jim Meyering  <jim@meyering.net>
16422
16423         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
16424
16425 2007-01-02  Bruno Haible  <bruno@clisp.org>
16426
16427         * modules/settime (Include): Require timespec.h.
16428         * modules/nanosleep (Include): Likewise.
16429
16430 2007-01-01  Bruno Haible  <bruno@clisp.org>
16431
16432         * gnulib-tool (func_emit_copyright_notice): Bump year.
16433         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
16434
16435 2007-01-01  Bruno Haible  <bruno@clisp.org>
16436
16437         Improve support for OpenBSD.
16438         * build-aux/config.rpath (libname_spec): Export.
16439         (library_names_spec): New variable. Export.
16440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
16441         library_names_spec from the config.rpath output. Locate shared library
16442         through the name pattern in library_names_spec.
16443
16444 2007-01-01  Eric Blake  <ebb9@byu.net>
16445
16446         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
16447
16448 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16449
16450         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
16451         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
16452         assume the C locale, and avoid an "eval" that could cause trouble.
16453         Problem with SORT reported by Bob Proulx.
16454
16455         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
16456         Define.  Trivial patch from Henning Nielsen Lund, originally
16457         sent to bug-grep@gnu.org today.
16458
16459 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16460
16461         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
16462         struct stat.  Problem reported by Henning Nielsen Lund.
16463         * lib/acl.c: Include acl.h first, to check interface.  Don't
16464         bother to include sys/types.h and sys/stat.h again.
16465
16466 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16467
16468         Import the following change from libc; problem reported by
16469         Sven Verdoolaege.
16470
16471         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
16472
16473         [BZ #1373]
16474         * lib/argp.h: Remove __NTH for __argp_usage inline function.
16475
16476 2006-12-28  Jim Meyering  <jim@meyering.net>
16477
16478         * build-aux/announce-gen: Do not assume that the package
16479         builds any of tar.gz, tar.bz2, and .xdelta files.
16480         Suggestion from Simon Josefsson.
16481
16482 2006-12-28  Simon Josefsson  <simon@josefsson.org>
16483
16484         * modules/announce-gen: New file.
16485
16486 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16487
16488         * lib/mbchar.h: Just include <wctype.h>; the wctype module
16489         handles its gotchas now.
16490         * lib/mbswidth.c: Likewise.
16491         * lib/wcwidth.h: Likewise.
16492         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
16493         and iswcntrl; the wctype module does this stuff now.
16494         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16496         * modules/mbchar (Depends-on): Add wctype.
16497         * modules/mbswidth (Depends-on): Likewise.
16498         * modules/wcwidth (Depends-on): Likewise.
16499
16500 2006-12-27  Eric Blake  <ebb9@byu.net>
16501
16502         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
16503         module uses more than what <wctype.h> is required to provide.
16504
16505 2006-12-26  Eric Blake  <ebb9@byu.net>
16506
16507         * gnulib-tool (sed_extract_prog): Avoid space-tab.
16508
16509 2006-12-26  Eric Blake  <ebb9@byu.net>
16510
16511         * modules/absolute-header: New module.
16512         * modules/fcntl (Depends-on): Depend on it.
16513         * modules/inttypes (Depends-on): Likewise.
16514         * modules/stdint (Depends-on): Likewise.
16515         * modules/sys_stat (Depends-on): Likewise.
16516         * modules/wctype (Depends-on): Likewise.
16517         * MODULES.html.sh (Support for building libraries and
16518         executables): Document it.
16519
16520 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         * gnulib-tool (SED): Remove, undoing previous change.
16523         The problem was that it broke coreutils on Solaris, because
16524         "sed --posix" leaked into a makefile.
16525         (sed): New alias, if 'alias' and GNU sed.
16526
16527 2006-12-24  Jim Meyering  <jim@meyering.net>
16528
16529         Work around an fchownat bug in glibc-2.4:
16530         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
16531         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
16532         in spite of the -P option.
16533         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
16534         New macros.
16535         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
16536         * modules/openat (Files): Add lib/fchownat.c.
16537         * lib/openat.c (fchownat): Don't define here.  Move to...
16538         * lib/fchownat.c: ...this new file.
16539
16540 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16541
16542         Fix bug reported by Bruno Haible in
16543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
16544         where quotearg.c didn't compile on Mac OS X 10.2 because it
16545         lacks <wchar.h> and wint_t.
16546         * lib/wctype_.h (__wctype_wint_t): New type.
16547         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
16548         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
16549         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
16550         Arg is now of type __wctype_wint_t, not wint_t.
16551         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
16552         substitute HAVE_WINT_T.
16553         * modules/wctype (Files): Add m4/wint_t.m4.
16554         (wctype.h): Substitute HAVE_WINT_T.
16555
16556 2006-12-23  Bruno Haible  <bruno@clisp.org>
16557
16558         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
16559
16560 2006-12-23  Bruno Haible  <bruno@clisp.org>
16561
16562         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
16563         S_ISLNK.
16564         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
16565         mingw.
16566
16567 2006-12-22  Bruno Haible  <bruno@clisp.org>
16568
16569         * lib/copy-file.c: Include acl.h.
16570         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
16571         Close the file descriptors only after being done with copy_acl.
16572         * modules/copy-file (Depends-on): Add acl.
16573
16574 2006-12-22  Bruno Haible  <bruno@clisp.org>
16575
16576         * gnulib-tool (SED): New variable.
16577         Use $SED instead of sed everywhere.
16578
16579 2006-12-22  Bruno Haible  <bruno@clisp.org>
16580
16581         * modules/no-c++: New file.
16582         * m4/no-c++.m4: New file.
16583         * MODULES.html.sh (Support for building libraries and executables):
16584         Add no-c++.
16585
16586 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16587
16588         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16589         Include <limits.h>, and use its INT_MAX to rewrite the
16590         j loop so that it does not overflow 'int'.  Problem reported by
16591         Ralf Wildenhues in
16592         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
16593         Play it safe by shifting left by 1 rather than multiplying by 2,
16594         as GCC is less likely to optimize this away when the value
16595         is signed (when it assumes overflow leads to undefined behavior).
16596         Also, don't assume time_t uses two's complement.
16597
16598 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16599
16600         * MODULES.html.sh: New module wctype.
16601         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
16602         * lib/fnmatch.c: Don't bother to include <wchar.h> before
16603         <wctype.h>, since the new wctype module should fix this.
16604         * lib/quotearg.c: Include <wctype.h> unconditionally, since
16605         the wctype module should arrange for it.
16606         * lib/regex_internal.h: Likewise.
16607         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
16608         since the wctype module should handle this now.
16609         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
16610         * modules/fnmatch (Depends-on): Add wctype.
16611         * modules/quotearg (Depends-on): Likewise.
16612         * modules/regex (Depends-on): Likewise.
16613
16614 2006-12-19  Bruno Haible  <bruno@clisp.org>
16615
16616         * lib/strdup.h [C++]: Wrap definitions in extern "C".
16617         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
16618
16619 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16620
16621         * modules/savewd (Depends-on): Fix dependency on fcntl.
16622
16623 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16624
16625         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
16626         conforms to C99, rather than relying on the user's environment
16627         setting of STDINT_H.
16628
16629 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16630         and Eric Blake  <ebb9@byu.net>
16631
16632         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
16633         This is more consistent with the other defines here.
16634         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
16635         Port to z/OS.  Problem reported by Paul Gilmartin.
16636         Change local vars to use gl_ prefix rather than ac_.
16637         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
16638         with other defines.
16639         * modules/double-slash-root: New module.
16640         * modules/dirname (Files): Remove m4/double-slash-root.m4.
16641         (Depends-on): Add double-slash-root.
16642         * MODULES.html.sh (File system functions): Mention new module.
16643
16644 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16645
16646         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
16647         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
16648         This is for the benefit of gzip, which doesn't do i18n.
16649
16650 2006-12-12  Jim Meyering  <jim@meyering.net>
16651
16652         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
16653         Reported by Andreas Schwab <schwab@suse.de>.
16654
16655 2006-12-12  Bruno Haible  <bruno@clisp.org>
16656
16657         Merge these changes.
16658         2006-09-05  Bruno Haible  <bruno@clisp.org>
16659         * lib/iconvme.c (iconv_string): No need to save and restore errno when
16660         iconv_alloc succeeded.
16661         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
16662         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
16663         test for " && dest " at the end - dest is always != NULL there. Call
16664         iconv with 4xNULL arguments initially, to reset the state. Call iconv
16665         with 2xNULL arguments, also to flush the state storage. Handle the
16666         IRIX iconv behaviour. Realloc the final result, to throw away unused
16667         memory.
16668
16669 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
16670
16671         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
16672         and fchmodat unconditionally, since glibc 2.4 has them.
16673         Problem reported by Arkadiusz Miskiewicz.
16674
16675 2006-12-10  Bruno Haible  <bruno@clisp.org>
16676
16677         * gnulib-tool (func_import): Show the include files only for those
16678         modules that are copied and specified.
16679         Reported by Karl Berry.
16680
16681 2006-12-08  Jim Meyering  <jim@meyering.net>
16682
16683         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
16684         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
16685
16686         * build-aux/announce-gen: Add two new options, both optional:
16687         --bootstrap-tools=TOOL_LIST
16688               a comma-separated list of tools, e.g.,
16689               autoconf,automake,bison,gnulib
16690         --gnulib-snapshot-date=DATE
16691               if gnulib is in the bootstrap tool list,
16692               then report this as the snapshot date.
16693               If not specified, use the current date/time.
16694               If you specify a date here, be sure it's UTC.
16695
16696 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16697
16698         * tests/test-argp-2.sh: Fix test to match actual output.
16699         (func_compare): Fix sed script to be portable.
16700
16701 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
16702
16703         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
16704         workaround for this case.  It is not autoconfigured now; offhand
16705         it's hard to see how to autoconfigure it.
16706
16707 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
16708
16709         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
16710         a directory that is about to be chowned.  Such a directory's
16711         initial file permissions should permit the owner only and this
16712         should not be changed until after the chown, since the group and
16713         other bits would be incorrect if they granted permission before
16714         the chown.
16715
16716         Fix porting problem for iswctype reported by Georg Schwarz in:
16717         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
16718         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
16719         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
16720         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
16721         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16722
16723 2006-12-03  Jim Meyering  <jim@meyering.net>
16724
16725         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
16726         p->fts_statp may not yet be defined.
16727         (fts_read): Instead, set it in the caller, once p->fts_statp is
16728         sure to be defined, and corresponds to a top-level directory.
16729         This bug made du -x fail.  Here's the coreutils test case:
16730         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
16731         Reported by Mike Frysinger.
16732
16733 2006-12-01  Jim Meyering  <jim@meyering.net>
16734
16735         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
16736         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
16737         Reported by Simon Josefsson.
16738
16739 2006-11-30  Jim Meyering  <jim@meyering.net>
16740
16741         * m4/warning.m4: Use the all-permissive copyright notice
16742         recommended by RMS (rather than LGPL).
16743         * m4/vararrays.m4: Likewise.
16744         * m4/flexmember.m4: Likewise.
16745
16746 2006-11-29  Bruno Haible  <bruno@clisp.org>
16747
16748         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16749         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
16750         using +=.
16751         Reported by Simon Josefsson <simon@josefsson.org>.
16752
16753 2006-11-28  James Youngman <jay@gnu.org>
16754
16755         * README: Advise users that they might find the bug-gnulib@gnu.org
16756         and autotools-announce@gnu.org mailing lists useful.
16757
16758 2006-11-28  Bruno Haible  <bruno@clisp.org>
16759
16760         * m4/ptrdiff_max.m4: Remove file.
16761
16762 2006-11-21  Bruno Haible  <bruno@clisp.org>
16763
16764         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
16765         _AC_COMPUTE_INT.
16766         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16767         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
16768         _AC_COMPUTE_INT.
16769         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16770         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
16771         _AC_COMPUTE_INT.
16772         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16773
16774 2006-11-28  Jim Meyering  <jim@meyering.net>
16775
16776         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
16777         warning from "gcc -Wshadow" about shadowing the builtin.
16778
16779 2006-11-27  Bruno Haible  <bruno@clisp.org>
16780
16781         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
16782         _AC_COMPUTE_INT.
16783         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16784
16785 2006-11-27  Bruno Haible  <bruno@clisp.org>
16786             Paul Eggert  <eggert@cs.ucla.edu>
16787
16788         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
16789
16790 2006-11-26  Bruno Haible  <bruno@clisp.org>
16791
16792         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16793         noinst_LTLIBRARIES.
16794
16795 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
16796             Bruno Haible  <bruno@clisp.org>
16797
16798         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
16799         if compiling with "gcc -ansi".
16800
16801 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
16802
16803         Fix some incompatibilities with gcc -ansi -pedantic.
16804         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
16805         if compiling pedantically with GCC, unless it's C99 or later.
16806         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
16807         it mishandles gcc -ansi -pedantic as well.
16808         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
16809         if gcc -pedantic.
16810         * lib/regexec.c (check_node_accept_bytes): Don't use auto
16811         initializers for struct if -pedantic, unless it's C99 or later.
16812
16813 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
16814
16815         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
16816         Don't close an fd more than once. Identical atimes indicate
16817         success, not failure.
16818
16819 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
16820
16821         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
16822
16823 2006-11-23  Jim Meyering  <jim@meyering.net>
16824
16825         * build-aux/announce-gen: New file.  From coreutils.
16826
16827 2006-11-22  Jim Meyering  <jim@meyering.net>
16828
16829         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
16830         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
16831         (fts_read): Use a temporary to narrow the overused st_size member
16832         before using it in a switch statement.  Reported by Matthew Woehlke.
16833
16834         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
16835         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16836
16837 2006-11-20  Bruno Haible  <bruno@clisp.org>
16838
16839         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
16840         changequote instead of pairs of brackets.
16841         Reported by Andreas Schwab <schwab@suse.de>.
16842
16843 2006-11-21  Jim Meyering  <jim@meyering.net>
16844
16845         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
16846         so as to remain compatible with older compilers.
16847         Patch from Michael Deutschmann.
16848
16849 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16850
16851         * MODULES.html.sh (File system functions): Add openat.
16852
16853         * lib/openat.h (rpl_fstatat): New macro, if
16854         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
16855         (fstatat): Define to rpl_fstatat under the same conditions,
16856         unless COMPILING_FSTATAT.
16857         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
16858         seems to have the bug.
16859         * lib/fstatat.c: New file.
16860         * modules/openat (Files): Add it.
16861
16862 2006-11-20  Bruno Haible  <bruno@clisp.org>
16863
16864         * Makefile: New file.
16865
16866 2006-11-20  Jim Meyering  <jim@meyering.net>
16867
16868         The beginnings of syntax-related checks for gnulib.
16869         * lib/Makefile: New file.
16870         * lib/t-idcache: New script.  Ensure that the two halves of
16871         idcache.c stay in sync.
16872
16873         * lib/idcache.c: Adjust comments in user- and group- portions to
16874         be more accurate, and to be consistent with one another.
16875
16876 2006-11-20  Jim Meyering  <jim@meyering.net>
16877
16878         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
16879         continue using the flexible array member (thus, this module performs
16880         half as many malloc calls), with the addition that...
16881         (getgroup, getuser): Consistently record a non-match via an empty
16882         "name" string, and map an empty string match to a NULL return value.
16883         * modules/idcache (Depends-on): Re-add flexmember.
16884
16885         * lib/idcache.c (getuser): Remove all uses of the register keyword.
16886         (getuidbyname, getgroup, getgidbyname): Likewise.
16887
16888         Use cleaner syntax: NULL rather than 0.
16889         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
16890
16891 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16892
16893         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
16894         It mishandled the case where the group was missing.
16895         Problem reported by Greg Schafer.
16896         * modules/idcache: Likewise.
16897
16898 2006-11-18  Jim Meyering  <jim@meyering.net>
16899
16900         * check-module (%exempt_header): Add exception for some
16901         conditionally-included headers.
16902
16903         * modules/i-ring (Depends-on): Add verify.
16904         (License): Change to LGPL.
16905
16906 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16907
16908         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
16909         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
16910         and inttostr.h.  Use snprintf rather than uinttostr, so that
16911         LGPLed code doesn't depend on GPLed.
16912
16913 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16914
16915         * modules/inline (License): Change from GPL to LGPL.
16916
16917 2006-11-17  Jim Meyering  <jim@meyering.net>
16918
16919         * modules/d-type (License): Switch to LGPL.
16920
16921 2006-11-15  Bruno Haible  <bruno@clisp.org>
16922
16923         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
16924
16925 2006-11-15  Eric Blake  <ebb9@byu.net>
16926
16927         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
16928         the module dependency.
16929
16930 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16931             Bruno Haible  <bruno@clisp.org>
16932
16933         * gnulib-tool (func_create_testdir): Add license consistency check.
16934
16935 2006-11-15  Eric Blake  <ebb9@byu.net>
16936
16937         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
16938         random "(cached)" in configure output.
16939
16940 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16941
16942         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
16943         test for conforming inttypes.h is both announced and cached.
16944
16945         * MODULES.html.sh (seen_modules, seen_files): New variables.
16946         (func_module): Rewrite to use a few less gnulib-tool and sed
16947         invocations.  Avoid a couple of quadratic algorithms for ...
16948         (missed_modules, missed_files): ... these, with ...
16949         (func_append, func_tmpdir): ... these new functions, from
16950         gnulib-tool.  Analogously, install traps for cleanup.
16951
16952         * tests/test-gc.c (main): Remove unused variables.
16953         * tests/test-read-file.c: Include stdlib.h, for 'free'.
16954
16955 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
16956
16957         * modules/inttostr (License): Change to LGPL.
16958
16959 2006-11-14  Eric Blake  <ebb9@byu.net>
16960
16961         * modules/tempname (License): Change to LGPL.
16962
16963 2006-11-14  Eric Blake  <ebb9@byu.net>
16964
16965         * doc/functions.texi (Function Portability): *printf functions on
16966         Cygwin now understand all POSIX size specifiers.
16967
16968 2006-11-14  Bruno Haible  <bruno@clisp.org>
16969
16970         * modules/c-ctype (License): Change to LGPL.
16971
16972 2006-11-12  Bruno Haible  <bruno@clisp.org>
16973
16974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16975         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
16976         for GNOME libraries, for which the include files are installed in
16977         subdirectories of $prefix/include.
16978
16979 2006-11-12  Bruno Haible  <bruno@clisp.org>
16980
16981         * m4/lib-link.m4: Require at least autoconf-2.54.
16982         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
16983         name to underscores for the --with option.
16984
16985 2006-11-13  Bruno Haible  <bruno@clisp.org>
16986
16987         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
16988         the tests directory.
16989         Reported by Ralf Wildenhues.
16990
16991 2006-11-13  Bruno Haible  <bruno@clisp.org>
16992
16993         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
16994         (func_emit_initmacro_end): Undo the override here.
16995         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
16996         Works around the famous automake error in coreutils.
16997
16998 2006-11-13  Eric Blake  <ebb9@byu.net>
16999
17000         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
17001         element, not its node.
17002
17003 2006-11-12  Bruno Haible  <bruno@clisp.org>
17004
17005         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
17006         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
17007
17008 2006-11-12  Bruno Haible  <bruno@clisp.org>
17009
17010         * gnulib-tool: New option --local-symlink.
17011         (func_usage): Document it.
17012         (lsymbolic): New variable.
17013         (func_import, func_create_testdir): If --symlink was not specified,
17014         test whether --local-symlink was specified and the file comes from
17015         the local_gnulib_dir.
17016
17017 2006-11-12  Bruno Haible  <bruno@clisp.org>
17018
17019         * gnulib-tool (func_ln): New function.
17020         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
17021
17022 2006-11-12  Bruno Haible  <bruno@clisp.org>
17023
17024         Finish support for source files in subdirectories.
17025         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
17026         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
17027         AUTOMAKE_OPTIONS.
17028         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
17029
17030 2006-11-12  Bruno Haible  <bruno@clisp.org>
17031
17032         * gnulib-tool (func_get_automake_snippet): Synthesize also an
17033         EXTRA_lib_SOURCES augmentation.
17034         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
17035
17036 2006-11-12  Jim Meyering  <jim@meyering.net>
17037
17038         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
17039         file descriptors.  This also averts a failure on systems with
17040         native openat support when a traversed directory lacks "x" access.
17041         * lib/fts_.h: Include "i-ring.h"
17042         (struct FTS) [fts_fd_ring]: New member.
17043         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
17044         (FCHDIR): Add parentheses.
17045         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
17046         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
17047         When descending, rather than simply closing the previous
17048         fts_cwd_fd value, push that file descriptor onto the ring.
17049         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
17050         (fts_open): Initialize the new fd_ring member.
17051         (fts_close): Clear the ring.
17052         (fts_safe_changedir): When possible, use our new fd_ring to skip
17053         the diropen and fstat and dev/ino comparison that would normally
17054         accompany a virtual `chdir ("..")'.
17055
17056         * modules/fts (Depends-on): Add i-ring.
17057         * modules/i-ring: New module.
17058         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
17059         * m4/i-ring.m4: New file.
17060
17061 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17062
17063         * gnulib-tool (func_create_testdir): Fix replacement of
17064         `build-aux' in configure.ac.  Run autotools in gltests
17065         subdirectory.
17066         (func_create_testdir, func_create_megatestdir, test): There is
17067         no need for '--force' in most autotool invocations in a new
17068         tree.  Actually fail the whole test if any of the tools, or the
17069         configure or make stages fail.
17070
17071         Sync from Automake.
17072         * build-aux/gnupload: Revert last change.  Add pointer to upload
17073         instructions of the GNU Maintenance Instructions.
17074         Suggestion by Karl Berry.
17075
17076 2006-11-10  Jim Meyering  <jim@meyering.net>
17077
17078         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
17079
17080 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17081
17082         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
17083         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
17084         (bind_textdomain_codeset) [! ENABLE_NLS]:
17085         Evaluate all the arguments.  That way, callers get compatible behavior
17086         if the arguments have side effects.  Also, it avoids some GCC
17087         diagnostics in some cases; Joel E. Denny reported problems when Bison
17088         was configured with --enable-gcc-warnigs.
17089
17090 2006-11-10  Jim Meyering  <jim@meyering.net>
17091
17092         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
17093         relevant options in CFLAGS (like -O, -fno-inline) are taken into
17094         account.
17095
17096 2006-11-10  Jim Meyering  <jim@meyering.net>
17097
17098         * modules/inline: New file/module.
17099         * modules/xalloc (Files): Remove m4/inline.m4.
17100         (Depends-on): Add inline, instead.
17101         * modules/oset: Likewise.
17102         * modules/list: Likewise.
17103
17104 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17105
17106         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
17107         Problem reported by Matthew Woehlke.
17108
17109 2006-11-09  Bruno Haible  <bruno@clisp.org>
17110
17111         * lib/tempname.c (gen_tempname): Remove variant that invokes
17112         __gen_tempname.
17113         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
17114         __gen_tempname.
17115
17116 2006-11-08  Bruno Haible  <bruno@clisp.org>
17117
17118         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
17119         to 'yes' instead of 'cross-compiling'.
17120
17121 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17122
17123         * lib/quotearg.h (quotearg_free): New decl.
17124         * lib/quotearg.c (quotearg_free): New function.
17125         (slot0, nslots, slotvec0, slotvec):
17126         Now file-scope so that quotearg_free can get at them.
17127
17128 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17129
17130         Sync from Automake.
17131         * build-aux/gnupload: Add missing 'gnu' to example URL.
17132         Report by Karl Berry.
17133
17134 2006-11-08  Bruno Haible  <bruno@clisp.org>
17135
17136         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
17137         Suggested by Paul Eggert.
17138
17139 2006-11-08  Jim Meyering  <jim@meyering.net>
17140
17141         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
17142         It's already included if !_LIBC.
17143         (fts_safe_changedir): Add a comment.
17144
17145 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17146
17147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
17148         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
17149         Matthew Woehlke.
17150
17151         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
17152         definitions up, to avoid colliding with change below.
17153         (static_inline) [HAVE_INLINE]: New macro.
17154         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17155         Provide extern decls when !HAVE_INLINE.  Do not define unless
17156         static_inline is defined, either by us or by xmalloc.c.  Use
17157         static_inline rather than static inline.
17158         (XCALLOC): Optimize sizeof(T) = 1 case.
17159         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
17160
17161 2006-11-07  Bruno Haible  <bruno@clisp.org>
17162
17163         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
17164         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
17165         AC_C_INLINE.
17166         * modules/xalloc (Files): Add m4/inline.m4.
17167
17168 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17169
17170         * README: Fix typo.
17171         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
17172         (Miscellanous Notes): ...from this.
17173
17174 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17175
17176         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
17177         Mention that offsetof should be used instead of sizeof.
17178         From Bruno Haible.
17179
17180 2006-11-07  Bruno Haible  <bruno@clisp.org>
17181
17182         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
17183
17184 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17185
17186         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17187         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
17188         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17189         (gl_tree_add_before, gl_tree_add_after):
17190         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
17191         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
17192         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17193         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
17194         (gl_linked_add_after, gl_linked_add_at): Likewise.
17195         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
17196         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17197         (gl_tree_add_before, gl_tree_add_after): Likewise.
17198         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
17199         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
17200         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17201
17202 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17203
17204         * lib/gl_oset.h: Use C comment style, not C++ comment style.
17205
17206 2006-11-06  Bruno Haible  <bruno@clisp.org>
17207
17208         * m4/inline.m4: New file.
17209         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
17210         * modules/list (Files): Add m4/inline.m4.
17211         * modules/oset (Files): Likewise.
17212
17213 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17214
17215         * lib/idcache.c: Include <stddef.h>, for offsetof.
17216         (struct userid.name): Change from char * to a flexible array member.
17217         All uses changed.
17218         * modules/idcache (Depends-on): Add flexmember.
17219
17220         * MODULES.html.sh (Core language properties): New module flexmember.
17221         * modules/flexmember, m4/flexmember.m4: New files.
17222
17223         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
17224         inline functions that are identical with the old xnmalloc_inline,
17225         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
17226         that we can avoid some unnecessary integer multiplications and
17227         divisions in the common case where the element size is known at
17228         compile time.
17229         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
17230         needed.
17231         (xnboundedmalloc): Remove.
17232         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
17233         arguments, for consistency with rest of this header.
17234         (xcharalloc): Rewrite using XNMALLOC.
17235         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
17236         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
17237         versions have been moved to lib/xalloc.h and renamed to be the
17238         non-*_inline versions.
17239         (xmalloc, xrealloc): Implement without reference to the xnmalloc
17240         and xnrealloc functions, since those functions are now inline and
17241         now call us.
17242         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
17243         renaming described above.
17244         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
17245         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
17246         captures the dependency in AC_C_INLINE.
17247
17248         New module canonicalize-lgpl, proposed by Charles Wilson in
17249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
17250         with a few small changes afterwards.
17251         * MODULES.html.sh (File system functions): New module
17252         canonicalize-lgpl.
17253         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
17254         and canonicalize_file_name.
17255         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
17256         * modules/canonicalize-lgpl: New files.
17257
17258 2006-11-05  Bruno Haible  <bruno@clisp.org>
17259
17260         * gnulib-tool (func_import, func_create_testdir): Create directories
17261         also for files in subdirectories of lib/.
17262
17263 2006-11-05  Bruno Haible  <bruno@clisp.org>
17264
17265         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
17266         ANSI C compliant.
17267
17268 2006-11-03  Bruno Haible  <bruno@clisp.org>
17269
17270         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17271         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
17272         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
17273         (xnboundedmalloc): New inline function.
17274         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
17275         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
17276         xmalloc.
17277         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
17278         xmalloc.
17279         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
17280         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
17281         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
17282         xmalloc.
17283         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17284         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
17285         xmalloc.
17286         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
17287         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17288         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
17289         xmalloc.
17290         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17291         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
17292         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17293         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
17294         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
17295         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
17296         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
17297
17298 2006-11-03  Bruno Haible  <bruno@clisp.org>
17299
17300         * lib/c-ctype.h [C++]: Define functions without name mangling.
17301         * lib/fwriteerror.h [C++]: Likewise.
17302         * lib/gcd.h [C++]: Likewise.
17303         * lib/linebreak.h [C++]: Likewise.
17304
17305 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17306
17307         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
17308         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
17309         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
17310         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17311         Check for functions and headers just once.
17312         Check for declaration of canonicalize_file_name.
17313         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
17314
17315 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17316
17317         * gnulib-tool (func_import): Fix typo in actioncmd.
17318
17319 2006-11-02  Bruno Haible  <bruno@clisp.org>
17320
17321         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
17322         newline sequence in the Makefile.am snippet as a space, like "make"
17323         does.
17324         Reported by Roger Persson <perrog@gmail.com>.
17325
17326 2006-11-01  Bruno Haible  <bruno@clisp.org>
17327
17328         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
17329         already declared in <string.h>.
17330         * lib/strcase.h (strncasecmp): Don't declare it if yes.
17331
17332 2006-11-01  Bruno Haible  <bruno@clisp.org>
17333
17334         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
17335         * lib/strcase.h: Include <string.h>.
17336         (strcasecmp): Define to rpl_strcasecmp here.
17337
17338 2006-11-01  Bruno Haible  <bruno@clisp.org>
17339
17340         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
17341
17342 2006-11-01  Eric Blake  <ebb9@byu.net>
17343
17344         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
17345
17346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
17347
17348 2006-10-29  Bruno Haible  <bruno@clisp.org>
17349
17350         Make it compile in C++ mode.
17351         * lib/full-write.c (full_rw): Add a cast.
17352
17353 2006-11-01  Bruno Haible  <bruno@clisp.org>
17354
17355         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
17356         be POSIX compliant.
17357         Reported by Roger Persson <perrog@gmail.com>.
17358
17359 2006-11-01  Eric Blake  <ebb9@byu.net>
17360
17361         * lib/getopt_.h: Fix comments.
17362
17363 2006-10-31  Eric Blake  <ebb9@byu.net>
17364
17365         * modules/tmpdir (Depends-on): Add sys_stat.
17366         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
17367         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
17368         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
17369         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
17370         tempname.
17371
17372 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
17373
17374         Avoid some C++ diagnostics reported by Bruno Haible.
17375         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
17376         xmalloc.
17377         (quotearg_alloc): Use xcharalloc rather than xmalloc.
17378         (struct slotvec): Move to top level.
17379         (quotearg_n_options): Rewrite to avoid xmalloc.
17380         * lib/xalloc.h (xcharalloc): New function.
17381         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
17382         [defined __cplusplus]: Add function template that provides result
17383         type propagation.  This part of the change is from Bruno Haible.
17384
17385 2006-10-29  Bruno Haible  <bruno@clisp.org>
17386
17387         Make it compile in C++ mode.
17388         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
17389         * lib/strnlen1.c (strnlen1): Cast memchr result.
17390         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
17391         * lib/clean-temp.c (string_equals, string_hash): Add casts.
17392         (create_temp_dir): Rename local variable 'template'.
17393         (compile_csharp_using_sscli): Add cast.
17394         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
17395         * lib/findprog.c (find_in_path): Likewise.
17396         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
17397         * lib/wait-process.c (register_slave_subprocess): Likewise.
17398
17399 2006-10-22  Bruno Haible  <bruno@clisp.org>
17400
17401         * modules/tsearch: New file.
17402         * lib/tsearch.h: New file.
17403         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
17404         * m4/tsearch.m4: New file.
17405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
17406
17407 2006-10-29  Eric Blake  <ebb9@byu.net>
17408
17409         * lib/arcfour.c: Assume config.h.
17410         * lib/arctwo.c: Likewise.
17411         * lib/base64.c: Likewise.
17412         * lib/check-version.c: Likewise.
17413         * lib/crc.c: Likewise.
17414         * lib/des.c: Likewise.
17415         * lib/gc-gnulib.c: Likewise.
17416         * lib/gc-libgcrypt.c: Likewise.
17417         * lib/gc-pbkdf2-sha1.c: Likewise.
17418         * lib/getaddrinfo.c: Likewise.
17419         * lib/getdelim.c: Likewise.
17420         * lib/getline.c: Likewise.
17421         * lib/hmac-md5.c: Likewise.
17422         * lib/hmac-sha1.c: Likewise.
17423         * lib/iconvme.c: Likewise.
17424         * lib/md2.c: Likewise.
17425         * lib/md4.c: Likewise.
17426         * lib/memxor.c: Likewise.
17427         * lib/read-file.c: Likewise.
17428         * lib/readline.c: Likewise.
17429         * lib/rijndael-alg-fst.c: Likewise.
17430         * lib/rijndael-api-fst.c: Likewise.
17431         * lib/xgetdomainname.c: Likewise.
17432
17433 2006-10-28  Eric Blake  <ebb9@byu.net>
17434
17435         * lib/xstrndup.c: Assume config.h.
17436
17437 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
17438
17439         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
17440         stat-macros.h is now for our own macros, whereas stat_h is for
17441         macros in the <sys/stat.h> name space.
17442         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
17443         (STAT_MACROS_H): Remove.
17444         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
17445         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
17446         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
17447         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
17448         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
17449         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
17450         Move these macros to ...
17451         * lib/stat_.h: here.  Don't include stat-macros.h.
17452         * lib/canonicalize.c: Don't include stat-macros.h.
17453         * lib/chown.c: Likewise.
17454         * lib/euidaccess.c: Likewise.
17455         * lib/file-type.c: Likewise.
17456         * lib/filemode.c: Likewise.
17457         * lib/glob.c: Likewise.
17458         * lib/isapipe.c: Likewise.
17459         * lib/lchown.c: Likewise.
17460         * lib/lstat.c: Likewise.
17461         * lib/mkdir-p.c: Likewise.
17462         * lib/rmdir.c: Likewise.
17463         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
17464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
17465         unless mkdir isn't declared, to speed up 'configure'.
17466         Always create sys/stat.h, since it's unlikely any real sys/stat.h
17467         would define all the S_* symbols.
17468         * modules/canonicalize (Depends-on):
17469         Depend on sys_stat, not stat-macros.
17470         * modules/chown: Likewise.
17471         * modules/euidaccess: Likewise.
17472         * modules/filemode: Likewise.
17473         * modules/file-type: Likewise.
17474         * modules/glob: Likewise.
17475         * modules/isapipe: Likewise.
17476         * modules/lchown: Likewise.
17477         * modules/lstat: Likewise.
17478         * modules/mkancesdirs: Likewise.
17479         * modules/rmdir: Likewise.
17480         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
17481         * modules/modechange: Likewise.
17482         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
17483         (configure.ac): Remove gl_STAT_MACROS.
17484         * modules/sys_stat (Depends-on): Remove stat-macros.
17485
17486 2006-10-27  Bruno Haible  <bruno@clisp.org>
17487
17488         * m4/signed.m4: Remove file.
17489         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
17490         invocation.
17491         * modules/vasnprintf (Files): Remove m4/signed.m4.
17492
17493 2006-10-27  Bruno Haible  <bruno@clisp.org>
17494
17495         Update to GNU gettext 0.16.
17496         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
17497         m4/inttypes-h.m4, m4/signed.m4.
17498         * m4/gettext.m4: Update to GNU gettext 0.16.
17499         * m4/intl.m4: New file, from GNU gettext.
17500         * m4/intldir.m4: New file, from GNU gettext.
17501         * config/srclist.txt: Update
17502
17503 2006-10-27  Eric Blake  <ebb9@byu.net>
17504
17505         * MODULES.html.sh: Document tempname.
17506         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
17507         dependencies.
17508         (Files): Move lib/tempname.c...
17509         * modules/tempname: ...to this new module.
17510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
17511         (gl_PREREQ_TEMPNAME): Move...
17512         * m4/tempname.m4: ...to this new file.
17513         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
17514         * modules/sys_stat (Depends-on): Add stat-macros.
17515         * lib/stat_.h (includes): Pick up stat macros.
17516         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
17517         if stat macros are broken.
17518         * lib/tempname.c (includes): No need to include "stat-macros.h".
17519         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
17520         (direxists, __path_search) [!_LIBC]: Don't compile these in
17521         gnulib; the tmpdir module covers that.
17522         * lib/tempname.h: New file.
17523
17524 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17525
17526         * COPYING: Explain how gnulib-tool converts licence headers.
17527         Almost all wording by Eric Blake.
17528
17529 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17530
17531         * lib/mbchar.h (is_basic_table): Make read-only.
17532         * lib/mbchar.c (is_basic_table): Likewise.
17533         Reported by John Darrington.
17534
17535 2006-10-25  Bruno Haible  <bruno@clisp.org>
17536
17537         * lib/progname.h (set_program_name): Undefine before defining.
17538
17539 2006-10-25  Bruno Haible  <bruno@clisp.org>
17540
17541         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
17542         false for non-gcc C++ compilers.
17543         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17544
17545 2006-10-24  Bruno Haible  <bruno@clisp.org>
17546
17547         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
17548         iconv implementations like Irix iconv.
17549
17550 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17551
17552         * modules/vararrays: New file.
17553         * m4/vararrays.m4: New file, taken from diffutils.
17554         * MODULES.html.sh: New module vararrays.
17555
17556 2006-10-24  Karl Berry  <karl@gnu.org>
17557
17558         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
17559         Don't call GNU Unix.
17560
17561 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17562
17563         * users.txt: Add Libtool.
17564
17565         Sync from Libtool:
17566
17567         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17568
17569         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
17570         to gnulib's policy of including config.h unconditionally.
17571
17572 2006-10-24  Bruno Haible  <bruno@clisp.org>
17573
17574         * modules/wcwidth (Files): Add m4/wint_t.m4.
17575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
17576         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
17577
17578 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17579
17580         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
17581         to pacify GCC with some -W flags enabled.  Problem reported by
17582         Bruno Haible.
17583
17584 2006-10-24  Jim Meyering  <jim@meyering.net>
17585
17586         * MODULES.html.sh: Remove uinttostr.  It's not a module.
17587         Reported by Karl Berry.
17588
17589 2006-10-23  Bruno Haible  <bruno@clisp.org>
17590
17591         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
17592
17593 2006-10-24  Bruno Haible  <bruno@clisp.org>
17594
17595         * lib/gl_list.h: Use C comment style, not C++ comment style.
17596
17597 2006-10-23  Eric Blake  <ebb9@byu.net>
17598
17599         * lib/getaddrinfo.c (includes): Add missing include.
17600
17601 2006-10-23  Bruno Haible  <bruno@clisp.org>
17602             Paul Eggert  <eggert@cs.ucla.edu>
17603
17604         Ability to rename obstack_free.
17605         * lib/obstack.h (__obstack_free): New macro. Declare instead of
17606         obstack_free.
17607         (obstack_free): Invoke the __obstack_free macro.
17608         * lib/obstack.c (obstack_free): Use __obstack_free macro.
17609
17610 2006-10-23  Bruno Haible  <bruno@clisp.org>
17611             Paul Eggert  <eggert@cs.ucla.edu>
17612
17613         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
17614         __argc, __argv from the declaration. (They are defined as macros on
17615         mingw.)
17616
17617 2006-10-22  Bruno Haible  <bruno@clisp.org>
17618
17619         * doc/gnulib-intro.texi: New file.
17620         * doc/gnulib.texi: Include it.
17621
17622 2006-10-21  Bruno Haible  <bruno@clisp.org>
17623
17624         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
17625         "Introduction", "Miscellanous Notes", "Particular Modules".
17626
17627 2006-10-21  Bruno Haible  <bruno@clisp.org>
17628
17629         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17630         Change mostlyclean-local rule to avoid sh syntax error from bash
17631         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
17632
17633 2006-10-23  Jim Meyering  <jim@meyering.net>
17634
17635         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
17636         in place of snprintf.
17637
17638         * modules/inttostr (Files): Add lib/uinttostr.c.
17639         * lib/uinttostr.c (inttostr): New file/function.
17640         * lib/inttostr.h (uinttostr): Declare.
17641         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
17642         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
17643         Add uinttostr.
17644         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
17645
17646 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17647
17648         * lib/canonicalize.c (ELOOP): Define if not already defined.
17649         Problem reported by Bruno Haible in
17650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
17651
17652 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17653
17654         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
17655         Problem reported by Perry Smith and Ville Laurikari.
17656
17657         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
17658         uses.
17659
17660 2006-10-19  Bruno Haible  <bruno@clisp.org>
17661
17662         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
17663         for mingw.
17664
17665 2006-10-19  Bruno Haible  <bruno@clisp.org>
17666
17667         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
17668         Needed for mingw.
17669
17670 2006-10-19  Bruno Haible  <bruno@clisp.org>
17671
17672         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
17673
17674 2006-10-19  Bruno Haible  <bruno@clisp.org>
17675
17676         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
17677         it.
17678
17679 2006-10-19  Bruno Haible  <bruno@clisp.org>
17680
17681         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
17682         invocation.
17683
17684 2006-10-19  Bruno Haible  <bruno@clisp.org>
17685
17686         * gnulib-tool (func_create_testdir): Don't include ftruncate and
17687         mountlist by default.
17688
17689 2006-10-16  Bruno Haible  <bruno@clisp.org>
17690
17691         * lib/c-strstr.c: Include c-strstr.h.
17692
17693 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17694
17695         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
17696         in a slash.
17697
17698 2006-10-18  Bruno Haible  <bruno@clisp.org>
17699
17700         * lib/lock.h [C++]: Wrap definitions in extern "C".
17701
17702 2006-10-18  Bruno Haible  <bruno@clisp.org>
17703
17704         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
17705         gl_LIBOBJS list.
17706
17707 2006-10-18  Bruno Haible  <bruno@clisp.org>
17708
17709         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
17710
17711 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17712
17713         * lib/xstrtol.h: Include gettext.h.
17714         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
17715         Problem reported by Eric Blake.
17716         * modules/xstrtol (Depends-on): Add gettext-h.
17717
17718 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
17719
17720         * lib/strftime.c (advance): New macro.
17721         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
17722         incomplete type, so you can't add 0 to it.  Problem and patch
17723         reported by Eelco Dolstra for dietlibc.
17724
17725 2006-10-18  Jim Meyering  <jim@meyering.net>
17726
17727         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
17728         type for a local, and rename it: s/up/user_proc/.
17729
17730 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
17731
17732         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
17733         READ_UTMP_USER_PROCESS.
17734         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
17735
17736 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
17737
17738         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
17739         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
17740
17741 2006-10-17  Eric Blake  <ebb9@byu.net>
17742
17743         * lib/sigprocmask.c (sigprocmask): Fix typo.
17744
17745         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
17746
17747         * modules/clean-temp (Makefile.am): Don't add to make output...
17748         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
17749         config.h.
17750
17751 2006-10-17  Bruno Haible  <bruno@clisp.org>
17752
17753         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
17754         differently if DEFAULT_TEXT_DOMAIN is set.
17755
17756 2006-10-16  Bruno Haible  <bruno@clisp.org>
17757
17758         * lib/clean-temp.c: Include fwriteerror.h.
17759
17760 2006-10-16  Bruno Haible  <bruno@clisp.org>
17761
17762         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
17763
17764 2006-10-16  Bruno Haible  <bruno@clisp.org>
17765
17766         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
17767         * lib/sigprocmask.h: Include <sys/types.h>.
17768         (sigset_t): Use the system's definition if present.
17769
17770 2006-10-17  Eric Blake  <ebb9@byu.net>
17771
17772         * lib/xvasprintf.c (includes): Assume config.h.
17773         * lib/xasprintf.c (includes): Likewise.
17774
17775 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17776
17777         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
17778         at least as wide as intmax_t.
17779
17780 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
17781
17782         (Imported from Automake.)
17783         * build-aux/gnupload: Update to version 1.1 of directive file.
17784
17785 2006-10-16  Eric Blake  <ebb9@byu.net>
17786
17787         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
17788         match Automake 1.10a.
17789
17790 2006-10-14  Bruno Haible  <bruno@clisp.org>
17791
17792         * modules/sigprocmask: New file.
17793         * lib/sigprocmask.h: New file.
17794         * lib/sigprocmask.c: New file.
17795         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
17796         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
17797         request sigprocmask.o.
17798         (gl_PREREQ_SIGPROCMASK): New macro.
17799         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
17800         (Depends-on): Add sigprocmask.
17801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
17802         gt_SIGNALBLOCKING. Test for 'raise' only once.
17803         * lib/fatal-signal.c: Include sigprocmask.h.
17804         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
17805         unblock_fatal_signals): Define always.
17806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17807         sigprocmask.
17808
17809 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17810
17811         Sync from Automake.
17812         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
17813         which incorrectly sets the mode of an existing destination
17814         directory.  In some cases the unpatched install-sh could do the
17815         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
17816         system.  We hope this is rare in practice, but it's clearly worth
17817         fixing.  Problem reported by Alex Unleashed in
17818         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
17819         Also, don't bother to check for -m bugs unless we're using -m;
17820         suggested by Stepan Kasal.
17821
17822 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17823
17824         Sync from Automake.
17825         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
17826         `-c' flag, so they appear at the same position as in %FASTDEP%
17827         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
17828         which ignores unknown options only after the first non-option.
17829         Bug report against M4 by Nelson H. F. Beebe.
17830
17831 2006-10-13  Jim Meyering  <jim@meyering.net>
17832
17833         Fix a bug in yesterday's change.
17834         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
17835         p->fts_statp->st_dev would be used uninitialized.
17836         Ensures that we always call fts_stat on the very first entry.
17837         Miklos Szeredi reported that find -xdev stopped working.
17838
17839 2006-10-12  Bruno Haible  <bruno@clisp.org>
17840
17841         * gnulib-tool (func_get_automake_snippet): Append an automatically
17842         computed EXTRA_DIST augmentation.
17843         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
17844         * modules/alloca-opt (Makefile.am): Likewise.
17845         * modules/allocsa (Makefile.am): Likewise.
17846         * modules/arcfour (Makefile.am): Likewise.
17847         * modules/arctwo (Makefile.am): Likewise.
17848         * modules/argmatch (Makefile.am): Likewise.
17849         * modules/argz (Makefile.am): Likewise.
17850         * modules/atexit (Makefile.am): Likewise.
17851         * modules/backupfile (Makefile.am): Likewise.
17852         * modules/byteswap (Makefile.am): Likewise.
17853         * modules/c-strtod (Makefile.am): Likewise.
17854         * modules/c-strtold (Makefile.am): Likewise.
17855         * modules/calloc (Makefile.am): Likewise.
17856         * modules/canon-host (Makefile.am): Likewise.
17857         * modules/canonicalize (Makefile.am): Likewise.
17858         * modules/chdir-long (Makefile.am): Likewise.
17859         * modules/chdir-safer (Makefile.am): Likewise.
17860         * modules/check-version (Makefile.am): Likewise.
17861         * modules/chown (Makefile.am): Likewise.
17862         * modules/cloexec (Makefile.am): Likewise.
17863         * modules/close-stream (Makefile.am): Likewise.
17864         * modules/closeout (Makefile.am): Likewise.
17865         * modules/crc (Makefile.am): Likewise.
17866         * modules/csharpexec (Makefile.am): Likewise.
17867         * modules/cycle-check (Makefile.am): Likewise.
17868         * modules/des (Makefile.am): Likewise.
17869         * modules/dev-ino (Makefile.am): Likewise.
17870         * modules/dirfd (Makefile.am): Likewise.
17871         * modules/dirname (Makefile.am): Likewise.
17872         * modules/dup2 (Makefile.am): Likewise.
17873         * modules/eealloc (Makefile.am): Likewise.
17874         * modules/error (Makefile.am): Likewise.
17875         * modules/euidaccess (Makefile.am): Likewise.
17876         * modules/exclude (Makefile.am): Likewise.
17877         * modules/exitfail (Makefile.am): Likewise.
17878         * modules/fcntl-safer (Makefile.am): Likewise.
17879         * modules/fcntl (Makefile.am): Likewise.
17880         * modules/file-type (Makefile.am): Likewise.
17881         * modules/fileblocks (Makefile.am): Likewise.
17882         * modules/filemode (Makefile.am): Likewise.
17883         * modules/filenamecat (Makefile.am): Likewise.
17884         * modules/fnmatch (Makefile.am): Likewise.
17885         * modules/fopen-safer (Makefile.am): Likewise.
17886         * modules/fpending (Makefile.am): Likewise.
17887         * modules/fprintftime (Makefile.am): Likewise.
17888         * modules/free (Makefile.am): Likewise.
17889         * modules/fsusage (Makefile.am): Likewise.
17890         * modules/ftruncate (Makefile.am): Likewise.
17891         * modules/fts (Makefile.am): Likewise.
17892         * modules/gc-arcfour (Makefile.am): Likewise.
17893         * modules/gc-des (Makefile.am): Likewise.
17894         * modules/gc-hmac-md5 (Makefile.am): Likewise.
17895         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
17896         * modules/gc-md4 (Makefile.am): Likewise.
17897         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
17898         * modules/gc-sha1 (Makefile.am): Likewise.
17899         * modules/gc (Makefile.am): Likewise.
17900         * modules/getaddrinfo (Makefile.am): Likewise.
17901         * modules/getcwd (Makefile.am): Likewise.
17902         * modules/getdelim (Makefile.am): Likewise.
17903         * modules/getdomainname (Makefile.am): Likewise.
17904         * modules/getgroups (Makefile.am): Likewise.
17905         * modules/gethostname (Makefile.am): Likewise.
17906         * modules/gethrxtime (Makefile.am): Likewise.
17907         * modules/getline (Makefile.am): Likewise.
17908         * modules/getloadavg (Makefile.am): Likewise.
17909         * modules/getlogin_r (Makefile.am): Likewise.
17910         * modules/getndelim2 (Makefile.am): Likewise.
17911         * modules/getopt (Makefile.am): Likewise.
17912         * modules/getpagesize (Makefile.am): Likewise.
17913         * modules/getpass-gnu (Makefile.am): Likewise.
17914         * modules/getpass (Makefile.am): Likewise.
17915         * modules/getsubopt (Makefile.am): Likewise.
17916         * modules/gettime (Makefile.am): Likewise.
17917         * modules/gettimeofday (Makefile.am): Likewise.
17918         * modules/getugroups (Makefile.am): Likewise.
17919         * modules/getusershell (Makefile.am): Likewise.
17920         * modules/glob (Makefile.am): Likewise.
17921         * modules/group-member (Makefile.am): Likewise.
17922         * modules/hard-locale (Makefile.am): Likewise.
17923         * modules/hash (Makefile.am): Likewise.
17924         * modules/hmac-md5 (Makefile.am): Likewise.
17925         * modules/hmac-sha1 (Makefile.am): Likewise.
17926         * modules/human (Makefile.am): Likewise.
17927         * modules/idcache (Makefile.am): Likewise.
17928         * modules/imaxabs (Makefile.am): Likewise.
17929         * modules/imaxdiv (Makefile.am): Likewise.
17930         * modules/inet_ntop (Makefile.am): Likewise.
17931         * modules/inet_pton (Makefile.am): Likewise.
17932         * modules/intprops (Makefile.am): Likewise.
17933         * modules/inttostr (Makefile.am): Likewise.
17934         * modules/inttypes (Makefile.am): Likewise.
17935         * modules/isapipe (Makefile.am): Likewise.
17936         * modules/javaversion (Makefile.am): Likewise.
17937         * modules/lchmod (Makefile.am): Likewise.
17938         * modules/lchown (Makefile.am): Likewise.
17939         * modules/localcharset (Makefile.am): Likewise.
17940         * modules/long-options (Makefile.am): Likewise.
17941         * modules/lstat (Makefile.am): Likewise.
17942         * modules/malloc (Makefile.am): Likewise.
17943         * modules/mathl (Makefile.am): Likewise.
17944         * modules/mbchar (Makefile.am): Likewise.
17945         * modules/md2 (Makefile.am): Likewise.
17946         * modules/md4 (Makefile.am): Likewise.
17947         * modules/md5 (Makefile.am): Likewise.
17948         * modules/memcasecmp (Makefile.am): Likewise.
17949         * modules/memchr (Makefile.am): Likewise.
17950         * modules/memcmp (Makefile.am): Likewise.
17951         * modules/memcoll (Makefile.am): Likewise.
17952         * modules/memcpy (Makefile.am): Likewise.
17953         * modules/memmem (Makefile.am): Likewise.
17954         * modules/memmove (Makefile.am): Likewise.
17955         * modules/mempcpy (Makefile.am): Likewise.
17956         * modules/memrchr (Makefile.am): Likewise.
17957         * modules/memset (Makefile.am): Likewise.
17958         * modules/memxor (Makefile.am): Likewise.
17959         * modules/mkancesdirs (Makefile.am): Likewise.
17960         * modules/mkdir-p (Makefile.am): Likewise.
17961         * modules/mkdir (Makefile.am): Likewise.
17962         * modules/mkdtemp (Makefile.am): Likewise.
17963         * modules/mkstemp (Makefile.am): Likewise.
17964         * modules/mktime (Makefile.am): Likewise.
17965         * modules/modechange (Makefile.am): Likewise.
17966         * modules/mountlist (Makefile.am): Likewise.
17967         * modules/nanosleep (Makefile.am): Likewise.
17968         * modules/obstack (Makefile.am): Likewise.
17969         * modules/openat (Makefile.am): Likewise.
17970         * modules/pagealign_alloc (Makefile.am): Likewise.
17971         * modules/pathmax (Makefile.am): Likewise.
17972         * modules/physmem (Makefile.am): Likewise.
17973         * modules/poll (Makefile.am): Likewise.
17974         * modules/posixtm (Makefile.am): Likewise.
17975         * modules/posixver (Makefile.am): Likewise.
17976         * modules/putenv (Makefile.am): Likewise.
17977         * modules/quote (Makefile.am): Likewise.
17978         * modules/quotearg (Makefile.am): Likewise.
17979         * modules/raise (Makefile.am): Likewise.
17980         * modules/read-file (Makefile.am): Likewise.
17981         * modules/readline (Makefile.am): Likewise.
17982         * modules/readlink (Makefile.am): Likewise.
17983         * modules/readtokens (Makefile.am): Likewise.
17984         * modules/readutmp (Makefile.am): Likewise.
17985         * modules/realloc (Makefile.am): Likewise.
17986         * modules/regex (Makefile.am): Likewise.
17987         * modules/rename-dest-slash (Makefile.am): Likewise.
17988         * modules/rename (Makefile.am): Likewise.
17989         * modules/rijndael (Makefile.am): Likewise.
17990         * modules/rmdir (Makefile.am): Likewise.
17991         * modules/rpmatch (Makefile.am): Likewise.
17992         * modules/safe-read (Makefile.am): Likewise.
17993         * modules/safe-write (Makefile.am): Likewise.
17994         * modules/same-inode (Makefile.am): Likewise.
17995         * modules/same (Makefile.am): Likewise.
17996         * modules/save-cwd (Makefile.am): Likewise.
17997         * modules/savedir (Makefile.am): Likewise.
17998         * modules/setenv (Makefile.am): Likewise.
17999         * modules/settime (Makefile.am): Likewise.
18000         * modules/sha1 (Makefile.am): Likewise.
18001         * modules/sig2str (Makefile.am): Likewise.
18002         * modules/snprintf (Makefile.am): Likewise.
18003         * modules/stat-macros (Makefile.am): Likewise.
18004         * modules/stat-time (Makefile.am): Likewise.
18005         * modules/stdbool (Makefile.am): Likewise.
18006         * modules/stdint (Makefile.am): Likewise.
18007         * modules/stdlib-safer (Makefile.am): Likewise.
18008         * modules/stpcpy (Makefile.am): Likewise.
18009         * modules/stpncpy (Makefile.am): Likewise.
18010         * modules/strcase (Makefile.am): Likewise.
18011         * modules/strcasestr (Makefile.am): Likewise.
18012         * modules/strchrnul (Makefile.am): Likewise.
18013         * modules/strcspn (Makefile.am): Likewise.
18014         * modules/strdup (Makefile.am): Likewise.
18015         * modules/strerror (Makefile.am): Likewise.
18016         * modules/strftime (Makefile.am): Likewise.
18017         * modules/strndup (Makefile.am): Likewise.
18018         * modules/strnlen (Makefile.am): Likewise.
18019         * modules/strpbrk (Makefile.am): Likewise.
18020         * modules/strsep (Makefile.am): Likewise.
18021         * modules/strstr (Makefile.am): Likewise.
18022         * modules/strtod (Makefile.am): Likewise.
18023         * modules/strtoimax (Makefile.am): Likewise.
18024         * modules/strtok_r (Makefile.am): Likewise.
18025         * modules/strtol (Makefile.am): Likewise.
18026         * modules/strtoll (Makefile.am): Likewise.
18027         * modules/strtoul (Makefile.am): Likewise.
18028         * modules/strtoull (Makefile.am): Likewise.
18029         * modules/strtoumax (Makefile.am): Likewise.
18030         * modules/strverscmp (Makefile.am): Likewise.
18031         * modules/sys_socket (Makefile.am): Likewise.
18032         * modules/sys_stat (Makefile.am): Likewise.
18033         * modules/sysexits (Makefile.am): Likewise.
18034         * modules/time_r (Makefile.am): Likewise.
18035         * modules/timegm (Makefile.am): Likewise.
18036         * modules/timespec (Makefile.am): Likewise.
18037         * modules/tmpfile-safer (Makefile.am): Likewise.
18038         * modules/trim (Makefile.am): Likewise.
18039         * modules/unistd-safer (Makefile.am): Likewise.
18040         * modules/unlinkdir (Makefile.am): Likewise.
18041         * modules/unlocked-io (Makefile.am): Likewise.
18042         * modules/userspec (Makefile.am): Likewise.
18043         * modules/utime (Makefile.am): Likewise.
18044         * modules/utimecmp (Makefile.am): Likewise.
18045         * modules/utimens (Makefile.am): Likewise.
18046         * modules/vasnprintf (Makefile.am): Likewise.
18047         * modules/vasprintf (Makefile.am): Likewise.
18048         * modules/vsnprintf (Makefile.am): Likewise.
18049         * modules/xalloc (Makefile.am): Likewise.
18050         * modules/xgetcwd (Makefile.am): Likewise.
18051         * modules/xnanosleep (Makefile.am): Likewise.
18052         * modules/xreadlink (Makefile.am): Likewise.
18053         * modules/xstrtod (Makefile.am): Likewise.
18054         * modules/xstrtol (Makefile.am): Likewise.
18055         * modules/xstrtold (Makefile.am): Likewise.
18056         * modules/yesno (Makefile.am): Likewise.
18057         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
18058
18059 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18060
18061         * modules/error (Makefile.am): Distribute files through
18062         EXTRA_DIST, not lib_SOURCES.
18063
18064 2006-10-12  Eric Blake  <ebb9@byu.net>
18065
18066         * modules/error (Makefile.am): Distribute files in /lib.
18067         * modules/obstack (Makefile.am): Likewise.
18068
18069 2006-10-12  Bruno Haible  <bruno@clisp.org>
18070
18071         * modules/acl (Makefile.am): Distribute all files in lib/ through
18072         EXTRA_DIST.
18073         * modules/arcfour (Makefile.am): Likewise.
18074         * modules/arctwo (Makefile.am): Likewise.
18075         * modules/argmatch (Makefile.am): Likewise.
18076         * modules/argz (Makefile.am): Likewise.
18077         * modules/atexit (Makefile.am): Likewise.
18078         * modules/backupfile (Makefile.am): Likewise.
18079         * modules/c-strtod (Makefile.am): Likewise.
18080         * modules/c-strtold (Makefile.am): Likewise.
18081         * modules/calloc (Makefile.am): Likewise.
18082         * modules/canon-host (Makefile.am): Likewise.
18083         * modules/canonicalize (Makefile.am): Likewise.
18084         * modules/chdir-long (Makefile.am): Likewise.
18085         * modules/chdir-safer (Makefile.am): Likewise.
18086         * modules/check-version (Makefile.am): Likewise.
18087         * modules/chown (Makefile.am): Likewise.
18088         * modules/cloexec (Makefile.am): Likewise.
18089         * modules/close-stream (Makefile.am): Likewise.
18090         * modules/closeout (Makefile.am): Likewise.
18091         * modules/crc (Makefile.am): Likewise.
18092         * modules/cycle-check (Makefile.am): Likewise.
18093         * modules/des (Makefile.am): Likewise.
18094         * modules/dirfd (Makefile.am): Likewise.
18095         * modules/dirname (Makefile.am): Likewise.
18096         * modules/dup2 (Makefile.am): Likewise.
18097         * modules/euidaccess (Makefile.am): Likewise.
18098         * modules/exclude (Makefile.am): Likewise.
18099         * modules/exitfail (Makefile.am): Likewise.
18100         * modules/fcntl-safer (Makefile.am): Likewise.
18101         * modules/file-type (Makefile.am): Likewise.
18102         * modules/fileblocks (Makefile.am): Likewise.
18103         * modules/filemode (Makefile.am): Likewise.
18104         * modules/filenamecat (Makefile.am): Likewise.
18105         * modules/fnmatch (Makefile.am): Likewise.
18106         * modules/fopen-safer (Makefile.am): Likewise.
18107         * modules/fpending (Makefile.am): Likewise.
18108         * modules/fprintftime (Makefile.am): Likewise.
18109         * modules/free (Makefile.am): Likewise.
18110         * modules/fsusage (Makefile.am): Likewise.
18111         * modules/ftruncate (Makefile.am): Likewise.
18112         * modules/fts (Makefile.am): Likewise.
18113         * modules/gc (Makefile.am): Likewise.
18114         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18115         * modules/getaddrinfo (Makefile.am): Likewise.
18116         * modules/getcwd (Makefile.am): Likewise.
18117         * modules/getdelim (Makefile.am): Likewise.
18118         * modules/getdomainname (Makefile.am): Likewise.
18119         * modules/getgroups (Makefile.am): Likewise.
18120         * modules/gethostname (Makefile.am): Likewise.
18121         * modules/gethrxtime (Makefile.am): Likewise.
18122         * modules/getline (Makefile.am): Likewise.
18123         * modules/getloadavg (Makefile.am): Likewise.
18124         * modules/getlogin_r (Makefile.am): Likewise.
18125         * modules/getopt (Makefile.am): Likewise.
18126         * modules/getpass (Makefile.am): Likewise.
18127         * modules/getpass-gnu (Makefile.am): Likewise.
18128         * modules/getsubopt (Makefile.am): Likewise.
18129         * modules/gettime (Makefile.am): Likewise.
18130         * modules/gettimeofday (Makefile.am): Likewise.
18131         * modules/getugroups (Makefile.am): Likewise.
18132         * modules/getusershell (Makefile.am): Likewise.
18133         * modules/glob (Makefile.am): Likewise.
18134         * modules/group-member (Makefile.am): Likewise.
18135         * modules/hard-locale (Makefile.am): Likewise.
18136         * modules/hash (Makefile.am): Likewise.
18137         * modules/hmac-md5 (Makefile.am): Likewise.
18138         * modules/hmac-sha1 (Makefile.am): Likewise.
18139         * modules/human (Makefile.am): Likewise.
18140         * modules/idcache (Makefile.am): Likewise.
18141         * modules/imaxabs (Makefile.am): Likewise.
18142         * modules/imaxdiv (Makefile.am): Likewise.
18143         * modules/inet_ntop (Makefile.am): Likewise.
18144         * modules/inet_pton (Makefile.am): Likewise.
18145         * modules/inttostr (Makefile.am): Likewise.
18146         * modules/isapipe (Makefile.am): Likewise.
18147         * modules/lchown (Makefile.am): Likewise.
18148         * modules/long-options (Makefile.am): Likewise.
18149         * modules/lstat (Makefile.am): Likewise.
18150         * modules/malloc (Makefile.am): Likewise.
18151         * modules/mathl (Makefile.am): Likewise.
18152         * modules/mbchar (Makefile.am): Likewise.
18153         * modules/md2 (Makefile.am): Likewise.
18154         * modules/md4 (Makefile.am): Likewise.
18155         * modules/md5 (Makefile.am): Likewise.
18156         * modules/memcasecmp (Makefile.am): Likewise.
18157         * modules/memchr (Makefile.am): Likewise.
18158         * modules/memcmp (Makefile.am): Likewise.
18159         * modules/memcoll (Makefile.am): Likewise.
18160         * modules/memcpy (Makefile.am): Likewise.
18161         * modules/memmem (Makefile.am): Likewise.
18162         * modules/memmove (Makefile.am): Likewise.
18163         * modules/mempcpy (Makefile.am): Likewise.
18164         * modules/memrchr (Makefile.am): Likewise.
18165         * modules/memset (Makefile.am): Likewise.
18166         * modules/memxor (Makefile.am): Likewise.
18167         * modules/mkancesdirs (Makefile.am): Likewise.
18168         * modules/mkdir (Makefile.am): Likewise.
18169         * modules/mkdir-p (Makefile.am): Likewise.
18170         * modules/mkdtemp (Makefile.am): Likewise.
18171         * modules/mkstemp (Makefile.am): Likewise.
18172         * modules/mktime (Makefile.am): Likewise.
18173         * modules/modechange (Makefile.am): Likewise.
18174         * modules/mountlist (Makefile.am): Likewise.
18175         * modules/nanosleep (Makefile.am): Likewise.
18176         * modules/openat (Makefile.am): Likewise.
18177         * modules/pagealign_alloc (Makefile.am): Likewise.
18178         * modules/physmem (Makefile.am): Likewise.
18179         * modules/poll (Makefile.am): Likewise.
18180         * modules/posixtm (Makefile.am): Likewise.
18181         * modules/posixver (Makefile.am): Likewise.
18182         * modules/putenv (Makefile.am): Likewise.
18183         * modules/quote (Makefile.am): Likewise.
18184         * modules/quotearg (Makefile.am): Likewise.
18185         * modules/raise (Makefile.am): Likewise.
18186         * modules/read-file (Makefile.am): Likewise.
18187         * modules/readline (Makefile.am): Likewise.
18188         * modules/readlink (Makefile.am): Likewise.
18189         * modules/readtokens (Makefile.am): Likewise.
18190         * modules/readutmp (Makefile.am): Likewise.
18191         * modules/realloc (Makefile.am): Likewise.
18192         * modules/regex (Makefile.am): Likewise.
18193         * modules/rename (Makefile.am): Likewise.
18194         * modules/rename-dest-slash (Makefile.am): Likewise.
18195         * modules/rijndael (Makefile.am): Likewise.
18196         * modules/rmdir (Makefile.am): Likewise.
18197         * modules/rpmatch (Makefile.am): Likewise.
18198         * modules/safe-read (Makefile.am): Likewise.
18199         * modules/safe-write (Makefile.am): Likewise.
18200         * modules/same (Makefile.am): Likewise.
18201         * modules/save-cwd (Makefile.am): Likewise.
18202         * modules/savedir (Makefile.am): Likewise.
18203         * modules/setenv (Makefile.am): Likewise.
18204         * modules/settime (Makefile.am): Likewise.
18205         * modules/sha1 (Makefile.am): Likewise.
18206         * modules/sig2str (Makefile.am): Likewise.
18207         * modules/snprintf (Makefile.am): Likewise.
18208         * modules/stdlib-safer (Makefile.am): Likewise.
18209         * modules/stpcpy (Makefile.am): Likewise.
18210         * modules/stpncpy (Makefile.am): Likewise.
18211         * modules/strcase (Makefile.am): Likewise.
18212         * modules/strcasestr (Makefile.am): Likewise.
18213         * modules/strchrnul (Makefile.am): Likewise.
18214         * modules/strcspn (Makefile.am): Likewise.
18215         * modules/strdup (Makefile.am): Likewise.
18216         * modules/strerror (Makefile.am): Likewise.
18217         * modules/strftime (Makefile.am): Likewise.
18218         * modules/strndup (Makefile.am): Likewise.
18219         * modules/strnlen (Makefile.am): Likewise.
18220         * modules/strpbrk (Makefile.am): Likewise.
18221         * modules/strsep (Makefile.am): Likewise.
18222         * modules/strstr (Makefile.am): Likewise.
18223         * modules/strtod (Makefile.am): Likewise.
18224         * modules/strtoimax (Makefile.am): Likewise.
18225         * modules/strtok_r (Makefile.am): Likewise.
18226         * modules/strtol (Makefile.am): Likewise.
18227         * modules/strtoll (Makefile.am): Likewise.
18228         * modules/strtoul (Makefile.am): Likewise.
18229         * modules/strtoull (Makefile.am): Likewise.
18230         * modules/strtoumax (Makefile.am): Likewise.
18231         * modules/strverscmp (Makefile.am): Likewise.
18232         * modules/time_r (Makefile.am): Likewise.
18233         * modules/timegm (Makefile.am): Likewise.
18234         * modules/tmpfile-safer (Makefile.am): Likewise.
18235         * modules/unistd-safer (Makefile.am): Likewise.
18236         * modules/unlinkdir (Makefile.am): Likewise.
18237         * modules/userspec (Makefile.am): Likewise.
18238         * modules/utime (Makefile.am): Likewise.
18239         * modules/utimecmp (Makefile.am): Likewise.
18240         * modules/utimens (Makefile.am): Likewise.
18241         * modules/vasnprintf (Makefile.am): Likewise.
18242         * modules/vasprintf (Makefile.am): Likewise.
18243         * modules/vsnprintf (Makefile.am): Likewise.
18244         * modules/xalloc (Makefile.am): Likewise.
18245         * modules/xgetcwd (Makefile.am): Likewise.
18246         * modules/xnanosleep (Makefile.am): Likewise.
18247         * modules/xreadlink (Makefile.am): Likewise.
18248         * modules/xstrtod (Makefile.am): Likewise.
18249         * modules/xstrtol (Makefile.am): Likewise.
18250         * modules/xstrtold (Makefile.am): Likewise.
18251         * modules/yesno (Makefile.am): Likewise.
18252
18253 2006-10-12  Jim Meyering  <jim@meyering.net>
18254
18255         * m4/getloadavg.m4: Revert the change below.
18256
18257         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
18258         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
18259         fail with a symlink, which is what coreutils' ./bootstrap now
18260         creates by default.
18261
18262 2006-10-12  Bruno Haible  <bruno@clisp.org>
18263
18264         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
18265         mingw.
18266         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
18267         MSVC and mingw explicitly.
18268
18269 2006-10-11  Simon Josefsson  <jas@extundo.com>
18270             Bruno Haible  <bruno@clisp.org>
18271
18272         Add support for multiple gnulib-tool invocations in the scope of a
18273         single configure.ac file.
18274         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
18275         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
18276         with the same contents as the _LIBADD variable.
18277         (func_emit_initmacro_start, func_emit_initmacro_end,
18278         func_emit_initmacro_done): New functions.
18279         (func_import, func_create_testdir): Invoke them. Allow the identifiers
18280         gl_LIBOBJS and gl_LTLIBOBJS.
18281
18282 2006-10-11  Bruno Haible  <bruno@clisp.org>
18283
18284         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
18285         (func_create_testdir): Don't create po/Makefile.am, don't invoke
18286         autoreconf. Instead, invoke autopoint explicitly but move back the
18287         *.m4 files from gnulib.
18288
18289 2006-10-11  Bruno Haible  <bruno@clisp.org>
18290
18291         * gnulib-tool (func_usage): Make module names after --create-testdir
18292         optional.
18293         (func_create_testdir): If no module was specified, use nearly all
18294         modules.
18295
18296 2006-10-12  Jim Meyering  <jim@meyering.net>
18297
18298         Big performance improvement for fts-based tools that use FTS_NOSTAT.
18299         Avoid spurious inode-mismatch problems on non-POSIX file systems.
18300         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
18301         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
18302         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
18303         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
18304         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
18305         (fts_set_stat_required): New function.
18306         (fts_open): Defer the calls to fts_stat, if possible or requested.
18307         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
18308         into fts_stat itself.
18309         (fts_read): Perform any required (deferred) fts_stat call.
18310         (fts_build): Likewise, for the directory we're about to open and read.
18311         In the readdir loop, carefully decide whether each entry will require
18312         an eventual call to fts_stat, using dirent.d_type info if available.
18313         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
18314         a command line argument into this function.  Update all callers.
18315         Map a return value of FTS_DOT to FTS_D for a command line argument.
18316         * modules/fts (Depends-on): Add d-type.  Alphabetize.
18317         Thanks to Miklos Szeredi for his tenacity and for the initial
18318         bug report about "find" failing on a FUSE-based file system.
18319
18320         * lib/fts.c (fts_open): Use consistent indentation.
18321
18322 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18323
18324         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
18325         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
18326         reported by Jim Meyering.  All uses of cache variables renamed
18327         to match Autoconf's.
18328         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
18329         the other one.
18330
18331         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18332         Fix misspelling in diagnostic.
18333
18334 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18335
18336         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
18337         defined.  Problem reported by Matthew Woehlke.
18338
18339         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
18340         Add support for Tandem NonStop R series.
18341         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
18342         Use new macro.
18343
18344         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
18345         (has_trailing_slash): Omit size arg; all callers changed.
18346         Omit 'inline', since it doesn't help performance and we'd
18347         need to configure it.
18348         Don't count //, ///, etc. as having a trailing slash.
18349         As a side effect, this removes a C99ism reported by Matthew Woehlke.
18350         (rpl_rename_dest_slash): On failure, use rename's errno rather
18351         than (in some cases) an incorrect or junk errno.
18352         Simplify code by removing need to compute length; this does
18353         cause it to make two passes instead of one over the file name,
18354         but it's worth it.
18355
18356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
18357         change, since Autoconf's version may no longer be appropriate now
18358         that we are using CVS Autoconf's version.  Add support for Tandem.
18359
18360 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18361             Bruno Haible  <bruno@clisp.org>
18362
18363         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
18364         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
18365         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
18366         gl_AC_TYPE_LONG_LONG.
18367
18368         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
18369         instead of HAVE_LONG_LONG.
18370         * lib/printf-args.c (printf_fetchargs): Likewise.
18371         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18372         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18373         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
18374         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
18375         gl_AC_TYPE_LONG_LONG.
18376
18377 2006-10-11  Bruno Haible  <bruno@clisp.org>
18378
18379         * m4/longlong.m4: Add comments.
18380         * m4/ulonglong.m4: Likewise.
18381
18382 2006-10-10  Bruno Haible  <bruno@clisp.org>
18383
18384         Make it possible to #define stpcpy, strdup to aliases.
18385         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
18386         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
18387
18388 2006-10-10  Bruno Haible  <bruno@clisp.org>
18389
18390         Make it possible to #define gcd to an alias.
18391         * lib/gcd.c: Include config.h.
18392
18393 2006-10-10  Bruno Haible  <bruno@clisp.org>
18394
18395         Make it possible to #define c_isascii to an alias.
18396         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
18397         defined. Undefine the macros before defining them, to avoid gcc
18398         warnings.
18399         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
18400         define NO_C_CTYPE_MACROS early.
18401
18402 2006-10-10  Bruno Haible  <bruno@clisp.org>
18403
18404         Make it possible to #define set_program_name to an alias.
18405         * lib/progname.c: Don't undefine set_program_name; instead, undefine
18406         ENABLE_RELOCATABLE early.
18407
18408 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18409
18410         Port to Tandem NSK OSS, which has 64-bit signed int but at most
18411         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
18412         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
18413         More generally, don't assume that 64-bit signed int is available
18414         if unsigned int is, and vice versa.
18415         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
18416         unsigned symbols, not on their signed counterparts.
18417         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
18418         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
18419         (UINT64_C, UINTMAX_C):
18420         Likewise.
18421         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
18422         unsigned counterparts.
18423         (Have_long_long, Unsigned): New macros.
18424         (Int): Renamed from INT.
18425         (strtoimax): Use the new macros.
18426         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
18427         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
18428         * modules/inttypes (inttypes.h): Substitute
18429         HAVE_UNSIGNED_LONG_LONG_INT.
18430         * modules/stdint (stdint.h): Likewise.
18431         (Files): Add m4/ulonglong.m4.
18432
18433 2006-10-10  Bruno Haible  <bruno@clisp.org>
18434
18435         Fix a gcc -Wshadow warning.
18436         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
18437         to 'bucket'.
18438         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
18439         gl_linked_indexof_from_to): Likewise.
18440         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
18441         Likewise.
18442         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
18443         Likewise.
18444         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
18445         Reported by Eric Blake.
18446
18447 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18448
18449         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
18450         for NetBSD.  Problem reported by Bruno Haible.
18451
18452 2006-10-09  Jim Meyering  <jim@meyering.net>
18453
18454         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
18455         Patch from Bruno Haible.
18456
18457 2006-10-09  Jim Meyering  <jim@meyering.net>
18458
18459         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
18460         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
18461         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
18462
18463 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18464
18465         Don't include <config.h> twice; this doesn't work in some cases,
18466         e.g., when config.h has "#define intmax_t long long int" and
18467         we include <config.h>, <inttypes.h>, <config.h> in that order.
18468         Problem reported by Matthew Woehlke in:
18469         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
18470         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
18471         * lib/fts-cycle.c: Don't include config.h.
18472         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
18473         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
18474         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
18475         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
18476         inttypes.h.
18477         * lib/xstrtoumax.c: Likewise.
18478         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
18479         __strtol and the like, so that this module is more like its siblings.
18480         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
18481         Remove; no longer needed now that we assume gnulib inttypes.h.
18482
18483 2006-10-08  Bruno Haible  <bruno@clisp.org>
18484
18485         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
18486         option.
18487
18488 2006-10-07  Jim Meyering  <jim@meyering.net>
18489
18490         * modules/inttypes (inttypes.h): Revert what seems to have been
18491         an inadvertent part of today's change: use "|", not "/" in the
18492         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
18493
18494 2006-10-07  Bruno Haible  <bruno@clisp.org>
18495
18496         * modules/sublist: New file.
18497
18498 2006-10-07  Bruno Haible  <bruno@clisp.org>
18499
18500         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
18501         * modules/argz (argz.h): Likewise.
18502         * modules/arpa_inet (arpa/inet.h): Likewise.
18503         * modules/byteswap (byteswap.h): Likewise.
18504         * modules/configmake (configmake.h): Likewise.
18505         * modules/fcntl (fcntl.h): Likewise.
18506         * modules/fnmatch (fnmatch.h): Likewise.
18507         * modules/getopt (getopt.h): Likewise.
18508         * modules/glob (glob.h): Likewise.
18509         * modules/inttypes (inttypes.h): Likewise.
18510         * modules/netinet_in (netinet/in.h): Likewise.
18511         * modules/poll (poll.h): Likewise.
18512         * modules/stdbool (stdbool.h): Likewise.
18513         * modules/stdint (stdint.h): Likewise.
18514         * modules/sys_select (sys/select.h): Likewise.
18515         * modules/sys_socket (sys/socket.h): Likewise.
18516         * modules/sys_stat (sys/stat.h): Likewise.
18517         * modules/sysexits (sysexits.h): Likewise.
18518         * modules/unistd (unistd.h): Likewise.
18519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18520         Add a "DO NOT EDIT" comment to the generated file.
18521         (func_import): Likewise for gnulib-comp.m4.
18522
18523 2006-10-07  Bruno Haible  <bruno@clisp.org>
18524
18525         * lib/gl_sublist.h: New file.
18526         * lib/gl_sublist.c: New file.
18527
18528 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18529
18530         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
18531         name (relative to the original working directory) and the file
18532         name component (relative to the temporary working directory).  All
18533         callers changed.
18534         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
18535         * lib/mkdir-p.c (make_dir_parents): Likewise.
18536         * lib/mkdir-p.h (make_dir_parents): Likewise.
18537
18538 2006-10-06  Eric Blake  <ebb9@byu.net>
18539
18540         Define several macros for use by the clean-temp module.
18541         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
18542         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
18543         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
18544
18545         * lib/clean-temp.h (close_stream_temp): New declaration.
18546         * lib/clean-temp.c (includes): Pull in headers according to what
18547         other modules are in use.
18548         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
18549
18550 2006-10-06  Bruno Haible  <bruno@clisp.org>
18551
18552         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
18553         instead of fopen, fwriteerror.
18554
18555 2006-10-06  Bruno Haible  <bruno@clisp.org>
18556
18557         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
18558         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
18559         int.
18560         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
18561         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
18562         Return an error indicator.
18563         Suggested by Eric Blake.
18564
18565 2006-10-06  Bruno Haible  <bruno@clisp.org>
18566
18567         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
18568         Reported by Eric Blake.
18569
18570 2006-10-06  Bruno Haible  <bruno@clisp.org>
18571
18572         * modules/closeout (Description): Mention stderr too.
18573
18574 2006-10-06  Bruno Haible  <bruno@clisp.org>
18575         and Paul Eggert  <eggert@cs.ucla.edu>
18576
18577         * lib/closeout.c (close_stdout): Also close stderr.
18578         * lib/closeout.h: Update comment.
18579
18580 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18581
18582         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
18583         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
18584         * lib/dirchownmod.c: Include lchown.h.
18585         * lib/lchown.c: Don't include files that lchown.h now includes.
18586         Don't declare chown, since lchown.h now does that.
18587         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
18588         (lchown): Define to rpl_chown if lchown is declared but
18589         does not exist.  Declare using a prototype if lchown is not
18590         declared.  Add a copyright notice.
18591         * lib/mkstemp.h: Include <unistd.h>.
18592         * lib/openat.c: Include lchown.h.
18593
18594         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
18595         we now test for that separately.
18596         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
18597         rather than O_NOFOLLOW, when testing whether it's possible to
18598         avoid a race condition reliably.
18599         * lib/savewd.c (savewd_chdir): Likewise.
18600
18601         Remove macros that are no longer needed now that stdint.h is
18602         reliable.
18603         * lib/fsusage.c (UINTMAX_MAX): Remove.
18604         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
18605         * lib/utimecmp.c (SIZE_MAX): Remove.
18606
18607         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
18608
18609         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
18610         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
18611         O_NOATIME works.
18612
18613 2006-10-05  Bruno Haible  <bruno@clisp.org>
18614
18615         * lib/gl_list.h (gl_sortedlist_search_from_to,
18616         gl_sortedlist_indexof_from_to): New declarations.
18617         (gl_list_implementation): New fields sortedlist_search_from_to,
18618         sortedlist_indexof_from_to.
18619         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
18620         inline functions.
18621         * lib/gl_list.c (gl_sortedlist_search_from_to,
18622         gl_sortedlist_indexof_from_to): New functions.
18623         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
18624         function.
18625         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
18626         (gl_array_sortedlist_search_from_to): New function.
18627         (gl_array_list_implementation): Update.
18628         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
18629         function.
18630         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
18631         (gl_carray_sortedlist_search_from_to): New function.
18632         (gl_carray_list_implementation): Update.
18633         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
18634         gl_linked_sortedlist_indexof_from_to): New functions.
18635         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18636         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18637         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
18638         gl_tree_sortedlist_indexof_from_to): New functions.
18639         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18640         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18641         Update.
18642         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18643         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
18644         Update.
18645
18646 2006-10-05  Bruno Haible  <bruno@clisp.org>
18647
18648         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
18649         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
18650         (struct gl_list_implementation): Add fields search_from_to,
18651         indexof_from_to. Remove fields search, indexof.
18652         (gl_list_search): Use the search_from_to method.
18653         (gl_list_search_from, gl_list_search_from_to): New functions.
18654         (gl_list_indexof): Use the indexof_from_to method.
18655         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18656         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
18657         (gl_list_search_from, gl_list_search_from_to): New functions.
18658         (gl_list_indexof): Use the indexof_from_to method.
18659         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18660         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
18661         gl_array_indexof. Add start_index, end_index arguments.
18662         (gl_array_search_from_to): Renamed from gl_array_search. Add
18663         start_index, end_index arguments.
18664         (gl_array_remove, gl_array_list_implementation): Update.
18665         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
18666         gl_carray_indexof. Add start_index, end_index arguments.
18667         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
18668         start_index, end_index arguments.
18669         (gl_carray_remove, gl_carray_list_implementation): Update.
18670         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
18671         gl_linked_search. Add start_index, end_index arguments.
18672         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
18673         start_index, end_index arguments.
18674         (gl_linked_remove): Update.
18675         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18676         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18677         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
18678         field to 'size_t'.
18679         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
18680         gl_tree_search. Add start_index, end_index arguments.
18681         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18682         start_index, end_index arguments.
18683         (gl_tree_remove): Update.
18684         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18685         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18686         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
18687         function.
18688         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
18689         gl_tree_search. Add start_index, end_index arguments.
18690         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18691         start_index, end_index arguments.
18692         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18693         Update.
18694         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
18695
18696 2006-10-05  Bruno Haible  <bruno@clisp.org>
18697
18698         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
18699
18700         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
18701         fwriteerror_temp): New declarations.
18702         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
18703         (descriptors): New variable.
18704         (cleanup): First, close the descriptors.
18705         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
18706         fclose_temp, fwriteerror_temp): New functions.
18707
18708 2006-10-04  Jim Meyering  <jim@meyering.net>
18709
18710         * lib/fts.c (fts_open): Tiny comment change.
18711
18712 2006-10-04  Bruno Haible  <bruno@clisp.org>
18713
18714         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
18715         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
18716         gl_LOCK_BODY.
18717         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
18718         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
18719         gl_LOCK_EARLY_BODY.
18720         (gl_LOCK): Require gl_LOCK_BODY.
18721
18722 2006-10-04  Bruno Haible  <bruno@clisp.org>
18723
18724         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
18725         (gl_oset_search_atleast): New declaration.
18726         (struct gl_oset_implementation): Add field 'search_atleast'.
18727         (gl_oset_search_atleast): New inline function.
18728         * lib/gl_oset.c (gl_oset_search_atleast): New function.
18729         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
18730         (gl_array_oset_implementation): Update.
18731         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
18732         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
18733         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
18734
18735 2006-10-04  Bruno Haible  <bruno@clisp.org>
18736
18737         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
18738
18739 2006-10-03  Bruno Haible  <bruno@clisp.org>
18740
18741         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
18742         from gl_avltreehash_list_implementation.
18743
18744 2006-10-03  Bruno Haible  <bruno@clisp.org>
18745
18746         * lib/gl_oset.c (gl_oset_add): Fix return type.
18747
18748 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
18749
18750         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
18751
18752 2006-10-02  Eric Blake  <ebb9@byu.net>
18753
18754         * modules/strnlen (Depends-on): Add extensions.
18755
18756 2006-10-02  Eric Blake  <ebb9@byu.net>
18757
18758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
18759         definition in 2.60+.
18760
18761 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18762
18763         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
18764         checks.
18765
18766 2006-10-02  Bruno Haible  <bruno@clisp.org>
18767
18768         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
18769         to the AUTOMAKE_OPTIONS.
18770         Reported by Jim Meyering.
18771
18772 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
18773
18774         Work around bug in Solaris 10 /proc file system:
18775         /proc/self/fd/NNN/.. isn't the parent directory of
18776         the directory whose file descriptor is NNN.  This needs to
18777         be worked around at run time, not compile time, since a
18778         program might be built on Solaris 8, where things work, and
18779         run on Solaris 10.
18780         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
18781         to use the following interface instead:
18782         (OPENAT_BUFFER_SIZE): New macro.
18783         (openat_proc_name): New function.
18784         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
18785         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
18786         Likewise.
18787         * lib/openat-proc.c: New file.
18788         * modules/openat (Files): Add lib/openat-proc.c.
18789         (Depends-on): Add same-inode, stdbool.
18790         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
18791
18792 2006-09-29  Bruno Haible  <bruno@clisp.org>
18793
18794         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
18795         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
18796         argument. Set stdout_closed before testing for ferror, not after.
18797         (fwriteerror, fwriteerror_no_ebadf): New functions.
18798
18799 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18800
18801         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
18802
18803 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
18804
18805         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
18806         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
18807
18808 2006-09-28  Jim Meyering  <jim@meyering.net>
18809
18810         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
18811         Include <unistd.h>.
18812
18813 2006-09-28  Bruno Haible  <bruno@clisp.org>
18814
18815         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
18816         * modules/linkedhash-list (Depends-on): Likewise.
18817         * modules/rbtreehash-list (Depends-on): Likewise.
18818
18819 2006-09-28  Bruno Haible  <bruno@clisp.org>
18820
18821         * lib/strndup.h: Simplify the redefinition of strndup.
18822         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
18823         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
18824
18825 2006-09-28  Bruno Haible  <bruno@clisp.org>
18826
18827         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
18828         * lib/gl_linkedhash_list.c: Likewise.
18829         * lib/gl_rbtreehash_list.c: Likewise.
18830
18831 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
18832
18833         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
18834         getaddrinfo.
18835
18836         * lib/__fpending.h: Don't include <stdio_ext.h> unless
18837         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
18838         it causes <stdio_ext.h> to cause a compile-time error.
18839         Problem reported by Nelson H. F. Beebe.
18840         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
18841         of HAVE_DECL___PENDING.
18842
18843         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
18844         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
18845         declaration.
18846
18847 2006-09-27  Jim Meyering  <jim@meyering.net>
18848
18849         This file could end up with a definition for a function
18850         named __strndup, rather than rpl_strndup on a system with
18851         incomplete weak_alias support.
18852         * lib/strndup.c (strndup): Rename from __strndup.
18853         Remove #defines that used to map __strndup to strndup.
18854         Don't use K&R prototypes.
18855         Remove LIBC-related code, since this file is not sync'd with glibc.
18856         * lib/strndup.h: Revamp, accordingly.
18857         * m4/strndup.m4: Modernize.
18858
18859 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18860
18861         * modules/savewd (Depends-on): Add 'raise'.
18862         * lib/savewd.c: Include <signal.h>, for 'raise'.
18863
18864 2006-09-26  Jim Meyering  <jim@meyering.net>
18865
18866         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
18867         when we detect Darwin 8.7.0's acl_get_file bug.
18868         Rearrange to perform the new (below) run-test while $LIBS
18869         contains any acl-related library.  Set USE_ACL at the end.
18870         (gl_ACL_GET_FILE): New function.
18871
18872 2006-09-26  Eric Blake  <ebb9@byu.net>
18873
18874         * lib/verror.c: Include <config.h> unconditionally.
18875
18876 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18877
18878         * modules/clock-time (Maintainer): Add self.
18879         * modules/getlogin_r (Depends-on): Add extensions.
18880
18881 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18882
18883         * modules/clock-time: New module.
18884         * modules/nanosleep (Depends-on): Add clock-time.
18885         * modules/gethrxtime (Depends-on): Likewise.
18886         * modules/gettime (Depends-on): Likewise.
18887         * modules/settime (Depends-on): Likewise.
18888
18889         * modules/fts-lgpl: Depend on openat.
18890         * modules/mkancesdirs: Depend on savewd.
18891         * modules/mkdir-p: Likewise.
18892
18893 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18894
18895         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
18896
18897         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
18898         `gl_have_arbitrary_file_name_length_limit' to
18899         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
18900         actually works between configure runs.
18901
18902 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18903             Bruno Haible  <bruno@clisp.org>
18904
18905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
18906
18907 2006-09-25  Jim Meyering  <jim@meyering.net>
18908
18909         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
18910         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
18911
18912 2006-09-25  Eric Blake  <ebb9@byu.net>
18913
18914         * gnulib-tool (func_import, func_create_testdir): Fix typos in
18915         exec's in 2006-09-18 patch when shuffling fds.
18916
18917 2006-09-25  Bruno Haible  <bruno@clisp.org>
18918
18919         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
18920         Reported by Jim Meyering.
18921
18922 2006-09-24  Jim Meyering  <jim@meyering.net>
18923
18924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
18925         compare a pointer against a literal "0".  That caused failures with
18926         at least HP-UX's hpcc.
18927
18928 2006-09-22  Simon Josefsson  <jas@extundo.com>
18929
18930         * modules/gc-sha1:
18931         * modules/gc-md4:
18932         * modules/gc-hmac-sha1:
18933         * modules/gc-hmac-md5:
18934         * modules/gc-des:
18935         * modules/gc-arcfour: Distribute more files.
18936
18937 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18938
18939         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
18940         (gl_linked_iterator_from_to): Initialize struct completely.
18941         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
18942         (gl_tree_iterator_from_to): Likewise
18943         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
18944         * lib/gl_array_list.c [lint] (gl_array_iterator)
18945         (gl_array_iterator_from_to): Likewise.
18946         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
18947         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
18948         (gl_carray_iterator_from_to): Likewise.
18949
18950         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
18951         * lib/md4.c (md4_process_block): Remove unused variable.
18952         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
18953         parentheses for clarity.
18954
18955 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18956
18957         * modules/bison-i18n (Depends-on): Add gettext.
18958
18959 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18960
18961         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
18962         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18963         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
18964         also add missing comma that caused broken test.
18965         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
18966         stdlib.h, for `abort'.
18967         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
18968         variables.
18969         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
18970         include unistd.h if present, for `rmdir'.
18971         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
18972         variables.
18973         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
18974         in the process include standard headers for prototypes.
18975         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
18976         gets declared on GNU/Linux.
18977         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
18978         unistd.h, for `rmdir'.
18979         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
18980
18981         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
18982         always true.
18983         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
18984
18985         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
18986
18987 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18988
18989         * gnulib-tool (func_version): Create output all at once.  This
18990         may help avoid triggering unnecessary SIGPIPEs, and at any
18991         rate it doesn't hurt.
18992
18993 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18994             Bruno Haible  <bruno@clisp.org>
18995
18996         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
18997         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18998         * m4/signed.m4 (bh_C_SIGNED): Likewise.
18999
19000         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
19001         (gl_FUNC_VASPRINTF): Invoke it.
19002
19003 2006-09-22  Bruno Haible  <bruno@clisp.org>
19004
19005         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
19006         getloadavg.c as first argument.
19007
19008 2006-09-22  Bruno Haible  <bruno@clisp.org>
19009
19010         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
19011         at the beginning of the gl_INIT macro.
19012         * modules/getloadavg (configure.ac): Pass $gl_source_base to
19013         gl_GETLOADAVG.
19014
19015 2006-09-22  Bruno Haible  <bruno@clisp.org>
19016
19017         * gnulib-tool (func_create_megatestdir): Don't include the config-h
19018         module.
19019         Suggested by Ralf Wildenhues.
19020
19021 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19022
19023         Import this patch from libc:
19024
19025         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
19026
19027         * lib/regex_internal.c (re_string_reconstruct): Handle
19028         offset < pstr->valid_raw_len && pstr->offsets_needed case.
19029         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
19030         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
19031         re_string_context_at.
19032
19033         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
19034         now requires it.
19035         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
19036         gl_REGEX now does it for us.
19037         (gl_REGEX): Add test taken from
19038         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
19039
19040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
19041         Check that large offsets work.  Modernize Autoconf usages.
19042         Prefer "yes" to mean a good thing rather than a bad.
19043         Don't put "#define mkstemp" in config.h, as this might interfere
19044         with standard system headers that "#define mkstemp mkstemp64".
19045
19046         * modules/mkstemp (Depends-on): Add extensions, so that
19047         mkstemp is visible on some platforms.
19048         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
19049         (Include): Change to "mkstemp.h" from <stdlib.h>.
19050         (Files): Add mkstemp.h.
19051
19052         * lib/mkstemp.h: New file, since some standard headers
19053         #define mkstemp.
19054         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
19055         Include "mkstemp.h".
19056         Make the _LIBC code resemble glibc original more,
19057         e.g., use K&R style.
19058         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
19059         (mkstemp): Remove, since mkstemp.h does this for us.
19060         * lib/stdlib--.h: Include mkstemp.h.
19061
19062         Import this patch from libc:
19063
19064         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
19065
19066         * lib/tempname.c (__gen_tempname): Change attempts_min
19067         into a macro.  Use preprocessor to decide how to initialize
19068         attempts [Coverity CID 67].
19069
19070 2006-09-20  Bruno Haible  <bruno@clisp.org>
19071
19072         * lib/mkdtemp.c: Import from libc.
19073         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
19074                 * sysdeps/posix/tempname.c (__gen_tempname): Change
19075                 attempts_min into a macro.  Use preprocessor to decide how to
19076                 initialize attempts [Coverity CID 67].
19077         2001-11-27  Paul Eggert  <eggert@twinsun.com>
19078                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
19079                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
19080
19081 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19082
19083         * gnulib-tool (func_exit): New function, to allow to pass the
19084         exit status portably through the trap.  Use everywhere.
19085         (--help, --version): Signal a write error.
19086         (trap): catch SIGPIPE, for write errors.
19087         Exit at the end of the trap, with the correct exit status.
19088
19089 2006-09-19  Karl Berry  <karl@gnu.org>
19090
19091         * doc/gnulib.texi: note about the license texinfo files.
19092
19093 2006-09-19  Eric Blake  <ebb9@byu.net>
19094
19095         * gnulib-tool: Avoid space-tab.
19096
19097 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
19098
19099         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
19100         that prevented coreutils 6.1 from building.  Problem reported
19101         by Petter Reinholdtsen.
19102
19103 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
19104
19105         * gnulib-tool (avoidlist): Fix typo that broke options like
19106         --avoid=lock that are used by coreutils bootstrap.
19107
19108 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
19109
19110         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
19111         more systematically.
19112
19113 2006-09-18  Jim Meyering  <jim@meyering.net>
19114
19115         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
19116
19117 2006-09-18  Bruno Haible  <bruno@clisp.org>
19118
19119         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
19120
19121 2006-09-18  Bruno Haible  <bruno@clisp.org>
19122
19123         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
19124         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
19125         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
19126         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
19127         * m4/gettext.m4: Require autoconf >= 2.52.
19128         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
19129         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
19130         of gl_cv_header_inttypes_h.
19131
19132 2006-09-18  Bruno Haible  <bruno@clisp.org>
19133
19134         * lib/javaversion.c: Include configmake.h.
19135
19136 2006-09-18  Bruno Haible  <bruno@clisp.org>
19137
19138         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
19139         avoid that the while loops be executed in a subshell.
19140
19141 2006-09-18  Bruno Haible  <bruno@clisp.org>
19142
19143         * MODULES.html.sh (func_module): Break long lines.
19144         Suggested by Bruce Korb <bkorb@gnu.org>.
19145
19146 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19147
19148         Speed up by a factor of 1.12.
19149         * gnulib-tool (nl): New variable.
19150         (func_import): Rewrite include directive extraction to only read each
19151         directive once.
19152
19153 2006-09-17  Bruno Haible  <bruno@clisp.org>
19154
19155         * modules/javaversion (Makefile.am): Remove DEFS setting.
19156         (Depends-on): Add configmake, for PKGDATADIR definition.
19157
19158 2006-09-17  Bruno Haible  <bruno@clisp.org>
19159
19160         * gnulib-tool (func_create_testdir): Rewrite all files at once.
19161
19162 2006-09-17  Bruno Haible  <bruno@clisp.org>
19163
19164         * gnulib-tool (func_append): New function, stolen from libtool.m4.
19165         (func_modules_transitive_closure, func_modules_add_dummy,
19166         func_modules_to_filelist, func_import, func_create_testdir,
19167         func_create_megatestdir, ...): Use it wherever possible.
19168         Suggested by Ralf Wildenhues.
19169
19170 2006-09-16  Karl Berry  <karl@gnu.org>
19171
19172         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
19173         to avoid sectioning errors.
19174         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
19175         [ifinfo]: blank line after @center-ed titles.
19176         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
19177         Spell FSF address consistently with others.
19178         (These changes approved by rms.)
19179
19180 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19181
19182         Speed up by a factor of 1.61.
19183         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
19184         already checked module names again.
19185
19186 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19187
19188         Speed up by a factor of 1.13.
19189         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
19190         for new_files, and the input to func_add_or_update.
19191
19192 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19193
19194         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
19195         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
19196
19197 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19198
19199         * modules/mkancesdirs (Depends-on): Add fcntl.
19200         * modules/savewd: New file.
19201         * MODULES.html.sh (File system functions): Add savewd.
19202
19203         * modules/configmake (Makefile.am): Add support for the
19204         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
19205
19206 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19207
19208         * m4/savewd.m4: New file.
19209
19210 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19211
19212         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
19213         (dirchownmod): New arg FD.  All callers changed.
19214         Use FD rather than opening the directory ourself, as opening is
19215         now the caller's responsibility.
19216         * lib/dirchownmod.h: Likewise.
19217         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
19218         hosts that require <sys/types.h> before <sys/stat.h>.  Include
19219         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
19220         (test_dir): Remove.
19221         (mkancesdirs): Return length of prefix of FILE that has already
19222         been made, or -2 if there is a child doing the work.  Redo
19223         algorithm so that it is O(N) rather than O(N**2).  Optimize away
19224         ".", and treat ".." specially since it might stray back into
19225         already-created areas.  Use a subprocess if necessary.  New arg
19226         WD; all users changed.  MAKE_DIR function should now return 1
19227         if it creates a directory that is not readable.  Return -2 if
19228         a child process is spun off.
19229         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
19230         Adjust signature to match code.
19231         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
19232         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
19233         all users changed.
19234         * lib/savewd.c, lib/savewd.h: New files.
19235
19236 2006-09-15  Jim Meyering  <jim@meyering.net>
19237
19238         * modules/rename-dest-slash: New module.
19239         * MODULES.html.sh (posix_compat): Add it here.
19240
19241         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
19242
19243 2006-09-15  Jim Meyering  <jim@meyering.net>
19244
19245         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
19246         file.
19247
19248         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
19249
19250 2006-09-15  Jim Meyering  <jim@meyering.net>
19251
19252         * lib/rename-dest-slash.c (has_trailing_slash): Use
19253         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
19254         (rpl_rename_dest_slash): Perform the cheaper trailing slash
19255         test before testing whether SRC is a directory.
19256         Suggestions from Bruno Haible.
19257
19258         Avoid a warning about an unused variable.
19259         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
19260         into the #ifdef block where it's used.
19261
19262         * lib/rename-dest-slash.c: New file.
19263
19264 2006-09-14  Bruno Haible  <bruno@clisp.org>
19265
19266         * lib/allocsa.c: Include <config.h> unconditionally.
19267         * lib/asnprintf.c: Likewise.
19268         * lib/asprintf.c: Likewise.
19269         * lib/c-strcasecmp.c: Likewise.
19270         * lib/c-strcasestr.c: Likewise.
19271         * lib/c-strncasecmp.c: Likewise.
19272         * lib/c-strstr.c: Likewise.
19273         * lib/classpath.c: Likewise.
19274         * lib/clean-temp.c: Likewise.
19275         * lib/concatpath.c: Likewise.
19276         * lib/copy-file.c: Likewise.
19277         * lib/csharpcomp.c: Likewise.
19278         * lib/csharpexec.c: Likewise.
19279         * lib/execute.c: Likewise.
19280         * lib/fatal-signal.c: Likewise.
19281         * lib/findprog.c: Likewise.
19282         * lib/fwriteerror.c: Likewise.
19283         * lib/gl_array_list.c: Likewise.
19284         * lib/gl_array_oset.c: Likewise.
19285         * lib/gl_avltree_list.c: Likewise.
19286         * lib/gl_avltree_oset.c: Likewise.
19287         * lib/gl_avltreehash_list.c: Likewise.
19288         * lib/gl_carray_list.c: Likewise.
19289         * lib/gl_linked_list.c: Likewise.
19290         * lib/gl_linkedhash_list.c: Likewise.
19291         * lib/gl_list.c: Likewise.
19292         * lib/gl_oset.c: Likewise.
19293         * lib/gl_rbtree_list.c: Likewise.
19294         * lib/gl_rbtree_oset.c: Likewise.
19295         * lib/gl_rbtreehash_list.c: Likewise.
19296         * lib/imaxabs.c: Likewise.
19297         * lib/imaxdiv.c: Likewise.
19298         * lib/javacomp.c: Likewise.
19299         * lib/javaexec.c: Likewise.
19300         * lib/javaversion.c: Likewise.
19301         * lib/linebreak.c: Likewise.
19302         * lib/localcharset.c: Likewise.
19303         * lib/lock.c: Likewise.
19304         * lib/mbchar.c: Likewise.
19305         * lib/mbswidth.c: Likewise.
19306         * lib/mkdtemp.c: Likewise.
19307         * lib/pipe.c: Likewise.
19308         * lib/printf-args.c: Likewise.
19309         * lib/printf-parse.c: Likewise.
19310         * lib/progname.c: Likewise.
19311         * lib/progreloc.c: Likewise.
19312         * lib/readlink.c: Likewise.
19313         * lib/sh-quote.c: Likewise.
19314         * lib/stpcpy.c: Likewise.
19315         * lib/stpncpy.c: Likewise.
19316         * lib/strcasecmp.c: Likewise.
19317         * lib/strcasestr.c: Likewise.
19318         * lib/strcspn.c: Likewise.
19319         * lib/striconv.c: Likewise.
19320         * lib/strncasecmp.c: Likewise.
19321         * lib/strnlen1.c: Likewise.
19322         * lib/strstr.c: Likewise.
19323         * lib/strtok_r.c: Likewise.
19324         * lib/tls.c: Likewise.
19325         * lib/tmpdir.c: Likewise.
19326         * lib/unicodeio.c: Likewise.
19327         * lib/unsetenv.c: Likewise.
19328         * lib/vasnprintf.c: Likewise.
19329         * lib/vasprintf.c: Likewise.
19330         * lib/wait-process.c: Likewise.
19331         * lib/xallocsa.c: Likewise.
19332         * lib/xsetenv.c: Likewise.
19333         * lib/xstriconv.c: Likewise.
19334
19335 2006-09-13  Simon Josefsson  <jas@extundo.com>
19336
19337         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
19338         that internally, suggested by Ralf Wildenhues
19339         <Ralf.Wildenhues@gmx.de>.
19340
19341 2006-09-13  Simon Josefsson  <jas@extundo.com>
19342
19343         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
19344         @LIBOBJS@.
19345         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19346
19347 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19348
19349         * lib/_fpending.c: Include <config.h> unconditionally, since we no
19350         longer worry about uses that don't define HAVE_CONFIG_H.
19351         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
19352         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
19353         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
19354         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
19355         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
19356         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
19357         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
19358         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
19359         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
19360         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
19361         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
19362         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
19363         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
19364         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
19365         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
19366         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
19367         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
19368         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
19369         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
19370         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
19371         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
19372         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
19373         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
19374         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
19375         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
19376         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
19377         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
19378         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
19379         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
19380         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
19381         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
19382         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
19383         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
19384         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
19385         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
19386         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
19387         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
19388         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
19389         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
19390         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
19391         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
19392         Likewise.
19393
19394 2006-09-13  Eric Blake  <ebb9@byu.net>
19395
19396         * lib/getopt.c: Fix typo in last commit.
19397
19398 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19399
19400         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
19401         dgettext.
19402
19403 2006-09-12  Jim Meyering  <jim@meyering.net>
19404
19405         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
19406         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
19407         Reported by Nelson H. F. Beebe.
19408
19409 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19410
19411         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
19412         program_invocation_name and program_invocation_short_name are
19413         initialized.
19414         * lib/argp-namefrob.h: Move declarations of program_invocation_name
19415         and program_invocation_short_name to argp.h, so they are visible
19416         to user programs.
19417         * lib/argp.h: Likewise
19418
19419 2006-09-10  Bruno Haible  <bruno@clisp.org>
19420
19421         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19422         m4/inttypes_h.m4, m4/uintmax_t.m4.
19423
19424 2006-09-10  Bruno Haible  <bruno@clisp.org>
19425
19426         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
19427         gl_AC_TYPE_UINTMAX_T.
19428
19429 2006-09-10  Bruno Haible  <bruno@clisp.org>
19430
19431         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
19432
19433 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19434
19435         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
19436         convention.  Text proposed by Bruno Haible.
19437         (struct argp_option): Document the use of N_() wrappers.
19438
19439         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
19440         '\v', and translate the two parts separately, instead of feeding
19441         the whole string to gettext.  This allows to exclude
19442         '\v' from the strings visible to the translator by writing doc
19443         strings as N_("..") "\v" N_("..").
19444
19445 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
19446
19447         * config/srclist.txt: Undo latest change; the bug was fixed.
19448
19449 2006-09-09  Bruno Haible  <bruno@clisp.org>
19450
19451         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
19452         assignments if building a library without libtool.
19453         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
19454         in func_emit_lib_Makefile_am.
19455         (func_import): When building a static library libfoo.a, arrange to
19456         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
19457         (func_create_testdir): Likewise.
19458         * modules/gc (configure.ac, Makefile.am): If building statically,
19459         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
19460         * modules/iconvme (configure.ac, Makefile.am): Likewise.
19461         * modules/striconv (configure.ac, Makefile.am): Likewise.
19462         Based on a suggestion by Ralf Wildenhues.
19463
19464 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19465
19466         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19467         Check for unistd.h too, since Autoconf doesn't assume POSIX.
19468         Also:
19469
19470         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19471         Add year_2050_test to catch glibc bug 2821
19472         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19473
19474         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19475         Prefer #ifdef to #if.
19476
19477         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
19478         Return from 'main' instead of calling 'exit'.
19479
19480 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19481
19482         * lib/mktime.c (guess_time_tm): Fix bug where mktime
19483         returned the maximum time_t value rather than (time_t) -1.
19484         Problem originally reported by William Bardwell
19485         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19486
19487         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19488         Moved to here ...
19489         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19490         ... from here.
19491
19492 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19493
19494         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
19495         2821 is fixed.
19496
19497 2006-09-08  Jim Meyering  <jim@meyering.net>
19498
19499         Don't make generated files read-only.  That would bother too many
19500         people.  However, do retain the ability to work when targets are
19501         read-only: remove the destination and temporary files before writing
19502         them (when generated via sed or echo), or by using the -f option for
19503         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
19504         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19505         * modules/byteswap, modules/configmake, modules/fcntl:
19506         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19507         * modules/localcharset, modules/netinet_in, modules/poll:
19508         * modules/stdbool, modules/stdint, modules/sys_select:
19509         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19510
19511 2006-09-08  Jim Meyering  <jim@meyering.net>
19512
19513         Avoid new build failure on FreeBSD 6.0.
19514         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
19515         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
19516         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
19517
19518 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19519
19520         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
19521
19522 2006-09-07  Jim Meyering  <jim@meyering.net>
19523
19524         Fix global typo in last change: use chmod u-w, not chmod u-x.
19525         Spotted by Paul Eggert and Bruce Korb.
19526         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19527         * modules/byteswap, modules/configmake, modules/fcntl:
19528         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19529         * modules/localcharset, modules/netinet_in, modules/poll:
19530         * modules/stdbool, modules/stdint, modules/sys_select:
19531         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19532
19533 2006-09-06  Jim Meyering  <jim@meyering.net>
19534
19535         Make generated files be read-only.
19536         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
19537         Ensure that each generated file is now read-only.
19538         * modules/argz: Likewise.
19539         * modules/arpa_inet: Likewise.
19540         * modules/byteswap: Likewise.
19541         * modules/configmake: Likewise.
19542         * modules/fcntl: Likewise.
19543         * modules/fnmatch: Likewise.
19544         * modules/getopt: Likewise.
19545         * modules/glob: Likewise.
19546         * modules/inttypes: Likewise.
19547         * modules/netinet_in: Likewise.
19548         * modules/poll: Likewise.
19549         * modules/stdbool: Likewise.
19550         * modules/stdint: Likewise.
19551         * modules/sys_select: Likewise.
19552         * modules/sys_socket: Likewise.
19553         * modules/sys_stat: Likewise.
19554         * modules/sysexits: Likewise.
19555         * modules/localcharset: Same as above, but continue using temporary
19556         file named "t-$@" (why different?) rather than the "$@-t" used
19557         everywhere else.
19558
19559         * modules/sysexits (Makefile.am): Replace literal occurrences
19560         of "sysexit.h" more readable, and more consistent, "$@".
19561
19562 2006-09-06  Bruno Haible  <bruno@clisp.org>
19563
19564         * modules/striconv: New file.
19565         * modules/xstriconv: New file.
19566         * MODULES.html.sh (Internationalization functions): Add striconv,
19567         xstriconv.
19568
19569 2006-09-06  Bruno Haible  <bruno@clisp.org>
19570
19571         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
19572         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
19573         not using libtool correctly.
19574
19575 2006-09-06  Bruno Haible  <bruno@clisp.org>
19576
19577         * lib/striconv.h: New file.
19578         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
19579         iconvstring.c.
19580         * lib/xstriconv.h: New file.
19581         * lib/xstriconv.c: New file.
19582
19583 2006-09-06  Bruno Haible  <bruno@clisp.org>
19584
19585         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19586         lib_..._LDFLAGS.
19587
19588 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19589
19590         * lib/argz_.h: Sync from Libtool.
19591
19592         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
19593                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19594
19595         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
19596
19597 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19598
19599         * modules/trim: New file.
19600
19601 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19602
19603         * lib/trim.h: New file.
19604         * lib/trim.c: New file.
19605
19606 2006-09-05  Bruno Haible  <bruno@clisp.org>
19607
19608         * MODULES.html.sh (String handling): Add trim.
19609
19610 2006-09-04  Karl Berry  <karl@gnu.org>
19611
19612         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
19613         until next release.
19614
19615 2006-09-03  Bruno Haible  <bruno@clisp.org>
19616
19617         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
19618         correctly.
19619
19620 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19621
19622         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
19623         not gl_GETLOADAVG.  Omit unneeded semicolons.
19624         Problems reported by Ralf Wildenhues in
19625         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19626         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
19627         at the end, which is the usual gnulib style.
19628
19629         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
19630         of doing all the work ourselves.
19631         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
19632         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
19633
19634 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19635
19636         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
19637         Problem reported by Ralf Wildenhues in
19638         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19639
19640         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
19641         HAVE_STRUCT_STATFS_F_FSTYPENAME.
19642
19643 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19644
19645         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
19646         yesterday's patch by changing test -n to test -z.
19647
19648 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19649
19650         * modules/getloadavg (Files): Add m4/getloadavg.m4.
19651         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
19652         the former is now obsolescent.
19653
19654         * modules/chdir-long (Depends-on): Add fcntl.
19655
19656 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19657
19658         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
19659         obsolescent, and programs should use gnulib instead.
19660         * m4/getloadavg.m4: New file, with contents taken from Autoconf
19661         but with prefixes changed.
19662
19663 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19664
19665         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
19666         or stdbool.h, because they might not exist while configuring.
19667
19668         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
19669         Don't include unistd.h or limits.h; not needed, since chdir-long.h
19670         does that for us.
19671         (O_DIRECTORY): Remove.
19672
19673 2006-08-31  Eric Blake  <ebb9@byu.net>
19674
19675         * gnulib-tool: Don't let emacs change spaces to TAB.
19676
19677 2006-08-31  Bruno Haible  <bruno@clisp.org>
19678
19679         * gnulib-tool: When calling func_import more than once, do it in a
19680         subshell.
19681         Reported by Eric Blake <ebb9@byu.net>.
19682
19683 2006-08-31  Bruno Haible  <bruno@clisp.org>
19684
19685         * gnulib-tool (nl): Remove variable.
19686         (sed_transform_lib_file): Use more robust test for config-h module.
19687         (func_import): Fix typo in 2006-08-25 patch.
19688
19689 2006-08-31  Bruno Haible  <bruno@clisp.org>
19690
19691         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
19692         specified, augment Makefile.am variables instead of assigning them.
19693
19694 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19695
19696         Work around a bug in both the Linux and SunOS 64-bit kernels:
19697         nanosleep mishandles sleeps for longer than 2**31 seconds.
19698         Problem reported by Frank v Waveren in
19699         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
19701         Check for nanosleep bug.
19702         (LIB_NANOSLEEP): Append clock_gettime library if needed.
19703
19704 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19705
19706         Work around a bug in both the Linux and SunOS 64-bit kernels:
19707         nanosleep mishandles sleeps for longer than 2**31 seconds.
19708         Problem reported by Frank v Waveren in
19709         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19710         * lib/nanosleep.c (BILLION): New constant.
19711         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
19712         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
19713         implementation.
19714
19715 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19716
19717         * modules/nanosleep (Depends-on): Add gettime.
19718
19719 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19720         and Simon Josefsson  <jas@extundo.com>
19721         and Oskar Liljeblad  <oskar@osk.mine.nu>
19722
19723         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
19724         * gnulib-tool (func_import): New license type 'unmodifiable license
19725         text'.
19726         * modules/fdl: Use it.  Longer description.
19727         * module/gpl, module/lgpl: New files.
19728
19729 2006-08-30  Jim Meyering  <jim@meyering.net>
19730
19731         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
19732         shadowing the parameter.
19733
19734 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19735
19736         Sync from Libtool:
19737
19738         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19739
19740         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
19741         sharing with gnulib.  Report by Eric Blake.
19742
19743 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19744
19745         * modules/isapipe: New file.
19746         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
19747
19748 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19749
19750         * modules/configmake (Makefile.am): Add a comment, and omit
19751         the CONFIGMAKE_ prefix from generated macro names.  Suggested
19752         by Bruno Haible.
19753
19754 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19755
19756         * m4/isapipe.m4: New file.
19757
19758 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19759
19760         * lib/isapipe.c, lib/isapipe.h: New files.
19761
19762 2006-08-29  Jim Meyering  <jim@meyering.net>
19763
19764         * modules/configmake (Makefile.am): Make configmake.h depend on
19765         Makefile.  Otherwise, a stale configmake.h could hang around.
19766
19767 2006-08-29  Eric Blake  <ebb9@byu.net>
19768
19769         * lib/error.c (error_at_line, print_errno_message): Match libc, after
19770         resolution of upstream bug 3044.
19771
19772 2006-08-29  Bruno Haible  <bruno@clisp.org>
19773
19774         * modules/localcharset (Depends-on): Add configmake.
19775         (Makefile.am): Remove setting of LIBDIR through DEFS.
19776
19777 2006-08-29  Bruno Haible  <bruno@clisp.org>
19778
19779         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
19780         defined.
19781
19782 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19783
19784         * modules/fcntl: New file.
19785         * modules/chdir-safer (Depends-on): Add fcntl.
19786         * modules/fts: Likewise.
19787         * modules/mkdir-p: Likewise.
19788
19789         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
19790         This undoes the most recent change, since we're now addressing the
19791         problem in a different way.
19792
19793         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
19794         into output, since the output might be called Makefile.am even
19795         if $makefile_name is something different.
19796         (func_import): Use $makefile_am rather than
19797         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
19798         empty.
19799
19800         * modules/inttypes (Files): Add m4/inttypes-h.m4.
19801
19802 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19803
19804         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
19805         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
19806         recent change to stdint.m4, since we're now addressing the problem in a
19807         different way.
19808
19809 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19810
19811         * m4/fcntl_h.m4: New file.
19812
19813 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19814
19815         * lib/fcntl_.h: New file.
19816         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
19817         the fcntl module.
19818         * lib/dirchownmod.c: Likewise.
19819         * lib/fts.c: Likewise.
19820
19821         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
19822         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
19823         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
19824         just before including <inttypes.h>, to avoid circular inclusion.
19825
19826 2006-08-28  Jim Meyering  <jim@meyering.net>
19827
19828         * doc/visibility.texi: Actually read and correct the grammar of the
19829         sentence affected by yesterday's change.
19830
19831 2006-08-28  Eric Blake  <ebb9@byu.net>
19832
19833         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
19834         needs wrapper.
19835
19836 2006-08-28  Eric Blake  <ebb9@byu.net>
19837
19838         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
19839
19840 2006-08-28  Eric Blake  <ebb9@byu.net>
19841
19842         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
19843
19844 2006-08-28  Bruno Haible  <bruno@clisp.org>
19845
19846         * modules/c-strstr: New file, from GNU gettext.
19847         * MODULES.html.sh (String handling): Add c-strstr.
19848
19849 2006-08-28  Bruno Haible  <bruno@clisp.org>
19850
19851         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
19852         macros.
19853         Reported by Eric Blake.
19854
19855 2006-08-28  Bruno Haible  <bruno@clisp.org>
19856
19857         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
19858         (VASNPRINTF): Return a string of length > INT_MAX without failing.
19859         * lib/vasprintf.c: Include errno.h, limits.h.
19860         (EOVERFLOW): New fallback definition.
19861         (vasprintf): Test here whether the string length is > INT_MAX.
19862         * lib/vsnprintf.c: Include errno.h, limits.h.
19863         (EOVERFLOW): New fallback definition.
19864         (vsnprintf): Fix bug when generated string was too long for the buffer.
19865         Test here whether the string length is > INT_MAX.
19866
19867 2006-08-28  Bruno Haible  <bruno@clisp.org>
19868
19869         * lib/inttypes_.h (SCNX*): Remove definitions.
19870         Reported by Eric Blake.
19871
19872 2006-08-28  Bruno Haible  <bruno@clisp.org>
19873
19874         * lib/c-strstr.h: New file, from GNU gettext.
19875         * lib/c-strstr.c: New file, from GNU gettext.
19876
19877 2006-08-28  Bruno Haible  <bruno@clisp.org>
19878
19879         * gnulib-tool: Reorder some statements.
19880
19881 2006-08-28  Bruno Haible  <bruno@clisp.org>
19882
19883         * gnulib-tool: New option --makefile-name.
19884         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
19885         $makefile_name.
19886         (func_import): Write $makefile_name to the cache file, and read it from
19887         there unless explicitly specified. Use $makefile_name as file name
19888         instead of Makefile.am. Adjust the recommendations accordingly.
19889
19890 2006-08-28  Bruno Haible  <bruno@clisp.org>
19891
19892         * gnulib-tool (func_verify_module): Check against misapplying patch.
19893
19894 2006-08-28  Bruno Haible  <bruno@clisp.org>
19895
19896         * gnulib-tool (func_relativize, func_relconcat): New functions.
19897         Give an error if --local-dir is given with --update.
19898         Remove trailing slashes from $local_gnulib_dir.
19899         (func_import): Store the relativized $local_gnulib_dir in
19900         gnulib-cache.m4, and read it from there if not specified explicitly.
19901
19902 2006-08-28  Bruno Haible  <bruno@clisp.org>
19903
19904         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
19905         is the current directory. Respect also $local_gnulib_dir.
19906
19907 2006-08-28  Bruno Haible  <bruno@clisp.org>
19908             Simon Josefsson  <jas@extundo.com>
19909
19910         BeOS portability.
19911         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
19912
19913 2006-08-27  Jim Meyering  <jim@meyering.net>
19914
19915         * doc/visibility.texi: Remove duplicate word: "pointer".
19916
19917 2006-08-26  Bruno Haible  <bruno@clisp.org>
19918
19919         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
19920         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
19921         (Makefile.am): Create inttypes.h from inttypes_.h.
19922         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
19923
19924         * modules/imaxabs: New file.
19925
19926         * modules/imaxdiv: New file.
19927
19928 2006-08-26  Bruno Haible  <bruno@clisp.org>
19929
19930         * m4/inttypes.m4: New file.
19931         * m4/_inttypes_h.m4: Remove file.
19932         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
19933         PRI_MACROS_BROKEN.
19934         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
19935
19936         * m4/imaxabs.m4: New file.
19937
19938         * m4/imaxdiv.m4: New file.
19939
19940 2006-08-26  Bruno Haible  <bruno@clisp.org>
19941
19942         * lib/inttypes_.h: New file.
19943         * lib/inttypes.h: Remove file.
19944         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
19945
19946         * lib/imaxabs.c: New file.
19947
19948         * lib/imaxdiv.c: New file.
19949
19950 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19951
19952         New config-h module, so that "make" output needn't be cluttered
19953         by -DHAVE_CONFIG_H.
19954         * MODULES.html.sh (Support for building libraries and executables):
19955         Add config-h.
19956         * modules/config-h: New file.
19957         * gnulib-tool (nl, sed_transform_lib_file): New vars.
19958         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
19959         the config-h module is used.
19960
19961         New configmake module, so that "make" output needn't be cluttered
19962         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
19963         * MODULES.html.sh (Support for building libraries and executables):
19964         Add configmake.
19965         * modules/configmake: New file.
19966
19967 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19968
19969         * m4/config-h.m4: New file.
19970
19971 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19972
19973         * config/srclist.txt: Add elisp-comp.
19974
19975 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19976
19977         * MODULES.html.sh (Support for building libraries and executables):
19978         Add elisp-comp.
19979         * build-aux/elisp-comp: New file.
19980         * modules/elisp-comp: New file.
19981
19982 2006-08-24  Bruno Haible  <bruno@clisp.org>
19983
19984         * gnulib-tool (func_create_testdir): Use non-default values of
19985         sourcebase and m4base.
19986
19987 2006-08-24  Bruno Haible  <bruno@clisp.org>
19988
19989         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
19990         HTML structure.
19991
19992 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19993
19994         * modules/openat (Depends-on): Add lchown.
19995
19996 2006-08-23  Bruno Haible  <bruno@clisp.org>
19997
19998         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
19999         of gl_LOCK_EARLY instead of gl_LOCK.
20000
20001 2006-08-23  Bruno Haible  <bruno@clisp.org>
20002
20003         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
20004         on OSF/1 to no.
20005         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
20006
20007 2006-08-23  Bruno Haible  <bruno@clisp.org>
20008
20009         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
20010         as unusable.
20011
20012         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
20013         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
20014         (gl_LOCK): New macro.
20015
20016 2006-08-22  Simon Josefsson  <jas@extundo.com>
20017
20018         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
20019         to md5 module.
20020
20021 2006-08-22  Simon Josefsson  <jas@extundo.com>
20022
20023         * MODULES.html.sh: Add "Support for maintaining and release
20024         projects".
20025
20026         * build-aux/gnupload: New file, from coreutils.
20027
20028 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20029
20030         Avoid the need for AC_LIBSOURCES in m4 macros.
20031         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
20032         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
20033         * modules/check-version (EXTRA_DIST): Add check-version.h.
20034         * modules/crc (EXTRA_DIST): Add crc.h.
20035         * modules/des (EXTRA_DIST): Add des.h.
20036         * modules/gc (EXTRA_DIST): Add gc.h.
20037         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
20038         * modules/getline (EXTRA_DIST): Add getline.h.
20039         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
20040         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
20041         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
20042         * modules/md2 (EXTRA_DIST): Add md2.h.
20043         * modules/md4 (EXTRA_DIST): Add md4.h.
20044         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
20045         * modules/read-file (EXTRA_DIST): Add read-file.h.
20046         * modules/readline (EXTRA_DIST): Add readline.h.
20047         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
20048         rijndael-api-fst.h.
20049
20050 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20051
20052         * m4/rijndael.m4 (gl_ARCFOUR):
20053         * m4/arctwo.m4 (gl_ARCTWO):
20054         * m4/check-version.m4 (gl_CHECK_VERSION):
20055         * m4/crc.m4 (gl_CRC):
20056         * m4/des.m4 (gl_DES):
20057         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
20058         * m4/gc.m4 (gl_GC):
20059         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
20060         * m4/getline.m4 (gl_FUNC_GETLINE):
20061         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
20062         * m4/hmac-md5.m4 (gl_HMAC_MD5):
20063         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
20064         * m4/md2.m4 (gl_MD2):
20065         * m4/md4.m4 (gl_MD4):
20066         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
20067         * m4/read-file.m4 (gl_FUNC_READ_FILE):
20068         * m4/readline.m4 (gl_FUNC_READLINE):
20069         * m4/rijndael.m4 (gl_RIJNDAEL):
20070         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20071         to get the necessary .h files and whatnot.
20072
20073 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20074
20075         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
20076         gnulib rather than the other way around.
20077         * config/srclistvars.sh (COREUTILS): Remove.
20078
20079 2006-08-22  Jim Meyering  <jim@meyering.net>
20080
20081         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
20082
20083         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
20084
20085 2006-08-22  Eric Blake  <ebb9@byu.net>
20086
20087         * modules/regexprops-generic: New file.
20088         * MODULES.html.sh (Support for building documentation): List it.
20089
20090 2006-08-22  Eric Blake  <ebb9@byu.net>
20091
20092         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
20093         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20094         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
20095         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20096
20097 2006-08-22  Bruno Haible  <bruno@clisp.org>
20098
20099         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
20100         and lib_LTLIBRARIES like the other lib_* variables.
20101
20102 2006-08-22  Bruno Haible  <bruno@clisp.org>
20103
20104         * build-aux/x-to-1.in: New file, from GNU gettext.
20105
20106 2006-08-22  Bruno Haible  <bruno@clisp.org>
20107
20108         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
20109         <utmpx.h> exists.
20110
20111 2006-08-22  Bruno Haible  <bruno@clisp.org>
20112
20113         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
20114         <utmpx.h> exists.
20115
20116 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20117
20118         BeOS portability.
20119         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
20120         exist.
20121         Problem reported by Bruno Haible.
20122
20123 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20124
20125         Avoid the need for AC_LIBSOURCES in m4 macros.
20126         * modules/acl (EXTRA_DIST): Add acl.h.
20127         * modules/argmatch (Files): Add m4/argmatch.m4.
20128         (configure.ac): Add gl_ARGMATCH.
20129         (EXTRA_DIST): Renamed from lib_SOURCES, for
20130         consistency with the other modules.  Remove argmatch.c.
20131         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
20132         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
20133         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
20134         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
20135         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
20136         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
20137         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
20138         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
20139         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
20140         * modules/closeout (EXTRA_DIST): Add closeout.h.
20141         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
20142         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
20143         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
20144         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
20145         dirname.h; remove basename.c and stripslash.c.
20146         * modules/exclude (EXTRA_DIST): Add exclude.h.
20147         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
20148         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
20149         * modules/file-type (EXTRA_DIST): Add file-type.h.
20150         * modules/filemode (EXTRA_DIST): Add filemode.h.
20151         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
20152         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20153         * modules/fpending (EXTRA_DIST): Add __fpending.h.
20154         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
20155         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
20156         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
20157         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
20158         * modules/getdate (EXTRA_DIST): Add getdate.c.
20159         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
20160         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
20161         * modules/getpass (EXTRA_DIST): Add getpass.h.
20162         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
20163         * modules/group-member (EXTRA_DIST): Add group-member.h.
20164         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
20165         * modules/hash (EXTRA_DIST): Add hash.h.
20166         * modules/human (EXTRA_DIST): Add human.h.
20167         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
20168         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
20169         * modules/lchown (EXTRA_DIST): Add lchown.h.
20170         * modules/long-options (EXTRA_DIST): Add long-options.h.
20171         * modules/lstat (EXTRA_DIST): Add lstat.h.
20172         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
20173         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
20174         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
20175         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
20176         * modules/memxor (EXTRA_DIST): Add memxor.h.
20177         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
20178         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
20179         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
20180         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
20181         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
20182         * modules/physmem (EXTRA_DIST): Add physmem.h.
20183         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
20184         * modules/posixver (EXTRA_DIST): Add posixver.h.
20185         * modules/quote (EXTRA_DIST): Add quote.h.
20186         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
20187         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
20188         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
20189         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
20190         regex_internal.h regexec.c.
20191         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
20192         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
20193         * modules/same (EXTRA_DIST): Add same.h.
20194         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
20195         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
20196         * modules/savedir (EXTRA_DIST): Add savedir.h.
20197         * modules/sha1 (EXTRA_DIST): Add sha1.h.
20198         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
20199         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
20200         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
20201         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
20202         * modules/strdup (EXTRA_DIST): Add strdup.h.
20203         * modules/strftime (EXTRA_DIST): Add strftime.h.
20204         * modules/strndup (EXTRA_DIST): Add strndup.h.
20205         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
20206         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
20207         * modules/time_r (EXTRA_DIST): Add time_r.h.
20208         * modules/timespec (EXTRA_DIST): Add timespec.h.
20209         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20210         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
20211         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
20212         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
20213         * modules/userspec (EXTRA_DIST): Add userspec.h.
20214         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
20215         * modules/utimens (EXTRA_DIST): Add utimens.h.
20216         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
20217         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
20218         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
20219         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
20220         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
20221         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
20222         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
20223         * modules/yesno (EXTRA_DIST): Add yesno.h.
20224
20225 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20226
20227         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
20228
20229         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
20230         * m4/dev-ino.m4, same-inode.m4: Remove.
20231
20232         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
20233         * m4/acl.m4 (AC_FUNC_ACL):
20234         * m4/backupfile.m4 (gl_BACKUPFILE):
20235         * m4/c-strtod.m4 (gl_C99_STRTOLD):
20236         * m4/canon-host.m4 (gl_CANON_HOST):
20237         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20238         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
20239         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
20240         * m4/cloexec.m4 (gl_CLOEXEC):
20241         * m4/close-stream.m4 (gl_CLOSE_STREAM):
20242         * m4/closeout.m4 (gl_CLOSEOUT):
20243         * m4/dirfd.m4 (gl_FUNC_DIRFD):
20244         * m4/dirname.m4 (gl_DIRNAME):
20245         * m4/exclude.m4 (gl_EXCLUDE):
20246         * m4/exitfail.m4 (gl_EXITFAIL):
20247         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
20248         * m4/file-type.m4 (gl_FILE_TYPE):
20249         * m4/filemode.m4 (gl_FILEMODE):
20250         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
20251         * m4/fpending.m4 (gl_FUNC_FPENDING):
20252         * m4/fprintftime.m4 (gl_FPRINTFTIME):
20253         * m4/fts.m4 (gl_FUNC_FTS):
20254         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20255         * m4/getdate.m4 (gl_GETDATE):
20256         * m4/gethrxtime.m4 (gl_GETHRXTIME):
20257         * m4/getpagesize.m4 (gl_GETPAGESIZE):
20258         * m4/getpass.m4 (gl_FUNC_GETPASS):
20259         * m4/gettime.m4 (gl_GETTIME):
20260         * m4/getugroups.m4 (gl_GETUGROUPS):
20261         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
20262         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
20263         * m4/hard-locale.m4 (gl_HARD_LOCALE):
20264         * m4/hash.m4 (gl_HASH):
20265         * m4/idcache.m4 (gl_IDCACHE):
20266         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
20267         * m4/lchown.m4 (gl_FUNC_LCHOWN):
20268         * m4/long-options.m4 (gl_LONG_OPTIONS):
20269         * m4/lstat.m4 (gl_FUNC_LSTAT):
20270         * m4/md5.m4 (gl_MD5):
20271         * m4/memcasecmp.m4 (gl_MEMCASECMP):
20272         * m4/memcoll.m4 (gl_MEMCOLL):
20273         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
20274         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
20275         * m4/memxor.m4 (gl_MEMXOR):
20276         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
20277         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
20278         * m4/modechange.m4 (gl_MODECHANGE):
20279         * m4/mountlist.m4 (gl_MOUNTLIST):
20280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20281         * m4/openat.m4 (gl_FUNC_OPENAT):
20282         * m4/pathmax.m4 (gl_PATHMAX):
20283         * m4/physmem.m4 (gl_PHYSMEM):
20284         * m4/posixtm.m4 (gl_POSIXTM):
20285         * m4/posixver.m4 (gl_POSIXVER):
20286         * m4/quote.m4 (gl_QUOTE):
20287         * m4/quotearg.m4 (gl_QUOTEARG):
20288         * m4/readtokens.m4 (gl_READTOKENS):
20289         * m4/readutmp.m4 (gl_READUTMP):
20290         * m4/regex.m4 (gl_REGEX):
20291         * m4/safe-read.m4 (gl_SAFE_READ):
20292         * m4/safe-write.m4 (gl_SAFE_WRITE):
20293         * m4/same.m4 (gl_SAME):
20294         * m4/save-cwd.m4 (gl_SAVE_CWD):
20295         * m4/savedir.m4 (gl_SAVEDIR):
20296         * m4/settime.m4 (gl_SETTIME):
20297         * m4/sha1.m4 (gl_SHA1):
20298         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
20299         * m4/stat-macros.m4 (gl_STAT_MACROS):
20300         * m4/stat-time.m4 (gl_STAT_TIME):
20301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
20302         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
20303         * m4/strdup.m4 (gl_FUNC_STRDUP):
20304         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
20305         * m4/strndup.m4 (gl_FUNC_STRNDUP):
20306         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
20307         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
20308         * m4/time_r.m4 (gl_TIME_R):
20309         * m4/timespec.m4 (gl_TIMESPEC):
20310         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
20311         * m4/unlinkdir.m4 (gl_UNLINKDIR):
20312         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
20313         * m4/userspec.m4 (gl_USERSPEC):
20314         * m4/utimecmp.m4 (gl_UTIMECMP):
20315         * m4/utimens.m4 (gl_UTIMENS):
20316         * m4/xalloc.m4 (gl_XALLOC):
20317         * m4/xgetcwd.m4 (gl_XGETCWD):
20318         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
20319         * m4/xreadlink.m4 (gl_XREADLINK):
20320         * m4/xstrtod.m4 (gl_XSTRTOD):
20321         * m4/yesno.m4 (gl_YESNO):
20322         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20323         to get the necessary .h files and whatnot.
20324
20325 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
20326             Bruno Haible  <bruno@clisp.org>
20327
20328         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
20329         /bin/sh understanding of '!' conditional negation.
20330
20331 2006-08-21  Jim Meyering  <jim@meyering.net>
20332
20333         * modules/openat (Depends-on): Really alphabetize.
20334
20335         * modules/acl (Depends-on): Add error and quote.
20336
20337         * check-module (find_included_lib_files): Add at-func.c to the
20338         ok-to-include-more-than-once white list.
20339
20340         * modules/openat (Depends-on): Add lstat.  Alphabetize.
20341
20342 2006-08-21  Bruno Haible  <bruno@clisp.org>
20343
20344         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20345         Emit a pkgdata_DATA variable only if some snippets add contents to it.
20346         Reported by Martin Lambers <marlam@marlam.de>.
20347
20348 2006-08-21  Bruno Haible  <bruno@clisp.org>
20349
20350         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
20351         specify an installation location, don't emit a noinst_LIBRARIES or
20352         noinst_LTLIBRARIES assignment.
20353
20354 2006-08-21  Bruno Haible  <bruno@clisp.org>
20355
20356         BeOS portability.
20357         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
20358         BeOS has mbrtowc() but no <wctype.h>.
20359
20360 2006-08-21  Bruno Haible  <bruno@clisp.org>
20361
20362         BeOS portability.
20363         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
20364         exist.
20365
20366 2006-08-21  Bruno Haible  <bruno@clisp.org>
20367
20368         BeOS portability.
20369         * lib/mbchar.h: Include <wctype.h> only if it exists.
20370
20371 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20372
20373         Remove files that are no longer needed by their respective modules.
20374         * m4/obstack.m4: Remove.
20375         * m4/strerror_r.m4: Remove.
20376         * m4/uint32_t.m4: Remove.
20377         * m4/uintptr_t.m4: Remove.
20378         * m4/ullong_max.m4: Remove.
20379         * m4/xstrtoimax.m4: Remove.
20380         * m4/xstrtoumax.m4: Remove.
20381
20382         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
20383         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
20384         dependencies now capture this.
20385
20386         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20387         Do not use AC_LIBSOURCES, since gnulib modules now do this.
20388         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
20389         * m4/human.m4 (gl_HUMAN): Likewise.
20390         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
20391         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
20392
20393         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
20394
20395         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
20396         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
20397         stdint.
20398         * m4/human.m4 (gl_HUMAN): Likewise.
20399         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
20400         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
20401         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20402         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20403         * m4/xstrtol (gl_XSTRTOL): Likewise.
20404
20405         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
20406         AC_TYPE_LONG_LONG_INT.
20407         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20408         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
20409         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
20410         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20411
20412         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
20413         on stdbool.
20414
20415         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
20416         (gl_PREREQ_XSTRTOUL): Remove.
20417
20418         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
20419
20420         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
20421         mode.
20422
20423 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20424
20425         Add and change modules to make it easier for coreutils to use
20426         gnulib-tool.
20427         * modules/backupfile (Files): Remove m4/d-ino.m4.
20428         (Depends-on): Add d-ino.
20429         * modules/cycle-check (Depends-on): Add stdint.
20430         (lib_SOURCES): Add cycle-check.h.
20431         * modules/d-ino: New module.
20432         * modules/d-type: New module.
20433         * modules/error (Files): Remove m4/strerror_r.m4.
20434         * modules/filemode (Files): Add m4/st_dm_mode.m4.
20435         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20436         m4/inttypes_h.m4, m4/uintmax_t.m4.
20437         (Depends-on): Add stdint.
20438         (lib_SOURCES): Add fsusage.h.
20439         * modules/getcwd (Files): Remove d-ino.m4.
20440         (Depends-on): Add d-ino.
20441         * modules/getndelim2 (Depends-on): Add stdint.
20442         * modules/glob (Files): Remove m4/d-type.m4.
20443         (Depends-on): Add d-type.
20444         * modules/host-os: New module.
20445         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
20446         m4/inttypes_h.m4, m4/uintmax_t.m4.
20447         * Depends-on: Add stdint.
20448         (lib_SOURCES): Add human.h.
20449         * modules/inttostr (Files): Remove m4/intmax_t.m4,
20450         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
20451         m4/uintmax_t.m4, m4/ulonglong.m4.
20452         (Depends-on): Add stdint.
20453         (EXTRA_DIST): Add inttostr.h.
20454         * modules/lchmod: New module.
20455         * modules/link-follow: New module.
20456         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
20457         (Depends-on): Add lchmod.
20458         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
20459         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
20460         (Depends-on): Add stdint.
20461         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
20462         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
20463         (Depends-on): Add stdint.
20464         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
20465         * modules/perl: New module.
20466         * modules/regex (Depends-on): Add stdint.
20467         * modules/rmdir-errno: New module.
20468         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20469         m4/intmax_t.m4.
20470         (Depends-on): Add stdint.
20471         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20472         m4/uintmax_t.m4.
20473         (Depends-on): Add stdint.
20474         * modules/unlink-busy: New module.
20475         * modules/utimecmp (Depends-on): Add stdint.
20476         * modules/uptime: New module.
20477         * modules/winsz-ioctl: New module.
20478         * modules/winsz-termios: New module.
20479         * modules/xnanosleep (Depends-on): Add nanosleep.
20480         * modules/ullong_max: Remove.
20481         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
20482         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
20483         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
20484         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
20485         (Depends-on): Add inttypes.
20486         (lib_SOURCES): Add xstrtol.h.
20487         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
20488         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
20489         * MODULES.html.sh: Move 'assert' into the assert section.
20490         Move 'dummy' into the linking section.
20491         Remove ullong_max.
20492         Add section for compatibility checks for POSIX:2001 functions,
20493         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
20494         winsz-ioctl, and winsz-termios into it.
20495         Add lchmod.
20496         Add top-level Misc section and put host-os, perl, and uptime
20497         into it.
20498
20499 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20500
20501         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
20502         now assume the stdint module.  Do not include inttypes.h.
20503         * lib/fsusage.h: Likewise.
20504         * lib/getndelim2.c: Likewise.
20505         * lib/human.h: Likewise.
20506         * lib/inttostr.h: Likewise.
20507         * lib/obstack.c: Likewise.
20508         * lib/regex_internal.h: Likewise.
20509         * lib/tempname.c: Likewise.
20510         * lib/utimecmp.c: Likewise.
20511         * lib/xstrtol.h: Likewise.
20512
20513         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
20514
20515         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
20516         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
20517         * lib/xtime.h: Likewise.
20518
20519 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20520
20521         * modules/openat (Files): Add lib/fchmodat.c.
20522         Fixes problem reported by Jay Youngman.
20523
20524 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20525
20526         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
20527         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
20528
20529 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
20530             Bruno Haible  <bruno@clisp.org>
20531
20532         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
20533         and is a script that invokes bison. Tighten the code. Add comments.
20534
20535 2006-08-18  Jim Meyering  <jim@meyering.net>
20536
20537         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
20538         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
20539         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
20540         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
20541
20542 2006-08-18  Bruno Haible  <bruno@clisp.org>
20543
20544         * modules/bison-i18n: New file.
20545         * MODULES.html.sh (Internationalization functions): Add it.
20546
20547 2006-08-18  Bruno Haible  <bruno@clisp.org>
20548
20549         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
20550         sys/statvfs.h. When getmntinfo was found, check its declaration and
20551         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
20552
20553 2006-08-18  Bruno Haible  <bruno@clisp.org>
20554
20555         * m4/bison-i18n.m4: New file, from bison.
20556
20557 2006-08-18  Bruno Haible  <bruno@clisp.org>
20558
20559         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
20560         (ME_DUMMY): Treat "kernfs" as a dummy.
20561         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
20562
20563 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20564
20565         Update from coreutils.
20566
20567         2006-08-15  Jim Meyering  <jim@meyering.net>
20568
20569         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
20570
20571         2006-01-17  Jim Meyering  <jim@meyering.net>
20572
20573         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
20574
20575         2006-01-11  Jim Meyering  <jim@meyering.net>
20576
20577         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
20578         Check for the lchmod function.
20579
20580 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20581
20582         Update from coreutils.
20583
20584         * lib/__fpending.h: Add copyright notice.
20585         * lib/fprintftime.h: Likewise.
20586         * lib/savedir.c: Use (C) in copyright notice.
20587         * lib/savedir.h: Likewise.
20588
20589         2006-08-15  Jim Meyering  <jim@meyering.net>
20590
20591         * lib/at-func.c: New file, with the logic of all emulated at-functions.
20592         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
20593         in support of the EXPECTED_ERRNO macro.
20594         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
20595         definitions.  Instead, define the appropriate symbols and include
20596         "at-func.c".
20597         * lib/mkdirat.c (mkdirat): Likewise.
20598         * lib/fchmodat.c (fchmodat): Likewise.
20599         (ENOSYS): Remove definition.
20600         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
20601         it.  Don't include "unistd--.h" -- it wasn't ever used.
20602
20603         2006-01-17  Jim Meyering  <jim@meyering.net>
20604
20605         Rewrite fts.c not to change the current working directory,
20606         by using openat, fstatat, fdopendir, etc..
20607
20608         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
20609         (HAVE_OPENAT_SUPPORT): Define.
20610         [_LIBC] (fchdir): Don't undef or define; no longer used.
20611         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
20612         Now, this `function' always succeeds, and consumes its file descriptor
20613         parameter -- so callers must not close such FDs.  Update callers.
20614         (diropen_fd, opendirat, cwd_advance_fd): New functions.
20615         (diropen): Add parameter, SP.  Adjust all callers.
20616         Implement using diropen_fd, rather than open.
20617         (fts_open): Initialize new member, fts_cwd_fd.
20618         Remove fts_rft-setting code.
20619         (fts_close): Close fts_cwd_fd, if necessary.
20620         (__opendir2): Define in terms of opendir or opendirat,
20621         depending on whether the FST_NOCHDIR flag is set.
20622         (fts_build): Since fts_safe_changedir consumes its FD, and since
20623         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
20624         and close the dup'd file descriptor upon failure.
20625         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
20626         (fts_safe_changedir): Tweak semantics to reflect that this function
20627         now calls cwd_advance_fd and hence consumes its FD argument.
20628         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
20629         [struct FTS] (fts_rft): Remove now-unused member.
20630         [struct FTS] (fts_cycle.state): Improve comment.
20631
20632         * lib/openat.c (openat_needs_fchdir): New function.
20633         * lib/openat.h (openat_needs_fchdir): Declare it.
20634
20635 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20636
20637         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
20638         Problem and fix reported by Pádraig Brady in
20639         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
20640
20641 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20642
20643         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
20644
20645 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20646
20647         * lib/memcoll.c (memcoll): Optimize for the common case where the
20648         arguments are bytewise equal.
20649
20650 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         * doc/regexprops-generic.texi: Add a copyright notice.
20653
20654 2006-08-15  Bruno Haible  <bruno@clisp.org>
20655
20656         * modules/tmpdir (License): Change to LGPL.
20657
20658 2006-08-15  Bruno Haible  <bruno@clisp.org>
20659
20660         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
20661         module.
20662
20663 2006-08-14  Simon Josefsson  <jas@extundo.com>
20664
20665         * config/srclist.txt: Add gnupload.
20666
20667 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20668
20669         Change copyright notice from LGPL 2 to GPL 2, since that's the
20670         standard form used in the gnulib repository.
20671         * tests/test-lock.c: Likewise.
20672         * tests/test-stdint.c: Likewise.
20673         * tests/test-tls.c: Likewise.
20674
20675         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
20676         prelude-manager.  User shorter URLs for GNU projects, without '?'.
20677         Add copyright notice.
20678
20679         * check-module: Add copyright notice.  Output a copyright
20680         notice if "--version" is specified.
20681         * modules/COPYING: New file.
20682         * tests/test-getaddrinfo.c: Add copyright notice.
20683         * tests/test-verify.c: Likewise.
20684
20685 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20686
20687         Change copyright notice from LGPL 2 to GPL 2, since that's the
20688         standard form used in the gnulib repository.
20689         * lib/lock.c: LGPL -> GPL.
20690         * lib/lock.h: Likewise.
20691         * lib/strnlen1.c: Likewise.
20692         * lib/strnlen1.h: Likewise.
20693         * lib/tls.c: Likewise.
20694         * lib/tls.h: Likewise.
20695         * lib/tmpdir.c: Likewise.
20696
20697         * lib/TODO: Remove; this belongs only in coreutils.
20698
20699 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20700
20701         Add copyright notices to long-enough files that lack them, since
20702         otherwise the files aren't clearly free.  Use the same notice that
20703         getdate.texi already uses.
20704         * doc/alloca-opt.texi: Add copyright notice.
20705         * doc/alloca.texi: Likewise.
20706         * doc/ctime.texi: Likewise.
20707         * doc/functions.texi: Likewise.
20708         * doc/gcd.texi: Likewise.
20709         * doc/gnulib-tool.texi: Likewise.
20710         * doc/inet_ntoa.texi: Likewise.
20711         * doc/visibility.texi: Likewise.
20712
20713         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
20714         * doc/quote.texi: Add copyright notice.
20715
20716         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
20717         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
20718         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
20719         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
20720         is now obsolete, and give a pointer to the Sun list.
20721         Add copyright notice.
20722
20723 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20724
20725         * config/srclistvars.sh: Add copyright notice.
20726
20727 2006-08-14  Eric Blake  <ebb9@byu.net>
20728
20729         Import the following change from libc:
20730
20731         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
20732
20733         Upstream bug 2997.
20734         * lib/misc/error.c: Add space between program name and message if file
20735         name is missing.
20736
20737 2006-08-12  Karl Berry  <karl@gnu.org>
20738
20739         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
20740         remove, these originate in gnulib now.
20741
20742 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20743
20744         * doc/Makefile (standards.info standards.html standards.dvi):
20745         Also depend on make-stds.texi.
20746
20747 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
20748
20749         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
20750         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
20751
20752         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
20753         in wchar_t.  Problem reported by Eric Blake.
20754
20755         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
20756         LEN is smaller than SIZE.  Suggested by Bruno Haible.
20757         Also, help the compiler to keep LEN in a register.
20758
20759 2006-08-11  Eric Blake  <ebb9@byu.net>
20760
20761         * users.txt: Sort.  Add tar.
20762
20763 2006-08-11  Bruno Haible  <bruno@clisp.org>
20764
20765         * users.txt: New file.
20766
20767 2006-08-11  Bruno Haible  <bruno@clisp.org>
20768
20769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
20770         before <wchar.h>. Needed for OSF/1 and BSD/OS.
20771
20772 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20773
20774         * modules/snprintf (Depends-on): Remove minmax.
20775         (Maintainer): Add self and Bruno.
20776
20777 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20778
20779         * lib/.cppi-disable: Add snprintf.h, socket_.h.
20780         * lib/snprintf.c: Include <errno.h> and <limits.h>.
20781         (EOVERFLOW): Define if the system does not.
20782         Do not include "minmax.h"; it wasn't used.
20783         (snprintf): Don't assume size_t promotes to an unsigned type.
20784         Fix bug when generated string was too long for the buffer: the
20785         buffer's contents are supposed to be the initial prefix of the
20786         output.  Don't assume vasnprintf returns EOVERFLOW if the size
20787         exceeds INT_MAX; do the check ourselves.
20788
20789         Import the following changes from libc:
20790
20791         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
20792
20793         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
20794         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
20795         set wc to the byte which couldn't be converted.
20796         (re_string_reconstruct): Don't clear valid_raw_len before calling
20797         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
20798         tip_context using re_string_context_at.
20799
20800         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
20801
20802         * lib/posix/regex.h: g++ still cannot handled [restrict].
20803
20804         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
20805
20806         * lib/posix/regex.h: Remove special handling for VMS.
20807
20808 2006-08-10  Jim Meyering  <jim@meyering.net>
20809
20810         * modules/same-inode: New module.
20811         * modules/dev-ino: New module.
20812         * modules/cycle-check: Depend on these modules, rather than simply
20813         including their .h files.
20814         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
20815         required via m4/cycle-check.m4.
20816         * modules/same: Depend on new same-inode module, rather than
20817         including same-inode.h.
20818         * modules/chdir-safer: New file.
20819
20820         * modules/chown (Depends-on): Add stat-macros.
20821
20822 2006-08-10  Jim Meyering  <jim@meyering.net>
20823
20824         * m4/cycle-check.m4: New file.
20825         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
20826         * m4/dev-ino.m4, m4/same-inode.m4: New files.
20827
20828 2006-08-10  Eric Blake  <ebb9@byu.net>
20829
20830         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
20831         in from original proposal.
20832
20833 2006-08-10  Eric Blake  <ebb9@byu.net>
20834         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20835
20836         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
20837         namespace.
20838
20839 2006-08-10  Bruno Haible  <bruno@clisp.org>
20840
20841         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
20842         as well.
20843
20844 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20845
20846         Sync from coreutils.
20847
20848         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
20849
20850         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
20851         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
20852
20853 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20854
20855         * modules/restrict: Remove; no longer needed now that we assume
20856         Autoconf 2.59 or later.
20857         * MODULES.html.sh: Remove 'restrict'.
20858         * modules/argp (Depends-on): Remove 'restrict'.
20859         * modules/base64 (Depends-on): Likewise.
20860         * modules/gc (Depends-on): Likewise.
20861         * modules/getaddrinfo (Depends-on): Likewise.
20862         * modules/glob (Depends-on): Likewise.
20863         * modules/inet_ntop (Depends-on): Likewise.
20864         * modules/inet_pton (Depends-on): Likewise.
20865         * modules/memxor (Depends-on): Likewise.
20866         * modules/regex (Depends-on): Likewise.
20867         * modules/strtok_r (Depends-on): Likewise.
20868         * modules/time_r (Depends-on): Likewise.
20869
20870 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20871
20872         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
20873         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
20874         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20875         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
20876         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
20877         * m4/memxor.m4 (gl_MEMXOR): Likewise.
20878         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
20879         gl_C_RESTRICT replaced by AC_C_RESTRICT.
20880
20881         Merge from coreutils.
20882         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
20883         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
20884         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20885         * m4/time_r.m4 (gl_TIME_R): Likewise.
20886
20887 2006-08-09  Karl Berry  <karl@gnu.org>
20888
20889         * config/srclist.txt: no more gettext-tools, per Bruno.
20890
20891 2006-08-08  Eric Blake  <ebb9@byu.net>
20892
20893         * modules/verror: New module.
20894         * MODULES.html.sh: Document it.
20895
20896 2006-08-08  Eric Blake  <ebb9@byu.net>
20897
20898         * lib/verror.h, lib/verror.c: New files.
20899
20900 2006-08-08  Eric Blake  <ebb9@byu.net>
20901
20902         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
20903         verror_at_line output complies with GNU Coding Standards even when
20904         file is NULL.
20905
20906 2006-08-07  Bruno Haible  <bruno@clisp.org>
20907
20908         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
20909         versions of AIX.
20910         Reported by Ralf Wildenhues.
20911
20912 2006-08-07  Bruno Haible  <bruno@clisp.org>
20913
20914         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
20915         in an AC_DEFUN. Needed so that the autoconf snippets can use
20916         AC_REQUIRE.
20917
20918 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20919
20920         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20921         Initialize pkgdata_DATA.
20922         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
20923         overriding it.
20924
20925 2006-08-06  Eric Blake  <ebb9@byu.net>
20926
20927         * lib/error.h: Fold in some upstream changes from glibc.
20928         * lib/error.c: Likewise.
20929
20930 2006-08-04  Bruno Haible  <bruno@clisp.org>
20931
20932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20933         Make the mostlyclean-local rule depend on mostlyclean-generic.
20934         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
20935
20936 2006-07-31  Bruno Haible  <bruno@clisp.org>
20937
20938         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
20939         <stdlib.h>, <string.h>.
20940
20941 2006-07-30  Bruno Haible  <bruno@clisp.org>
20942
20943         * modules/readlink (License): Change to LGPL.
20944
20945 2006-07-30  Bruno Haible  <bruno@clisp.org>
20946
20947         * modules/javaversion (Makefile.am): Distribute javaversion.java and
20948         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
20949         set PKGDATADIR to point to it.
20950
20951 2006-07-30  Bruno Haible  <bruno@clisp.org>
20952
20953         * modules/csharpexec (configure.ac): Comment out macro invocation.
20954         * modules/javaexec (configure.ac): Likewise.
20955         * modules/javacomp-script (configure.ac): Likewise.
20956
20957         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
20958
20959 2006-07-30  Bruno Haible  <bruno@clisp.org>
20960
20961         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
20962         linked-list.
20963
20964 2006-07-30  Bruno Haible  <bruno@clisp.org>
20965
20966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
20967
20968 2006-07-30  Bruno Haible  <bruno@clisp.org>
20969
20970         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20971         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
20972         get removed.
20973
20974 2006-07-29  Bruno Haible  <bruno@clisp.org>
20975
20976         Make it possible for gnulib-tool to work with locally modified or
20977         augmented gnulib repositories.
20978         * gnulib-tool (func_usage): Document --local-dir option.
20979         (local_gnulib_dir): New variable.
20980         Handle --local-dir option.
20981         (func_lookup_file): New function.
20982         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
20983         (func_get_description, func_get_filelist, func_get_description,
20984         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
20985         func_get_automake_snippet, func_get_include_directive,
20986         func_get_license, func_get_maintainer): Use func_lookup_file.
20987         (func_import, func_create_testdir): Use func_lookup_file.
20988
20989 2006-07-29  Bruno Haible  <bruno@clisp.org>
20990
20991         * modules/setenv (Depends-on): Add unistd.
20992
20993 2006-07-29  Bruno Haible  <bruno@clisp.org>
20994
20995         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
20996
20997 2006-07-29  Bruno Haible  <bruno@clisp.org>
20998
20999         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
21000
21001 2006-07-29  Bruno Haible  <bruno@clisp.org>
21002
21003         * gnulib-tool (import, update): If there is no Makefile.am, look at
21004         aclocal.m4, instead of bailing out.
21005
21006 2006-07-29  Bruno Haible  <bruno@clisp.org>
21007
21008         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
21009         Categorize the options by when they are useful.
21010
21011 2006-07-29  Bruno Haible  <bruno@clisp.org>
21012
21013         * gnulib-tool (func_usage): Document option --no-libtool.
21014         Handle option --no-libtool.
21015         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
21016         for changed semantics of $libtool variable.
21017         (func_import): Likewise. If libtool is not used, show this through
21018         an option --no-libtool.
21019         (func_create_testdir): Update.
21020
21021 2006-07-29  Bruno Haible  <bruno@clisp.org>
21022
21023         * gnulib-tool (func_import): Extend error message about missing
21024         --doc-base.
21025
21026 2006-07-29  Bruno Haible  <bruno@clisp.org>
21027
21028         * gnulib-tool (func_import): Don't create the $docbase directory if
21029         there is no file to store there.
21030
21031 2006-07-29  Bruno Haible  <bruno@clisp.org>
21032
21033         * gnulib-tool (autoconf_minversion): If a --dir option is given and
21034         relevant, look for configure.ac there, not in the current directory.
21035         Also use a simple search for AC_PREREQ, not "autoconf --trace".
21036
21037 2006-07-29  Bruno Haible  <bruno@clisp.org>
21038
21039         * gnulib-tool (SORT): New variable.
21040         (func_usage): Undocument --assume-autoconf option.
21041         Remove --assume-autoconf option handling.
21042         (autoconf_minversion): Determine from the contents of configure.ac.
21043         (func_import): Remove autoconf_minversion handling.
21044         Suggested by Eric Blake.
21045
21046 2006-07-29  Bruno Haible  <bruno@clisp.org>
21047
21048         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
21049
21050 2006-07-29  Bruno Haible  <bruno@clisp.org>
21051
21052         * config/srclist.txt (*setenv.[ch]): Remove rules.
21053
21054 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21055
21056         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
21057
21058 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21059
21060         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
21061         arpa/inet.h.
21062
21063 2006-07-28  Simon Josefsson  <jas@extundo.com>
21064
21065         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
21066         * modules/inet_pton (Depends-on): Likewise.
21067
21068 2006-07-28  Simon Josefsson  <jas@extundo.com>
21069
21070         * m4/netinet_in_h.m4: New file.
21071
21072 2006-07-28  Simon Josefsson  <jas@extundo.com>
21073
21074         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
21075         #include's.
21076
21077 2006-07-28  Simon Josefsson  <jas@extundo.com>
21078
21079         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
21080         #include's.
21081
21082 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
21083
21084         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
21085         setgid on directories only if they set these bits.
21086         * lib/modechange.h: Remove obsolete comment about masks.
21087
21088 2006-07-28  Eric Blake  <ebb9@byu.net>
21089
21090         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
21091         macro expansion.
21092
21093 2006-07-28  Bruno Haible  <bruno@clisp.org>
21094
21095         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
21096
21097 2006-07-28  Bruno Haible  <bruno@clisp.org>
21098
21099         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
21100
21101 2006-07-28  Bruno Haible  <bruno@clisp.org>
21102
21103         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21104         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21105         Define fallbacks.
21106         Avoids link error on FreeBSD 4.x.
21107         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21108
21109         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
21110         encoding.
21111         * lib/mbswidth.c (iswcntrl): Likewise.
21112
21113 2006-07-27  Bruno Haible  <bruno@clisp.org>
21114
21115         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
21116         test.
21117
21118 2006-07-27  Bruno Haible  <bruno@clisp.org>
21119
21120         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
21121         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
21122         defined.
21123
21124 2006-07-26  Eric Blake  <ebb9@byu.net>
21125
21126         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
21127
21128 2006-07-26  Eric Blake  <ebb9@byu.net>
21129
21130         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
21131         like mingw that lack mkstemp.
21132         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
21133         avoid compilation warning on mingw.
21134
21135 2006-07-26  Bruno Haible  <bruno@clisp.org>
21136
21137         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
21138         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
21139         INT_FAST*_MIN, INTPTR_MIN.
21140
21141 2006-07-25  Bruno Haible  <bruno@clisp.org>
21142
21143         * modules/version-etc (Depends-on): Add stdarg.
21144
21145 2006-07-25  Bruno Haible  <bruno@clisp.org>
21146
21147         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
21148         complex commands.
21149
21150 2006-07-25  Bruno Haible  <bruno@clisp.org>
21151
21152         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
21153         defined in <stdarg.h> or config.h.
21154
21155 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21156
21157         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
21158         (gl_STDIO_SAFER): Remove.
21159
21160 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21161
21162         * MODULES.html.sh (File stream based Input/Output):
21163         Add fopen-safer, tmpfile-safer; remove stdio-safer.
21164         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
21165         * modules/fopen-safer, modules/tmpfile-safer: New files.
21166         * modules/stdio-safer: Remove.
21167
21168 2006-07-24  Bruno Haible  <bruno@clisp.org>
21169
21170         * modules/tmpdir: New file.
21171         * MODULES.html.sh (File system functions): Add it.
21172
21173 2006-07-24  Bruno Haible  <bruno@clisp.org>
21174
21175         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
21176         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
21177
21178 2006-07-24  Bruno Haible  <bruno@clisp.org>
21179
21180         * modules/clean-temp: New file.
21181
21182 2006-07-24  Bruno Haible  <bruno@clisp.org>
21183
21184         * m4/tmpdir.m4: New file, from GNU gettext.
21185
21186 2006-07-24  Bruno Haible  <bruno@clisp.org>
21187
21188         * lib/tmpdir.h: New file, from GNU gettext.
21189         * lib/tmpdir.c: New file, from GNU gettext.
21190
21191 2006-07-24  Bruno Haible  <bruno@clisp.org>
21192
21193         * lib/clean-temp.h: New file, from GNU gettext.
21194         * lib/clean-temp.c: New file, from GNU gettext.
21195
21196 2006-07-23  Eric Blake  <ebb9@byu.net>
21197
21198         * modules/stdio-safer (Files): Add tmpfile-safer.c.
21199         (Depends-on): Add binary-io.
21200
21201 2006-07-23  Eric Blake  <ebb9@byu.net>
21202
21203         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
21204
21205 2006-07-23  Eric Blake  <ebb9@byu.net>
21206
21207         * lib/tmpfile-safer.c: New file.
21208         * lib/stdio-safer.h (fopen_safer): Add prototype.
21209         * lib/stdio--.h (tmpfile): Make safer.
21210
21211 2006-07-23  Bruno Haible  <bruno@clisp.org>
21212
21213         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
21214         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
21215         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
21216         gl_linked_remove_at): Use it.
21217
21218 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21219         and Simon Josefsson <jas@extundo.com>
21220
21221         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
21222
21223         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
21224
21225 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21226
21227         * modules/close-stream: New file.
21228         * modules/closeout (Description): Make it clear that it exits
21229         with a diagnostic on error.
21230         (Depends-on): Add close-stream.  Remove fpending, stdbool.
21231         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
21232
21233 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21234
21235         * m4/close-stream.m4: New file.
21236
21237 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21238
21239         * lib/close-stream.c, lib/close-stream.h: New files.
21240
21241 2006-07-22  Bruno Haible  <bruno@clisp.org>
21242
21243         Merge from GNU gettext 0.15.
21244
21245         2006-05-01  Bruno Haible  <bruno@clisp.org>
21246
21247                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
21248
21249         2006-07-22  Bruno Haible  <bruno@clisp.org>
21250
21251                 * modules/javaversion: New file.
21252                 * MODULES.html.sh (Java): Add javaversion.
21253
21254         2006-03-12  Bruno Haible  <bruno@clisp.org>
21255
21256                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
21257
21258         2005-12-04  Bruno Haible  <bruno@clisp.org>
21259
21260                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
21261                 (untested).
21262
21263         2006-06-21  Bruno Haible  <bruno@clisp.org>
21264
21265                 Avoid warnings from recent versions of mcs.
21266                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
21267                 -o, -L, -r any more. Use options documented since mcs-1.0
21268                 instead. Similarly for -g.
21269
21270         2005-12-04  Bruno Haible  <bruno@clisp.org>
21271
21272                 * build-aux/csharpcomp.sh.in: Suffix for resources is
21273                 .resources, not .resource.
21274
21275         2005-07-09  Bruno Haible  <bruno@clisp.org>
21276
21277                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
21278                 add a .dll suffix.
21279                 Reported by Mark Junker <mjscod@gmx.de>.
21280
21281         2006-07-22  Bruno Haible  <bruno@clisp.org>
21282
21283                 * modules/gettext: Upgrade to gettext-0.15.
21284                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
21285                 m4/visibility.m4.
21286                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
21287
21288 2006-07-22  Bruno Haible  <bruno@clisp.org>
21289
21290         Merge from GNU gettext 0.15.
21291
21292         2006-03-25  Bruno Haible  <bruno@clisp.org>
21293
21294                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
21295
21296         2006-07-21  Bruno Haible  <bruno@clisp.org>
21297
21298                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
21299                 "1.1".
21300
21301         2006-05-09  Bruno Haible  <bruno@clisp.org>
21302
21303                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
21304                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
21305                 for the conftestver execution.
21306
21307         2006-05-01  Bruno Haible  <bruno@clisp.org>
21308
21309                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
21310                 optional target-version argument. Verify that the compiler
21311                 groks source of the specified source-version, or add -source
21312                 option as necessary. Verify that the compiler produces
21313                 bytecode in the specified target-version, or add -target and
21314                 -source options as necessary. Make the result of the test
21315                 available as variable CONF_JAVAC. Also log error output in
21316                 config.log.
21317
21318         2006-03-11  Bruno Haible  <bruno@clisp.org>
21319
21320                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
21321
21322         2006-05-09  Bruno Haible  <bruno@clisp.org>
21323
21324                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
21325                 CLASSPATH_SEPARATOR to a semicolon.
21326
21327         2006-03-12  Bruno Haible  <bruno@clisp.org>
21328
21329                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
21330                 available as variable CONF_JAVA, for subsequent autoconf
21331                 tests. Also log error output in config.log.
21332
21333         2006-07-19  Bruno Haible  <bruno@clisp.org>
21334
21335                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
21336                 that getline works on glibc2 systems. Needed to avoid trouble
21337                 in relocatable.c.
21338                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
21339
21340         2005-12-04  Bruno Haible  <bruno@clisp.org>
21341
21342                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
21343                 launcher (untested).
21344
21345         2005-12-04  Bruno Haible  <bruno@clisp.org>
21346
21347                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
21348
21349         2006-07-22  Bruno Haible  <bruno@clisp.org>
21350
21351                 * gettext.m4: Update from GNU gettext-0.15.
21352                 * nls.m4: Likewise.
21353                 * po.m4: Likewise.
21354                 * inttypes-pri.m4: Likewise.
21355                 * inttypes-h.m4: Renamed from inttypes.m4.
21356                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
21357
21358 2006-07-22  Bruno Haible  <bruno@clisp.org>
21359
21360         Merge from GNU gettext 0.15.
21361
21362         2005-07-05  Bruno Haible  <bruno@clisp.org>
21363
21364                 * printf-args.c (printf_fetchargs): Work around broken
21365                 definition of wint_t on mingw.
21366
21367         2005-02-12  Bruno Haible  <bruno@clisp.org>
21368
21369                 * xallocsa.h: Add extern "C" for C++.
21370
21371         2006-05-17  Bruno Haible  <bruno@clisp.org>
21372
21373                 Cygwin portability.
21374                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
21375
21376         2006-04-30  Bruno Haible  <bruno@clisp.org>
21377
21378                 * progreloc.c: Include <mach-o/dyld.h> if available.
21379                 (find_executable): Use _NSGetExecutablePath when possible.
21380
21381         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21382
21383                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
21384                 function.
21385
21386         2005-12-29  Bruno Haible  <bruno@clisp.org>
21387
21388                 * progreloc.c (set_program_name_and_installdir): Fix
21389                 compilation error.
21390
21391         2005-12-04  Bruno Haible  <bruno@clisp.org>
21392
21393                 Cygwin portability.
21394                 * progreloc.c: Include <windows.h> also on Cygwin.
21395                 (find_executable): Add support for Cygwin.
21396                 (set_program_name_and_installdir): Handle also platforms with
21397                 nonempty EXEEXT.
21398
21399         2006-07-11  Bruno Haible  <bruno@clisp.org>
21400
21401                 * javacomp.c: Fix a comment.
21402                 Reported by Jim Meyering.
21403
21404         2006-04-30  Bruno Haible  <bruno@clisp.org>
21405
21406                 * javacomp.h (compile_java_class): Add source_version,
21407                 target_version arguments.
21408                 * javacomp.c: Rewritten to choose only a compiler that
21409                 respects the specified source_version and target_version.
21410
21411         2006-06-27  Bruno Haible  <bruno@clisp.org>
21412
21413                 Assume correct S_ISDIR macro.
21414                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
21415
21416         2006-07-22  Bruno Haible  <bruno@clisp.org>
21417
21418                 * javaversion.h: New file, from GNU gettext.
21419                 * javaversion.c: New file, from GNU gettext.
21420                 * javaversion.java: New file, from GNU gettext.
21421                 * javaversion.class: New file, from GNU gettext.
21422
21423         2006-05-17  Bruno Haible  <bruno@clisp.org>
21424
21425                 Cygwin portability.
21426                 * javaexec.c (execute_java_class): Test for jview program
21427                 also on Cygwin.
21428
21429         2006-04-09  Bruno Haible  <bruno@clisp.org>
21430
21431                 * fatal-signal.c: Don't include string.h.
21432                 (at_fatal_signal): Use a copying loop instead of memcpy.
21433
21434         2005-12-04  Bruno Haible  <bruno@clisp.org>
21435
21436                 * csharpexec.c: Add support for 'clix' launcher (untested).
21437                 (execute_csharp_using_sscli): New function.
21438                 (execute_csharp_program): Call it.
21439
21440         2006-06-21  Bruno Haible  <bruno@clisp.org>
21441
21442                 Avoid warnings from recent versions of mcs.
21443                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
21444                 -o, -L, -r any more. Use options documented since mcs-1.0
21445                 instead. Similarly for -g.
21446
21447         2005-07-09  Bruno Haible  <bruno@clisp.org>
21448
21449                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
21450                 add a .dll suffix.
21451                 Reported by Mark Junker <mjscod@gmx.de>.
21452
21453         2006-06-17  Bruno Haible  <bruno@clisp.org>
21454
21455                 * config.charset: Update for NetBSD 3.0.
21456
21457         2006-05-17  Bruno Haible  <bruno@clisp.org>
21458
21459                 Cygwin portability.
21460                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
21461
21462         2006-05-16  Bruno Haible  <bruno@clisp.org>
21463
21464                 * localcharset.c [CYGWIN]: Include <windows.h>.
21465                 (get_charset_aliases): For Cygwin, return the same CPxxx
21466                 aliases list as under WIN32.
21467                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
21468                 the environment variables. Fall back to GetACP().
21469
21470         2006-04-05  Bruno Haible  <bruno@clisp.org>
21471
21472                 * config.charset: Update Juan Manuel Guerrero's address.
21473
21474         2005-02-12  Bruno Haible  <bruno@clisp.org>
21475
21476                 * allocsa.h: Add extern "C" for C++.
21477
21478         2005-02-10  Bruno Haible  <bruno@clisp.org>
21479
21480                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
21481                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
21482
21483         2006-07-22  Bruno Haible  <bruno@clisp.org>
21484
21485                 * gettext.h: Update to GNU gettext-0.15.
21486
21487 2006-07-22  Bruno Haible  <bruno@clisp.org>
21488
21489         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
21490         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
21491         lib-prefix.m4, longdouble.m4, ssize_t.m4.
21492
21493 2006-07-21  Eric Blake  <ebb9@byu.net>
21494
21495         * modules/stdlib-safer: New file.
21496         * MODULES.html.sh (File stream based Input/Output): Add
21497         stdlib-safer.
21498
21499 2006-07-21  Eric Blake  <ebb9@byu.net>
21500
21501         * lib/stdlib-safer.h: New file from coreutils, required by
21502         stdlib--.h.
21503
21504 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21505
21506         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
21507
21508 2006-07-20  Bruno Haible  <bruno@clisp.org>
21509
21510         * gnulib-tool: Recognize new option --assume-autoconf.
21511         (autoconf_minversion): New variable.
21512         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
21513
21514 2006-07-20  Bruno Haible  <bruno@clisp.org>
21515
21516         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
21517
21518 2006-07-19  Derek R. Price  <derek@ximbiot.com>
21519
21520         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
21521         Reindent and repaginate.
21522
21523 2006-07-19  Derek Price  <derek@ximbiot.com>
21524
21525         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
21526         Correct grammar.
21527
21528 2006-07-17  Bruno Haible  <bruno@clisp.org>
21529
21530         * modules/list: New file.
21531         * modules/array-list: New file.
21532         * modules/carray-list, modules/carray-list-tests: New files.
21533         * modules/linked-list, modules/linked-list-tests: New files.
21534         * modules/avltree-list, modules/avltree-list-tests: New files.
21535         * modules/rbtree-list, modules/rbtree-list-tests: New files.
21536         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
21537         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
21538         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
21539         * modules/oset: New file.
21540         * modules/array-oset: New file.
21541         * modules/avltree-oset, modules/avltree-oset-tests: New files.
21542         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
21543         * tests/test-carray_list.c: New file.
21544         * tests/test-linked_list.c: New file.
21545         * tests/test-avltree_list.c: New file.
21546         * tests/test-rbtree_list.c: New file.
21547         * tests/test-linkedhash_list.c: New file.
21548         * tests/test-avltreehash_list.c: New file.
21549         * tests/test-rbtreehash_list.c: New file.
21550         * tests/test-avltree_oset.c: New file.
21551         * tests/test-rbtree_oset.c: New file.
21552         * MODULES.html.sh (Container data structures): New section.
21553
21554 2006-07-17  Bruno Haible  <bruno@clisp.org>
21555
21556         * m4/gl_list.m4: New file.
21557
21558 2006-07-17  Bruno Haible  <bruno@clisp.org>
21559
21560         * lib/gl_list.h: New file.
21561         * lib/gl_list.c: New file.
21562         * lib/gl_array_list.h: New file.
21563         * lib/gl_array_list.c: New file.
21564         * lib/gl_carray_list.h: New file.
21565         * lib/gl_carray_list.c: New file.
21566         * lib/gl_linked_list.h: New file.
21567         * lib/gl_linked_list.c: New file.
21568         * lib/gl_anylinked_list1.h: New file.
21569         * lib/gl_anylinked_list2.h: New file.
21570         * lib/gl_avltree_list.h: New file.
21571         * lib/gl_avltree_list.c: New file.
21572         * lib/gl_anyavltree_list1.h: New file.
21573         * lib/gl_anyavltree_list2.h: New file.
21574         * lib/gl_rbtree_list.h: New file.
21575         * lib/gl_rbtree_list.c: New file.
21576         * lib/gl_anyrbtree_list1.h: New file.
21577         * lib/gl_anyrbtree_list2.h: New file.
21578         * lib/gl_anytree_list1.h: New file.
21579         * lib/gl_anytree_list2.h: New file.
21580         * lib/gl_linkedhash_list.h: New file.
21581         * lib/gl_linkedhash_list.c: New file.
21582         * lib/gl_anyhash_list1.h: New file.
21583         * lib/gl_anyhash_list2.h: New file.
21584         * lib/gl_avltreehash_list.h: New file.
21585         * lib/gl_avltreehash_list.c: New file.
21586         * lib/gl_rbtreehash_list.h: New file.
21587         * lib/gl_rbtreehash_list.c: New file.
21588         * lib/gl_anytreehash_list1.h: New file.
21589         * lib/gl_anytreehash_list2.h: New file.
21590
21591         * lib/gl_oset.h: New file.
21592         * lib/gl_oset.c: New file.
21593         * lib/gl_array_oset.h: New file.
21594         * lib/gl_array_oset.c: New file.
21595         * lib/gl_avltree_oset.h: New file.
21596         * lib/gl_avltree_oset.c: New file.
21597         * lib/gl_rbtree_oset.h: New file.
21598         * lib/gl_rbtree_oset.c: New file.
21599         * lib/gl_anytree_oset.h: New file.
21600
21601 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21602
21603         * m4/mkancesdirs.m4: New file.
21604         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
21605         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
21606         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
21607         it.
21608
21609 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21610
21611         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
21612         * lib/mkancesdirs.h: New files.
21613         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
21614         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
21615         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
21616         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
21617         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
21618         callers changed.  Revamp internals significantly, by not
21619         attempting to create directories that are temporarily more
21620         permissive than the final results.  Do not attempt to use
21621         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
21622         This removes some race conditions, fixes some bugs, and simplifies
21623         things.  Use new dirchownmod function to do owner and mode changes.
21624         * lib/mkdir-p.h: Likewise.
21625         * lib/modechange.c (octal_to_mode): New function.
21626         (struct mode_change): New member mentioned.
21627         (make_node_op_equals): New arg mentioned.  All callers changed.
21628         (mode_compile): Keep track of which mode bits the user has explicitly
21629         mentioned.
21630         (mode_adjust): New arg DIR, so that we implement the X op correctly.
21631         New arg PMODE_BITS, to keep track of which mode bits the user
21632         mentioned; it treats S_ISUID and S_ISGID speciall.
21633         All callers changed.
21634         * lib/modechange.h: Likewise.
21635
21636 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21637
21638         * MODULES.html.sh: Add mkancestors.
21639         * modules/mkancesdirs: New module.
21640         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
21641         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
21642         The chdir-safer and afs files are now orphans; I'll remove them
21643         unless someone speaks up.
21644         Add lib/dirchownmod.c, lib/dirchownmod.h.
21645         (Depends-on): Remove alloca, chown, save-cwd, dirname.
21646         Add lchown, mkancesdirs.
21647         (Maintainer): Add self.
21648
21649 2006-07-15  Karl Berry  <karl@gnu.org>
21650
21651         * gnulib-tool: help message wording/arrangement.
21652
21653 2006-07-14  Simon Josefsson  <jas@extundo.com>
21654
21655         * doc/gnulib.texi (Libtool and Windows): New section.
21656
21657 2006-07-12  Simon Josefsson  <jas@extundo.com>
21658
21659         * modules/gendocs (License): Fix license, approved by Karl.
21660
21661 2006-07-12  Eric Blake  <ebb9@byu.net>
21662
21663         * MODULES.html.sh: Add gendocs.
21664
21665 2006-07-11  Eric Blake  <ebb9@byu.net>
21666
21667         * modules/fdl: New module, to install doc/fdl.texi.
21668         * MODULES.html.sh: Add new section for documentation modules.
21669         * gnulib-tool: Avoid space-tab.
21670         (--doc-base): New option, to manage files from doc.
21671
21672 2006-07-11  Eric Blake  <ebb9@byu.net>
21673
21674         * m4/absolute-header.m4: Fix comments to match recent change.
21675
21676 2006-07-11  Eric Blake  <ebb9@byu.net>
21677
21678         * gnulib-tool: List --doc-base before --tests-base.
21679
21680 2006-07-11  Derek R. Price  <derek@ximbiot.com>
21681
21682         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
21683
21684 2006-07-11  Bruno Haible  <bruno@clisp.org>
21685
21686         * README: Mention where to put documentation.
21687
21688 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21689
21690         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
21691
21692 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21693
21694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
21695         to stdint.m4.
21696
21697 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21698
21699         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
21700         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
21701         "no/such/file/stdint.h" when there is no such file, so that
21702         the resulting C code can be parsed by dodgy compilers.
21703         Problems reported by Bob Proulx.
21704
21705 2006-07-10  Derek R. Price  <derek@ximbiot.com>
21706
21707         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
21708         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
21709         macros into the GNU _D_EXACT_NAMLEN.
21710         * lib/savedir.c:  Likewise.
21711         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
21712
21713 2006-07-10  Derek R. Price  <derek@ximbiot.com>
21714         and Paul Eggert  <eggert@cs.ucla.edu>
21715
21716         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
21717         * m4/savedir.m4:
21718         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
21719         macros into the GNU _D_EXACT_NAMLEN.
21720
21721 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21722
21723         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
21724         around the absolute name, to work around a problem with the HP-UX
21725         11.23 native C compiler, reported by Bob Proulx.
21726
21727 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21728
21729         * doc/maintain.texi, make-stds.texi: Sync from
21730         <http://savannah.gnu.org/projects/gnustandards>.
21731
21732 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21733
21734         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
21735
21736 2006-07-09  Jim Meyering  <jim@meyering.net>
21737
21738         * m4/glob.m4: Remove a doubled word in a comment.
21739
21740 2006-07-09  Jim Meyering  <jim@meyering.net>
21741
21742         * lib/argp-pv.c: Remove a doubled word in a comment.
21743         * lib/check-version.c (check_version): Likewise.
21744         * lib/javacomp.c (compile_java_class): Likewise.
21745
21746 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21747
21748         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
21749         for the benefit of people using Autoconf 2.60.  If you want to
21750         support older Autoconf versions you can copy m4/onceonly_2_57.m4
21751         (or m4/onceonly.m4, if pre-2.57) manually.
21752
21753 2006-07-08  Jim Meyering  <jim@meyering.net>
21754
21755         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
21756         comment.
21757         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
21758         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
21759         comment.
21760
21761 2006-07-08  Jim Meyering  <jim@meyering.net>
21762
21763         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
21764
21765 2006-07-07  Simon Josefsson  <jas@extundo.com>
21766
21767         * tests/test-crc.c: Change expected crc value, the test vector
21768         were probably computed using the old broken crc.c?
21769
21770 2006-07-06  Simon Josefsson  <jas@extundo.com>
21771
21772         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
21773         now the canonical place for the M4 file).
21774
21775         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
21776         from the sys_socket dependency now.
21777
21778         * modules/inet_pton (Files): Ditto.
21779
21780         * modules/inet_ntop (Files): Ditto.
21781
21782 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
21783
21784         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
21785         not gl_PREREQ_GETUSERSHELL.
21786
21787 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21788
21789         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
21790         with only one argument, for Autoconf 2.60.
21791         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
21792         expand to nothing, so add a shell command to avoid syntax error.
21793         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21794
21795 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21796
21797         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
21798
21799 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21800
21801         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
21802         no longer needed.  Check for isblank decl.
21803         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
21804         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
21805         of existence.
21806
21807 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21808
21809         * lib/getloadavg.c: Use __VMS, not VMS.
21810         * lib/getopt.c: Likewise.
21811         * lib/getpagesize.h: Likewise.
21812         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
21813         and probably does not work.
21814
21815 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21816
21817         * lib/.cppi-disable: Add wcwidth.
21818         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
21819         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
21820         (ISGRAPH): Remove.  All uses changed to isgraph.
21821         (FOLD) [!defined _LIBC]: Remove special case.
21822         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
21823         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
21824         HAVE_ISBLANK.
21825         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
21826         case.
21827
21828 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
21829
21830         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
21831         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
21832         brackets.  Other minor changes to suppress some compiler
21833         warnings.
21834
21835 2006-07-06  Derek R. Price  <derek@ximbiot.com>
21836         and Paul Eggert  <eggert@cs.ucla.edu>
21837
21838         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
21839         of invoking obsolescent AC_HEADER_DIRENT macro.
21840         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21841         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21842         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21843         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21844         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
21845         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21846         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
21847         * m4/readdir.m4: Remove; no longer needed.
21848
21849 2006-07-06  Derek R. Price  <derek@ximbiot.com>
21850         and Paul Eggert  <eggert@cs.ucla.edu>
21851
21852         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
21853         Don't worry about this obsolete case any more.
21854         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
21855         directories.
21856         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
21857         worry about this obsolete case any more.
21858         * lib/fts.c: Likewise.
21859         * lib/getcwd.c: Likewise.
21860         * lib/glob.h: Likewise.
21861         * lib/savedir.c: Likewise.
21862
21863 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21864
21865         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
21866         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
21867         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
21868         needed.
21869         All uses removed.
21870         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21871         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
21872         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
21873         needed.
21874         * m4/getdate.m4 (gl_GETDATE): Likewise.
21875         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
21876         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
21877         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21878         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21879         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
21880         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21881         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
21882         needed.
21883
21884 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21885
21886         * lib/memcasecmp.c: Include <limits.h>.
21887         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
21888         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
21889         Don't assume isdigit succeeds only on '0' through '9'.
21890
21891 2006-07-05  Eric Blake  <ebb9@byu.net>
21892
21893         * modules/getaddrinfo (Depends-on): Add snprintf.
21894
21895 2006-07-05  Eric Blake  <ebb9@byu.net>
21896
21897         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
21898         to avoid 'header present but could not be compiled' on cygwin.
21899
21900 2006-07-05  Eric Blake  <ebb9@byu.net>
21901
21902         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
21903         missing from netdb.h.
21904         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
21905
21906 2006-07-05  Derek R. Price  <derek@ximbiot.com>
21907
21908         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
21909         no longer needed.
21910         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
21911         * m4/getdate.m4 (gl_GETDATE): Likewise.
21912         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
21913         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
21914         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21915         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21917
21918 2006-07-05  Derek R. Price  <derek@ximbiot.com>
21919
21920         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
21921         All uses of is_space replaced by isspace.
21922         * lib/exit.h: Don't talk about STDC_HEADERS.
21923         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
21924         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
21925         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
21926         replaced by isprint etc.
21927         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
21928         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
21929         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
21930         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
21931         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
21932         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
21933
21934 2006-07-05  Bruno Haible  <bruno@clisp.org>
21935
21936         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
21937         the function exists, before testing against AIX.
21938         Reported by Martin Lambers <marlam@marlam.de>.
21939
21940 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21941
21942         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
21943         From Mark D. Baushke.
21944
21945 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21946
21947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
21948         to the absolute name, not just one, to bypass Sun C 5.8's
21949         "warning: #include of /usr/include/... may be non-portable".
21950
21951 2006-07-04  Eric Blake  <ebb9@byu.net>
21952
21953         * modules/dirname-tests: New test module.
21954         * tests/test-dirname.c: New file, replacing dirname.c
21955         TEST_DIRNAME section that was recently deleted.
21956
21957 2006-07-04  Bruno Haible  <bruno@clisp.org>
21958
21959         Assume ANSI C header files and <ctype.h> functions.
21960         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
21961         (mbsnwidth): Use isprint, iscntrl instead.
21962
21963 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21964
21965         Merge from coreutils.
21966         * MODULES.html.sh: Add xstrtold.
21967         * modules/xstrtold: New file.
21968         * modules/cycle-check (Files): Add lib/same-inode.h.
21969         * modules/dirname (Files): Add m4/double-slash-root.m4.
21970         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
21971         * modules/mkdir-p (Files): Add lib/same-inode.h.
21972         * modules/same (Files): Add lib/same-inode.h.
21973
21974 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21975
21976         * m4/absolute-header.m4: Renamed from full-header-path.m4.
21977         This is to keep the terminology clean; POSIX talks about
21978         "absolute pathnames", not "full pathnames", but the GNU
21979         Coding Standards say to use "path" for something else;
21980         so use "absolute" to keep both sides happy.
21981         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
21982         Set gl_absolute_header, not gl_full_header_path.
21983         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
21984         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
21985         All uses changed.
21986
21987         Merge from coreutils.
21988
21989         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
21990
21991         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
21992         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
21993         want to require the building of c-strtod.o.
21994         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
21995         needs -lm directly.
21996         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
21997
21998         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
21999
22000         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
22001         --as-needed option if available.  Problem reported by Albert Chin in
22002         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
22003         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
22004         cc merely issues a bunch of annoying warnings for --as-needed
22005         (this problem was reported by Bob Proulx).  Also, try linking with
22006         -lm to detect a bug in binutils 2.16 (this problem was reported
22007         by Ralf Wildenhues).
22008
22009         2006-06-18  Jim Meyering  <jim@meyering.net>
22010
22011         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
22012         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
22013         macro.
22014         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
22015         also check for glibc-2.4's abort-inducing bug.
22016
22017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
22018         Low-probability clean-up should be to use rmdir to get rid of
22019         the just-created directory, not unlink.
22020
22021         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
22022         configure fail, and request a bug report to inform us about it.
22023         Add a comment that, barring reports to the contrary, in 2007 we'll
22024         assume ftruncate is universally available.
22025
22026         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22027
22028         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
22029
22030         2006-03-12  Jim Meyering  <jim@meyering.net>
22031
22032         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
22033         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
22034         * m4/same.m4 (gl_SAME): Likewise.
22035         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
22036
22037         2006-03-11  Eric Blake  <ebb9@byu.net>
22038
22039         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
22040         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
22041         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
22042         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
22043
22044 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22045
22046         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
22047         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
22048         reported by Mark D. Baushke, one in
22049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
22050
22051         Merge from coreutils.
22052
22053         * lib/.cppi-disable: Add stdint_.h.
22054         * lib/.cvsignore: Add stdint.h.
22055
22056         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
22057
22058         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
22059         both double and long double versions.
22060         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
22061         * lib/xstrtold.c: New file.
22062         * lib/xstrtod.h (xstrtold): New decl.
22063
22064         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
22065
22066         * lib/filemode.c (setst): Remove.
22067         (strmode): Rewrite to avoid setst.  This makes the code shorter,
22068         (arguably) clearer, and the generated code is a bit smaller on my
22069         Debian GNU/Linux stable x86 host.
22070
22071         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22072
22073         * lib/filemode.c: Include "filemode.h" first, to test the interface.
22074         Assume that filemode.h includes sys/types.h and sys/stat.h.
22075         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
22076         (ftypelet): Reorder to put common cases first, for efficiency.
22077         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
22078         to do 'M'.
22079         (strmode): Renamed from mode_string, and now stores 12 bytes instead
22080         of 10, for compatibility with FreeBSD.  All callers changed.
22081         (filemodestring): Now stores 12 bytes instead of 10, and sets file
22082         types that can't be deduced solely from st_mode.  First arg is now a
22083         const pointer.
22084         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
22085         (strmode): Renamed from mode_string.
22086         (filemodestring): New decl.
22087         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
22088         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
22089         needed.
22090         (S_ISPORT, S_ISWHT): New macros, if not already defined.
22091
22092         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
22093
22094         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
22095         fsusage.h now does that.  Include fsusage.h first, to test interface.
22096         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
22097         at most one method (the old code could have generated decls that
22098         didn't conform to C89, not that this was ever exercised).
22099         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
22100
22101         2006-03-19  Jim Meyering  <jim@meyering.net>
22102
22103         Work even in a chroot where d_ino values for entries in "/"
22104         don't match the stat.st_ino values for the same names.
22105         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
22106         number, iterate through all entries again, using lstat instead.
22107         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
22108         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
22109
22110         * lib/getcwd.c (__getcwd): Clarify a comment.
22111         Use memcpy in place of a call to strcpy.
22112
22113         2006-03-12  Jim Meyering  <jim@meyering.net>
22114
22115         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
22116         matches that of the current directory (which we're about to chdir ".."
22117         out of), then save the dev-ino of the parent, instead.
22118
22119         * lib/same-inode.h (SAME_INODE): New file/macro.
22120         * lib/chdir-safer.c (SAME_INODE): Remove definition.
22121         Include "same-inode.h", instead.
22122         * lib/same.c: Likewise.
22123         * lib/cycle-check.h: Include "same-inode.h".
22124         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
22125         * lib/cycle-check.c (SAME_INODE): Remove definition.
22126         * lib/root-dev-ino.h: Include "same-inode.h".
22127
22128         2006-03-11  Eric Blake  <ebb9@byu.net>
22129
22130         * lib/same.c (same_name): s/base_name/last_component/
22131         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
22132         * lib/filenamecat.c (file_name_concat): Likewise.
22133
22134         2006-03-11  Eric Blake  <ebb9@byu.net>,
22135                     Paul Eggert  <eggert@cs.ucla.edu>
22136
22137         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
22138         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
22139         drive prefix.
22140         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
22141         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
22142         (last_component): New method.
22143         * lib/dirname.c (dir_len): Determine when drive letters need a
22144         subsequent slash.  Preserve // when it is special.
22145         (dir_name): Don't append dot when drive letter is absolute.
22146         [TEST_DIRNAME]: Move into a full-blown gnulib test.
22147         * lib/basename.c (base_name): New semantics - malloc the result.
22148         Preserve // when it is special.  Preserve relative files that look
22149         like drive letters.
22150         (base_len): Preserve // when it is special.
22151         (last_component): New method, similar to old base_name semantics.
22152         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
22153         base_name.  Strip redundant slashes from ///.
22154
22155 2006-07-03  Jim Meyering  <jim@meyering.net>
22156
22157         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
22158         macro is used before the first cycle_check call.
22159
22160 2006-07-03  Eric Blake  <ebb9@byu.net>
22161
22162         * modules/dirname (Depends-on): Add xstrndup.
22163
22164 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22165
22166         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
22167         test cases, so that config.log is a bit easier to follow.
22168
22169 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22170
22171         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
22172         both are 64 bits, since this seems to be the tradition, and this
22173         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
22174         we ever run into a host that prefers long long to long in this
22175         case, we'll need another configure-time test.  Problem reported by
22176         Jim Meyering.
22177
22178 2006-07-02  Eric Blake  <ebb9@byu.net>
22179
22180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
22181
22182 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22183
22184         * modules/inttypes (Depends-on): No longer depends on stdint.
22185         * modules/stdint (Description): Say more about assumptions.
22186         Say that the fast types might differ.  Say macros are used.
22187         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
22188         (Makefile.am): Revise list of substituted symbols to match
22189         new stdint.m4.
22190         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
22191         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
22192         * tests/test-stdint.c (verify_same_types)
22193         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
22194         the code conforms to C99/C89.
22195         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
22196         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
22197
22198 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22199
22200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
22201         but fix a bug, by requiring at least 64 bits.
22202         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
22203         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
22204         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
22205         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
22206
22207         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
22208         changes.  Make 2.59 a prerequisite.  Check and substitute for
22209         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
22210         inttypes.h.  Do not use special include files; just use the
22211         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
22212         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
22213         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
22214         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
22215         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
22216         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
22217         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
22218         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
22219         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
22220         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
22221         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
22222         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
22223         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
22224         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
22225         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
22226         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
22227         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
22228         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
22229         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
22230         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
22231         WINT_MAX.  Check for C99 conformance more strictly, by detecting
22232         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
22233         not check for things that C99 does not require, e.g., int8_t.  If
22234         a test isn't needed unless <stdint.h> isn't working, and is
22235         unlikely to be needed for any other reason, then don't do it
22236         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
22237         size_t, since we assume C89 freestanding at least.  Do not check
22238         for sig_atomic_t, wchar_t, or wint_t, since the code now does
22239         the right thing even if the types are not defined.  Instead use:
22240         (gl_STDINT_TYPE_PROPERTIES): New macro.
22241         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
22242         testing whether <sys/types.h> clashes, as Autoconf does this for
22243         us now.  All uses removed.
22244         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
22245         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
22246         (gl_CHECK_TYPE_SAME):
22247         Remove; no longer needed.
22248         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
22249         exists, since we'll return 0 anyway in that case.
22250         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
22251
22252 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22253
22254         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
22255         possible collision with system files.
22256         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
22257         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
22258         WCHAR_MIN and WCHAR_MAX in this case.
22259         (<stddef.h>): Do not include; no longer needed.
22260         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
22261         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
22262         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
22263         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
22264         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
22265         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
22266         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
22267         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
22268         !defined(__c99))]: Include in this case too, since it's harmless
22269         now.
22270         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
22271         dangerous to do so.
22272         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
22273         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
22274         (_STDINT_MIN, _STDINT_MAX): New macros.
22275         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
22276         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
22277         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
22278         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
22279         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
22280         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
22281         macros, not typedefs; this simplifies things quite a bit.
22282         Use long int for all types narrower than int64_t.
22283         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
22284         Define in terms of long long int or int64_t or long int,
22285         not int64_t or int32_t.  This saves some compile-time testing.
22286         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
22287         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
22288         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
22289         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
22290         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
22291         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
22292         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
22293         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22294         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
22295         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
22296         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22297         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22298         undef any previous version and define our own version, for
22299         simplicity and consistency with the new macros for types.
22300         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22301         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22302         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
22303         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
22304         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
22305         @WINT_T_SUFFIX@ to keep things simple here.
22306         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
22307         Simplify by assuming typical 8/16/32/64 host, since we're
22308         already doing that elsewhere anyway.
22309         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
22310         and assume long long int is 64 bits if available.  This
22311         speeds up 'configure'.
22312
22313 2006-07-01  Eric Blake  <ebb9@byu.net>
22314
22315         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
22316         Reported by Andreas Buening.
22317
22318 2006-07-01  Eric Blake  <ebb9@byu.net>
22319
22320         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
22321
22322 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
22323
22324         * lib/getaddrinfo.c: fixed typo
22325
22326 2006-06-29  Jim Meyering  <jim@meyering.net>
22327
22328         * modules/strftime (Maintainer): Add my name, since with the
22329         FPRINTFTIME changes strftime.c has forked from glibc.
22330
22331 2006-06-29  Eric Blake  <ebb9@byu.net>
22332
22333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
22334
22335 2006-06-29  Eric Blake  <ebb9@byu.net>
22336
22337         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
22338
22339 2006-06-29  Eric Blake  <ebb9@byu.net>
22340
22341         * lib/stat_.h: New file.
22342
22343 2006-06-29  Eric Blake  <ebb9@byu.net>
22344
22345         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
22346         unused static function.
22347
22348 2006-06-29  Eric Blake  <ebb9@byu.net>
22349
22350         * doc/functions.texi (Function Portability): Document missing lstat
22351         on mingw.
22352
22353 2006-06-29  Eric Blake  <ebb9@byu.net>
22354
22355         * MODULES.html.sh: Add sys_stat.
22356         * modules/sys_stat: New module.
22357         * modules/mkstemp (Depends-on): Add sys_stat.
22358
22359 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22360
22361         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
22362
22363 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22364
22365         * m4/c-bs-a.m4: Removed.
22366
22367 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22368
22369         * lib/strftime.c: Assume strftime() exists.
22370
22371 2006-06-29  Derek Price  <derek@ximbiot.com>
22372
22373         * modules/c-bs-a: Removed - \a is C89.
22374         * MODULES.html.sh: Remove c-bs-a.
22375
22376 2006-06-29  Bruno Haible  <bruno@clisp.org>
22377
22378         * modules/wcwidth (License): Change to LGPL.
22379
22380 2006-06-28  Simon Josefsson  <jas@extundo.com>
22381
22382         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
22383         on _WIN32.
22384
22385         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
22386         getnameinfo.
22387
22388 2006-06-28  Simon Josefsson  <jas@extundo.com>
22389
22390         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
22391
22392 2006-06-28  Simon Josefsson  <jas@extundo.com>
22393
22394         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
22395         functions there.  It will succeed on Windows XP, but on Windows
22396         2000 and (presumably) earlier, it will fail, and use the internal
22397         re-implementation.
22398         (use_win32_p): New function.
22399         (getaddrinfo): Use strtoul on servname, to support numeric ports.
22400         Support AI_NUMERICSERV to disable getservbyname.
22401         (getnameinfo): New function, only supports
22402         NI_NUMERICHOST|NI_NUMERICSERV for now.
22403
22404         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
22405         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
22406         getnameinfo.
22407
22408 2006-06-28  Eric Blake  <ebb9@byu.net>
22409
22410         * modules/wcwidth: New file.
22411         * modules/mbchar (Depends-on): Add wcwidth.
22412         * modules/mbswidth (Depends-on): Add wcwidth.
22413         * MODULES.html.sh: Add wcwidth.
22414
22415 2006-06-28  Eric Blake  <ebb9@byu.net>
22416
22417         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
22418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
22419
22420 2006-06-28  Eric Blake  <ebb9@byu.net>
22421
22422         * lib/xvasprintf.h: Fix comments.
22423
22424 2006-06-28  Eric Blake  <ebb9@byu.net>
22425
22426         * lib/mbchar.h (wcwidth): Include wcwidth.h.
22427         * lib/mbswidth.c (wcwidth): Move from here...
22428         * lib/wcwidth.h: ...to this new file.
22429
22430 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22431
22432         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
22433
22434         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
22435         it's obsolete.
22436         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
22437
22438 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22439
22440         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
22441         Autoconf 2.60 says this stuff was obsolete.
22442
22443 2006-06-28  Bruno Haible  <bruno@clisp.org>
22444
22445         * modules/wcwidth (Files): Add m4/wchar_t.m4.
22446
22447 2006-06-28  Bruno Haible  <bruno@clisp.org>
22448
22449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
22450         gt_TYPE_WCHAR_T.
22451
22452 2006-06-28  Bruno Haible  <bruno@clisp.org>
22453
22454         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
22455         declaration for wcwidth.
22456         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
22457
22458 2006-06-28  Bruno Haible  <bruno@clisp.org>
22459
22460         * lib/mkdtemp.c [MINGW]: Include <io.h>.
22461         (mkdir): Define using _mkdir.
22462
22463 2006-06-28  Bruno Haible  <bruno@clisp.org>
22464
22465         * lib/getaddrinfo.h: Fix POSIX URL.
22466         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
22467         _WIN32.
22468         (use_win32_p): Make static.
22469         (getaddrinfo): Reject service name if it is empty or does not consist
22470         solely of decimal digits, or if its value is > 65535.
22471         (getnameinfo): Remove useless casts.
22472
22473 2006-06-27  Simon Josefsson  <jas@extundo.com>
22474
22475         * modules/sys_select: New file, suggested by Bruno Haible, Paul
22476         Eggert and Martin Lambers.
22477
22478 2006-06-27  Simon Josefsson  <jas@extundo.com>
22479
22480         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
22481         Eggert and Martin Lambers.
22482
22483 2006-06-27  Bruno Haible  <bruno@clisp.org>
22484
22485         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
22486         result to 0, not to empty.
22487         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
22488
22489 2006-06-27  Bruno Haible  <bruno@clisp.org>
22490
22491         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
22492
22493 2006-06-26  Simon Josefsson  <jas@extundo.com>
22494
22495         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
22496         present.
22497
22498 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
22501         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
22502         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
22503
22504 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
22505
22506         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
22507
22508 2006-06-26  Bruno Haible  <bruno@clisp.org>
22509
22510         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
22511
22512 2006-06-26  Bruno Haible  <bruno@clisp.org>
22513
22514         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
22515
22516 2006-06-26  Bruno Haible  <bruno@clisp.org>
22517
22518         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
22519         SGI C compiler in pre-C99 mode.
22520         Suggested by Mark D. Baushke and Larry Jones.
22521
22522 2006-06-26  Bruno Haible  <bruno@clisp.org>
22523
22524         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
22525         WCHAR_MAX.
22526         Reported by Mark D. Baushke and Larry Jones.
22527
22528 2006-06-26  Bruno Haible  <bruno@clisp.org>
22529
22530         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
22531         in pre-C99 mode.
22532         Suggested by Mark D. Baushke and Larry Jones.
22533
22534 2006-06-23  Simon Josefsson  <jas@extundo.com>
22535             Bruno Haible  <bruno@clisp.org>
22536
22537         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
22538         Emit mostlyclean-local rule.
22539         (func_emit_tests_Makefile_am): Likewise.
22540         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
22541
22542 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
22543
22544         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
22545
22546 2006-06-23  Bruno Haible  <bruno@clisp.org>
22547
22548         * tests/test-stdint.c: Update to match ISO C 99 Technical
22549         Corrigendum 1.
22550
22551 2006-06-23  Bruno Haible  <bruno@clisp.org>
22552
22553         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
22554
22555 2006-06-23  Bruno Haible  <bruno@clisp.org>
22556
22557         * lib/stdint_.h: Treat IRIX like OpenBSD.
22558
22559 2006-06-23  Bruno Haible  <bruno@clisp.org>
22560
22561         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
22562         ISO C 99 Technical Corrigendum 1.
22563
22564 2006-06-22  Simon Josefsson  <jas@extundo.com>
22565
22566         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
22567         MinGW.
22568
22569 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22570
22571         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
22572         needed.  Some compiler complained about some of them.  Problem reported
22573         by Larry Jones in
22574         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
22575
22576 2006-06-21  Simon Josefsson  <jas@extundo.com>
22577
22578         * tests/test-getaddrinfo.c: New file.
22579
22580         * modules/getaddrinfo-tests: New file.
22581
22582         * MODULES.html.sh: Add inet_pton.
22583
22584         * modules/inet_pton: New file.
22585
22586 2006-06-21  Simon Josefsson  <jas@extundo.com>
22587
22588         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
22589         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
22590         of using the (limited) gnulib implementation on Windows XP.
22591
22592         * m4/inet_pton.m4: New file.
22593
22594 2006-06-21  Simon Josefsson  <jas@extundo.com>
22595
22596         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
22597         variable.
22598
22599         * lib/socket_.h: Don't define WINVER.
22600
22601         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
22602         slightly modified to work in gnulib.
22603
22604 2006-06-21  Simon Josefsson  <jas@extundo.com>
22605
22606         * doc/gnulib.texi (Windows sockets): Add.
22607
22608 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22609
22610         * lib/read-file.c (fread_file): Start with buffer allocation of
22611         0 bytes rather than 1 byte; this simplifies the code.
22612         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
22613         code to free buffer and save/restore errno.
22614         (internal_read_file): Remove unused local.
22615
22616 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22617
22618         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
22619         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
22620         Problem reported by Denis Excoffier in
22621         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
22622
22623 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22624
22625         * modules/sys_socket, modules/socklen: Include sys/types since
22626         FreeBSD 4.x's sys/socket.h needs it.
22627
22628 2006-06-19  Simon Josefsson  <jas@extundo.com>
22629
22630         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
22631
22632 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
22633
22634         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
22635
22636 2006-06-19  Bruno Haible  <bruno@clisp.org>
22637
22638         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
22639         and FULL_PATH_INTTYPES_H in angle brackets.
22640         Reported by Mark D. Baushke <mdb@gnu.org>.
22641
22642 2006-06-17  Eric Blake  <ebb9@byu.net>
22643
22644         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
22645         errno.
22646
22647 2006-06-17  Bruno Haible  <bruno@clisp.org>
22648
22649         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
22650         <sys/inttypes.h>.
22651
22652 2006-06-17  Bruno Haible  <bruno@clisp.org>
22653
22654         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
22655         whether errno is declared. Assume <errno.h> declares errno.
22656
22657 2006-06-17  Bruno Haible  <bruno@clisp.org>
22658
22659         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
22660
22661 2006-06-17  Bruno Haible  <bruno@clisp.org>
22662
22663         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
22664         problem on Solaris 2.5.1.
22665
22666 2006-06-16  Eric Blake  <ebb9@byu.net>
22667
22668         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
22669         * lib/unicodeio.c [!defined errno]: Likewise.
22670         * lib/strtol.c [!defined errno]: Likewise.
22671         * lib/strtod.c [!defined errno]: Likewise.
22672
22673 2006-06-15  Eric Blake  <ebb9@byu.net>
22674
22675         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
22676
22677 2006-06-15  Eric Blake  <ebb9@byu.net>
22678
22679         * config/srclist.txt (ssize_t.m4): Lose sync.
22680
22681 2006-06-15  Bruno Haible  <bruno@clisp.org>
22682
22683         * modules/stdint (Files): Include m4/full-header-path.m4,
22684         m4/size_max.m4, m4/wchar_t.m4.
22685         (Makefile.am): Many more substitutions.
22686         * modules/stdint-tests: New file.
22687         * tests/test-stdint.c: New file.
22688
22689 2006-06-15  Bruno Haible  <bruno@clisp.org>
22690
22691         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
22692         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
22693         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
22694         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
22695         gl_CHECK_TYPE_SAME): New macros.
22696
22697 2006-06-15  Bruno Haible  <bruno@clisp.org>
22698
22699         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
22700
22701 2006-06-15  Bruno Haible  <bruno@clisp.org>
22702
22703         * lib/stdint_.h: Rewritten to be fully auto-configured.
22704         Fixes bug on HP-UX/IA64.
22705
22706 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22707
22708         * lib/getdate.y (__attribute__): Don't define if already defined.
22709         Problem reported by Larry Jones.
22710         * lib/utimens.c (__attribute__): Likewise.
22711
22712 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22713
22714         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
22715         reported by Andreas Schwab.
22716
22717 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22718             Bruno Haible  <bruno@clisp.org>
22719
22720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
22721         check for the declaration of strnlen and a run test that exposes the
22722         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
22723         rpl_strndup.
22724
22725 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22726             Bruno Haible  <bruno@clisp.org>
22727
22728         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
22729
22730 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22731
22732         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
22733         compile test, for Tru64 4.0D.
22734
22735 2006-05-28  Karl Berry  <karl@gnu.org>
22736
22737         * config/srclist.txt (printf-args.c): lose sync.
22738
22739 2006-05-26  Martin Lambers  <marlam@marlam.de>
22740
22741         * lib/getpass.c: Updates the test for the native W32 API, and adds
22742         missing includes, thus fixing compilation warnings.
22743
22744 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22745
22746         * lib/exclude.c (exclude_fnmatch): New function.
22747         (excluded_file_name): Call exclude_fnmatch.
22748         * lib/exclude.h (excluded_file_name): New prototype
22749
22750 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22751
22752         * lib/tempname.c (small_open, large_open): New macros.
22753         (__open, __open64) [!_LIBC]: Remove.
22754         (__gen_tempname): Use small_open and large_open instead of __open
22755         and __open64.  This fixes a portability bug on HP-UX 11.11i
22756         reported by Simon Wing-Tang in
22757         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
22758
22759 2006-05-24  Bruno Haible  <bruno@clisp.org>
22760
22761         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
22762         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
22763         Reported by Thorsten Maerz <torte@netztorte.de> via
22764         Aaron Stone <aaron@serendipity.cx>.
22765
22766 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22767
22768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
22769         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
22770         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
22771         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
22772         not really conditional on the cache.
22773         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
22774
22775 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22776
22777         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
22778         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
22779         (my_usleep): Don't mishandle maximum value.
22780
22781 2006-05-19  Jim Meyering  <jim@meyering.net>
22782
22783         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
22784
22785 2006-05-17  Bruno Haible  <bruno@clisp.org>
22786
22787         Cygwin portability.
22788         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
22789
22790 2006-05-17  Bruno Haible  <bruno@clisp.org>
22791
22792         * lib/stdint_.h: Fix recognition of Cygwin.
22793
22794 2006-05-15  Bruno Haible  <bruno@clisp.org>
22795
22796         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
22797         on libtool patch by Ralf Wildenhues.
22798
22799 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22800
22801         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
22802         test for C99 conformance; (bool) 0.5 is an integer constant
22803         expression, but (bool) -0.5 is not.  Problem reported by Fedor
22804         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
22805
22806 2006-05-11  Simon Josefsson  <jas@extundo.com>
22807
22808         * m4/xvasprintf.m4: Fix obvious typo.
22809
22810 2006-05-11  Jim Meyering  <jim@meyering.net>
22811
22812         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
22813         James Lemley.
22814
22815 2006-05-10  Simon Josefsson  <jas@extundo.com>
22816
22817         * lib/md4.c: Typo fix, update copyright years.
22818         (K1, K2): Don't use L because it turn computations into 64-bit on
22819         64-bit platforms.
22820
22821 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
22822
22823         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
22824         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
22825         unwanted sign propagation, e.g., on hosts with 64-bit int.
22826         There still are some problems with reeelly weird theoretical hosts
22827         (e.g., 33-bit int) but it's not worth worrying about now.
22828         * lib/sha1.c (rol): Likewise.
22829         (K1, K2, K3, K4): Remove unnecessary L suffix.
22830
22831 2006-05-10  Bruno Haible  <bruno@clisp.org>
22832
22833         * lib/des.c: Cast to avoid warnings.
22834
22835 2006-05-09  Bruno Haible  <bruno@clisp.org>
22836
22837         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
22838         (Depends-on): Depend also on xsize, stdarg.
22839         (configure.ac): Add gl_XVASPRINTF.
22840
22841 2006-05-09  Bruno Haible  <bruno@clisp.org>
22842
22843         * m4/xvasprintf.m4: New file.
22844
22845 2006-05-09  Bruno Haible  <bruno@clisp.org>
22846
22847         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
22848         (EOVERFLOW): Define fallback value.
22849         (xstrcat): New function.
22850         (xvasprintf): Recognize the special case of a string concatenation.
22851
22852 2006-05-08  Eric Blake  <ebb9@byu.net>
22853
22854         * gnulib-tool (func_version): Base copyright year on CVS date.
22855         (func_emit_copyright_notice): New function.
22856         (func_emit_lib_Makefile_am): Use it.
22857         (func_emit_tests_Makefile_am): Likewise.
22858         (func_import): Likewise.
22859
22860 2006-05-08  Bruno Haible  <bruno@clisp.org>
22861
22862         * modules/stdarg: New file.
22863         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
22864
22865 2006-05-08  Bruno Haible  <bruno@clisp.org>
22866
22867         * m4/stdarg.m4: New file, from GNU gettext.
22868
22869 2006-05-08  Bruno Haible  <bruno@clisp.org>
22870
22871         * config/srclist.txt (build-aux/config.rpath): different from latest
22872         release.
22873
22874 2006-05-08  Bruno Haible  <bruno@clisp.org>
22875
22876         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
22877
22878 2006-05-05  Jim Meyering  <jim@meyering.net>
22879
22880         * m4/warning.m4: New file, derived from bison's file by the same name.
22881
22882 2006-05-03  Bruno Haible  <bruno@clisp.org>
22883
22884         * lib/stdint_.h: Shorter URL.
22885         * lib/inttypes.h: Likewise.
22886
22887 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22888
22889         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
22890
22891 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22892
22893         * lib/verify.h: Document the internals better.  Most of this change
22894         was written by Bruno Haible.
22895
22896 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22897
22898         * doc/verify.texi: New file, partly based on a proposal by
22899         Bruno Haible.
22900
22901 2006-05-02  Bruno Haible  <bruno@clisp.org>
22902
22903         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
22904         test from here...
22905         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
22906
22907 2006-04-29  Bruno Haible  <bruno@clisp.org>
22908
22909         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
22910         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
22911
22912 2006-04-29  Bruno Haible  <bruno@clisp.org>
22913
22914         * gnulib-tool: Make --update option actually work.
22915
22916 2006-04-29  Bruno Haible  <bruno@clisp.org>
22917
22918         * doc/gcd.texi: New file.
22919         * doc/gnulib.texi: Include it.
22920
22921 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22922
22923         * lib/getdate.y (get_date): When adding relative date, start with the
22924         initial time, not with the result of the first mktime call.
22925
22926 2006-04-25  Bruno Haible  <bruno@clisp.org>
22927
22928         * gnulib-tool (func_import): Output the include directives in three
22929         blocks, sorted separately.
22930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22931
22932 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22933
22934         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
22935         to define main with arguments, for C++.  Reported by Eric Blake.
22936         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
22937         Prefer 'int main ()' to 'int main (void)', for C++.
22938         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
22940         for 'main', for C99 and C++.
22941
22942 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22943
22944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
22945         Don't assume that exit status -1 is valid.
22946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22947         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22948         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22949         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
22950         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
22951         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
22952         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
22953         functions can be used without declaring them, or that you can
22954         exit with status -1.
22955         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
22956
22957 2006-04-24  Karl Berry  <karl@gnu.org>
22958
22959         * config/srclist.txt (longdouble.m4): sync lost.
22960
22961 2006-04-24  Eric Blake  <ebb9@byu.net>
22962
22963         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
22964
22965 2006-04-24  Bruno Haible  <bruno@clisp.org>
22966
22967         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
22968         poll() implementation in AIX.
22969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22970
22971 2006-04-24  Bruno Haible  <bruno@clisp.org>
22972
22973         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
22974         assigned exactly once.
22975
22976 2006-04-23  Claudio Fontana  <claudio@gnu.org>
22977             Bruno Haible  <bruno@clisp.org>
22978
22979         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
22980         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
22981         for AM_CPPFLAGS.
22982
22983 2006-04-23  Bruno Haible  <bruno@clisp.org>
22984
22985         * modules/copy-file: Depend on unistd.
22986         * modules/execute: Likewise.
22987         * modules/fatal-signal: Likewise.
22988         * modules/findprog: Likewise.
22989         * modules/mkdtemp : Likewise.
22990         * modules/pipe: Likewise.
22991         * modules/wait-process: Likewise.
22992
22993 2006-04-23  Bruno Haible  <bruno@clisp.org>
22994
22995         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
22996         condition was already detected.
22997         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22998
22999 2006-04-23  Bruno Haible  <bruno@clisp.org>
23000
23001         * lib/copy-file.c: Include <unistd.h> unconditionally.
23002         * lib/execute.c: Likewise.
23003         * lib/fatal-signal.c: Likewise.
23004         * lib/findprog.c: Likewise.
23005         * lib/mkdtemp.c: Likewise.
23006         * lib/pipe.h: Likewise.
23007         * lib/pipe.c: Likewise.
23008         * lib/wait-process.h: Likewise.
23009
23010 2006-04-23  Bruno Haible  <bruno@clisp.org>
23011
23012         * gnulib-tool (func_usage): Fix --import description. Document
23013         --update.
23014         (func_import): Create temporary file in a temporary directory, if
23015         --dry-run is specified. Silence errors from 'grep' when there are no
23016         m4 files in $m4dir.
23017         (func_create_testdir): Silence errors from 'grep' when there are no
23018         m4 files in $m4dir.
23019         Reported by Karl Berry <karl@freefriends.org>.
23020
23021 2006-04-20  Bruno Haible  <bruno@clisp.org>
23022
23023         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
23024         one argument, so that the code will be portable to Autoconf 2.60.
23025         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
23026         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23027         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
23028
23029 2006-04-19  Derek Price  <derek@ximbiot.com>
23030             Eric Blake  <ebb9@byu.net>
23031
23032         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
23033         rather than "/full/path.h".  Update comment to match.  Shorten &
23034         generalize m4_translit call via AS_TR_CPP.
23035
23036 2006-04-19  Derek Price  <derek@ximbiot.com>
23037             Eric Blake  <ebb9@byu.net>
23038
23039         * lib/inttypes.h: Correct grammar in comment.
23040
23041 2006-04-18  Derek Price  <derek@ximbiot.com>
23042             Paul Eggert  <eggert@cs.ucla.edu>
23043
23044         * modules/inttypes: New file.
23045         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
23046
23047 2006-04-18  Derek Price  <derek@ximbiot.com>
23048             Paul Eggert  <eggert@cs.ucla.edu>
23049
23050         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
23051         New files.
23052
23053 2006-04-18  Derek Price  <derek@ximbiot.com>
23054             Paul Eggert  <eggert@cs.ucla.edu>
23055
23056         * lib/inttypes.h: New file.
23057         * lib/strtoimax.c: Assume <inttypes.h>.
23058
23059 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
23060
23061         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
23062         isn't mounted.  Problem reported by Kir Kolyshkin.
23063
23064 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23065
23066         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
23067         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
23068         Derek R. Price.
23069         * lib/regex.h (RE_DUP_MAX): Update comment to match current
23070         implementation.
23071
23072 2006-04-12  Eric Blake  <ebb9@byu.net>
23073
23074         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
23075         is now done automatically by the corresponding Autoconf macro.
23076
23077 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
23078
23079         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
23080         time_r.h.
23081
23082 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23083
23084         Merge regex changes from libc, removing some of our
23085         POSIX-conformance changes that were rejected and redoing them in a
23086         less-intrusive way.
23087
23088         * lib/regcomp.c (re_compile_internal, init_dfa):
23089         Length arg is now size_t, not Idx.  All uses changed.
23090         (peek_token): Forward decl now says internal_function.
23091         (__re_error_msgid, __re_error_msgid_idx):
23092         Now static rather than extern with attribute_hidden.
23093         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
23094         For some reason libc prefers K&R style defns for external functions.
23095         (regerror) [!defined _LIBC]: Likewise.
23096         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
23097         (seek_collating_symbol_entry, lookup_collation_sequence_value):
23098         (build_range_exp, build_collating_symbol):
23099         Use K&R-style defn.
23100         (re_compile_fastmap): Use '\0' to memset, not 0.
23101         (utf8_sb_map): Make the calculations more obvious.
23102         (init_dfa, parse_bracket_exp, build_charclass_op):
23103         Call calloc and cast result, as glibc does.
23104         (init_word_char, fetch_token, peek_token, peek_token_bracket):
23105         (build_range_exp, build_collating_symbol):
23106         Now internal functions.
23107
23108         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
23109
23110         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
23111         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
23112         Don't depend on VMS; depend on __VMS instead, for POSIX
23113         namespace cleanness.
23114         (regoff_t): Define to ssize_t, not long int.
23115
23116         Remove the REG_ macros named below.  Instead, make the old names
23117         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
23118         __USE_GNU_REGEX.
23119         (REG_BACKSLASH_ESCAPE_IN_LISTS):
23120         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
23121         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
23122         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
23123         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
23124         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
23125         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
23126         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
23127         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
23128         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
23129         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
23130         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
23131         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
23132         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
23133         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
23134         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
23135         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
23136         (REG_NREGS):
23137         Remove.  All uses replaced by the old RE_* names.
23138         (RE_BACKSLASH_ESCAPE_IN_LISTS):
23139         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
23140         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
23141         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
23142         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
23143         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
23144         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
23145         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
23146         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
23147         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
23148         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
23149         Don't bother having these macros be independent of each others'
23150         values, since they no longer exist in the POSIX name space.
23151
23152         Rename the following member names back to their old names,
23153         unless !__USE_GNU_REGEX.  All uses changed back.
23154         (buffer): Renamed from re_buffer.
23155         (allocated): Renamed from re_allocated.
23156         (used): Renamed from re_used.
23157         (syntax): Renamed from re_syntax.
23158         (fastmap): Renamed from re_fastmap.
23159         (translate): Renamed from re_translate.
23160         (can_be_null): Renamed from re_can_be_null.
23161         (regs_allocated): Renamed from re_regs_allocated.
23162         (fastmap_accurate): Renamed from re_fastmap_accurate.
23163         (no_sub): Renamed from re_no_sub.
23164         (not_bol): Renamed from re_not_bol.
23165         (not_eol): Renamed from re_not_eol.
23166         (newline_anchor): Renamed from re_newline_anchor.
23167         (num_regs): Renamed from rm_num_regs.
23168         (start): Renamed from rm_start.
23169         (end): Renamed from rm_end.
23170
23171         (free_state): Move up a bit.
23172
23173         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
23174         #define to be empty.
23175         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
23176         when that is what is intended.
23177         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
23178         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
23179         (MAX): New macro.
23180         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
23181         All uses changed back to re_malloc, etc.  It's now the caller's
23182         responsibility to check for overflow; all callers changed.
23183         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
23184         (re_x2nrealloc): Remove.
23185         (free_state): Remove decl.
23186
23187         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
23188         (re_set_registers, re_exec):
23189         Use K&R-style defn.
23190
23191         2006-01-31  Roland McGrath  <roland@redhat.com>
23192
23193         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
23194         Reported by Mike Frysinger <vapier@gentoo.org>.
23195
23196         2006-01-15  Andreas Jaeger  <aj@suse.de>
23197
23198         [BZ #1950]
23199         * lib/regex_internal.c (re_string_reconstruct): Adjust for
23200         build_wcs_upper_buffer change.
23201         (build_wcs_upper_buffer): Change return type.
23202
23203         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
23204
23205         * lib/regex_internal.h: Include <stdint.h> if available.
23206
23207         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
23208
23209         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
23210
23211         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
23212
23213         * lib/regcomp.c: Adjust for changed secondary hash function.
23214
23215         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
23216
23217         * lib/regex.h: Pretty printing.
23218         Clean up namespace a bit.
23219
23220         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
23221
23222         * lib/regexec.c (update_cur_sifted_state, check_arrival,
23223         check_arrival_add_next_nodes): Avoid using uninitialized variable.
23224
23225         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23226                     Ulrich Drepper  <drepper@redhat.com>
23227
23228         [BZ #1302]
23229         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
23230         changed.
23231         (bitset_word_t): Renamed from bitset_word.  All uses changed.
23232
23233         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
23234
23235         [BZ #281]
23236         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
23237         * lib/regcomp.c: Remove unnecessary uses of
23238         unsigned RE_TRANSLATE_TYPE.
23239         * lib/regex_internal.h: Likewise.
23240         * lib/regex_internal.c: Likewise.
23241         * lib/regexec.c: Likewise.
23242         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
23243
23244         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
23245
23246         * lib/regexec.c (find_recover_state): Remove unnecessary
23247         initialization.
23248         (transit_state_bkref): Make DFA a const pointer.
23249         (get_subexp): Likewise.
23250         (check_arrival): Likewise.
23251         (update_cur_sifted_state): Likewise.
23252         (re_search_internal): Likewise.
23253         (prune_impossible_nodes): Likewise.
23254         (acquire_init_state_context): Likewise.
23255         (proceed_next_node): Likewise.
23256         (set_regs): Likewise.
23257         (free_fail_stack_return): Likewise.
23258         (check_arrival_expand_ecl): Mark DFA parameter as const.
23259         (check_arrival_expand_ecl_sub): Likewise.
23260         (check_subexp_limits): Likewise.
23261         (sub_epsilon_src_nodes):  Likewise.
23262         (add_epsilon_src_nodes):  Likewise.
23263         (merge_state_array): Likewise.
23264         (update_regs): Likewise.
23265         (build_trtable): Likewise.
23266         (sift_states_backward): Mark MCTX parameter as const.
23267         (build_sifted_states): Likewise.
23268         (update_cur_sifted_state): Likewise.
23269         (sift_states_mkref): Likewise.
23270         (check_arrival_expand_ecl): Mark eclosure as const.
23271         (check_dst_limits_calc_pos_1): Likewise.
23272         * lib/regex_internal.h (re_match_context_t): Make dfa a const
23273         pointer.
23274
23275         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
23276
23277         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
23278         (transit_state_sb): Likewise.
23279         (transit_state_mb): Likewise.
23280         (sift_states_iter_mb): Likewise.
23281         (check_arrival_add_next_nodes): Likewise.
23282         (check_node_accept_bytes): Change first parameter to pointer-to-const.
23283         [_LIBC] (re_search_2_stub): Use mempcpy.
23284
23285         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
23286         mbrtowc for very simple UTF-8 case.
23287
23288         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
23289         a pointer-to-const.
23290         (re_acquire_state_context): Likewise.
23291         * lib/regex_internal.h: Adjust prototypes.
23292
23293         * lib/regex.c: Prevent using C++ compilers.
23294
23295         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
23296         (re_acquire_state_context): Likewise.
23297
23298 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23299
23300         * modules/regex (Depends-on): Add ssize_t.
23301
23302 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23303
23304         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
23305         translation table.
23306
23307 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23308
23309         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
23310
23311 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
23312             Bruno Haible  <bruno@clisp.org>
23313
23314         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
23315         <sys/types.h> and <inttypes.h>.
23316
23317 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23318
23319         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
23320         `__error_t_defined', so argp.h will not typedef the former.
23321
23322 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23323
23324         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
23325         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
23326         glibc names.  Even if glibc is changed to conform to POSIX, the
23327         traditional names will be available anyway, since regex depends on
23328         the extensions module.  Also, fix a longstanding typo in the
23329         implementation of Spencer ERE test #75 from grep 2.3.  Problems
23330         reported by Emanuele Giaquinta.  Also, change sense of cached
23331         variable, so that the message makes sense.
23332
23333 2006-03-24  Simon Josefsson  <jas@extundo.com>
23334
23335         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
23336         including some doc fixes.
23337         (base64_encode_alloc): Fix +1 bug on allocation failures.
23338
23339 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23340
23341         * lib/base64.c (base64_encode): Do not read past end of array with
23342         unsanitized input on systems with CHAR_BIT > 8.
23343
23344 2006-03-24  Eric Blake  <ebb9@byu.net>
23345
23346         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
23347
23348 2006-03-22  Karl Berry  <karl@gnu.org>
23349
23350         * config/srclist.txt (*setenv.[ch]): get from coreutils.
23351         * config/srclistvars.sh (COREUTILS): new var.
23352
23353 2006-03-17  Jim Meyering  <jim@meyering.net>
23354
23355         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
23356         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
23357
23358 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23359
23360         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
23361         no longer needs it.  Instead, check that regoff_t is as least
23362         as wide as ptrdiff_t.
23363
23364         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
23365         so that our regex.h stays compatible with the installed regex.
23366         This is helpful for installers who configure --without-included-regex.
23367         Problem reported by Emanuele Giaquinta.
23368
23369 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23370
23371         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
23372         Typedef to long int, not to off_, as POSIX will likely change
23373         in that direction.
23374
23375 2006-03-15  Eric Blake  <ebb9@byu.net>
23376
23377         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
23378
23379 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23380
23381         * lib/argp-help.c (validate_uparams): Fix typo
23382         * lib/argp-parse.c (argp_default_options): Consistently begin help
23383         messages with a lowercase letter.
23384
23385 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23386
23387         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
23388         overrun buffers and shouldn't be used (much as gets shouldn't be
23389         used).
23390         * lib/time_r.c (asctime_r, ctime_r): Likewise.
23391
23392 2006-03-08  Simon Josefsson  <jas@extundo.com>
23393
23394         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
23395         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23396
23397 2006-03-08  Simon Josefsson  <jas@extundo.com>
23398
23399         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
23400         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23401
23402 2006-03-08  Simon Josefsson  <jas@extundo.com>
23403
23404         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
23405         signal that configure disabled the device.
23406
23407 2006-03-08  Simon Josefsson  <jas@extundo.com>
23408
23409         * build-aux/maint.mk: Fix refresh-po, to handle no translated
23410         languages.
23411
23412 2006-03-07  Simon Josefsson  <jas@extundo.com>
23413
23414         * modules/getopt (Depends-on): Add unistd.
23415
23416         * modules/unistd: New file.
23417
23418 2006-03-07  Simon Josefsson  <jas@extundo.com>
23419
23420         * modules/gc-random: New file.
23421
23422 2006-03-07  Simon Josefsson  <jas@extundo.com>
23423
23424         * m4/unistd_h.m4: New file.
23425
23426 2006-03-07  Simon Josefsson  <jas@extundo.com>
23427
23428         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
23429         test to be side-effect free by storing the result in the cache
23430         variable gl_cv_lib_readline, and moving the assignment of
23431         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
23432         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23433
23434 2006-03-07  Simon Josefsson  <jas@extundo.com>
23435
23436         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
23437         error on missing devices (the functions will return an error).
23438
23439         * m4/gc.m4: Move random stuff to gc-random.m4
23440
23441 2006-03-07  Simon Josefsson  <jas@extundo.com>
23442
23443         * lib/unistd_.h: New file.
23444
23445 2006-03-07  Simon Josefsson  <jas@extundo.com>
23446
23447         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
23448
23449 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23450
23451         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
23452         Problem reported by Juan Manuel Guerrero.
23453
23454 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23455
23456         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
23457         the unistd module.
23458         * lib/getlogin_r.c: Likewise.
23459         * lib/getlogin_r.h: Likewise.
23460         * lib/glob.c: Likewise.
23461         * lib/pagealign_alloc.c: Likewise.
23462         * lib/unistd_.h: Remove; no longer needed.
23463
23464 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23465
23466         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23467         Add unistd.
23468         * modules/c-stack (Depends-on): Add unistd.
23469         * modules/getlogin_r: Likewise.
23470         * modules/glob: Likewise.
23471         * modules/pagealign_alloc: Likewise.
23472         * modules/unistd (Files): Remove lib/unistd_.h.
23473         (EXTRA_DIST): Remove.
23474         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
23475         need unistd_.h.
23476         (MOSTLYCLEANFILES): Remove unistd.h-t.
23477
23478 2006-03-03  Simon Josefsson  <jas@extundo.com>
23479
23480         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
23481
23482 2006-03-03  Simon Josefsson  <jas@extundo.com>
23483
23484         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
23485         libidn and bison.
23486
23487 2006-03-03  Simon Josefsson  <jas@extundo.com>
23488
23489         * build-aux/maint.mk: Add indent target.
23490
23491 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
23492
23493         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
23494         our replacement poll.h in any case, to avoid a differing
23495         declaration from a system header.  Seen on AIX.
23496
23497 2006-03-01  Simon Josefsson  <jas@extundo.com>
23498
23499         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
23500         <kasal@ucw.cz>.
23501
23502 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23503
23504         * modules/gettime (Depends-on): Add extensions module.
23505         * modules/nanosleep (Depends-on): Likewise.
23506         * modules/settime (Depends-on): Likewise.
23507
23508 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
23511         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
23512         pedantically.
23513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23514         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
23515
23516         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
23517         not "==".  Reported by Ralf Wildenhues.
23518
23519 2006-03-01  Karl Berry  <karl@gnu.org>
23520
23521         * doc/Copyright/request-*: new files, synced from gnuorg.
23522
23523 2006-03-01  Karl Berry  <karl@gnu.org>
23524
23525         * config/srclist.txt (Copyright/*): new entries.
23526
23527 2006-02-28  Simon Josefsson  <jas@extundo.com>
23528
23529         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
23530
23531 2006-02-27  Simon Josefsson  <jas@extundo.com>
23532
23533         * lib/base64.h: Indent #define's.  From Jim Meyering
23534         <jim@meyering.net>.
23535
23536 2006-02-27  Jim Meyering  <jim@meyering.net>
23537
23538         Revert the change of 2006-02-24, so these files can continue
23539         to be sync'd from gettext.
23540         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
23541         of `config.h'.
23542
23543 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23544
23545         * modules/intprops: New file.
23546         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
23547         Add intprops.
23548         * modules/getloadavg (Files): Remove lib/intprops.h.
23549         (Depends-on): Add intprops.
23550         * modules/human: Likewise.
23551         * modules/inttostr: Likewise.
23552         * modules/openat: Likewise.
23553         * modules/sig2str: Likewise.
23554         * modules/userspec: Likewise.
23555         * modules/utimecmp: Likewise.
23556         * modules/xnanosleep: Likewise.
23557         * modules/xstrtol: Likewise.
23558
23559 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
23560
23561         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
23562         * modules/lock-tests (TESTS): Use $(EXEEXT).
23563         * modules/tls-tests: Likewise.
23564         * modules/argp-tests: Likewise.
23565         (check_PROGRAMS): New var, replacing...
23566         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
23567
23568 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23569
23570         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
23571         `config.h'.
23572
23573 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23574
23575         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
23576
23577 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23578
23579         Sync from coreutils.
23580         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
23581         gl_CHDIR_SAFER.
23582
23583 2006-02-22  Jim Meyering  <jim@meyering.net>
23584
23585         Sync from coreutils.
23586         * m4/chdir-safer.m4: New file.
23587
23588 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23589
23590         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
23591         AT_FDCWD exceeds INT_MAX.
23592         * lib/openat.h (AT_FDCWD): Likewise.
23593
23594 2006-02-17  Eric Blake  <address@hidden>
23595
23596         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
23597
23598 2006-02-16  Simon Josefsson  <jas@extundo.com>
23599
23600         * modules/getaddrinfo (Depends-on): Add sys_socket.
23601
23602 2006-02-15  Simon Josefsson  <jas@extundo.com>
23603
23604         * build-aux/maint.mk: Add dsyntax-check rule.
23605
23606 2006-02-15  Eric Blake  <ebb9@byu.net>
23607
23608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
23609         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
23610         'present but cannot compile' warnings on cygwin.
23611         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
23612         use ws2tcpip.h if sys/socket.h works.
23613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
23614         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
23615
23616 2006-02-14  Simon Josefsson  <jas@extundo.com>
23617
23618         * modules/maintainer-makefile (Files): Rename.
23619
23620         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
23621         and (the local) Makefile.cfg to maint-cfg.mk.
23622
23623         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
23624         to the latter.
23625
23626         * modules/maintainer-makefile: New module.
23627
23628         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
23629         severaly stripped to make it possible to build it up from scratch
23630         with reliable tests.
23631
23632         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
23633         fixes to permit overriding the default actions when configure and
23634         makefile are not available.
23635
23636 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23637
23638         Sync from coreutils.
23639         * modules/lstat (Depends-on): Don't depend on xalloc.
23640         (License): Change from GPL to LGPL, since this is now simply a
23641         replacement for a libc function.
23642
23643 2006-02-14  Jim Meyering  <jim@meyering.net>
23644
23645         Sync from coreutils.
23646
23647         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
23648         failure on deficient systems, and simplify gnulib lgpl dependencies.
23649         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
23650         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
23651
23652         * lib/xalloc-die.c: Remove unused definition of N_.
23653
23654 2006-02-14  Jim Meyering  <jim@meyering.net>
23655
23656         Sync from coreutils.
23657         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
23658         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
23659         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
23660         double-quote uses of that variable, to accommodate the rare case in
23661         which getmntent is available in none of the libraries checked.  This
23662         happens at least on FreeBSD 5.0.
23663
23664 2006-02-13  Simon Josefsson  <jas@extundo.com>
23665
23666         * gnulib-tool (Usage): Fix --import, from
23667         karl@freefriends.org (Karl Berry).
23668
23669 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23670
23671         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
23672
23673 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
23674
23675         * lib/argp-namefrob.h: Restore changes accidentally lost during the
23676         "autoupdate" on 2005-12-12.
23677
23678 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23679
23680         * modules/closeout (Depends-on): Remove atexit.
23681
23682 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23683
23684         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
23685         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
23686
23687 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23688
23689         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
23690         __EXTENSIONS__ if this causes compilation to fail.  Problem
23691         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
23692         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
23693
23694 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23695
23696         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
23697         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
23698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
23699         All uses changed.
23700
23701 2006-01-26  Simon Josefsson  <jas@extundo.com>
23702
23703         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
23704         prototype is visible on mingw32.
23705
23706         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
23707         for mingw32.
23708
23709         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
23710         mingw32).
23711
23712 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
23713
23714         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
23715         attempt to open for write; this always fails, at least on POSIX
23716         hosts.  This reinstates the 2006-01-09 change, which was
23717         inadvertently removed.
23718
23719 2006-01-26  Bruno Haible  <bruno@clisp.org>
23720
23721         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
23722         Reported by Paul Eggert.
23723
23724 2006-01-26  Bruno Haible  <bruno@clisp.org>
23725             Paul Eggert  <eggert@cs.ucla.edu>
23726
23727         * lib/stdbool_.h (_Bool)
23728         [(! (defined __cplusplus || defined __BEOS__)
23729           && !defined __GNUC__
23730           && !(defined __HP_cc || defined __xlc__
23731                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
23732                || defined __sgi))]:
23733         #define to signed char in these cases too; this simplifies
23734         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
23735         etc., separately) and makes it more conservative.
23736
23737 2006-01-25  Simon Josefsson  <jas@extundo.com>
23738
23739         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
23740         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
23741         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
23742
23743 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23744
23745         * lib/argp-namefrob.h: Bugfix. Remove stray #
23746
23747 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23748
23749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
23750         so that we test the test.
23751         Check for yet another HP-UX cc bug involving *bool |= bool.
23752
23753 2006-01-25  Karl Berry  <karl@gnu.org>
23754
23755         * config/srclist.txt (vasnprintf.c): sync lost.
23756
23757 2006-01-25  Jim Meyering  <jim@meyering.net>
23758
23759         Sync from the stable (b5) branch of coreutils:
23760
23761         * lib/fts.c (fts_children): Don't let close() clobber errno from
23762         failed fchdir().
23763
23764         * lib/fts.c (fts_stat): When following a symlink-to-directory,
23765         don't necessarily interpret stat-fails+lstat-succeeds as indicating
23766         a dangling symlink.  That can also happen at least for ELOOP.
23767         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
23768         FYI, this bug predates the inclusion of fts.c in coreutils.
23769
23770         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
23771         in their own block, so pre-c99 compilers don't object.
23772
23773         Avoid the double-free (first in fts_read, second in fts_close) that
23774         would occur when an `active' directory is made inaccessible (e.g.,
23775         via chmod a-x) during a traversal.
23776         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
23777         before returning.  Reproduce this failure by
23778         mkdir -p a/b; cd a; chmod a-x . b
23779         Reported by Stavros Passas.
23780
23781 2006-01-25  Jim Meyering  <jim@meyering.net>
23782
23783         * lib/fileblocks.c: Remove more useless parentheses.
23784         * lib/readutmp.h: Likewise.
23785
23786 2006-01-25  Bruno Haible  <bruno@clisp.org>
23787
23788         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
23789         warnings.
23790         Reported by Paul Eggert.
23791
23792 2006-01-25  Bruno Haible  <bruno@clisp.org>
23793
23794         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
23795         rid of a trap command. For Solaris sh.
23796         Reported by Mark D. Baushke <mdb@gnu.org>.
23797
23798 2006-01-24  Simon Josefsson  <jas@extundo.com>
23799
23800         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
23801         Bruno.
23802
23803 2006-01-24  Karl Berry  <karl@gnu.org>
23804
23805         * config/srclist.txt (argp-namefrob.h): sync lost.
23806
23807 2006-01-24  Jim Meyering  <jim@meyering.net>
23808
23809         * modules/openat (Files): Add lib/intprops.h.
23810         From Mark D. Baushke.
23811
23812 2006-01-24  Jim Meyering  <jim@meyering.net>
23813
23814         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
23815         Reported by Mark D. Baushke.
23816
23817 2006-01-24  Jim Meyering  <jim@meyering.net>
23818
23819         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
23820
23821 2006-01-24  Bruno Haible  <bruno@clisp.org>
23822
23823         * modules/strnlen (Maintainer): Change from glibc to all.
23824
23825 2006-01-24  Bruno Haible  <bruno@clisp.org>
23826
23827         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
23828         Patch by Paul Eggert.
23829
23830 2006-01-24  Bruno Haible  <bruno@clisp.org>
23831
23832         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
23833         already has it.
23834         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
23835         2005-11-26.
23836
23837         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
23838         'signed char' to avoid problems with the built-in _Bool type.
23839         Reported by Paul Eggert on 2005-11-26.
23840
23841 2006-01-24  Bruno Haible  <bruno@clisp.org>
23842
23843         * gnulib-tool (func_import): Avoid constructing complicated sed
23844         expressions inside backquote.
23845         Report and solution by Mark D. Baushke <mdb@gnu.org>.
23846
23847 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
23848
23849         These changes imported from libc.
23850         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
23851         test and two separate function calls.
23852         * lib/strndup.c (__strndup): Add libc_hidden_def.
23853
23854 2006-01-23  Simon Josefsson  <jas@extundo.com>
23855
23856         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
23857         Remove the test_*_SOURCES variable: automake infers it by default.
23858         * modules/tls-tests: Likewise.
23859
23860 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23861
23862         Work around porting bugs reported by Dieter in
23863         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
23864         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
23865         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
23866         Include "getopt.h" first, to check interface.
23867         (getenv): Declare only if defined HAVE_DECL_GETENV &&
23868         !HAVE_DECL_GETENV.
23869         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
23870         (__strndup): Revert to K&R-style function dfns, the glibc style.
23871         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
23872         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
23873         Include strnlen.h first, to get prototype properly.
23874         (strnlen): Renamed from __strnlen.
23875         Remove weak alias.
23876
23877 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23878
23879         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
23880
23881 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23882
23883         * config/srclist.txt: Adjust to reflect glibc reorganization.
23884         This affects only comments.
23885
23886 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23887
23888          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
23889          Reported by Bruce Korb <bkorb@gnu.org>.
23890
23891 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
23892
23893         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
23894         to pacify gcc -Wswitch-default.
23895
23896 2006-01-22  Bruno Haible  <bruno@clisp.org>
23897
23898         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
23899         temporary buffer for sprintf, take into account the precision also
23900         for 'd', 'i', 'u', 'o', 'x', 'X'.
23901
23902 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
23903
23904         * modules/argp-tests: New module
23905         * tests/test-argp.c: New file
23906         * tests/test-argp-2.sh: New file
23907
23908 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
23909
23910         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
23911         (__argp_base_name): Removed
23912         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
23913         typo.
23914         (__argp_base_name): Provide macro definition or extern declaration
23915         depending on the configuration
23916
23917 2006-01-20  Simon Josefsson  <jas@extundo.com>
23918
23919         * modules/inet_ntop (Depends-on): Depend on sys_socket.
23920
23921 2006-01-20  Simon Josefsson  <jas@extundo.com>
23922
23923         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
23924
23925 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23926
23927         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
23928         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
23929         Suggested by Bruno Haible.
23930
23931 2006-01-20  Karl Berry  <karl@gnu.org>
23932
23933         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
23934         until changes propagate, I guess.
23935
23936 2006-01-19  Simon Josefsson  <jas@extundo.com>
23937
23938         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
23939
23940 2006-01-19  Simon Josefsson  <jas@extundo.com>
23941
23942         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
23943
23944 2006-01-19  Simon Josefsson  <jas@extundo.com>
23945
23946         * gnulib-tool: Set check_PROGRAMS.
23947
23948         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
23949         modules/des-tests, modules/gc-arcfour-tests,
23950         modules/gc-arctwo-tests, modules/gc-des-tests,
23951         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
23952         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
23953         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
23954         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
23955         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
23956         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
23957         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
23958         test_*_SOURCES.
23959
23960 2006-01-18  Simon Josefsson  <jas@extundo.com>
23961
23962         * modules/socklen (Depends-on): Depend on sys_socket.
23963
23964 2006-01-18  Simon Josefsson  <jas@extundo.com>
23965
23966         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
23967         modules/des-tests, modules/gc-arcfour-tests,
23968         modules/gc-arctwo-tests, modules/gc-des-tests,
23969         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
23970         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
23971         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
23972         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
23973         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
23974         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
23975         $(EXEEXT) to automake TESTS variable, for mingw32.
23976
23977 2006-01-17  Simon Josefsson  <jas@extundo.com>
23978
23979         * modules/socklen (Include): Need sys/socket.h.
23980
23981 2006-01-17  Bruno Haible  <bruno@clisp.org>
23982
23983         * modules/ssize_t (Include): Add <sys/types.h>.
23984
23985 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
23986
23987         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
23988         it's not portable and it doesn't work with cross-compiles.
23989         Problem reported by Bruno Haible.  Fix missing-$ typo in
23990         'test "gl_cv_ignore_unused_libraries" ...' that prevented
23991         -zignore from being used with Sun's C compiler.
23992
23993 2006-01-12  Simon Josefsson  <jas@extundo.com>
23994
23995         * lib/base64.c: Fix warning, reported by Bruno Haible
23996         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
23997
23998 2006-01-12  Bruno Haible  <bruno@clisp.org>
23999
24000         * modules/ldd: New file.
24001         * build-aux/ldd.sh.in: New file.
24002         * MODULES.html.sh (Support for building libraries and executables): Add
24003         ldd.
24004
24005 2006-01-12  Bruno Haible  <bruno@clisp.org>
24006
24007         * m4/ldd.m4: New file.
24008
24009 2006-01-12  Bruno Haible  <bruno@clisp.org>
24010
24011         * gnulib-tool (func_import, func_create_testdir): Don't go into an
24012         endless loop while replacing $auxdir with build-aux.
24013
24014 2006-01-11  Simon Josefsson  <jas@extundo.com>
24015
24016         * lib/stdint_.h (SIZE_MAX): Add missing (.
24017
24018 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24019
24020         Sync from coreutils.
24021         * lib/md5.c: Fix commentary typos.
24022         (alignof, UNALIGNED_P): No need for a GCC-specific version.
24023         * lib/md5.h (__attribute__): Remove; unused.
24024         * lib/sha1.c: Fix commentary to match md5 better.
24025         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
24026         so that we don't need to worry about alignment.  All uses changed.
24027         This merges the 2005-10-28 md5 change into sha1.
24028
24029 2006-01-11  Jim Meyering  <jim@meyering.net>
24030
24031         Sync from coreutils.
24032         * lib/md5.c (OP): Fix spacing.
24033
24034 2006-01-11  Bruno Haible  <bruno@clisp.org>
24035
24036         Ensure automatic ordering between gl_LOCK and gl_ARGP.
24037         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
24038         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
24039
24040 2006-01-11  Bruno Haible  <bruno@clisp.org>
24041
24042         Ensure automatic ordering between gl_LOCK and gl_ARGP.
24043         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
24044         the "early" section as well.
24045
24046 2006-01-11  Bruno Haible  <bruno@clisp.org>
24047
24048         Avoid "ar: no archive members specified" error on MacOS X.
24049         * gnulib-tool (func_modules_add_dummy): New function.
24050         (func_import, func_create_testdir): Invoke it.
24051
24052 2006-01-11  Bruno Haible  <bruno@clisp.org>
24053
24054         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
24055         with $auxdir in AC_CONFIG_FILES statements.
24056
24057 2006-01-11  Bruno Haible  <bruno@clisp.org>
24058
24059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24060         Initialize also noinst_HEADERS to empty.
24061
24062 2006-01-11  Bruno Haible  <bruno@clisp.org>
24063
24064         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
24065         variables.
24066         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
24067         autoreconf.
24068
24069 2006-01-11  Bruno Haible  <bruno@clisp.org>
24070
24071         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
24072         overridable by the user.
24073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24074
24075 2006-01-10  Simon Josefsson  <jas@extundo.com>
24076
24077         * modules/sys_socket: New file.
24078
24079 2006-01-10  Simon Josefsson  <jas@extundo.com>
24080
24081         * m4/sys_socket_h.m4: New file.
24082
24083 2006-01-10  Simon Josefsson  <jas@extundo.com>
24084
24085         * lib/socket_.h: New file.
24086
24087 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24088
24089         * modules/readutmp (Maintainer): Add myself.
24090
24091 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24092
24093         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
24094         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
24095         People who are still concerned with buggy memcmp implementations
24096         can invoke gl_FUNC_MEMCMP themselves.
24097
24098 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24099
24100         * lib/regex_internal.h (BITSET_WORD_BITS):
24101         Work around a bug in 64-bit PGC (before version 6.1-2), where the
24102         preprocessor mishandles large unsigned values as if they were signed.
24103         Problem reported by Claudio Fontana in
24104         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
24105
24106 2006-01-10  Jim Meyering  <jim@meyering.net>
24107
24108         Avoid the double-free (first in fts_read, second in fts_close) that
24109         would occur when an `active' directory is made inaccessible (e.g.,
24110         via chmod a-x) during a traversal.
24111         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24112         before returning.  Reproduce this failure by
24113         mkdir -p a/b; cd a; chmod a-x . b
24114         Reported by Stavros Passas.
24115
24116         Sync from coreutils.
24117         * lib/sha1.c: Tweak grammar in a comment.
24118
24119 2006-01-10  Jim Meyering  <jim@meyering.net>
24120
24121         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
24122         Patch by Joerg Sonnenberger.
24123
24124 2006-01-10  Bruno Haible  <bruno@clisp.org>
24125
24126         * modules/readutmp: Depend on module free.
24127         * modules/strtok_r: Depend on module restrict.
24128
24129 2006-01-10  Bruno Haible  <bruno@clisp.org>
24130
24131         * modules/gettext (configure.ac): Add an invocation of
24132         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
24133
24134 2006-01-10  Bruno Haible  <bruno@clisp.org>
24135
24136         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
24137         Reported by Werner Lemberg <wl@gnu.org>.
24138
24139 2006-01-10  Bruno Haible  <bruno@clisp.org>
24140
24141         * lib/localcharset.c: Update from GNU gettext.
24142
24143 2006-01-10  Bruno Haible  <bruno@clisp.org>
24144
24145         * lib/argp.h (__const): Remove macro. Use const instead.
24146         * lib/argp-fmtstream.h (__const): Likewise.
24147         * lib/glob_.h (__const): Remove macro.
24148         * lib/glob-libc.h: Use const instead of __const.
24149
24150 2006-01-10  Bruno Haible  <bruno@clisp.org>
24151
24152         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
24153         variable.
24154         Needed to avoid an automake error regarding the 'gettext' module.
24155
24156 2006-01-09  Simon Josefsson  <jas@extundo.com>
24157
24158         * modules/inet_ntop (Depends-on): Add restrict.
24159
24160 2006-01-09  Simon Josefsson  <jas@extundo.com>
24161
24162         * modules/gc-rijndael-tests (License): Put under LGPL.
24163
24164         * modules/gc-des-tests (License): Likewise.
24165
24166         * modules/gc-arcfour-tests (License): Likewise.
24167
24168         * modules/gc-arctwo-tests (License): Likewise.
24169
24170         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
24171
24172         * modules/gc-hmac-sha1-tests (Files): Likewise.
24173
24174         * modules/gc-hmac-md5-tests (License): Likewise.
24175
24176         * modules/gc-sha1-tests (License): Likewise.
24177
24178         * modules/gc-md5-tests (License): Likewise.
24179
24180         * modules/gc-md4-tests (License): Likewise.
24181
24182         * modules/gc-md2-tests (License): Likewise.
24183
24184         * modules/gc-tests (License): Likewise.
24185
24186         * modules/des-tests (License): Likewise.
24187
24188         * modules/md4-tests (License): Likewise.
24189
24190         * modules/md2-tests (License): Likewise.
24191
24192 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24193
24194         Sync from coreutils:
24195
24196         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
24197         * modules/lib-ignore: New file.
24198         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
24199         chdir-safer.m4, lchmod.m4.
24200         * modules/openat: Add mkdirat.c, openat-priv.h.
24201
24202 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24203
24204         Sync from coreutils.
24205         * m4/lib-ignore.m4: New file.
24206         * m4/lchmod.m4: New file.
24207
24208 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24209
24210         Sync from coreutils.
24211         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
24212         for write access: POSIX says that must fail.
24213         * lib/fts.c (diropen): Likewise.
24214         * lib/save-cwd.c (save_cwd): Likewise.
24215         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
24216         well, for minor improvements on hosts that lack O_DIRECTORY.
24217         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
24218         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
24219         Fall back on chown if open failed with EACCES.
24220
24221         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
24222         Report an error at compile-time if only a 1-second nominal clock
24223         resolution is found.
24224
24225         * lib/lchmod.h: New file.
24226         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
24227         (make_dir_parents): Use lchown rather than chown, and
24228         lchmod rather than chmod.
24229
24230         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
24231         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
24232         "proc" reported by n0dalus.
24233
24234         * lib/mountlist.c: Include <limits.h>.
24235         (dev_from_mount_options)
24236         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
24237         New function.  It no longer assumes "dev=" has the System V meaning
24238         on Linux (since it doesn't).  It also parses "dev=" more carefully.
24239         (read_file_system_list)
24240         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
24241         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
24242         dev= in that case.
24243
24244         * lib/posixtm.h (PDS_PRE_2000): New macro.
24245         * lib/posixtm.c (year): Arg is now syntax_bits rather than
24246         allow_century.  All usages changed.  Reject dates outside the range
24247         1969-1999 if PDS_PRE_2000 is used.
24248
24249 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24250
24251         Sync from coreutils.
24252         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
24253         (Time of day items): Mention the possibility of leap seconds.
24254         Problem reported by Dr. David Alan Gilbert.
24255
24256 2006-01-09  Jim Meyering  <jim@meyering.net>
24257
24258         Sync from coreutils.
24259
24260         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
24261
24262         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
24263
24264         * lib/modechange.c (mode_compile): Reject an invalid mode string
24265         that starts with an octal digit.  From Andreas Gruenbacher.
24266
24267         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
24268         and dup to open_safer and dup_safer, respectively.
24269         (openat_permissive): Fix typo in comment.
24270
24271         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
24272         "gettext.h"; either no longer needed or are guaranteed by openat.h.
24273         (_): Remove; no longer needed.
24274         (openat): Renamed from rpl_openat; no need for rpl_openat
24275         since openat.h renames openat for us.
24276         Replace most of the body with a call to openat_permissive,
24277         to avoid duplicate code.
24278         Port to (probably hypothetical) environments were mode_t is
24279         wider than int.
24280         (openat_permissive): Require mode arg, so that we can check
24281         types better.  Put it just after flags.  Change cwd failure
24282         indicator from pointer-to-bool to pointer-to-errno-value.
24283         All callers changed.
24284         Invoke openat_save_fail and/or openat_restore_fail if
24285         cwd_errno is null, so that openat can call us.
24286         (openat_permissive, fdopendir, fstatat, unlinkat):
24287         Simplify errno handling to avoid some duplicate code,
24288         as it's OK to set errno on success.
24289         * lib/openat.h: Revamp code so that function macros depend on
24290         __OPENAT_PREFIX only, not also on AT_FDCWD.
24291         (openat_ro): Remove.  Caller changed to use openat_permissive.
24292         (openat_permissive): Now a macro, if not a function.
24293         (openat_restore_fail, openat_save_fail): Now always functions,
24294         since mkdirat needs them even if __OPENAT_PREFIX is defined.
24295
24296         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
24297         and openat.c.
24298         * lib/mkdirat.c: Include openat-priv.h.
24299         Remove definitions of macros defined therein.
24300         * lib/openat.c: Likewise.
24301
24302         * lib/mkdirat.c (mkdirat): New file and function.
24303         * lib/openat.h (mkdirat): Declare.
24304
24305         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
24306
24307         * lib/openat.h (openat_permissive): Declare.
24308         (openat_ro): Define.
24309
24310         * lib/openat.c (EXPECTED_ERRNO): New macro.
24311         (openat_permissive): New function -- used in remove.c rewrite.
24312         (all functions): Set errno just before returning, only if there
24313         was an actual failure.
24314         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
24315
24316         Emulate openat-family functions using Linux's procfs, if possible.
24317         Idea and some code based on Ulrich Drepper's glibc changes.
24318
24319         * lib/openat.c: (BUILD_PROC_NAME): New macro.
24320         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
24321         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
24322         before falling back on save_cwd and restore_cwd.
24323         (fdopendir, fstatat, unlinkat): Likewise.
24324
24325         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
24326         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
24327
24328         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
24329         as second argument to va_arg.  Otherwise, some versions of gcc
24330         warn that `if this code is reached, the program will abort'.
24331
24332 2006-01-09  Jim Meyering  <jim@meyering.net>
24333
24334         Sync from coreutils.
24335         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
24336         Require openat-priv.h.
24337
24338 2006-01-09  Bruno Haible  <bruno@clisp.org>
24339
24340         * modules/strnlen (Include): Use strnlen.h.
24341
24342 2006-01-09  Bruno Haible  <bruno@clisp.org>
24343
24344         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
24345
24346 2006-01-09  Bruno Haible  <bruno@clisp.org>
24347
24348         * lib/sysexit_.h (EX_OK): New macro.
24349         Suggested by Martin Lambers <marlam@marlam.de>.
24350
24351 2006-01-09  Bruno Haible  <bruno@clisp.org>
24352
24353         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
24354         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
24355
24356 2006-01-09  Bruno Haible  <bruno@clisp.org>
24357
24358         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
24359         numbers.
24360
24361 2006-01-09  Bruno Haible  <bruno@clisp.org>
24362
24363         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
24364         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
24365         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
24366         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
24367
24368 2006-01-09  Bruno Haible  <bruno@clisp.org>
24369
24370         * build-aux/javacomp.sh.in: New file, moved from lib/.
24371         * modules/javacomp-script (Files): Update.
24372         (configure.ac): Add AC_CONFIG_FILES invocation.
24373         (EXTRA_DIST): Remove variable.
24374
24375         * build-aux/javaexec.sh.in: New file, moved from lib/.
24376         * modules/javaexec (Files): Update.
24377         (configure.ac): Add AC_CONFIG_FILES invocation.
24378         (EXTRA_DIST): Remove javaexec.sh.in.
24379
24380         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
24381         * modules/csharpcomp-script (Files): Update.
24382         (configure.ac): Add AC_CONFIG_FILES invocation.
24383         (EXTRA_DIST): Remove variable.
24384
24385         * build-aux/csharpexec.sh.in: New file, moved from lib/.
24386         * modules/csharpexec (Files): Update.
24387         (configure.ac): Add AC_CONFIG_FILES invocation.
24388         (EXTRA_DIST): Remove csharpexec.sh.in.
24389
24390 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24391
24392         Sync from coreutils.
24393
24394         Add POSIX ACL support
24395         * lib/acl.h (copy_acl, set_acl): Add declarations.
24396         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
24397         systems other than Linux.
24398         (chmod_or_fchmod): New function: use fchmod when possible,
24399         and chmod otherwise.
24400         (file_has_acl): Add a POSIX ACL implementation, with a
24401         Linux-specific subcase.
24402         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
24403         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
24404         acls are unsupported.
24405         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
24406         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
24407         are unsupported.
24408
24409 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24410
24411         Sync from coreutils.
24412         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
24413
24414 2006-01-07  Bruno Haible  <bruno@clisp.org>
24415
24416         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
24417         gl_EARLY.
24418
24419 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24420
24421         * lib/strftime.c (tzname): Don't declare if it is already #defined.
24422         Problem reported for Mingw by Mark Junker.
24423
24424 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24425
24426         * README: Gnulib normally doesn't generate a tarball.
24427
24428 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
24429
24430         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
24431         long int, not int, for nanosecond counts, so that people who are
24432         used to POSIX struct timespec won't be surprised.  Reported by Jim
24433         Meyering.
24434
24435 2005-12-28  Bruno Haible  <bruno@clisp.org>
24436
24437         * build-aux/config.rpath: Update from GNU gettext.
24438
24439 2005-12-16  Jim Meyering  <jim@meyering.net>
24440
24441         * modules/fprintftime: New module.
24442         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
24443
24444 2005-12-16  Jim Meyering  <jim@meyering.net>
24445
24446         * m4/fprintftime.m4: New file.
24447
24448 2005-12-16  Jim Meyering  <jim@meyering.net>
24449
24450         * lib/fprintftime.c, lib/fprintftime.h: New files.
24451
24452 2005-12-15  Simon Josefsson  <jas@extundo.com>
24453
24454         * modules/socklen (configure.ac): Fix M4 macro name, to align with
24455         new m4/socklen.m4.
24456
24457 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24458
24459         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
24460         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
24461
24462 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24463
24464         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
24465         * lib/argp-help.c (fill_in_uparams): Check if the constructed
24466         struct uparams is valid. Fall back to the default values if it is
24467         not.
24468
24469 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24470
24471         * modules/argp (Files): Add argp-pin.c
24472         (Depends-on): dirname
24473         (lib_SOURCES): Add argp-pin.c
24474
24475 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24476
24477         * m4/argp.m4:  Check if program_invocation_name and
24478         program_invocation_short_name are declared and define appropriate
24479         macros if they are not.
24480
24481 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24482
24483         * lib/argp-help.c (__argp_base_name): New function
24484         (__argp_short_program_name): Rewrite using __argp_base_name
24485         * lib/argp-namefrob.h: Define program_invocation_name and
24486         program_invocation_short_name if requested
24487         (__argp_base_name): Add prototype
24488         * lib/argp-parse.c (argp_def): Use gettext wrappers
24489         (argp_default_parser): Use __argp_base_name
24490         * lib/argp-pin.c: New file. Defines program_invocation_name and
24491         program_invocation_short_name on systems that lack them.
24492
24493 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24494
24495         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
24496         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24497         porting problem reported by Georg Schwarz in
24498         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24499
24500 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24501
24502         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
24503         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24504         porting problem reported by Georg Schwarz in
24505         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24506
24507 2005-12-05  Bruno Haible  <bruno@clisp.org>
24508
24509         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
24510         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
24511         Reported by Mark Junker <mjscod@gmx.de>.
24512
24513 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24514
24515         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
24516         Use implementation from Albert Chin, with some
24517         comments/corrections by Stepan Kasal and myself.
24518
24519 2005-12-02  Bruno Haible  <bruno@clisp.org>
24520
24521         * gnulib-tool (func_import): Accept GPLed build tool modules when
24522         --lgpl is given.
24523         * modules/csharpcomp-script: New file.
24524         * modules/csharpcomp: Depend on it.
24525         * modules/javacomp-script: New file.
24526         * modules/javacomp: Depend on it.
24527         Suggested by Simon Josefsson.
24528
24529 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24530
24531         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
24532         statement, to work around an HP-UX 10.20 compiler bug reported by
24533         Peter O'Gorman.
24534
24535 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24536
24537         * modules/savedir (Depends-on): Add openat.
24538
24539 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24540
24541         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
24542         (uintmax_t) [defined uintmax_t]: Do not declare.
24543         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
24544         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
24545         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
24546         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
24547         sake of portability to weird hosts that C allows (though we don't
24548         know of any practical examples).
24549
24550         * lib/savedir.h (fdsavedir): New decl.
24551         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
24552         contains most of the former guts of savedir.
24553         (savedir): Use savedirstream.
24554         Include "openat.h".
24555
24556 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24557
24558         * modules/obstack (Files): Add m4/ulonglong.m4.
24559         Problem reported by Davide Angelocola.
24560
24561 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24562
24563         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
24564         coreutils no longer futzes with rounding modes.
24565
24566 2005-11-14  Jim Meyering  <jim@meyering.net>
24567
24568         * lib/mkstemp-safer.c: Include <config.h>, required for possible
24569         replacement of mkstemp.
24570
24571 2005-11-10  Simon Josefsson  <jas@extundo.com>
24572
24573         * lib/readline.c: Remove EOL.
24574
24575 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24576
24577         * modules/gethrxtime (Depends-on): Add gettime.
24578
24579 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24580
24581         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
24582         or gettimeofday; no longer needed.
24583
24584 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24585
24586         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
24587         time business.
24588         (gethrxtime) [! (HAVE_NANOUPTIME
24589         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
24590         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
24591         our own approximation.
24592
24593 2005-11-08  Eric Blake  <ebb9@byu.net>
24594
24595         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24596
24597 2005-11-08  Eric Blake  <ebb9@byu.net>
24598
24599         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24600
24601 2005-11-04  Bruno Haible  <bruno@clisp.org>
24602
24603         * gnulib-tool: Implement --update mode.
24604
24605 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24606
24607         Fix porting problem reported by Theodoros V. Kalamatianos.
24608         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
24609         Don't assume that futimes failing means we must fail.
24610
24611 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24612
24613         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
24614         variables to suggest the intended function of the PATH_MAX check.
24615
24616 2005-10-30  Kean Johnston  <jkj@sco.com>
24617
24618         Trivial changes to support SCO systems.
24619         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
24620         as PATH_MAX.
24621         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
24622         where __ptr is null when no I/O is pending.
24623
24624 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
24625
24626         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
24627         leave errno alone.  Problem reported by Dmitry V. Levin.
24628
24629 2005-10-28  Simon Josefsson  <jas@extundo.com>
24630
24631         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
24632         Test more.
24633
24634         * tests/test-gc-md2.c, tests/test-md2.c: New files.
24635
24636         * modules/md2, modules/md2-tests: New files.
24637
24638 2005-10-28  Simon Josefsson  <jas@extundo.com>
24639
24640         * m4/inet_ntop.m4: More tests.
24641
24642         * m4/gc-md2.m4, md2.m4: New file.
24643
24644 2005-10-28  Simon Josefsson  <jas@extundo.com>
24645
24646         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
24647         "restrict" keywords, as per POSIX.  Protect the function
24648         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
24649         Don't use K&R prototypes.  Check the sprintf return values.
24650         Re-define EAFNOSUPPORT if not present.  Indent.
24651
24652         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
24653         suggested by Bruno Haible <bruno@clisp.org>.
24654
24655         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
24656
24657         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
24658
24659         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
24660         libgcrypt).
24661
24662         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
24663
24664         * lib/md2.h, lib/md2.c: New files.
24665
24666 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
24667
24668         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
24669         errno alone.  Problem reported by Frederic Jolliton.
24670
24671 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
24672
24673         * modules/verify (License): Change from GPL to LGPL.  This is a
24674         tiny module and there are apparently near-equivalents that are
24675         under the BSD license.
24676
24677 2005-10-24  Simon Josefsson  <jas@extundo.com>
24678
24679         * modules/sha1: Relicense to LGPL.
24680
24681 2005-10-24  Simon Josefsson  <jas@extundo.com>
24682
24683         * lib/md4.h: Shrink buffer size, now that we changed the type.
24684
24685 2005-10-23  Simon Josefsson  <jas@extundo.com>
24686
24687         * gnulib-tool (func_import): Fix --tests-base.
24688
24689 2005-10-22  Simon Josefsson  <jas@extundo.com>
24690
24691         * modules/arcfour (Depends-on): Need stdint.
24692
24693 2005-10-22  Simon Josefsson  <jas@extundo.com>
24694
24695         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
24696         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
24697
24698 2005-10-22  Simon Josefsson  <jas@extundo.com>
24699
24700         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
24701         suggested by Bruno Haible <bruno@clisp.org>.
24702
24703 2005-10-22  Simon Josefsson  <jas@extundo.com>
24704
24705         * lib/crc.h: Include stddef.h, for size_t.
24706
24707 2005-10-22  Simon Josefsson  <jas@extundo.com>
24708
24709         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
24710         arcfour_context struct (simplify test vector testing in GNU
24711         Shishi).
24712
24713 2005-10-21  Simon Josefsson  <jas@extundo.com>
24714
24715         * modules/des, modules/des-tests: New files.
24716
24717         * modules/gc-des, modules/gc-des-tests: New files.
24718
24719         * tests/test-des.c, tests/test-gc-des.c: New file.
24720
24721 2005-10-21  Simon Josefsson  <jas@extundo.com>
24722
24723         * modules/arctwo, modules/arctwo-tests: New files.
24724
24725         * tests/test-arctwo.c: New file.
24726
24727         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
24728
24729         * tests/test-gc-arctwo.c: New file.
24730
24731 2005-10-21  Simon Josefsson  <jas@extundo.com>
24732
24733         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
24734         Bruno Haible <bruno@clisp.org>.
24735
24736         * m4/gc-des.m4: New file.
24737
24738 2005-10-21  Simon Josefsson  <jas@extundo.com>
24739
24740         * m4/arctwo.m4: New file.
24741
24742         * m4/gc-arctwo.m4: New file.
24743
24744 2005-10-21  Simon Josefsson  <jas@extundo.com>
24745
24746         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
24747         block.
24748
24749 2005-10-21  Simon Josefsson  <jas@extundo.com>
24750
24751         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
24752         <bruno@clisp.org>.
24753
24754         * lib/hmac-sha1.c (hmac_sha1): Likewise.
24755
24756         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
24757         Bruno Haible <bruno@clisp.org>.
24758
24759         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
24760         <bruno@clisp.org>.
24761
24762 2005-10-21  Simon Josefsson  <jas@extundo.com>
24763
24764         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
24765
24766 2005-10-21  Simon Josefsson  <jas@extundo.com>
24767
24768         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
24769
24770 2005-10-21  Simon Josefsson  <jas@extundo.com>
24771
24772         * lib/des.h, lib/des.c: New files.
24773
24774         * lib/gc-gnulib.c: Support DES.c
24775
24776 2005-10-21  Simon Josefsson  <jas@extundo.com>
24777
24778         * lib/arctwo.h, lib/arctwo.c: New files.
24779
24780         * lib/gc-gnulib.c: Support ARCTWO.
24781
24782 2005-10-21  Simon Josefsson  <jas@extundo.com>
24783
24784         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
24785         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24786
24787 2005-10-21  Simon Josefsson  <jas@extundo.com>
24788
24789         * gnulib-tool (func_import, func_create_testdir): Define automake
24790         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
24791         Makefile.am snippet),
24792         suggested by Bruno Haible <bruno@clisp.org>.
24793
24794         * modules/gc (Makefile.am): Use it.
24795
24796 2005-10-21  Bruno Haible  <bruno@clisp.org>
24797
24798         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
24799         patch.
24800
24801 2005-10-19  Simon Josefsson  <jas@extundo.com>
24802
24803         * tests/test-gc-rijndael.c: New file.
24804
24805         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
24806
24807 2005-10-19  Simon Josefsson  <jas@extundo.com>
24808
24809         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
24810         interface too.
24811
24812 2005-10-19  Simon Josefsson  <jas@extundo.com>
24813
24814         * tests/test-gc-arcfour.c: New file.
24815
24816         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
24817
24818 2005-10-19  Simon Josefsson  <jas@extundo.com>
24819
24820         * modules/gc-md4, modules/gc-md4-tests: New file.
24821
24822         * tests/test-gc-md4.c: New file.
24823
24824 2005-10-19  Simon Josefsson  <jas@extundo.com>
24825
24826         * m4/gc-md4.m4: New file.
24827
24828 2005-10-19  Simon Josefsson  <jas@extundo.com>
24829
24830         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
24831         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
24832         <kasal@ucw.cz>.
24833
24834 2005-10-19  Simon Josefsson  <jas@extundo.com>
24835
24836         * m4/gc-arcfour.m4: New file.
24837
24838         * m4/gc-rijndael.m4: New file.
24839
24840 2005-10-19  Simon Josefsson  <jas@extundo.com>
24841
24842         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
24843
24844 2005-10-19  Simon Josefsson  <jas@extundo.com>
24845
24846         * lib/gc-gnulib.c: Support ARCFOUR.
24847
24848 2005-10-19  Simon Josefsson  <jas@extundo.com>
24849
24850         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
24851         support.
24852
24853         * lib/gc.h: Add ECB enum type.
24854
24855         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
24856
24857 2005-10-18  Simon Josefsson  <jas@extundo.com>
24858
24859         * tests/test-md5.c: New file.
24860
24861         * modules/md5-tests: New file.
24862
24863 2005-10-18  Simon Josefsson  <jas@extundo.com>
24864
24865         * tests/test-md4.c: New file.
24866
24867         * modules/md4, modules/md4-tests: New files.
24868
24869 2005-10-18  Simon Josefsson  <jas@extundo.com>
24870
24871         * m4/md4.m4: New file.
24872
24873 2005-10-18  Simon Josefsson  <jas@extundo.com>
24874
24875         * lib/md4.h, lib/md4.c: New files, based on md5.?.
24876
24877 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
24878
24879         * gnulib-tool (func_create_testdir): Omit the second check whether
24880         BUILT_SOURCES in nonempty.
24881
24882 2005-10-17  Simon Josefsson  <jas@extundo.com>
24883
24884         * tests/test-rijndael.c: New file.
24885
24886 2005-10-17  Simon Josefsson  <jas@extundo.com>
24887
24888         * modules/sha1: Depend on stdint instead of md5.
24889
24890         * modules/md5: Depend on stdint, remove uint32_t.
24891
24892 2005-10-17  Simon Josefsson  <jas@extundo.com>
24893
24894         * modules/gc-sha1-tests: New file.
24895
24896         * tests/test-gc-sha1.c: New file.
24897
24898 2005-10-17  Simon Josefsson  <jas@extundo.com>
24899
24900         * m4/md5.m4: Remove call to uint32_t.m4.
24901
24902 2005-10-17  Simon Josefsson  <jas@extundo.com>
24903
24904         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
24905
24906         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
24907         md5.h.
24908
24909         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
24910
24911         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
24912
24913 2005-10-17  Simon Josefsson  <jas@extundo.com>
24914
24915         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
24916
24917 2005-10-17  Simon Josefsson  <jas@extundo.com>
24918
24919         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
24920
24921 2005-10-17  Simon Josefsson  <jas@extundo.com>
24922
24923         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
24924
24925         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
24926
24927 2005-10-17  Bruno Haible  <bruno@clisp.org>
24928
24929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
24930         that it can also be used in a test.
24931
24932 2005-10-16  Bruno Haible  <bruno@clisp.org>
24933
24934         * gnulib-tool (func_emit_tests_Makefile_am): Also define
24935         TESTS_ENVIRONMENT, so that individual tests can augment it.
24936
24937         * gnulib-tool (func_create_testdir): Use an intermediate target for
24938         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
24939         macros, like $(ALLOCA_H), which cannot be passed through the command
24940         line.
24941
24942 2005-10-15  Simon Josefsson  <jas@extundo.com>
24943
24944         * modules/rijndael-tests: New file.
24945
24946         * modules/rijndael: New file.
24947
24948 2005-10-15  Simon Josefsson  <jas@extundo.com>
24949
24950         * m4/rijndael.m4: New file.
24951
24952 2005-10-15  Simon Josefsson  <jas@extundo.com>
24953
24954         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
24955
24956         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
24957
24958 2005-10-14  Simon Josefsson  <jas@extundo.com>
24959
24960         * tests/test-arcfour.c: New file.
24961
24962         * modules/arcfour, modules/arcfour-tests: New files.
24963
24964 2005-10-14  Simon Josefsson  <jas@extundo.com>
24965
24966         * m4/arcfour.m4: New file.
24967
24968 2005-10-14  Simon Josefsson  <jas@extundo.com>
24969
24970         * lib/arcfour.h, lib/arcfour.c: New files.
24971
24972 2005-10-14  Roland McGrath  <roland@redhat.com>
24973
24974         Import from libc.  [BZ #1331]
24975         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
24976         macro argument.
24977         Reported by Matej Vela <vela@debian.org>.
24978
24979 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
24980
24981         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
24982         include <wchar.h>; no longer needed.
24983
24984 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
24985
24986         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
24987
24988 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
24989         and  Ulrich Drepper  <drepper@redhat.com>
24990
24991         Import from libc.
24992         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
24993         instead of inline stream orientation test and two separate
24994         function calls.  Pay no attention to USE_IN_LIBIO.
24995
24996 2005-10-13  Simon Josefsson  <jas@extundo.com>
24997
24998         * modules/gc-hmac-md5-tests: New file.
24999
25000         * tests/test-gc-hmac-sha1.c: New file.
25001
25002         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
25003
25004         * modules/gc-hmac-md5-tests: New file.
25005
25006         * tests/test-gc-md5.c: New file.
25007
25008         * modules/gc-md5-tests: New file.
25009
25010 2005-10-13  Simon Josefsson  <jas@extundo.com>
25011
25012         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
25013         Move memory allocation outside of loop.
25014
25015 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25016
25017         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
25018         intermediate directory is in a read-only file system.  Problem
25019         reported by Eric Blake.
25020
25021 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
25022
25023         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
25024
25025 2005-10-12  Simon Josefsson  <jas@extundo.com>
25026
25027         * tests/test-hmac-sha1.c: New file.
25028
25029         * modules/hmac-sha1-tests: New file.
25030
25031         * modules/hmac-sha1: New file.
25032
25033 2005-10-12  Simon Josefsson  <jas@extundo.com>
25034
25035         * modules/gc-sha1: New file.
25036
25037 2005-10-12  Simon Josefsson  <jas@extundo.com>
25038
25039         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
25040
25041         * tests/test-gc-pbkdf2-sha1.c: New file.
25042
25043 2005-10-12  Simon Josefsson  <jas@extundo.com>
25044
25045         * modules/gc-md5, modules/gc-hmac-md5: New files.
25046
25047         * modules/gc (Files): Remove md5, memxor and hmac files.
25048
25049 2005-10-12  Simon Josefsson  <jas@extundo.com>
25050
25051         * m4/gc-pbkdf2-sha1.m4: New file.
25052
25053         * m4/gc-hmac-sha1.m4: New file.
25054
25055         * m4/gc-sha1: New file.
25056
25057         * m4/hmac-sha1.m4: New file.
25058
25059 2005-10-12  Simon Josefsson  <jas@extundo.com>
25060
25061         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
25062
25063         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
25064
25065 2005-10-12  Simon Josefsson  <jas@extundo.com>
25066
25067         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
25068         suggested by Bruno Haible <bruno@clisp.org>.
25069
25070 2005-10-12  Simon Josefsson  <jas@extundo.com>
25071
25072         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
25073
25074 2005-10-12  Simon Josefsson  <jas@extundo.com>
25075
25076         * lib/gc-pbkdf2-sha1.c: New file.
25077
25078         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
25079
25080 2005-10-12  Simon Josefsson  <jas@extundo.com>
25081
25082         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
25083
25084         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
25085
25086 2005-10-12  Simon Josefsson  <jas@extundo.com>
25087
25088         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
25089         GC_USE_HMAC_MD5, respectively.
25090
25091         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
25092         (gc_md5): Fix typo.
25093
25094         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
25095
25096         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
25097
25098         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
25099
25100 2005-10-12  Bruno Haible  <bruno@clisp.org>
25101
25102         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
25103         Reported by Stepan Kasal <kasal@ucw.cz>.
25104
25105 2005-10-11  Simon Josefsson  <jas@extundo.com>
25106
25107         * tests/test-crc.c: New file.
25108
25109         * modules/crc, modules/crc-tests: New files.
25110
25111 2005-10-11  Simon Josefsson  <jas@extundo.com>
25112
25113         * m4/crc.m4: New file.
25114
25115 2005-10-11  Simon Josefsson  <jas@extundo.com>
25116
25117         * lib/gc.h: Add gc_hash and gc_hash_buffer.
25118
25119         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
25120
25121         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
25122
25123 2005-10-11  Simon Josefsson  <jas@extundo.com>
25124
25125         * lib/crc.h, lib/crc.c: New files.
25126
25127         * lib/gc.h (gc_hash_buffer): Add doc.
25128
25129 2005-10-11  Bruno Haible  <bruno@clisp.org>
25130
25131         * modules/c-strcasestr: New file.
25132         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
25133
25134 2005-10-11  Bruno Haible  <bruno@clisp.org>
25135
25136         * modules/c-strcase: New file.
25137         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
25138
25139 2005-10-11  Bruno Haible  <bruno@clisp.org>
25140
25141         * lib/strcasecmp.c: Include limits.h.
25142         (strcasecmp): Avoid integer overflow on exotic platforms.
25143         * lib/strncasecmp.c: Include limits.h.
25144         (strncasecmp): Avoid integer overflow on exotic platforms.
25145         Reported by Paul Eggert.
25146
25147 2005-10-11  Bruno Haible  <bruno@clisp.org>
25148
25149         * lib/c-strcasestr.h: New file, from GNU gettext.
25150         * lib/c-strcasestr.c: New file, from GNU gettext.
25151
25152 2005-10-11  Bruno Haible  <bruno@clisp.org>
25153
25154         * lib/c-strcase.h: New file, from GNU gettext.
25155         * lib/c-strcasecmp.c: New file, from GNU gettext.
25156         * lib/c-strncasecmp.c: New file, from GNU gettext.
25157
25158 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25159
25160         * modules/mempcpy (License): GPL -> LGPL.
25161         * modules/strchrnul (License): Likewise.
25162         * modules/sysexits (License): Likewise.
25163
25164 2005-10-08  Simon Josefsson  <jas@extundo.com>
25165
25166         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
25167
25168 2005-10-07  Simon Josefsson  <jas@extundo.com>
25169
25170         * m4/memxor.m4: Remove gl_C_RESTRICT call.
25171
25172 2005-10-06  Simon Josefsson  <jas@extundo.com>
25173
25174         * tests/test-hmac-md5.c: New file.
25175
25176         * modules/hmac-md5-tests: New file.
25177
25178         * modules/hmac-md5: New file.
25179
25180 2005-10-06  Simon Josefsson  <jas@extundo.com>
25181
25182         * m4/hmac-md5.m4: New file.
25183
25184         * m4/memxor.m4: Require gl_C_RESTRICT.
25185
25186 2005-10-06  Simon Josefsson  <jas@extundo.com>
25187
25188         * lib/memxor.c (memxor): Avoid casts and warnings.
25189
25190 2005-10-06  Simon Josefsson  <jas@extundo.com>
25191
25192         * lib/hmac-md5.c: New file.
25193
25194         * lib/hmac.h: New file.
25195
25196 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25197
25198         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
25199         promotes to int, not unsigned int, to catch the AIX 5.3
25200         compiler bug.
25201
25202 2005-10-05  Simon Josefsson  <jas@extundo.com>
25203
25204         * modules/memxor: New file.
25205
25206         * modules/iconv (Files): Move config.rpath to havelib, it is used
25207         there.
25208
25209         * modules/havelib (Files): Add config.rpath.
25210
25211 2005-10-05  Simon Josefsson  <jas@extundo.com>
25212
25213         * m4/memxor.m4: New file.
25214
25215 2005-10-05  Simon Josefsson  <jas@extundo.com>
25216
25217         * lib/memxor.c (memxor): Fix compiler error.
25218
25219         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
25220         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
25221
25222         * lib/memxor.h, lib/memxor.c: New files.
25223
25224         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
25225         we assume all systems have it, suggested by Jim Meyering
25226         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
25227         any systems lack sys/socket.h; mingw32 is known to lack it, but we
25228         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
25229         same reasons.
25230
25231 2005-10-05  Simon Josefsson  <jas@extundo.com>
25232
25233         * config/srclist.txt: Add glibc bug 1423 for md5.h.
25234
25235 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25236
25237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
25238         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
25239         needed, since the source code now assumes these .h files.
25240
25241 2005-10-05  Derek Price  <derek@ximbiot.com>
25242
25243         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
25244
25245 2005-10-05  Bruno Haible  <bruno@clisp.org>
25246
25247         * modules/stdint (License): Change to LGPL.
25248
25249 2005-10-04  Simon Josefsson  <jas@extundo.com>
25250
25251         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
25252         D. Baushke" <mdb@gnu.org>.
25253
25254 2005-10-04  Bruno Haible  <bruno@clisp.org>
25255
25256         * lib/verify.h (verify_true): Provide alternative definition for C++.
25257
25258 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25259
25260         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
25261         (SSIZE_MAX): New macro, if not already defined.
25262         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
25263         than 2 GiB.
25264
25265 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25266
25267         Sync from coreutils.
25268         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
25269         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
25270         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
25271         ULLONG_MAX doesn't work with 2.7.2.1.
25272
25273 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25274
25275         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
25276         From Ben Pfaff.
25277
25278         * modules/exclude (Depends-on): Depend on verify.
25279         * modules/strtoimax (Depends-on): Likewise.
25280         * modules/utimecmp (Depends-on): Likewise.
25281
25282 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25283
25284         * lib/exclude.c: Include verify.h.
25285         (verify): Remove.  All callers changed to use verify.h's version.
25286         * lib/strtoimax.c: Likewise.
25287         * lib/utimecmp.c: Likewis.e
25288
25289         Sync from coreutils.
25290         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
25291         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
25292         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
25293         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
25294         bother returning ENOSYS if settimeofday or stime fails; just let
25295         them return whatever errno they want to return.
25296         * lib/utimens.c: Include unistd.h, for dup2.
25297         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
25298         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
25299
25300 2005-10-02  Jim Meyering  <jim@meyering.net>
25301
25302         Sync from coreutils.
25303         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
25304         from glibc-2.2.5 that fails for read-only files.
25305
25306 2005-10-02  Jim Meyering  <jim@meyering.net>
25307
25308         Sync from coreutils.
25309         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
25310         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
25311         `#if HAVE_CONFIG_H'.
25312         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
25313         Remove AT_FDCWD test.
25314         Do not consume the fd unless successful.
25315         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
25316         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
25317         block, so that we don't even try to compile it if settimeofday is
25318         available.  This works around a compilation failure on OSF1 V5.1,
25319         due to stime requiring a `long int*' while tv_sec is `int'.
25320
25321 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
25322
25323         Sync from coreutils.
25324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
25325         against `yes', rather than just testing for nonempty.
25326
25327 2005-10-01  Simon Josefsson  <jas@extundo.com>
25328
25329         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
25330         and Darwin.
25331
25332         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
25333         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
25334         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
25335         freeaddrinfo and gai_strerror are declared by the POSIX headers.
25336         Check if struct addrinfo is declared.
25337
25338 2005-10-01  Simon Josefsson  <jas@extundo.com>
25339
25340         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
25341         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
25342         AI_* and EAI_* definitions.  Protect function declarations.
25343
25344 2005-10-01  Jim Meyering  <jim@meyering.net>
25345
25346         Sync from coreutils.
25347
25348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
25349         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
25350         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
25351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25352         in the inet and nsl libraries.  Required on Solaris 5.7.
25353
25354 2005-10-01  Jim Meyering  <jim@meyering.net>
25355
25356         Sync from coreutils.
25357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25358         in the inet and nsl libraries.  Required on Solaris 5.7.
25359
25360 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
25361
25362         * lib/getdelim.c (getdelim): Remove unused variables.
25363
25364 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
25365
25366         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
25367         so that the code works even with ancient cpp.  Portability problem
25368         with GCC 2.7.2.1 reported by Thomas M.Ott.
25369
25370 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
25371
25372         * modules/regex (Depends-on): Add strcase.
25373
25374         * modules/gethostname (Licence): Change from GPL to LGPL, since
25375         gethostname.c is a trivial implementation of a standard library
25376         function.
25377         * modules/poll (License): Change from GPL to LGPL, since it's
25378         derived from LGPL code.
25379
25380 2005-09-27  Jim Meyering  <jim@meyering.net>
25381
25382         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
25383         HAVE_CONFIG_H.
25384
25385         * lib/intprops.h (signed_type_or_expr__): Define.
25386         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
25387         for unsigned types.
25388
25389 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25390
25391         * lib/verify.h (verify_expr): Remove, replacing with:
25392         (verify_true): New macro that returns true instead of void.
25393         (verify_type__): Remove.
25394         (verify): Use verify_true rather than verify_type__.
25395
25396 2005-09-26  Bruno Haible  <bruno@clisp.org>
25397
25398         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
25399         is necessary.
25400         (lib_SOURCES): Remove mbchar.c.
25401         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
25402         (Files): Add m4/mbrtowc.m4.
25403         * modules/mbiter: Likewise.
25404         * modules/mbuiter: Likewise.
25405
25406 2005-09-26  Bruno Haible  <bruno@clisp.org>
25407
25408         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
25409         compile mbchar.c if they are not both present.
25410         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
25411         * m4/mbiter.m4 (gl_MBITER): Likewise.
25412         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
25413         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
25414         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
25415
25416 2005-09-25  Jim Meyering  <jim@meyering.net>
25417
25418         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
25419         also uses socklen_t.
25420
25421 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25422
25423         * lib/utimens.c (ENOSYS): Define if not already defined.
25424         (futimens): Support having a null PATH if the file descriptor
25425         is nonnegative.
25426
25427         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
25428         Remove.
25429         (__attribute): Define to empty unless GCC 3.1 or later.
25430         This works around a core dump on OpenBSD 3.4, which has GCC
25431         2.95.3, which dumps core when given __attribute__(()).  It also
25432         simplifies other tests, since we really don't want to bother with
25433         worrying about which ancient version of GCC supported what.
25434         Original problem reported by Yoann Vandoorselaere, with part of
25435         the fix suggested by Derek Price.
25436
25437 2005-09-24  Jim Meyering  <jim@meyering.net>
25438
25439         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
25440         so we can once again use a positive bitfield width of 1 -- now we
25441         don't have to explain why we were using a bitfield width of 2.
25442
25443 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25444
25445         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
25446         and similarly for the other external symbols.  Problem reported
25447         by James Gallager.
25448
25449         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
25450         bug reported by Jim Meyering.
25451
25452         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
25453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
25454         not needed, since socklen is a prerequisite module.
25455
25456 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25457
25458         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
25459         Problem reported by Eric Blake.
25460         (getaddrinfo): Initialize se so that it's not garbage.
25461         Redo internal storage allocation so that it doesn't make unportable
25462         assumptions about alignment.
25463         Fix a memory leak.
25464
25465         * lib/utimens.c (futimens): Use futimesat if available.
25466         Prefer it to futimes since it doesn't have the futimes bug.
25467
25468         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
25469         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
25470         Instead, declare a function that returns a pointer to an array,
25471         and use verify_type__ to declare the size of the array.
25472         Problem and germ of a solution reported by Bruno Haible.
25473         (verify_type__): Use 2, not 1, for bitfield size, to avoid
25474         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
25475
25476 2005-09-23  Jim Meyering  <jim@meyering.net>
25477
25478         Sync from coreutils.
25479         Correct build failure (socklen_t not defined) on at least
25480         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
25481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
25482
25483 2005-09-23  Jim Meyering  <jim@meyering.net>
25484
25485         * modules/getaddrinfo (Depends-on): Add socklen.
25486
25487 2005-09-23  Bruno Haible  <bruno@clisp.org>
25488
25489         * tests/test-verify.c: New file.
25490
25491 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25492
25493         Sync from coreutils.
25494
25495         * modules/argmatch (Depends-on): Add verify.
25496         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
25497         unistd-safer.
25498         * modules/save-cwd (Depends-on): Likewise.
25499
25500         * modules/openat (Files): Add lib/openat-die.c.
25501         (Depends-on): Remove error, exitfail.
25502         Add dirname.
25503
25504         * modules/verify: New file.
25505         * MODULES.html.sh (Diagnostics <assert.h>): New section,
25506         with "verify" module.
25507
25508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25509
25510         Sync from coreutils.
25511
25512         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
25513         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
25514         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
25515         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
25516         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
25517         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
25518         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
25519         Don't bother checking for string.h, stdlib.h, unistd.h.
25520         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
25521         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
25522         module's job.
25523         * m4/jm-macros.m4 (gl_MACROS): Likewise.
25524         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
25525
25526         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
25527         (gl_GETDATE): Use it.
25528
25529         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
25530
25531 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25532
25533         Sync from coreutils.
25534
25535         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
25536         stat-time.h.
25537         * lib/argmatch.h: Include verify.h
25538         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
25539         (ARGMATCH_ASSERT): Remove; unused.
25540         * lib/canonicalize.c: Assume STDC_HEADERS.
25541         * lib/exclude.c: Include "strcase.h".
25542         * lib/regex_internal.h [!defined _LIBC]: Likewise.
25543         * lib/getusershell.c: Include stdio--.h rather than stdio.h
25544         and stdio-safer.h.
25545         (getusershell): Call fopen, not fopen_safer.
25546         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
25547         Do not include unistd-safer.h.
25548         (save_cwd): Don't call fd_safer; no longer needed
25549         now that we include fcntl--.h.
25550
25551         * lib/getdate.y (relative_time): New type.
25552         (RELATIVE_TIME_0): New constant.
25553         (parser_control): Use relative_time instead of doing it ourselves.
25554         (%union): Add new relative_time rel member.
25555         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
25556         Now typeless.
25557         (relunit, relunit_snumber): Now of type rel.
25558         (zone, rel, relunit, get_date): Adjust to above changes.
25559
25560         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
25561         Do not include unistd-safer.h.
25562         (getloadavg): Don't call fd_safer; no longer needed
25563         now that we include fcntl--.h.
25564
25565         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
25566         (make_dir_parents): Treat ENOSYS like EEXIST.
25567
25568         Improve quality of diagnostics on restore_cwd failure.
25569         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
25570         (make_dir_parents): Last arg is now int * (for errno), not bool *.
25571         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
25572         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
25573         each time through the loop.  Do not diagnose restore_cwd failure;
25574         that is the caller's job (and perhaps the caller does not care).
25575
25576         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
25577         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
25578         If the file already exists but is not a directory, don't bother
25579         to try to make its parents.
25580         Close potential file descriptor leak if we can't chdir("/") (!).
25581         Don't always return true if chdir($PWD) fails; return true only
25582         if the requested action was done successfully (except for the
25583         chdir($PWD)).
25584         Don't log final directory unless we actually made it.
25585         Refactor to avoid duplicate code to fix up permissions.
25586         Don't attempt to fix up parent permissions if chdir($PWD) fails.
25587
25588         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
25589         to make it a bit faster and (I hope) clearer.
25590         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
25591         Fix bug in formats like %2N.
25592
25593         * lib/verify.h: New file.
25594
25595 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25596
25597         Sync from coreutils.
25598         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
25599
25600 2005-09-22  Jim Meyering  <jim@meyering.net>
25601
25602         Sync from coreutils.
25603
25604         * m4/lstat.m4 (gl_FUNC_LSTAT):
25605         Use AC_LIBSOURCES to require lstat.c and lstat.h.
25606         Remove obsolete comment.
25607         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
25608         * m4/xstrtod.m4: Likewise.
25609
25610         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
25611
25612 2005-09-22  Jim Meyering  <jim@meyering.net>
25613
25614         Sync from coreutils.
25615
25616         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
25617
25618         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
25619         the .tm_year member, since otherwise gcc-4.0 would now warn about
25620         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
25621
25622         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
25623         order to avoid an unsuppressible warning from gcc on 64-bit systems.
25624
25625         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
25626         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
25627         when run in a time zone for which daylight savings time is in effect
25628         for the starting date.
25629
25630         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
25631         stop us from restricting permissions of just-created absolute-named
25632         directories.
25633         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
25634         to restore initial working directory.
25635         * lib/mkdir-p.c (make_dir_parents): New parameter:
25636         different_working_dir, to tell caller if/when we change the working
25637         directory and are unable to return to the initial one.
25638         * lib/mkdir-p.h (make_dir_parents): Update prototype.
25639         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
25640         `return false'.  This fixes a bug introduced on 2004-07-30.
25641
25642         * lib/openat.c (fdopendir): Be sure to close the supplied
25643         file descriptor before returning.  This makes our replacement
25644         implementation a little closer to Solaris's, where fdopendir
25645         ties the file descriptor to the returned DIR* pointer.
25646         * lib/openat.c (unlinkat): New function.
25647         * lib/openat.h (unlinkat): Add prototype.
25648         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
25649         (openat_restore_fail): Rename from openat_restore_die.
25650         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
25651
25652         Provide an alternative to exiting immediately upon save_cwd or
25653         restore_cwd failure.  Now, an application can arrange e.g.,
25654         to perform a longjump in that case.
25655         * lib/openat.c: Include dirname.h.
25656         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
25657         (rpl_openat, fdopendir, fstatat): Call openat_save_die
25658         and openat_restore_die rather than calling error directly.
25659         Don't include "error.h" or "exitfail.h"; they're no longer needed.
25660
25661         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
25662         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
25663         define.
25664
25665         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
25666         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
25667                             int utc, int nanoseconds);
25668         Background:
25669         date should not have to allocate a megabyte of virtual memory to
25670         handle a format argument like +%1048575T.  When implemented with
25671         strftime, it must allocate such a buffer, use strftime to fill it
25672         in, print it, then free it.
25673         With fprintftime, it simply prints everything and exits.
25674         With no need for memory allocation, that's one fewer way to fail.
25675         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
25676         optional field width, not before, so we accept %9:z, not %:9z.
25677         (my_strftime): Be sure to use L_('x') for literals.
25678
25679         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
25680         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
25681         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
25682         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
25683         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
25684         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
25685         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
25686         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
25687         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
25688         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
25689         * lib/xgethostname.c, lib/xreadlink.c:
25690         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
25691
25692         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
25693         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
25694         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
25695         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
25696         and don't include <sys/file.h>).
25697
25698 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
25699
25700         Sync from coreutils.
25701
25702         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
25703         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
25704         [!LDAV_DONE]: Avoid unused variable warning.
25705
25706 2005-09-21  Bruno Haible  <bruno@clisp.org>
25707
25708         * lib/unicodeio.h (unicode_to_mb): New declaration.
25709
25710 2005-09-20  Derek Price  <derek@ximbiot.com>
25711
25712         * lib/getaddrinfo.c: Don't include <netdb.h> included from
25713         getaddrinfo.h.
25714
25715 2005-09-20  Bruno Haible  <bruno@clisp.org>
25716
25717         * gnulib-tool: Remove trailing slashes from the values specified for
25718         --source-base, --m4-base, --tests-base, --aux-dir.
25719         Suggested by Simon Josefsson <jas@extundo.com>.
25720
25721 2005-09-20  Bruno Haible  <bruno@clisp.org>
25722
25723         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
25724         func_modules_to_filelist, func_import, func_create_testdir): Make all
25725         sorting results locale-independent, so that gnulib-cache.m4 doesn't
25726         change when gnulib-tool is invoked in a different locale.
25727
25728 2005-09-19  Simon Josefsson  <jas@extundo.com>
25729
25730         * m4/socklen.m4: Fix typo.
25731
25732 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25733
25734         Use a consistent style for including <config.h>.
25735         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
25736         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
25737         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
25738         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
25739         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
25740         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
25741         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
25742         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
25743         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
25744         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
25745         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
25746         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
25747         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
25748         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
25749         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
25750         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
25751         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
25752         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
25753         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
25754         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
25755         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
25756         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
25757         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
25758         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
25759         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
25760         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
25761         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
25762         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
25763         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
25764         lib/xstrtoumax.c, lib/yesno.c:
25765         Standardize inclusion of config.h.
25766         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
25767         lib/inttostr.h:  Removed inclusion of config.h from header files.
25768         * lib/inttostr.c:  Adjusted in-tree users.
25769         * lib/timespec.h: Remove superfluous warning to include config.h.
25770         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
25771         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
25772         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
25773         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
25774         config.h with HAVE_CONFIG_H.
25775
25776 2005-09-19  Jim Meyering  <jim@meyering.net>
25777
25778         * modules/pathmax (License): Change to LGPL.
25779
25780 2005-09-19  Derek Price  <derek@ximbiot.com>
25781
25782         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
25783
25784 2005-09-19  Bruno Haible  <bruno@clisp.org>
25785
25786         * gnulib-tool (import): Provide default for --tests-base.
25787
25788 2005-09-19  Bruno Haible  <bruno@clisp.org>
25789
25790         * doc/quote.texi: New file, extracted from gnulib.texi.
25791         * doc/ctime.texi: New file, extracted from gnulib.texi.
25792         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
25793         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
25794         * doc/gnulib.texi: Include them.
25795
25796 2005-09-18  Bruno Haible  <bruno@clisp.org>
25797
25798         Portability fix.
25799         * gnulib-tool (func_readlink): New function.
25800         (func_ln_if_changed): Use it.
25801
25802 2005-09-18  Bruno Haible  <bruno@clisp.org>
25803
25804         * gnulib-tool: Support --with-tests also with --import.
25805         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
25806         (func_import): Use variables $testsbase and $inctests. Emit a
25807         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
25808         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
25809         SUBDIRS += $testsdir.
25810         (func_create_testdir): Update.
25811
25812 2005-09-18  Bruno Haible  <bruno@clisp.org>
25813
25814         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
25815         instead of $dry_run.
25816         (func_cp_if_changed, func_mv_if_changed): Remove functions.
25817         (func_ln_if_changed): Don't handle dry-run here.
25818         (func_import): In dry-run mode, detect more precisely which actions
25819         would be performed, and don't use "...ing" verbs.
25820
25821 2005-09-18  Bruno Haible  <bruno@clisp.org>
25822
25823         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
25824         (func_import): Use join on two temporary files instead of three nested
25825         loops, in order to determine which files are new or old.
25826
25827 2005-09-18  Bruno Haible  <bruno@clisp.org>
25828
25829         * gnulib-tool (func_import): Comment out code that spits out the
25830         new files with --dry-run.
25831
25832 2005-09-18  Bruno Haible  <bruno@clisp.org>
25833
25834         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
25835
25836 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25837
25838         * lib/stat-time.h: New file.
25839         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
25840         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
25841         in a different way.
25842         (timespec_cmp): New function.
25843         * lib/utimecmp.c: Include stat-time.h.
25844         (SYSCALL_RESOLUTION): Depend on whether various struct stat
25845         members exist, not on the obsolescent ST_MTIM_NSEC.
25846         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
25847
25848 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25849
25850         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
25851
25852 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25853
25854         * MODULES.html.sh (File system functions): Add stat-time.
25855         * modules/stat-time: New file.
25856         * modules/timespec (Files): Remove m4/st_mtim.m4; this
25857         is now done in a different way, by the stat-time module.
25858         * modules/utimecmp (Depends-on): Add stat-time.
25859
25860 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
25861
25862         * m4/st_mtim.m4: Remove.  Superseded by...
25863         * m4/stat-time.m4: New file.
25864         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
25865         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
25866
25867 2005-09-15  Derek Price  <derek@ximbiot.com>
25868
25869         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
25870
25871 2005-09-15  Derek Price  <derek@ximbiot.com>
25872
25873         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
25874         * lib/regex_internal.c: Ditto, using this...
25875         (__GNUC_PREREQ): ...new macro.
25876         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
25877         using...
25878         (__GNUC_PREREQ): ...this new macro.
25879
25880         * lib/strstr.h: Include string.h. Define strstr as a macro here.
25881
25882 2005-09-15  Derek Price  <derek@ximbiot.com>
25883             Paul Eggert  <eggert@cs.ucla.edu>
25884
25885         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
25886         changes, consolidating in...
25887         * lib/regex_internal.h: ...this file.
25888
25889 2005-09-13  Jim Meyering  <jim@meyering.net>
25890
25891         * lib/canon-host.c: Filter through gnu indent and reword comments
25892         slightly.
25893         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
25894
25895 2005-09-13  Derek Price  <derek@ximbiot.com>
25896
25897         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
25898         failure.
25899         Reported by Jim Meyering  <jim@meyering.net>.
25900
25901 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25902
25903         * lib/base64.c: Typo.
25904         (base64_encode): Put b64str in initialized data section.
25905
25906 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25907
25908         Merge glibc and coreutils changes into gnulib, plus a few
25909         extra fixes.
25910         * lib/md5.c: Use #error rather than a string.
25911         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
25912         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
25913         (__attribute__): Define to empty for non recent-GCC.
25914         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
25915         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
25916         Renamed from their non-__ counterparts, with new macros replacing
25917         them if not _LIBC.  Add __THROW attribute.
25918         (rol): Remove.
25919         (struct md5_ctx): Align buffer if using GCC.
25920         * lib/sha1.h (struct sha1_ctx): Likewise.
25921         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
25922         The old name was backwards.
25923         (NOTSWAP): Remove; not used.
25924         (rol): New macro, moved here from md5.h.
25925         (sha1_process_block): Remove a FIXME that doesn't make sense.
25926
25927 2005-09-12  Derek Price  <derek@ximbiot.com>
25928
25929         Return usable errors from canon-host.
25930         * lib/canon-host.h: New file.
25931         * lib/canon-host.c (canon_host): Wrap...
25932         (canon_host_r): ...this new function, which now relies exclusively on
25933         getaddrinfo.
25934         (ch_strerror): New function.
25935         (last_cherror): New global.
25936         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
25937         interface.
25938         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
25939         void *.
25940         (freeaddrinfo): Free ai->ai_canonname when set.
25941
25942 2005-09-12  Derek Price  <derek@ximbiot.com>
25943
25944         Make canon-host require getaddrinfo.
25945         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
25946         AC_LIBSOURCE canon-host.h.  Call...
25947         (gl_PREREQ_CANON_HOST): ...this new function, which requires
25948         gl_GETADDRINFO.
25949         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
25950
25951 2005-09-12  Derek Price  <derek@ximbiot.com>
25952
25953         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
25954         LGPL.
25955         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
25956
25957 2005-09-12  Derek Price  <derek@ximbiot.com>
25958
25959         * lib/gai_strerror.c: Include config.h when available.  Include
25960         getaddrinfo.h before other headers to test interface.
25961         Reported by Larry Jones <lawrence.jones@ugs.com>.
25962
25963 2005-09-12  Derek Price  <derek@ximbiot.com>
25964             Paul Eggert  <eggert@cs.ucla.edu>
25965
25966         * modules/glob (Files): Add glob-libc.h.
25967
25968 2005-09-12  Derek Price  <derek@ximbiot.com>
25969             Paul Eggert  <eggert@cs.ucla.edu>
25970
25971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
25972         glob_.h, glob-libc.h.
25973         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
25974
25975 2005-09-12  Derek Price  <derek@ximbiot.com>
25976             Paul Eggert  <eggert@cs.ucla.edu>
25977
25978         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
25979         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
25980         protecting things that should be done only in gnulib contexts.
25981         * lib/glob_.h: New file, containing only the glob things needed for
25982         gnulib.
25983         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
25984         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
25985         (glob, globfree, glob_pattern_p): Now defined simply in terms of
25986         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
25987         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
25988         and to respect the namespace rules better.
25989
25990 2005-09-08  Simon Josefsson  <jas@extundo.com>
25991
25992         * modules/socklen: New file.
25993
25994 2005-09-08  Simon Josefsson  <jas@extundo.com>
25995
25996         * m4/socklen.m4: New file.
25997
25998 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
25999
26000         * modules/utimens (Files): Add m4/utimbuf.m4, since
26001         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
26002         Reported by Sergey Poznyakoff.
26003
26004 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26005
26006         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
26007         definitions, since that's the preferred style in glibc.
26008         Fix a minor spacing issue, and update copyright notice to match
26009         glibc's.
26010
26011 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26012
26013         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
26014
26015 2005-09-06  Simon Josefsson  <jas@extundo.com>
26016
26017         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
26018         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
26019
26020 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26021
26022         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
26023         warning.
26024
26025 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26026
26027         * config/srclist.txt: Add glibc bug 1302.
26028
26029 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
26030
26031         Change bitset word type from unsigned int to unsigned long int,
26032         as this has better performance on typical 64-bit hosts.
26033         Port bitset code to hosts with unusual word sizes.
26034         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
26035         (build_collating_symbol):
26036         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
26037         argument is a bitset.  This is merely a style issue, but it makes
26038         it clearer that an entire array is expected.
26039         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
26040         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
26041         Port to the case where bitset_word is not the same as unsigned int.
26042         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26043         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
26044         Likewise.
26045         * lib/regexec.c (check_dst_limits_calc_pos_1,
26046         check_subexp_matching_top):
26047         (build_trtable, group_nodes_into_DFAstates):
26048         Likewise.
26049         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
26050         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
26051         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
26052         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
26053         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
26054         * lib/regcomp.c (optimize_subexps, lower_subexp):
26055         Work even if bitset_word has holes in its bitwise representation.
26056         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
26057         * lib/regexec.c (check_dst_limits_calc_pos_1,
26058         check_subexp_matching_top):
26059         Likewise.
26060         * lib/regex_internal.c (re_string_reconstruct):
26061         Don't assume UCHAR_MAX == 255.
26062         * lib/regex_internal.h (bitset_set_all): Likewise.
26063         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
26064         All uses changed.
26065         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
26066         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
26067         All uses changed.
26068         (BITSET_WORD_MAX): New macro.
26069         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
26070         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
26071         (bitset_empty, bitset_copy):
26072         Prefer sizeof (bitset) to multiplying it out ourselves.
26073         (bitset_not_merge): Remove; unused.
26074         (bitset_contain): Return bool, not unsigned int with one bit on.
26075         All callers changed.
26076         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
26077         alignment than re_node_set; do this by defining a new internal
26078         type struct dests_alloc and using it to allocate memory.
26079
26080 2005-09-05  Bruno Haible  <bruno@clisp.org>
26081
26082         * gnulib-tool (func_import): Fix comparison in handling of symbolic
26083         links.
26084
26085 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
26086
26087         * modules/size_max (Makefile.am): Add size_max.h
26088
26089 2005-09-04  Derek Price  <derek@ximbiot.com>
26090
26091         * gnulib-tool (func_import): Fix reversed $symbolic logic.
26092
26093 2005-09-03  Simon Josefsson  <jas@extundo.com>
26094
26095         * gnulib-tool: Fix typo.
26096
26097 2005-09-03  Simon Josefsson  <jas@extundo.com>
26098
26099         * config/srclist.txt: Add glibc bug 1293.
26100
26101 2005-09-03  Derek Price  <derek@ximbiot.com>
26102
26103         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
26104         From Larry Jones <lawrence.jones@ugs.com>.
26105
26106 2005-09-02  Simon Josefsson  <jas@extundo.com>
26107
26108         * modules/socklen: New file.
26109
26110 2005-09-02  Simon Josefsson  <jas@extundo.com>
26111
26112         * modules/havelib: New module.
26113
26114         * modules/gettext, modules/iconv, modules/lock, modules/readline:
26115         Use havelib.
26116
26117 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26118
26119         Check for arithmetic overflow when calculating sizes, to prevent
26120         some buffer-overflow issues.  These patches are conservative, in the
26121         sense that when I couldn't determine whether an overflow was possible,
26122         I inserted a run-time check.
26123         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
26124         macros.
26125         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
26126         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
26127         (re_xnrealloc, re_x2nrealloc): New inline functions.
26128         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
26129         parse_bracket_exp):
26130         (build_equiv_class, build_charclass): Check for arithmetic overflow
26131         in size expression calculations.
26132         * lib/regex_internal.c (re_string_realloc_buffers):
26133         (build_wcs_upper_buffer, re_node_set_add_intersect):
26134         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
26135         (re_dfa_add_node, register_state): Likewise.
26136         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
26137         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
26138         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
26139         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
26140
26141 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26142
26143         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
26144         m4/ulonglong.m4.  Problem reported by Martin Lambers.
26145
26146 2005-09-02  Bruno Haible  <bruno@clisp.org>
26147
26148         Support for lib vs. lib64 distinction on biarch platforms.
26149         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
26150         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
26151         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
26152
26153 2005-09-02  Bruno Haible  <bruno@clisp.org>
26154
26155         * gnulib-tool (import): In the other first-use case, provide defaults
26156         as well.
26157
26158 2005-09-02  Bruno Haible  <bruno@clisp.org>
26159
26160         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
26161         patches not yet found in the latest gettext release.
26162
26163 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26164
26165         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
26166         to avoid a collision with bits/local_lim.h in glibc.
26167         All uses changed.  Problem reported by Dmitry V. Levin in
26168         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
26169
26170         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
26171         bugs in int versus size_t comparisons.
26172         (re_string_context_at): Fix bug where the code assumed that
26173         Idx is signed.
26174
26175         Use bool where appropriate.
26176         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
26177         All callers changed.
26178         (calc_eclosure_iter): Likewise, for ROOT arg.
26179         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
26180         (build_charclass_op): Likewise, for NON_MATCH arg.
26181         * lib/regex_internal.c (re_string_allocate, re_string_construct):
26182         (re_string_construct_common): Likewise, for ICASE arg.
26183         * lib/regexec.c (re_search_2_stub, re_search_stub):
26184         Likewise, for RET_LEN arg.
26185         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
26186         (set_regs): Likewise, for FL_BACKTRACK arg.
26187         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
26188         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
26189         (calc_eclosure_iter, parse_bracket_exp):
26190         Use bool for internal variables that are booleans.
26191         * lib/regexec.c (re_search_internal, check_matching,
26192         proceed_next_node):
26193         (set_regs, build_sifted_states, sift_states_bkref):
26194         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
26195         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26196         (find_collation_sequence_value):
26197         Likewise.
26198         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
26199         (re_node_set_compare):
26200         Return bool, not int. All callers changed.
26201         * lib/regexec.c (check_halt_node_context, check_dst_limits):
26202         (build_trtable, check_node_accept): Likewise.
26203         * lib/regex_internal.h: Include stdbool.h.
26204
26205         Fix bugs uncovered when converting to bool.
26206         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
26207         failure instead of charging ahead blindly.
26208         * lib/regex_internal.c (register_state): Likewise.
26209         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
26210         for freeing internal storage.
26211         (group_nodes_into_DFA_states): Use unsigned int, not int, for
26212         bitset pieces used as boolean, to avoid undefined behavior
26213         on hosts that do int overflow checking.
26214
26215 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26216
26217         * config/srclist.txt: Add glibc bugs 1285-1287.
26218
26219 2005-09-01  Jim Meyering  <jim@meyering.net>
26220
26221         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
26222         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
26223         Require gl_STAT_MACROS, too.
26224
26225 2005-09-01  Bruno Haible  <bruno@clisp.org>
26226
26227         * gnulib-tool (import): In the first-use case, provide defaults.
26228
26229 2005-09-01  Bruno Haible  <bruno@clisp.org>
26230
26231         * gnulib-tool (func_import): Remove the .tmp files.
26232
26233 2005-09-01  Bruno Haible  <bruno@clisp.org>
26234
26235         * gnulib-tool (func_import): Fix handling of symbolic links.
26236
26237 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26238
26239         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
26240         old glibc regex code mishandles strings longer than 2**31 bytes.
26241         This patch fixes this when the regex code is used in gnulib
26242         (i.e., outside glibc).
26243
26244         This patch should not affect the use of the regex code inside
26245         glibc.  No doubt this problem also needs to be handled for glibc
26246         as well, but the result will be an incompatible change to the
26247         glibc ABI, and the old ABI will have to be supported too.  That
26248         can be the the subject for another patch.
26249
26250         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
26251         governing whether the rest of this patch is active.  By default,
26252         the macro is disabled and the patch has no effect.
26253         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
26254         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
26255         (struct re_pattern_buffer, re_search, re_search_2, re_match):
26256         (re_match_2, re_set_registers): Use the new types.
26257         * lib/regex_internal.h (Idx, re_hashval_t): New types.
26258         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
26259         New macros.
26260         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
26261         (re_string_context_at, bin_tree_t, re_dfastate_t):
26262         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
26263         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
26264         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
26265         (re_string_char_size_at, re_string_wchar_at):
26266         (re_string_elem_size_at):
26267         Use the new types and macros to port to 64-bit hosts.
26268         Use unsigned types for internal values, so that the code
26269         mostly works even for arrays larger than SSIZE_MAX.
26270         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
26271         (search_duplicated_node, calc_eclosure_iter, fetch_number):
26272         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
26273         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
26274         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
26275         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
26276         (calc_inveclosure, parse_dup_op, build_range_exp):
26277         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
26278         (fetch_number, create_token_tree, mark_opt_subexp):
26279         Likewise.
26280         * lib/regex_internal.c (re_string_construct_common,
26281         create_ci_newstate):
26282         (create_cd_newstate, re_string_allocate, re_string_construct):
26283         (re_string_realloc_buffers, build_wcs_upper_buffer):
26284         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26285         (re_string_reconstruct, re_string_peek_byte_case):
26286         (re_string_fetch_byte_case, re_string_context_at):
26287         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26288         (re_node_set_init_copy, re_node_set_add_intersect):
26289         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26290         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26291         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26292         (re_acquire_state, re_acquire_state_context, register_state):
26293         Likewise.
26294         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
26295         search_cur_bkref_entry):
26296         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
26297         (re_search_internal, re_search_2_stub, re_search_stub)
26298         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
26299         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
26300         (update_cur_sifted_state, check_dst_limits):
26301         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26302         (check_subexp_limits, sift_states_bkref, merge_state_array):
26303         (check_subexp_matching_top, get_subexp, get_subexp_sub):
26304         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
26305         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26306         (expand_bkref_cache, check_node_accept_bytes):
26307         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
26308         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
26309         (acquire_init_state_context, check_halt_node_context):
26310         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
26311         (sift_states_backward, clean_state_log_if_needed):
26312         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
26313         (find_recover_state, transit_state_sb, transit_state_mb):
26314         (transit_state_bkref, build_trtable, match_ctx_clean):
26315         Likewise.
26316         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
26317         to work around an assumption that REG_MISSING is negative.
26318
26319         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
26320         (seek_collating_symbol_entry) [defined _LIBC]:
26321         (lookup_collation_sequence_value) [defined _LIBC]:
26322         (build_range_exp, build_collating_symbol) [defined _LIBC]:
26323         Use prototypes rather than old-style function definitions.
26324         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
26325         (transit_state_sb) [0]:
26326         (find_collation_sequence_value) [defined _LIBC]: Likewise.
26327
26328         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
26329         rm_eo.
26330
26331         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
26332         (optimize_subexps, lower_subexp):
26333         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
26334         since the signed shift might overflow.  Use 1u<<31 instead.
26335         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26336         Likewise.
26337         * lib/regexec.c (check_dst_limits_calc_pos_1,
26338         check_subexp_matching_top): Likewise.
26339
26340         * lib/regcomp.c (optimize_subexps, lower_subexp):
26341         Use CHAR_BIT rather than 8, for clarity.
26342         * lib/regexec.c (check_dst_limits_calc_pos_1):
26343         (check_subexp_matching_top): Likewise.
26344         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
26345         have to worry about portability issues when shifting it left.
26346         Remove no-longer-needed test for table_size > 0.
26347         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
26348         in a word, as the resulting behavior is undefined.
26349         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
26350         in one case, a <= should have been an <, and in another case the
26351         whole test was missing.
26352         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
26353         the standard name CHAR_BIT.
26354         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
26355         this is not true on one's complement and signed-magnitude hosts.
26356
26357         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
26358         next_last_offset.
26359         (struct re_dfa_t): Remove unused member states_alloc.
26360         * lib/regcomp.c (init_dfa): Don't initialize unused members.
26361
26362 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26363
26364         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
26365         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
26366         and large-file glibc and in 32-bit large-file Solaris.
26367
26368 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26369
26370         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
26371         lengths fit in regoff_t; this isn't true if regoff_t is the same
26372         width as size_t.
26373         * lib/regex.c (re_search_internal): 5th arg is LAST_START
26374         (= START + RANGE) instead of RANGE.  This avoids overflow
26375         problems when regoff_t is the same width as size_t.
26376         All callers changed.
26377         (re_search_2_stub): Check for overflow when adding the
26378         sizes of the two strings.
26379         (re_search_stub): Check for overflow when adding START
26380         to RANGE; if it occurs, substitute the extreme value.
26381
26382 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26383
26384         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
26385
26386 2005-08-31  Jim Meyering  <jim@meyering.net>
26387
26388         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
26389         a pointer-to-const.
26390         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
26391         (register_state): Likewise.
26392         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
26393         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26394         (group_nodes_into_DFAstates): Likewise.
26395
26396 2005-08-31  Jim Meyering  <jim@meyering.net>
26397
26398         * check-module: Add a FIXME comment.
26399
26400 2005-08-31  Eric Blake  <ebb9@byu.net>
26401
26402         * modules/unistd-safer (Files): Add unistd--.h.
26403         * modules/stdio-safer (Files): Add stdio--.h.
26404
26405 2005-08-31  Derek Price  <derek@ximbiot.com>
26406
26407         * lib/getdelim.c (getdelim): Return EOF on EOF.
26408         Reported by Larry Jones <lawrence.jones@ugs.com>.
26409
26410 2005-08-31  Bruno Haible  <bruno@clisp.org>
26411
26412         Avoid unnecessary diffs in the generated lib/Makefile.am.
26413         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
26414         the generated files.
26415         (func_import): Don't set cmd.
26416
26417 2005-08-31  Bruno Haible  <bruno@clisp.org>
26418
26419         * lib/strstr.c: Include <stddef.h>, for NULL.
26420         * lib/strcasestr.c: Likewise.
26421         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26422
26423 2005-08-31  Bruno Haible  <bruno@clisp.org>
26424
26425         * gnulib-tool: New option --macro-prefix.
26426         (func_import): Use macro_prefix.
26427         (import): Handle option --macro-prefix.
26428
26429 2005-08-31  Bruno Haible  <bruno@clisp.org>
26430
26431         * gnulib-tool (import): Rename most ac_* variables to cached_*.
26432         Also use new variables cached_lgpl, cached_libtool.
26433
26434 2005-08-31  Bruno Haible  <bruno@clisp.org>
26435
26436         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
26437         always instantiating them.
26438
26439 2005-08-31  Bruno Haible  <bruno@clisp.org>
26440
26441         * gnulib-tool (func_import): Read the previous cached settings
26442         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
26443         earlier added by gnulib but are now dropped. Warn when a gnulib file
26444         overwrites a non-gnulib file.
26445
26446 2005-08-31  Bruno Haible  <bruno@clisp.org>
26447
26448         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
26449         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
26450         projects that don't keep autogenerated files in CVS. Put into
26451         actioncmd only the specified modules, not the transitive closure.
26452
26453 2005-08-31  Bruno Haible  <bruno@clisp.org>
26454
26455         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
26456         Create directories that shall be filled.
26457         (import): Don't look for gl_* macros in configure.ac. Recurse across
26458         all directories containing a gnulib-cache.m4 files, if meaningful.
26459
26460 2005-08-31  Bruno Haible  <bruno@clisp.org>
26461
26462         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
26463         (import): Set seen_libtool when we see gl_LIBTOOL.
26464
26465 2005-08-31  Bruno Haible  <bruno@clisp.org>
26466
26467         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
26468         declaration macro definitions from generated gnulib.m4.
26469
26470 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
26471
26472         * lib/iconvme.h: Add prototype for iconv_alloc.
26473
26474 2005-08-29  Simon Josefsson  <jas@extundo.com>
26475
26476         * lib/iconvme.c: Fix errno.
26477
26478 2005-08-29  Bruno Haible  <bruno@clisp.org>
26479
26480         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
26481         that it works when the directory contains spaces.
26482
26483 2005-08-29  Bruno Haible  <bruno@clisp.org>
26484
26485         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
26486
26487 2005-08-29  Bruno Haible  <bruno@clisp.org>
26488
26489         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
26490         Emit more advice.
26491
26492 2005-08-29  Bruno Haible  <bruno@clisp.org>
26493         and Stepan Kasal  <kasal@ucw.cz>
26494
26495         * check-module: If more parameters are given, check each of them
26496         separately; add more exceptions, as noted by Jim Meyering.
26497         (check_module): New procedure.
26498         (%exempt_header): Now contains all exceptions.
26499
26500 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
26501
26502         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
26503
26504 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
26505
26506         * lib/iconvme.c: Split iconv_string into iconv_alloc.
26507
26508 2005-08-28  Bruno Haible  <bruno@clisp.org>
26509
26510         * m4/gnulib-tool.m4: New file.
26511
26512 2005-08-27  Jim Meyering  <jim@meyering.net>
26513
26514         * modules/unistd-safer (Files): Add pipe-safer.c.
26515         * modules/fcntl-safer (Files): Add creat-safer.c.
26516
26517 2005-08-27  Jim Meyering  <jim@meyering.net>
26518
26519         * m4/stdlib-safer.m4: New file.  From coreutils.
26520         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
26521         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
26522         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
26523         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
26524         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
26525
26526 2005-08-27  Jim Meyering  <jim@meyering.net>
26527
26528         * lib/fopen-safer.c: Merge minor changes from coreutils.
26529         * lib/dup-safer.c: Likewise.
26530         * lib/fd-safer.c: Likewise.
26531
26532         Merge from coreutils.
26533         * lib/stdio--.h: New file.
26534         * lib/stdlib--.h: New file.
26535         * lib/mkstemp-safer.c: New file.
26536
26537         GNU tar needs these.
26538         * lib/pipe-safer.c: New file.
26539         * lib/creat-safer.c: New file.
26540         * lib/fcntl--.h (creat): Define to creat_safer.
26541         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
26542         * lib/unistd--.h (pipe): Define to pipe_safer.
26543         * lib/unistd-safer.h: Declare pipe_safer.
26544
26545 2005-08-26  Simon Josefsson  <jas@extundo.com>
26546
26547         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
26548         Haible <bruno@clisp.org>.
26549
26550 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
26551
26552         * lib/regex_internal.h: Remove all references to
26553         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
26554         or better.
26555         (bitset_not, bitset_merge, bitset_not_merge):
26556         (bitset_mask, re_string_allocate, re_string_construct):
26557         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
26558         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
26559         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
26560         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
26561         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26562         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26563         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
26564         (re_acquire_state_context):
26565         Remove unnecessary forward decls.
26566         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
26567         Put __attribute at function definition,
26568         now that the function decl has been removed.
26569         * lib/regex_internal.c (re_string_peek_byte_case):
26570         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
26571         Likewise.
26572
26573 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
26574
26575         * m4/regex.m4: Add AC_PREREQ(2.50).
26576         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
26577
26578 2005-08-25  Simon Josefsson  <jas@extundo.com>
26579
26580         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
26581         __fsetlocking.
26582
26583 2005-08-25  Simon Josefsson  <jas@extundo.com>
26584
26585         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
26586         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
26587         GLIBC specific code.
26588
26589 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26590
26591         Make regex safe for g++.  This fixes one real bug (an "err"
26592         that should have been "*err").  g++ problem reported by
26593         Sam Steingold.
26594         * lib/regex_internal.h (re_calloc): New macro, consistent with
26595         re_malloc etc.  All callers of calloc changed to use re_calloc.
26596         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
26597         not int.  All callers changed.
26598         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
26599         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
26600         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
26601         (find_recover_state): Change "err" to "*err"; this fixes what
26602         appears to be a real bug.
26603         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
26604         versus int.
26605
26606 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26607
26608         * modules/regex (Depends-on): Add malloc, since the code
26609         assumes that !malloc(0) means failure.
26610
26611 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26612
26613         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
26614
26615         alloca modernization/simplification for regex.
26616         * lib/regex.c: Remove portability cruft for alloca.  This no longer
26617         needs to be at the start of the file, and can be moved into
26618         regex_internal.h and simplified.
26619         * lib/regex_internal.h: Include <alloca.h>.
26620         (__libc_use_alloca) [!defined _LIBC]: New macro.
26621         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
26622         now works outside glibc.
26623
26624 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26625
26626         * config/srclist.txt: Add glibc bugs 1241, 1245.
26627
26628 2005-08-25  Jim Meyering  <jim@meyering.net>
26629
26630         * lib/open-safer.c: Include <config.h>.
26631         Otherwise, we'd lose LARGEFILE support in any file using
26632         e.g. "fcntl--.h"
26633
26634 2005-08-25  Bruno Haible  <bruno@clisp.org>
26635
26636         * m4/minmax.m4: Require autoconf 2.52.
26637         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
26638         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
26639         alternatives of translit over the alphabet.
26640         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
26641
26642 2005-08-24  Simon Josefsson  <jas@extundo.com>
26643
26644         * tests/test-getpass.c: New file.
26645
26646 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26647
26648         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
26649         for GNU regex features.
26650
26651 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26652
26653         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
26654         * lib/regex.h (regerror): Likewise.
26655
26656         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
26657         requires this.  (The code never needed it.)
26658
26659         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
26660         All uses of recently-renamed identifiers changed to use the new,
26661         POSIX-compliant names.  The code will build and run just fine
26662         without these changes, but it's better to eat our own dog food
26663         and use the standard-conforming names.
26664
26665         * lib/regex.h: Fix a multitude of POSIX name space violations.
26666         These changes have an effect only for programs that define
26667         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
26668         do not change anything for programs compiled in the normal way.
26669         Also, there is no effect on the ABI.
26670
26671         (_REGEX_SOURCE): New macro.
26672         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
26673         defined and _GNU_SOURCE is not; this fixes a name space violation.
26674
26675         Rename the following macros to obey POSIX requirements.
26676         The old names are still visible as macros if _REGEX_SOURCE is defined.
26677         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
26678         RE_BACKSLASH_ESCAPE_IN_LISTS.
26679         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
26680         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
26681         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
26682         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
26683         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
26684         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
26685         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
26686         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
26687         (REG_INTERVALS): renamed from RE_INTERVALS.
26688         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
26689         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
26690         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
26691         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
26692         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
26693         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
26694         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
26695         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
26696         RE_UNMATCHED_RIGHT_PAREN_ORD.
26697         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
26698         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
26699         (REG_DEBUG): renamed from RE_DEBUG.
26700         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
26701         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
26702         unusual, since we can't clash with the POSIX REG_ICASE.
26703         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
26704         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
26705         (REG_NO_SUB): renamed from RE_NO_SUB.
26706         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
26707         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
26708         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
26709         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
26710         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
26711         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
26712         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
26713         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
26714         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
26715         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
26716         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
26717         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
26718         RE_SYNTAX_POSIX_MINIMAL_BASIC.
26719         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
26720         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
26721         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
26722         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
26723         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
26724         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
26725         (REG_FIXED): Renamed from REGS_FIXED.
26726         (REG_NREGS): Renamed from RE_NREGS.
26727
26728         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
26729         of other REG_* macros, since POSIX says the user is allowed to
26730         #undef these macros selectively.
26731
26732         (reg_errcode_t): Update comment stating what other tables need
26733         to be consistent.
26734
26735         Rename the following enum values to obey POSIX requirements.
26736         The old names are still visible as macros.
26737         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
26738         is not defined, since GNU is supposed to be a superset of POSIX as
26739         much as possible, and since we want reg_errcode_t to be a signed
26740         type for implementation consistency.
26741         (_REG_NOERROR): Renamed from REG_NOERROR.
26742         (_REG_NOMATCH): Renamed from REG_NOMATCH.
26743         (_REG_BADPAT): Renamed from REG_BADPAT.
26744         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
26745         (_REG_ECTYPE): Renamed from REG_ECTYPE.
26746         (_REG_EESCAPE): Renamed from REG_EESCAPE.
26747         (_REG_ESUBREG): Renamed from REG_ESUBREG.
26748         (_REG_EBRACK): Renamed from REG_EBRACK.
26749         (_REG_EPAREN): Renamed from REG_EPAREN.
26750         (_REG_EBRACE): Renamed from REG_EBRACE.
26751         (_REG_BADBR): Renamed from REG_BADBR.
26752         (_REG_ERANGE): Renamed from REG_ERANGE.
26753         (_REG_ESPACE): Renamed from REG_ESPACE.
26754         (_REG_BADRPT): Renamed from REG_BADRPT.
26755         (_REG_EEND): Renamed from REG_EEND.
26756         (_REG_ESIZE): Renamed from REG_ESIZE.
26757         (_REG_ERPAREN): Renamed from REG_ERPAREN.
26758         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
26759         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
26760         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
26761         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
26762
26763         (_REG_RE_NAME, _REG_RM_NAME): New macros.
26764         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
26765         changed.  But support the old name if the new one is not defined
26766         and if _REGEX_SOURCE.
26767
26768         Change the following member names in struct re_pattern_buffer.
26769         The old names are still supported if !_REGEX_SOURCE.
26770         The new names are always supported, regardless of _REGEX_SOURCE.
26771         (re_buffer): Renamed from buffer.
26772         (re_allocated): Renamed from allocated.
26773         (re_used): Renamed from used.
26774         (re_syntax): Renamed from syntax.
26775         (re_fastmap): Renamed from fastmap.
26776         (re_translate): Renamed from translate.
26777         (re_can_be_null): Renamed from can_be_null.
26778         (re_regs_allocated): Renamed from regs_allocated.
26779         (re_fastmap_accurate): Renamed from fastmap_accurate.
26780         (re_no_sub): Renamed from no_sub.
26781         (re_not_bol): Renamed from not_bol.
26782         (re_not_eol): Renamed from not_eol.
26783         (re_newline_anchor): Renamed from newline_anchor.
26784
26785         Change the following member names in struct re_registers.
26786         The old names are still supported if !_REGEX_SOURCE.
26787         The new names are always supported, regardless of _REGEX_SOURCE.
26788         (rm_num_regs): Renamed from num_regs.
26789         (rm_start): Renamed from start.
26790         (rm_end): Renamed from end.
26791
26792         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
26793         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
26794         Prepend __ to parameter names.
26795
26796         Undo yesterday's changes.
26797
26798 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26799
26800         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
26801         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
26802         lib/regex.c.
26803
26804 2005-08-24  Jim Meyering  <jim@meyering.net>
26805
26806         Sync from coreutils.
26807         * m4/fcntl-safer.m4: New file.
26808
26809         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
26810         and object files for this module.
26811
26812 2005-08-24  Jim Meyering  <jim@meyering.net>
26813
26814         Sync from coreutils.
26815         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
26816
26817 2005-08-24  Jim Meyering  <jim@meyering.net>
26818
26819         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
26820         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
26821
26822 2005-08-24  Jim Meyering  <jim@meyering.net>
26823
26824         * modules/fcntl-safer: New module.
26825         * modules/fts (Depends-on): Add fcntl-safer.
26826         * MODULES.html.sh (File descriptor based Input/Output):
26827         Add fcntl-safer.
26828
26829 2005-08-24  Bruno Haible  <bruno@clisp.org>
26830
26831         Support for unit test modules.
26832         * modules/README: Mention tests modules.
26833         * modules/TEMPLATE-TESTS: New file.
26834         * gnulib-tool: New options --extract-tests-module, --with-tests and
26835         --tests-base (unused for the moment).
26836         (testsbase, inctests): New variables.
26837         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
26838         (func_verify_module): Exclude TEMPLATE-TESTS.
26839         (func_verify_nontests_module, func_verify_tests_module): New functions.
26840         (func_get_dependencies): Add implicit dependency for tests modules.
26841         (func_get_tests_module): New function.
26842         (func_modules_transitive_closure): When --with-tests was specified,
26843         include the unit tests as well, unless explicitly avoided.
26844         (func_emit_lib_Makefile_am): Ignore the tests modules here.
26845         (func_emit_tests_Makefile_am): New function.
26846         (func_create_testdir): When --with-tests was specified, emit a
26847         tests/ directory.
26848         * MODULES.html.sh (Future developments): Update.
26849
26850 2005-08-24  Bruno Haible  <bruno@clisp.org>
26851
26852         * modules/tls-tests: New file.
26853         * tests/test-tls.c: New file, from GNU gettext.
26854
26855 2005-08-24  Bruno Haible  <bruno@clisp.org>
26856
26857         * modules/lock-tests: New file.
26858         * tests/test-lock.c: New file, from GNU gettext.
26859
26860 2005-08-24  Bruno Haible  <bruno@clisp.org>
26861
26862         * lib/lock.h: Add multiple inclusion guard.
26863         * lib/tls.h: Add multiple inclusion guard.
26864
26865 2005-08-24  Bruno Haible  <bruno@clisp.org>
26866
26867         * gnulib-tool: Add support for the --aux-dir option to
26868         --create-testdir, --create-megatestdir, --test, --megatest.
26869         (func_create_testdir, func_create_megatestdir): Optionally emit a
26870         AC_CONFIG_AUX_DIR directive.
26871         (create-testdir, create-megatestdir, test, megatest): Provide a
26872         default value for $auxdir.
26873
26874 2005-08-24  Bruno Haible  <bruno@clisp.org>
26875
26876         * gnulib-tool (import): Use compound statement instead of subshell
26877         where possible.
26878
26879 2005-08-24  Bruno Haible  <bruno@clisp.org>
26880
26881         * gnulib-tool (import): Change --aux-dir default to "build-aux".
26882
26883 2005-08-24  Bruno Haible  <bruno@clisp.org>
26884
26885         * gnulib-tool (func_version): Update.
26886
26887 2005-08-24  Bruno Haible  <bruno@clisp.org>
26888
26889         * gnulib-tool (func_import, func_create_testdir,
26890         func_create_megatestdir): Quote all autoconf macro arguments.
26891
26892 2005-08-24  Bruno Haible  <bruno@clisp.org>
26893
26894         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
26895         option --force, because --force causes the aclocal.m4 of each
26896         subdirectory to be newer than the corresponding config.h.in.
26897
26898 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26899
26900         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
26901         All contents moved to gl_REGEX.
26902         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
26903         assume that it does.
26904
26905 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26906
26907         * lib/regex.h (REG_NOSYS)
26908         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
26909         Define, since POSIX requires it as of 2001.
26910         (_REG_ENOSYS)
26911         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
26912         New private symbol, used to keep the enum signed in all cases.
26913         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
26914         Youngman in
26915         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
26916
26917         * lib/regex_internal.c (re_string_skip_chars, register_state):
26918         (calc_state_hash):
26919         Remove forward decls; no longer needed now that we use prototypes.
26920         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
26921         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
26922         (clean_state_log_if_needed): Likewise.
26923
26924 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26925
26926         * config/srclist.txt: Add glibc bugs 1231-1233.
26927
26928 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26929
26930         Fix problems reported by Sam Steingold in
26931         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
26932         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
26933         assumed that reg_errcode_t is a signed type, which is not
26934         necessarily true if _XOPEN_SOURCE is not defined.
26935         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
26936         since some compilers warn about it otherwise.
26937
26938 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26939
26940         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
26941         (init_word_char, create_initial_state, duplicate_node_closure):
26942         (fetch_token, peek_token_bracket, build_range_exp):
26943         (build_collating_symbol): Remove forward decls; no longer needed
26944         now that we use prototypes.
26945
26946         * lib/regcomp.c:
26947         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
26948         (re_compile_fastmap_iter, regcomp, regerror, regfree):
26949         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
26950         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
26951         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
26952         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
26953         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
26954         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
26955         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
26956         (build_range_exp, build_collating_symbol, parse_bracket_exp):
26957         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
26958         (build_charclass, build_charclass_op, fetch_number, create_tree):
26959         (create_token_tree, mark_opt_subexp, duplicate_tree):
26960         Use prototypes rather than old-style definitions.
26961
26962         * lib/regex_internal.c:
26963         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
26964         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
26965         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26966         (re_string_reconstruct, re_string_peek_byte_case):
26967         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
26968         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26969         (re_node_set_init_copy, re_node_set_add_intersect):
26970         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26971         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26972         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26973         (re_acquire_state, re_acquire_state_context, register_state):
26974         (create_ci_newstate, create_cd_newstate, free_state):
26975         Likewise.
26976         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
26977         re_search_2):
26978         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
26979         (re_search_internal, prune_impossible_nodes):
26980         (acquire_init_state_context, check_matching, static):
26981         (check_halt_node_context, check_halt_state_context, proceed_next_node):
26982         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
26983         (update_regs, sift_states_backward, build_sifted_states):
26984         (clean_state_log_if_needed, merge_state_array):
26985         (update_cur_sifted_state, add_epsilon_src_nodes):
26986         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
26987         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
26988         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
26989         (find_recover_state, check_subexp_matching_top, transit_state_mb):
26990         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
26991         (check_arrival, check_arrival_add_next_nodes):
26992         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26993         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26994         (check_node_accept_bytes, check_node_accept, extend_buffers):
26995         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
26996         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
26997         (sift_ctx_init):
26998         Likewise.
26999
27000         * lib/regex_internal.h:
27001         (re_string_allocate, re_string_construct, re_string_reconstruct):
27002         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
27003         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
27004         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
27005         (re_string_context_at, re_string_peek_byte_case):
27006         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
27007         is defined, since we now use prototypes always.
27008
27009         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
27010         C89 or better.  All uses removed.
27011
27012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27013
27014         * config/srclist.txt: Add glibc bugs 1220-1227.
27015
27016 2005-08-20  Jim Meyering  <jim@meyering.net>
27017
27018         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
27019         of unused local, dfa.
27020
27021 2005-08-20  Bruno Haible  <bruno@clisp.org>
27022
27023         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
27024
27025 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27026
27027         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
27028         (re_node_set_insert_last, re_dfa_add_node):
27029         Rename local variables to avoid GCC shadowing warnings.
27030
27031 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27032
27033         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
27034         [defined lint]: Suppress bogus uninitialized-variable warnings.
27035
27036         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
27037         and let the caller return REG_ESPACE if out of space.  This
27038         removes an uninitialied-variable warning with GCC 4.0.1, and also
27039         avoids taking the address of a local variable.  All callers
27040         changed.
27041
27042 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27043
27044         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
27045         $LIBCSRC/posix/regexec.c.
27046         Add glibc bug 1217 for regcomp.c.
27047
27048 2005-08-19  Jim Meyering  <jim@meyering.net>
27049
27050         * lib/regexec.c (proceed_next_node): Redo local variables to
27051         avoid GCC shadowing warnings.
27052
27053 2005-08-18  Bruno Haible  <bruno@clisp.org>
27054
27055         * lib/strstr.c (strstr): Fix return value in multibyte case.
27056         * lib/strcasestr.c (strcasestr): Likewise.
27057
27058 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27059
27060         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
27061
27062 2005-08-17  Jim Meyering  <jim@meyering.net>
27063
27064         Make the %s format (seconds since the epoch) work for a negative
27065         number and when used with a zero-padded field width, e.g. %015s.
27066
27067         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
27068         label so that it precedes the code to set `digits'.  Otherwise,
27069         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
27070         print `00-22'.  Now, it prints `-0022', as it should.
27071
27072 2005-08-17  Bruno Haible  <bruno@clisp.org>
27073
27074         * modules/strstr (Files): Add m4/mbrtowc.m4.
27075         (Depends-on): Add mbuiter.
27076
27077 2005-08-17  Bruno Haible  <bruno@clisp.org>
27078
27079         * modules/strcasestr: New file.
27080         * MODULES.html.sh (String handling, based on ANSI C 89): Add
27081         strcasestr.
27082
27083 2005-08-17  Bruno Haible  <bruno@clisp.org>
27084
27085         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
27086
27087 2005-08-17  Bruno Haible  <bruno@clisp.org>
27088
27089         * modules/mbuiter: New file.
27090         * MODULES.html.sh (Extended multibyte and wide character utilities):
27091         Add mbuiter.
27092
27093 2005-08-17  Bruno Haible  <bruno@clisp.org>
27094
27095         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
27096         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
27097
27098 2005-08-17  Bruno Haible  <bruno@clisp.org>
27099
27100         * m4/strcasestr.m4: New file.
27101
27102 2005-08-17  Bruno Haible  <bruno@clisp.org>
27103
27104         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
27105         * lib/strstr.c: Completely rewritten, with multibyte locale support.
27106
27107 2005-08-17  Bruno Haible  <bruno@clisp.org>
27108
27109         * lib/strcasestr.h: New file.
27110         * lib/strcasestr.c: New file.
27111
27112 2005-08-17  Bruno Haible  <bruno@clisp.org>
27113
27114         * lib/strcasecmp.c: Use mbuiter.h.
27115
27116 2005-08-17  Bruno Haible  <bruno@clisp.org>
27117
27118         * lib/mbuiter.h: New file.
27119
27120 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27121
27122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
27123         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
27124         and gl_GETOPT are both invoked via different paths (as happens
27125         with GNU tar CVS because it uses both argp and getopt), the former
27126         wins.
27127
27128 2005-08-16  Bruno Haible  <bruno@clisp.org>
27129
27130         * modules/tls: New file.
27131         * MODULES.html.sh (Multithreading): Add tls.
27132
27133 2005-08-16  Bruno Haible  <bruno@clisp.org>
27134
27135         * modules/strnlen1: New file.
27136         * MODULES.html.sh (String handling): Add strnlen1.
27137
27138 2005-08-16  Bruno Haible  <bruno@clisp.org>
27139
27140         * modules/strcase (Files): Add m4/mbrtowc.m4.
27141         (Depends-on): Add strnlen1, mbchar.
27142
27143 2005-08-16  Bruno Haible  <bruno@clisp.org>
27144
27145         * modules/mbiter: New file.
27146         * MODULES.html.sh (Extended multibyte and wide character utilities):
27147         Add mbiter.
27148
27149 2005-08-16  Bruno Haible  <bruno@clisp.org>
27150
27151         * modules/mbfile: New file.
27152         * MODULES.html.sh (Extended multibyte and wide character utilities):
27153         Add mbfile.
27154
27155 2005-08-16  Bruno Haible  <bruno@clisp.org>
27156
27157         * modules/mbchar: New file.
27158         * MODULES.html.sh (Extended multibyte and wide character utilities):
27159         New section.
27160
27161 2005-08-16  Bruno Haible  <bruno@clisp.org>
27162
27163         * m4/tls.m4: New file, from GNU gettext.
27164
27165 2005-08-16  Bruno Haible  <bruno@clisp.org>
27166
27167         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
27168         always.
27169         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
27170
27171 2005-08-16  Bruno Haible  <bruno@clisp.org>
27172
27173         * m4/mbiter.m4: New file.
27174
27175 2005-08-16  Bruno Haible  <bruno@clisp.org>
27176
27177         * m4/mbfile.m4: New file.
27178
27179 2005-08-16  Bruno Haible  <bruno@clisp.org>
27180
27181         * m4/mbchar.m4: New file.
27182
27183 2005-08-16  Bruno Haible  <bruno@clisp.org>
27184
27185         * lib/tls.h: New file, from GNU gettext.
27186         * lib/tls.c: New file, from GNU gettext.
27187
27188 2005-08-16  Bruno Haible  <bruno@clisp.org>
27189
27190         * lib/strnlen1.h: New file.
27191         * lib/strnlen1.c: New file.
27192
27193 2005-08-16  Bruno Haible  <bruno@clisp.org>
27194
27195         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
27196         (mbi_init): Update.
27197         (mbi_avail, mbi_advance): Let the iteration end before the terminating
27198         NUL byte, not after it.
27199
27200 2005-08-16  Bruno Haible  <bruno@clisp.org>
27201
27202         * lib/strcase.h (strcasecmp): Add note in comments.
27203         * lib/strncasecmp.c: Use code from strcasecmp.c.
27204         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
27205         (strcasecmp): Work correctly in multibyte locales.
27206
27207 2005-08-16  Bruno Haible  <bruno@clisp.org>
27208
27209         * lib/mbiter.h: New file.
27210
27211 2005-08-16  Bruno Haible  <bruno@clisp.org>
27212
27213         * lib/mbfile.h: New file.
27214
27215 2005-08-16  Bruno Haible  <bruno@clisp.org>
27216
27217         * lib/mbchar.h: New file.
27218         * lib/mbchar.c: New file.
27219
27220 2005-08-16  Bruno Haible  <bruno@clisp.org>
27221
27222         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
27223         the valid ones. Makes the comparison operations transitive:
27224         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
27225         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
27226
27227 2005-08-15  Simon Josefsson  <jas@extundo.com>
27228
27229         * modules/ssize_t (License): Change to 'unlimited'.
27230
27231         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
27232
27233 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27234
27235         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
27236         Add comments for each pending glibc patch.
27237
27238 2005-08-15  Bruno Haible  <bruno@clisp.org>
27239
27240         * lib/regex.h (__restrict_arr): Don't define to __restrict if
27241         __cplusplus is defined.
27242
27243 2005-08-14  Jim Meyering  <jim@meyering.net>
27244
27245         Sync from coreutils.
27246
27247         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
27248         Use the hash-table-based cycle-detection code not just when
27249         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
27250         Reported by James Youngman in
27251         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
27252         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
27253         FTS_TIGHT_CYCLE_CHECK.
27254         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
27255         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
27256         once again.
27257         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
27258         * lib/fts.c (fd_safer): Remove decl.
27259         Include fcntl--.h rather than unistd-safer.h
27260         (fts_safe_changedir): Don't call fd_safer; no longer needed
27261         now that we include fcntl--.h.
27262
27263 2005-08-12  Simon Josefsson  <jas@extundo.com>
27264
27265         * modules/getndelim2: Use ssize_t module.
27266         * modules/getnline: Likewise.
27267         * modules/safe-read: Likewise.
27268         * modules/xreadlink: Likewise.
27269
27270         * modules/ssize_t: New file.
27271
27272 2005-08-12  Simon Josefsson  <jas@extundo.com>
27273
27274         * m4/readline.m4: Look for termcap, curses or ncurses if required.
27275
27276 2005-08-12  Simon Josefsson  <jas@extundo.com>
27277
27278         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27279         ssize_t.
27280
27281 2005-08-12  Simon Josefsson  <jas@extundo.com>
27282
27283         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
27284         readline, getdelim and check_version.
27285         (Support for systems lacking ISO C 99: Sizes of integer types):
27286         Add size_max.
27287
27288 2005-08-12  Bruno Haible  <bruno@clisp.org>
27289
27290         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
27291
27292 2005-08-11  Simon Josefsson  <jas@extundo.com>
27293
27294         * modules/readline: New file.
27295
27296         * modules/strnlen (Files): Add strnlen.h.
27297
27298 2005-08-11  Simon Josefsson  <jas@extundo.com>
27299
27300         * m4/readline.m4: New file.
27301
27302 2005-08-11  Simon Josefsson  <jas@extundo.com>
27303
27304         * lib/readline.h, readline.c: New file.
27305
27306 2005-08-11  Simon Josefsson  <jas@extundo.com>
27307
27308         * doc/gnulib.texi (Initial import, Finishing touches): Mention
27309         gl_AVOID.
27310
27311 2005-08-11  Bruno Haible  <bruno@clisp.org>
27312
27313         * lib/strnlen.h (strnlen): Change parameter name to match comment.
27314
27315 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
27316
27317         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
27318
27319 2005-08-10  Simon Josefsson  <jas@extundo.com>
27320
27321         * tests/test-iconvme.c: New file.
27322
27323 2005-08-10  Simon Josefsson  <jas@extundo.com>
27324
27325         * m4/strnlen.m4: New file.
27326
27327         * m4/strndup.m4: Don't check for strnlen declaration, done in
27328         strnlen.m4.
27329
27330 2005-08-10  Simon Josefsson  <jas@extundo.com>
27331
27332         * lib/strndup.c: Use strnlen.h.
27333
27334         * lib/strnlen.h: New file.
27335
27336 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27337
27338         * README: Typos.
27339
27340 2005-08-02  Simon Josefsson  <jas@extundo.com>
27341
27342         * modules/readline: New file.
27343
27344 2005-08-02  Simon Josefsson  <jas@extundo.com>
27345
27346         * modules/getdelim: New file.
27347
27348         * modules/getline: Rewrite, don't use getndelim2.
27349
27350 2005-08-02  Simon Josefsson  <jas@extundo.com>
27351
27352         * m4/getline.m4: Separate out getdelim stuff into separate module.
27353
27354         * m4/getdelim.m4: New file.
27355
27356 2005-08-02  Simon Josefsson  <jas@extundo.com>
27357
27358         * lib/getline.h, getline.c: Rewrite.
27359
27360         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
27361
27362 2005-07-31  Bruno Haible  <bruno@clisp.org>
27363
27364         * lib/lock.h (gl_lock_initializer): New macro.
27365         (gl_lock_define_initialized): Use it.
27366         (gl_rwlock_initializer): New macro.
27367         (gl_rwlock_define_initialized): Use it.
27368         (gl_recursive_lock_initializer): New macro.
27369         (gl_recursive_lock_define_initialized): Use it.
27370
27371 2005-07-30  Karl Berry  <karl@gnu.org>
27372
27373         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
27374         Report from Ben Pfaff, regarding getopt.
27375
27376 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
27377
27378         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
27379         normal way.
27380         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
27381         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
27382         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
27383         (gl_GETOPT): Use the new macros.  Most of the implementation
27384         is moved to the new macros.  This is for programs like Emacs
27385         that don't want all the functionality of gl_GETOPT.
27386
27387 2005-07-26  Bruno Haible  <bruno@clisp.org>
27388
27389         * m4/lock.m4: Update from GNU gettext.
27390
27391 2005-07-26  Bruno Haible  <bruno@clisp.org>
27392
27393         * lib/lock.h: Update from GNU gettext.
27394         * lib/lock.c: Update from GNU gettext.
27395
27396 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27397
27398         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
27399         obsolescent AC_TRY_RUN.  Include the default includes files, for
27400         'exit'.
27401
27402 2005-07-24  Bruno Haible  <bruno@clisp.org>
27403
27404         * modules/visibility: New file.
27405         * MODULES.html.sh (Misc): Add visibility.
27406
27407 2005-07-24  Bruno Haible  <bruno@clisp.org>
27408
27409         * m4/visibility.m4: New file.
27410
27411 2005-07-24  Bruno Haible  <bruno@clisp.org>
27412
27413         * doc/visibility.texi: New file.
27414
27415 2005-07-22  Bruno Haible  <bruno@clisp.org>
27416
27417         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
27418         $(ALLOCA_H), redundant through BUILT_SOURCES.
27419         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
27420         redundant through BUILT_SOURCES.
27421         * modules/byteswap (Makefile.am): Remove explicit dependency on
27422         $(BYTESWAP_H), redundant through BUILT_SOURCES.
27423         * modules/fnmatch (Makefile.am): Remove explicit dependency on
27424         $(FNMATCH_H), redundant through BUILT_SOURCES.
27425         * modules/getopt (Makefile.am): Remove explicit dependency on
27426         $(GETOPT_H), redundant through BUILT_SOURCES.
27427         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
27428         redundant through BUILT_SOURCES.
27429         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
27430         redundant through BUILT_SOURCES.
27431         * modules/stdbool (Makefile.am): Remove explicit dependency on
27432         $(STDBOOL_H), redundant through BUILT_SOURCES.
27433         * modules/stdint (Makefile.am): Remove explicit dependency on
27434         $(STDINT_H), redundant through BUILT_SOURCES.
27435         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
27436         Remove explicit dependency on $(SYSEXITS_H).
27437         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
27438
27439 2005-07-18  Simon Josefsson  <jas@extundo.com>
27440
27441         * lib/check-version.c (check_version): Accept identical versions too.
27442
27443 2005-07-18  Bruno Haible  <bruno@clisp.org>
27444
27445         * modules/lock: New file.
27446         * MODULES.html.sh (Multithreading): New section.
27447
27448 2005-07-18  Bruno Haible  <bruno@clisp.org>
27449
27450         * m4/lock.m4: New file, from GNU gettext.
27451
27452 2005-07-18  Bruno Haible  <bruno@clisp.org>
27453
27454         * lib/lock.h: New file, from GNU gettext.
27455         * lib/lock.c: New file, from GNU gettext.
27456
27457 2005-07-18  Bruno Haible  <bruno@clisp.org>
27458
27459         * lib/lock.h (gl_once_t): New type.
27460         (gl_once_define, gl_once): New macros.
27461         * lib/lock.c (fresh_once): New variable.
27462         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
27463         functions.
27464
27465 2005-07-16  Simon Josefsson  <jas@extundo.com>
27466
27467         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
27468         workaround, suggested by Bruno.
27469
27470 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27471
27472         * modules/xalloc (Depends-on): Add xalloc-die.
27473         * modules/xvasprintf (Depends-on): Add xalloc-die.
27474
27475 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27476
27477         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
27478         with a minor change.
27479
27480 2005-07-15  Bruno Haible  <bruno@clisp.org>
27481
27482         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
27483         When using lib/poll.c, define poll as rpl_poll.
27484
27485 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
27486
27487         * modules/argp (Depends-on): Remove unlocked-io.
27488
27489 2005-07-14  Derek Price  <derek@ximbiot.com>
27490
27491         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
27492         for glob symlink bug.
27493
27494 2005-07-14  Bruno Haible  <bruno@clisp.org>
27495
27496         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
27497         Instead, test for *_unlocked function declarations directly.
27498
27499 2005-07-11  Simon Josefsson  <jas@extundo.com>
27500
27501         * modules/size_max: New file.
27502
27503         * modules/xsize: Depend on size_max module for size_max.m4.
27504
27505 2005-07-11  Simon Josefsson  <jas@extundo.com>
27506
27507         * lib/size_max.h: New file.
27508
27509 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27510
27511         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
27512         copyright symbol and the year.
27513         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
27514         (version_etc_va): Use parameterized copyright notice.
27515         Reword to conform to the current GNU coding standards.
27516
27517 2005-07-11  Karl Berry  <karl@gnu.org>
27518
27519         * doc/gnulib.texi (Quoting): new node.
27520         (Initial import): more info, from Patrice.
27521
27522 2005-07-11  Bruno Haible  <bruno@clisp.org>
27523
27524         * gnulib-tool (func_usage): Document option --avoid.
27525         (Command line options): Handle --avoid.
27526         (func_acceptable): New function.
27527         (func_modules_transitive_closure): Use it.
27528
27529 2005-07-11  Bruno Haible  <bruno@clisp.org>
27530
27531         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
27532         Reported by Jim Meyering.
27533
27534 2005-07-10  Bruno Haible  <bruno@clisp.org>
27535
27536         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
27537         Needed when size_t is smaller than 'unsigned int'.
27538         Reported by Paul Eggert.
27539
27540 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27541
27542         * modules/argp (Depends-on): Add unlocked-io
27543
27544 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27545
27546         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
27547         block of defines.
27548
27549 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27550
27551         * config/srclist.txt: Comment out regcomp.c, since we have a porting
27552         fix now.
27553
27554 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
27555         and Paul Eggert  <eggert@cs.ucla.edu>
27556
27557         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
27558         in wint_t, not wchar_t.  Remove now-unnecessary cast.
27559
27560 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27561
27562         * modules/regex (Files): Add lib/regex_internal.c,
27563         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
27564         (Depends-on): Add extensions.
27565         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
27566
27567 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27568
27569         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
27570         pathconf.
27571         * m4/same.m4 (gl_SAME): Likewise.
27572         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
27573
27574         * m4/regex.m4: Adjust to new libc regex implementation.
27575         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
27576         all the .c and .h parts of (the new) regex.
27577         Quote the m4 stuff better.
27578         Check for RE_ICASE bug of old gnulib.
27579         Check for REG_STARTEND of recent libc.
27580         Rename local variables from jm_* to gl_*.
27581         Quote operand of "test -f".
27582         Say "recent enough" version of libc, not "version 2".
27583         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
27584         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
27585         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
27586         Remove check for btowc, isascii.
27587         Require AM_LANGINFO_CODESET.
27588
27589 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27590
27591         * lib/regex.c, regex.h: Sync from libc.
27592         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
27593         * lib/regexec.c:
27594         New files, synced from libc, except that regex_internal.h
27595         currently has a small porting fix.
27596
27597 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27598
27599         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
27600         regex_internal.c, regexec.c.
27601         Add regex_internal.h too, but as a comment, since the libc version
27602         is currently broken in gnulib mode.
27603
27604 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27605
27606         Support programs like Emacs that use gnulib but not gettext.
27607         * MODULES.html.sh (Internationalization functions): Add gettext-h.
27608         * modules/gettext-h: New file.
27609         * modules/gettext (Files): Remove lib/gettext.h.
27610         (Depends-on): Add gettext-h.
27611         (Makefile.am): Remove lib_SOURCES.
27612         * modules/argmatch, modules/c-stack, modules/closeout:
27613         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
27614         * modules/execute, modules/file-type, modules/getaddrinfo:
27615         * modules/getopt, modules/human, modules/javacomp:
27616         * modules/javaexec, modules/mkdir-p, modules/obstack:
27617         * modules/openat, modules/pagealign_alloc, modules/pipe:
27618         * modules/quotearg, modules/regex, modules/rpmatch:
27619         * modules/unicodeio, modules/userspec, modules/version-etc:
27620         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
27621         * modules/xsetenv:
27622         Depend on gettext-h, not gettext.
27623
27624 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27625
27626         * gnulib-tool (func_import): Add support for 'public domain' license.
27627         * modules/alloca, modules/atexit, modules/memmove:
27628         Now public domain, not GPL.
27629         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
27630         * modules/realloc, modules/strerror, modules/strtod:
27631         Now LGPL, not GPL.
27632
27633 2005-07-05  Bruno Haible  <bruno@clisp.org>
27634
27635         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
27636         autoconf CVS. Needed for mingw.
27637
27638 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27639
27640         Remove the dependency of the strftime module on the tzset module.
27641         * modules/strftime (Depends-on): Remove dependency on tzset.
27642
27643 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27644
27645         Remove the dependency of the strftime module on the tzset module.
27646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
27647         gl_FUNC_TZSET_CLOBBER.
27648
27649 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27650
27651         Remove the dependency of the strftime module on the tzset module.
27652         * lib/strftime.c (my_strftime)
27653         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
27654         Copy the input structure, to work around some of the bug with
27655         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
27656         Solaris releases, you should also use the tzset module, but we won't
27657         require it as a dependency any more since we don't want LGPLed code
27658         to depend on GPLed code.
27659
27660 2005-07-02  Jim Meyering  <jim@meyering.net>
27661
27662         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
27663         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
27664         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
27665         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
27666
27667 2005-07-02  Jim Meyering  <jim@meyering.net>
27668
27669         * lib/backupfile.c (backup_args): Change a `0' to NULL.
27670
27671 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27672
27673         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
27674         declares only 'struct timespec;' (!).
27675
27676 2005-07-01  Jim Meyering  <jim@meyering.net>
27677
27678         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
27679         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
27680         * lib/save-cwd.c, tempname.c:
27681         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27682         and don't include <sys/file.h>).
27683
27684 2005-06-29  Jim Meyering  <jim@meyering.net>
27685
27686         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
27687         type name.  Use the variable name instead.
27688         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27689         Likewise.
27690
27691 2005-06-28  Simon Josefsson  <jas@extundo.com>
27692
27693         * modules/check-version (Files): Add check-version.m4.
27694
27695 2005-06-28  Simon Josefsson  <jas@extundo.com>
27696
27697         * m4/check-version.m4: New file, suggested by Jim Meyering
27698         <jim@meyering.net>.
27699
27700 2005-06-28  Simon Josefsson  <jas@extundo.com>
27701
27702         * lib/check-version.h, lib/check-version.c: New files.
27703
27704 2005-06-28  Simon Josefsson  <jas@extundo.com>
27705
27706         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
27707         collision with global variable.  Better indentation.  Don't
27708         increment buffer pointer beyond buffer end.  Based on comments
27709         from Paul Eggert <eggert@cs.ucla.edu>.
27710
27711         * lib/base64.h: Indent.
27712
27713 2005-06-28  Simon Josefsson  <jas@extundo.com>
27714
27715         * doc/gnulib.texi (Library version handling): New section.
27716
27717 2005-06-28  Jim Meyering  <jim@meyering.net>
27718
27719         * check-module (find_included_lib_files): Hard-code another
27720         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
27721         but modules/fts-lgpl (correctly) does not list those files.
27722
27723         * modules/canonicalize (Files): Add lib/pathmax.h.
27724
27725 2005-06-25  Simon Josefsson  <jas@extundo.com>
27726
27727         * modules/check-version: New file.
27728
27729 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27730
27731         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
27732         initializer of struct addrinfo, as an indication that we don't
27733         care how many members the structure has.
27734
27735 2005-06-24  Derek Price  <derek@ximbiot.com>
27736         and Bruno Haible  <bruno@clisp.org>
27737
27738         Remove stat module & update lstat.
27739         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
27740         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27741         * m4/stat.m4: Remove this file.
27742
27743 2005-06-24  Derek Price  <derek@ximbiot.com>
27744         and Bruno Haible  <bruno@clisp.org>
27745
27746         Remove stat module & update lstat.
27747         * lib/stat.c: Remove this file...
27748         (slash_aware_lstat): ...moving this content and its support...
27749         * lib/lstat.c (rpl_lstat): ...into here.
27750         * lib/lstat.h: New file.
27751
27752 2005-06-24  Derek Price  <derek@ximbiot.com>
27753         and Bruno Haible  <bruno@clisp.org>
27754
27755         Remove stat module & update lstat.
27756         * config/srclist.txt (libc sources): Remove stat.
27757
27758 2005-06-24  Derek Price  <derek@ximbiot.com>
27759         and Bruno Haible  <bruno@clisp.org>
27760
27761         Remove stat module & update lstat.
27762         * MODULES.html.sh (stat): Remove.
27763         * MODULES.html: Regenerated.
27764         * modules/lstat (Description): Correct function name.
27765         (Files): Add "lstat.h".
27766         (Depends-on): Remove stat, add xalloc, stat-macros.
27767         * modules/stat: Remove this file.
27768         (Include): Add "lstat.h", remove <sys/stat.h>.
27769
27770 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27771
27772         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
27773         (ranged_convert): Don't save conversion in a temporary struct.
27774         This causes a warning with GCC 4.0.0, and anyway in the typical
27775         case it's not worth the extra 100 bytes or so of code.
27776         (ranged_convert, __mktime_internal): When calling a function via a
27777         pointer P, use P () rather than (*P) (), as we now assume C89 or
27778         better.
27779
27780 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27781
27782         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
27783         "who -r" failed to give output.  Problem reported by Tim Waugh.
27784
27785         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
27786         (xcalloc): Use it to avoid needless tests.
27787         Problem reported by Jim Meyering.
27788
27789 2005-06-20  Derek Price  <derek@ximbiot.com>
27790
27791         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
27792         unnecessary for Autoconfs > 2.59c.
27793
27794 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27795
27796         * lib/argp.h (__option_is_short): Check upper limit of
27797         __key. Isprint() requires its argument to have the value
27798         of an unsigned char or EOF.
27799
27800 2005-06-16  Jim Meyering  <jim@meyering.net>
27801
27802         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
27803         when either N or S is zero.
27804
27805 2005-06-16  Derek Price  <derek@ximbiot.com>
27806
27807         * m4/bison.m4: Declare YACC & YFLAGS precious.
27808
27809 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
27810
27811         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
27812         multibyte string or pattern, fall back on unibyte matching.
27813         Problem reported by James Youngman.
27814
27815 2005-06-08  Bruno Haible  <bruno@clisp.org>
27816
27817         * modules/csharpcomp: New file.
27818         * MODULES.html.sh (C#): Add csharpcomp.
27819
27820 2005-06-08  Bruno Haible  <bruno@clisp.org>
27821
27822         * m4/csharpcomp.m4: New file, from GNU gettext.
27823
27824 2005-06-08  Bruno Haible  <bruno@clisp.org>
27825
27826         * lib/csharpcomp.h: New file, from GNU gettext.
27827         * lib/csharpcomp.c: New file, from GNU gettext.
27828         * lib/csharpcomp.sh.in: New file, from GNU gettext.
27829
27830 2005-06-08  Bruno Haible  <bruno@clisp.org>
27831
27832         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
27833         warning on mingw.
27834
27835 2005-06-07  Derek Price  <derek@ximbiot.com>
27836
27837         Sync from CVS.
27838         * lib/glob_.h: Indent nested #ifdef.
27839
27840 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
27841
27842         Sync from coreutils.
27843         Use "file name" when talking about file names, instead of "filename"
27844         or "path", as per the GNU coding standards.
27845         * lib/mkdir-p.c: Renamed from makepath.c.
27846         (make_dir_parents): Renamed from make_path.  All callers changed.
27847         * lib/mkdir-p.h: Likewise.  All includers changed.
27848         * lib/filenamecat.c: Renamed from path-concat.c.
27849         (file_name_concat): Renamed from path_concat.  All callers changed.
27850         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
27851         * lib/filenamecat.h: Likewise.  All includers changed.
27852         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
27853         in comments or local variable names.
27854         * lib/basename.c: Likewise.
27855         * lib/canonicalize.c, canonicalize.h: Likewise.
27856         * lib/dirname.c, dirname.h: Likewise.
27857         * lib/euidaccess.c: Likewise.
27858         * lib/exclude.c: Likewise
27859         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
27860         * lib/fsusage.c, fsuage.h: Likewise.
27861         * lib/fts.c, fts_.h: Likewise.
27862         * lib/getcwd.c: Likewise.
27863         * lib/getloadavg.c: Likewise.
27864         * lib/mkstemp.c: Likewise.
27865         * lib/mountlist.c, mountlist.h: Likewise.
27866         * lib/openat.c, openat.h: Likewise.
27867         * lib/readlink-stub.c: Likewise.
27868         * lib/readutmp.c, readutmp.h: Likewise.
27869         * lib/rename.c: Likewise.
27870         * lib/rmdir.c: Likewise.
27871         * lib/same.c: Likewise.
27872         * lib/savedir.c: Likewise.
27873         * lib/stripslash.c: Likewise.
27874         * lib/tempname.c: Likewise.
27875         * lib/xreadlink.c: Likewise.
27876         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
27877         All uses changed.
27878         * lib/exclude.h: Likewise.
27879
27880         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
27881         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27882         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
27883         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27884         * lib/pathmax.h: Include <limits.h> unconditionally, since other
27885         files have been getting away with it for years (MORE/BSD 4.3
27886         is extinct now).
27887         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
27888         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27889
27890         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
27891         Define to 256, not 255, as per modern POSIX.
27892
27893 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
27894
27895         Sync from coreutils.
27896         Use "file name" when talking about file names, instead of "filename"
27897         or "path", as per the GNU coding standards.
27898         * MODULES.html.sh: mkdir-p renamed from makepath.
27899         filenamecat renamed from path-concat.
27900         * modules/filenamecat: Renamed from modules/path-concat.
27901         (Files): filenamecat.h and filenamecat.c renamed from
27902         path-concat.h and path-concat.c.
27903         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
27904         (Include): filenamecat.h, not path-concat.h.
27905         * modules/mkdir-p: Renamed from modules/makepath.
27906         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
27907         makepath.c.
27908         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
27909         (Include): mkdir-p.h, not makepath.h.
27910
27911 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
27912
27913         Sync from coreutils.
27914         * m4/mkdir-p.m4: Renamed from makepath.m4.
27915         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
27916         Rename files from makepath.c to mkdir-p.c, and from
27917         makepath.h to mkdir-p.h.
27918         * m4/filenamecat.m4: Renamed from path-concat.m4.
27919         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
27920         Rename files from path-concat.c to filenamecat.c,
27921         and from path-concat.h to filenamecat.h.
27922         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
27923         "file name" in local variables or comments.
27924         * m4/rename.m4: Likewise.
27925
27926 2005-06-01  Bruno Haible  <bruno@clisp.org>
27927
27928         * modules/csharpexec: New file.
27929         * MODULES.html.sh (C#): New section.
27930
27931 2005-06-01  Bruno Haible  <bruno@clisp.org>
27932
27933         * m4/csharp.m4: New file, from GNU gettext.
27934         * m4/csharpexec.m4: New file, from GNU gettext.
27935
27936 2005-06-01  Bruno Haible  <bruno@clisp.org>
27937
27938         * lib/csharpexec.h: New file, from GNU gettext.
27939         * lib/csharpexec.c: New file, from GNU gettext.
27940         * lib/csharpexec.sh.in: New file, from GNU gettext.
27941
27942 2005-05-31  Derek Price  <derek@ximbiot.com>
27943             Paul Eggert  <eggert@cs.ucla.edu>
27944
27945         Sync from cvs.
27946         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
27947
27948 2005-05-31  Derek Price  <derek@ximbiot.com>
27949             Paul Eggert  <eggert@cs.ucla.edu>
27950
27951         Sync from cvs.
27952         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
27953
27954 2005-05-29  Derek Price  <derek@ximbiot.com>
27955
27956         * config/srclist.txt (glob_.h, glob.c): Add these files.
27957
27958 2005-05-29  Derek Price  <derek@ximbiot.com>
27959
27960         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
27961         * modules/glob: New file.
27962         * modules/getlogin_r: Add link to POSIX spec in description.
27963
27964 2005-05-29  Derek Price  <derek@ximbiot.com>
27965             Paul Eggert  <eggert@cs.ucla.edu>
27966
27967         * m4/glob.m4: New file.
27968
27969 2005-05-29  Derek Price  <derek@ximbiot.com>
27970             Paul Eggert  <eggert@cs.ucla.edu>
27971
27972         * lib/glob_.h, lib/glob.c: New files.
27973
27974 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27975
27976         * modules/fts (Files): Remove m4/inttypes-pri.m4.
27977         * modules/fts-lgpl (Depends-on): Remove gettext.
27978
27979 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27980
27981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
27982         and don't require gt_INTTYPES_PRI.
27983
27984 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27985
27986         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
27987
27988         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
27989         the configuration hassle isn't worth it.
27990         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
27991         (LONGEST_MODIFIER, PRIuMAX): Remove.
27992
27993 2005-05-27  Bruno Haible  <bruno@clisp.org>
27994
27995         * lib/getlogin_r.h: Remove second include of <stddef.h>.
27996
27997 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
27998
27999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
28000         _POSIX_PTHREAD_SEMANTICS for Solaris.
28001
28002 2005-05-25  Derek Price  <derek@ximbiot.com>
28003
28004         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
28005
28006 2005-05-25  Derek Price  <derek@ximbiot.com>
28007             Paul Eggert  <eggert@cs.ucla.edu>
28008
28009         * modules/getlogin_r, m4/getlogin_r.m4: New files.
28010         * lib/getlogin_r.c, getlogin_r.h: New files.
28011
28012 2005-05-25  Bruno Haible  <bruno@clisp.org>
28013             Derek Price  <derek@ximbiot.com>
28014
28015         * lib/getlogin_r.h: Simplify API documentation.
28016
28017 2005-05-23  Derek Price  <derek@ximbiot.com>
28018
28019         * modules/minmax (Files): Add m4/minmax.m4.
28020         (configure.ac): Add gl_MINMAX.
28021
28022 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
28023
28024         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
28025         so that unistd-safer.h (GPL'ed code) need not be included.
28026
28027 2005-05-22  Bruno Haible  <bruno@clisp.org>
28028
28029         * m4/minmax.m4: New file.
28030         Based on a patch by Derek Price <derek@ximbiot.com>.
28031
28032 2005-05-22  Bruno Haible  <bruno@clisp.org>
28033
28034         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
28035         (INT64_MIN): Fix definition.
28036         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28037
28038         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
28039         NEED_SIGNED_INT_TYPES.
28040
28041         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
28042         HAVE_SYSTEM_INTTYPES.
28043
28044 2005-05-22  Bruno Haible  <bruno@clisp.org>
28045
28046         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
28047         Also include <sys/param.h> if it defines MIN, MAX.
28048         Based on a patch by Derek Price <derek@ximbiot.com>.
28049
28050 2005-05-21  Jim Meyering  <jim@meyering.net>
28051
28052         * modules/fts (Files): Add m4/inttypes-pri.m4.
28053         (Depends-on): Add lstat and remove gettext.  Alphabetize.
28054
28055 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28056
28057         New fts module.
28058         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
28059         (setup_dir, free_dir): New functions.
28060         (enter_dir, leave_dir): Define trivial
28061         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
28062         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
28063         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
28064         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
28065         Move to fts-cycle.c.
28066         (fts_open): Use setup_dir.
28067         (fts_close): Use free_dir.
28068         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
28069         This adds a label and some gotos, but the alternatives were messier.
28070         Check for memory allocation failure when entering a dir.
28071         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
28072         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
28073         (FTS): New member fts_cycle, that is a union that contains the
28074         old active_dir_ht and cycle_state.  All uses changed to mention
28075         fts_cycle.ht and fts_cycle.state.
28076         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
28077         fts.c, with the following changes:
28078         (setup_dir, free_dir): New functions.
28079         (enter_dir): Now returns bool.  Return true if successful, false
28080         if memory exhausted.  All callers changed.
28081         Do not bother partly cleaning up on
28082         memory allocation failure; that is free_dir's job.
28083         However, free ad if hash_insert fails, to avoid memory leak.
28084         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
28085         fts->fts_options to see which union member to use.
28086
28087 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28088
28089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
28090         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
28091
28092 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28093
28094         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
28095
28096 2005-05-20  Jim Meyering  <jim@meyering.net>
28097
28098         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
28099         Now a macro, to pacify GCC.
28100
28101 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
28102
28103         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
28104         of -1.
28105
28106 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
28107
28108         * lib/chown.c (rpl_chown): Return -1 on failure.
28109
28110 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28111
28112         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
28113         Don't check for stddef.h.
28114         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
28115         don't use its results.
28116         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
28117         since we include them unconditionally.  Don't require
28118         AM_STDBOOL_H, since stdbool is a prerequisite.
28119         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
28120         since we assume C89 or better.
28121         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
28122         as we don't use their results.
28123         Don't check for fchdir, memmove, memset, strrchr, as we use
28124         them unconditionally.
28125         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
28126         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
28127
28128 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28129
28130         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
28131         Include <stddef.h> unconditionally, since we assume C89 now.
28132         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
28133         * lib/fts.c: Include fts_.h first, to check interface.
28134         Do not include intprops.h; no longer needed.
28135         Include cycle-check.h and hash.h, since fts_.h no longer does.
28136         Remove unnecessary casts of closedir to void.
28137         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
28138         decide whether to decrement nlinks.
28139         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
28140         (FTS): Use struct hash_table * instead of Hash_table, so that
28141         we no longer need to include hash.h here.
28142
28143 2005-05-18  Jim Meyering  <jim@meyering.net>
28144
28145         * modules/dirfd (License): Change to LGPL.  Most of the code
28146         is already in the public domain.
28147
28148 2005-05-18  Jim Meyering  <jim@meyering.net>
28149
28150         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
28151         Reported by Yoann Vandoorselaere.
28152
28153 2005-05-17  Jim Meyering  <jim@meyering.net>
28154
28155         * m4/fts.m4: New file, from coreutils.
28156
28157 2005-05-17  Jim Meyering  <jim@meyering.net>
28158
28159         * lib/fts.c, lib/fts_.h: New files, from coreutils.
28160
28161 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28162
28163         Sync from coreutils.
28164         * m4/unlinkdir.m4: New file.
28165
28166 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28167
28168         Sync from coreutils.
28169         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
28170         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
28171         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
28172         White space changes only.
28173         * lib/makepath.c (make_path): Port to hosts where leading "//" is
28174         special.
28175         * lib/yesno.c: Include getline.h, not ctype.h.
28176         (yesno): Don't remove leading white space; POSIX doesn't allow it.
28177         Use getline to remove arbitrary restriction on response length.
28178
28179 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28180
28181         * config/srclist-update: Spell out "Street" in FSF postal
28182         mail address; this is the style the FSF seems to prefer.
28183
28184         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
28185         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
28186         this updates FSF postal mail address.
28187
28188         Sync from coreutils.
28189         * modules/unlinkdir: New file.
28190         * modules/yesno (Depends-on): Add getline.
28191         * MODULES.html.sh (File system functions): Add unlinkdir.
28192
28193 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28194
28195         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
28196         lib/strsep.h:
28197         Change the initial comment to refer to GPL, not LGPL.
28198         gnulib-tool will change it to LGPL as needed.
28199
28200         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
28201         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
28202         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
28203         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
28204         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
28205         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
28206         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
28207         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
28208         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
28209         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
28210         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
28211         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
28212         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
28213         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
28214         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
28215         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
28216         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
28217         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
28218         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
28219         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
28220         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
28221         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
28222         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
28223         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
28224         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
28225         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
28226         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
28227         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
28228         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
28229         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
28230         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
28231         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
28232         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
28233         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
28234         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
28235         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
28236         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
28237         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
28238         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
28239         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
28240         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
28241         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
28242         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
28243         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
28244         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
28245         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
28246         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
28247         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
28248         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
28249         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
28250         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28251         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
28252         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
28253         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
28254         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
28255         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
28256         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
28257         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
28258         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
28259         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
28260         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
28261         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
28262         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
28263         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
28264         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
28265         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
28266         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
28267         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
28268         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
28269         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
28270         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
28271         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
28272         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
28273         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
28274         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
28275         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
28276         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
28277         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
28278         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
28279         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
28280         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
28281         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
28282         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
28283         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
28284         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
28285         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
28286         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
28287         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
28288         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
28289         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
28290         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
28291         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
28292         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
28293         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
28294         lib/yesno.c, lib/yesno.h:
28295         Update FSF postal mail address.
28296
28297 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28298
28299         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
28300         tests/test-memmem.c, tests/test-stpncpy.c:
28301         Update FSF postal mail address.
28302
28303 2005-05-13  Bruno Haible  <bruno@clisp.org>
28304
28305         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
28306         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
28307         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
28308         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
28309         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
28310         Add support for 64-bit integers in the MSVC compiler.
28311
28312 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28313
28314         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
28315
28316 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
28317
28318         * gnulib-tool (func_import): Sort and uniquify recommended includes.
28319
28320 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28321
28322         * doc/getdate.texi (General date syntax): Don't say that date
28323         date --iso-8601=ns generates acceptable dates; it doesn't yet.
28324         Problem reported by Nic Ferrier.
28325
28326 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28327
28328         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
28329         specified in ai_socktype. Fix invalid ai_protocol
28330         check. ai_protocol is usually set to 0 or depending on
28331         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
28332         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
28333         ai_socktype / ai_protocol in the returned addrinfo structure.
28334
28335 2005-05-10  Simon Josefsson  <jas@extundo.com>
28336
28337         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
28338         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28339
28340 2005-05-10  Karl Berry  <karl@gnu.org>
28341
28342         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
28343         (from http://www.gnu.org/licenses).
28344         * doc/COPYING.LIB: also rename to COPYING.LESSER.
28345         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
28346         fdl.texi suffices.
28347
28348 2005-05-10  Karl Berry  <karl@gnu.org>
28349
28350         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
28351         (COPYING.DOC): remove.
28352
28353         * config/srclist-update: new FSF address.
28354
28355 2005-05-10  Derek Price  <derek@ximbiot.com>
28356
28357         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
28358         possible.
28359
28360 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28361             Bruno Haible  <bruno@clisp.org>
28362
28363         * modules/inet_ntop: New file.
28364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28365         inet_ntop.
28366
28367 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28368             Bruno Haible  <bruno@clisp.org>
28369
28370         * m4/inet_ntop.m4: New file.
28371
28372 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28373             Bruno Haible  <bruno@clisp.org>
28374
28375         * lib/inet_ntop.h: New file.
28376         * lib/inet_ntop.c: New file, from glibc with modifications.
28377
28378 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
28379
28380         * modules/time_r (License): Change to LGPL.
28381         * modules/extensions (License): Change to LGPL.  Actually,
28382         the license is more permissive than that, but currently gnulib-tool
28383         doesn't know how to handle more-permissive licenses.
28384
28385         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
28386         Problem reported by Dave Love.
28387
28388 2005-05-08  Jim Meyering  <jim@meyering.net>
28389
28390         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
28391         blank.
28392
28393 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28394
28395         * modules/argmatch (Depends-on): Add stdbool.
28396         * modules/backupfile (Depends-on): Likewise.
28397         * modules/chdir-long (Depends-on): Likewise.
28398         * modules/closeout (Depends-on): Likewise.
28399         * modules/cycle-check (Depends-on): Likewise.
28400         * modules/dirname (Depends-on): Likewise.
28401         * modules/fnmatch (Depends-on): Likewise.
28402         * modules/fsusage (Depends-on): Likewise.
28403         * modules/fwriteerror (Depends-on): Likewise.
28404         * modules/getcwd (Depends-on): Likewise.
28405         * modules/getloadavg (Depends-on): Likewise.
28406         * modules/hard-locale (Depends-on): Likewise.
28407         * modules/makepath (Depends-on): Likewise.
28408         * modules/mountlist (Depends-on): Likewise.
28409         * modules/nanosleep (Depends-on): Likewise.
28410         * modules/posixtm (Depends-on): Likewise.
28411         * modules/quotearg (Depends-on): Likewise.
28412         * modules/readtokens (Depends-on): Likewise.
28413         * modules/readtokens0 (Depends-on): Likewise.
28414         * modules/readutmp (Depends-on): Likewise.
28415         * modules/save-cwd (Depends-on): Likewise.
28416         * modules/strftime (Depends-on): Likewise.
28417         * modules/userspec (Depends-on): Likewise.
28418         * modules/utimecmp (Depends-on): Likewise.
28419         * modules/xgetcwd (Depends-on): Likewise.
28420         * modules/xnanosleep (Depends-on): Likewise.
28421         * modules/xstrtod (Depends-on): Likewise.
28422         * modules/yesno (Depends-on): Likewise.
28423
28424 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28425
28426         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
28427         needless checks.
28428
28429 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28430
28431         Merge from coreutils.  Among other things,
28432         add bulletproofing for cases where stdin, stdout, or stderr are closed.
28433         * lib/fd-safer.c: New file.
28434         * lib/fcntl-safer.h, open-safer.c: Remove.
28435         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
28436         * lib/dup-safer.c: Include unistd-safer.h first.
28437         Don't include errno.h.
28438         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
28439         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
28440         * lib/file-type.c: Rely on file-type.h change.
28441         * lib/getloadavg.c: Include unistd-safer.h.
28442         (getloadavg): Use safer open.
28443         * lib/getusershell.c: Include "stdio-safer.h".
28444         (getusershell): Use safer fopen.
28445         * lib/long-options.c (long_options): Use NULL rather than 0.
28446         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
28447         'free'.
28448         * lib/modechange.c: Likewise.
28449         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
28450         (MODE_DONE): New constant.
28451         (struct mode_change): Remove 'next' member.
28452         (make_node_op_equals): New function; like the old one of the
28453         same name, except it allocates an array.
28454         (mode_compile, mode_create_from_ref): Use it.
28455         (mode_compile): Allocate result as an array, not a linked list.
28456         Parse octal string ourself, so that we catch mistakes like "+0".
28457         (mode_adjust): Arg is an array, not a linked list.
28458         * lib/modechange.c: Include stat-macros.h, xalloc.h.
28459         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
28460         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
28461         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
28462         Remove.  This is now stat-macros.h's job.
28463         (talloc): Remove.  All callers replaced by xalloc, so that
28464         our invokers don't have to worry about reporting memory failures.
28465         (make_node_op_equals): Remove.
28466         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28467         New constants.
28468         (struct mode_change): Moved here from modechange.h.
28469         (mode_append_entry): Remove.
28470         (mode_compile): Remove MASKED_OPS arg, since it encouraged
28471         apps to have incorrect behavior.  Use simpler algorithm for head
28472         and tail.  Don't futz with umask; that's now the job of mode_adjust.
28473         Detect more invalid usages rather than having somewhat-random behavior.
28474         Don't insert an "a=" action, as that leads to incorrect behavior.
28475         (mode_compile, mode_create_from_ref): Return NULL on error instead
28476         of an enum, since now there's only one way to have an error.  All
28477         callers changed.
28478         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
28479         at the correct time.  Simplify calculation of "+u" and its ilk.
28480         Don't mishandle "+X".
28481         (mode_free): Remove "register" and localize decls.
28482         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28483         (struct mode_change): Move to modechange.c; callers don't
28484         need to see this stuff.
28485         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
28486         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
28487         (mode_change, mode_adjust): Reflect the new signatures noted above.
28488         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
28489         that might redefine system include files.
28490         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
28491         (my_usleep): Use NULL rather than (void *) 0.
28492         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
28493         Use siginterrupt to specify that system calls should be interrupted.
28494         (rpl_nanosleep): Move initialization of suspended closer to call of
28495         my_usleep.
28496         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
28497         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
28498         (desirable_utmp_entry): New function.
28499         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
28500         using x2nrealloc, to simplify logic.
28501         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
28502         size calculation.  Do not assume utmp file is a regular file.
28503         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
28504         (READ_UTMP_CHECK_PIDS): New constant.
28505         * lib/save-cwd.c: Include unistd-safer.h.
28506         (save_cwd): Use fd_safer.
28507         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
28508         [!_LIBC] Include "stat-macros.h" instead.
28509         * lib/unistd-safer.h (fd_safer): New decl.
28510
28511 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28512
28513         * modules/getloadavg (Depends-on): Add unistd-safer.
28514         * modules/getusershell (Depends-on): Add stdio-safer.
28515         * modules/lstat (Depends-on): Remove xalloc.
28516         * modules/mkstemp (Depends-on): Add stat-macros.
28517         * modules/modechange (Depends-on): Remove xstrtol.
28518         Add stat-macros, xalloc.
28519         * modules/save-cwd (Depends-on): Add unistd-safer.
28520         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
28521         * modules/unistd-safer (Files): Add lib/fd-safer.c
28522         (Makefile.am): Remove lib_SOURCES.
28523
28524         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
28525         Remove fcntl-safer; unistd-safer supersedes it.
28526
28527 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28528
28529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
28530         AC_HEADER_STAT.
28531         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
28532         (gl_PREREQ_CHOWN): Remove.
28533         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
28534         it.  Don't require AC_HEADER_STAT.
28535         (gl_PREREQ_LSTAT): Remove.
28536         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
28537         Don't require AC_HEADER_STAT.
28538         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
28539         (gl_PREREQ_RMDIR): Remove.
28540         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
28541         mention stat-macros.h or AC_HEADER_STAT, since we'll make
28542         the stat-macros module a prerequisite.
28543         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
28544         * m4/filemode.m4 (gl_FILEMODE): Likewise.
28545         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
28546         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
28547         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
28548         variable names.
28549         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
28550         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
28551         variable prefixes.
28552         * m4/fcntl-safer.m4: Remove.
28553         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
28554         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
28555         Invoke gl_PREREQ_FD_SAFER.
28556         (gl_PREREQ_FD_SAFER): New macro.
28557         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
28558         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
28559         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
28560         Remove duplicate call to AC_LIBOBJ(readutmp).
28561         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
28562
28563         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
28564         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
28565
28566 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28567
28568         * MODULES.html.sh (Misc): Add byteswap.
28569
28570 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28571
28572         * modules/getcwd (Depends-on): Add extensions.
28573         * modules/openat (Depends-on): Likewise.
28574
28575 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28576
28577         * modules/byteswap: New file.
28578
28579 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28580
28581         * m4/byteswap.m4: New file.
28582
28583 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28584
28585         * lib/byteswap_.h: New file.
28586
28587 2005-04-25  Karl Berry  <karl@gnu.org>
28588
28589         * m4/gettext.m4: Update from GNU gettext 0.14.4.
28590
28591 2005-04-25  Albert Chin  <china@thewrittenword.com>
28592
28593         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
28594         Toolkit C bug.
28595
28596 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
28597
28598         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
28599         (func_ln_if_changed) Remove forcibly for no error message
28600         in case file does not exist.
28601
28602 2005-04-19  Simon Josefsson  <jas@extundo.com>
28603
28604         * gnulib-tool (Options): Make --symlink mean --symbolic.
28605
28606 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
28607
28608         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
28609
28610 2005-04-16  Simon Josefsson  <jas@extundo.com>
28611
28612         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
28613
28614 2005-04-15  Simon Josefsson  <jas@extundo.com>
28615
28616         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
28617
28618 2005-04-15  Simon Josefsson  <jas@extundo.com>
28619
28620         * gnulib-tool: Rename --symlink to --symbolic.
28621
28622 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
28623
28624         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
28625         symbolic links to files instead of copying/moving.  Add --aux-dir,
28626         specifying directory relative --dir where auxiliary build tools
28627         are placed.
28628
28629 2005-04-14  Bruno Haible  <bruno@clisp.org>
28630
28631         * modules/allocsa (License): Change to LGPL.
28632         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28633
28634 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28635
28636         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
28637         that "UTC +1 second" continues to work.  Problem reported
28638         by Dmitry V. Levin.
28639         (relunit_snumber): New rule.
28640         (relunit): Use it.
28641
28642 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
28643
28644         * lib/getdate.y (universal_time_zone_table): New constant.
28645         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
28646         universal_time_zone_table.
28647         (lookup_zone): Prefer universal_time_zone_table to
28648         local_time_zone_table, so that "GMT" time stamps are allowed in
28649         London during the summer.  Problem reported by Ian Abbott.
28650
28651 2005-04-12  Jim Meyering  <jim@meyering.net>
28652
28653         * lib/human.c (humblock): Set *options even when returning due to
28654         xstrtoumax conversion failure.  Thanks to a used-uninitialized
28655         warning from gcc-4.
28656
28657 2005-04-09  Jim Meyering  <jim@meyering.net>
28658
28659         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
28660         -Wuninitialized: initialize tm0.tm_year.
28661
28662 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
28663
28664         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
28665         count, since there's no maximum.  All uses changed.
28666         Add member dsts_seen.
28667         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
28668         not being INT_MAX.
28669         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
28670         Use pc_rels_seen to decide whther a date is absolute.
28671
28672         * lib/getdate.y (number): Don't overwrite year.
28673         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
28674         check.
28675
28676 2005-04-02  Simon Josefsson  <jas@extundo.com>
28677
28678         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
28679         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
28680
28681 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
28682
28683         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
28684         where no absolute path name can be longer than PATH_MAX.
28685
28686 2005-03-27  Jim Meyering  <jim@meyering.net>
28687
28688         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
28689
28690 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
28691
28692         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
28693         "one's complement" -> "ones' complement" in comment, as per Knuth.
28694         "value of type" -> "type or expression" in comment.
28695         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
28696
28697 2005-03-26  Jim Meyering  <jim@meyering.net>
28698
28699         Comment nits.
28700         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
28701         Correct typos: s/or/of/.
28702
28703 2005-03-26  Jim Meyering  <jim@meyering.net>
28704
28705         * modules/check-include-files: Move to ../ and rename to...
28706         * check-module: ...this.
28707
28708 2005-03-25  Jim Meyering  <jim@meyering.net>
28709
28710         * modules/xvasprintf (Files): Add xalloc.h.
28711
28712 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
28713
28714         * modules/gettext (Files): config/config.rpath ->
28715         build-aux/config.rpath
28716         * modules/iconv (Files): Likewise.
28717         Problem reported by Oskar Liljeblad.
28718
28719 2005-03-23  Jim Meyering  <jim@meyering.net>
28720
28721         * modules/check-include-files: New script to check for
28722         missing dependencies, multiple includes, etc.
28723
28724         * modules/c-strtold (Depends-on): Add xalloc.
28725         * modules/c-strtod (Depends-on): Add xalloc.
28726         * modules/hash (Depends-on): Add xalloc.
28727         (Files): Remove lib/xalloc.h.
28728
28729         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
28730         * modules/userspec (Files): Add lib/inttostr.h.
28731
28732 2005-03-23  Jim Meyering  <jim@meyering.net>
28733
28734         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
28735
28736 2005-03-22  Jim Meyering  <jim@meyering.net>
28737
28738         * modules/stat-macros: New module.
28739         * modules/canonicalize, modules/euidaccess, modules/file-type,
28740         * modules/filemode, modules/lchown, modules/makepath,
28741         * modules/rmdir, modules/stat: Depend on new stat-macros module
28742         rather than listing lib/stat-macros.h manually.
28743         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
28744
28745 2005-03-22  Jim Meyering  <jim@meyering.net>
28746
28747         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
28748
28749 2005-03-22  Bruno Haible  <bruno@clisp.org>
28750
28751         * config/srclist.txt: Replace target directory 'config' with
28752         'build-aux'.
28753         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
28754         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
28755         ../build-aux/.
28756
28757 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28758
28759         * modules/chdir-long (Depends-on): Add mempcpy.
28760
28761         * modules/acl, modules/backupfile, modules/c-strtod,
28762         modules/c-strtold, modules/canon-host, modules/canonicalize,
28763         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
28764         modules/exclude, modules/exitfail, modules/file-type,
28765         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
28766         modules/getdate, modules/getline, modules/getpagesize,
28767         modules/getpass, modules/getugroups, modules/group-member,
28768         modules/hard-locale, modules/hash, modules/human, modules/idcache,
28769         modules/inttostr, modules/long-options, modules/makepath,
28770         modules/md5, modules/memcasecmp, modules/memcoll,
28771         modules/modechange, modules/mountlist, modules/path-concat,
28772         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
28773         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
28774         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
28775         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
28776         modules/strftime, modules/strndup, modules/strverscmp,
28777         modules/timespec, modules/unlocked-io, modules/userspec,
28778         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
28779         modules/yesno:
28780         Remove lib_SOURCES line from Makefile.am section, as this is now
28781         done automatically by the corresponding Autoconf macro.
28782
28783 2005-03-21  Jim Meyering  <jim@meyering.net>
28784
28785         Changes imported from coreutils.
28786
28787         * lib/cycle-check.c: Don't include xalloc.h.
28788
28789         * lib/path-concat.c: Don't include assert.h.
28790         (path_concat): Remove assertion that would have triggered
28791         for ABASE starting with more than one slash.
28792         Reported by Andreas Schwab.
28793
28794         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
28795         properly when ABASE is an absolute file name.
28796         Correct the description of this function.
28797         Include <assert.h>.
28798         Add an assertion and a test driver.
28799         This fixes a bug introduced on 2004-07-02.
28800         Andreas Schwab reported the resulting failure of cp --parents:
28801         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
28802
28803 2005-03-21  Jim Meyering  <jim@meyering.net>
28804
28805         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
28806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
28807
28808 2005-03-21  Jim Meyering  <jim@meyering.net>
28809         and  Paul Eggert  <eggert@cs.ucla.edu>
28810
28811         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
28812         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
28813         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
28814         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
28815         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
28816         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
28817         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
28818         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
28819         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
28820         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
28821         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
28822         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
28823         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
28824         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
28825         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
28826         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
28827         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
28828         for these modules.
28829
28830 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
28831
28832         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
28833         (which shouldn't happen), generate nothing instead of returning 0
28834         immediately, so that nstrftime (NULL, ...) doesn't return 0.
28835
28836 2005-03-16  Bruno Haible  <bruno@clisp.org>
28837
28838         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
28839         HAVE_LONGLONG_64BIT.
28840
28841 2005-03-16  Bruno Haible  <bruno@clisp.org>
28842
28843         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
28844         HAVE_LONGLONG_64BIT.
28845
28846 2005-03-16  Bruno Haible  <bruno@clisp.org>
28847
28848         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
28849         HAVE_LONGLONG_64BIT.
28850
28851 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28852
28853         * lib/strftime.c (my_strftime): Prepend space to format so that we can
28854         reliably distinguish strftime failure from empty output on POSIX
28855         hosts.
28856
28857 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28858
28859         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
28860         (iconv_string): Don't guess a size-zero buffer, as that might cause
28861         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
28862         result would be 'too large', where 'too large' is (heuristically)
28863         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
28864         overflow concerns.  This will prevent some unwanted malloc failures
28865         when the inputs are very large.
28866
28867 2005-03-15  Karl Berry  <karl@gnu.org>
28868
28869         * config/srclist.txt (config.rpath): from gettext.
28870         * config/config.rpath: update.
28871
28872 2005-03-15  Bruno Haible  <bruno@clisp.org>
28873
28874         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
28875         to 'negate'.
28876
28877         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
28878         variable.
28879
28880         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
28881         results.
28882
28883 2005-03-14  Simon Josefsson  <jas@extundo.com>
28884
28885         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
28886         <fx@gnu.org>.
28887
28888 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28889
28890         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
28891         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
28892         intprops.h.
28893         * lib/strtol.c: Likewise.
28894
28895 2005-03-14  Jim Meyering  <jim@meyering.net>
28896
28897         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
28898         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
28899         to be nonzero so that we (and caller) can detect the difference
28900         between a valid zero-length expansion and an error return, even
28901         when the underlying strftime fails before writing anything into
28902         that location.
28903
28904 2005-03-14  Bruno Haible  <bruno@clisp.org>
28905
28906         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
28907         Update from GNU gettext 0.14.3.
28908
28909 2005-03-10  Jim Meyering  <jim@meyering.net>
28910
28911         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
28912
28913 2005-03-10  Jim Meyering  <jim@meyering.net>
28914
28915         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
28916         so that this module works on systems without fchdir.
28917
28918 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
28919
28920         Factor int-properties macros into a single file, except for
28921         glibc-related files.
28922         * lib/intprops.h: New file.
28923         * lib/getloadavg.c: Include it instead of limits.h.
28924         (INT_STRLEN_BOUND): Remove.
28925         * lib/human.c: Include intprops.h.
28926         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
28927         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
28928         302/1000.
28929         * lib/inttostr.h: Include intprops.h instead of limits.h.
28930         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
28931         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
28932         for consistency with intprops.h.
28933         (time_t_is_integer, twos_complement_arithmetic): Use them.
28934         * lib/sig2str.h: Include <signal.h>, intprops.h.
28935         (INT_STRLEN_BOUND): Remove.
28936         * lib/strftime.c (TYPE_SIGNED): Remove.
28937         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
28938         * lib/strtol.c: Adjust comments to match intprops.h.
28939         * lib/userspec.c: Include intprops.h.
28940         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
28941         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
28942         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
28943         instead of rolling our own expressions.
28944         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
28945
28946         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
28947         instead of int.
28948         (my_strftime): Do not mishandle years close to INT_MAX, by doing
28949         the right thing even if adding 1900 would overflow.  Similarly
28950         for tm_mon + 1 and tm_yday + 1.
28951         Make %Y always equivalent to %C%y, and similarly for %G and %g.
28952         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
28953         (DO_SIGNED_NUMBER): New macro.
28954         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
28955
28956 2005-03-07  Bruno Haible  <bruno@clisp.org>
28957
28958         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
28959
28960 2005-03-07  Bruno Haible  <bruno@clisp.org>
28961
28962         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
28963
28964 2005-03-04  Derek R. Price  <derek@ximbiot.com>
28965
28966         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
28967         (func_import): Only replace files via --import when they have actually
28968         changed.
28969
28970 2005-03-03  Derek R. Price  <derek@ximbiot.com>
28971
28972         * m4/mmap-anon.m4: New file.
28973         * m4/pagealign_alloc.m4: New file.
28974
28975 2005-03-03  Derek R. Price  <derek@ximbiot.com>
28976             Bruno Haible  <bruno@clisp.org>
28977
28978         * modules/pagealign_alloc: New file.
28979         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
28980
28981 2005-03-03  Derek R. Price  <derek@ximbiot.com>
28982             Bruno Haible  <bruno@clisp.org>
28983
28984         * lib/pagealign_alloc.h: New file.
28985         * lib/pagealign_alloc.c: New file.
28986
28987 2005-03-03  Bruno Haible  <bruno@clisp.org>
28988
28989         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
28990         Use an all-permissive copyright notice, recommended by RMS.
28991
28992 2005-03-02  Bruno Haible  <bruno@clisp.org>
28993
28994         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
28995         of AIX, the replacement has to be done only after <string.h> is
28996         included, therefore not in config.h. stpncpy.h does the replacement,
28997         and stpncpy.c uses it.
28998
28999 2005-03-02  Bruno Haible  <bruno@clisp.org>
29000
29001         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
29002         stpncpy.c uses it.
29003
29004 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29005
29006         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
29007         The workaround isn't strictly needed for POSIX conformance, and
29008         it's too much of a pain to configure and maintain.  We'll ask
29009         people to fix their kernels instead.
29010         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
29011         (NANOSLEEP_BUG_WORKAROUND): Remove.
29012         (xnanosleep): Remove the workaround.
29013
29014 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29015
29016         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
29017         Reported by Derek Price.
29018         (Include): Add "timespec.h".
29019
29020         * modules/xnanosleep (Depends-on): Remove gethrxtime.
29021
29022 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29023
29024         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
29025         to detect nanosleep bug.
29026
29027 2005-03-01  Bruno Haible  <bruno@clisp.org>
29028
29029         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
29030
29031 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29032
29033         * modules/gethrxtime: New file.
29034         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
29035         (Depends-on): Add gethrxtime.
29036         (configure.ac): Add gl_XNANOSLEEP.
29037         (Makefile.am): Remove lib_SOURCES line.
29038
29039 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29040
29041         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
29042         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
29043
29044 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29045
29046         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
29047         * lib/timespec.h (gettime): Return void, since it always
29048         succeeds now.  All uses changed.
29049         * lib/gettime.c (gettime) Likewise.
29050         [HAVE_NANOTIME]: Prefer nanotime.
29051         Assume gettimeofday succeeds, as POSIX requires.
29052         Assime time () succeeds, since other code already does.
29053         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
29054         (timespec_subtract): Remove.
29055         (NANOSLEEP_BUG_WORKAROUND): New constant.
29056         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
29057         things considerably.  Use it only on GNU/Linux hosts, since the
29058         workaround shouldn't be needed elsewhere.
29059
29060 2005-02-24  Bruno Haible  <bruno@clisp.org>
29061
29062         * modules/gettext (Files): Add m4/glibc2.m4.
29063
29064 2005-02-24  Bruno Haible  <bruno@clisp.org>
29065
29066         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
29067         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
29068         * m4/progtest.m4:
29069         Update from GNU gettext 0.14.2.
29070         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
29071
29072 2005-02-24  Bruno Haible  <bruno@clisp.org>
29073
29074         * lib/localcharset.c: Update from GNU gettext 0.14.2.
29075         * lib/config.charset: Update from GNU gettext 0.14.2.
29076
29077 2005-02-24  Bruno Haible  <bruno@clisp.org>
29078
29079         * lib/gettext.h: Update from GNU gettext 0.14.2.
29080
29081 2005-02-23  Simon Josefsson  <jas@extundo.com>
29082
29083         * m4/iconvme.m4: New file.
29084
29085 2005-02-23  Jim Meyering  <jim@meyering.net>
29086
29087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
29088         change.
29089         Thanks to Bruno Haible for catching it.
29090
29091 2005-02-22  Simon Josefsson  <jas@extundo.com>
29092
29093         * modules/iconvme: New file.
29094
29095         * MODULES.html.sh: Add iconvme.
29096
29097 2005-02-22  Simon Josefsson  <jas@extundo.com>
29098
29099         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
29100
29101 2005-02-22  Simon Josefsson  <jas@extundo.com>
29102
29103         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
29104
29105 2005-02-22  Jim Meyering  <jim@meyering.net>
29106
29107         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
29108         s/ifndef/ifdef/.
29109
29110 2005-02-20  Neil Conway  <neilc@samurai.com>
29111
29112         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
29113         returned by OSX/Darwin if the specified buffer is not large
29114         enough for the hostname.
29115
29116 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29117
29118         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
29119         pass it to _help, otherwise the latter coredumps trying to
29120         dereference state.root_argp.
29121
29122 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29123
29124         * modules/chdir-long (Depends-on): Add memrchr.
29125         * modules/memrchr (Files): Add lib/memrchr.h.
29126         (Include): "memrchr.h".
29127
29128 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29129
29130         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
29131
29132 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29133
29134         * lib/memrchr.h: New file.
29135         * lib/chdir-long.c: Include it.
29136         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
29137         Don't bother including stddef.h.
29138
29139 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
29140
29141         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
29142         inclusion.
29143         Include <sys/types.h>, for dev_t.
29144         (ME_DUMMY, ME_REMOTE): Move from here....
29145         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
29146         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
29147         Dmitry V. Levin.
29148         Include mountlist.h first, to test the interface.
29149
29150 2005-01-29  Bruno Haible  <bruno@clisp.org>
29151
29152         * lib/progname.c (program_name): Initialize.
29153         Needed when linking statically on MacOS X.
29154
29155 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29156
29157         Sync from coreutils.
29158         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
29159         (Depends-on): Add c-strtod.
29160         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
29161
29162 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29163
29164         Sync from coreutils.
29165         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
29166
29167         Remove files that are specific to coreutils.
29168         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
29169
29170 2005-01-28  Bruno Haible  <bruno@clisp.org>
29171
29172         * modules/javacomp: New file.
29173         * MODULES.html.sh (Java): Add javacomp.
29174
29175 2005-01-28  Bruno Haible  <bruno@clisp.org>
29176
29177         * m4/javacomp.m4: New file, from GNU gettext.
29178
29179 2005-01-28  Bruno Haible  <bruno@clisp.org>
29180
29181         * lib/javacomp.sh.in: New file, from GNU gettext.
29182         * lib/javacomp.h: New file, from GNU gettext.
29183         * lib/javacomp.c: New file, from GNU gettext.
29184
29185 2005-01-26  Simon Josefsson  <jas@extundo.com>
29186
29187         * lib/gai_strerror.c: Use GPL in header.
29188
29189 2005-01-26  Bruno Haible  <bruno@clisp.org>
29190
29191         * modules/javaexec: New file.
29192         * MODULES.html.sh (Java): Add javaexec.
29193
29194 2005-01-26  Bruno Haible  <bruno@clisp.org>
29195
29196         * m4/javaexec.m4: New file, from GNU gettext.
29197
29198 2005-01-26  Bruno Haible  <bruno@clisp.org>
29199
29200         * lib/javaexec.sh.in: New file, from GNU gettext.
29201         * lib/javaexec.h: New file, from GNU gettext.
29202         * lib/javaexec.c: New file, from GNU gettext.
29203
29204 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29205
29206         * modules/lchown (Depends-on): Remove lchown.h
29207
29208 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29209
29210         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
29211         must be defined if the header file was not found, in order
29212         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
29213
29214 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29215
29216         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
29217         initializers for struct pentry_state.
29218         (__argp_error): Check return value of __asprintf
29219         (__argp_failure): Translate error message
29220
29221         * lib/argp-parse.c: Removed braces around the expansion of N_()
29222
29223 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29224
29225         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
29226         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
29227         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
29228         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
29229         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
29230         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
29231         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
29232         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
29233         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
29234         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
29235         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
29236         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
29237         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
29238         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
29239         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
29240         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
29241         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
29242         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
29243         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
29244         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
29245         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
29246         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
29247         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
29248         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
29249         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
29250         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
29251         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
29252         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
29253         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
29254         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
29255         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
29256         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
29257         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
29258         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
29259         xstrtol.m4, xstrtoumax.m4, yesno.m4:
29260         Use an all-permissive copyright notice, recommended by RMS.
29261
29262 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
29263
29264         * modules/chdir-long (Depends-on): Remove mempcpy.
29265
29266 2005-01-21  Jim Meyering  <jim@meyering.net>
29267
29268         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
29269         same value as for Solaris 9.
29270
29271         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
29272         component length.  This included changing the parameter to be
29273         of type `char *' rather than `char const *'.
29274         * lib/chdir-long.h (chdir_long): Update prototype.
29275
29276         * lib/openat.c (fdopendir, fstatat): New functions.
29277         * lib/openat.h: Include headers required for use of DIR and struct
29278         stat.
29279         [AT_SYMLINK_NOFOLLOW]: Define.
29280         (fdopendir, fstatat): Add prototypes.
29281
29282 2005-01-21  Bruno Haible  <bruno@clisp.org>
29283
29284         * modules/classpath: New file.
29285         * MODULES.html.sh (Java): Add classpath.
29286
29287 2005-01-21  Bruno Haible  <bruno@clisp.org>
29288
29289         * lib/classpath.h: New file, from GNU gettext.
29290         * lib/classpath.c: New file, from GNU gettext.
29291
29292 2005-01-20  Simon Josefsson  <jas@extundo.com>
29293
29294         * modules/version-etc-fsf: New file.
29295
29296 2005-01-20  Simon Josefsson  <jas@extundo.com>
29297
29298         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
29299         * lib/version-etc.c: Remove version_etc_copyright.
29300         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
29301         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
29302
29303 2005-01-20  Simon Josefsson  <jas@extundo.com>
29304
29305         * lib/base64.h (isbase64): Add.
29306
29307         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
29308         using a unsigned prototype, don't inline.
29309         (base64_decode): Use it.
29310
29311 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29312
29313         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
29314         it.
29315
29316 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29317
29318         * lib/save-cwd.c (save_cwd): Remove code to support the case
29319         where fchdir is missing or flaky.
29320
29321 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29322
29323         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
29324
29325 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
29326
29327         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
29328         AC_LIBSOURCES now does this.
29329         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
29330         with new ullong_max module.
29331
29332 2005-01-19  Bruno Haible  <bruno@clisp.org>
29333
29334         * modules/sh-quote: New file.
29335         * MODULES.html.sh (Executing programs): Add sh-quote.
29336
29337 2005-01-19  Bruno Haible  <bruno@clisp.org>
29338
29339         * lib/sh-quote.h: New file, from GNU gettext.
29340         * lib/sh-quote.c: New file, from GNU gettext.
29341
29342 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29343
29344         Merge from coreutils.
29345         * m4/ullong_max.m4: New file.
29346         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
29347         (gl_MACROS): Assume localeconv exists.
29348
29349 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29350
29351         Merge changes from coreutils, as described below in several
29352         changelogs dated today.
29353
29354         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
29355         (O_DIRECTORY): Remove; not needed here, since "." must be
29356         a directory.  All uses removed.
29357         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
29358         universal on Suns, and we also need to test for IRIX.
29359         Revamp code to use 'if' rather than '#if'.
29360         Avoid unnecessary comparison of cwd->desc to 0.
29361
29362         * lib/utimens.c (futimens): Robustify the previous patch, by checking
29363         for known valid error numbers rather than observed invalid ones.
29364
29365 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29366
29367         * modules/ullong_max: New file.
29368
29369         * modules/chdir-long, modules/openat: New files.
29370         * modules/save-cwd (Depends-on): Depend on chdir-long.
29371         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
29372
29373 2005-01-18  Jim Meyering  <jim@meyering.net>
29374
29375         Merge from coreutils.
29376         * m4/chdir-long.m4, m4/openat.m4: New files.
29377         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
29378         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
29379         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
29380         is sane and DOES follow symlinks.  Besides, testing 20 different
29381         systems found no broken chown implementations.
29382         Prompted by a change in rsync's copy of this macro.
29383         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
29384
29385         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
29386
29387         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
29388         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
29389         NULL-means-set-to-current-time semantics.
29390         Remove temporary file immediately, rather than waiting
29391         for configure's at-exit trap code to do it.
29392
29393 2005-01-18  Jim Meyering  <jim@meyering.net>
29394
29395         * lib/version-etc.c (version_etc_copyright): Update copyright date.
29396
29397         * lib/utimens.c (futimens): Account for the fact that futimes
29398         can also fail with errno == ENOSYS or errno == ENOENT.
29399         Patch from Dmitry V. Levin.
29400
29401         Change the name of the robust chdir function from chdir to chdir_long.
29402         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
29403         (restore_cwd): Use chdir_long, not chdir.
29404         * lib/chdir-long.c: Renamed from chdir.c.
29405         * lib/chdir-long.h: Renamed from chdir.h.
29406         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
29407         Hurd.
29408
29409 2005-01-18  Bruno Haible  <bruno@clisp.org>
29410
29411         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
29412         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
29413         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
29414         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
29415         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
29416         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
29417         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
29418         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
29419         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
29420         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
29421         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
29422         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
29423         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
29424         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
29425         Use an all-permissive copyright notice, recommended by RMS.
29426
29427 2005-01-18  Bob Proulx  <bob@proulx.com>
29428
29429         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
29430         simplify offsetof() macro construct to avoid compile failure with
29431         native HP-UX 11.0 ANSI C compiler.
29432
29433 2005-01-17  Bruno Haible  <bruno@clisp.org>
29434
29435         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
29436         redundant because stpncpy.m4 takes care of it.
29437
29438 2005-01-17  Bruno Haible  <bruno@clisp.org>
29439
29440         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
29441
29442 2005-01-17  Bruno Haible  <bruno@clisp.org>
29443
29444         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
29445         used.
29446
29447 2005-01-17  Bruno Haible  <bruno@clisp.org>
29448
29449         * lib/fwriteerror.h (fwriteerror): Change specification to include
29450         fclose.
29451         * lib/fwriteerror.c: Include <stdbool.h>.
29452         (fwriteerror): At the end, close the file stream. Record whether
29453         stdout was already closed.
29454
29455 2005-01-17  Bruno Haible  <bruno@clisp.org>
29456
29457         * lib/execute.c (environ): Declare if needed.
29458         * lib/pipe.c (environ): Likewise.
29459         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
29460
29461 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29462
29463         * modules/argp: Depend on vsnprintf
29464
29465 2005-01-10  Jim Meyering  <jim@meyering.net>
29466
29467         * modules/closeout (Depends-on): Add atexit.
29468
29469 2005-01-06  Bruno Haible  <bruno@clisp.org>
29470
29471         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
29472
29473 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29474
29475         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
29476         definitions to be after all include files, to avoid collisions.
29477         Problem reported by Bob Proulx.
29478
29479 2005-01-04  Jim Meyering  <jim@meyering.net>
29480
29481         Changes imported from coreutils.
29482         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
29483         as the mkstemp template, use a temporary directory and an
29484         8.3-friendly template to avoid trouble on systems like DJGPP.
29485         Reported by Juan M. Guerrero via Stepan Kasal.
29486         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
29487         close. Remove the temporary directory right away, rather than waiting
29488         for configure's at-exit trap code to do it.
29489         Suggestion from Stepan Kasal.
29490
29491 2005-01-01  Simon Josefsson  <jas@extundo.com>
29492
29493         * gnulib-tool: Print #include directives when --import'ing.
29494
29495 2004-12-28  Simon Josefsson  <jas@extundo.com>
29496
29497         * tests/test-base64.c: Include required header files.  Remove
29498         unused variables.
29499
29500 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29501
29502         * modules/error (Depends-on): Remove gettext.
29503
29504 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29505
29506         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
29507         not needed.  This removes a dependency on the gettext module.
29508         [defined _LIBC]: Do not include <libintl.h>; not needed.
29509
29510 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29511
29512         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
29513         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
29514
29515 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29516
29517         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
29518         HAVE_DECL_STRTOLD.
29519
29520 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29521
29522         * modules/getdate (Depends-on): Remove alloca-opt.
29523
29524 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29525
29526         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
29527
29528 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29529
29530         * lib/argp-parse.c: Include <stddef.h>.
29531         (alignof, alignto): New macros.
29532         (parser_init): Don't assume that void * is aligned sufficiently
29533         for struct option.
29534
29535         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
29536         need to extend the stack.
29537         (YYINITDEPTH): New macro, so that the initial stack isn't overly
29538         large.
29539
29540 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29541
29542         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
29543
29544 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29545
29546         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
29547         (2004-10-24) change.  Apparently this was a false alarm.
29548
29549         * modules/getdate: Depend on alloca-opt, not alloca.
29550
29551 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29552
29553         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
29554         Remove now-obsolete comment about AIX.
29555         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
29556         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
29557         (YYMAXDEPTH): New macro.
29558
29559 2004-12-18  Simon Josefsson  <jas@extundo.com>
29560
29561         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
29562
29563 2004-12-18  Bruno Haible  <bruno@clisp.org>
29564
29565         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
29566
29567 2004-12-18  Bruno Haible  <bruno@clisp.org>
29568
29569         * lib/fatal-signal.c (fatal_signals): Make non-const.
29570         (init_fatal_signals): New function.
29571         (uninstall_handlers, install_handlers): Ignore signals that were set to
29572         SIG_IGN.
29573         (at_fatal_signal): Call init_fatal_signals.
29574         (init_fatal_signal_set): Likewise. Ignore signals that were set to
29575         SIG_IGN.
29576         Reported by Paul Eggert.
29577
29578 2004-12-18  Bruno Haible  <bruno@clisp.org>
29579
29580         * doc/alloca.texi: New file.
29581         * doc/alloca-opt.texi: New file.
29582
29583 2004-12-17  Jim Meyering  <jim@meyering.net>
29584
29585         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
29586         Otherwise, install-sh could exit with improper exit status when
29587         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
29588
29589 2004-12-16  Simon Josefsson  <jas@extundo.com>
29590
29591         * tests/test-base64.c: Add license.
29592
29593 2004-12-15  Stepan Kasal  <address@hidden>
29594
29595         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
29596
29597 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
29598
29599         * modules/getcwd (Files): Add m4/d-ino.m4.
29600         Suggested by Mark D. Baushke.
29601
29602 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29603
29604         * lib/getdate.y (textint): New member "negative".
29605         (time_zone_hhmm): New function.
29606         Expect 14 shift-reduce conflicts, not 13.
29607         (o_colon_minutes): New rule.
29608         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
29609         (yylex): Set the "negative" member of signed numbers.
29610
29611 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29612
29613         * doc/getdate.texi (Time of day items, Time zone items):
29614         Describe new formats +00:00, UTC+00:00.
29615
29616 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29617
29618         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
29619         spurious "-l"s.  Problem reported by Stepan Kasal.
29620
29621 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
29622
29623         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
29624         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
29625
29626 2004-12-04  Simon Josefsson  <jas@extundo.com>
29627
29628         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
29629         Vandoorselaere <yoann@prelude-ids.org>.
29630
29631 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29632
29633         Changes imported from coreutils.
29634         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
29635         exist.
29636         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
29637
29638 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29639
29640         Changes imported from coreutils.
29641         * lib/hard-locale.c: Assume <locale.h> exists.
29642         Include "strdup.h".
29643         (GLIBC_VERSION): New macro.
29644         (hard_locale): Assume setlocale exists.
29645         Rewrite to avoid #ifdef.
29646         Use strdup rather than malloc + strcpy.
29647         * lib/human.c: Assume <locale.h> exists.
29648         (human_readable): Assume localeconv exists.
29649
29650 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29651
29652         * modules/hard-locale (Depends-on): Add strdup.
29653
29654 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
29655
29656         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
29657         convert T2, not T.  (Imported from libc.)
29658
29659 2004-11-30  Simon Josefsson  <jas@extundo.com>
29660
29661         * modules/restrict (License): Change to LGPL.
29662
29663 2004-11-30  Simon Josefsson  <jas@extundo.com>
29664
29665         * m4/restrict.m4: Add copyright and copying conditions.
29666
29667 2004-11-30  Simon Josefsson  <jas@extundo.com>
29668
29669         * m4/base64.m4: New file.
29670
29671 2004-11-30  Simon Josefsson  <jas@extundo.com>
29672
29673         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
29674         base64.
29675
29676         * tests/test-base64.c: New file.
29677
29678         * modules/base64: New file.
29679
29680 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
29681
29682         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
29683         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
29684
29685         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
29686
29687 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
29688
29689         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
29690         (__getcwd.c): Don't restore errno; glibc doesn't.
29691         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
29692         first, falling back to our code only if its results look suspicious.
29693         Ensure that the resulting buffer is only as large as necessary.
29694
29695         * lib/readutmp.c: Include readutmp.h first.
29696         Include <errno.h>, since readutmp.h no longer does that.
29697         * lib/readutmp.h: Don't include <errno.h>,
29698         <sys/param.h>, <time.h>; not needed to establish interface.
29699         (errno): Remove decl.
29700         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
29701         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
29702         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
29703
29704 2004-11-28  Simon Josefsson  <jas@extundo.com>
29705
29706         * lib/base64.h, base64.c: New file.
29707
29708 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29709
29710         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
29711
29712 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
29713
29714         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
29715         (Depends-on): Remove pathmax, same.  Add mempcpy.
29716         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
29717         (Makefile.am): Append getcwd.h to lib_SOURCES.
29718         (Include): Add getcwd.h.
29719         (Maintainer): Change from Jim Meyering to "all, glibc",
29720         since getdate now uses intended-for-glibc code.
29721         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
29722         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
29723
29724 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29725
29726         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
29727         HP's ANSI C compiler.
29728         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
29729         Declaring int functions causes warnings on some modern systems and
29730         shouldn't be needed to compile on ancient ones.
29731         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
29732         defined.
29733
29734         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
29735         with the following changes.
29736         (__set_errno): Parenthesize properly.
29737         Include <stdbool.h>.
29738         (MIN, MAX, MATCHING_INO): New macros.
29739         (__getcwd): Define with prototype, not K&R form.
29740         Use heuristics to allocate default buffer on stack if possible.
29741         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
29742         behavior, and to avoid the PATH_MAX limit when computing
29743         ../../../../...
29744         Use MATCHING_INO to compare inode number to file.
29745         Check for arithmetic overflow in size calculations.
29746         Fix bug in reallocation of dot array that caused getcwd to fail
29747         on directories nested deeper than 75.
29748         Be more careful about saving errno on error.
29749         Do not use realloc; use only free+malloc, as this is a bit
29750         more flexible and avoids a needless copy operation.
29751         Do not inspect st_dev and st_ino for symbolic links; POSIX
29752         doesn't specify the latter.
29753         Check for closedir errors.
29754         Avoid needless casts.
29755         Use "#ifdef weak_alias" around weak_alias, to be like other
29756         glibc code.
29757         The following changes to getcwd.c have effect only when used in
29758         gnulib; they have no effect inside glibc proper.
29759         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
29760         as alloca isn't used.
29761         (alloca, __alloca): Likewise.
29762         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
29763         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
29764         unconditionally, as gnulib assumes C89 or better.
29765         Do not include <sys/param.h>.
29766         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
29767         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
29768         better.
29769         (NULL) [!defined NULL]: Remove; we assume C89 or better.
29770         Include <dirent.h> in a way that is compatible with modern Autoconf.
29771         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
29772         New macros, if not already defined.
29773         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
29774         Use "_LIBC", not "defined _LIBC", for consistency.
29775         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
29776         a mempcpy module.
29777         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
29778         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
29779         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
29780         credit only to Jim Meyering and adjust the copyright dates.
29781         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
29782         <stdlib.h>, <unistd.h>, "pathmax.h".
29783         Instead, include "xgetcwd.h" (first) and "getcwd.h".
29784         (INITIAL_BUFFER_SIZE): Remove.
29785         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
29786
29787 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29788
29789         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
29790         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
29791         Use the _ONCE methods, for efficiency.
29792         Check for fcntl.h.  In test program, include <errno.h>
29793         and <fcntl.h> if available.  Remove old K&R cruft from
29794         test program.  Check for common errors in GNU/Linux,
29795         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
29796         don't do AC_LIBOBJ, as that's getcwd.m4's job.
29797         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
29798         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
29799         name accordingly.
29800         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
29801         accommodate new getcwd.c.
29802         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
29803         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
29804         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
29805         that's all we need now.
29806
29807 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29808
29809         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
29810         argp-parse.c depends on getopt internals, that means we should
29811         always use our getopt, to be on the safe side.
29812         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
29813         order not to spoil the result of an eventual previous invocation
29814         of gl_GETOPT_SUBSTITUTE.
29815
29816 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29817
29818         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
29819         redefinition warnings. To avoid them, include the defines
29820         in `#if !defined __need_getopt ... #endif'. The only place
29821         where __getopt_argv_const is used is in definitions
29822         of getopt_long and getopt_long_only below, which are as well
29823         protected by `#ifndef __need_getopt'.
29824         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
29825         __need_getopt after including <stdio.h> and <unistd.h> These
29826         headers might have defined it.
29827
29828 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
29829
29830         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
29831
29832 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
29833
29834         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
29835         (futimens): New function, which uses futimes if available.
29836         (futimens, utimens): Support timespec==NULL, with same semantics
29837         as utime and utimens.
29838         * lib/utimens.h (futimens): New decl.
29839
29840 2004-11-23  Jim Meyering  <jim@meyering.net>
29841
29842         * lib/getopt_.h: Remove trailing blanks.
29843
29844 2004-11-23  Jim Meyering  <jim@meyering.net>
29845
29846         * lib/__fpending.c: Add comment.
29847
29848 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
29849
29850         * modules/canonicalize (Depends-on): Add xreadlink.
29851         Problem reported by James Youngman.
29852
29853 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29854
29855         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
29856         New macros.
29857         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
29858         optopt): Use them instead of invoking ## directly; otherwise, the
29859         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
29860
29861 2004-11-19  Bruno Haible  <bruno@clisp.org>
29862
29863         * lib/strtok_r.c: Move comments from here...
29864         * lib/strtok_r.h: ... to here.
29865
29866 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29867
29868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
29869         implementations that mishandle size_t overflow.
29870
29871 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29872
29873         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
29874         might fail.  Problem reported by Yoann Vandoorselaere.
29875         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
29876         implementations that mishandle size_t overflow.
29877
29878 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29879
29880         * modules/canon-host (Depends-on): Add strdup.
29881
29882 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29883
29884         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
29885
29886 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29887
29888         * lib/canon-host.c: Include "strdup.h".
29889         (canon_host): Use getaddrinfo if available, so that IPv6 works.
29890         Use strdup instead of malloc/strcpy to duplicate strings.
29891
29892         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
29893         (human_space_before_unit): New constant.
29894         * lib/human.c (human_readable): Support it.
29895
29896         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
29897         (xgetcwd): Set errno correctly when failing.
29898         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
29899         the failure is actually due to a PATH_MAX problem.
29900
29901         Further getopt changes to make it more likely that glibc will
29902         buy the changes back.
29903         * lib/getopt.c (POSIXLY_CORRECT): New constant.
29904         (getopt): Use it, so to preserve glibc semantic
29905         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
29906         when compiling for libc.
29907         * lib/getopt_.h (__getopt_argv_const): Bring it back.
29908         (getopt_long, getopt_long_only): Use it.
29909
29910         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
29911         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
29912         (getopt): Argv is now char * const *, as per standard.
29913         (_getopt_internal_r, _getopt_internal): Argv is now char **,
29914         not char *__getopt_argv_const *.
29915         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
29916         _getopt_long_only_r): Likewise.
29917         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
29918         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
29919         _getopt_long_r, _getopt_long_only_r): Likewise.
29920         * lib/getopt_.h (__getopt_argv_const): Remove.
29921         (getopt): Argv is now char * const *, as per standard.
29922
29923         * lib/getdate.y (tORDINAL): New token.
29924         (day, relunit): Allow it for relative times.
29925         (relative_time_table): Use tORDINAL for ordinals.
29926
29927 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29928
29929         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
29930         Document that "second" isn't allowed as an ordinal number.
29931
29932 2004-11-16  Jim Meyering  <jim@meyering.net>
29933
29934         * modules/closeout (Depends-on): Add fpending.
29935
29936 2004-11-15  Jim Meyering  <jim@meyering.net>
29937
29938         * lib/closeout.c: Include "__fpending.h" once again.
29939         Include <stdbool.h>.
29940         (close_stdout): Don't fail just because stdout was closed initially,
29941         since some programs don't write to stdout in the normal course of
29942         operation (other than --version and --help), and we don't want this
29943         function to make e.g. `touch file >&-' fail.
29944         But do fail if it was closed and someone has tried to write to it.
29945         E.g., `printf foo >&-' must fail.
29946
29947 2004-11-13  Jim Meyering  <jim@meyering.net>
29948
29949         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
29950
29951 2004-11-12  Simon Josefsson  <jas@extundo.com>
29952
29953         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
29954         small doc fix is still pending.
29955
29956 2004-11-11  Simon Josefsson  <jas@extundo.com>
29957
29958         * modules/strtok_r: New file.
29959
29960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29961         strtok_r.
29962
29963 2004-11-11  Simon Josefsson  <jas@extundo.com>
29964
29965         * m4/strtok_r.m4: New file.
29966
29967         * m4/getopt.m4: Replace opterr.
29968
29969 2004-11-11  Simon Josefsson  <jas@extundo.com>
29970
29971         * lib/strtok_r.h, strtok_r.c: New file.
29972
29973 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29974
29975         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
29976         of replacing opterr, getopt, etc.  This should handle the
29977         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
29978
29979 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29980
29981         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
29982         we can stop lying to compilers about the constness of argv when we
29983         are compiled outside glibc.
29984         (getopt, getopt_long, getopt_long_only): Use it.
29985         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
29986         _getopt_internal, getopt): Likewise.
29987         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
29988         _getopt_long_only_r): Likewise.
29989         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
29990         _getopt_long_r, _getopt_long_only_r): Likewise.
29991
29992         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
29993         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
29994         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
29995         the other external symbols.
29996         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
29997         declaration, since the above renaming now works around collisions.
29998
29999 2004-11-11  Jim Meyering  <jim@meyering.net>
30000
30001         * lib/linebreak.c: Remove trailing blanks.
30002         * lib/alloca_.h: Likewise.
30003         * lib/acosl.c: Likewise.
30004         * lib/euidaccess.c: Likewise.
30005         * lib/allocsa.h: Likewise.
30006
30007 2004-11-10  Simon Josefsson  <jas@extundo.com>
30008
30009         * m4/getaddrinfo.m4: New file.
30010
30011 2004-11-10  Simon Josefsson  <jas@extundo.com>
30012
30013         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
30014
30015 2004-11-10  Simon Josefsson  <jas@extundo.com>
30016
30017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30018         getaddrinfo.
30019
30020         * modules/getaddrinfo: New file.
30021
30022 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30023
30024         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
30025
30026 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30027
30028         * lib/mktime.c (SHR): New macro, which is a portable
30029         substitute for >> that should work even on Crays.
30030         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
30031         Problem reported by Mark D. Baushke in
30032         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
30033         * lib/getdate.y (SHR): Likewise.
30034         (tm_diff): Use it.
30035         * lib/strftime.c (SHR): Likewise.
30036         (tm_diff): Use it.
30037         * lib/quotearg.c (struct quoting_options): Use unsigned int for
30038         quote_these_too, so that right shifts are well defined.  All uses
30039         changed.
30040
30041 2004-11-10  Jim Meyering  <jim@meyering.net>
30042
30043         Ensure that no close failure goes unreported.
30044         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
30045         return early when it seems there's nothing to flush.
30046         Don't include __fpending.h.
30047
30048 2004-11-10  Jim Meyering  <jim@meyering.net>
30049
30050         * modules/closeout (Depends-on): Remove fpending.
30051
30052 2004-11-10  Jim Meyering  <jim@meyering.net>
30053
30054         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
30055
30056 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30057
30058         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
30059         gl_FUNC_STRFTIME.
30060         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
30061         and AC_REQUIRE when possible, to avoid duplicate checks.
30062         Check for <wchar.h>.
30063
30064 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30065
30066         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
30067
30068 2004-11-09  Bruno Haible  <bruno@clisp.org>
30069
30070         * m4/sockpfaf.m4: New file.
30071
30072 2004-11-05  Bruno Haible  <bruno@clisp.org>
30073
30074         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
30075         Reported by Mark D. Baushke <mdb@cvshome.org>.
30076
30077 2004-11-04  Bruno Haible  <bruno@clisp.org>
30078
30079         2004-09-11  Bruno Haible  <bruno@clisp.org>
30080                 * allocsa.valgrind: New file.
30081         2004-02-06  Bruno Haible  <bruno@clisp.org>
30082                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
30083                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
30084                 Reported by Christopher Seip <chris.seip@hp.com>.
30085
30086 2004-11-04  Bruno Haible  <bruno@clisp.org>
30087
30088         * modules/allocsa (Files): Add lib/allocsa.valgrind.
30089         (Makefile.am): Distribute it.
30090
30091 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30092
30093         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
30094         with errno == ERANGE if the buffer is too small.
30095         Problem reported by Mark D. Baushke.
30096
30097 2004-11-03  Albert Chin  <china@thewrittenword.com>
30098             Paul Eggert  <eggert@cs.ucla.edu>
30099
30100         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
30101         equivalent, substitute $ac_type for equivalent type rather than
30102         blindly using uint32_t *always* which won't work if uint32_t is not
30103         available.  Define _UINT32_T to work around typedef of uint32_t if
30104         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
30105         2.5.1.
30106
30107 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30108
30109         * m4/jm-macros.m4: Sync from coreutils.
30110         (gl_MACROS): Check for mbrlen, for pathchk.
30111         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
30112
30113 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30114
30115         * lib/xreadlink.c (MAXSIZE): New macro.
30116         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
30117         size does not exceed MAXSIZE.  Avoid cast.
30118         As suggested by Mark D. Baushke in
30119         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
30120         if readlink fails with buffer size just under MAXSIZE, try again
30121         with MAXSIZE.
30122
30123 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30124
30125         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
30126
30127 2004-11-02  Derek R. Price  <derek@ximbiot.com>
30128         and  Paul Eggert  <eggert@cs.ucla.edu>
30129
30130         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
30131         (get_date): Overparenthesize to avoid GCC warning.
30132
30133 2004-11-02  Bruno Haible  <bruno@clisp.org>
30134
30135         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
30136         returns void.
30137
30138 2004-11-02  Bruno Haible  <bruno@clisp.org>
30139
30140         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
30141         function returns void.
30142
30143 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30144
30145         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
30146         fflush_unlocked, flockfile, funlockfile, funlockfile,
30147         fputs_unlocked, putc_unlocked.
30148
30149 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30150
30151         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30152         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
30153         already declared.
30154
30155 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30156
30157         * modules/getdate (Files): Add doc/getdate.texi.
30158         (Depends-on): Add setenv, xalloc.
30159
30160 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30161
30162         * lib/getdate.y: Add support for TZ="foo" within a date string.
30163         Fix some bugs near time_t boundaries.  Reject dates with
30164         out-of-range components, e.g., "Sept 31".
30165         Include <stdlib.h>, "setenv.h", "xalloc.h".
30166         (ISDIGIT_LOCALE): Remove; unused.
30167         Note that the TZ and time functions used here are not reentrant.
30168         (mktime_ok, get_tz): New functions.
30169         (TZBUFSIZE): New constant.
30170         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
30171         This requires that we sometimes generate our own TZ="XXX..." setting.
30172
30173 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30174
30175         * doc/getdate.texi: New file, from coreutils with modifications for
30176         the new TZ parsing.
30177
30178 2004-10-27  Derek R. Price  <derek@ximbiot.com>
30179
30180         * lib/mktime.c (not_equal_tm): Remove redundant check.
30181
30182 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30183
30184         * modules/regex (lib_SOURCES): Add regex.c.
30185         Reported by James Youngman in
30186         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
30187
30188 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30189
30190         * lib/getdate.y: Use Bison 1.875 features, and some minor
30191         code cleanups.  This change does not affect semantics.
30192         Don't include <stdlib.h>; no longer needed.
30193         Don't include unlocked-io.h; only the "#if TEST" code uses
30194         stdio, and performance isn't crucial there.
30195         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
30196         Bison 1.875 features as described below.
30197         All uses of "PC." replaced by "pc->".
30198         (YYSTYPE): Add a forward declaration.
30199         (yylex, yyerror): Use full prototypes in forward decls.
30200         Use "%pure-parser" rather than obsolescent "%pure_parser".
30201         Use %parse-param and %lex-param instead of obsolescent
30202         YYPARSE_PARAM and YYLEX_PARAM.
30203         (meridian_table, month_and_day_table, time_units_table,
30204         relative_time_table, time_zone_table, military_table,
30205         lookup_zone, lookup_word, get_date):
30206         Use NULL instead of 0 where appropriate.
30207         (to_hour): Avoid abort (), to avoid a dependency on
30208         stdlib.h.
30209         (yyerror, yylex): Now accepts parser_control * arg.
30210         (main) [TEST]: Use '\0' rather than 0 for char.
30211
30212 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30213
30214         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
30215
30216 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30217
30218         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
30219         It's now the caller's responsibility to handle the case where
30220         !HAVE_GETPAGESIZE && !defined getpagesize.
30221
30222         * lib/mktime.c (leapyear): Arg is long int, not int.
30223
30224 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30225
30226         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
30227
30228 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30229
30230         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
30231         missing.  Problem reported by James Youngman.
30232
30233 2004-10-16  Simon Josefsson  <jas@extundo.com>
30234
30235         * gnulib-tool: Fix comments.  Fix parse problem.
30236         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
30237
30238 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
30239
30240         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
30241         implementation of getopt_long.  Problem reported by Alexander Taler in:
30242         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
30243
30244 2004-10-15  Bruno Haible  <bruno@clisp.org>
30245
30246         * gnulib-tool: Untabify. Initialize supplied_libname.
30247         (func_usage): More homogenous output.
30248         (func_modules_transitive_closure, func_modules_to_filelist,
30249         func_emit_lib_Makefile_am): New functions.
30250         (func_import): New function, extracted from big case statement. Use
30251         func_get_license, func_modules_transitive_closure,
30252         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
30253         opt_lgpl. Don't use test -a, as it's not portable.
30254         (func_create_testdir): Use func_modules_transitive_closure,
30255         func_modules_to_filelist, func_emit_lib_Makefile_am.
30256
30257 2004-10-15  Bruno Haible  <bruno@clisp.org>
30258
30259         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
30260
30261 2004-10-15  Bruno Haible  <bruno@clisp.org>
30262
30263         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
30264         the portions belonging to each module.
30265         Suggested by Derek Robert Price <derek@ximbiot.com>.
30266
30267 2004-10-12  Simon Josefsson  <jas@extundo.com>
30268
30269         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30270         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
30271         to real functions.
30272
30273 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30274
30275         * modules/vsnprintf: New file.
30276
30277 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30278
30279         * m4/vsnprintf.m4: New file.
30280
30281 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30282
30283         * lib/vsnprintf.h: New file.
30284         * lib/vsnprintf.c: New file.
30285
30286 2004-10-11  Bruno Haible  <bruno@clisp.org>
30287
30288         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
30289         vsnprintf.
30290
30291 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30292
30293         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
30294
30295 2004-10-07  Bruno Haible  <bruno@clisp.org>
30296
30297         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
30298         fits into the provided buffer.
30299
30300 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30301
30302         * lib/diacrit.c, diacrit.h: Add GPL notice.
30303
30304         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
30305         notice.
30306         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
30307         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
30308         This avoids a potential constant-folding bug.
30309
30310 2004-10-05  Bruno Haible  <bruno@clisp.org>
30311
30312         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
30313         for the declaration of strsep.
30314
30315 2004-10-05  Bruno Haible  <bruno@clisp.org>
30316
30317         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
30318
30319 2004-10-04  Simon Josefsson  <jas@extundo.com>
30320
30321         * modules/memmem: New file.
30322         * tests/test-memmem.c: New file.
30323         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
30324
30325 2004-10-04  Simon Josefsson  <jas@extundo.com>
30326
30327         * m4/memmem.m4: New file.
30328
30329 2004-10-04  Simon Josefsson  <jas@extundo.com>
30330
30331         * lib/memmem.h: New file.
30332         * lib/memmem.c: New file, taken from glibc.
30333
30334 2004-10-04  Simon Josefsson  <jas@extundo.com>
30335
30336         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
30337         '#ifdef USE_UNLOCKED_IO'.
30338
30339 2004-10-04  Simon Josefsson  <jas@extundo.com>
30340
30341         * config/srclist.txt: Add memmem from glibc.
30342
30343 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30344
30345         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
30346
30347         * modules/argmatch, modules/argp, modules/closeout, modules/error,
30348         modules/exclude, modules/getdate, modules/getline,
30349         modules/getndelim2, modules/getpass, modules/getpass-gnu,
30350         modules/getusershell, modules/linebuffer, modules/md5,
30351         modules/mountlist, modules/posixtm, modules/readtokens,
30352         modules/readutmp, modules/regex, modules/sha1,
30353         modules/version-etc, modules/yesno:
30354         Remove dependency on unlocked-io.
30355
30356 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30357
30358         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
30359
30360         * m4/unlocked-io.m4: Add copyright notice.
30361         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
30362
30363 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30364
30365         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
30366         * lib/xmalloc.c (xmemdup): Likewise.
30367         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
30368         XFREE): Remove these long-obsolescent macros.
30369         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
30370         * lib/xstrdup.c: Remove.
30371
30372         * lib/regex.c (re_comp): Cast gettext return value to char *,
30373         Problem reported by Martin Neitzel via Mark D. Baushke.
30374
30375 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30376
30377         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
30378         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
30379         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
30380         regex.c, sha1.c, version-etc.c, yesno.c:
30381         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
30382         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
30383         the includer's responsibility.
30384
30385         Sync from coreutils.
30386
30387         * lib/modechange.c (mode_compile): Don't decrement a pointer that
30388         points to the start of a string, as the C Standard says the
30389         resulting behavior is undefined.
30390
30391         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
30392         simple -> simple_backups, numbered_existing ->
30393         numbered_existing_backups, numbered -> numbered_backups
30394         to avoid shadowing problems.  All uses changed.
30395         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
30396         * lib/backupfile.c (check_extension, numbered_backup):
30397         Rename locals to avoid shadowing 'basename'.
30398         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
30399         once.
30400
30401         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
30402         * lib/.cvsignore: Add getopt.h.
30403
30404 2004-10-04  Bruno Haible  <bruno@clisp.org>
30405
30406         * modules/README: New file.
30407         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
30408         not a module.
30409
30410 2004-10-02  Jim Meyering  <jim@meyering.net>
30411
30412         * lib/dirfd.h, getpagesize.h: Add copyright notice.
30413
30414 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30415
30416         * modules/strsep: New file.
30417
30418 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30419
30420         * m4/strsep.m4: New file.
30421
30422 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30423
30424         * lib/strsep.h: New file.
30425         * lib/strsep.c: New file.
30426
30427 2004-10-01  Simon Josefsson  <jas@extundo.com>
30428
30429         * lib/snprintf.c (snprintf): Handle size==0.
30430
30431 2004-10-01  Simon Josefsson  <jas@extundo.com>
30432             Bruno Haible  <bruno@clisp.org>
30433
30434         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
30435         (snprintf): Declare 'args'.
30436
30437 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
30438
30439         * lib/snprintf.c: Remove comments as to why each header is needed.
30440
30441 2004-10-01  Bruno Haible  <bruno@clisp.org>
30442
30443         * MODULES.html.sh: Add strsep.
30444
30445 2004-09-30  Simon Josefsson  <jas@extundo.com>
30446
30447         * modules/snprintf: New file.
30448
30449 2004-09-30  Simon Josefsson  <jas@extundo.com>
30450
30451         * m4/snprintf.m4: New file.
30452
30453 2004-09-30  Simon Josefsson  <jas@extundo.com>
30454
30455         * lib/snprintf.h, lib/snprintf.c: New files.
30456
30457 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30458
30459         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
30460         (hol_entry_help): Never translate an empty string.
30461         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
30462         * lib/argp.h (OPTION_NO_TRANS): New option.
30463
30464 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30465
30466         * modules/argp (Maintainer): Replace Simon Josefsson
30467         by Sergey Poznyakoff.
30468
30469 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30470
30471         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
30472         changes merged back into glibc.
30473
30474 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30475
30476         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
30477
30478 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
30479
30480         * lib/xvasprintf.c: Include xalloc.h.
30481         (xvasprintf): Use xalloc_die, not xmalloc_die.
30482
30483 2004-09-29  Bruno Haible  <bruno@clisp.org>
30484
30485         * modules/alloca-opt: New file, derived from modules/alloca.
30486         * modules/allocsa: Depend on alloca-opt instead of alloca.
30487         * modules/setenv: Likewise.
30488         * modules/vasnprintf: Likewise.
30489         * MODULES.html.sh: Add alloca-opt.
30490
30491 2004-09-28  Simon Josefsson  <jas@extundo.com>
30492
30493         * gnulib-tool: New parameter --lgpl, to asseert that modules are
30494         LGPL, and to replace license template from GPL to LGPL.
30495
30496 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30497
30498         * modules/dummy: Change license to LGPL.
30499
30500 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30501
30502         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
30503
30504 2004-09-24  Simon Josefsson  <jas@extundo.com>
30505
30506         * modules/minmax (License): Change from GPL to LGPL.
30507
30508 2004-09-23  Simon Josefsson  <jas@extundo.com>
30509
30510         * gnulib-tool (--import): Typo.
30511
30512 2004-09-23  Simon Josefsson  <jas@extundo.com>
30513
30514         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
30515
30516 2004-09-22  Bruno Haible  <bruno@clisp.org>
30517
30518         * modules/*: Add 'License' field.
30519         * gnulib-tool: Accept --extract-license option.
30520         (func_get_license): New function.
30521
30522 2004-09-21  Bruno Haible  <bruno@clisp.org>
30523
30524         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
30525         Reported by Simon Josefsson.
30526
30527 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30528
30529         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
30530         gl_AC_TYPE_LONG_LONG.
30531
30532 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30533
30534         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
30535
30536 2004-09-18  Simon Josefsson  <jas@extundo.com>
30537         and  Paul Eggert  <eggert@cs.ucla.edu>
30538
30539         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
30540         calls with autoreconf.  Define GL_LIB.
30541
30542 2004-09-14  Karl Berry  <karl@gnu.org>
30543
30544         * config/srclist.txt: unsync setenv.c, sigh.
30545
30546 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30547
30548         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
30549         Problem reported by Bruno Haible in:
30550         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
30551
30552 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30553
30554         * config/srclist.txt: Comment out argp-pvh.c.
30555
30556 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
30557
30558         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
30559         in case some system header has #define'd it.  Problem reported by
30560         Soeren D. Schulze in
30561         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
30562
30563 2004-09-09  Karl Berry  <karl@gnu.org>
30564
30565         * regex.[ch]: delete from the root.  These were supposed to be
30566                 synced with emacs cvs, but this has not happened for about
30567                 a year, and anyway nothing else uses emacs regex.[ch].
30568                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
30569                 lib/regex[.ch] is untouched.
30570
30571 2004-09-09  Bruno Haible  <bruno@clisp.org>
30572
30573         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
30574
30575 2004-09-09  Bruno Haible  <bruno@clisp.org>
30576
30577         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
30578         modifications.
30579         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
30580
30581 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30582
30583         * modules/xvasprintf: New file.
30584         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
30585
30586 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30587
30588         * lib/xvasprintf.h: New file.
30589         * lib/xvasprintf.c: New file.
30590         * lib/xasprintf.c: New file.
30591
30592 2004-09-08  Bruno Haible  <bruno@clisp.org>
30593
30594         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
30595
30596 2004-09-08  Bruno Haible  <bruno@clisp.org>
30597
30598         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
30599         length is > INT_MAX.
30600         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
30601         more.
30602
30603 2004-09-08  Bruno Haible  <bruno@clisp.org>
30604
30605         * lib/stdint_.h: New file, taken from GNU clisp.
30606
30607 2004-09-08  Bruno Haible  <bruno@clisp.org>
30608             Oskar Liljeblad  <oskar@osk.mine.nu>
30609
30610         * modules/stdint: New file.
30611         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
30612
30613 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30614
30615         Import from coreutils.
30616         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
30617         strings on unbounded length.  alloca's performance benefits aren't
30618         that important here.
30619         (V_STRDUP): Remove.
30620         (parse_with_separator): New function, with most of the internals
30621         of the old parse_user_spec.  Allow user to omit both user and group,
30622         for compatibility with FreeBSD.
30623         Clone only the user name, not the entire spec.
30624         Do not set *uid, *gid unless entirely successful.
30625         Avoid memory leak in some failing cases.
30626         Fix regression for USER.GROUP reported by Dmitry V. Levin in
30627         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
30628         (parse_user_spec): Rewrite to use parse_with_separator.
30629
30630 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30631
30632         * modules/userspec: Don't depend on alloca.
30633
30634 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30635
30636         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
30637
30638 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30639
30640         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
30641         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
30642         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
30643
30644 2004-08-16  Simon Josefsson  <jas@extundo.com>
30645
30646         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
30647         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
30648         Add --dry-run for --import.
30649         Let user provided command line parameters override configure.ac
30650         settings.
30651
30652 2004-08-12  Simon Josefsson  <jas@extundo.com>
30653
30654         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
30655         as discussed with Paul Eggert in threads rooted at
30656         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
30657         and
30658         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
30659         Before, the test was empty, and relied on ELIDE_CODE in source
30660         code.)
30661         (gl_PREREQ_GETOPT): New macro.
30662         (gl_GETOPT): Use them.
30663
30664 2004-08-12  Simon Josefsson  <jas@extundo.com>
30665
30666         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
30667         * lib/getopt_.h: Renamed from getopt.h.
30668
30669 2004-08-12  Simon Josefsson  <jas@extundo.com>
30670
30671         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
30672         Change default library name from libfoo to libgnu.
30673         Now, if you have a configure.ac that says:
30674                 gl_SOURCE_BASE(gl)
30675                 gl_M4_BASE(gl/m4)
30676                 gl_MODULES(error getopt etcetera)
30677                 gl_INIT
30678         you can import all you need by running:
30679                 ../gnulib/gnulib-tool --import
30680
30681         * modules/getopt (Files): Rename getopt.h to getopt_.h.
30682         (Makefile.am): Rewrite, use logic from argz.
30683         (Include): Use <getopt.h> instead of "getopt.h".
30684
30685 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30686
30687         * modules/argp (Files): Add m4/unlocked-io.m4.
30688         (Depends-on): Add extensions.
30689
30690 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30691
30692         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
30693         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
30694         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
30695         Check for program_invocation_name, program_invocation_short_name,
30696         flockfile, funlockfile, features.h, _getopt_long_only_r.
30697
30698 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30699
30700         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
30701         its complicated substitute.
30702         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
30703         and program_invocation_name.
30704         (__argp_basename) [!_LIBC]: Remove; the only use was
30705         replaced by its body.
30706         (__argp_short_program_name): Change condition from
30707         !defined __argp_short_program_name to
30708         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
30709         to match argp-namefrob.h.
30710         (__argp_failure): Don't assume strerror_r returns char *.
30711         * lib/argp-parse.c (N_): Define unconditionally.
30712         (argp_default_options): Fill out initializers with 0 to avoid
30713         gcc warnings.
30714
30715 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30716
30717         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
30718         getopt1.c.
30719
30720 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30721
30722         Merge from coreutils.
30723
30724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
30725
30726         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
30727         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
30728
30729 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30730
30731         Merge from coreutils.
30732
30733         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
30734         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
30735         for Reliant Unix 5.43.
30736
30737         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
30738         (union fooround): Use uintmax_t, not long int.
30739         The rest is a merge from libc:
30740         [defined _LIBC]: Include <shlib-compat.h>.
30741         (_obstack) [defined _LIBC]: Remove after 2.3.4.
30742
30743         * lib/settime.c (settime): Recode to avoid warning with
30744         Sun Forte C 6U2.
30745
30746         * lib/strverscmp.c: Convert to UTF-8.
30747
30748 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30749
30750         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30751         m4/uintmax_t.m4.
30752
30753 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30754
30755         * modules/xalloc-die: New file.
30756         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
30757
30758         * modules/md5 (Files): Add m4/uint32_t.m4.
30759         * modules/sha1: Renamed from modules/sha.
30760         (Files):
30761         Rename lib/sha.h to lib/sha1.h.
30762         Rename lib/sha.c to lib/sha1.c.
30763         Rename m4/sha.m4 to m4/sha1.m4.
30764         (lib_SOURCES): Likewise.
30765         (configure.ac): Rename gl_SHA to gl_SHA1.
30766         (Include): sha.h -> sha1.h.
30767
30768 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30769
30770         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
30771         * m4/sha1.m4: Renamed from sha.m4.
30772         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
30773
30774 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30775
30776         * lib/obstack.h (obstack_empty_p):
30777         Don't assume that chunk->contents is suitably aligned.
30778         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
30779         Likewise. Problem reported by Benno in
30780         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
30781
30782         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
30783         readable.  This could be improved further but it'd take some work.
30784
30785 2004-08-08  Simon Josefsson  <jas@extundo.com>
30786
30787         * modules/xgethostname (Depends-on): Remove exit and error (not
30788         used).
30789
30790         * modules/getpass-gnu: Add getpass.h.
30791         (Depends-on): Add stdbool.
30792         * modules/getpass: Add getpass.h.
30793
30794 2004-08-08  Simon Josefsson  <jas@extundo.com>
30795
30796         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
30797         Check getpass declaration.
30798
30799 2004-08-08  Simon Josefsson  <jas@extundo.com>
30800
30801         * lib/xgethostname.c: Don't include error.h (not used).
30802
30803         * lib/getpass.h: Add.
30804         * lib/getpass.c: Include getpass.h first.
30805
30806 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
30807
30808         * lib/xalloc-die.c: New file.
30809         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
30810         All uses removed.
30811         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
30812         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
30813         xalloc-die.c.
30814         (_, N_, xalloc_die): Move to xalloc-die.c.
30815         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
30816         so that we needn't mess with xalloc_msg_memory_exhausted.
30817
30818         * lib/sha1.h: Renamed from sha.h.
30819         (SHA1_H): Renamed from _SHA_H.
30820         (sha1_ctx): Renamed from sha_ctx.
30821         (sha1_init_ctx): Renamed from sha_init_ctx.
30822         (sha1_process_block): Renamed from sha_process_block.
30823         (sha1_process_bytes): Renamed from sha_process_bytes.
30824         (sha1_finish_ctx): Renamed from sha_finish_ctx.
30825         (sha1_read_ctx): Renamed from sha_read_ctx.
30826         (sha1_stream): Renamed from sha_stream.
30827         (sha1_buffer): Renamed from sha_buffer.
30828         * lib/sha1.c: Likewise; renamed from sha.c.
30829         Do not include <sys/types.h>.
30830         Include <stddef.h> rather than <stdlib.h>.
30831
30832 2004-08-08  Bruno Haible  <bruno@clisp.org>
30833
30834         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
30835         FILESYSTEM_PREFIX_LEN.
30836         * lib/progreloc.c: Likewise.
30837         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
30838
30839 2004-08-06  Simon Josefsson  <jas@extundo.com>
30840
30841         * modules/progname (Depends-on): Don't depend on stdbool.
30842
30843 2004-08-06  Simon Josefsson  <jas@extundo.com>
30844
30845         * modules/getsubopt: New file.
30846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30847         getsubopt.
30848
30849 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30850
30851         More merge from coreutils.
30852
30853         * m4/utimens.m4, m4/utimecmp.m4: New files.
30854         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
30855         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
30856         prereq.m4, sha.m4: Import changes from coreutils.
30857
30858 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30859
30860         More merge from coreutils.
30861         * modules/raise, modules/readtokens0, modules/utimens:
30862         * modules/utimecmp, module/xnanosleep: New files.
30863         * modules/strftime: Add lib/strftime.h.
30864         Change include from <time.h> to "strftime.h".
30865         * modules/yesno: Add lib/yesno.h.
30866         * modules/backupfile: Remove lib/addext.c.
30867         * modules/euidaccess: Add stat-macros.h.
30868         * modules/canonicalize, modules/euidaccess,
30869         modules/filemode, modules/lchown, modules/makepath,
30870         modules/rmdir, modules/stat: Likewise.
30871
30872 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30873
30874         Merge from tar.
30875         * lib/argp-help.c (make_hol, hol_append): Don't assume that
30876         SIZE_MAX is a valid preprocessor constant.
30877         (__argp_basename): Change from "#ifndef _LIBC"
30878         to "#ifndef __argp_short_program_name", so that
30879         we don't compile these functions for tar.
30880
30881         More merges from coreutils.
30882         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
30883         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
30884         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
30885         * lib/addext.c: Remove; no longer needed.
30886         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
30887         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
30888         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
30889         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
30890         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
30891         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
30892         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
30893         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
30894         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
30895         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30896         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
30897         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
30898         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
30899         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
30900         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
30901         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
30902         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
30903         Import changes from coreutils.
30904
30905 2004-08-05  Simon Josefsson  <jas@extundo.com>
30906
30907         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
30908
30909 2004-08-05  Simon Josefsson  <jas@extundo.com>
30910
30911         * m4/getsubopt.m4: New file.
30912
30913 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30914
30915         Merge from coreutils.
30916
30917         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
30918         * m4/getcwd-path-max.m4: New files.
30919
30920         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
30921         FILESYSTEM_PREFIX_LEN ->
30922         FILE_SYSTEM_PREFIX_LEN.
30923         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
30924         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
30925         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
30926         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
30927
30928         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
30929         prerequisite modules now handle the DOS stuff.
30930         Don't check for unistd.h.
30931
30932 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30933
30934         Merge from coreutils.
30935
30936         * lib/.gdb-history: Remove; this doesn't belong here.
30937
30938         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
30939         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
30940         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
30941         * lib/getcwd.c: New files.
30942
30943         * lib/dirname.h: Include <stdbool.h>.
30944         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
30945         for consistency with POSIX terminology.  All uses changed.
30946         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
30947         (strip_trailing_slashes): Use bool for booleans.
30948         * lib/stripslash.c (strip_trailing_slashes): Likewise.
30949
30950         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
30951         sometimes returns a positive errno value even when it succeeds.
30952         (print_errno_message) [!LIBC]: Fall back on strerror if
30953         __strerror_r fails.
30954
30955         * lib/path-concat.c (mempcpy): Don't define if a system header defines
30956         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
30957         (longest_relative_suffix): New function.
30958         (path_concat): Use it.  Assume first argument is not NULL.
30959         Port to DOS.  Omit redundant separators.
30960         Report an error instead of returning NULL.
30961         Use mempcpy instead of memcpy.
30962         (xpath_concat): Remove: not declared or used.
30963
30964         * lib/same.h: Include <stdbool.h>
30965         (same_name): Return bool, not int.
30966         * lib/same.c (same_name): Likewise.
30967         (errno): Don't declare; we assume C89 or better now.
30968
30969         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
30970         if not already defined.
30971
30972         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
30973         * lib/dup-safer.c (errno): Likewise.
30974
30975 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30976
30977         Merge from coreutils.
30978         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
30979         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
30980         * modules/path-concat: Don't depend on strdup.
30981
30982 2004-08-03  Simon Josefsson  <jas@extundo.com>
30983
30984         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
30985         * lib/progname.h: Don't include stdbool.h.
30986
30987 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30988
30989         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
30990         * MODULES.html.sh (func_all_modules): Remove fatal.
30991
30992 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30993
30994         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
30995
30996 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30997
30998         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
30999         working.
31000
31001 2004-08-02  Simon Josefsson  <jas@extundo.com>
31002
31003         * lib/getsubopt.h: New file, with comments from Bruno Haible.
31004         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
31005         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
31006
31007 2004-08-01  Simon Josefsson  <jas@extundo.com>
31008
31009         * lib/xgetdomainname.c: Include stdlib.h, for free().
31010
31011 2004-07-19  Bruno Haible  <bruno@clisp.org>
31012
31013         * MODULES.html.sh (func_all_modules): Add dummy.
31014
31015 2004-07-16  Simon Josefsson  <jas@extundo.com>
31016
31017         * modules/dummy: New file.
31018
31019 2004-07-16  Simon Josefsson  <jas@extundo.com>
31020
31021         * lib/dummy.c: New file.
31022
31023 2004-07-16  Bruno Haible  <bruno@clisp.org>
31024
31025         * lib/backupfile.h: Add extern "C" for C++.
31026         * lib/closeout.h: Likewise.
31027         * lib/copy-file.h: Likewise.
31028         * lib/findprog.h: Likewise.
31029         * lib/full-write.h: Likewise.
31030         * lib/pathname.h: Likewise.
31031         * lib/progname.h: Likewise.
31032         * lib/stpcpy.h: Likewise.
31033         * lib/stpncpy.h: Likewise.
31034         * lib/strcase.h: Likewise.
31035         * lib/strstr.h: Likewise.
31036         * lib/xalloc.h: Likewise.
31037
31038         * lib/mbswidth.h: Add extern "C" for C++.
31039         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
31040
31041 2004-07-13  Robert Millan  <robertmh@gnu.org>
31042
31043         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
31044
31045 2004-07-09  Simon Josefsson  <jas@extundo.com>
31046
31047         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
31048         failed without this.)
31049
31050 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31051
31052         * modules/chown (Files): Add lib/fchown-stub.c, since
31053         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
31054
31055 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31056
31057         * lib/fchown-stub.c: New file.
31058
31059 2004-06-24  Jim Meyering  <jim@meyering.net>
31060
31061         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
31062
31063 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31064
31065         * modules/argz: Omit "#include".
31066
31067         * MODULES.html.sh (func_all_modules): Add calloc, to match
31068         2004-06-01 addition of calloc module.
31069
31070 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31071
31072         * m4/argz.m4: New file, which is autoupdated from libtool.
31073
31074 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31075
31076         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
31077         libtool.
31078
31079 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31080
31081         * config/srclist-update: Don't insist on "USA." before the
31082         close-comment, as libtool omits the period and puts the */ on a
31083         separate line.
31084         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
31085         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
31086
31087 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
31088
31089         * modules/argz: New file.
31090         * MODULES.html.sh (func_all_modules): Add argz.
31091
31092 2004-06-12  Jim Meyering  <jim@meyering.net>
31093         and  Paul Eggert  <eggert@cs.ucla.edu>
31094
31095         * modules/hash (Files): Add lib/xalloc.h.
31096         * modules/pipe (Depends-on): Add wait-process.
31097         * modules/stat (Depends-on): Add xalloc.
31098         * modules/userspec (Files): Add lib/userspec.h.
31099         * modules/xstrto
31100
31101         Upgrade from gettext-0.13.
31102         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
31103         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
31104         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
31105
31106 2004-06-10  Jim Meyering  <jim@meyering.net>
31107
31108         * lib/calloc.c: New file.
31109
31110 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31111
31112         * lib/getdate.y (yylex): Allow space between sign and number.
31113         Problem reported by Dan Jacobson.
31114
31115 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31116
31117         Merge from coreutils CVS.
31118
31119         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
31120         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
31121         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
31122         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
31123         xstrtol.m4: Fix copyright date and/or serial number.
31124
31125         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
31126         See if we need an fchown replacement.
31127         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
31128         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
31129         and use the replacement function if we detect either defect.
31130
31131         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
31132         gl_UTIMECMP.
31133
31134 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31135         and  Jim Meyering  <jim@meyering.net>
31136
31137         Merge from coreutils CVS.
31138
31139         * lib/stat-macros.h: New file, with contents from file-type.h
31140         and coreutils' system.h.
31141         * lib/file-type.c: Include "stat-macros.h".
31142         * lib/file-type.h (file_type): Move all macro definitions to new file,
31143         stat-macros.h.
31144
31145         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
31146         Wrap old code with this conditional.
31147         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
31148         function that does not dereference symlinks.
31149         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
31150
31151         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
31152         dependency problems.
31153         (xreadlink): Accept new arg SIZE, for efficiency.
31154         All decls and uses changed.
31155         * lib/xreadlink.h: Include <stddef.h>, for size_t.
31156
31157         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
31158         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
31159
31160         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
31161         sysexits.h.
31162
31163 2004-06-01  Jim Meyering  <jim@meyering.net>
31164
31165         * m4/calloc.m4: New file.
31166
31167 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
31168
31169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
31170         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
31171         Also, fix a typo in a diagnostic.
31172
31173 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31174
31175         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
31176         or AC_FUNC_REALLOC.
31177
31178 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31179
31180         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
31181         macros to be defined.
31182         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
31183         the allocator returns NULL because the requested size is zero.
31184
31185 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31186
31187         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
31188         var.  Add comment explaining why libc still defines it.  This
31189         merges the following patch from glibc:
31190         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
31191
31192 2004-05-20  Andreas Schwab  <schwab@suse.de>
31193
31194         * m4/free.m4: Replace free if it not known to work, not the other
31195         way round.
31196
31197 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31198
31199         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
31200         present in glibc since revision 1.1 of this file.
31201         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
31202         obstack_alignment_mask, obstack_alloc, obstack_base,
31203         obstack_blank, obstack_blank_fast, obstack_chunk_size,
31204         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
31205         obstack_grow0, obstack_init, obstack_int_grow,
31206         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
31207         obstack_next_free, obstack_object_size, obstack_ptr_grow,
31208         obstack_ptr_grow_fast, obstack_room): Remove declarations of
31209         nonexistent functions.
31210
31211 2004-05-18  Karl Berry  <karl@gnu.org>
31212
31213         * config/srclist.txt: break link for vasnprintf.c.
31214
31215 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31216
31217         Port obstack to the AS/400, where pointers are 16 bytes wide and
31218         you cannot cast an integer to a valid pointer.  This patch is
31219         currently waiting to be integrated into glibc; see
31220         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
31221
31222         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
31223         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
31224         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
31225         (struct obstack): temp member is now a union of a pointer and
31226         an integer, instead of an integer.  All integer uses changed.
31227         This does not affect the physical layout of struct obstack,
31228         except on hosts (like the AS/400) where the size or alignment of
31229         void * is greater than that of ptrdiff_t.
31230         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
31231         __STDC__)]: Store temporary in pointer member of union, not
31232         integer member.
31233         * lib/obstack.c: Include <stddef.h>, for offsetof.
31234         (struct fooalign): Remove; it doesn't need a name.
31235         (union fooround): Change double to long double, and add void *.
31236         (DEFAULT_ALIGNMENT): Use offsetof to compute.
31237         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
31238         not a macro.  Hence the values are always int; so remove all
31239         casts-to-int in uses.
31240
31241 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31242
31243         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
31244         we can get this patch merged into glibc.
31245
31246 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31247             Paul Eggert  <eggert@cs.ucla.edu>
31248
31249         * m4/argp: Depend on alloca.
31250
31251 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31252             Paul Eggert  <eggert@cs.ucla.edu>
31253
31254         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
31255         freecoding.
31256
31257 2004-05-17  Bruno Haible  <bruno@clisp.org>
31258
31259         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
31260         precision that consists of a '.' followed by an empty digit string.
31261         Patch by Tor Lillqvist <tml@iki.fi>.
31262
31263 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31264
31265         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
31266         for backward compatibility with older code.  We need our own
31267         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
31268         it under some other name, and our alloca.h will define it.
31269
31270 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31271             Derek Price  <derek@ximbiot.com>
31272
31273         * lib/alloca.c: Include <alloca.h>, to get our interface.
31274         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
31275         include <alloca.h> first.  Use C89 prototype for alloca; this
31276         requires including <stddef.h> for size_t.  Use extern "C" if C++.
31277         Use #elif for simplicity, since we can assume C89 now.
31278         Don't try to source the system alloca.h since it will not be found
31279         and to prevent recursively including its replacement.
31280         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
31281         * lib/regex.c: Likewise.
31282
31283 2004-05-16  Derek Price  <derek@ximbiot.com>
31284             Paul Eggert  <eggert@cs.ucla.edu>
31285
31286         getline cleanup.  This changes the getndelim2 API: both order of
31287         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
31288         no delimiter).
31289
31290         * lib/getline.c: Don't include stddef.h or stdio.h, since our
31291         interface does that.
31292         (getline): Always use getdelim, so that we don't have two
31293         copies of this code.
31294         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
31295         if available.
31296         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
31297         (GETNDELIM2_MAXIMUM): New macro.
31298         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
31299         instead of the old practice of delim2==0.  All callers changed.
31300         Return -1 on overflow, instead of returning junk.
31301         Do not set *linesize unless allocation succeeds.
31302         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
31303         that we include sys/types.h.
31304         * lib/getnline.h: Likewise.
31305         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
31306         (getndelim2): Reorder arguments.
31307         * lib/getnline.c (getnline, getndelim):
31308         Don't discard the NMAX argument.
31309         (getnline): Invoke getndelim, to avoid code duplication.
31310         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
31311         of (size_t) -1 by callers of the getnline family.
31312
31313 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31314
31315         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
31316         Check for gettimeofday.
31317         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
31318         Check for settimeofday, stime.
31319
31320 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31321
31322         * lib/nanosleep.c (suspended): Change its type from int to
31323         sig_atomic_t volatile.
31324         (first_call): Make it private to rpl_nanosleep, and have it
31325         be zero initially as that's a bit faster.
31326         (my_usleep): Round up fractional times instead of truncating them,
31327         as this is the usual meaning for 'sleep'.
31328
31329         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
31330         doesn't work.
31331         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
31332         (ENOSYS): Define if not defined.
31333         (settime): Fall back on stime if it exists and settimeofday fails.
31334         But don't bother with fallbacks if a method fails with errno == EPERM.
31335
31336 2004-05-11  Jim Meyering  <jim@meyering.net>
31337
31338         Prior to this change, the save_cwd caller required read access to the
31339         current directory on most systems (ones with the fchdir function).
31340
31341         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
31342         fails, try write-only, and finally, resort to using xgetcwd.
31343
31344 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31345
31346         * lib/obstack.c, obstack.h: Import changes from libc.
31347
31348 2004-04-28  Bruno Haible  <bruno@clisp.org>
31349
31350         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
31351         also implicitly appends .exe to executables.
31352         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
31353         accepts Windows pathnames.
31354         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31355         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31356         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31357         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31358         Reported by Derek Robert Price <derek@ximbiot.com>.
31359
31360 2004-04-21  Karl Berry  <karl@gnu.org>
31361
31362         * config/srclist.txt (localcharset.c): break sync.
31363
31364 2004-04-20  Paul Eggert  <eggert@twinsun.com>
31365
31366         * m4/host-os.m4: Add a copyright notice.
31367
31368 2004-04-20  Jim Meyering  <jim@meyering.net>
31369
31370         Change UTILS_ to gl_ in AC_DEFINE'd names.
31371         Change utils_- and jm_-prefixed variables, too.
31372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
31373         UTILS_FUNC_MKDIR_TRAILING_SLASH.
31374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
31375
31376         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
31377         Don't emit trailing blanks.
31378         Also rename jm_-prefixed variables to have gl_ prefix.
31379
31380         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
31381         Also rename jm_-prefixed variables to have gl_ prefix.
31382
31383         * m4/jm-macros.m4: Reflect the renamings.
31384         * m4/prereq.m4: Likewise.
31385
31386 2004-04-20  Jim Meyering  <jim@meyering.net>
31387
31388         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
31389         memory.
31390
31391 2004-04-20  Jim Meyering  <jim@meyering.net>
31392             Bruno Haible  <bruno@clisp.org>
31393
31394         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
31395         memory when realloc fails.
31396
31397 2004-04-19  Jim Meyering  <jim@meyering.net>
31398
31399         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
31400         now that readutmp.c may call `free (0)'.
31401
31402 2004-04-19  Bruno Haible  <bruno@clisp.org>
31403
31404         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
31405         * m4/inttypes_h.m4: Likewise.
31406         * m4/stdint_h.m4: Likewise.
31407         * m4/intmax_t.m4: Likewise.
31408         * m4/uintmax_t.m4: Likewise.
31409
31410 2004-04-18  Jim Meyering  <jim@meyering.net>
31411
31412         * m4/prereq.m4: Don't forbid jm_ prefix.
31413
31414         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
31415         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
31416         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
31417         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
31418         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
31419         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
31420         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
31421         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
31422         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
31423         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
31424         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
31425         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
31426         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
31427         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
31428         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
31429         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
31430         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
31431         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
31432         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
31433
31434 2004-04-18  Jim Meyering  <jim@meyering.net>
31435
31436         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
31437         failure, don't leak memory and do call END_UTMP_ENT.
31438
31439 2004-04-16  Jim Meyering  <jim@meyering.net>
31440
31441         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
31442         coreutils' stat program.
31443         (gl_PREREQ): Don't require jm_PREREQ_STAT.
31444
31445 2004-04-11  Paul Eggert  <eggert@twinsun.com>
31446
31447         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
31448         C89.
31449         (CHAR_BIT): Remove, since we assume C89.
31450         Include <stdint.h> if available, as per current Autoconf CVS advice.
31451
31452 2004-03-31  Jim Meyering  <jim@meyering.net>
31453
31454         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
31455         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
31456         * m4/xalloc.m4: Likewise.
31457
31458 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31459
31460         Merge from coreutils.
31461
31462         * m4/inttostr.m4: New file.
31463         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
31464         Require AM_STDBOOL_H and gl_TIMESPEC instead.
31465         Require gl_CLOCK_TIME.
31466         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
31467
31468 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31469
31470         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
31471         not bool, to be more consistent with Unix conventions.
31472         Suggested by Bruno Haible.
31473
31474         Merge from coreutils.
31475
31476         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
31477         * lib/umaxtostr.c: New files.
31478
31479         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
31480         the usual <time.h> dance.
31481         (get_date): Change signature to support fractional time stamps.
31482         All callers changed.
31483         * lib/getdate.y: Include "getdate.h" first, as we can now
31484         assume C89 and don't need to worry about 'const'.
31485         Similarly, include "unlocked-io.h" near start, not in middle.
31486         Include <limits.h>.
31487         (textint.value): Use long int rather than int.
31488         (textint.digits): Use size_t rather than int.
31489         (BILLION, LOG10_BILLION): New constants.
31490         (parser_control): New member rel_ns.  Members day_ordinal,
31491         time_zone, month, day, hour, minutes, rel_year, rel_month,
31492         rel_day, rel_hour, rel_minutes, rel_seconds
31493         are now long int, not int.  Member seconds is now struct timespec,
31494         not int.  New member timespec_seen.  Members dates_seen, days_seen,
31495         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
31496         not int.
31497         (%union.intval): Now long int, not int.
31498         New member timespec.
31499         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
31500         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
31501         (spec): Now is a timespec or an item list.
31502         (timespec, items): New nonterminals.
31503         (time, rel, relunit, number, get_date):
31504         Add support for fractional seconds.
31505         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
31506         (gmtime, localtime, mktime): Remove decls; not needed with C89.
31507         (to_hour): First arg is now long int, not int.
31508         (to_year): Returns long int, not int.
31509         Don't treat year -70 like 70.
31510         (tm_diff): Returns long int, not int.
31511         (lookup_word): Use bool instead of int when appropriate.
31512         (yylex): Use size_t for count, not int.
31513         Detect overflow when parsing large integer constants.
31514         Add support for fractions.
31515         (get_date): Make pointers 'const' if possible.
31516         Use more-portable code to detect integer overflow.
31517         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
31518         Don't use ctime; it's not reliable if the year has >4 digits.
31519
31520         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
31521         This is for compatibility with BSD.
31522
31523         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
31524         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
31525         From coreutils' system.h.
31526
31527         * lib/userspec.c: Don't include "posixver.h".
31528         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
31529         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
31530         compatible extension.  Simplify code by removing a boolean int
31531         that was always nonzero if a string was nonnull.
31532
31533 2004-03-30  Jim Meyering  <jim@meyering.net>
31534
31535         Merge from coreutils.
31536
31537         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
31538         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
31539         on some systems one must include <grp.h> before it.
31540         Reported by Christian Krackowizer.
31541
31542 2004-03-30  Jim Meyering  <jim@meyering.net>
31543
31544         Merge from coreutils.
31545
31546         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
31547
31548         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
31549         an empty input stream.
31550
31551         * lib/readtokens.c: Include <stdbool.h>.
31552         (readtoken): Use `size_t' rather than int/long.
31553         All callers adjusted.
31554         Use `bool' rather than `int' where appropriate.
31555         Use memset rather than an explicit loop.
31556         Use x2nrealloc rather than xrealloc.
31557         Allow the use of `\0' as a delimiter.
31558         (readtokens): Likewise.
31559         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
31560
31561 2004-03-30  Jim Meyering  <jim@meyering.net>
31562
31563         * m4/realloc.m4: Remove file, since now it does no more than
31564         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
31565         the `configure.ac' section of module/realloc.
31566         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
31567
31568 2004-03-30  Bruno Haible  <bruno@clisp.org>
31569
31570         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
31571         nonnull.
31572
31573 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31574
31575         Merge changes to getloadavg.c from coreutils and Emacs.
31576
31577         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
31578         Define to an expression, not to the empty string.
31579         Include cloexec.h and xalloc.h.
31580         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
31581         Use set_cloexec_flag rather than rolling our own.
31582         * lib/cloexec.c, lib/cloexec.h: New files.
31583
31584 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31585
31586         * m4/cloexec.m4: New file.
31587
31588 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31589
31590         * lib/getopt.h: Sync with libc CVS.
31591
31592 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31593             Bruno Haible  <bruno@clisp.org>
31594
31595         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
31596         mbswidth.
31597
31598 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31599             Bruno Haible  <bruno@clisp.org>
31600
31601         * lib/mbswidth.h: Include <wchar.h> only if
31602         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
31603         <wchar.h>.
31604         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
31605
31606 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31607
31608         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
31609         Sync with libc CVS.
31610         * lib/getopt_int.h: New file, also synced from libc.
31611
31612 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31613
31614         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
31615         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
31616         Bring back getopt.c, getopt.h, getopt1.c.
31617
31618 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31619
31620         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
31621         All uses changed.  Check for sa_sigaction member; this fixes
31622         a bug first reported by Jason Andrade in
31623         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31624
31625 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31626
31627         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
31628         '#if' expressions.  Unlike the code it replaces, it does not
31629         depend on (defined _SC_PAGESIZE).  However, it does depend on
31630         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
31631         first reported by Jason Andrade in
31632         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31633
31634 2004-02-25  Simon Josefsson  <jas@extundo.com>
31635
31636         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
31637
31638 2004-02-25  Simon Josefsson  <jas@extundo.com>
31639
31640         * lib/strdup.h: New file.
31641         * lib/strdup.c: Include it.
31642         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
31643         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
31644
31645 2004-02-23  Karl Berry  <karl@gnu.org>
31646
31647         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
31648         (from fencepost.gnu.org:/gd/gnuorg).
31649
31650 2004-02-23  Karl Berry  <karl@gnu.org>
31651
31652         * config/srclistvars.sh (GNUORG) [karl]: redefine.
31653         * config/srclist.txt: add maintain/standards documents.
31654
31655 2004-02-18  Bruno Haible  <bruno@clisp.org>
31656
31657         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
31658         Reported by Derek Robert Price <derek@ximbiot.com>.
31659
31660 2004-02-16  Karl Berry  <karl@gnu.org>
31661
31662         * config/mkinstalldirs, install-sh: update from automake.
31663
31664 2004-02-06  Karl Berry  <karl@gnu.org>
31665
31666         * m4/po.m4: update from gettext 0.14.1.
31667
31668 2004-02-06  Karl Berry  <karl@gnu.org>
31669
31670         * lib/config.charset: update from gettext 0.14.1.
31671
31672 2004-02-05  Paul Eggert  <eggert@twinsun.com>
31673
31674         Add comments and code, prompted by suggestions from Bruno Haible
31675         for sh-quote.
31676         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
31677         describing the enum quoting_style values.
31678         * lib/quotearg.c (quotearg_alloc): New function.
31679         (quotearg_buffer_restyled): Treat lone { and } as special.
31680         Treat = as special.  Work around bug with older shells
31681         that "see" a '\' that is really the 2nd byte of a multibyte char.
31682         Quote empty string with shell_quoting_style.
31683
31684 2004-02-03  Bruno Haible  <bruno@clisp.org>
31685
31686         * m4/pipe.m4: New file, from GNU gettext.
31687
31688 2004-02-03  Bruno Haible  <bruno@clisp.org>
31689
31690         * lib/pipe.h: New file, from GNU gettext.
31691         * lib/pipe.c: New file, from GNU gettext.
31692
31693 2004-01-27  Bruno Haible  <bruno@clisp.org>
31694
31695         * m4/execute.m4: New file, from GNU gettext.
31696
31697 2004-01-27  Bruno Haible  <bruno@clisp.org>
31698
31699         * lib/execute.h: New file, from GNU gettext.
31700         * lib/execute.c: New file, from GNU gettext.
31701         * lib/w32spawn.h: New file, from GNU gettext.
31702
31703 2004-01-24  Paul Eggert  <eggert@twinsun.com>
31704
31705         Merge from diffutils.
31706
31707         * lib/file-type.c (file_type): Add typed memory objects.
31708         * lib/file-type.h (S_TYPEISTMO): New macro.
31709
31710         * lib/c-stack.h (c_stack_action): Remove argv argument.
31711         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
31712         (die): Don't calculate message unless segv_action returns.
31713         (get_stack_location, min_address_from_argv, max_address_from_argv,
31714         volatile stack_base, volatile_stack_size): Remove.
31715         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
31716         that every segmentation violation is a stack overflow.  (Ouch!)
31717         See Debian bug 136249 (still outstanding) for more info about why
31718         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
31719
31720 2004-01-24  Paul Eggert  <eggert@twinsun.com>
31721
31722         Exit-status fix from coreutils.
31723
31724         Use exit_failure consistently in place of EXIT_FAILURE,
31725         so that program exit statuses are consistent on failure.
31726
31727         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
31728         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
31729         * lib/argmatch.h: Comment fix to match the above.
31730         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
31731         Now a macro referring to exit_failure, instead of a separate
31732         variable.  Include "exitfail.h" to get it.
31733         * lib/xstrtol.h: Include "exitfail.h".
31734         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
31735
31736         * lib/long-options.c (parse_long_options): Use prototype
31737         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
31738         for clarity.
31739
31740 2004-01-21  Jim Meyering  <jim@meyering.net>
31741
31742         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
31743         so as not to conflict with a different-sized __mktime_internal
31744         function in GNU libc.
31745         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
31746         Problem building statically-linked `ls' reported by Michael Brunnbauer.
31747
31748 2004-01-20  Karl Berry  <karl@gnu.org>
31749
31750         * config/config.guess: update from config.
31751
31752         * config/srclistvars.sh: GNUWWWLICENSES for karl.
31753
31754 2004-01-20  Bruno Haible  <bruno@clisp.org>
31755
31756         Safer stack allocation.
31757         * lib/setenv.c: Include allocsa.h.
31758         (alloca): Remove fallback definition.
31759         (freea): Remove macro.
31760         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
31761         instead of freea.
31762
31763 2004-01-20  Bruno Haible  <bruno@clisp.org>
31764
31765         * m4/eealloc.m4: New file, from GNU gettext.
31766
31767 2004-01-20  Bruno Haible  <bruno@clisp.org>
31768
31769         * m4/allocsa.m4: New file, from GNU gettext.
31770
31771 2004-01-20  Bruno Haible  <bruno@clisp.org>
31772
31773         * lib/xallocsa.h: New file, from GNU gettext.
31774         * lib/xallocsa.c: New file, from GNU gettext.
31775
31776 2004-01-20  Bruno Haible  <bruno@clisp.org>
31777
31778         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
31779
31780 2004-01-20  Bruno Haible  <bruno@clisp.org>
31781
31782         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
31783         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
31784         specially.
31785
31786 2004-01-20  Bruno Haible  <bruno@clisp.org>
31787
31788         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
31789         patch.
31790
31791 2004-01-20  Bruno Haible  <bruno@clisp.org>
31792
31793         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
31794
31795 2004-01-20  Bruno Haible  <bruno@clisp.org>
31796
31797         * lib/eealloc.h: New file.
31798
31799 2004-01-20  Bruno Haible  <bruno@clisp.org>
31800
31801         * lib/binary-io.h: Avoid warnings on Cygwin.
31802
31803 2004-01-20  Bruno Haible  <bruno@clisp.org>
31804
31805         * lib/allocsa.h: New file, from GNU gettext.
31806         * lib/allocsa.c: New file, from GNU gettext.
31807
31808 2004-01-18  Karl Berry  <karl@gnu.org>
31809
31810         * doc/gpl.texi, doc/lgpl.texi: new files.
31811
31812 2004-01-18  Karl Berry  <karl@gnu.org>
31813
31814         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
31815         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
31816
31817 2004-01-15  Paul Eggert  <eggert@twinsun.com>
31818
31819         Merge from coreutils.
31820
31821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
31822         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
31823         (gl_DEFAULT_POSIX2_VERSION): Move
31824         the documentation from 'configure' into 'config.hin',
31825         so that 'configure --help' isn't burdened by it and
31826         we don't have to worry about its formatting there.
31827         Reword the documentation so that it's more succinct
31828         and can be run together into a single paragraph.
31829         * m4/same.m4 (gl_SAME): Check for pathconf.
31830
31831 2004-01-15  Paul Eggert  <eggert@twinsun.com>
31832
31833         Merge from coreutils.
31834
31835         * lib/posixver.c: Include posixver.h.
31836
31837         * lib/same.c: Include <stdbool.h>, <limits.h>.
31838         (_POSIX_NAME_MAX): Define if not defined.
31839         (MIN): New macro.
31840         (same_name): If file names are silently truncated, report
31841         that the file names are the same if they are the same after
31842         the silent truncation.
31843
31844         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
31845         conversion function.
31846         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
31847         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
31848         longer needed.
31849
31850 2004-01-15  Jim Meyering  <jim@meyering.net>
31851
31852         Merge from coreutils.
31853
31854         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
31855         if no library is required.
31856         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
31857         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
31858         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
31859         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
31860         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
31861         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
31862         value, $ac_cv_search_crypt, if it's "none required".
31863         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
31864         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
31865         not gl_FUNC_GETLOADAVG.
31866         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
31867         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
31868
31869 2004-01-15  Jim Meyering  <jim@meyering.net>
31870
31871         Merge from coreutils.
31872
31873         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
31874         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
31875         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
31876
31877         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
31878         optional configure-time default.
31879
31880         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31881
31882         * lib/xreadlink.c (xreadlink): Correct outdated comment.
31883
31884 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
31885
31886         Merge from coreutils.
31887
31888         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
31889         value, $ac_cv_search_nanosleep, if it's "none required".
31890
31891 2004-01-14  Paul Eggert  <eggert@twinsun.com>
31892
31893         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
31894         with like-named macro in fnmatch.c.
31895         (EXT): Use an internal constant instead.
31896
31897         Merge fnmatch patches from glibc.
31898         * lib/fnmatch.c (mbsinit): Remove define.
31899         Add libc_hidden_ver (__fnmatch, fnmatch).
31900         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
31901         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
31902
31903 2004-01-14  Karl Berry  <karl@gnu.org>
31904
31905         * config/install-sh: update from automake.
31906
31907 2004-01-13  Karl Berry  <karl@gnu.org>
31908
31909         * config/install-sh: update from automake.
31910
31911 2004-01-09  Karl Berry  <karl@gnu.org>
31912
31913         * config/install-sh: update from automake.
31914
31915 2004-01-05  Karl Berry  <karl@gnu.org>
31916
31917         * config/config.{sub,guess}: update from config.
31918
31919 2003-12-31  Karl Berry  <karl@gnu.org>
31920
31921         * config/depcomp: update from automake.
31922
31923 2003-12-14  Karl Berry  <karl@gnu.org>
31924
31925         * lib/config.charset: update from gettext-runtime.
31926
31927 2003-12-03  Paul Eggert  <eggert@twinsun.com>
31928
31929         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
31930         Bug reported by Alfred M. Szmidt.
31931
31932 2003-12-03  Bruno Haible  <bruno@clisp.org>
31933
31934         * m4/gettext.m4: Upgrade from gettext-0.13.
31935         * m4/po.m4: Upgrade from gettext-0.13.
31936         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
31937         * m4/intmax.m4: New file, from gettext-0.13.
31938         * m4/printf-posix.m4: New file, from gettext-0.13.
31939
31940 2003-11-29  Karl Berry  <karl@gnu.org>
31941
31942         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
31943
31944 2003-11-25  Paul Eggert  <eggert@twinsun.com>
31945             Bruno Haible  <bruno@clisp.org>
31946
31947         * lib/printf-parse.h: Don't include sys/types.h.
31948         (ARG_NONE): New macro.
31949         (char_directive): Change type of *arg_index fields to size_t.
31950         * lib/printf-parse.c: Don't include sys/types.h.
31951         (SSIZE_MAX): Remove macro.
31952         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
31953         Remove unnecessary overflow check.
31954         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
31955         fields.
31956
31957 2003-11-25  Bruno Haible  <bruno@clisp.org>
31958
31959         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
31960
31961 2003-11-25  Bruno Haible  <bruno@clisp.org>
31962
31963         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
31964         gt_TYPE_SSIZE_T.
31965
31966 2003-11-24  Paul Eggert  <eggert@twinsun.com>
31967
31968         * modules/alloca: Remove dependency on xalloc.
31969
31970 2003-11-24  Paul Eggert  <eggert@twinsun.com>
31971
31972         * lib/alloca.c: Remove dependency on xalloc module.
31973         (xalloc_die): Remove.
31974         (memory_full) [!defined emacs]: New macro.
31975         [!defined emacs]: Don't include xalloc.h.
31976         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
31977         address arithmetic overflows.  Change datatypes a bit to avoid
31978         unnecessary casts.
31979
31980 2003-11-22  Jim Meyering  <jim@meyering.net>
31981
31982         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
31983         s/size/size_t/.
31984
31985 2003-11-21  Karl Berry  <karl@gnu.org>
31986
31987         * config/config.{sub,guess}: update from config.
31988
31989 2003-11-18  Karl Berry  <karl@gnu.org>
31990
31991         * config/config.{sub,guess}: update from config.
31992
31993         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
31994
31995 2003-11-17  Paul Eggert  <eggert@twinsun.com>
31996
31997         * README: Mention that S+T cannot overflow if S is the size of
31998         an existing object and T is sufficiently small.
31999
32000 2003-11-17  Jim Meyering  <jim@meyering.net>
32001
32002         On systems without utime and without a utimes function capable of
32003         dealing with a NULL struct utimbuf* argument, this utime replacement
32004         could -- in unusual circumstances -- leak a file descriptor.
32005         * lib/utime.c: Include <unistd.h> and <errno.h>.
32006         (utime_null): Be sure to close `fd' and to preserve errno.
32007         Reported by Geoff Collyer via Arnold Robbins.
32008
32009 2003-11-17  Bruno Haible  <bruno@clisp.org>
32010
32011         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
32012         (Depends-on): Add xsize.
32013
32014 2003-11-17  Bruno Haible  <bruno@clisp.org>
32015
32016         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
32017
32018 2003-11-17  Bruno Haible  <bruno@clisp.org>
32019
32020         * lib/vasnprintf.c (alloca): Remove fallback definition.
32021         (freea): Remove definition.
32022         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
32023         Reported by Paul Eggert.
32024
32025 2003-11-16  Paul Eggert  <eggert@twinsun.com>
32026             Bruno Haible  <bruno@clisp.org>
32027
32028         Protect against address arithmetic overflow.
32029         * lib/printf-args.h: Include stddef.h.
32030         (arguments): Change type of field 'count' to size_t.
32031         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
32032         'unsigned int' where appropriate.
32033         * lib/printf-parse.h: Include sys/types.h.
32034         (char_directive): Change type of *arg_index fields to ssize_t.
32035         (char_directives): Change type of fields 'count', max_*_length to
32036         size_t.
32037         * lib/printf-parse.c: Include sys/types.h and xsize.h.
32038         (SSIZE_MAX): Define fallback value.
32039         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
32040         instead of 'int' where appropriate. Check a_allocated, d_allocated
32041         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
32042         * lib/vasnprintf.c: Include xsize.h.
32043         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
32044         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
32045         overflow. Avoid wraparound when converting a width or precision from
32046         decimal to binary.
32047
32048 2003-11-16  Bruno Haible  <bruno@clisp.org>
32049
32050         Update from GNU gettext.
32051         * lib/printf-parse.c: Generalize to it can be compiled for wide
32052         strings.
32053         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
32054         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
32055         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
32056         SNPRINTF): New macros.
32057         Don't include <alloca.h> if the file is used inside libintl.
32058         (local_wcslen): New function, for Solaris 2.5.1.
32059         (VASNPRINTF): Use it instead of wcslen.
32060
32061 2003-11-16  Bruno Haible  <bruno@clisp.org>
32062
32063         * lib/xsize.h (xmax): New function.
32064         (xsum, xsum3, xsum4): Declare as "pure" functions.
32065
32066 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32067
32068         * modules/xalloc (Files): Undo latest change, since xalloc.h
32069         no longer needs SIZE_MAX or PTRDIFF_MAX.
32070
32071 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32072
32073         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
32074         gl_PTRDIFF_MAX.
32075
32076 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32077
32078         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
32079         "return", to pacify some unknown compiler.  Problem reported
32080         by Joerg Schilling.
32081
32082 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32083
32084         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
32085         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
32086         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
32087         heuristic is just as accurate as far as we know, and it removes a
32088         dependency on size_max.m4 and ptrdiff_max.m4.
32089
32090 2003-11-11  Bruno Haible  <bruno@clisp.org>
32091
32092         * modules/xsize (Files): Add m4/size_max.m4.
32093         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
32094
32095 2003-11-11  Bruno Haible  <bruno@clisp.org>
32096
32097         * m4/size_max.m4: New file.
32098         * m4/ptrdiff_max.m4: New file.
32099         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
32100         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
32101         (gl_XALLOC): Invoke it.
32102
32103 2003-11-11  Bruno Haible  <bruno@clisp.org>
32104
32105         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
32106         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
32107         defined.
32108
32109 2003-11-10  Paul Eggert  <eggert@twinsun.com>
32110
32111         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
32112         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
32113         rejected some allocations of exactly SIZE_MAX - 2 bytes.
32114         From Bruno Haible.
32115         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
32116         not (size_t) -1, since it's defined here.
32117
32118 2003-11-09  Karl Berry  <karl@gnu.org>
32119
32120         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
32121
32122 2003-11-06  Paul Eggert  <eggert@twinsun.com>
32123
32124         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
32125         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
32126         Reject sizes of exactly SIZE_MAX bytes.
32127         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
32128         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
32129
32130 2003-11-05  Bruno Haible  <bruno@clisp.org>
32131
32132         * lib/xsize.h: Include limits.h, to avoid a possible collision with
32133         SIZE_MAX defined in <limits.h> on Solaris.
32134
32135 2003-11-04  Jim Meyering  <jim@meyering.net>
32136
32137         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
32138         variable names, rather than @VAR@.
32139         * modules/poll: Likewise.
32140
32141 2003-11-04  Bruno Haible  <bruno@clisp.org>
32142
32143         * modules/xsize: New file.
32144         * modules/linebreak: Depend on xsize.
32145         * MODULES.html.sh (func_all_modules): Add xsize.
32146
32147 2003-11-04  Bruno Haible  <bruno@clisp.org>
32148
32149         * m4/xsize.m4: New file.
32150
32151 2003-11-04  Bruno Haible  <bruno@clisp.org>
32152
32153         * lib/xsize.h: New file.
32154         * lib/linebreak.c: Include xsize.h.
32155         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
32156         argument for overflow.
32157         Suggested by Paul Eggert.
32158
32159 2003-11-03  Karl Berry  <karl@gnu.org>
32160
32161         * config/config.{guess,sub}: update from config.
32162
32163 2003-11-03  Jim Meyering  <jim@meyering.net>
32164
32165         * modules/userspec (lib_SOURCES): Add userspec.h.
32166         (Include): Add "userspec.h".
32167         Improve description.
32168
32169 2003-11-03  Jim Meyering  <jim@meyering.net>
32170
32171         * lib/userspec.c: Include "userspec.h".
32172         * lib/userspec.h: New file.
32173
32174 2003-11-03  Bruno Haible  <bruno@clisp.org>
32175
32176         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
32177
32178 2003-11-03  Bruno Haible  <bruno@clisp.org>
32179
32180         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
32181         available, to avoid (extremely rare) race condition.
32182         Suggested by Paul Eggert.
32183
32184 2003-11-02  Karl Berry  <karl@gnu.org>
32185
32186         * config/srclist.txt (vasprintf.c): sync broken, sigh.
32187
32188 2003-10-31  Paul Eggert  <eggert@twinsun.com>
32189
32190         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
32191         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
32192         (read_filesystem_list): Set and use me_type_malloced.
32193         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
32194         whatever the type happens to be), for brevity and consistency.
32195         Check for size calculation overflow on Alphas running OSF/1.
32196
32197 2003-10-31  Jim Meyering  <jim@meyering.net>
32198
32199         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
32200
32201         * lib/linebuffer.c: Include <string.h> for declaration of memset.
32202
32203 2003-10-30  Paul Eggert  <eggert@twinsun.com>
32204             Bruno Haible  <bruno@clisp.org>
32205
32206         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
32207         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
32208
32209 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32210
32211         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
32212         netbsd*-gnu*.  Suggested by Robert Millan.
32213
32214 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32215
32216         * modules/group-member: Depend on stdbool.
32217
32218 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32219
32220         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
32221
32222 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32223
32224         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
32225         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
32226         after the 'gnu' in these cases.  This fixes some bugs in the
32227         previous change, and is based on suggestions by Robert Millan.
32228
32229 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32230
32231         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
32232         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
32233         no longer needed.
32234         * lib/quotearg.c (quotearg_n_options): Use it.
32235         * lib/group-member.c: Include <stdbool.h>.
32236         (free_group_info): Arg is now const *; don't free arg.
32237         (get_group_info): Now returns bool and accepts struct group_info *,
32238         rather than returning a malloc'ed struct group_info *.
32239         All uses changed.  Check for overflow in internal size calculation.
32240
32241         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
32242         rather than xmalloc/xrealloc.
32243         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
32244         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
32245         conformance bug: the old code used a pointer after freeing the
32246         storage that it addressed.
32247         * lib/hash.c (hash_initialize): Simplify the code by using
32248         xalloc_oversized rather than doing it by hand.
32249         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
32250         the buffer preserved.  Use free and xmalloc instead.
32251         * lib/quotearg.c (quotearg_n_options): Likewise.
32252         Use a simpler test for size overflow.  Don't use xalloc_oversized
32253         because unsigned int might be wider than size_t (!); this suggests
32254         that we should switch from unsigned int to size_t for slot numbers.
32255
32256 2003-10-28  Paul Eggert  <eggert@twinsun.com>
32257
32258         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
32259         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
32260         NetBSD kernels.  Requested by Richard Stallman.
32261
32262 2003-10-27  Paul Eggert  <eggert@twinsun.com>
32263
32264         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
32265         to allocate the returned structure.  Do not allocate a subarray,
32266         as x2nrealloc will do that.
32267         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
32268         instead of xnrealloc.
32269         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
32270
32271 2003-10-27  Bruno Haible  <bruno@clisp.org>
32272
32273         * lib/stdbool_.h: Better support for BeOS.
32274
32275 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32276
32277         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
32278         now uses inline.
32279
32280 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32281
32282         * lib/xalloc.h (xalloc_oversized): New static inline function, for
32283         callers that want to do their own size-overflow checking.  Include
32284         <stdbool.h>, since xalloc_oversized returns bool.
32285         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
32286         to use xalloc_oversized.
32287
32288         Add two functions x2realloc, x2nrealloc, for programs that grow
32289         arrays dynamically by doubling their sizes.
32290         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
32291         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
32292         New functions.
32293
32294         Port to C99 semantics for 'inline' of external functions.
32295         Bug reported by Bruno Haible.
32296         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
32297         with the old contents of xnmalloc.
32298         (xnmalloc, xmalloc): Use it.
32299         (xnrealloc_inline): New static inline function,
32300         with the old contents of xnrealloc.
32301         (xnrealloc, xrealloc): Use it.
32302
32303         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
32304         that.
32305
32306 2003-10-26  Karl Berry  <karl@gnu.org>
32307
32308         * config/srclist.txt (COPYING.DOC): no longer available from
32309         /gd/gnuorg; don't know where the ultimate source is.
32310
32311 2003-10-25  Paul Eggert  <eggert@twinsun.com>
32312
32313         Fix several address-calculation bugs in the hash modules,
32314         plus some minor code cleanup.
32315
32316         * lib/hash.h: Include <stdbool.h>, for bool.
32317         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
32318         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
32319         hash_get_n_entries, hash_get_max_bucket_length,
32320         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
32321         hash_rehash): Use size_t rather than unsigned.
32322         * lib/hash.c (struct hash_table, hash_get_n_buckets,
32323         hash_get_n_buckets_used, hash_get_n_entries,
32324         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
32325         hash_get_entries, hash_do_for_each, hash_string, is_prime,
32326         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
32327         Likewise.
32328         (SIZE_MAX): Define if not defined.
32329         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
32330         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
32331         hash_print):
32332         Use const * when possible.
32333         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
32334         (check_tuning): Fix bug: if tuning parameters were very close to
32335         0 or 1, rounding errors could have caused subscript violations.
32336         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
32337         (hash_initialize): Add 'fail:' label
32338         to free table and return NULL, and use it to simplify code.
32339         Use calloc rather than clearing the storage ourself.
32340         (hash_initialize, hash_rehash): Check for arithmetic overflow in
32341         buffer size calculations.
32342         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
32343         Include <stddef.h>, for size_t.
32344         * lib/hash-pjw.c (hash_pjw): Likewise.
32345         Switch to method described by Bruno Haible.
32346         Include <limits.h>, for CHAR_BIT.
32347         (SIZE_BITS): New macro.
32348
32349 2003-10-23  Paul Eggert  <eggert@twinsun.com>
32350
32351         * m4/getline.m4 (AM_FUNC_GETLINE):
32352         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
32353         hosts.  Problem reported by Derek Robert Price in
32354         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
32355         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
32356         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
32357
32358 2003-10-21  Paul Eggert  <eggert@twinsun.com>
32359
32360         * lib/getndelim2.c (getndelim2): When size calculation overflows,
32361         ceiling the allocation at NMAX bytes rather than silently
32362         discarding input bytes before NMAX is reached.  This makes
32363         a difference only if NMAX exceeds SIZE_MAX / 2.
32364
32365         * lib/obstack.c: Merge from glibc.
32366         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
32367         Add libc_hidden_def (_obstack_newchunk).
32368         (_obstack_free) [! defined _LIBC]: Remove.
32369         [defined _LIBC]: Make a strong alias from obstack_free, rather than
32370         a clone of the function body.
32371         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
32372         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
32373
32374         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
32375         glibc.
32376         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
32377         arg to memcpy.
32378
32379         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
32380         (obstack_ptr_grow_fast, obstack_int_grow_fast):
32381         Don't use lvalue casts, as GCC plans to remove support for them
32382         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
32383         was also present in the non-GCC version, indicating that this
32384         code had always been buggy and had never been widely used.
32385         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
32386         Use the fast variant of each macro, rather than copying the
32387         definiens of the fast variant; that way, we'll be more likely to
32388         catch future bugs in the fast variants.
32389
32390 2003-10-20  Bruno Haible  <bruno@clisp.org>
32391
32392         * modules/wait-process: New file.
32393         * MODULES.html.sh (func_all_modules): Add wait-process.
32394
32395 2003-10-20  Bruno Haible  <bruno@clisp.org>
32396
32397         * m4/wait-process.m4: New file.
32398
32399 2003-10-20  Bruno Haible  <bruno@clisp.org>
32400
32401         * lib/wait-process.h: New file, from GNU gettext.
32402         * lib/wait-process.c: New file, from GNU gettext.
32403
32404 2003-10-19  Jim Meyering  <jim@meyering.net>
32405
32406         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
32407         HPUX 10.20.
32408
32409 2003-10-18  Karl Berry  <karl@gnu.org>
32410
32411         * config/config.guess: update from config.
32412
32413 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32414
32415         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
32416         (getgroups): First arg is int, not size_t.
32417         Don't let 'free' mangle errno.
32418
32419 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32420
32421         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
32422
32423 2003-10-16  Karl Berry  <karl@gnu.org>
32424
32425         * config/config.{guess,sub}: update from config.
32426
32427 2003-10-16  Jim Meyering  <jim@meyering.net>
32428
32429         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
32430         memcpy.
32431
32432 2003-10-15  Paul Eggert  <eggert@twinsun.com>
32433
32434         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
32435         (SIZE_MAX): Remove.
32436         (new_exclude, add_exclude_file): Initial size no longer needs to
32437         be a power of 2.
32438         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
32439         our own address arithmetic overflow checking.
32440
32441         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
32442         (fnmatch): Do not alloca more than 2000 wide characters;
32443         instead, use malloc for large buffers.
32444         Check for address arithmetic overflow, and return -1
32445         with errno set to ENOMEM in that case.
32446         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
32447         (NEW_PATTERN): Do not alloca more than 8000 bytes;
32448         instead, return -1.  Check for address arithmetic overflow.
32449
32450 2003-10-14  Paul Eggert  <eggert@twinsun.com>
32451
32452         Handle invalid suffixes and overflow independently, so that
32453         callers can treat them independently as needed.  Fix some bugs in
32454         suffix handling, e.g., "100k@" was not diagnosed as an invalid
32455         suffix for a human-readable blocksize.  The major caller-visible
32456         change is the addition of a new
32457         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
32458         that both overflow and suffix chars were found.
32459
32460         * lib/human.c (humblock): Don't check separately for invalid suffix
32461         char; that is xstrtoumax's job (now that its bug is fixed).
32462         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
32463         INTMAX_MAX]: New macros.
32464         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
32465         TYPE_MAXIMUM): New macros.
32466         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
32467         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
32468         if overflow occurs, as it's what __strtol does and it's more useful
32469         in practice.
32470         (__xstrtol): If __strtol reports some error other than ERANGE,
32471         reflect it to the caller as LONGINT_INVALID.  If it reports
32472         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
32473         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
32474         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
32475         value.
32476         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
32477         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
32478         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
32479         [defined UINTMAX_MAX]: New macros.
32480
32481 2003-10-14  Bruno Haible  <bruno@clisp.org>
32482
32483         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
32484
32485 2003-10-14  Bruno Haible  <bruno@clisp.org>
32486
32487         * m4/sig_atomic_t: New file, from GNU gettext.
32488         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
32489
32490 2003-10-14  Bruno Haible  <bruno@clisp.org>
32491
32492         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
32493         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
32494         Also use volatile where needed.
32495
32496 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32497
32498         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
32499         Change maintainer from Bruno Haible to 'all'.
32500
32501 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32502
32503         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
32504
32505 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32506
32507         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
32508         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
32509         and define in terms of the other primitives.
32510         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
32511         (SIZE_MAX): Define if not already defined.
32512         (array_size_overflow): New function.
32513         (xalloc_die): Abort instead of exiting if 'error' returns.
32514         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
32515         (xmalloc, xrealloc): Use them.
32516         (xcalloc): Check for address arithmetic overflow.
32517         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
32518         a bit faster than strcpy.
32519
32520 2003-10-10  Simon Josefsson  <jas@extundo.com>
32521
32522         * modules/argp (Depends-on): Add restrict and strcase.
32523
32524 2003-10-10  Simon Josefsson  <jas@extundo.com>
32525
32526         * m4/argp.m4: Add AC_C_INLINE.
32527
32528 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32529
32530         Merge getpass from libc, plus a few fixes.
32531
32532         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
32533         Include <stdbool.h>.
32534         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
32535         __fsetlocking to empty.
32536         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
32537         do include <bits/libc-lock.h>.
32538         Do not include <fcntl.h>; not needed.
32539         [_LIBC]: Include <wchar.h>.
32540         (NOTCANCEL_MODE): New macro.
32541         (flockfile, funlockfile) [_LIBC]: New macros.
32542         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
32543         [!_LIBC]: New macros.
32544         (call_fclose): New function.
32545         (getpass): Use it.  Save tty stream separately; this simplifies the
32546         code and makes it more reliable if stdin happens to equal stdout.
32547         Invoke __fsetlocking on tty.
32548         Handle thread cancellation if needed.
32549         Namespace cleanup (use __tcgetattr, __getline).
32550         Use bool for Booleans.
32551         [USE_IN_LIBIO]: Handle wide streams.
32552         [!_LIBC]: Unconditionally do the fseek, since we don't know what
32553         stream might go where.
32554
32555         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
32556         doesn't have to include <stdio.h> before us.
32557         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
32558         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
32559         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
32560         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
32561         if not declared, so that we can use getpass.c code from libc without
32562         rewriting it.
32563         (flockfile, ftrylockfile, funlockfile): New macros.
32564
32565 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32566
32567         * modules/getpass: Depend on stdbool.
32568
32569 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32570
32571         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
32572
32573 2003-10-07  Karl Berry  <karl@gnu.org>
32574
32575         * config/config.{guess,sub}: update from config.
32576
32577 2003-10-06  Jim Meyering  <jim@meyering.net>
32578             Bruno Haible  <bruno@clisp.org>
32579
32580         This lets translators provide better translations for the
32581         "Written by ..." part of --version output.
32582         * lib/version-etc.h: Include stdarg.h.
32583         (version_etc_copyright): Declare as readonly.
32584         (version_etc): Make this function variadic with a NULL-terminated list
32585         of author name strings.
32586         (version_etc_va): New declaration.
32587         * lib/version-etc.c: Include stdarg.h, stdlib.h.
32588         (version_etc_copyright): Declare as readonly.
32589         (version_etc_va): New function. Provide a different translatable string
32590         for each possible number of authors < 10. Abbreviate when there are 10
32591         authors or more.
32592         (version_etc): Make this function variadic. Call version_etc_va.
32593         Suggestion from Gary V. Vaughan.
32594
32595         * lib/long-options.h (parse_long_options): Change prototype: the
32596         authors string is moved to the end and becomes variadic.
32597         * lib/long-options.c: Include stdarg.h.
32598         (parse_long_options): Make this function variadic, too.
32599         Call version_etc_va, not version_etc.
32600
32601 2003-10-06  Bruno Haible  <bruno@clisp.org>
32602
32603         * modules/version-etc-2: Remove file.
32604         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
32605
32606 2003-10-06  Bruno Haible  <bruno@clisp.org>
32607
32608         * modules/fatal-signal: New file.
32609         * MODULES.html.sh (func_all_modules): Add fatal-signal.
32610
32611 2003-10-06  Bruno Haible  <bruno@clisp.org>
32612
32613         * m4/fatal-signal.m4: New file.
32614         * m4/signalblocking.m4: New file, from GNU gettext.
32615
32616 2003-10-06  Bruno Haible  <bruno@clisp.org>
32617
32618         * lib/version-etc-2.h: Remove file.
32619         * lib/version-etc-2.c: Remove file.
32620
32621 2003-10-06  Bruno Haible  <bruno@clisp.org>
32622
32623         * lib/fatal-signal.h: New file, from GNU gettext.
32624         * lib/fatal-signal.c: New file, from GNU gettext.
32625
32626 2003-10-05  Paul Eggert  <eggert@twinsun.com>
32627
32628         * README: Rework advice for preventing empty .o files.
32629         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
32630         not <sys/types.h>.
32631
32632 2003-10-04  Karl Berry  <karl@gnu.org>
32633
32634         * lib/argp*: update from libc.
32635
32636 2003-10-04  Karl Berry  <karl@gnu.org>
32637
32638         * config/config.{guess,sub}: update from config.
32639
32640 2003-10-02  Bruno Haible  <bruno@clisp.org>
32641
32642         * modules/lchown (Include): Add lchown.h.
32643         * modules/time_r (Include): Use "..." syntax.
32644         * modules/xgetdomainname (Include): Add xgetdomainname.h.
32645
32646 2003-10-01  Simon Josefsson  <jas@extundo.com>
32647
32648         * MODULES.html.sh (func_all_modules): Move gethostname from section
32649         'based on' to section 'lacking' POSIX:2001.
32650
32651 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
32652
32653         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
32654         to output mode on the same stream.
32655
32656 2003-09-29  Paul Eggert  <eggert@twinsun.com>
32657
32658         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
32659         Fix arg typo in previous patch.
32660
32661 2003-09-28  Jim Meyering  <jim@meyering.net>
32662
32663         * lib/error.c: Correct cpp indentation.
32664
32665 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32666
32667         * modules/free: New file.
32668
32669 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32670
32671         * m4/free.m4: New file.
32672
32673 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32674
32675         * lib/minmax.h (MIN, MAX)
32676         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
32677         Omit the special code that used __typeof__, since we worry that
32678         it could be more trouble than it's worth.  See:
32679         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
32680         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
32681
32682         * lib/free.c: New file.
32683
32684 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
32685
32686         Trivial fixes to Makefile.am parts of module listings.
32687         * modules/strstr: Append strstr.h to lib_SOURCES.
32688         * modules/strcase: Likewise, for strcase.h.
32689
32690 2003-09-27  Karl Berry  <karl@gnu.org>
32691
32692         * config/mkinstalldirs: update from automake.
32693
32694 2003-09-26  Paul Eggert  <eggert@twinsun.com>
32695
32696         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
32697         (error_tail): Do not loop, reallocating temporary buffer, since
32698         the output cannot contain more wide characters than the input
32699         contains bytes, the size must be big enough already.  This avoids
32700         one potential size overflow calculation.  Check for size overflow
32701         when calculating temporary buffer size.  Free temporary buffer
32702         when done, if it was allocated with malloc; this plugs a memory
32703         leak.  Remove casts from void * to pointers, that are no longer
32704         needed now that we're assuming C89 or better.
32705
32706         Merge error changes from glibc.
32707
32708         * lib/error.c, error.h: Update copyright notice header to match glibc.
32709         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
32710         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
32711         Disable cancellation while printing error.
32712         * lib/error.h: Prepend __ to parameter names.
32713
32714 2003-09-26  Jim Meyering  <jim@meyering.net>
32715
32716         * lib/error.c (error_tail): Move some declarations
32717         into inner scope where the local variables are used.
32718
32719 2003-09-26  Bruno Haible  <bruno@clisp.org>
32720
32721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
32722         stpncpy().
32723         Don't define stpncpy through config.h; it's now done through stpncpy.h.
32724
32725 2003-09-26  Bruno Haible  <bruno@clisp.org>
32726
32727         * lib/stpncpy.h (gnu_stpncpy): New declaration.
32728         (stpncpy): Define as alias for gnu_stpncpy.
32729         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
32730
32731 2003-09-25  Simon Josefsson  <jas@extundo.com>
32732
32733         * lib/xgetdomainname.h: New file.
32734         * lib/xgetdomainname.c: New file.
32735
32736 2003-09-25  Simon Josefsson  <jas@extundo.com>
32737             Bruno Haible  <bruno@clisp.org>
32738
32739         * modules/getdomainname: New file.
32740         * modules/xgetdomainname: New file.
32741         * MODULES.html.sh (func_all_modules): Add getdomainname,
32742         xgetdomainname.
32743
32744 2003-09-25  Simon Josefsson  <jas@extundo.com>
32745             Bruno Haible  <bruno@clisp.org>
32746
32747         * m4/getdomainname.m4: New file.
32748
32749 2003-09-25  Simon Josefsson  <jas@extundo.com>
32750             Bruno Haible  <bruno@clisp.org>
32751
32752         * lib/getdomainname.h: New file.
32753         * lib/getdomainname.c: New file.
32754
32755 2003-09-25  Karl Berry  <karl@gnu.org>
32756
32757         * lib/argp-fmtstream.c, argp-help.c: update from libc.
32758
32759 2003-09-25  Karl Berry  <karl@gnu.org>
32760
32761         * config/install-sh: update from automake.
32762
32763 2003-09-25  Bruno Haible  <bruno@clisp.org>
32764
32765         * modules/version-etc-2: New file, from modules/version-etc with
32766         modifications.
32767         * MODULES.html.sh (func_all_modules): Add version-etc-2.
32768
32769 2003-09-25  Bruno Haible  <bruno@clisp.org>
32770
32771         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
32772         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
32773
32774 2003-09-24  Simon Josefsson  <jas@extundo.com>
32775
32776         * modules/xgethostname: Add xgethostname.h.
32777
32778 2003-09-24  Paul Eggert  <eggert@twinsun.com>
32779
32780         * lib/linebuffer.c (freebuffer): Don't free the argument, just
32781         the buffer associated with the argument.  Bug reported by
32782         Simon Josefsson.
32783
32784 2003-09-24  Paul Eggert  <eggert@twinsun.com>
32785
32786         * README: Document assumptions that 'int' is at least 32 bits
32787         wide, that integer arithmetic is 2's complement without overflow,
32788         that there are no holes in integer values, that adding sizes of
32789         two nonoverlapping objects can't overflow, and that all-bits-zero
32790         yields scalar zero.  Fix spelling and capitalization typos.
32791
32792 2003-09-19  Karl Berry  <karl@gnu.org>
32793
32794         * lib/argp.h: update from libc.
32795
32796 2003-09-17  Paul Eggert  <eggert@twinsun.com>
32797
32798         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
32799         to avoid spurious warnings like "AC_RUN_IFELSE was called before
32800         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
32801
32802 2003-09-17  Paul Eggert  <eggert@twinsun.com>
32803
32804         * gnulib-tool: Use "test -h", not "test -L", for portability
32805         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
32806         (tags_regexp): Remove, since \| doesn't conform to POSIX.
32807         (sed_extract_prog): Issue s commands one-by-one, rather than
32808         using \| in one s command.
32809
32810 2003-09-16  Paul Eggert  <eggert@twinsun.com>
32811
32812         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
32813         input error, instead of returning NULL the next time we are called
32814         (and therefore losing track of errno).
32815
32816 2003-09-16  Bruno Haible  <bruno@clisp.org>
32817
32818         * gnulib-tool (func_create_testdir): Warn about duplicated
32819         dependencies.
32820
32821 2003-09-15  Paul Eggert  <eggert@twinsun.com>
32822
32823         * modules/argmatch, modules/fatal, modules/obstack,
32824         modules/xalloc, modules/xgethostname: Sort dependencies by
32825         importance, not alphabetically.
32826
32827 2003-09-15  Paul Eggert  <eggert@twinsun.com>
32828
32829         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
32830         fails, so that the caller gets the proper errno.
32831
32832         * lib/readutmp.c (read_utmp): Likewise.
32833         Check for fstat error.  Close stream and free storage
32834         when failing.
32835
32836 2003-09-14  Karl Berry  <karl@gnu.org>
32837
32838         * config/srclist.txt (strdup.c): disable for c89 changes.
32839
32840 2003-09-14  Jim Meyering  <jim@meyering.net>
32841
32842         * lib/getloadavg.c: Correct cpp indentation.
32843         * lib/strdup.c: Likewise.
32844         * lib/vasnprintf.c: Likewise.
32845
32846 2003-09-14  Bruno Haible  <bruno@clisp.org>
32847
32848         * modules/fwriteerror: New file.
32849         * MODULES.html.sh (func_all_modules): Add fwriteerror.
32850
32851 2003-09-14  Bruno Haible  <bruno@clisp.org>
32852
32853         * lib/fwriteerror.h: New file.
32854         * lib/fwriteerror.c: New file.
32855
32856 2003-09-12  Paul Eggert  <eggert@twinsun.com>
32857
32858         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
32859         modules/xgethostname, modules/xalloc: Depend on exit.
32860
32861 2003-09-12  Paul Eggert  <eggert@twinsun.com>
32862
32863         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
32864
32865         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
32866         and AC_MINIX, too, so that their extensions are available.
32867
32868         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
32869         This macro has been superseded by gl_BACKUPFILE.
32870
32871         More patches to assume C89 or better.
32872
32873         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
32874
32875         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
32876         unconditionally.
32877         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
32878         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
32879         Include <string.h>, <stdlib.h> unconditionally.
32880         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
32881         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
32882         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
32883         headers or for string.h.
32884         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
32885         or strtoul.
32886
32887         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
32888         headers.
32889         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
32890         * m4/userspec.m4 (gl_USERSPEC): Likewise.
32891         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
32892         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
32893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32894         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
32895         memcpy, memset.
32896         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
32897         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
32898         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
32899         strtol.
32900         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
32901         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
32902         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
32903         strtoul.
32904
32905 2003-09-12  Paul Eggert  <eggert@twinsun.com>
32906
32907         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
32908         * lib/obstack.c [!defined _LIBC]: Likewise.
32909         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
32910         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
32911         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
32912
32913         More changes to assume C89 or better.
32914
32915         * lib/error.c (error_tail): Assume vprintf.
32916
32917         * lib/argmatch.c (getenv): Remove decl.
32918         * lib/progreloc.c (get_full_program_name): Define via prototype.
32919         * lib/setenv.c (clearenv): Likewise.
32920         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
32921         needed.
32922         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
32923         (malloc, memcpy): Remove decls.
32924         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
32925         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
32926         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
32927         (memcpy): Remove macro.
32928         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
32929         (__P): Remove.  All uses removed.
32930         (PTR): Remove.  All uses changed to void *.
32931         (CHAR_BIT, NULL): Remove.
32932         (spaces, zeros, memset_space, memset_zero)
32933         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
32934         Remove.
32935         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
32936         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
32937         Define with prototype.
32938         Remove now-unnecessary prototype decl.
32939         (extra_args_spec): Assume ANSI C.  All uses changed.
32940         (extra_args_spec_iso): Remove.
32941         (my_strftime, emacs_strftimeu): Define via prototype.
32942         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
32943         unconditionally.
32944         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
32945         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
32946         (strtoul, strtol): Remove decls.
32947         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
32948         LONG_MAX): Remove.
32949         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
32950         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
32951         (LOCALE_PARAM_PROTO): New macro.
32952         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
32953         (INTERNAL (strtol), strtol): Define with a prototype.
32954         (PARAMS): Remove.  All uses removed.
32955         * lib/tempname.c: Include <string.h> unconditionally.
32956         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
32957         * lib/xgethostname.c (main): Define with a prototype.
32958         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
32959         Include <stdlib.h> unconditionally.
32960         (calloc, malloc, realloc, free): Remove decls.
32961         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
32962         Include <stdlib.h> unconditionally.  Sort include file names.
32963         (strtod): Remove.
32964         (xstrtod): Define with a prototype.
32965         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
32966         (strtol, strtoul): Remove decls.
32967
32968 2003-09-11  Paul Eggert  <eggert@twinsun.com>
32969
32970         More patches to assume C89 or better.
32971         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
32972         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
32973         string.h, memchr, STDC_HEADERS.
32974
32975 2003-09-11  Paul Eggert  <eggert@twinsun.com>
32976
32977         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
32978         Include <stdlib.h>, <string.h> unconditionally.
32979         Remove now-unnecessary cast to char *.
32980         * lib/strnlen.c: Include <string.h> unconditionally.
32981         * lib/yesno.c (yesno): Define with a prototype.
32982
32983 2003-09-11  Bruno Haible  <bruno@clisp.org>
32984
32985         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
32986
32987 2003-09-10  Jim Meyering  <jim@meyering.net>
32988
32989         * lib/error.c: Correct indentation of cpp directives.
32990
32991 2003-09-10  Bruno Haible  <bruno@clisp.org>
32992
32993         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
32994         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
32995         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
32996         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
32997         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
32998         <stdlib.h> and <string.h> checks.
32999         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
33000         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
33001
33002 2003-09-10  Bruno Haible  <bruno@clisp.org>
33003
33004         * lib/strcspn.c: Include <string.h> unconditionally.
33005         * lib/strpbrk.c: Include <string.h> unconditionally.
33006         * lib/strstr.c: Include <string.h> unconditionally.
33007         * lib/unicodeio.c: Include <string.h> unconditionally.
33008         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
33009         * lib/unsetenv.c: Likewise.
33010         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
33011         * lib/yesno.c: Include <stdlib.h> unconditionally.
33012         (rpmatch): Add prototype.
33013
33014 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33015
33016         More patches to assume C89 or better.
33017         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
33018         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
33019         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
33020         or for string.h.
33021         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
33022         stdlib.h.
33023         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
33024         C headers.
33025         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
33026         string.h.
33027         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
33028         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
33029         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
33030         or for string.h.
33031         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
33032         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
33033         C headers.
33034         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
33035         memcpy.
33036         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
33037         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
33038         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
33039         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
33040         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
33041         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
33042         string.h, free.
33043         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
33044         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
33045         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
33046         C headers, or for string.h.
33047         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
33048         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
33049         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
33050         headers, memory.h, stdlib.h, string.h, strings.h.
33051         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
33052         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
33053         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
33054         strchr.
33055         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
33056         headers, memory.h, string.h.
33057         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
33058         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
33059         free.
33060         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
33061         headers.
33062         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
33063         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
33064         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
33065         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
33066         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
33067
33068 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33069
33070         More K&R removal.
33071
33072         * lib/acosl.c (main): Use a prototype.
33073         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
33074         tanl.c: Likewise.
33075
33076         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
33077
33078         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
33079         (getopt, etopt_long, getopt_long_only, _getopt_internal)
33080         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
33081         with a prototype.
33082         * lib/getopt.c (const): Remove macro.
33083         Include <string.h> unconditionally.
33084         (my_index): Remove; all uses changed to strchr.
33085         (strlen): Remove decl.
33086         (exchange): Remove forward decl; no longer needed.
33087         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
33088         Define with prototype.
33089         * lib/getopt1.c (const): Remove macro.
33090         (getopt_long, getopt_long_only, main): Define with prototype.
33091
33092         * lib/getugroups.c: Include <string.h> unconditionally.
33093
33094         * lib/getusershell.c: Include <stdlib.h> unconditionally.
33095         (getusershell, setusershell, endusershell, readname, main):
33096         Define with prototypes.
33097
33098         * lib/group-member.c: Include group-member.h first.
33099         Include <stdlib.h> unconditionally.
33100
33101         * lib/hard-locale.c: Include hard-locale.h first.
33102         Include <stdlib.h>, <string.h> unconditionally.
33103
33104         * lib/hash.c (free, malloc): Remove decls.
33105         Include <stdlib.h> unconditionally.
33106
33107         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
33108         (getenv): Do not declare.
33109
33110         * lib/idcache.c: Include <string.h> unconditionally.
33111
33112         * lib/long-options.c: Include long-options.h first, to test interface.
33113         Include <stdlib.h> unconditionally.
33114
33115         * lib/makepath.c: Include makepath.h first, to test interface.
33116         Include <stdlib.h> and <string.h> unconditionally.
33117
33118         * lib/linebuffer.c: Include <stdlib.h>.
33119         (free): Remove decl.
33120
33121         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
33122         stddef.h. rpl_malloc returns void *, not char *.
33123         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
33124         prototype.
33125
33126         * lib/md5.h: Include <limits.h> unconditionally.
33127         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
33128         (__P): Remove; all uses removed.
33129         * lib/md5.c: Include "md5.h" first.
33130         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
33131         md5_buffer, md5_process_bytes, md5_process_block):
33132         Define with prototypes.
33133         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
33134         * lib/sha.c: Include "sha.h" first.
33135         Include <stdlib.h>, <string.h> unconditionally.
33136
33137         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
33138         * lib/memcmp.c (__ptr_t): Likewise.
33139         * lib/memrchr.c (__ptr_t): Likewise.
33140         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
33141         Include <string.h> unconditionally.
33142         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
33143         * lib/memchr.c: Include <stdlib.h> unconditionally.
33144         * lib/memchr.c (LONG_MAX): Remove.
33145         * lib/memrchr.c (LONG_MAX): Likewise.
33146         * lib/memchr.c (__memchr): Define via a prototype.
33147         * lib/memrchr.c (__memrchr): Likewise.
33148         * lib/memcmp.c (__P): Remove, and remove all uses.
33149         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
33150         Remove forward decls; no longer needed.
33151         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
33152         Use types required by C89 in prototype.
33153
33154         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
33155         * lib/savedir.c: Likewise.
33156         * lib/mkdir.c (free): Remove decl.
33157         * lib/rmdir.c (rmdir): Define with a prototype.
33158         * lib/savedir.c: Include savedir.h first, to test interface.
33159
33160         * lib/mktime.c (STDC_HEADERS): Remove.
33161         Include <stdlib.h>, <string.h> unconditionally.
33162
33163         * lib/modechange.c: Include <stdlib.h> unconditionally.
33164         (malloc): Remove decl.
33165
33166         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
33167         (free): Remove decl.
33168
33169         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
33170         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
33171         (This type really should be intptr_t, but that's a C99ism.)
33172         (_obstack_memcpy): Remove: all uses changed to memcpy.
33173         Include <string.h> unconditionally.
33174         (struct obstack): Assume __STDC__ for types of members
33175         chunkfun, freefun, extra_arg.
33176         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
33177         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
33178         obstack_begin, obstack_specify_allocation,
33179         obstack_specify_allocation_with_arg, obstack_chunkfun,
33180         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
33181         Remove unprototyped decls and the macros that use them.
33182         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
33183         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
33184         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
33185         (defined __STDC__ && __STDC__)]:
33186         Remove nonprototyped code.
33187         Include <stdlib.h> unconditionally.
33188         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
33189         _obstack_allocated_p, _obstack_free, obstack_free,
33190         _obstack_memory_used, print_and_abort):
33191         Define using prototypes.
33192         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
33193         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
33194         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
33195         obstack_next_free, obstack_object_size, obstack_room) [0]:
33196         Remove unused, unprototyped code.
33197
33198         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
33199
33200         * lib/physmem.c (physmem_total, physmem_available, main): Define
33201         with prototypes.
33202
33203         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
33204         (main): Define with a prototype.
33205
33206         * lib/posixver.c (getenv): Remove decl.
33207
33208         * lib/putenv.c (malloc): Returns void *, not char *.
33209         Include <string.h> unconditionally.
33210         (strchr, memcpy, NULL): Do not define.
33211
33212         * lib/readtokens.c: Include readtokens.h first, to test interface.
33213         Include <stdlib.h>, <string.h> unconditionally.
33214         (init_tokenbuffer): Define with a prototype.
33215
33216         * lib/regex.c (PARAMS): Remove.  All uses removed.
33217         All uses of _RE_ARGS removed, too.
33218         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33219         unconditionally.
33220         (bzero): Assume memset exists.
33221         (memcmp, memcpy, NULL): Remove.
33222         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
33223         char, or assignments to local vars of type signed char.
33224         (init_syntax_once, PREFIX(extract_number_and_incr),
33225         PREFIX(print_partial_compiled_pattern),
33226         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
33227         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
33228         PREFIX(regex_grow_registers), PREFIX(regex_compile),
33229         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
33230         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
33231         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
33232         wcs_compile_range, byte_compile_range, truncate_wchar,
33233         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
33234         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
33235         count_mbs_length, wcs_re_match_2_internal,
33236         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
33237         PREFIX(alt_match_null_string_p),
33238         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
33239         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
33240         regfree, PREFIX(extract_number)): Define with prototype.  Remove
33241         now-unnecessary declaration, if any.
33242         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
33243         regcomp, regexec):
33244         Remove now-unnecessary casts among pointer types.
33245         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
33246
33247         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
33248         (free): Remove decl.
33249
33250         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
33251
33252         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
33253         (free): Remove decl.
33254
33255         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
33256         * lib/xgetcwd.c: Likewise.
33257
33258         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
33259         (free): Remove decl.
33260
33261         * lib/strchrnul.c (strchrnul): Define with a prototype.
33262         Fix bug: c_in was not converted to char before searching.
33263
33264         The following changes are not K&R related:
33265
33266         * lib/group-member.h: Include <sys/types.h>, so that this file is
33267         self-contained.
33268         * lib/makepath.h: Likewise.
33269
33270         * lib/getusershell.c (readname, default_index, line_size, readname):
33271         Use size_t, not int, for sizes.
33272         (readname): If the size overflows, report an error instead of
33273         looping forever.
33274
33275 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33276
33277         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
33278         libc.
33279
33280 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33281
33282         * README: New section: portability guidelines.
33283
33284 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33285
33286         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
33287         C89 spec.
33288
33289 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33290
33291         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
33292
33293 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33294
33295         Assume C89 or better; remove K&R cruft.
33296         A few of these changes were first proposed by Derek Robert Price
33297         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
33298
33299         * lib/addext.c: Include <string.h> unconditionally.
33300         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
33301         Don't declare getenv or malloc.
33302
33303         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
33304         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
33305         (NULL): Remove.
33306         (find_stack_direction, alloca): Use prototypes.
33307
33308         * lib/atexit.c (atexit): Define using a prototype.
33309
33310         * lib/basename.c, dirname.c, stripslash.c:
33311         Include <string.h> unconditionally.
33312
33313         * lib/bcopy.c: Include <stddef.h>.
33314         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
33315
33316         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
33317
33318         * lib/error.h (error, error_at_line, error_print_progname)
33319         [! (defined (__STDC__) && __STDC__)]: Remove decls.
33320         * lib/error.c: Include error.h first, to check interface.
33321         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33322         (VA_START): Remove; all uses changeed to va_start.
33323         (exit, strerror): Remove decls.
33324         (error_print_progname): Prototype uncondionally.
33325         Don't include <errno.h>; no longer needed.
33326         (private_strerror): Remove.
33327         (error_tail): Always define.
33328         (error, error_at_line): Assume C89 or better; always use prototypes.
33329         * lib/fatal.c: Include "fatal.h" first, to test interface.
33330         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33331         (VA_START): Remove; all uses changed to va_start.
33332         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
33333         this case.
33334         (exit): Remove decl.
33335         (fatal): Prototype unconditionally.  Assume va_start works.
33336         Abort at end, to pacify gcc.
33337
33338         * lib/euidaccess.c (main): Define with a prototype.
33339
33340         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
33341
33342         * lib/exitfail.c: Include <stdlib.h> unconditionally.
33343
33344         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
33345         prototypes.
33346         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
33347         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
33348         (getenv): Remove decl.
33349         (fnmatch): Define using a prototype.
33350         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
33351         (FCT): Define using a prototype.
33352
33353         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
33354
33355         * lib/gethostname.c: Include <stddef.h>.
33356         (gethostname): Define with prototype.  Length is size_t, not int.
33357
33358 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33359
33360         Assume C89 or better; remove K&R cruft.
33361         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
33362         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
33363         string.h, getenv, malloc.
33364         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
33365         headers.
33366         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
33367         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
33368         do not check for strerror.
33369         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
33370         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
33371         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
33372         do not check for doprnt or vprintf.
33373         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
33374         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
33375
33376 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33377
33378         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
33379         getversion.c should have been removed then, but was accidentally
33380         preserved.
33381
33382         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
33383         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
33384
33385 2003-09-08  Karl Berry  <karl@gnu.org>
33386
33387         * config/config.sub, config.guess, srclistvars.sh: update from savannah
33388                 config, forget about prep.
33389
33390         * config/depcomp, missing: update from automake.
33391
33392 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33393
33394         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
33395         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33396
33397 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33398
33399         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
33400         copy_tm_result.  Bug reported by Simon Josefsson in
33401         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33402
33403 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33404
33405         * m4/time_r.m4: New file.
33406         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
33407         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
33408         is. Check for timegm declaration.
33409         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
33410         Do not check for gmtime_r.
33411         Replace mktime if __mktime_internal does not exist and if mktime
33412         hasn't been replaced already.
33413
33414 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33415
33416         * lib/time_r.c, lib/time_r.h: New files.
33417
33418         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
33419         __localtime_r.
33420         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
33421         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
33422
33423         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
33424         __gmtime_r.
33425         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
33426         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
33427         Include <time_r.h>.
33428
33429         * lib/timegm.c: Switch to glibc implementation, with the following
33430         changes:
33431         [defined HAVE_CONFIG_H]: Include <config.h>.
33432         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
33433         (__mktime_internal) [!defined _LIBC]: New decl.
33434         (__gmtime_r) [!defined _LIBC]: New macro and function.
33435         (timegm): Use a prototype, since gnulib assumes C89.
33436         Do not bother declaring tmp to be const, as it's not really usefu.
33437         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
33438         (timegm): Declare only if HAVE_DECL_TIMEGM.
33439
33440 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33441
33442         * MODULES.html.sh (func_all_modules): Add time_r.
33443         * modules/time_r: New file.
33444         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
33445         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
33446
33447 2003-09-03  Paul Eggert  <eggert@twinsun.com>
33448
33449         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
33450         Bug reported by Lute Kamstra in
33451         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
33452
33453         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
33454         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
33455         course with correspondingly smaller numbers for tomorrow and
33456         yesterday.  From Tadayoshi Funaba.  Originally installed into
33457         sh-utils on 1999-08-07, but the patch got lost (I guess during the
33458         coreutils merge?).
33459
33460 2003-08-31  Simon Josefsson  <jas@extundo.com>
33461
33462         * modules/timegm: New file.
33463         * MODULES.html.sh (func_all_modules): Add timegm.
33464
33465 2003-08-31  Simon Josefsson  <jas@extundo.com>
33466
33467         * m4/timegm.m4: New file.
33468
33469 2003-08-31  Simon Josefsson  <jas@extundo.com>
33470
33471         * lib/timegm.h: New file.
33472         * lib/timegm.c: New file.  Based on
33473         wget-1.8.2/src/http.c:mktime_from_utc.
33474
33475 2003-08-31  Karl Berry  <karl@gnu.org>
33476
33477         * lib/argp.h: update from libc.
33478
33479 2003-08-28  Bruno Haible  <bruno@clisp.org>
33480
33481         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
33482         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
33483         followed by '#define fnmatch fnmatch_posix' gives an error.
33484
33485 2003-08-28  Bruno Haible  <bruno@clisp.org>
33486
33487         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
33488         warning on QNX, which defines O_BINARY to 000000.
33489
33490 2003-08-27  Jim Meyering  <jim@meyering.net>
33491
33492         * m4/mkstemp.m4: Require that the system mkstemp be able to create
33493         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
33494         would fail after 32.  Reported by Danny Levinson.  Details here:
33495         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
33496
33497 2003-08-24  Bruno Haible  <bruno@clisp.org>
33498
33499         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
33500         MSVC7 <stdio.h> is included later.
33501
33502 2003-08-22  Simon Josefsson  <jas@extundo.com>
33503
33504         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
33505
33506 2003-08-20  Karl Berry  <karl@gnu.org>
33507
33508         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
33509
33510 2003-08-20  Bruno Haible  <bruno@clisp.org>
33511
33512         * modules/progname: New file.
33513         * MODULES.html.sh (func_all_modules): Add progname.
33514
33515 2003-08-20  Bruno Haible  <bruno@clisp.org>
33516
33517         * lib/progname.h: New file, from GNU gettext.
33518         * lib/progname.c: New file, from GNU gettext.
33519         * lib/progreloc.c: New file, from GNU gettext.
33520
33521 2003-08-19  Jim Meyering  <jim@meyering.net>
33522
33523         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
33524         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
33525
33526 2003-08-19  Bruno Haible  <bruno@clisp.org>
33527
33528         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
33529         more.
33530
33531 2003-08-19  Bruno Haible  <bruno@clisp.org>
33532
33533         * lib/xstrdup.c: Assume <string.h> exists.
33534
33535 2003-08-18  Paul Eggert  <eggert@twinsun.com>
33536
33537         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
33538         in makefile rules.
33539
33540 2003-08-18  Jim Meyering  <jim@meyering.net>
33541
33542         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
33543         * m4/lib-ld.m4: Likewise.
33544
33545 2003-08-18  Jim Meyering  <jim@meyering.net>
33546
33547         * lib/setenv.h: Indent nested cpp directive.
33548         * lib/vasnprintf.c: Remove trailing blanks.
33549
33550 2003-08-17  Simon Josefsson  <jas@extundo.com>
33551
33552         * modules/xstrndup: New file.
33553         * MODULES.html.sh (func_all_modules): Add xstrndup.
33554
33555 2003-08-17  Simon Josefsson  <jas@extundo.com>
33556
33557         * modules/argp: Fix autoconf macro name. Add more dependencies.
33558
33559 2003-08-17  Simon Josefsson  <jas@extundo.com>
33560
33561         * m4/xstrndup.m4: New file.
33562
33563 2003-08-17  Simon Josefsson  <jas@extundo.com>
33564
33565         * m4/argp.m4: New file.
33566
33567 2003-08-17  Simon Josefsson  <jas@extundo.com>
33568             Bruno Haible  <bruno@clisp.org>
33569
33570         * lib/xstrndup.h: New file.
33571         * lib/xstrndup.c: New file.
33572
33573 2003-08-17  Bruno Haible  <bruno@clisp.org>
33574
33575         * modules/strndup (Files, Include): Add lib/strndup.h.
33576
33577 2003-08-17  Bruno Haible  <bruno@clisp.org>
33578
33579         * modules/euidaccess (Files): Add lib/euidaccess.h.
33580
33581 2003-08-17  Bruno Haible  <bruno@clisp.org>
33582
33583         * lib/strndup.h: New file.
33584
33585 2003-08-17  Bruno Haible  <bruno@clisp.org>
33586
33587         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
33588         like AC_GNU_SOURCE.
33589         * modules/extensions (configure.ac): Comment out the invocation of
33590         gl_USE_SYSTEM_EXTENSIONS.
33591
33592 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33593
33594         Merges from coreutils, etc.
33595         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
33596         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
33597         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
33598         fixing a typo.
33599         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
33600         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
33601
33602 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33603
33604         Document merge from coreutils.
33605         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
33606         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
33607         * modules/utime: Add m4/utimes-null.m4.
33608
33609 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33610
33611         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
33612         space, undoing this 2003-08-12 change:
33613         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33614
33615 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33616
33617         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
33618         strtoul.c from libc, undoing this 2003-08-12 change:
33619         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33620
33621 2003-08-16  Jim Meyering  <jim@meyering.net>
33622
33623         Merges from coreutils.
33624         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
33625         prefix.  Adjust cache variables similarly.  Create 500 rather than
33626         just 300 files, to exercise bug on Darwin6.5, too.
33627         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
33628         $missing_dir.
33629         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
33630         AM_SYS_POSIX_TERMIOS.
33631         Reported by mkc@mathdogs.com.
33632         Also change use of $am_cv_sys_posix_termios
33633         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
33634         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
33635         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
33636         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
33637         in /proc/mounts until it finds one with matching device number.  This
33638         is unnecessary when the FILE argument *is* a mount point.  No stat call
33639         is necessary in that case.  So, disable the statvfs-testing code on
33640         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
33641         as RedHat bug# 84846.
33642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33643         to 1MB, so as not to render systems with no stack size limit (e.g.,
33644         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33645         Include <unistd.h>.  On some systems,
33646         it is required for the definition of _SC_PAGESIZE.
33647
33648 2003-08-16  Jim Meyering  <jim@meyering.net>
33649
33650         Merge from coreutils.
33651         * lib/xstrtoimax.c: #else #if -> #elif.
33652         * lib/xstrtoumax.c: Likewise.
33653
33654 2003-08-16  Jim Meyering  <jim@meyering.net>
33655
33656         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
33657         * m4/utimes.m4: Removed.
33658         * m4/utimes-null.m4: Renamed from utimes.m4.
33659
33660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33661         to 1MB, so as not to render systems with no stack size limit (e.g.,
33662         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33663         Include <unistd.h>.  On some systems,
33664         it is required for the definition of _SC_PAGESIZE.
33665
33666 2003-08-16  Jim Meyering  <jim@meyering.net>
33667         and Paul Eggert  <eggert@cs.ucla.edu>
33668
33669         Merges from coreutils, etc.
33670
33671         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
33672         using the latest version from cvs.  This avoids problems with #line
33673         directives using a vendor (Sun) compiler.
33674         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
33675         Don't set GETGROUPS_LIB here; now it's
33676         done via getgroups.m4's wrapper function.
33677         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
33678         rather than just in sh-util/configure.in, so that the
33679         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
33680         same.
33681         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
33682         AC_FUNC_GETLOADAVG where to find getloadavg.c.
33683         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
33684         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
33685         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
33686         Remove code that is now done by the newly-required macros.
33687         Append $(EXEEXT) to DF_PROG.
33688         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
33689         Do not invoke or require the following here,
33690         since prereq.m4 or some gnulib .m4 now does this for us:
33691         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
33692         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
33693         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
33694         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
33695         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
33696         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
33697         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
33698         AC_FUNC_OBSTACK.
33699         Do not replace the following functions, as this is now the job
33700         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
33701         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
33702         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
33703         atexit getpass, strdup, getpagesize.
33704         Replace 'raise'.
33705         Do not check for the following functions, as this is now the job
33706         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
33707         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
33708         setregid.
33709         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
33710         Check for sys/sysctl.h.
33711         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
33712         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
33713         of checking for ssize_t ourselves.
33714
33715         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
33716         Require every macro that gnulib/modules/* suggests for us.
33717         (jm_PREREQ_ADDEXT): New macro.
33718         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
33719         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
33720
33721         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
33722         (gl_PHYSMEM): Use it.
33723         Also check for `table' function.
33724         Check for new headers and functions.
33725         Add check for sys/sysmp.h.
33726         With suggestions from Kaveh Ghazi.
33727         Ignore headers that are present but cannot be compiled.  This
33728         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
33729         C 5.4.
33730
33731 2003-08-15  Paul Eggert  <eggert@twinsun.com>
33732
33733         Document merge from coreutils.
33734         * modules/userspec: Depend on posixver.
33735         * modules/strftime: Depend on tzset.
33736
33737 2003-08-15  Paul Eggert  <eggert@twinsun.com>
33738
33739         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
33740         rather than tab, after '#' in shell-script copyright notices.
33741         Suggested by Bruno Haible.
33742
33743 2003-08-15  Paul Eggert  <eggert@twinsun.com>
33744
33745         * config/srclist-update: Use three spaces, rather than tab, after '#'
33746         in shell-script copyright notices.  Suggested by Bruno Haible.
33747         Remove unnecessary parenthesization in regular expression.
33748
33749 2003-08-15  Jim Meyering  <jim@meyering.net>
33750
33751         Merge from coreutils.
33752         * lib/xgethostname.c: Include <stdlib.h>.
33753         (xghostname): Don't exit for anything other than memory-related
33754         failure; just return NULL.
33755         * lib/userspec.c: Include "posixver.h".
33756         (parse_user_spec): Accept `.' as a separator only
33757         in pre-POSIX-200112 mode.
33758         * lib/strtoimax.c: Use #elif rather than #else #if.
33759         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
33760         Remove function, now that we can rely on a working tzset function.
33761         [!_LIBC]: Ensure that the required autoconf test has been run.
33762         [!defined _NL_CURRENT && HAVE_STRFTIME]:
33763         Use underlying_strftime for %r.
33764         * lib/sha.c: Merge in some clean-up and optimization changes from
33765         glibc.
33766         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
33767         Ensure that it is a multiple of 64.
33768         Rearrange loop exit tests so as to avoid performing an
33769         additional fread after encountering an error or EOF.
33770         * lib/realloc.c: Update copyright date.
33771
33772 2003-08-15  Jim Meyering  <jim@meyering.net>
33773         and Paul Eggert  <eggert@twinsun.com>
33774
33775         Merge from coreutils.
33776         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
33777         member but strut utmpx does not.  Needed for AIX 4.3.3.
33778         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
33779
33780 2003-08-15  Jim Meyering  <jim@meyering.net>
33781         and Paul Eggert  <eggert@cs.ucla.edu>
33782
33783         Merges from coreutils, etc.
33784         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
33785         Require gl_FUNC_TZSET_CLOBBER.
33786         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
33787         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
33788         members.
33789
33790 2003-08-14  Paul Eggert  <eggert@twinsun.com>
33791
33792         Help the merge from coreutils.
33793         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
33794         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
33795         * m4/tzset.m4: Use it too.
33796
33797 2003-08-14  Paul Eggert  <eggert@twinsun.com>
33798
33799         * modules/tzset: New file.
33800
33801 2003-08-14  Jim Meyering  <jim@meyering.net>
33802
33803         Merges from coreutils.
33804         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
33805         variable names, rather than @FNMATCH_H@.
33806         * modules/alloca: Likewise for $(ALLOCA_H).
33807
33808         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
33809         the three copies of the literal target, `fnmatch.h'.
33810         * modules/alloca (alloca.h): Likewise.
33811
33812 2003-08-14  Jim Meyering  <jim@meyering.net>
33813
33814         Merge from coreutils.
33815         * m4/tzset.m4: New file.
33816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
33817         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
33818         otherwise, AIX 5.1 systems would end up using the latter.
33819         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
33820         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
33821         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
33822         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
33823
33824 2003-08-14  Jim Meyering  <jim@meyering.net>
33825
33826         Merge from coreutils.
33827         * lib/obstack.h: Whitespace changes.
33828         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
33829         and xcalloc return values.
33830         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
33831         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
33832         hang on OSF/1 5.1 for DIR on both local and remote file systems.
33833         Reported by (and fix confirmed by) Nelson H. F. Beebe.
33834         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33835         error from mntctl.
33836         Use mntctl's return value to drive the entry-processing loop, since
33837         we can't rely on the value of the vmt_length member in the last
33838         entry.  On some systems doing so could result in exhausting
33839         virtual memory.  Based in part on a patch from Mike Jetzer.
33840
33841 2003-08-14  Jim Meyering  <jim@meyering.net>
33842         and Paul Eggert  <eggert@twinsun.com>
33843
33844         Merges from coreutils, plus other fixes.
33845         * lib/physmem.c: Merge in portability changes from gcc/libiberty
33846         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
33847         for credits and details.  Thanks to Kaveh Ghazi for helping
33848         to keep these files in sync.
33849         (ARRAY_SIZE): Define it.
33850         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
33851         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
33852         (memcasecmp): Don't assume size_t fits in unsigned int.
33853         Remove casts and duplicate code.
33854         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
33855         (memcpy): Remove definition.
33856         Merge in some clean-up and optimization changes from glibc.
33857         [BLOCKSIZE]: Move definition to top of file.
33858         Ensure that it is a multiple of 64.
33859         Rearrange loop exit tests so as to avoid performing an
33860         additional fread after encountering an error or EOF.
33861         * lib/md5.h (md5_uintptr): Define.
33862         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
33863         return to the initial working directory.  Preserve errno
33864         for caller.
33865         * lib/idcache.c: Include "xalloc.h".
33866         (xmalloc, xrealloc): Remove decls.
33867         (getuser): Remove casts no longer required in C89.
33868         * lib/human.c: Include stdio.h, for sprintf.
33869         * lib/group-member.c: Include "xalloc.h".
33870         (xmalloc, xrealloc): Remove decls.
33871         (get_group_info): Remove casts no longer required in C89.
33872         * lib/getusershell.c (readname): Remove casts no longer required in
33873         C89.
33874         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
33875         * lib/getline.c: Whitespace fix, from coreutils.
33876
33877 2003-08-13  Paul Eggert  <eggert@twinsun.com>
33878
33879         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
33880         Check for isascii.
33881
33882         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
33883         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
33884         Undo previous (whitespace-only) change.
33885
33886 2003-08-13  Paul Eggert  <eggert@twinsun.com>
33887
33888         * lib/exclude.c: Include <ctype.h>
33889         (IN_CTYPE_DOMAIN): New macro.
33890         (is_space): New fn.
33891         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
33892         and empty lines.
33893
33894         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
33895         Undo previous (whitespace-only) change.
33896
33897 2003-08-13  Paul Eggert  <eggert@twinsun.com>
33898
33899         * config/srclist-update: Change update back to the old behavior,
33900         leaving whitespace alone.  Use one 'sed' command rather than a
33901         pipeline.
33902         (fixlicense): Now a variable, not a function.
33903         (remove_trailing_blanks): Remove.
33904         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
33905         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
33906         Undo previous (whitespace-only) change.
33907
33908 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33909
33910         Merge from coreutils.
33911         * modules/euidaccess: Add lib_SOURCES, include for new
33912         file euidaccess.h
33913
33914 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33915
33916         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
33917         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
33918         Normalize leading white space and remove trailing white space.
33919
33920         Merge from coreutils
33921         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
33922
33923         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
33924         0.12.1.  These files are now being upgraded automatically by
33925         ../config/srclist-update.
33926
33927 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33928
33929         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
33930         Normalize leading white space and remove trailing white space.
33931         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
33932         notice, as per ../config/srclist-update.
33933
33934         Merge from coreutils.
33935         * lib/euidaccess.h: New file.
33936         * lib/euidaccess.c: Include it.
33937         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
33938         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
33939         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
33940
33941 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33942
33943         * config/srclist-update: Add copyright notice.
33944         (remove_id_lines, remove_trailing_blanks): New constants.
33945         (fixfile): Use them to normalize spacing a bit in copied files.
33946         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
33947         Normalize leading white space and remove trailing white space.
33948
33949         * config/texinfo.tex: Sync with texinfo.
33950
33951         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
33952         strtoul.c from libc, to merge coreutils whitespace changes.
33953
33954         * config/srclist.txt: Get the following m4 files from gettext:
33955         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
33956         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
33957         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
33958         wint_t.m4.
33959
33960 2003-08-12  Karl Berry  <karl@gnu.org>
33961
33962         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
33963         been made.
33964
33965 2003-08-11  Paul Eggert  <eggert@twinsun.com>
33966
33967         * modules/gnu-source, m4/gnu-source.m4:
33968         Remove; we're assuming Autoconf 2.54 or later now.
33969         Suggested by Bruno Haible.
33970         * MODULES.html.sh (func_all_modules): Remove gnu-source.
33971
33972 2003-08-11  Bruno Haible  <bruno@clisp.org>
33973
33974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
33975
33976 2003-08-11  Bruno Haible  <bruno@clisp.org>
33977
33978         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
33979         (vasnprintf): Use it instead of wcslen.
33980
33981 2003-08-11  Bruno Haible  <bruno@clisp.org>
33982
33983         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
33984         value to ensure that _Bool promotes to int. Use #define for _Bool when
33985         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
33986
33987 2003-08-10  Karl Berry  <karl@gnu.org>
33988
33989         * lib/regex.h: update from libc (whitespace fix).
33990
33991 2003-08-09  Paul Eggert  <eggert@twinsun.com>
33992
33993         Merge some files from coreutils.  These changes were
33994         originally made by Jim Meyering.
33995         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
33996         many older Unixes require this.
33997         * lib/alloca.c (alloca): Remove cast to argument of free;
33998         no longer needed in C89.
33999         * lib/alloca_.h, regex.h: Fix white space to match
34000         what GNU indent does.
34001
34002 2003-08-09  Paul Eggert  <eggert@twinsun.com>
34003
34004         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
34005         apparently Emacs's Unicode mode got confused before my 2003-08-05
34006         checkin.
34007
34008 2003-08-08  Paul Eggert  <eggert@twinsun.com>
34009
34010         * m4/extensions.m4: New file.
34011         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
34012         Require gl_USE_SYSTEM_EXTENSIONS.
34013         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
34014         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
34015
34016 2003-08-08  Paul Eggert  <eggert@twinsun.com>
34017
34018         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
34019         * modules/extensions, modules/gnu-source: New files.
34020         * modules/timespec, modules/unlocked-io: Depend on extensions.
34021
34022 2003-08-07  Paul Eggert  <eggert@twinsun.com>
34023
34024         * modules/restrict: New file.
34025         * MODULES.html.sh (func_all_modules): Add restrict.
34026         * modules/regex: Depend on restrict.
34027
34028 2003-08-07  Paul Eggert  <eggert@twinsun.com>
34029
34030         * m4/restrict.m4: New file.
34031         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
34032
34033 2003-08-07  Bruno Haible  <bruno@clisp.org>
34034
34035         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
34036         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
34037
34038 2003-08-07  Bruno Haible  <bruno@clisp.org>
34039
34040         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
34041         makes the module 'getndelim2' compatible with the module 'getline'.
34042
34043 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34044
34045         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
34046         byte with "\201" to avoid glitches when editing that source file
34047         with multi-gnome-terminal.
34048
34049 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34050
34051         * lib/bumpalloc.h: Remove.
34052
34053 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34054
34055         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
34056         * modules/bumpalloc: Remove.
34057
34058 2003-08-04  Paul Eggert  <eggert@twinsun.com>
34059
34060         * lib/getloadavg.c: Change copyright notice and spacing to conform to
34061         GNU coding style.
34062
34063         Merge from coreutils.
34064         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
34065         1. From glibc.
34066         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
34067         from Karl Berry, implemented by Jim Meyering.
34068         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
34069         from Dmitry V. Levin.
34070         Remove anachronistic cast of xrealloc.
34071         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
34072         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
34073         type. Otherwise, it wouldn't compile with at least /bin/cc on
34074         ymp-cray-unicos9.0.2.X.
34075         Combine two mostly-identical uses of alloca into one.
34076         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
34077
34078 2003-08-04  Dave Love  <d.love@dl.ac.uk>
34079
34080         [From Emacs.]
34081
34082         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
34083         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
34084         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
34085         obsolete NLIST_NAME_UNION.
34086         [__GNU__]: Undef BSD and FSCALE.
34087         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
34088
34089 2003-08-03  Paul Eggert  <eggert@twinsun.com>
34090
34091         * lib/stdbool_.h (_Bool): Make it signed char, instead of
34092         an enum type, so that it's guaranteed to promote to int.  See:
34093         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
34094
34095 2003-08-03  Karl Berry  <karl@gnu.org>
34096
34097         * config/depcomp: update from automake.
34098
34099 2003-07-31  Paul Eggert  <eggert@twinsun.com>
34100
34101         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
34102         (strerror): Don't assume that a printable int fits in 14 bytes.
34103
34104 2003-07-31  Bruno Haible  <bruno@clisp.org>
34105
34106         * modules/getpass-gnu: New file.
34107         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
34108
34109 2003-07-31  Bruno Haible  <bruno@clisp.org>
34110
34111         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
34112
34113 2003-07-24  Karl Berry  <karl@gnu.org>
34114
34115         * config/missing: update from automake.
34116
34117 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
34118             Bruno Haible  <bruno@clisp.org>
34119
34120         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
34121         * lib/getline.c (getline, getdelim): Likewise.
34122         Remove _GNU_SOURCE define; now it's defined in config.h through
34123         m4/getline.m4.
34124
34125 2003-07-23  Karl Berry  <karl@gnu.org>
34126
34127         * config/config.sub: update from prep.
34128
34129 2003-07-22  Paul Eggert  <eggert@twinsun.com>
34130
34131         * modules/xalloc (Depends-on): Add exitfail.
34132         * modules/xmemcoll: Likewise.
34133
34134 2003-07-22  Paul Eggert  <eggert@twinsun.com>
34135
34136         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
34137         over-parenthesization in macros.
34138
34139         Sync with coreutils.
34140
34141         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
34142         required by C99.
34143
34144         Use `exit_failure' for xalloc and xmemcoll instead of their own
34145         private exit-failure variables.
34146         * lib/xalloc.h (xalloc_exit_failure): Remove.
34147         * lib/xmalloc.c: Likewise.  Include exitfail.h.
34148         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
34149         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
34150         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
34151         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
34152
34153 2003-07-20  Jim Meyering  <jim@meyering.net>
34154
34155         * modules/closeout (Depends-on): Add exitfail.
34156         Suggestion from Bruno Haible.
34157
34158 2003-07-19  Karl Berry  <karl@gnu.org>
34159
34160         * config/config.sub: update from prep.
34161
34162 2003-07-18  Paul Eggert  <eggert@twinsun.com>
34163
34164         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
34165         Remove.
34166         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
34167         to test that it can stand by itself.  Include "exitfail.h".
34168         Clients should set exit_failure instead.
34169         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
34170
34171 2003-07-18  Bruno Haible  <bruno@clisp.org>
34172
34173         * modules/getndelim2: New file.
34174         * modules/getline: Share files with module getndelim2.
34175         * modules/getnline: Depend on getndelim2 instead of sharing files with
34176         it. Add getnline.c to lib_SOURCES.
34177         * MODULES.html.sh (func_all_modules): Add getndelim2.
34178
34179 2003-07-18  Bruno Haible  <bruno@clisp.org>
34180
34181         * m4/getndelim2.m4: New file.
34182         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
34183         invoke gl_PREREQ_GETNDELIM2.
34184         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
34185         gl_PREREQ_GETNDELIM2.
34186         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
34187         gl_GETNDELIM2.
34188
34189 2003-07-18  Bruno Haible  <bruno@clisp.org>
34190
34191         * lib/getndelim2.h: New file.
34192         * lib/getndelim2.c: Make into a module of its own. Include config.h,
34193         getndelim2.h.
34194         (getndelim2): Make non-static. Change return type to ssize_t.
34195         * lib/getline.h: Change argument names.
34196         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
34197         * lib/getnline.c: Include getndelim2.h.
34198
34199 2003-07-18  Andreas Schwab  <schwab@suse.de>
34200
34201         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
34202
34203 2003-07-17  Karl Berry  <karl@gnu.org>
34204
34205         * config/config.sub: update from prep.
34206
34207 2003-07-17  Bruno Haible  <bruno@clisp.org>
34208
34209         * modules/getnline: New file.
34210         * modules/getline: Add lib/getndelim2.c to source file list.
34211         * MODULES.html.sh (func_all_modules): Add getnline.
34212
34213 2003-07-17  Bruno Haible  <bruno@clisp.org>
34214
34215         * m4/getnline.m4: New file.
34216
34217 2003-07-17  Bruno Haible  <bruno@clisp.org>
34218
34219         * m4/Makefile.am.in: Remove file.
34220         * m4/Makefile.am: Remove file.
34221         * m4/Makefile.in: Remove file.
34222
34223 2003-07-17  Bruno Haible  <bruno@clisp.org>
34224
34225         * lib/getnline.h: New file.
34226         * lib/getnline.c: New file.
34227         * lib/getndelim2.c: New file, extracted from getline.c.
34228         (getndelim2): Renamed from getdelim2, with added nmax argument.
34229         * lib/getline.c: Include getndelim2.c.
34230         (getdelim2): Moved out to getndelim2.c.
34231         (getline, getdelim): Update.
34232
34233 2003-07-17  Bruno Haible  <bruno@clisp.org>
34234
34235         * lib/Makefile.am: Remove file.
34236         * lib/Makefile.in: Remove file.
34237
34238 2003-07-17  Bruno Haible  <bruno@clisp.org>
34239
34240         * configure.in: Remove file.
34241         * Makefile.in: Remove file.
34242
34243 2003-07-17  Bruno Haible  <bruno@clisp.org>
34244
34245         * MODULES.html.sh: Put the </BODY> right before </HTML>.
34246
34247 2003-07-16  Karl Berry  <karl@gnu.org>
34248
34249         * config/srclist-update: was running fixlicense twice, which caused
34250                 texinfo.tex to be nullified for some reason.  Simplify,
34251                 $gplsrc is no longer needed as far as I can see?
34252
34253 2003-07-16  Jim Meyering  <jim@meyering.net>
34254
34255         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
34256
34257 2003-07-15  Paul Eggert  <eggert@twinsun.com>
34258
34259         * config/srclist.txt: Get the following files from gettext-runtime/intl
34260         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
34261         ref-del.sin.  From Bruno Haible.
34262         * config/srclist-update (fixfile): Change grep pattern again, since the
34263         previous fix didn't work (there was another trailing $).  Use
34264         '[$]' to escape the $s.
34265
34266 2003-07-15  Karl Berry  <karl@gnu.org>
34267
34268         * lib/vasnprintf.c: update from gettext.
34269
34270 2003-07-15  Karl Berry  <karl@gnu.org>
34271
34272         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
34273         gets expanded when surrounded by '$'.
34274
34275 2003-07-15  Jim Meyering  <jim@meyering.net>
34276
34277         * modules/save-cwd: Don't depend on error.  From Derek Price.
34278
34279 2003-07-15  Jim Meyering  <jim@meyering.net>
34280
34281         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
34282
34283 2003-07-14  Simon Josefsson  <jas@extundo.com>
34284
34285         * modules/mempcpy: New file.
34286         * MODULES.html.sh (func_all_modules): Add mempcpy.
34287
34288 2003-07-14  Simon Josefsson  <jas@extundo.com>
34289
34290         * m4/mempcpy.m4: New file.
34291
34292 2003-07-14  Simon Josefsson  <jas@extundo.com>
34293
34294         * lib/mempcpy.h: New file.
34295         * lib/mempcpy.c: New file.
34296
34297 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34298
34299         * modules/getdate, modules/posixtm: Depend on mktime.
34300
34301 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34302
34303         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
34304         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
34305         unicodeio.c, unicodeio.h, unlocked-io.h:
34306         Switch from LGPL to GPL.
34307
34308 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34309
34310         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
34311         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
34312         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
34313         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
34314         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
34315         updated automatically by ../config/srclist-update.  This changes
34316         their license from LPGL to GPL.
34317
34318 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34319
34320         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
34321         assumed to refer to the root of the most recent stable gettext version.
34322         * config/srclistvars.sh: Add defaults for eggert.
34323         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
34324         Match "This program" as well as "The program".  This is needed
34325         for gettext.
34326
34327 2003-07-14  Jim Meyering  <jim@meyering.net>
34328
34329         Don't emit diagnostics.  Let callers do that.
34330         * lib/save-cwd.c: Don't include "error.h".
34331         (save_cwd): Don't call error.  Ensure that errno is valid
34332         when returning nonzero.
34333
34334         * lib/save-cwd.h (restore_cwd): Update prototype.
34335         * lib/save-cwd.c (restore_cwd): Remove two parameters.
34336         Simplify.  Don't call error upon failure.  Let callers do that.
34337         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
34338         when auditing is enabled.  But don't bother updating the #if.
34339
34340 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
34341
34342         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
34343         it breaks C++ compilation.
34344         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
34345
34346 2003-07-10  Simon Josefsson  <jas@extundo.com>
34347
34348         * modules/strchrnul (Makefile.am): Add strchrnul.h.
34349
34350 2003-07-10  Jim Meyering  <jim@meyering.net>
34351
34352         * m4/clock_time.m4: Remove trailing blank.
34353         * m4/intmax_t.m4: Likewise.
34354
34355 2003-07-10  Jim Meyering  <jim@meyering.net>
34356
34357         * lib/vasnprintf.c: Remove trailing blanks.
34358         Make cpp indentation consistent.
34359
34360 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34361
34362         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
34363         posixver.c, strftime.c, strnlen.c, strverscmp.c:
34364         Switch from LGPL to GPL.
34365
34366 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34367
34368         * config/srclist.txt: Sort sublists.  Add
34369         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
34370         that differ from gnulib for one reason or another; we'd like this list
34371         to be smaller but for now let's document what we have.
34372
34373 2003-07-08  Paul Eggert  <eggert@twinsun.com>
34374
34375         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
34376         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
34377         and sweeter "eval x=$x".
34378         * config/srclist.txt: Get lib/argp* from glibc.
34379
34380 2003-07-07  Paul Eggert  <eggert@twinsun.com>
34381
34382         * lib/mktime.c: Fix some boundary cases and remove need for floating
34383         point.
34384
34385         Issue a compile-time diagnostic if time_t is floating point, or if
34386         two's complement arithmetic is not in effect, or if arithmetic
34387         right shift does not propagate the sign.  These assumptions were
34388         all in the original code but they weren't checked.
34389
34390         (TIME_T_MIDPOINT, verify): New macros.
34391         (__isleap): Remove; it has integer overflow problems.
34392         (leapyear): New function, without those problems.
34393         (ydhms_tm_diff): Remove; splitting into two parts.
34394         (ydhms_diff): New function, containing the arithmetic part of
34395         the old ydhms_tm_diff function.  Issue a compile-time
34396         diagnostic if we are not using C99 integer division.
34397         Avoid casts when possible.
34398         (guess_time_tm): New function, containing the checking part of
34399         the old ydhms_tm_diff function.  Return the new value, rather than
34400         the difference between it and the old.  Accept a new argument T
34401         so that *T specifies the old value.  Check for overflow in the result.
34402
34403         (__mktime_internal): Use a time_t offset, not a long int offset.
34404         This undoes the 2003-06-04 change, which is no longer needed now
34405         that we have better overflow checking.
34406         (localtime_offset): Likewise.
34407
34408         (__mktime_internal): Avoid harmful overflow on hosts where time_t
34409         and long are 64-bit but int is only 32-bit.
34410         (ydhms_diff): Use long int to store year1 and yday1.
34411         Issue a compile-time diagnostic if long int is not wide enough.
34412
34413         (__mktime_internal): Use long int to store adjusted year and yday.
34414         Use plain C rather than preprocessor commands, if that doesn't
34415         affect efficiency.
34416         Check for overflow (and try to repair) after each probe
34417         rather than checking only at the very end.  This avoids some bugs
34418         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
34419         does not equal GMT offset at maximum time).
34420         Use integer to check for overflow rather than floating point; this
34421         is more portable to non-IEEE hosts, and is a tad faster.
34422         When we detect that we are oscillating between two values,
34423         don't check whether tm_isdst has the requested value, since
34424         we already know the answer.  When tm_isdst has the wrong value,
34425         use a different heuristic to find the right one, based on the
34426         extreme values actually observed in practice in tz2003a,
34427         rather than the (overly optimistic) "previous 3 calendar quarters".
34428
34429         (not_equal_tm, print_tm, check_result): Use "const T" rather than
34430         "T const" to accommodate glibc style.
34431         (check_result): Use less-confusing report format.  "long" -> "long int.
34432         (main): Likewise.
34433         Don't loop if the iteration overflows time_t.
34434         Allow a negative step in the iteration.
34435
34436 2003-07-06  Karl Berry  <karl@gnu.org>
34437
34438         * config/depcomp: update from automake.
34439         * config/config.sub: update from prep.
34440
34441 2003-07-03  Karl Berry  <karl@gnu.org>
34442
34443         * config/config.guess: update from prep.
34444
34445 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34446
34447         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
34448         xreadlink.c now includes it unconditionally.
34449
34450 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34451
34452         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
34453         having it depend on HAVE_SYS_TYPES_H.
34454
34455 2003-07-01  Bruno Haible  <bruno@clisp.org>
34456
34457         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
34458         <sys/types.h> should be sufficient.
34459         Reported by Paul Eggert.
34460
34461 2003-06-26  Karl Berry  <karl@gnu.org>
34462
34463         * config/depcomp: update from automake.
34464
34465 2003-06-26  Bruno Haible  <bruno@clisp.org>
34466
34467         * modules/human: Depend on module stdbool.
34468
34469 2003-06-25  Bruno Haible  <bruno@clisp.org>
34470
34471         * modules/readlink: New file.
34472         * modules/xreadlink: Depend on it.
34473         * MODULES.html.sh (func_all_modules): Add readlink.
34474
34475 2003-06-25  Bruno Haible  <bruno@clisp.org>
34476
34477         * m4/readlink.m4: New file.
34478
34479 2003-06-25  Bruno Haible  <bruno@clisp.org>
34480
34481         * lib/readlink.c: New file.
34482
34483 2003-06-22  Karl Berry  <karl@gnu.org>
34484
34485         * config/srclist.txt: update mkinstalldirs from automake.
34486         * config/mkinstalldirs: update.
34487
34488 2003-06-22  Bruno Haible  <bruno@clisp.org>
34489
34490         Portability to mingw32.
34491         * m4/ssize_t.m4: New file, from GNU gettext.
34492         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
34493         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
34494
34495 2003-06-22  Bruno Haible  <bruno@clisp.org>
34496
34497         * modules/safe-read: Add m4/ssize_t.m4.
34498         * modules/xreadlink: Add m4/ssize_t.m4.
34499
34500 2003-06-20  Bruno Haible  <bruno@clisp.org>
34501
34502         Assume C89, so PARAMS isn't needed.
34503         * lib/unicodeio.h (PARAMS): Remove.
34504         * lib/unicodeio.c: Don't use PARAMS.
34505
34506 2003-06-18  Karl Berry  <karl@gnu.org>
34507
34508         * config/config.{guess,sub}: update from prep.
34509
34510 2003-06-18  Jim Meyering  <jim@meyering.net>
34511
34512         Merge changes from coreutils.
34513         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
34514         Remove explicit declarations of xmalloc and realloc.
34515         Include xalloc.h.
34516         (read_utmp): Remove anachronistic cast of xmalloc.
34517
34518 2003-06-17  Paul Eggert  <eggert@twinsun.com>
34519
34520         Assume C89, so PARAMS isn't needed.
34521         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
34522         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
34523         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
34524         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
34525         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
34526         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
34527         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
34528         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
34529         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
34530         lib/xstrtod.h, lib/xstrtol.h: Likewise.
34531         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
34532         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
34533         no longer needed. Anyway, config.h should always be included before any
34534         other file.
34535
34536 2003-06-11  Simon Josefsson  <jas@extundo.com>
34537
34538         * modules/sysexits: New file.
34539         * MODULES.html.sh (func_all_modules): Add sysexits.
34540
34541 2003-06-11  Simon Josefsson  <jas@extundo.com>
34542
34543         * lib/sysexit_.h: New file.
34544
34545 2003-06-11  Derek Price  <derek@ximbiot.com>
34546
34547         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
34548         necessary.
34549
34550 2003-06-11  Bruno Haible  <bruno@clisp.org>
34551
34552         * m4/sysexits.m4: New file.
34553
34554 2003-06-10  Simon Josefsson  <jas@extundo.com>
34555
34556         * lib/argp.h: New file, from glibc.
34557         * lib/argp-ba.c: New file, from glibc.
34558         * lib/argp-eexst.c: New file, from glibc.
34559         * lib/argp-fmtstream.c: New file, from glibc.
34560         * lib/argp-fmtstream.h: New file, from glibc.
34561         * lib/argp-fs-xinl.c: New file, from glibc.
34562         * lib/argp-help.c: New file, from glibc.
34563         * lib/argp-namefrob.h: New file, from glibc.
34564         * lib/argp-parse.c: New file, from glibc.
34565         * lib/argp-pv.c: New file, from glibc.
34566         * lib/argp-pvh.c: New file, from glibc.
34567         * lib/argp-xinl.c: New file, from glibc.
34568
34569 2003-06-10  Simon Josefsson  <jas@extundo.com>
34570
34571         * modules/strchrnul: New file.
34572
34573 2003-06-10  Simon Josefsson  <jas@extundo.com>
34574
34575         * modules/argp: New file.
34576
34577 2003-06-10  Simon Josefsson  <jas@extundo.com>
34578
34579         * m4/strchrnul.m4: New file.
34580
34581 2003-06-10  Simon Josefsson  <jas@extundo.com>
34582
34583         * lib/strchrnul.h: New file.
34584         * lib/strchrnul.c: New file.
34585
34586 2003-06-10  Bruno Haible  <bruno@clisp.org>
34587
34588         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
34589
34590 2003-06-07  Karl Berry  <karl@gnu.org>
34591
34592         * config/config.{guess,sub}: update from prep.
34593
34594 2003-06-07  Jim Meyering  <jim@meyering.net>
34595
34596         * modules/strtod: Use $(...) notation, not @...@ for
34597         AC_REPLACE'd variables.
34598         * modules/localcharset: Likewise.
34599
34600 2003-06-07  Jim Meyering  <jim@meyering.net>
34601
34602         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
34603         in place of my name in the copyright comment.
34604         Remove definition and uses of __P.
34605
34606         From coreutils.
34607         * lib/stat.c: Don't declare xmalloc explicitly.
34608         Instead, include "xalloc.h".
34609         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
34610         xrealloc, and xcalloc return values.
34611         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
34612         Improve comment.
34613         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
34614
34615 2003-06-07  Bruno Haible  <bruno@clisp.org>
34616
34617         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
34618         avoid AC_CONFIG_LINKS.
34619         * modules/fnmatch (Makefile.am): Use explicit creation rule for
34620         fnmatch.h, to avoid AC_CONFIG_LINKS.
34621         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
34622
34623 2003-06-07  Bruno Haible  <bruno@clisp.org>
34624
34625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
34626         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
34627         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34628         directory.
34629         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
34630         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34631         directory.
34632
34633 2003-06-06  Jim Meyering  <jim@meyering.net>
34634
34635         Merge from coreutils.
34636         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
34637         Consolidate declarations and initializations of *_base* locals.
34638
34639         Merge from coreutils.
34640         This avoids a core dump on systems without GNU putenv,
34641         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
34642         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
34643         (unsetenv): New static function, from GNU libc.
34644         (rpl_putenv): Use it.
34645
34646         * lib/modechange.c: Remove trailing blanks.
34647
34648         Merge from coreutils.
34649         * lib/fsusage.c: Remove declaration of statfs.
34650         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
34651
34652         * lib/posixtm.c: Include <stdbool.h> unconditionally.
34653
34654 2003-06-06  Jim Meyering  <jim@meyering.net>
34655
34656         * lib/stdbool_.h: Renamed from stdbool.h.in.
34657
34658 2003-06-06  Jim Meyering  <jim@meyering.net>
34659             Bruno Haible  <bruno@clisp.org>
34660
34661         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
34662         Adjust Makefile.am snippet not to redirect directly to target.
34663         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
34664
34665 2003-06-05  Paul Eggert  <eggert@twinsun.com>
34666
34667         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
34668         mismatch, look in future quarters as well as past.  This fixes a
34669         bug when processing fall-backwards gaps immediately after a long
34670         period of daylight-saving time.
34671
34672         * lib/mktime.c: Assume freestanding C89 or better.
34673         (HAVE_LIMITS_H): Remove.  Assume it's 1.
34674         (__P): Remove; not used.
34675         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
34676         (mktime, not_equal_tm, print_tm, check_result,
34677         main): Use prototypes.  Use const * where appropriate.
34678         (main): Fix typo in testing code that uncovered by above changes.
34679         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
34680
34681 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34682
34683         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
34684         locale.h, localeconv.  This merges changes from coreutils.
34685
34686         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
34687         It can be removed after the next Autoconf is released.
34688         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
34689         needed.
34690
34691 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34692
34693         * lib/mktime.c: Fix Debian bug 177940
34694         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
34695         (localtime_offset): Now long int, not time_t, because we want it
34696         to be guaranteed to be signed.  All uses changed.
34697         (__mktime_internal): If overflow would occur when adding offset,
34698         don't add it.
34699
34700         Merge 'human' changes from coreutils.  Rewrite to support
34701         locale-specific notations like thousands separators.
34702         * lib/human.c: Simplify authorship notice.
34703         Include human.h immediately after config.h.
34704         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
34705         <limits.h>: Do not include, since human.h does.
34706         (SIZE_MAX, UINTMAX_MAX): New macros.
34707         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
34708         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
34709         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
34710         (power_letter): Renamed from suffixes.
34711         (generate_suffix_backwards): Remove.
34712         (adjust_value): Now takes int style (because of human.h changes)
34713         and long double value (for greater precision on some platforms).
34714         (group_number): New function.
34715         (human_readable): Use it.  Use integer options, not enum.
34716         Put the options before the sizes in the arg list.
34717         Support all the new options.
34718         The old human_readable function has been removed;
34719         use inttostr.h instead.
34720         (human_readable, default_block_size, humblock):
34721         Use uintmax_t, not int, for block sizes.
34722         (human_readable_inexact, block_size_types): Remove.
34723         (block_size_opts): New constant.
34724         (human_options): Renamed from human_block_size, with new signature
34725         that allows block sizes up to UINTMAX_MAX.  All callers changed.
34726         * lib/human.h: Add copyright and authorship notice.
34727         Include <limits.h> and <stdbool.h> unconditionally.
34728         (PARAMS): Remove.  All uses removed.
34729         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
34730         (enum human_inexact_style): Remove tag; now a nameless enum.
34731         (human_floor, human_ceiling, human_round_to_even): Now have
34732         values 2, 0, 1 rather than -1, 1, 0.
34733         (human_group_digits, human_suppress_point_zero, human_autoscale,
34734         human_base_1024, human_SI, human_B): New constants.
34735         (human_readable_inexact, human_block_size): Remove.
34736         (human_readable): Size args are now uintmax_t, not int.
34737         (human_options): New decl.
34738
34739         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
34740         unnecessary now that we assume C89 or better.  This change
34741         imported from coreutils.
34742
34743         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
34744         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
34745         in the 2003-05-30 sync from glibc.
34746
34747         .h files should stand alone, but we shouldn't include <sys/types.h>
34748         if we can get away with just <stddef.h>.
34749
34750         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
34751         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
34752         rather than <sys/types.h>, as we merely need size_t.
34753         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
34754         to get size_t.
34755         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
34756         Include <stdio.h>, to get FILE.
34757         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
34758         memcasecmp.h has included <stddef.h> and all we need is size_t.
34759         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
34760         our interface, instead of including <sys/types.h>
34761
34762 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34763
34764         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
34765         now, as glibc mktime is buggy on non-glibc systems.
34766
34767 2003-06-03  Karl Berry  <karl@gnu.org>
34768
34769         * config/config.sub: update from prep.
34770
34771 2003-06-02  Paul Eggert  <eggert@twinsun.com>
34772
34773         [from coreutils]
34774         Fix some minor time-related bugs with POSIX time arguments.
34775         Some valid time stamps were being rejected (notably -1, and
34776         time stamps before 1900 on 64-bit hosts).  And some invalid
34777         time stamps were being accepted, e.g. September 31.
34778
34779         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
34780         that we can return (time_t) -1 successfully.
34781         * lib/posixtm.c: Likewise.
34782         [HAVE_STDBOOL_H]: Include <stdbool.h>.
34783         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
34784         (t): Remove static var.
34785         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
34786         of static var.  All uses changed.
34787         (year): Do not reject years before 1900; they can occur with
34788         64-bit time_t.
34789         (posix_time_parse): Do not check for out-of-range components;
34790         that is now the caller's responsibility, since our checks were
34791         only approximations.
34792         (posixtime): Use mktime to check for out-of-range components,
34793         since it knows them exactly.
34794         If mktime returns (time_t) -1, check whether an error actually occurred
34795         by invoking localtime on -1.
34796         (main) [TEST_POSIXTIME]: Check for input data errors, and report
34797         posixtime failures better.
34798         Improve the test data (in comments only).
34799
34800 2003-06-02  Karl Berry  <karl@gnu.org>
34801
34802         * config/mkinstalldirs (version): new variable.
34803         (--version): new option.
34804         (usage): improve message.
34805
34806 2003-05-30  Karl Berry  <karl@gnu.org>
34807
34808         * lib/mktime.c: update from libc.
34809
34810 2003-05-30  Bruno Haible  <bruno@clisp.org>
34811
34812         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
34813         * config/config.rpath: Upgrade to gettext-0.12.1.
34814
34815 2003-05-30  Bruno Haible  <bruno@clisp.org>
34816
34817         * m4/gettext.m4: Upgrade to gettext-0.12.1.
34818         * m4/nls.m4: New file, from gettext-0.12.1.
34819         * m4/po.m4: New file, from gettext-0.12.1.
34820         * m4/progtest.m4: Upgrade to gettext-0.12.1.
34821
34822 2003-05-30  Bruno Haible  <bruno@clisp.org>
34823
34824         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
34825         * lib/localcharset.h: Likewise.
34826         * lib/localcharset.c: Likewise.
34827
34828 2003-05-29  Karl Berry  <karl@gnu.org>
34829
34830         * config/config.rpath: update from gettext.
34831
34832 2003-05-28  Paul Eggert  <eggert@twinsun.com>
34833
34834         Assume the headers required for C89 freestanding compilers.
34835         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
34836         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
34837         * m4/human.m4 (gl_HUMAN): Likewise.
34838         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
34839         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
34840         * m4/userspec.m4 (gl_USERSPEC): Likewise.
34841         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
34842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34843         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
34844
34845 2003-05-28  Paul Eggert  <eggert@twinsun.com>
34846
34847         Assume the headers required for C89 freestanding compilers.
34848         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
34849         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
34850         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
34851         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
34852         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
34853         define, since <limits.h> is guaranteed to do that.
34854         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
34855         * lib/exclude.c: Include <stdbool.h> unconditionally.
34856         * lib/tempname.c: Include <stddef.h> unconditionally.
34857         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
34858         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
34859         <stddef.h> does that.
34860         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
34861         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
34862         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
34863         needed.
34864         * lib/xstrtol.c: Likewise.
34865         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
34866         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
34867
34868         * lib/addext.c (addext): Use assignment rather than cast, to avoid
34869         warnings on some platforms.
34870
34871         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
34872         arbitrarily.
34873
34874 2003-05-26  Jim Meyering  <jim@meyering.net>
34875
34876         Merge in a change from coreutils:
34877         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
34878         that is guaranteed to be `no'.  Use `no_such_member' to indicate
34879         that condition, rather than `-1' which is slightly misleading.
34880         Change the name of the cache variable to have the gl_ prefix.
34881         Prompted by a patch from Richard Dawe for DJGPP.
34882
34883 2003-05-24  Karl Berry  <karl@gnu.org>
34884
34885         * config/config.guess: update from prep.
34886
34887 2003-05-22  Karl Berry  <karl@gnu.org>
34888
34889         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
34890
34891 2003-05-20  Karl Berry  <karl@gnu.org>
34892
34893         * config/config.guess: update from prep.
34894
34895 2003-05-18  Karl Berry  <karl@gnu.org>
34896
34897         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
34898         might actually be set by the user.
34899
34900         * config/depcomp, install-sh, mdate-sh: update from automake.
34901
34902 2003-05-17  Bruno Haible  <bruno@clisp.org>
34903
34904         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
34905         invalid expansion for AC_EGREP_CPP.
34906         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
34907         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
34908         Suggested by Akim Demaille <akim@epita.fr> in
34909         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
34910
34911 2003-05-12  Jim Meyering  <jim@meyering.net>
34912
34913         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
34914         the space-padded-by-default conversion specifiers, %e, %k, %l.
34915
34916 2003-05-12  Bruno Haible  <bruno@clisp.org>
34917
34918         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
34919         the string is longer than 4 KB.
34920
34921 2003-05-11  Karl Berry  <karl@gnu.org>
34922
34923         * config/config.{guess,sub}: update from prep.
34924
34925 2003-05-09  Bruno Haible  <bruno@clisp.org>
34926
34927         * modules/error: Add m4/strerror_r.m4 to file list.
34928
34929 2003-05-03  Bruno Haible  <bruno@clisp.org>
34930
34931         Upgrade to Unicode-4.0.
34932         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
34933         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
34934         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
34935         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
34936         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
34937         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
34938         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
34939         Change width of U+E0100..U+E01EF from 1 to 0.
34940
34941 2003-04-25  Jim Meyering  <jim@meyering.net>
34942
34943         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
34944         of type size_t, not int.
34945
34946 2003-04-25  Bruno Haible  <bruno@clisp.org>
34947
34948         * lib/copy-file.c: Include <stddef.h>, for size_t.
34949
34950 2003-04-21  Paul Eggert  <eggert@twinsun.com>
34951
34952         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
34953         code which expansion is under static control.  Patch imported from
34954         Akim Demaille's patch to Bison; see
34955         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
34956
34957 2003-04-14  Bruno Haible  <bruno@clisp.org>
34958
34959         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
34960
34961 2003-04-11  Jim Meyering  <jim@meyering.net>
34962
34963         Merge changes from Coreutils.
34964
34965         2003-03-22  Jim Meyering  <jim@meyering.net>
34966
34967         * lib/strftime.c (widen): Cast alloca return value to proper type.
34968
34969         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
34970
34971         From GNU libc.
34972         * lib/strftime.c (my_strftime): Handle very large width
34973         specifications for numeric values correctly.  Improve checks for
34974         overflow.
34975
34976         2003-01-19  Jim Meyering  <jim@meyering.net>
34977
34978         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
34979         definitions.
34980         (nl_get_alt_digit) [! defined my_strftime]: Define.
34981         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
34982         _nl_get_alt_digit and _nl_get_walt_digit.
34983
34984         * lib/strftime.c (my_strftime): Merge in locale-related changes from
34985         libc. These changes have no effect outside of _LIBC.
34986
34987 2003-04-10  Bruno Haible  <bruno@clisp.org>
34988
34989         * modules/findprog: New file.
34990         * MODULES.html.sh (func_all_modules): Add it.
34991
34992 2003-04-10  Bruno Haible  <bruno@clisp.org>
34993
34994         * m4/findprog.m4: New file.
34995         * m4/eaccess.m4: New file.
34996
34997 2003-04-10  Bruno Haible  <bruno@clisp.org>
34998
34999         * lib/findprog.h: New file, from GNU gettext.
35000         * lib/findprog.c: New file, from GNU gettext.
35001
35002 2003-04-05  Jim Meyering  <jim@meyering.net>
35003
35004         Merge changes from Coreutils.
35005
35006         * lib/exclude.h (PARAMS): Remove definition and uses.
35007         * lib/exclude.c: Remove uses of `PARAMS'.
35008
35009         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
35010         Add test-cases for DOS filenames. Declare program_name.
35011         (main): Set up program_name.  Patch by Rich Dawe.
35012
35013         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35014         error from mntctl.
35015         Use mntctl's return value to drive the entry-processing loop, since
35016         we can't rely on the value of the vmt_length member in the last
35017         entry.  On some systems doing so could result in exhausting
35018         virtual memory.  Based in part on a patch from Mike Jetzer.
35019
35020 2003-04-04  Bruno Haible  <bruno@clisp.org>
35021
35022         * modules/linebreak: New file.
35023         * MODULES.html.sh (func_all_modules): Add it.
35024
35025 2003-04-04  Bruno Haible  <bruno@clisp.org>
35026
35027         * m4/linebreak.m4: New file.
35028
35029 2003-04-04  Bruno Haible  <bruno@clisp.org>
35030
35031         * lib/linebreak.h: New file, from GNU gettext.
35032         * lib/linebreak.c: New file, from GNU gettext with slight
35033         modifications.
35034         * lib/lbrkprop.h: New file, from GNU gettext.
35035
35036 2003-04-03  Bruno Haible  <bruno@clisp.org>
35037
35038         * modules/utf8-ucs4: New file.
35039         * modules/utf16-ucs4: New file.
35040         * modules/ucs4-utf8: New file.
35041         * modules/ucs4-utf16: New file.
35042         * MODULES.html.sh (func_all_modules): Add them.
35043
35044 2003-04-03  Bruno Haible  <bruno@clisp.org>
35045
35046         * m4/utf-ucs4.m4: New file.
35047         * m4/ucs4-utf.m4: New file.
35048
35049 2003-04-03  Bruno Haible  <bruno@clisp.org>
35050
35051         * lib/utf8-ucs4.h: New file, from GNU gettext.
35052         * lib/utf16-ucs4.h: New file, from GNU gettext.
35053         * lib/ucs4-utf8.h: New file, from GNU gettext.
35054         * lib/ucs4-utf16.h: New file, from GNU gettext.
35055
35056 2003-04-02  Bruno Haible  <bruno@clisp.org>
35057
35058         * modules/binary-io: New file.
35059         * MODULES.html.sh (func_all_modules): Add it.
35060
35061 2003-04-02  Bruno Haible  <bruno@clisp.org>
35062
35063         * lib/binary-io.h: New file, from GNU gettext.
35064
35065 2003-04-01  Bruno Haible  <bruno@clisp.org>
35066
35067         * modules/pathname: New file.
35068         * MODULES.html.sh (func_all_modules): Add it.
35069
35070 2003-04-01  Bruno Haible  <bruno@clisp.org>
35071
35072         * lib/pathname.h: New file, from GNU gettext.
35073         * lib/concatpath.c: New file, from GNU gettext.
35074
35075 2003-03-30  Bruno Haible  <bruno@clisp.org>
35076
35077         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
35078
35079 2003-03-30  Bruno Haible  <bruno@clisp.org>
35080
35081         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
35082         function chown() doesn't exist.
35083
35084 2003-03-28  Bruno Haible  <bruno@clisp.org>
35085
35086         * modules/copy-file: New file.
35087         * MODULES.html.sh (func_all_modules): Add it.
35088
35089 2003-03-28  Bruno Haible  <bruno@clisp.org>
35090
35091         * m4/copy-file.m4: New file.
35092
35093 2003-03-28  Bruno Haible  <bruno@clisp.org>
35094
35095         * lib/copy-file.h: New file, from GNU gettext.
35096         * lib/copy-file.c: New file, from GNU gettext.
35097
35098 2003-03-18  Jim Meyering  <jim@meyering.net>
35099
35100         * lib/quote.c (quote_n): Fix typo in comment.
35101
35102 2003-03-18  Bruno Haible  <bruno@clisp.org>
35103
35104         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
35105         checking.
35106         * m4/onceonly_2_57.m4: Likewise.
35107
35108 2003-03-17  Bruno Haible  <bruno@clisp.org>
35109
35110         * m4/onceonly.m4: Require autoconf 2.54 or newer.
35111         (m4_quote): Remove macro.
35112         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
35113
35114 2003-03-14  Jim Meyering  <jim@meyering.net>
35115
35116         Merge changes from Coreutils.
35117         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
35118         to be const, in order to avoid warnings.
35119         (obstack_room): Likewise.
35120         (obstack_empty_p): Likewise.
35121
35122 2003-03-14  Bruno Haible  <bruno@clisp.org>
35123
35124         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
35125         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
35126
35127 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35128
35129         Merge changes from Bison.
35130         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
35131         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
35132         when compiling Bison 1.875's `bitset bset = obstack_alloc
35133         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
35134         * lib/hash.c: Include <stdbool.h> unconditionally.
35135
35136 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35137
35138         * m4/onceonly.m4 (m4_quote): New macro.
35139         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
35140         Quote AC_FOREACH variable-expansions properly.
35141
35142 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35143
35144         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
35145
35146 2003-03-09  Paul Eggert  <eggert@twinsun.com>
35147
35148         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
35149         Reported by Bruce Becker; see:
35150         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
35151
35152 2003-03-03  Paul Eggert  <eggert@twinsun.com>
35153             Bruno Haible  <bruno@clisp.org>
35154
35155         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
35156         Reported by John Hughes, see
35157         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
35158
35159 2003-02-20  Bruno Haible  <bruno@clisp.org>
35160
35161         * MODULES.html.sh (func_all_modules): Add poll.
35162
35163 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35164
35165         * modules/poll: New file.
35166
35167 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35168
35169         * lib/poll_.h: New file.
35170         * lib/poll.c: New file.
35171
35172 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35173
35174         * m4/poll.m4: New file.
35175
35176 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35177
35178         * modules/mathl: New file.
35179
35180 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35181
35182         * lib/mathl.h: New file.
35183         * lib/acosl.c: New file.
35184         * lib/asinl.c: New file.
35185         * lib/atanl.c: New file.
35186         * lib/ceill.c: New file.
35187         * lib/cosl.c: New file.
35188         * lib/expl.c: New file.
35189         * lib/floorl.c: New file.
35190         * lib/frexpl.c: New file.
35191         * lib/ldexpl.c: New file.
35192         * lib/logl.c: New file.
35193         * lib/sincosl.c: New file.
35194         * lib/sinl.c: New file.
35195         * lib/sqrtl.c: New file.
35196         * lib/tanl.c: New file.
35197         * lib/trigl.c: New file.
35198         * lib/trigl.h: New file.
35199
35200 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35201
35202         * m4/mathl.m4: New file.
35203
35204 2003-02-18  Bruno Haible  <bruno@clisp.org>
35205
35206         * MODULES.html.sh (func_all_modules): Add mathl.
35207
35208 2003-02-17  Bruno Haible  <bruno@clisp.org>
35209
35210         * modules/mkdtemp: New module.
35211         * MODULES.html.sh (func_all_modules): Add it.
35212
35213 2003-02-17  Bruno Haible  <bruno@clisp.org>
35214
35215         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
35216
35217 2003-02-17  Bruno Haible  <bruno@clisp.org>
35218
35219         * lib/mkdtemp.h: New file, from GNU gettext.
35220         * lib/mkdtemp.c: New file, from GNU gettext.
35221
35222 2003-02-02  Jim Meyering  <jim@meyering.net>
35223
35224         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
35225         e.g. glibc-2.2.93.
35226
35227 2003-01-31  Bruno Haible  <bruno@clisp.org>
35228
35229         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
35230         'rpl_rename'.
35231         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
35232         'rpl_strnlen'.
35233         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
35234         'rpl_strtod'.
35235         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
35236         'rpl_utime'.
35237
35238 2003-01-31  Bruno Haible  <bruno@clisp.org>
35239
35240         * lib/rename.c: #undef rename before defining rpl_rename.
35241         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
35242
35243 2003-01-30  Bruno Haible  <bruno@clisp.org>
35244
35245         * modules/vasnprintf, modules/vasprintf: New modules.
35246         * MODULES.html.sh (func_all_modules): Add them.
35247
35248 2003-01-30  Bruno Haible  <bruno@clisp.org>
35249
35250         * m4/signed.m4: New file, from GNU gettext.
35251         * m4/longdouble.m4: New file, from GNU gettext.
35252         * m4/wchar_t.m4: New file, from GNU gettext.
35253         * m4/wint_t.m4: New file, from GNU gettext.
35254         * m4/vasnprintf.m4: New file.
35255         * m4/vasprintf.m4: New file.
35256
35257 2003-01-30  Bruno Haible  <bruno@clisp.org>
35258
35259         * lib/printf-args.h: New file, from GNU gettext.
35260         * lib/printf-args.c: New file, from GNU gettext.
35261         * lib/printf-parse.h: New file, from GNU gettext.
35262         * lib/printf-parse.c: New file, from GNU gettext.
35263         * lib/vasnprintf.h: New file, from GNU gettext.
35264         * lib/vasnprintf.c: New file, from GNU gettext.
35265         * lib/asnprintf.c: New file, from GNU gettext.
35266         * lib/vasprintf.h: New file, from GNU gettext with modifications.
35267         * lib/vasprintf.c: New file, from GNU gettext.
35268         * lib/asprintf.c: New file, from GNU gettext.
35269
35270 2003-01-29  Bruno Haible  <bruno@clisp.org>
35271
35272         * modules/stpncpy: New module.
35273         * MODULES.html.sh (func_all_modules): Add it.
35274
35275 2003-01-29  Bruno Haible  <bruno@clisp.org>
35276
35277         * m4/stpncpy.m4: New file.
35278
35279 2003-01-29  Bruno Haible  <bruno@clisp.org>
35280
35281         * lib/stpncpy.h: New file, from GNU gettext with modifications.
35282         * lib/stpncpy.c: New file, from GNU gettext with modifications.
35283
35284 2003-01-28  Bruno Haible  <bruno@clisp.org>
35285
35286         * modules/c-ctype: New module.
35287         * MODULES.html.sh (func_all_modules): Add it.
35288
35289 2003-01-28  Bruno Haible  <bruno@clisp.org>
35290
35291         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
35292         Paul Eggert.
35293         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
35294         Paul Eggert.
35295
35296 2003-01-27  Bruno Haible  <bruno@clisp.org>
35297
35298         * modules/xsetenv: New module.
35299         * MODULES.html.sh (func_all_modules): Add it.
35300
35301 2003-01-27  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/xsetenv.h: New file, from GNU gettext.
35304         * lib/xsetenv.c: New file, from GNU gettext.
35305
35306 2003-01-23  Jim Meyering  <jim@meyering.net>
35307
35308         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
35309         from working on systems without dirfd (at least Irix and OSF1/Tru64).
35310
35311 2003-01-23  Bruno Haible  <bruno@clisp.org>
35312
35313         * modules/minmax: New module.
35314         * MODULES.html.sh (func_all_modules): Add it.
35315
35316 2003-01-23  Bruno Haible  <bruno@clisp.org>
35317
35318         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
35319         Eggert.
35320
35321 2003-01-22  Bruno Haible  <bruno@clisp.org>
35322
35323         * modules/exit: New module.
35324         * MODULES.html.sh (func_all_modules): Add it.
35325
35326 2003-01-22  Bruno Haible  <bruno@clisp.org>
35327
35328         * lib/exit.h: New file, from GNU gettext.
35329
35330 2003-01-19  Bruno Haible  <bruno@clisp.org>
35331
35332         * gnulib-tool: Recognize option --extract-maintainer.
35333         (func_get_maintainer): New function.
35334         * modules/*: Add Maintainer entry.
35335
35336 2003-01-16  Jim Meyering  <jim@meyering.net>
35337
35338         * m4/regex.m4: The `regex' struct is both input and output.
35339         Initialize it before each use.  Patch by Tim Waugh.
35340
35341 2003-01-16  Bruno Haible  <bruno@clisp.org>
35342
35343         * MODULES.html.sh: Add a table of contents. Add the module name as
35344         leftmost column. Add hyperlinks.
35345
35346 2003-01-15  Bruno Haible  <bruno@clisp.org>
35347
35348         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
35349
35350 2003-01-15  Bruno Haible  <bruno@clisp.org>
35351
35352         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
35353         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
35354         suffix.
35355
35356 2003-01-15  Bruno Haible  <bruno@clisp.org>
35357
35358         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
35359
35360 2003-01-15  Bruno Haible  <bruno@clisp.org>
35361
35362         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
35363         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
35364
35365 2003-01-14  Jim Meyering  <jim@meyering.net>
35366
35367         * lib/same.c (same_name): Tweak a comment.
35368
35369 2003-01-14  Bruno Haible  <bruno@clisp.org>
35370
35371         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
35372         when a string comparison is sufficient.
35373
35374 2003-01-14  Bruno Haible  <bruno@clisp.org>
35375
35376         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
35377         'unsigned int'.
35378
35379 2003-01-14  Bruno Haible  <bruno@clisp.org>
35380
35381         * lib/hash-pjw.c: Add comment about low quality of this function.
35382
35383 2003-01-13  Bruno Haible  <bruno@clisp.org>
35384
35385         * modules/stpcpy: Distribute lib/stpcpy.h.
35386         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
35387
35388 2003-01-13  Bruno Haible  <bruno@clisp.org>
35389
35390         * modules/*: Add a description.
35391         * modules/strpbrk: Fix Makefile.am snippet.
35392         * modules/strtoimax: Fix dependencies.
35393         * modules/strtoumax: Likewise.
35394
35395 2003-01-13  Bruno Haible  <bruno@clisp.org>
35396
35397         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
35398         * modules/alloca (Makefile.am): All object files depend on alloca.h.
35399         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
35400
35401 2003-01-13  Bruno Haible  <bruno@clisp.org>
35402
35403         * gnulib-tool (func_create_testdir): Store config/* files in the main
35404         directory.
35405         * config.rpath: Move to ...
35406         * config/config.rpath: ... here.
35407         * modules/gettext: Contains config/config.rpath, not config.rpath.
35408         * modules/iconv: Likewise.
35409
35410 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35411
35412         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35413         to avoid collisions with libcurses and libreadline.
35414
35415         * m4/getstr.m4: Remove.
35416         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
35417
35418 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35419
35420         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35421         to avoid collisions with libcurses and libreadline.
35422
35423         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
35424         * lib/getstr.h, getstr.c: Remove.
35425         * lib/getline.c: Include "getline.h", to check interface.
35426         Move body of old getstr.c here: this defines MIN_CHUNK and
35427         declares getdelim2, which is renamed from getstr.
35428         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
35429
35430         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
35431         All uses changed.
35432         * lib/linebuffer.h: Likewise.
35433         (readline): Remove backward-compatibility macro.
35434
35435 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35436
35437         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35438         to avoid collisions with libcurses and libreadline.
35439         * getstr: Remove.
35440         * MODULES.html.sh: Remove getstr.
35441         * modules/getline: Depend on unlocked-io, not getstr.
35442
35443 2003-01-12  Jim Meyering  <jim@meyering.net>
35444
35445         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
35446
35447 2003-01-10  Bruno Haible  <bruno@clisp.org>
35448
35449         * modules/alloca: Change Makefile.am requirements. Simplify Include
35450         requirements. Add lib/alloca_.h to file list.
35451
35452 2003-01-10  Bruno Haible  <bruno@clisp.org>
35453
35454         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
35455
35456 2003-01-10  Bruno Haible  <bruno@clisp.org>
35457
35458         * lib/alloca_.h: New file.
35459         * lib/getdate.y: Unconditionally include alloca.h.
35460         * lib/makepath.c: Likewise.
35461         * lib/setenv.c: Likewise.
35462         * lib/userspec.c: Likewise.
35463
35464 2003-01-09  Karl Berry  <karl@gnu.org>
35465
35466         * MODULES.html.sh: include `dirname $0` in PATH, to find
35467         gnulib-tool.
35468
35469 2003-01-09  Bruno Haible  <bruno@clisp.org>
35470
35471         * modules/stdbool: Change configure.ac, Makefile.am requirements.
35472         Simplify Include requirements. Add lib/stdbool.h.in to file list.
35473
35474 2003-01-09  Bruno Haible  <bruno@clisp.org>
35475
35476         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
35477
35478 2003-01-09  Bruno Haible  <bruno@clisp.org>
35479
35480         * lib/stdbool.h.in: New file.
35481
35482 2003-01-09  Bruno Haible  <bruno@clisp.org>
35483
35484         * gnulib-tool (func_all_modules): Ignore files ending in ~.
35485         * MODULES.html.sh: Likewise.
35486
35487 2003-01-08  Jim Meyering  <jim@meyering.net>
35488
35489         * lib/full-write.c: Undefine and define-away `const' after inclusion
35490         of errno.h, not before.  Suggestion from Bruno Haible.
35491
35492 2003-01-08  Bruno Haible  <bruno@clisp.org>
35493
35494         * modules/full-read: Depend on full-write.
35495
35496 2003-01-08  Bruno Haible  <bruno@clisp.org>
35497
35498         * lib/safe-read.c: Include specification header first, to ensure its
35499         selfcontainedness.
35500         * lib/full-write.c: Likewise.
35501
35502 2003-01-07  Jim Meyering  <jim@meyering.net>
35503
35504         * lib/full-write.c: Rework so that it may serve to define full_read,
35505         too.
35506         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
35507
35508 2003-01-07  Bruno Haible  <bruno@clisp.org>
35509
35510         * lib/strtoimax.c: Include <stdint.h> as an alternative to
35511         <inttypes.h>.
35512         * lib/xstrtol.h: Likewise.
35513         * lib/xstrtoimax.c: Likewise.
35514         * lib/xstrtoumax.c: Likewise.
35515         * lib/human.h: Likewise.
35516
35517         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
35518         on systems that have <inttypes.h> but not <stdint.h>.
35519
35520 2003-01-07  Bruno Haible  <bruno@clisp.org>
35521
35522         * MODULES.html.sh: Add copyright notice.
35523         (missed_files): Omit CVS directory entries.
35524         (func_module): Make it work with sed-3.02.
35525         * MODULES.txt: Remove file.
35526
35527 2003-01-06  Jim Meyering  <jim@meyering.net>
35528
35529         * lib/version-etc.c: Update year in translatable copyright string.
35530
35531 2003-01-03  Karl Berry  <karl@gnu.org>
35532
35533         * config/config.{guess,sub}: update from prep.
35534
35535 2003-01-02  Karl Berry  <karl@gnu.org>
35536
35537         * doc/COPYING.DOC: belatedly updated to 1.2.
35538
35539 2003-01-01  Karl Berry  <karl@gnu.org>
35540
35541         * gnulib-tool (func_verify_module): report module name $module in
35542         error message, not $1.
35543         * gnulib-tool (create-testdir): don't complain if destdir couldn't
35544         be created, only if it doesn't exist.
35545         * gnulib-tool (last_checkin_date): don't expand the $Date here.
35546
35547 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35548
35549         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
35550
35551 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35552
35553         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
35554         memcmp if strcoll doesn't work.
35555
35556 2002-12-31  Bruno Haible  <bruno@clisp.org>
35557
35558         * lib/utime.c (utime_null): No need to call ftruncate if the file was
35559         nonempty.
35560
35561 2002-12-31  Bruno Haible  <bruno@clisp.org>
35562
35563         * lib/memcoll.c (STRCOLL): New macro.
35564         (memcoll): Use it.
35565
35566 2002-12-31  Bruno Haible  <bruno@clisp.org>
35567
35568         * lib/localcharset.h: New file.
35569         * lib/localcharset.c: Include it.
35570         * lib/unicodeio.c: Likewise.
35571
35572 2002-12-31  Bruno Haible  <bruno@clisp.org>
35573
35574         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
35575         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
35576
35577 2002-12-31  Bruno Haible  <bruno@clisp.org>
35578
35579         * lib/getline.h: Include <stddef.h>, for size_t.
35580
35581         * lib/unicodeio.h: Include <stddef.h>, for size_t.
35582         * lib/unicodeio.c: Don't include <stddef.h>.
35583
35584 2002-12-31  Bruno Haible  <bruno@clisp.org>
35585
35586         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
35587         HAVE_TM_ZONE.
35588
35589 2002-12-24  Karl Berry  <karl@gnu.org>
35590
35591         * config/config.guess: update from prep.
35592
35593 2002-12-24  Bruno Haible  <bruno@clisp.org>
35594
35595         General infrasructure.
35596         * m4/README: Rewritten.
35597         * m4/onceonly.m4: New file.
35598         * m4/onceonly_2_57.m4: New file.
35599
35600         Module atexit.
35601         * m4/atexit.m4: New file.
35602
35603         Module strtod.
35604         * m4/strtod.m4: New file.
35605
35606         Module strtol.
35607         * m4/strtol.m4: New file.
35608
35609         Module strtoul.
35610         * m4/strtoul.m4: New file.
35611
35612         Module memchr.
35613         * m4/memchr.m4: New file.
35614
35615         Module memcmp.
35616         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
35617         (jm_FUNC_MEMCMP): Invoke it.
35618
35619         Module memcpy.
35620         * m4/memcpy.m4: New file.
35621
35622         Module memmove.
35623         * m4/memmove.m4: New file.
35624
35625         Module memset.
35626         * m4/memset.m4: New file.
35627
35628         Module strcspn.
35629         * m4/strcspn.m4: New file.
35630
35631         Module strpbrk.
35632         * m4/strpbrk.m4: New file.
35633
35634         Module strstr.
35635         * m4/strstr.m4: New file.
35636
35637         Module strerror.
35638         * m4/strerror.m4: New file.
35639
35640         Module mktime.
35641         * m4/mktime.m4: Renamed from jm-mktime.m4.
35642         (gl_PREREQ_MKTIME): New macro.
35643         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
35644
35645         Module malloc.
35646         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
35647         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
35648         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
35649
35650         Module realloc.
35651         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
35652         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
35653         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
35654
35655         Module strftime.
35656         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
35657         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
35658         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
35659         gl_TM_GMTOFF.
35660         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
35661
35662         Module xalloc.
35663         * m4/xalloc.m4: New file.
35664
35665         Module alloca.
35666         * m4/alloca.m4: New file.
35667
35668         Module putenv.
35669         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35670         (jm_FUNC_PUTENV): Invoke it.
35671
35672         Module setenv.
35673         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
35674         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
35675         when invoked twice.
35676         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
35677         gt_FUNC_SETENV.
35678
35679         Module memrchr.
35680         * m4/memrchr.m4: New file.
35681
35682         Module stpcpy.
35683         * m4/stpcpy.m4: New file.
35684
35685         Module strcase.
35686         * m4/strcase.m4: New file.
35687
35688         Module strdup.
35689         * m4/strdup.m4: New file.
35690
35691         Module strnlen.
35692         * m4/strnlen.m4: New file.
35693
35694         Module strndup.
35695         * m4/strndup.m4: New file.
35696
35697         Module xstrtod.
35698         * m4/xstrtod.m4: New file.
35699
35700         Module xstrtol.
35701         * m4/xstrtol.m4: New file.
35702
35703         Module getdate.
35704         * m4/getdate.m4: New file.
35705
35706         Module unlocked-io.
35707         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
35708         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
35709         * m4/jm-glibc-io.m4n: Remove file.
35710
35711         Module long-options.
35712         * m4/long-options.m4: New file.
35713
35714         Module md5.
35715         * m4/md5.m4: New file.
35716
35717         Module sha.
35718         * m4/sha.m4: New file.
35719
35720         Module getstr.
35721         * m4/getstr.m4: New file.
35722
35723         Module getline.
35724         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
35725         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
35726         <sys/types.h>, for size_t. Use the function name gnu_getline, not
35727         simply getline. Infoke gl_PREREQ_GETLINE.
35728
35729         Module obstack.
35730         * m4/obstack.m4: New file.
35731
35732         Module hash.
35733         * m4/hash.m4: New file.
35734
35735         Module readtokens.
35736         * m4/readtokens.m4: New file.
35737
35738         Module strverscmp.
35739         * m4/strverscmp.m4: New file.
35740
35741         Module stdbool.
35742         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
35743         OSF/1.
35744
35745         Module strtoll.
35746         * m4/strtoll.m4: New file.
35747
35748         Module strtoull.
35749         * m4/strtoull.m4: New file.
35750
35751         Module strtoimax.
35752         * m4/strtoimax.m4: New file.
35753
35754         Module strtoumax.
35755         * m4/strtoumax.m4: New file.
35756
35757         Module xstrtoimax.
35758         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
35759         jm_AC_PREREQ_XSTRTOIMAX.
35760         Moved the strtol prerequisites to strtol.m4.
35761         Moved the strtoll prerequisites to strtoll.m4.
35762         Moved the strtoimax prerequisites to strtoimax.m4.
35763
35764         Module xstrtoumax.
35765         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
35766         jm_AC_PREREQ_XSTRTOUMAX.
35767         Moved the strtoul prerequisites to strtoul.m4.
35768         Moved the strtoull prerequisites to strtoull.m4.
35769         Moved the strtoumax prerequisites to strtoumax.m4.
35770
35771         Module chown.
35772         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
35773         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
35774
35775         Module dup2.
35776         * m4/dup2.m4: New file.
35777
35778         Module ftruncate.
35779         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
35780         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
35781
35782         Module getgroups.
35783         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
35784         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
35785
35786         Module gettimeofday.
35787         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
35788         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
35789         gl_PREREQ_GETTIMEOFDAY.
35790
35791         Module mkdir.
35792         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
35793         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
35794
35795         Module mkstemp.
35796         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
35797         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
35798         jm_AC_TYPE_UINTMAX_T.
35799         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
35800
35801         Module stat.
35802         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
35803         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
35804
35805         Module lstat.
35806         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
35807         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
35808
35809         Module timespec.
35810         * m4/timespec.m4 (gl_TIMESPEC): New macro.
35811         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
35812         * m4/st_mtim.m4: Indentation.
35813
35814         Module nanosleep.
35815         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
35816         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
35817         gl_PREREQ_NANOSLEEP.
35818
35819         Module regex.
35820         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
35821         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
35822         (gl_REGEX): New macro.
35823
35824         Module rename.
35825         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
35826         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
35827
35828         Module rmdir.
35829         * m4/rmdir.m4: New file.
35830
35831         Module utime.
35832         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
35833         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
35834         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
35835
35836         Module dirname.
35837         * m4/dirname.m4: New file.
35838
35839         Module getopt.
35840         * m4/getopt.m4: New file.
35841
35842         Module unistd-safer.
35843         * m4/unistd-safer.m4: New file.
35844
35845         Module fnmatch.
35846         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
35847         declaration.
35848         (gl_PREREQ_FNMATCH_EXTRA): New macro.
35849         (gl_FUNC_FNMATCH_POSIX): New macro.
35850         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
35851         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
35852         simply fnmatch.
35853
35854         Module exclude.
35855         * m4/exclude.m4: New file.
35856
35857         Module human.
35858         * m4/human.m4: New file.
35859
35860         Module acl.
35861         * m4/acl.m4: Nop.
35862
35863         Module backupfile.
35864         * m4/backupfile.m4: New file.
35865         * m4/d-ino.m4: Indentation.
35866
35867         Module fsusage.
35868         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
35869         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
35870         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
35871
35872         Module dirfd.
35873         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
35874         requirements.
35875
35876         Module euidaccess.
35877         * m4/euidaccess.m4: New file.
35878
35879         Module file-type.
35880         * m4/file-type.m4: New file.
35881
35882         Module fileblocks.
35883         * m4/fileblocks.m4: New file.
35884
35885         Module filemode.
35886         * m4/filemode.m4: New file.
35887
35888         Module isdir.
35889         * m4/isdir.m4: New file.
35890
35891         Module lchown.
35892         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
35893         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
35894
35895         Module makepath.
35896         * m4/makepath.m4: New file.
35897
35898         Module modechange.
35899         * m4/modechange.m4: New file.
35900
35901         Module mountlist.
35902         * m4/mountlist.m4: New file.
35903         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
35904         Indentation.
35905
35906         Module path-concat.
35907         * m4/path-concat.m4: New file.
35908
35909         Module pathmax.
35910         * m4/pathmax.m4: New file.
35911
35912         Module same.
35913         * m4/same.m4: New file.
35914
35915         Module save-cwd.
35916         * m4/save-cwd.m4: New file.
35917
35918         Module savedir.
35919         * m4/savedir.m4: New file.
35920
35921         Module xgetcwd.
35922         * m4/xgetcwd.m4: New file.
35923         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
35924
35925         Module xreadlink.
35926         * m4/xreadlink.m4: New file.
35927
35928         Module safe-read.
35929         * m4/safe-read.m4: New file.
35930
35931         Module safe-write.
35932         * m4/safe-write.m4: New file.
35933
35934         Module closeout.
35935         * m4/closeout.m4: New file.
35936
35937         Module stdio-safer.
35938         * m4/stdio-safer.m4: New file.
35939
35940         Module getpass.
35941         * m4/getpass.m4: New file.
35942
35943         Module getugroups.
35944         * m4/getugroups.m4: New file.
35945
35946         Module group-member.
35947         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
35948         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
35949
35950         Module idcache.
35951         * m4/idcache.m4: New file.
35952
35953         Module userspec.
35954         * m4/userspec.m4: New file.
35955
35956         Module gettime.
35957         * m4/clock_time.m4: New file.
35958         * m4/gettime.m4: New file.
35959
35960         Module settime.
35961         * m4/settime.m4: New file.
35962
35963         Module posixtm.
35964         * m4/posixtm.m4: New file.
35965
35966         Module gethostname.
35967         * m4/gethostname.m4: New file.
35968
35969         Module canon-host.
35970         * m4/canon-host.m4: New file.
35971
35972         Module gettext.
35973         * m4/codeset.m4: New file, from gettext-0.11.5.
35974         * m4/gettext.m4: New file, from gettext-0.11.5.
35975         * m4/glibc21.m4: New file, from gettext-0.11.5.
35976         * m4/iconv.m4: New file, from gettext-0.11.5.
35977         * m4/intdiv0.m4: New file, from gettext-0.11.5.
35978         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
35979         * m4/inttypes.m4: New file, from gettext-0.11.5.
35980         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
35981         * m4/isc-posix.m4: New file, from gettext-0.11.5.
35982         * m4/lcmessage.m4: New file, from gettext-0.11.5.
35983         * m4/lib-ld.m4: New file, from gettext-0.11.5.
35984         * m4/lib-link.m4: New file, from gettext-0.11.5.
35985         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
35986         * m4/progtest.m4: New file, from gettext-0.11.5.
35987         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
35988         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
35989         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
35990
35991         Module localcharset.
35992         * m4/localcharset.m4: New file.
35993
35994         Module hard-locale.
35995         * m4/hard-locale.m4: New file.
35996
35997         Module mbswidth.
35998         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
35999         onceonly macros.
36000         * m4/mbrtowc.m4: Add comment.
36001
36002         Module memcasecmp.
36003         * m4/memcasecmp.m4: New file.
36004
36005         Module memcoll.
36006         * m4/memcoll.m4: New file.
36007
36008         Module unicodeio.
36009         * m4/unicodeio.m4: New file.
36010
36011         Module rpmatch.
36012         * m4/rpmatch.m4: New file.
36013
36014         Module yesno.
36015         * m4/yesno.m4: New file.
36016
36017         Module exitfail.
36018         * m4/exitfail.m4: New file.
36019
36020         Module c-stack.
36021         * m4/c-stack.m4 (gl_C_STACK): New macro.
36022         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
36023
36024         Module error.
36025         * m4/error.m4 (gl_ERROR): New macro.
36026         (jm_PREREQ_ERROR): Use onceonly macros.
36027
36028         Module fatal.
36029         * m4/fatal.m4: New file.
36030
36031         Module getloadavg.
36032         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
36033         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
36034
36035         Module getpagesize.
36036         * m4/getpagesize.m4: New file.
36037
36038         Module getusershell.
36039         * m4/getusershell.m4: New file.
36040
36041         Module physmem.
36042         * m4/physmem.m4: New file.
36043
36044         Module posixver.
36045         * m4/posixver.m4: New file.
36046
36047         Module quotearg.
36048         * m4/quotearg.m4: New file.
36049
36050         Module quote.
36051         * m4/quote.m4: New file.
36052
36053         Module readutmp.
36054         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
36055
36056         Module sig2str.
36057         * m4/sig2str.m4: New file.
36058
36059         Other.
36060         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
36061         ulonglong.m4.
36062         * m4/intmax_t.m4: New file.
36063         * m4/d-type.m4: Indentation.
36064         * m4/jm-macros.m4: Update.
36065         * m4/prereq.m4 (jm_PREREQ): Update.
36066         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
36067         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
36068         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
36069         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
36070         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
36071         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
36072         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
36073         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
36074         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
36075         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
36076         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
36077         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
36078         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
36079         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
36080         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
36081         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
36082         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
36083         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
36084         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
36085
36086 2002-12-24  Bruno Haible  <bruno@clisp.org>
36087
36088         * MODULES.txt: Update according to m4/ changes.
36089
36090         Module gettext.
36091         * config.rpath: New file, from gettext-0.11.5.
36092
36093         * modules/*: New module descriptions.
36094         * gnulib-tool: New file.
36095         * MODULES.html.sh: New file.
36096
36097 2002-12-21  Karl Berry  <karl@gnu.org>
36098
36099         * doc/fdl.texi: update to version 1.2.
36100
36101 2002-12-19  Karl Berry  <karl@gnu.org>
36102
36103         * config/config.guess: update from prep.
36104
36105 2002-12-18  Bruno Haible  <bruno@clisp.org>
36106
36107         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
36108         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
36109
36110 2002-12-17  Bruno Haible  <bruno@clisp.org>
36111
36112         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
36113         stdlib.h, string.h.
36114
36115 2002-12-17  Bruno Haible  <bruno@clisp.org>
36116
36117         * lib/canon-host.c (strdup): Remove unused declaration.
36118
36119         * lib/fsusage.c: Include full_read.h.
36120         (get_fs_usage): Use full_read instead of safe_read.
36121
36122         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
36123
36124 2002-12-12  Karl Berry  <karl@gnu.org>
36125
36126         * config/config.guess: update from prep.
36127
36128 2002-12-11  Bruno Haible  <bruno@clisp.org>
36129
36130         * m4/setenv.m4: New file, from gettext-0.11.5.
36131
36132 2002-12-11  Bruno Haible  <bruno@clisp.org>
36133
36134         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
36135         not unsetenv().
36136         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
36137         modifications:
36138
36139         2002-12-11  Bruno Haible  <bruno@clisp.org>
36140
36141                 * setenv.c (alloca): Fall back to malloc.
36142                 (freea): New macro.
36143                 (setenv): Use freea() to free memory allocated with alloca().
36144
36145         2002-11-13  Bruno Haible  <bruno@clisp.org>
36146
36147                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
36148                 function declarations.
36149                 * unsetenv.c (unsetenv): Likewise.
36150
36151         2002-03-04  Bruno Haible  <bruno@clisp.org>
36152
36153                 Portability to AIX 4.3.3.
36154                 * unsetenv.c: New file, extracted from setenv.c.
36155                 * setenv.c: Move the unsetenv() function to unsetenv.c.
36156
36157         2001-12-20  Bruno Haible  <bruno@clisp.org>
36158
36159                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
36160                 use malloc instead. For SunOS 4.
36161
36162         2001-12-11  Bruno Haible  <bruno@clisp.org>
36163
36164                 * setenv.c: Declare alloca.
36165                 (compar_fn_t): New typedef.
36166                 (KNOWN_VALUE, STORE_VALUE): Use it.
36167
36168         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
36169         setenv.h.
36170
36171 2002-12-10  Paul Eggert  <eggert@twinsun.com>
36172
36173         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
36174         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
36175         Choose values that are less likely to collide with system fnmatch
36176         options.
36177         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
36178         defined (e.g., a pure POSIX system).
36179         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
36180         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
36181
36182 2002-12-06  Paul Eggert  <eggert@twinsun.com>
36183
36184         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
36185         a pain in practice to deal with generated m4 files.  This change
36186         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
36187
36188         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
36189         and jm-glibc-io.m4, as they are no longer a special case.
36190         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
36191         kludge and the auto-generation stuff.  Check only whether the
36192         functions are declared, not whether they exist, since older hosts
36193         that don't declare the functions can't use the optimization anyway.
36194
36195 2002-12-06  Jim Meyering  <jim@meyering.net>
36196
36197         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
36198
36199         Merge in changes from libc's misc/error.c, in preparation
36200         for the merge of gnulib's changes back into libc.
36201
36202         * lib/error.c (_): Define only if not already defined.
36203         Move definition to follow all #include directives.
36204         Include unlocked-io.h only if !_LIBC.
36205         [_LIBC]: Include <libio/libioP.h>.
36206         [USE_IN_LIBIO]: Include <libio/iolibio.h>
36207         (fflush): Tweak definition to use INTUSE.
36208         (putc): Define.
36209
36210 2002-12-05  Paul Eggert  <eggert@twinsun.com>
36211
36212         * lib/alloca.c [defined emacs]: Include "lisp.h".
36213         (xalloc_die) [defined emacs]: New macro.
36214         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
36215         [! defined emacs]: Include <xalloc.h>.
36216         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
36217         (pointer): Typedef to POINTER_TYPE *.
36218         (malloc): Remove decl; we now always use xmalloc.
36219         (alloca): Use old-style definition, since Emacs needs this.
36220         Check for arithmetic overflow when computing combined size.
36221
36222 2002-12-04  Paul Eggert  <eggert@twinsun.com>
36223
36224         Do not generate unlocked-io.h automatically, since it's easier to
36225         maintain it by hand.
36226
36227         * lib/unlocked-io.h: New file, from GNU diffutils,
36228         but with proper copyright notice and attribution.
36229         * lib/gen-uio: Remove.
36230         * lib/Makefile.am: Add copyright notice.
36231         (libfetish_a_SOURCES): Add unlocked-io.h.
36232         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
36233         (DISTCLEANFILES, io_functions): Remove macros.
36234         (EXTRA_DIST): Remove gen_uio.
36235         (unlocked-io.h): Remove rule.
36236
36237 2002-12-04  Jim Meyering  <jim@meyering.net>
36238
36239         Reflect the fact that stat.c and lstat.c are no longer generated.
36240         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
36241         (DISTCLEANFILES): Likewise.
36242         (EXTRA_DIST): Likewise.
36243         (all_local): Don't depend on stat.c or lstat.c.
36244         (stat.c, lstat.c): Remove rules.
36245         (EXTRA_DIST): Remove xstat.in.
36246
36247         * lib/xstat.in: Remove file.  Contents moved into stat.c.
36248         * lib/stat.c: New file.  Contents mostly from xstat.in.
36249         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
36250         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
36251
36252         * lib/safe-read.c: Rework so that it may serve to define safe_write,
36253         too.
36254         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
36255
36256 2002-12-03  Jim Meyering  <jim@meyering.net>
36257
36258         * lib/safe-read.c, safe-write.c: Change variable names and comments,
36259         but not semantics, to minimize the differences between these two files.
36260         (safe_read): Change comment to mention SAFE_READ_ERROR.
36261
36262         * lib/safe-read.c (IS_EINTR): Define.
36263         (safe_read): Use IS_EINTR in place of in-function cpp directives.
36264
36265 2002-12-02  Jim Meyering  <jim@meyering.net>
36266
36267         * lib/safe-read.c (EINTR): Define.
36268         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36269         (INT_MAX): Provide fallback.
36270         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
36271
36272         * lib/safe-read.h (SAFE_READ_ERROR): Define.
36273
36274 2002-12-02  Bruno Haible  <bruno@clisp.org>
36275
36276         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
36277         Define, taken from safe-read.c.
36278         (INT_MAX): Provide fallback.
36279         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
36280         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
36281
36282         * lib/safe-read.c (EINTR): Remove definition.
36283         (safe_read): Don't use EINTR if it is absent.
36284
36285 2002-12-01  Jim Meyering  <jim@meyering.net>
36286
36287         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
36288         zero.
36289         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
36290
36291 2002-11-27  Paul Eggert  <eggert@twinsun.com>
36292
36293         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
36294         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
36295         with `if (! (value < limit)) abort ();', for readability.
36296
36297 2002-11-26  Karl Berry  <karl@gnu.org>
36298
36299         * lib/strdup.c: copy from libc again, with jim's ok.
36300         * lib/.cppi-disable: re-add strdup.c
36301
36302 2002-11-25  Karl Berry  <karl@gnu.org>
36303
36304         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
36305         instead of "strtol.c".
36306
36307 2002-11-25  Karl Berry  <karl@gnu.org>
36308
36309         * config/install-sh: update from automake for variable quoting, $0 in
36310         error msgs, etc.
36311
36312         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
36313         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
36314         entry.
36315
36316 2002-11-25  Jim Meyering  <jim@meyering.net>
36317
36318         * lib/mktime.c: Sync from libc, now that it has the latest fix.
36319
36320 2002-11-24  Karl Berry  <karl@gnu.org>
36321
36322         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
36323         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
36324
36325 2002-11-24  Jim Meyering  <jim@meyering.net>
36326
36327         Update from coreutils:
36328
36329         * lib/mktime.c: Merge in changes from libc.
36330
36331         Avoid a link-time failure on some Linux systems.
36332         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
36333         (otherwise).
36334         (__mon_yday): Declare with the STATIC attribute.
36335         (__mktime_internal): Likewise.
36336         Based on a report from Greg Schafer.
36337
36338 2002-11-23  Jim Meyering  <jim@meyering.net>
36339
36340         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
36341         Use `unsigned', not `int', as type of index.
36342
36343         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
36344
36345         * lib/fsusage.c: Remove unneeded parentheses around operands of
36346         `defined'.
36347
36348 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36349
36350         * lib/quotearg.h: Allow multiple inclusion by surrounding with
36351         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
36352         so that we can be included first.
36353         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
36354         * lib/quotearg.c: Include quotearg.h immediately after config.h.
36355         No need to include stddef.h or sys/types.h any more.
36356         Surround local include files with "", not "<>".
36357         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
36358         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
36359         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
36360         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
36361         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
36362         (ISPRINT): Remove; no longer needed now that we assume C89.
36363
36364         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
36365         Preserve errno.
36366
36367         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
36368         quotearg_char): Use SIZE_MAX rather than
36369         (size_t) -1 when we are talking about "infinity".
36370
36371         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
36372
36373 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36374
36375         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
36376         hint that one should use `if (! x) abort ();' rather than `assert
36377         (x);', and anyway it's one less thing to worry about configuring.
36378         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
36379         hash_rehash, hash_insert): Use abort rather than assert.
36380
36381 2002-11-22  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/safe-read.h: Assume C89. Add comments.
36384         (safe_read): Change return type to size_t.
36385         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
36386         byte counts > SSIZE_MAX correctly.
36387         * lib/safe-write.h: New file.
36388         * lib/safe-write.c: New file.
36389         * lib/full-read.h: New file.
36390         * lib/full-read.c: New file.
36391         * lib/full-write.h: Assume C89. Add comments.
36392         * lib/full-write.c: Include safe-write.h.
36393         (full_write): Rewritten to use safe_write.
36394         Suggested by Jim Meyering and Paul Eggert.
36395
36396 2002-11-21  Jim Meyering  <jim@meyering.net>
36397
36398         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
36399
36400         Merge in changes from the coreutils.
36401
36402         2002-09-25  Paul Eggert  <eggert@twinsun.com>
36403         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
36404         <stdint.h>.
36405         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
36406         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
36407         int.  Work more efficiently if X is the same width as uintmax_t.
36408         Do not compare X to -1, to avoid bogus compiler warning.
36409         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
36410         Don't assume that f_frsize and f_bsize are the same type.
36411
36412         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
36413         warning on FreeBSD.
36414
36415         * lib/makepath.c (make_path): Restore umask *before* creating the final
36416         component.
36417         (make_path): Minor reformatting.
36418
36419         * lib/xmalloc.c: Adjust to work with new autoconf macros,
36420         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
36421         HAVE_MALLOC/HAVE_REALLOC.
36422
36423         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
36424         dummy ones.  At least on GNU/Linux systems, `auto' means something
36425         else.
36426         From Michael Stone.
36427
36428 2002-11-21  Bruno Haible  <bruno@clisp.org>
36429
36430         Remove case insensitive option matching.
36431         * lib/argmatch.h (argcasematch): Remove declaration.
36432         (ARGCASEMATCH): Remove macro.
36433         (__xargmatch_internal): Remove case_sensitive argument.
36434         (XARGMATCH): Update.
36435         (XARGCASEMATCH): Remove macro.
36436         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
36437         case_sensitive argument.
36438         (argcasematch): Remove function.
36439         (__xargmatch_internal): Remove case_sensitive argument.
36440         (main): Use XARGMATCH instead of XARGCASEMATCH.
36441
36442         * lib/xmalloc.c: Change compile-time error message. Add comment about
36443         required autoconf version.
36444
36445 2002-11-20  Paul Eggert  <eggert@twinsun.com>
36446
36447         Merge argmatch cleanups from Bison.  Assume C89.
36448
36449         * lib/argmatch.c: Include config.h here, not in argmatch.h.
36450         Include stdlib.h, for EXIT_FAILURE.
36451         Always include <string.h>, since we assume C89.
36452         (EXIT_FAILURE): Remove pre-C89 bug workaround.
36453         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
36454         Include <stddef.h> instead, since it's all we need for size_t.
36455         (PARAMS): Remove.  All uses removed.
36456         (ARRAY_CARDINALITY): Do not bother to #undef.
36457         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
36458         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36459         Remove unnecessary parentheses.
36460         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36461         Insert necessary parentheses.
36462         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
36463         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
36464
36465 2002-11-19  Bruno Haible  <bruno@clisp.org>
36466
36467         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
36468         * lib/mbswidth.h: Include <stddef.h>, for size_t.
36469
36470         * lib/mbswidth.h (PARAMS): Remove macro.
36471         (mbswidth, mbsnwidth): Use ANSI C function declarations.
36472         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
36473
36474         * lib/gcd.h (PARAMS): Remove macro.
36475         (gcd): Use ANSI C function declarations.
36476         * lib/gcd.c (gcd): Likewise.
36477
36478 2002-11-15  Bruno Haible  <bruno@clisp.org>
36479
36480         * lib/strcspn.c: Include <stddef.h>.
36481         (strcspn): Use ANSI C function declaration. Change return type to
36482         size_t. Use NULL.
36483         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
36484         (strpbrk): Use NULL.
36485         * lib/strpbrk.h (PARAMS): Remove macro.
36486         (strpbrk): Use ANSI C function declaration.
36487         * lib/strstr.c: Don't include <sys/types.h>.
36488         * lib/strstr.h (PARAMS): Remove macro.
36489         (strstr): Use ANSI C function declarations.
36490
36491 2002-11-14  Karl Berry  <karl@gnu.org>
36492
36493         * config/mkinstalldirs: `do' on separate line, instead of
36494         `for var; do'.
36495
36496 2002-11-06  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
36499         * lib/gcd.c (gcd): Likewise.
36500
36501 2002-11-05  Bruno Haible  <bruno@clisp.org>
36502
36503         * lib/gcd.h: New file, from gettext-0.11.5.
36504         * lib/gcd.c: New file, from gettext-0.11.5.
36505
36506 2002-11-05  Bruno Haible  <bruno@clisp.org>
36507
36508         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36509         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36510         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36511         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36512
36513         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
36514         <libintl.h>.
36515         * lib/makepath.c: Include gettext.h instead of <locale.h> and
36516         <libintl.h>.
36517
36518         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
36519         * lib/human.c: Include gettext.h instead of <libintl.h>.
36520         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
36521         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
36522         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
36523         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
36524         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
36525         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
36526         (textdomain): Remove definition.
36527         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
36528
36529         * lib/long-options.c: Remove include of <libintl.h> and definition of
36530         _.
36531         * lib/same.c: Remove include of <libintl.h> and definition of _.
36532
36533 2002-11-04  Owen Taylor  <otaylor@redhat.com>
36534
36535         * lib/config.charset: A few additions for Solaris.
36536
36537 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36538
36539         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
36540         * lib/localcharset.c (locale_charset): Declare as extern "C".
36541
36542 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36543
36544         * lib/config.charset: msdos in uk_UA uses CP1125.
36545
36546 2002-11-04  Bruno Haible  <bruno@clisp.org>
36547
36548         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
36549         * lib/strcase.h: New file, from GNU gettext-0.11.5.
36550         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
36551         * lib/strstr.h: New file, from GNU gettext-0.11.5.
36552         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
36553
36554 2002-11-04  Bruno Haible  <bruno@clisp.org>
36555
36556         * lib/localcharset.c (locale_charset): Don't return an empty string.
36557
36558 2002-11-04  Bruno Haible  <bruno@clisp.org>
36559
36560         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
36561         aliases.
36562
36563 2002-11-04  Bruno Haible  <bruno@clisp.org>
36564
36565         * lib/config.charset: Update for newest glibc. Add canonical names
36566         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
36567
36568 2002-11-04  Bruno Haible  <bruno@clisp.org>
36569
36570         * lib/config.charset: Add support for NetBSD.
36571
36572 2002-11-04  Bruno Haible  <bruno@clisp.org>
36573
36574         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
36575
36576 2002-11-01  Bruno Haible  <bruno@clisp.org>
36577
36578         * configure.in: Add AC_CONFIG_AUX_DIR call.
36579         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
36580         test/Makefile.
36581         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
36582
36583 2002-09-28  Karl Berry  <karl@gnu.org>
36584
36585         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
36586         installed automake until the next release, since changes have been
36587         made.
36588
36589 2002-09-25  Karl Berry  <karl@gnu.org>
36590
36591         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
36592         * lib/getopt*: copy from libc/posix.
36593         * lib/gettext.h: copy from gettext.
36594         * lib/.cppi-disable: add strdup.c, gettext.h.
36595
36596 2002-09-25  Karl Berry  <karl@gnu.org>
36597
36598         * config/srclist.txt: enable gettext.h check.
36599         * config/config.{guess,sub}: update from prep.
36600         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
36601                 from automake 1.6.3.
36602         See srclist*.
36603
36604 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
36605
36606         * regex.c (PATFETCH): Remove the translating fetch.
36607         (PATFETCH_RAW): Rename to PATFETCH.
36608         (set_image_of_range): New fun.
36609         (SET_RANGE_TABLE_WORK_AREA): Use it.
36610         (regex_compile): Don't translate the pattern chars so eagerly.
36611         Only do it when inserting an `exactn' bytecode or when handling
36612         a char-range.
36613         (mutually_exclusive_p): Avoid empty statement.
36614
36615 2002-07-06  Jim Meyering  <meyering@lucent.com>
36616
36617         * m4/README: Don't mention Makefile.am.in.
36618         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
36619
36620 2002-07-01  Jim Meyering  <meyering@lucent.com>
36621
36622         * lib/c-stack.c: Include sys/time.h.
36623         From Volker Borchert.
36624
36625 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36626
36627         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
36628
36629 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36630
36631         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
36632         New macro.  Use it uniformly instead of
36633         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
36634         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
36635         reported by Vin Shelton.
36636
36637 2002-06-22  Paul Eggert  <eggert@twinsun.com>
36638
36639         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
36640         Do not assume SA_SIGINFO behavior.
36641         Bug reported by Jim Meyering on NetBSD 1.5.2.
36642
36643 2002-06-22  Jim Meyering  <meyering@lucent.com>
36644
36645         * m4/c-stack.m4: New file, from diffutils-2.8.2.
36646         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
36647
36648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
36649         now that configure.ac uses AC_GNU_SOURCE.
36650         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
36651         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
36652
36653         Update to latest tools.  Suggestions from Paul Eggert.
36654         * m4/stdbool.m4: New file, from diffutils-2.8.2.
36655         * m4/gnu-source.m4: Update from diffutils-2.8.2.
36656         * m4/fnmatch.m4: Likewise.
36657         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
36658         to AC_HEADER_STDBOOL
36659
36660 2002-06-22  Jim Meyering  <meyering@lucent.com>
36661
36662         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
36663         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
36664
36665 2002-06-22  Jim Meyering  <meyering@lucent.com>
36666
36667         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
36668
36669         * lib/exitfail.c, exitfail.h: Likewise.
36670         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
36671
36672         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
36673         of fnmatch.h.
36674         (EXTRA_DIST): Add fnmatch_loop.c.
36675         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
36676
36677         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
36678         * lib/fnmatch.c: Update from diffutils-2.8.2.
36679         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
36680         * lib/fnmatch.h: Remove file.
36681
36682 2002-06-21  Jim Meyering  <meyering@lucent.com>
36683
36684         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
36685         * m4/mbrtowc.m4: Likewise.
36686
36687         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
36688         * m4/mbswidth.m4: Reflect name change:
36689         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
36690         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36691
36692         * m4/lib-link.m4: Update from gettext-0.11.2.
36693         * m4/gettext.m4: Likewise.
36694
36695         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
36696         From Alfred M. Szmidt.
36697
36698 2002-06-18  Paul Eggert  <eggert@twinsun.com>
36699
36700         * lib/file-type.h: Report an error if neither S_ISREG nor
36701         S_IFREG is defined, instead of using a test specific to glibc
36702         2.2.  This should be safe, since POSIX requires S_ISREG and
36703         Unix Version 7 had S_IFREG.  We don't need to check for
36704         <sys/types.h> since we don't use any symbols that it defines.
36705
36706 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
36707
36708         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
36709         $@-t, so that each temporary file name is unique and valid in the first
36710         8 characters, for operation under DOS.
36711
36712 2002-06-15  Paul Eggert  <eggert@twinsun.com>
36713
36714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
36715
36716 2002-06-15  Jim Meyering  <meyering@lucent.com>
36717
36718         Work even with DJGPP 2.03, which lacks support for symlinks.
36719         From Richard Dawe.
36720         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
36721         is defined.
36722         * lib/lchown.c (S_ISLNK): Likewise.
36723
36724 2002-06-15  Jim Meyering  <meyering@lucent.com>
36725
36726         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
36727         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
36728         have been included before this file.
36729
36730 2002-06-14  Jim Meyering  <meyering@lucent.com>
36731
36732         * lib/file-type.h: Use the version from diffutils-2.8.2.
36733         * lib/file-type.c: Likewise.
36734
36735 2002-06-07  Jim Meyering  <meyering@lucent.com>
36736
36737         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
36738         They're needed at least for NetBSD 1.5.2.
36739         ($statxfs_includes): Include those same headers.
36740         ($statxfs_includes): Include sys/vfs.h if available.
36741         ($statxfs_includes): Likewise for sys/statvfs.h.
36742         Check for the following members in both structs statfs and statvfs:
36743         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
36744
36745 2002-06-01  Jim Meyering  <meyering@lucent.com>
36746
36747         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
36748         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
36749
36750 2002-05-28  Jim Meyering  <meyering@lucent.com>
36751
36752         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
36753         Reported by Volker Borchert.
36754
36755 2002-05-27  Jim Meyering  <meyering@lucent.com>
36756
36757         Fix a problem seen only on nonconforming systems whereby ls.c's
36758         use of localtime, and then of gettimeofday would cause trouble:
36759         the localtime call used to initialize rpl_gettimeofday's save
36760         mechanism would clobber ls's current local time information so
36761         that in any long listing the first file would always be listed
36762         with date 1970-01-01.  Analysis by Volker Borchert.
36763
36764         * lib/gettimeofday.c (localtime): Undefine.
36765         (rpl_localtime): New function.
36766
36767 2002-05-27  Jim Meyering  <meyering@lucent.com>
36768
36769         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
36770         localtime.
36771
36772         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
36773         use the replacement function; it wouldn't resolve at link time.
36774         Reported by Volker Borchert.
36775
36776 2002-05-22  Jim Meyering  <meyering@lucent.com>
36777
36778         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
36779         file-type.h.
36780         * lib/file-type.h: New file.
36781         * lib/file-type.c (file_type): New file/function.  Extracted from
36782         diffutils.
36783
36784 2002-04-30  Jim Meyering  <meyering@lucent.com>
36785
36786         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
36787
36788 2002-04-29  Paul Eggert  <eggert@twinsun.com>
36789
36790         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
36791
36792 2002-04-29  Paul Eggert  <eggert@twinsun.com>
36793
36794         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
36795         Do not check for alloca.h (no longer used) or stdbool.h (was never
36796         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
36797
36798 2002-04-29  Paul Eggert  <eggert@twinsun.com>
36799
36800         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
36801
36802 2002-04-29  Jim Meyering  <meyering@lucent.com>
36803
36804         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
36805         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
36806         Use AC_FUNC_STRNLEN here instead.
36807
36808         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
36809         With autoconf-2.53a, it's part of AC_PROG_CC.
36810
36811 2002-04-28  Paul Eggert  <eggert@twinsun.com>
36812
36813         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
36814         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
36815
36816 2002-04-28  Paul Eggert  <eggert@twinsun.com>
36817
36818         * lib/sig2str.h, lib/sig2str.c: New files.
36819         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
36820
36821 2002-04-28  Paul Eggert  <eggert@twinsun.com>
36822
36823         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
36824         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
36825         of 127, since 64 is the largest conceivable number for ancient
36826         nonstandard hosts.
36827         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
36828
36829 2002-04-28  Jim Meyering  <meyering@lucent.com>
36830
36831         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
36832
36833 2002-04-24  Jim Meyering  <meyering@lucent.com>
36834
36835         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
36836         (jm_PREREQ): Use it.
36837
36838         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
36839         mach/mach.h fcntl.h.
36840         Check for this function: setlocale.
36841
36842 2002-04-24  Jim Meyering  <meyering@lucent.com>
36843
36844         * lib/gettext.h: New file, from Gettext.
36845         * lib/Makefile.am (INCLUDES): Remove -I../intl.
36846         (libfetish_a_SOURCES): Add gettext.h.
36847
36848 2002-04-16  Jim Meyering  <meyering@lucent.com>
36849
36850         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
36851         ut_pid, ut_id, ut_exit.
36852
36853 2002-04-16  Jim Meyering  <meyering@lucent.com>
36854
36855         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
36856         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
36857         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
36858
36859 2002-04-12  Jim Meyering  <meyering@lucent.com>
36860
36861         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
36862         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
36863         existence of the getmntinfo function.  Needed for Darwin 5.3.
36864
36865         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
36866         This is necessary at least on Darwin 5.3.
36867
36868         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
36869         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
36870         strnlen.o in the library, and that makes some versions of ranlib
36871         object.
36872
36873 2002-04-12  Jim Meyering  <meyering@lucent.com>
36874
36875         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
36876
36877 2002-04-09  Jim Meyering  <meyering@lucent.com>
36878
36879         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
36880         to be more precise.  Rather than saying we're checking whether the
36881         function `works', say what we're testing.
36882         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
36883         Reported by Bruno Haible.
36884
36885 2002-03-10  Jim Meyering  <meyering@lucent.com>
36886
36887         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
36888         Suggestion from Santiago Vila.
36889
36890 2002-03-08  Jim Meyering  <meyering@lucent.com>
36891
36892         * lib/rename.c: Mention that this wrapper is needed also on
36893         mips-dec-ultrix4.4 systems.
36894
36895 2002-03-02  Jim Meyering  <meyering@lucent.com>
36896
36897         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
36898         not HAVE_CLOCK_SETTIME.
36899
36900 2002-02-27  Paul Eggert  <eggert@twinsun.com>
36901
36902         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
36903         Check for clock_settime.
36904
36905 2002-02-27  Paul Eggert  <eggert@twinsun.com>
36906
36907         * lib/nanosleep.h: Rename to....
36908         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
36909
36910         * lib/gettime.c: New file.
36911         * lib/settime.c: New file.
36912         * lib/stime.c: Remove.
36913
36914         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
36915         timespec.h.  Remove nanosleep.h.
36916
36917 2002-02-25  Paul Eggert  <eggert@twinsun.com>
36918
36919         * m4/acl.m4: New file.
36920         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
36921         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
36922
36923 2002-02-25  Paul Eggert  <eggert@twinsun.com>
36924
36925         * lib/acl.c, lib/acl.h: New files.
36926         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
36927
36928 2002-02-24  Jim Meyering  <meyering@lucent.com>
36929
36930         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
36931         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
36932         cause trouble.  Reported by Nelson Beebe.
36933
36934 2002-02-23  Paul Eggert  <eggert@twinsun.com>
36935
36936         * lib/path-concat.c (xpath_concat): Reorder code to pacify
36937         compilers that don't know that xalloc_die never returns.
36938
36939 2002-02-20  Jim Meyering  <meyering@lucent.com>
36940
36941         * lib/getdate.c: Regenerate using bison-1.33.
36942
36943 2002-02-17  Jim Meyering  <meyering@lucent.com>
36944
36945         * config/config.guess (main): Don't use `head -1'; it's no longer
36946         portable. Use `sed 1q' instead.
36947
36948 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
36949
36950         * m4/codeset.m4: Upgrade to gettext-0.11.
36951         * m4/gettext.m4: Upgrade to gettext-0.11.
36952         * m4/glibc21.m4: Upgrade to gettext-0.11.
36953         * m4/iconv.m4: Upgrade to gettext-0.11.
36954         * m4/isc-posix.m4: Upgrade to gettext-0.11.
36955         * m4/lcmessage.m4: Upgrade to gettext-0.11.
36956         * m4/lib-ld.m4: New file, from gettext-0.11.
36957         * m4/lib-link.m4: New file, from gettext-0.11.
36958         * m4/lib-prefix.m4: New file, from gettext-0.11.
36959         * m4/progtest.m4: Upgrade to gettext-0.11.
36960
36961 2002-02-15  Paul Eggert  <eggert@twinsun.com>
36962
36963         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
36964         (jm_PREREQ): Use it.
36965
36966 2002-02-15  Paul Eggert  <eggert@twinsun.com>
36967
36968         * lib/posixver.c, lib/posixver.h: New files.
36969         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
36970
36971 2002-02-02  Paul Eggert  <eggert@twinsun.com>
36972             Bruno Haible  <bruno@clisp.org>
36973
36974         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
36975         (fwrite_success_callback): New declaration.
36976         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
36977         print_unicode_char. Call failure callback instead of error.
36978         (fwrite_success_callback): New function.
36979         (exit_failure_callback): New function.
36980         (fallback_failure_callback): New function.
36981         (print_unicode_char): Call unicode_to_mb.
36982
36983 2002-01-26  Jim Meyering  <meyering@lucent.com>
36984
36985         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
36986         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
36987
36988 2002-01-26  Jim Meyering  <meyering@lucent.com>
36989
36990         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
36991
36992 2002-01-22  Paul Eggert  <eggert@twinsun.com>
36993
36994         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
36995
36996 2002-01-22  Jim Meyering  <meyering@lucent.com>
36997
36998         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
36999         Otherwise, some versions of automake would omit the rule that makes
37000         Makefile from Makefile.in.
37001
37002 2002-01-21  Paul Eggert  <eggert@twinsun.com>
37003
37004         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
37005         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37006         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
37007         (memcoll): Set errno to zero if there is no error.
37008
37009         * lib/quotearg.c (quotearg_buffer_restyled):
37010         Fix bug with quoting buffers containing NUL when backslashing escapes.
37011         This bug was exposed by the other changes in this patch.
37012         (quotearg_n_options): New arg ARGSIZE.
37013         All callers changed.
37014         (quoting_options_from_style): New function.
37015         (quotearg_n_style): Use it.
37016         (quotearg_n_style_mem): New function.
37017
37018         * lib/quotearg.h (quotearg_n_style_mem): New function.
37019
37020 2002-01-19  Jim Meyering  <meyering@lucent.com>
37021
37022         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
37023         Remove useless quotes: DF_PROG="df".
37024         * m4/strnlen.m4: New file.
37025
37026 2002-01-16  Paul Eggert  <eggert@twinsun.com>
37027
37028         * lib/backupfile.c (ISDIGIT): Comment fix.
37029         * lib/getdate.y (ISDIGIT): Likewise.
37030         * lib/posixtm.c (ISDIGIT, year): Likewise.
37031         * lib/strverscmp.c (ISDIGIT): Likewise.
37032         * lib/userspec.c (ISDIGIT): Likewise.
37033
37034 2002-01-16  Jim Meyering  <meyering@lucent.com>
37035
37036         * lib/getdate.y: Add three semicolons, each just before a closing
37037         brace. Bison (as of version 1.31) no longer papers over that mistake.
37038
37039 2002-01-05  Jim Meyering  <meyering@lucent.com>
37040
37041         * lib/version-etc.c (version_etc_copyright): Update copyright year.
37042
37043 2001-12-19  Paul Eggert  <eggert@twinsun.com>
37044
37045         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
37046         not silently exit merely because the output buffer happens to
37047         have nothing pending.
37048
37049 2001-12-18  Paul Eggert  <eggert@twinsun.com>
37050
37051         See the big note in ../ChangeLog.
37052         * lib/human.c (suffixes): Prefer K to k for 1024.
37053         (generate_suffix_backwards): New function.
37054         (human_readable_inexact): Use it.
37055         * lib/xstrtol.c (__xstrtol): If there is no number but there
37056         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
37057         Accept 'K' as well as 'k'.
37058
37059 2001-12-15  Jim Meyering  <meyering@lucent.com>
37060
37061         * lib/regex.h (__restrict_arr): Update from libc.
37062
37063         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
37064         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
37065         (STREQ): Define.
37066
37067 2001-12-14  Jim Meyering  <meyering@lucent.com>
37068
37069         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
37070         Suggestion from Bruno Haible.
37071
37072 2001-12-10  Jim Meyering  <meyering@lucent.com>
37073
37074         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
37075         xrealloc, Instead, include "xalloc.h".
37076         (initbuffer): Don't cast xmalloc return value to char*.
37077         (readline): Reword comment.
37078         Don't cast xrealloc return value to char*
37079         Return NULL, not 0.
37080
37081 2001-12-09  Jim Meyering  <meyering@lucent.com>
37082
37083         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
37084         about `signed and unsigned type in conditional expression'.
37085         * lib/posixtm.c (posix_time_parse): Likewise.
37086
37087         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
37088
37089         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
37090         to avoid a pedantic warning.
37091
37092         * lib/getstr.c: Don't include assert.h.
37093         (getstr): Remove warning-evoking assertions.
37094         Return -1 if offset parameter is out of bounds.
37095         Change the type of a local from int to size_t.
37096
37097         * lib/strftime.c (my_strftime_localtime_r): Include this function
37098         definition in the `#if ! HAVE_TM_GMTOFF' block.
37099
37100         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
37101         Include xalloc.h instead.
37102
37103 2001-12-02  Jim Meyering  <meyering@lucent.com>
37104
37105         * lib/tempname.c: Don't declare getenv, thus reverting the change of
37106         2001-11-18.  It's no longer necessary, now that stdlib.h is always
37107         included.
37108
37109         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
37110         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
37111
37112 2001-11-30  Akim Demaille  <akim@epita.fr>
37113
37114         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
37115         before being defined.
37116
37117 2001-11-27  Paul Eggert  <eggert@twinsun.com>
37118
37119         * lib/quotearg.h (quotearg_n, quotearg_n_style):
37120         First arg is int, not unsigned.
37121         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
37122         (SIZE_MAX, UINT_MAX): New macros.
37123         (quotearg_n_options): Abort if N is negative.
37124         Avoid overflow check on hosts where size_t is 64 bits and int
37125         is 32 bits, as overflow is impossible there.
37126         Fix off-by-one typo that caused unnecessary reallocation.
37127
37128 2001-11-27  Jim Meyering  <meyering@lucent.com>
37129
37130         * lib/tempname.c: Merge with version from libc.
37131         * lib/regex.c: Likewise.
37132
37133         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
37134         systems for which STDC_HEADERS is 0, it was not included, resulting in
37135         a warning about an integer-to-pointer conversion problem with getenv.
37136         Reported by Volker Borchert.
37137
37138 2001-11-26  Jim Meyering  <meyering@lucent.com>
37139
37140         * lib/gtod.h: Remove file.
37141         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
37142         * lib/gettimeofday.c: Don't include gtod.h.
37143         (GTOD_init): Remove function.
37144         (rpl_gettimeofday): Do its job here instead, rather than aborting.
37145         Suggestion from Volker Borchert.
37146
37147 2001-11-23  Jim Meyering  <meyering@lucent.com>
37148
37149         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
37150         it.
37151         * lib/hash.c (struct hash_table): Define it here instead.
37152
37153 2001-11-22  Jim Meyering  <meyering@lucent.com>
37154
37155         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
37156
37157 2001-11-20  Jim Meyering  <meyering@lucent.com>
37158
37159         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
37160         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
37161
37162 2001-11-19  Jim Meyering  <meyering@lucent.com>
37163
37164         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
37165         directory.  Use "conftestXXXXXX" as the template.
37166         Suggestion from Paul Eggert.
37167
37168         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
37169         immediately, so the test doesn't mistakenly hit the max-open-files
37170         limit.
37171
37172 2001-11-18  Paul Eggert  <eggert@twinsun.com>
37173
37174         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
37175         (TEMPORARIES): New macro.
37176         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
37177         removes an artificial limitation (e.g. HP-UX 10.20, where
37178         TMP_MAX is 17576).
37179
37180 2001-11-18  Jim Meyering  <meyering@lucent.com>
37181
37182         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
37183
37184 2001-11-18  Jim Meyering  <meyering@lucent.com>
37185
37186         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
37187         on SunOS 4.
37188
37189         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
37190         files will be created before anything else.
37191
37192 2001-11-17  Paul Eggert  <eggert@twinsun.com>
37193
37194         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
37195         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
37196
37197 2001-11-17  Jim Meyering  <meyering@lucent.com>
37198
37199         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
37200         Prompted by a report from Bob Proulx.
37201
37202         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
37203         Instead, require UTILS_FUNC_MKSTEMP.
37204
37205 2001-11-17  Jim Meyering  <meyering@lucent.com>
37206
37207         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
37208         Now, that's done as part of AC_FUNC_STRTOD.
37209
37210 2001-11-17  Jim Meyering  <meyering@lucent.com>
37211
37212         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
37213         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
37214         rather than group writable.  Patch by Juan F. Codagnone.
37215
37216         * lib/readtokens.c: Remove explicit declarations of xmalloc and
37217         xrealloc, Instead, include "xalloc.h".
37218
37219         * lib/mountlist.c: Include unlocked-io.h after all system headers.
37220         Remove explicit declarations of xmalloc, xrealloc,
37221         and xstrdup.  Instead, include "xalloc.h".
37222
37223         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
37224         unlocked-io.h.
37225         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
37226         Likewise.
37227         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
37228
37229         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
37230         Reported by Padraig Brady.
37231
37232         * lib/mkstemp.c: #undef mkstemp.
37233         Include config.h.
37234         (rpl_mkstemp): Rename from mkstemp.
37235         Protoize.
37236
37237 2001-11-16  Jim Meyering  <meyering@lucent.com>
37238
37239         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
37240         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
37241         determine the amount of total physical memory, use pstat_getstatic.
37242         HPUX-11 doesn't define _SC_PHYS_PAGES.
37243         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
37244         If sysconf couldn't be used to determine the amount of available
37245         physical memory, use both pstat_getstatic and pstat_getdynamic.
37246         Based on a patch from Bob Proulx.
37247
37248 2001-11-10  Jim Meyering  <meyering@lucent.com>
37249
37250         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
37251         (jm_PREREQ): Use it.
37252
37253 2001-11-09  Jim Meyering  <meyering@lucent.com>
37254
37255         * m4/jm-macros.m4: Require autoconf-2.52f.
37256         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
37257         Use these AC_-prefixed names, not the AM_-prefixed ones.
37258
37259         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
37260
37261 2001-11-05  Jim Meyering  <meyering@lucent.com>
37262
37263         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
37264
37265 2001-11-04  Jim Meyering  <meyering@lucent.com>
37266
37267         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
37268         $DEFS.
37269
37270 2001-11-03  Jim Meyering  <meyering@lucent.com>
37271
37272         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
37273         of AC_DEFUN.
37274
37275         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
37276         know the name of the variable in the macro definition.
37277
37278 2001-11-03  Jim Meyering  <meyering@lucent.com>
37279
37280         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
37281         in argmatch_to_argument call.
37282
37283         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
37284         argument.
37285
37286         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
37287         e.g., a fault due to an attempt to free a NULL pointer.
37288
37289 2001-11-01  Jim Meyering  <meyering@lucent.com>
37290
37291         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
37292         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
37293
37294 2001-11-01  Jim Meyering  <meyering@lucent.com>
37295
37296         * lib/dirfd.c, lib/dirfd.h: New files.
37297         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
37298
37299         * lib/hash.c (hash_print) [TESTING]: Clean up.
37300
37301 2001-10-22  Paul Eggert  <eggert@twinsun.com>
37302
37303         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
37304         to avoid a warning if -Wall.
37305
37306 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
37307
37308         * README: New file
37309         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
37310         (per RMS's instructions, this is now the canonical source)
37311         * lgpl/, gpl/: New directories.
37312
37313 2001-10-21  Paul Eggert  <eggert@twinsun.com>
37314
37315         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
37316
37317 2001-10-21  Jim Meyering  <meyering@lucent.com>
37318
37319         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
37320         this code would end up calling gettext even in packages built
37321         with --disable-nls.
37322         * lib/getopt.c (_): Likewise.
37323         * lib/regex.c (_): Likewise.
37324
37325 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37326
37327         * m4/error.m4 (jm_PREREQ_ERROR):
37328         Do not invoke AC_CHECK_FUNCS with strerror_r, as
37329         AC_FUNC_STRERROR_R does that.
37330         Check for strerror declaration.
37331
37332         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
37333         are supposed to have them these days.
37334         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
37335         Merge changes from latest Autoconf CVS.
37336         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
37337         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
37338         POSIX decided to standardize on the int flavor of strerror_r.
37339
37340 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37341
37342         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
37343         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
37344         Use strerror_r that is only a macro, even if it is not a function.
37345         (strerror): Check for HAVE_DECL_STRERROR before declaring.
37346         (private_strerror): Use prototypes, not old-style function definition.
37347         (print_errno_message): New function.
37348         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
37349         char*-flavored one.
37350         (error_tail, error, error_at_line): Use it.
37351
37352 2001-10-11  Jim Meyering  <meyering@lucent.com>
37353
37354         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
37355         and quote_n (1, ... to avoid clobbering a buffer.
37356
37357 2001-10-05  Jim Meyering  <meyering@lucent.com>
37358
37359         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
37360         hash-pjw.h.
37361         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
37362         * lib/hash-pjw.h: New file.
37363
37364 2001-09-30  Jim Meyering  <meyering@lucent.com>
37365
37366         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
37367         `struct fsstat' has the `f_fstypename' member.
37368         Use that to define FS_TYPE, which is now used to make
37369         the getfsstat link test tighter.
37370
37371 2001-09-30  Jim Meyering  <meyering@lucent.com>
37372
37373         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
37374         Include <sys/ucred.h>, for Apple Darwin.
37375         Include sys/mount.h and sys/fs_types.h only if available.
37376         (FS_TYPE): Define.
37377         (read_filesystem_list): Use FS_TYPE.
37378
37379 2001-09-29  Paul Eggert  <eggert@twinsun.com>
37380
37381         * lib/exclude.c (excluded_filename): 0 -> false, since it's
37382         a boolean context.
37383
37384 2001-09-29  Jim Meyering  <meyering@lucent.com>
37385
37386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37387         [one-argument getmntent function]): Include stdio.h before mntent.h.
37388         SunOS 4.1.x needs it for the declaration of `FILE'.
37389         Patch by Volker Borchert.
37390
37391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37392         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
37393         sys/fs_types.h, and make the link-test for getfsstat guard #include
37394         directives with appropriate #if HAVE_*_H tests so that we can
37395         detect getfsstat on Apple Darwin1.3.7 systems.
37396         Reported by Nelson Beebe.
37397         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
37398
37399 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37400
37401         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37402         #defines strtoimax.  Also treat the other strto* functions
37403         like strtoimax.
37404
37405         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37406         Check for strtoul and strtoumax,
37407         as those declarations are made even in the signed case.
37408         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
37409         Likewise, for strtol and strtoimax.
37410
37411 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37412
37413         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37414         #defines strtoimax.  Also treat the other strto* functions
37415         like strtoimax.
37416
37417         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
37418         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
37419         (strtoimax, strtoumax): Do not declare if already defined as a macro.
37420
37421 2001-09-26  Jim Meyering  <meyering@lucent.com>
37422
37423         Most macros in unlocked-io.h had the wrong number of arguments.
37424         * lib/gen-uio: New script.
37425         (USE_UNLOCKED_IO): Define to 1 if not already defined.
37426         * lib/unlocked-io.hin: Remove file.
37427         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
37428         rather than trying to embed it here.
37429         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
37430         Reported by Padraig Brady.
37431
37432 2001-09-25  Volker Borchert  <bt@teknon.de>
37433
37434         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
37435         `result'.
37436
37437 2001-09-24  Jim Meyering  <meyering@lucent.com>
37438
37439         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
37440
37441 2001-09-23  Jim Meyering  <meyering@lucent.com>
37442
37443         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
37444         instead of the mere test for existence of mntent.h.  The latter
37445         would get a false-positive on AIX 3.4 systems.
37446         In the outer getmntent if-block, don't die if neither of the getmntent
37447         tests succeeds.  Instead, just fall through and continue with the
37448         remaining tests.
37449
37450 2001-09-23  Jim Meyering  <meyering@lucent.com>
37451
37452         * lib/mountlist.c: Remove useless parentheses in #if directives.
37453         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
37454         the deprecated MOUNTED symbol is no longer defined in mntent.h.
37455
37456 2001-09-22  Jim Meyering  <meyering@lucent.com>
37457
37458         * m4/gettext.m4: New file.  From gettext.
37459         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
37460         * m4/progtest.m4: Likewise
37461         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
37462         * m4/glibc21.m4: Likewise.
37463
37464         * m4/libintl.m4: Remove.  No longer used.
37465
37466 2001-09-22  Jim Meyering  <meyering@lucent.com>
37467
37468         * lib/localcharset.c: Update from latest gettext.
37469         * lib/config.charset: Likewise.
37470
37471 2001-09-20  Jim Meyering  <meyering@lucent.com>
37472
37473         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
37474         strtoimax.
37475         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
37476         strtoumax.
37477
37478 2001-09-20  Jim Meyering  <meyering@lucent.com>
37479
37480         * lib/xstrtol.c (strtoimax): Guard declaration with
37481         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
37482         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
37483         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
37484         (strtoumax): Likewise, for completeness (it wasn't necessary).
37485
37486 2001-09-17  Paul Eggert  <eggert@twinsun.com>
37487
37488         * lib/strtoimax.c (HAVE_LONG_LONG):
37489         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
37490         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
37491         to work around bug in IBM C compiler.
37492
37493 2001-09-17  Jim Meyering  <meyering@lucent.com>
37494
37495         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
37496         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
37497         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
37498         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
37499         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
37500         whenever the right hand side need not be expanded by the shell.
37501
37502 2001-09-16  Paul Eggert  <eggert@twinsun.com>
37503
37504         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
37505         library.  It's not correct, as some older glibcs are buggy.
37506         fnmatch wasn't fixed until glibc 2.2.
37507
37508         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
37509         special shell magic here.
37510
37511 2001-09-16  Jim Meyering  <meyering@lucent.com>
37512
37513         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
37514         * m4/jm-macros.m4: Require it.
37515
37516 2001-09-16  Jim Meyering  <meyering@lucent.com>
37517
37518         * lib/mkdir.c: New file.
37519
37520 2001-09-15  Jim Meyering  <meyering@lucent.com>
37521
37522         * m4/jm-macros.m4: Check for help2man.
37523
37524 2001-09-11  Jim Meyering  <meyering@lucent.com>
37525
37526         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
37527         The body, by Paul Eggert, was moved here from configure.in.
37528         * m4/jm-macros.m4: Require UTILS_HOST_OS.
37529
37530 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37531
37532         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
37533         (jm_PREREQ): Use it.
37534
37535 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37536
37537         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
37538         Use ssize_t, not int, to store result of readlink.
37539         Check for ssize_t overflow as well as size_t overflow,
37540         as POSIX says the result of readlink is implementation-defined
37541         when ssize_t overflows.
37542         Remove unnecessary cast to char*.
37543         Use free+malloc instead of realloc, as the storage doesn't need
37544         to be preserved and it's clearer and can be more efficient that way.
37545         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
37546         * lib/xreadlink.h (xreadlink): Update prototype.
37547
37548 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37549
37550         * lib/xgetcwd.c: Revert some of the previous change; intead,
37551         fix the HAVE_GETCWD_NULL code to behave more like the
37552         !HAVE_GETCWD_NULL code used to.
37553
37554         Include "xalloc.h".
37555         (xgetcwd): Do not return NULL when memory is exhausted; instead,
37556         invoke xalloc_die.
37557
37558 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37559
37560         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
37561         sys/param.h, as pathmax.h includes them.
37562
37563 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37564
37565         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
37566         (jm_PREREQ_XGETCWD): New macro.
37567
37568         * m4/getcwd.m4: New file.
37569
37570 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37571
37572         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
37573         like the HAVE_GETCWD_NULL code.
37574         Include pathmax.h if not HAVE_GETCWD.
37575         Do not include xalloc.h.
37576         (INITIAL_BUFFER_SIZE): New symbol.
37577         Do not use xmalloc / xrealloc, since the caller is responsible for
37578         handling errors.  Preserve errno around `free' during failure.
37579         Do not overrun buffer when using getwd.
37580
37581 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37582
37583         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
37584         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
37585         getcwd (NULL, 0).
37586
37587 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37588
37589         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
37590         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
37591         spotted by Jim Meyering.
37592
37593 2001-09-03  Jim Meyering  <meyering@lucent.com>
37594
37595         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
37596         failure.
37597
37598 2001-09-02  Jim Meyering  <meyering@lucent.com>
37599
37600         * lib/error.c: Update from GNU libc.
37601
37602 2001-09-01  Jim Meyering  <meyering@lucent.com>
37603
37604         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
37605         Used by df.
37606
37607 2001-09-01  Jim Meyering  <meyering@lucent.com>
37608
37609         * lib/xreadlink.c: New file.
37610         * lib/xreadlink.h: New file.
37611         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
37612         xreadlink.h.
37613
37614         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
37615         doesn't conflict with sparc Solaris 7's definition in
37616         /usr/include/sys/int_types.h.
37617
37618         * lib/exclude.c: Use `""', not `<>' to #include non-system header
37619         files.
37620         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
37621         and strncasecmp as r-values.  Unixware didn't have declarations.
37622
37623 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37624
37625         * lib/xstrtol.h: Add copyright notice.
37626         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
37627         LONGINT_INVALID_SUFFIX_CHAR.
37628
37629 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37630
37631         * lib/xstrtol.c (strtoimax): New decl.
37632
37633 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37634
37635         * lib/xgetcwd.c: Don't include pathmax.h.
37636         Include stdlib.h and unistd.h if available.
37637         Include xalloc.h.
37638         (xmalloc, xstrdup, free): Remove decls.
37639         (xgetcwd): Don't assume sizes fit in unsigned.
37640         Check for overflow when computing sizes.
37641         Simplify reallocation code.
37642
37643 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37644
37645         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
37646         a directory's st_size can have an arbitrary value, so the old
37647         usage could waste an arbitrary amount of memory.  All uses
37648         changed.
37649         * lib/savedir.h: Update prototype.
37650
37651 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37652
37653         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
37654
37655         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
37656         old strtoimax.c.
37657
37658         Also, make the following further changes to make this file's
37659         configuration more similar to that of strtol.c:
37660         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
37661         (strtoumax, uintmax_t, strtoull, strtol): Remove.
37662         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
37663         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
37664         changed to signed values.
37665
37666         And make the following changes as well:
37667         Fix copyright notice, as 1999 was missing.
37668         (verify): New macro.
37669         (strtoimax): Check sizes at compile-time, not run-time.
37670         Prefer strtol to strtoll if both work.
37671         (main): Remove; it was not that useful and was a pain to maintain.
37672
37673         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
37674
37675 2001-08-31  Jim Meyering  <meyering@lucent.com>
37676
37677         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
37678         Use an initial, malloc'd, buffer of length 128 rather than
37679         a statically allocated one of length 1024.
37680
37681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37682
37683         Simplify code, partly by assuming autoconf 2.52 semantics.
37684
37685         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
37686
37687         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
37688         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
37689         All uses removed.
37690         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
37691         Move AC_REQUIRE to next-to-top level, to avoid confusion.
37692         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
37693         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
37694         jm_AC_HEADER_INTTYPES_H.
37695         * m4/jm-macros.m4 (jm_MACROS): Likewise.
37696
37697         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
37698
37699         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37700         Quote first arg of AC_DEFUN.
37701         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
37702         since they are needed to parse the include file even if we need
37703         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
37704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
37705         but with opposite signedness.
37706
37707 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37708
37709         Merge 'exclude' changes from tar 1.13.22.
37710         This fixes one or two unlikely storage allocation overflow bugs,
37711         but doesn't change user-visible behavior otherwise.
37712
37713 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37714
37715         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
37716         (jm_PREREQ_EXCLUDE): New macro.
37717
37718 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37719
37720         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
37721         tm to be declared.
37722
37723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37724
37725         * lib/hash.c: Remove '2001' from copyright notice.
37726
37727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37728
37729         * lib/full-write.h: New file.
37730         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
37731         * lib/full-write.c: Correct credits, as cccp.c no longer
37732         exists and anyway it was so heavily changed from the old cccp
37733         code as to be unrecognizable.  Include full-write.h.
37734         (full_write) Return size_t, with short writes meaning failure.
37735         All callers changed.  This fixes a bug with large buffers
37736         on 64-bit hosts.
37737         * lib/utime.c: Include full-write.h.
37738
37739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37740
37741         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
37742         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
37743         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
37744         Include if available.
37745         (<xalloc.h>): Include
37746         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
37747         (verify): New macro.  Use it to verify that EXCLUDE macros do not
37748         collide with FNM macros.
37749         (struct patopts): New struct.
37750         (struct exclude): Use it, as exclude patterns now come with options.
37751         (new_exclude): Support above changes.
37752         (new_exclude, add_exclude_file):
37753         Initial size must now be a power of two to simplify overflow checking.
37754         (free_exclude, fnmatch_no_wildcards): New function.
37755         (excluded_filename): No longer requires options arg, as the options
37756         are determined by add_exclude.  Now returns bool, not int.
37757         (excluded_filename, add_exclude):
37758         Add support for the fancy new exclusion options.
37759         (add_exclude, add_exclude_file): Now takes int options arg.
37760         Check for arithmetic overflow when computing sizes.
37761         (add_exclude_file): xrealloc might modify errno, so don't
37762         realloc until after errno might be used.
37763
37764         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
37765         New macros.
37766         (free_exclude): New decl.
37767         (add_exclude, add_exclude_file): Now takes int options arg.
37768         (excluded_filename): No longer requires options arg, as the options
37769         are determined by add_exclude.  Now returns bool, not int.
37770
37771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37772
37773         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
37774
37775 2001-08-27  Jim Meyering  <meyering@lucent.com>
37776
37777         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
37778
37779         * lib/version-etc.c (N_): Remove definition.
37780         Revert most of last change.
37781         Instead, simply don't mark the `Copyright...' string for translation.
37782         Based on advice from Paul Eggert.
37783
37784         * lib/strtoxmax.c: Tweak comment.
37785
37786 2001-08-26  Jim Meyering  <meyering@lucent.com>
37787
37788         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
37789
37790         * m4/xstrtoimax.m4: New file.
37791         * m4/xstrtoumax.m4: Add comments explaining why we
37792         AC_REPLACE_FUNCS(strtol).
37793
37794 2001-08-26  Jim Meyering  <meyering@lucent.com>
37795
37796         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
37797         of copyright with `%s' so translators don't get an untranslated
37798         message in 2002.
37799         (COPYRIGHT_YEAR): Define.
37800         (version_etc): Use fprintf rather than fputs.
37801         Suggestion from Ulrich Drepper.
37802
37803         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
37804
37805         * lib/strtoll.c: New file, from GNU libc.
37806         * lib/xstrtoimax.c: New file.
37807
37808         * lib/xstrtol.h: Add xstrtoimax.
37809         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
37810         * lib/strtoimax.c: New file.  Likewise, but first define
37811         STRTOUXMAX_SIGNED.
37812
37813         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
37814         ...
37815         * lib/strtoxmax.c: ... then renamed to this.
37816
37817 2001-08-18  Paul Eggert  <eggert@twinsun.com>
37818
37819         * m4/inttypes.m4: Add AC_PREREQ(2.13).
37820         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
37821         (jm_AC_TYPE_INTMAX_T): New macro.
37822         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
37823
37824         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
37825
37826         * m4/longlong.m4: Renamed from ulonglong.m4.
37827         * m4/inttypes.m4: Renamed from inttypes_h.m4.
37828         * m4/uintmax_t.m4: Removed.
37829
37830 2001-08-13  Paul Eggert  <eggert@twinsun.com>
37831
37832         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
37833         Port to Solaris 8, where 'sed' requires a space after the 'r'
37834         command, and where sh dislikes "$/".  Clean up the spacing a bit.
37835         Redirect output to $tmp just once.
37836
37837 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
37838
37839         * lib/addext.c (<errno.h>): Include.
37840         (errno): Declare if not defined.
37841         (addext): Work correctly when pathconf returns -1 and leaves
37842         errno alone because there is no limit.  Also, work even if
37843         pathconf returns a value greater than SIZE_MAX.
37844
37845 2001-08-12  Jim Meyering  <meyering@lucent.com>
37846
37847         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
37848         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
37849         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
37850         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
37851         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
37852         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
37853         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
37854         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
37855         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
37856         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
37857         utime.m4, utimes.m4, xstrtoumax.m4:
37858         Quote the first argument in each use of AC_DEFUN.
37859
37860 2001-08-12  Jim Meyering  <meyering@lucent.com>
37861
37862         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
37863         Simply `return getcwd (NULL, 0);'.
37864         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
37865         Use 1300 as initial value for length, not PATH_MAX.
37866
37867         * lib/pathmax.h: Clean up cpp syntax.
37868
37869 2001-08-12  Jim Meyering  <meyering@lucent.com>
37870
37871         * lib/gettimeofday.c: New file.
37872         * lib/gtod.h: New file.
37873         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
37874
37875 2001-08-05  Jim Meyering  <meyering@lucent.com>
37876
37877         * m4/jm-macros.m4: Require autoconf-2.52.
37878
37879 2001-08-04  Jim Meyering  <meyering@lucent.com>
37880
37881         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
37882         stmt, to get in sync with glibc.
37883
37884 2001-08-03  Paul Eggert  <eggert@twinsun.com>
37885
37886         The following changes are from gettext 0.10.39 as maintained by
37887         Bruno Haible.
37888
37889         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
37890         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
37891         with inverted sense.  All uses changed.
37892
37893         * lib/mbswidth.c: Don't include <limits.h>.
37894         Include <stdlib.h> and <string.h> unconditionally.
37895         (iswcntrl, mbsinit, ISCNTRL): New macros.
37896         (mbsnwidth): Use K&R style function declarations.
37897         Don't bother checking for MB_LEN_MAX == 1, since the compiler
37898         can optimize it when MB_CUR_MAX == 1.
37899         The width of control characters is zero, not 1.
37900
37901 2001-08-03  Paul Eggert  <eggert@twinsun.com>
37902
37903         The following changes are from gettext 0.10.39 as maintained by
37904         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
37905
37906         * m4/codeset.m4: Upgrade to serial AM1.
37907         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
37908         all uses changed.  Quote first arg of AC_DEFUN.
37909         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
37910
37911         * m4/iconv.m4: Upgrade to serial AM2.
37912         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
37913         Add --with-libconv-prefix.
37914         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
37915         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
37916         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
37917         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
37918         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
37919
37920         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
37921         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
37922         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
37923         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
37924         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
37925         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
37926         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37927         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
37928         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
37929
37930         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
37931         string.h any more.
37932
37933         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
37934         not the default value.
37935
37936         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
37937         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
37938         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
37939         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
37940         Also check for iswcntrl, used for wcwidth fallback.
37941         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
37942         to Autoconf 2.13.
37943
37944 2001-08-03  Jim Meyering  <meyering@lucent.com>
37945
37946         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
37947         as it was in the original.  Reported by Paul Eggert.
37948
37949 2001-07-16  Jim Meyering  <meyering@lucent.com>
37950
37951         * m4/gettimeofday.m4: New file.
37952         Prompted by a report from Bernhard Baehr.
37953
37954 2001-07-15  Jim Meyering  <meyering@lucent.com>
37955
37956         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
37957         stuff. Now it's in ../Makefile.cfg.
37958
37959 2001-07-15  Jim Meyering  <meyering@lucent.com>
37960
37961         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
37962         (BUILT_SOURCES): Add unlocked-io.h.
37963         (io_functions): Define.
37964         (unlocked-io.h): New rule.
37965         (DISTCLEANFILES): Add unlocked-io.h.
37966         (all-local): Depend on unlocked-io.h, to ensure it is created.
37967
37968         * lib/unlocked-io.hin: New file
37969
37970         * lib/regex.c: Update from glibc.
37971
37972 2001-07-05  Jim Meyering  <meyering@lucent.com>
37973
37974         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
37975         recommendation.
37976         (libfetish_a_SOURCES): Put all .h files here instead.
37977         Remove a thus-exposed (better checks in automake) duplicate and
37978         two unnecessary .h files.
37979
37980 2001-07-04  Jim Meyering  <meyering@lucent.com>
37981
37982         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
37983         that generates jm-glibc-io.m4 so that it doesn't trigger any make
37984         distcheck failure.
37985
37986 2001-07-02  Jim Meyering  <meyering@lucent.com>
37987
37988         The following changes were prompted by suggestions from Bruno Haible.
37989
37990         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
37991         is now generated.
37992         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
37993         definition of EXTRA_DIST.
37994         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
37995         ensure that the generated file is created/updated whenever the list
37996         of $(unlocked_functions) is changed.
37997         (jm-glibc-io.m4): New rule.
37998         (unlocked-io.h): New rule -- currently unused.
37999
38000 2001-06-24  Jim Meyering  <meyering@lucent.com>
38001
38002         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
38003         unmatched right bracket, rather than kludging it with an extra,
38004         falsely-matching quote in a comment.  Patch by Akim Demaille.
38005
38006 2001-06-11  Jim Meyering  <meyering@lucent.com>
38007
38008         * lib/regex.c: Update from GNU libc.
38009
38010 2001-05-27  Jim Meyering  <meyering@lucent.com>
38011
38012         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
38013         Check for ut_type in struct utmp.
38014
38015 2001-05-27  Jim Meyering  <meyering@lucent.com>
38016
38017         * lib/readutmp.h (UT_TYPE): Define.
38018
38019 2001-05-24  Jim Meyering  <meyering@lucent.com>
38020
38021         * lib/argmatch.c: Include "quote.h".
38022         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
38023         quote function.  Reported by Göran Uddeborg.
38024
38025 2001-05-22  Jim Meyering  <meyering@lucent.com>
38026
38027         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
38028         now that we use the package-supplied version unconditionally.
38029         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
38030
38031 2001-05-21  Jim Meyering  <meyering@lucent.com>
38032
38033         * m4/regex.m4: Change a couple backticks to single quotes to avoid
38034         shell syntax errors.
38035
38036 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
38037
38038         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
38039
38040 2001-05-20  Paul Eggert  <eggert@twinsun.com>
38041
38042         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
38043         Don't bother to check library strftime, since
38044         we'll be using our own my_strftime function anyway.
38045         Define my_strftime instead of strftime.
38046
38047 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
38048
38049         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
38050         which is not yet declared.
38051
38052 2001-05-15  Jim Meyering  <meyering@lucent.com>
38053
38054         * m4/regex.m4: Use proper quoting so brackets appear in the test
38055         program.
38056         Reported by, and with help from, Bruno Haible.
38057
38058 2001-05-13  Jim Meyering  <meyering@lucent.com>
38059
38060         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
38061         undefined.
38062
38063 2001-05-11  Paul Eggert  <eggert@twinsun.com>
38064
38065         dirname code cleanup.  base_name now behaves more compatibly
38066         with POSIX basename when given file names that have trailing
38067         slashes, and similarly for dir_name.  Add new primitives
38068         base_len and dir_len.  Put the directory-name-related decls
38069         into dirname.h.
38070
38071         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
38072         * lib/backupfile.c (base_name): Likewise.
38073         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
38074         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
38075         * lib/makepath.c (strip_trailing_slashes): Likewise.
38076         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
38077         ISSLASH): Likewise.
38078         * lib/rename.c (strip_trailing_slashes): Likewise.
38079         * lib/same.c (base_name): Likewise.
38080         * lib/stripslash.c (ISSLASH): Likewise.
38081
38082         * lib/addext.c: Include <dirname.h> after size_t is defined.
38083         * lib/backupfile.c: Likewise.
38084
38085         * lib/addext.c (addext): Use base_len to trim redundant
38086         trailing slashes instead of doing it ourselves.
38087         But do not trim the last slash if it is not redundant.
38088
38089         * lib/backupfile.c (find_backup_file_name,
38090         max_backup_version): Use base_len instead of rolling it ourselves.
38091         Handle the case of "" and (on DOS) "C:" correctly.
38092
38093         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
38094         needed. Include <string.h>, <dirname.h>.
38095         (base_name): Allow file names ending in slashes, other than names
38096         that are all slashes.  In this case, return the basename followed
38097         by the slashes.  This is more general, and can be used in places
38098         where the original base_name purposely had an assertion failure.
38099         (base_len): New function.
38100
38101         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
38102         Do not include <assert.h>; no longer needed.
38103         Include xalloc.h.
38104         (memrchr): Remove decl.
38105         (dir_name_r): Remove.
38106         (dir_len): Renamed from dirlen.  All callers changed.
38107         Rewrite in terms of base_name, for simplicity and consistency.
38108         (dir_name): Never return NULL.  All callers changed.
38109         Do not include <stdlib.h> in test program; no longer needed.
38110         return 0; is fine for test program.
38111
38112         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
38113         New macros.
38114         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
38115
38116         * lib/path-concat.c (path_concat): Use base_len to compute
38117         base length, not strlen; this means we cannot rely on memcpy
38118         to null-terminate.
38119
38120         * lib/same.c (STREQ): Remove.
38121         (same_name): Handle the case where the basename ends in trailing '/'.
38122
38123         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
38124         a slash was stripped.  Do not strip the last slash after a
38125         file system prefix.
38126
38127 2001-05-11  Paul Eggert  <eggert@twinsun.com>
38128
38129         * lib/Makefile.am (libfetish_a_SOURCES):
38130         Add strftime.c, since we now compile it on all hosts.
38131
38132         * lib/strftime.c (my_strftime):
38133         Define to nstrftime if emacs, but only if my_strftime is not defined.
38134         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
38135         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
38136         Add one more extra argument: a nanoseconds value.
38137         All uses changed.
38138         (ns): New macro.
38139         (my_strftime function): Add %N format.
38140         (emacs_strftimeu): Renamed from emacs_strftime,
38141         with extra ut argument.
38142
38143 2001-05-09  Paul Eggert  <eggert@twinsun.com>
38144
38145         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
38146
38147 2001-04-21  Jim Meyering  <meyering@lucent.com>
38148
38149         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
38150         doesn't interfere.
38151
38152 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
38153
38154         * m4/ftruncate.m4: Check for chsize.
38155         Link with ftruncate.o unconditionally if ftruncate is missing.
38156         This was required when cross-compiling to i586-mingw32msvc.
38157
38158 2001-04-08  Jim Meyering  <meyering@lucent.com>
38159
38160         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
38161         recomputed; that's necessary when the offset spans a DST transition.
38162         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
38163
38164 2001-04-02  Jim Meyering  <meyering@lucent.com>
38165
38166         * lib/regex.h, regex.c: Update from GNU libc.
38167
38168 2001-03-24  Jim Meyering  <meyering@lucent.com>
38169
38170         * m4/jm-macros.m4: Require autoconf-2.49d.
38171
38172 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
38173
38174         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
38175
38176 2001-03-19  Paul Eggert  <eggert@twinsun.com>
38177
38178         * lib/version-etc.c (version_etc_copyright): Update to 2001.
38179
38180 2001-03-17  Jim Meyering  <meyering@lucent.com>
38181
38182         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
38183         now that the version in autoconf is equivalent.
38184         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
38185
38186         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
38187         Suggestion from Akim Demaille.
38188
38189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
38190         (jm_PREREQ_TEMPNAME): New function.
38191
38192 2001-03-16  Paul Eggert  <eggert@twinsun.com>
38193
38194         * lib/tempname.c (uint64_t): Define to uintmax_t if
38195         not defined, and if UINT64_MAX is not defined.
38196         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
38197         Reported by John David Anglin.
38198
38199 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
38200
38201         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
38202         resolve alias if codeset is empty.
38203         * lib/config.charset (BeOS): Use wildcard syntax.
38204
38205 2001-03-13  Jim Meyering  <meyering@lucent.com>
38206
38207         * lib/path-concat.c (path_concat)
38208         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
38209         concatenating e.g., `C:' and `foo'.
38210         From Bruno Haible.
38211
38212 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38213
38214         * lib/localcharset.c (locale_charset): Don't use
38215         setlocale(LC_CTYPE,NULL). Don't return NULL.
38216         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
38217
38218 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38219
38220         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
38221         support for DOS/DJGPP.
38222
38223 2001-03-01  Paul Eggert  <eggert@twinsun.com>
38224
38225         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
38226         lacks mkstemp.  Compile our own tempname.c if we compile our own
38227         mkstemp.c, as mkstemp relies on tempname.
38228
38229 2001-03-01  Jim Meyering  <meyering@lucent.com>
38230
38231         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
38232         AH_VERBATIM really does output its argument verbatim.
38233
38234 2001-02-28  Paul Eggert  <eggert@twinsun.com>
38235
38236         * lib/Makefile.am (libfetish_a_SOURCES):
38237         Add dup-safer.c, fopen-safer.c.
38238         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
38239
38240         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
38241         * lib/unistd-safer.h: New files.
38242
38243 2001-02-25  Paul Eggert  <eggert@twinsun.com>
38244
38245         The mkstemp replacement is taken from glibc 2.2.2, with some
38246         portability fixes for use outside glibc, as follows:
38247
38248         * lib/tempname.c (struct_stat64): New macro.
38249         (direxists, __gen_tempname): Use it.
38250         This avoids a portability problem with Solaris 8.
38251
38252         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
38253         (<stddef.h>, <stdint.h>, <string.h>):
38254         Include only if STDC_HEADERS || _LIBC.
38255         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
38256         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
38257         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
38258         (__set_errno): Define this macro if <errno.h> doesn't.
38259         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
38260         Define these macros if <stdio.h> doesn't.
38261         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
38262         Define these macros if <sys/stat.h>
38263         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
38264         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
38265         __xstat64): Define if not _LIBC.
38266         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
38267         (__gen_tempname): Invoke gettimeofday only if
38268         HAVE_GETTIMEOFDAY || _LIBC;
38269         otherwise, fall back on plain "time".
38270         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
38271
38272         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
38273
38274         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
38275
38276 2001-02-18  Paul Eggert  <eggert@twinsun.com>
38277
38278         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
38279
38280 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38281
38282         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
38283         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
38284         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
38285         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38286
38287 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38288
38289         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
38290         Remove workaround macros for hosts that have mbrtowc but not
38291         mbstate_t, as we now insist on proper declarations for both
38292         before using mbrtowc.
38293
38294 2001-02-17  Jim Meyering  <meyering@lucent.com>
38295
38296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
38297         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
38298         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
38299         UnixWare 7.1.1.
38300
38301         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
38302         rather than AC_CACHE_VAL.
38303
38304 2001-02-17  Jim Meyering  <meyering@lucent.com>
38305
38306         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
38307         around included file name.
38308
38309         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
38310
38311         * lib/strftime.c: Update from GNU libc (the only changes were to
38312         comments).
38313
38314 2001-02-17  Jim Meyering  <meyering@lucent.com>
38315
38316         * lib/regex.c: Update from libc.
38317
38318 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
38319
38320         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
38321         clash.
38322
38323 2001-02-16  Paul Eggert  <eggert@twinsun.com>
38324
38325         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
38326         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
38327         Reported by Mark Hounschell via Paul Eggert.
38328
38329 2001-02-07  Jim Meyering  <meyering@lucent.com>
38330
38331         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
38332
38333 2001-02-05  Jim Meyering  <meyering@lucent.com>
38334
38335         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
38336         it includes the patch required for `large file' support with at least
38337         HP-UX's 10.20 /bin/cc.
38338
38339 2001-02-03  Jim Meyering  <meyering@lucent.com>
38340
38341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
38342         AS_IF, now that it works once again (mysteriously).
38343         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38344
38345 2001-01-30  Jim Meyering  <meyering@lucent.com>
38346
38347         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
38348         * m4/chown.m4: Rename conftestchown to conftest.chown.
38349         * m4/rename.m4: s/conftestdir/conftest.d1/ and
38350         s/conftestdir2/conftest.d2/.
38351         * m4/utimes.m4: s/conftestdata/conftest.data/
38352         Inspired by Pavel Roskin's change in autoconf.
38353
38354 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
38355
38356         * lib/config.charset: Update for FreeBSD 4.2.
38357
38358 2001-01-27  Jim Meyering  <meyering@lucent.com>
38359
38360         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
38361         a use of AS_IF.
38362         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38363
38364 2001-01-26  Jim Meyering  <meyering@lucent.com>
38365
38366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
38367         quotearg.c includes it.
38368
38369 2001-01-26  Jim Meyering  <meyering@lucent.com>
38370
38371         * lib/quotearg.c: Include stddef.h.
38372         * lib/quote.c: Include stddef.h.
38373         Reported by Axel Kittenberger.
38374
38375         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
38376         line in double quotes so that it evokes a better diagnostic.
38377         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
38378         Reported by Axel Kittenberger.
38379
38380 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
38381
38382         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
38383         as if it was a `charset'.
38384
38385 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38386
38387         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
38388         has const.
38389
38390 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38391
38392         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
38393         to avoid a warning.  Add back 'const' to inptr.
38394
38395 2001-01-20  Jim Meyering  <meyering@lucent.com>
38396
38397         Be sure that headers are checked before used in code compiled
38398         for the type checks.
38399         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
38400         In place of that, invoke jm_CHECK_ALL_TYPES.
38401         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
38402         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
38403         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
38404         The check for ssize_t was mistakenly run before the test for unistd.h.
38405
38406         The configure-time check for stdbool.h was missing.
38407         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
38408         (jm_PREREQ_HASH): New function.
38409
38410 2001-01-17  Jim Meyering  <meyering@lucent.com>
38411
38412         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
38413         for autoconf-2.49c.
38414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
38415
38416 2001-01-16  Jim Meyering  <meyering@lucent.com>
38417
38418         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
38419         From Bruno Haible.
38420
38421 2001-01-14  Jim Meyering  <meyering@lucent.com>
38422
38423         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
38424         foo and bar.  Create conftestdir/ in the script, not in the C code.
38425         Remove directories in the script, not in the C code.
38426         Remove conftestdir{,2} before trying to create the directory.
38427         Make the entire configure script fail if the mkdir fails.
38428
38429 2001-01-14  Jim Meyering  <meyering@lucent.com>
38430
38431         * lib/rename.c: New file.  From Volker Borchert.
38432         Include stdlib.h, string.h or strings.h, and xalloc.h.
38433         Use strip_trailing_slashes rather than open-coding it.
38434
38435 2001-01-03  Paul Eggert  <eggert@twinsun.com>
38436
38437         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
38438
38439 2001-01-03  Jim Meyering  <meyering@lucent.com>
38440
38441         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
38442         of local `inptr' to avoid warning with some system declarations of
38443         iconv.
38444
38445 2001-01-02  Volker Borchert  <bt@teknon.de>
38446
38447         * m4/rename.m4: New file.
38448         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
38449
38450 2001-01-01  Jim Meyering  <meyering@lucent.com>
38451
38452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
38453         even on systems with utmpx.h.  It's necessary for the declaration of
38454         utmp's ut_user member.  Reported by Andreas Jaeger.
38455
38456         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
38457         available. They are required for the declarations of getgrgid and
38458         getpwuid resp.
38459         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
38460         Reported by Andreas Jaeger.
38461
38462 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
38463
38464         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
38465         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
38466         so `make install' also works in VPATH builds.
38467
38468 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
38469
38470         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
38471         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
38472         can be used in subdirectories.
38473
38474 2000-12-29  Paul Eggert  <eggert@twinsun.com>
38475
38476         * lib/modechange.c: Do not assume that mode_t uses the
38477         traditional octal encoding.  E.g. "chmod 1 FOO" should set
38478         the other-execute bit of FOO even if S_IXOTH != 1.
38479
38480         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
38481         WOTH, XOTH, ALLM): New macros.
38482         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
38483          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
38484         Use them.
38485         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
38486         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
38487         (mode_compile):
38488         No need to use uintmax_t; unsigned long is long enough.
38489         Don't bother to get suffix since we don't use it.
38490
38491 2000-12-26  Jim Meyering  <meyering@lucent.com>
38492
38493         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
38494         better with autoheader.
38495
38496 2000-12-24  Jim Meyering  <meyering@lucent.com>
38497
38498         * lib/hash.c (is_prime): Return explicit boolean values.
38499         (hash_get_first): Return NULL to appease Irix5.6's 89.
38500         Reported by Nelson Beebe.
38501
38502 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
38503
38504         * lib/localcharset.c (locale_charset): Add support for Win32.
38505
38506 2000-12-18  Paul Eggert  <eggert@twinsun.com>
38507
38508         * lib/physmem.h, lib/physmem.c: New files.
38509
38510         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
38511         (noinst_HEADERS): Add physmem.h.
38512
38513         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
38514         't' for compatibility with Solaris 8 sort.
38515
38516 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
38517
38518         * lib/config.charset: Add support for BeOS.
38519
38520 2000-12-17  Jim Meyering  <meyering@lucent.com>
38521
38522         * m4/dos.m4 (jm_AC_DOS): New file and macro.
38523         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
38524
38525 2000-12-16  Jim Meyering  <meyering@lucent.com>
38526
38527         This bug had a serious impact on chown: `chown N:M FILE' (for integer
38528         N and M) would have treated it like `chown N:N FILE'.
38529
38530         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
38531
38532 2000-12-16  Jim Meyering  <meyering@lucent.com>
38533
38534         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
38535         SHELLS_FILE to a file name that's useful on djgpp systems.
38536         Include stdlib.h.
38537         (ADDITIONAL_DEFAULT_SHELLS): Define.
38538         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
38539         Based mostly on a patch from Prashant TR.
38540
38541 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
38542
38543         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
38544         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
38545         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
38546
38547 2000-12-08  Andreas Schwab  <schwab@suse.de>
38548
38549         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
38550         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
38551
38552 2000-12-07  Jim Meyering  <meyering@lucent.com>
38553
38554         * lib/stripslash.c (ISSLASH): Define.
38555         (strip_trailing_slashes): Use ISSLASH rather than comparing against
38556         `/'.
38557         From Prashant TR.
38558
38559         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
38560         (dir_name_r): Declare this function as static.
38561         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
38562         manifest itself on a name containing a mix of slashes and
38563         backslashes.
38564         Make this function work with names starting with a DOS-style
38565         drive letter and colon prefix.
38566         (dir_name): Append `.' if necessary.
38567         Based mostly on patches from Prashant TR and Eli Zaretskii.
38568
38569         * lib/dirname.h (dir_name_r): Remove prototype.
38570
38571 2000-12-06  Paul Eggert  <eggert@twinsun.com>
38572
38573         * m4/off_t-format.m4: Remove this file.
38574         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
38575
38576 2000-12-06  Jim Meyering  <meyering@lucent.com>
38577
38578         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
38579         replacement strtoull, we may well need the replacement strtoul, too.
38580         Check for declarations of strtoul and strtoull.
38581         Check for strtol.  Mainly as a cue to cause automake to include
38582         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
38583         Check for limits.h -- strtol.c needs it.
38584
38585 2000-12-05  Jim Meyering  <meyering@lucent.com>
38586
38587         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
38588
38589 2000-12-04  Jim Meyering  <meyering@lucent.com>
38590
38591         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
38592         Also include memory.h, stdlib.h, unistd.h if appropriate.
38593         Reported by Andreas Jaeger (conflicting declaration of malloc).
38594
38595 2000-12-02  Jim Meyering  <meyering@lucent.com>
38596
38597         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
38598         * m4/jm-macros.m4 (jm_MACROS): require it.
38599
38600 2000-12-02  Jim Meyering  <meyering@lucent.com>
38601
38602         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
38603
38604 2000-12-01  Paul Eggert  <eggert@twinsun.com>
38605
38606         * lib/memrchr.c: Include <config.h> before any system include file.
38607
38608 2000-11-30  Jim Meyering  <meyering@lucent.com>
38609
38610         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
38611
38612 2000-11-30  Jim Meyering  <meyering@lucent.com>
38613
38614         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
38615
38616 2000-11-29  Paul Eggert  <eggert@twinsun.com>
38617
38618         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
38619
38620 2000-11-26  Jim Meyering  <meyering@lucent.com>
38621
38622         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
38623
38624 2000-11-22  Paul Eggert  <eggert@twinsun.com>
38625
38626         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
38627         size of (size_t) -1; it's not portable.
38628
38629 2000-11-17  Jim Meyering  <meyering@lucent.com>
38630
38631         * lib/strstr.c: Update from GNU libc.
38632
38633 2000-11-17  Akim Demaille  <akim@epita.fr>
38634
38635         * lib/obstack.h: Formatting changes.
38636         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
38637         prevent type checking.
38638         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
38639         cast the value to (void *): assigning a `foo *' to a `void *'
38640         variable is valid.
38641         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
38642
38643 2000-11-16  Jim Meyering  <meyering@lucent.com>
38644
38645         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
38646
38647 2000-11-11  Jim Meyering  <meyering@lucent.com>
38648
38649         * lib/error.c: Add a couple #includes, merging from GNU libc version.
38650
38651 2000-11-10  Jim Meyering  <meyering@lucent.com>
38652
38653         * lib/obstack.h: Update from GNU libc.
38654         * lib/obstack.c: Likewise.
38655
38656 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
38657
38658         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
38659
38660 2000-11-06  Paul Eggert  <eggert@twinsun.com>
38661
38662         * lib/getusershell.c (setusershell): Use rewind rather than
38663         fseek/fseeko, to avoid configuration hassles with fseeko.
38664         Don't bother opening SHELLS_FILE if shellstream is NULL;
38665         it's not necessary.
38666
38667 2000-11-05  Jim Meyering  <meyering@lucent.com>
38668
38669         * lib/makepath.h (make_dir): Declare.
38670         * lib/makepath.c (make_dir): Remove `static' attribute.
38671         Tweak a comment.
38672
38673 2000-11-04  Jim Meyering  <meyering@lucent.com>
38674
38675         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
38676
38677 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
38678
38679         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
38680         last one in a bucket, advance to the next bucket.
38681
38682 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
38683
38684         * lib/fnmatch.c: Do not comment out all the code if we are using
38685         the GNU C library, because in some cases we are replacing buggy
38686         code in the GNU C library itself.
38687
38688 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
38689
38690         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
38691         (regex_compile): Catch bogus \(\1\).
38692
38693 2000-10-30  Paul Eggert  <eggert@twinsun.com>
38694
38695         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
38696         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
38697         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
38698
38699 2000-10-30  Paul Eggert  <eggert@twinsun.com>
38700
38701         * lib/error.h, getline.h, modechange.h:
38702         Remove "2000" from Copyright line, as the file hasn't been
38703         changed this year other than in the copyright notice.
38704
38705         * lib/xalloc.h: Add "2000" to Copyright line, as this file
38706         was changed this year.
38707
38708 2000-10-29  Jim Meyering  <meyering@lucent.com>
38709
38710         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
38711         renaming.
38712         * m4/ls-mntd-fs.m4: Likewise
38713
38714 2000-10-29  Jim Meyering  <meyering@lucent.com>
38715
38716         * lib/xstat.in: Fix grammar in comment.
38717
38718 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
38719
38720         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
38721         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
38722         doesn't define __restrict_arr.
38723
38724 2000-10-28  Jim Meyering  <meyering@lucent.com>
38725
38726         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
38727         (jm_PREREQ_MEMCHR): New function.
38728
38729 2000-10-28  Jim Meyering  <meyering@lucent.com>
38730
38731         * lib/memchr.c: Update from libc.
38732         Adjust for portability:
38733         [HAVE_STDLIB_H]: Include stdlib.h.
38734         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
38735         Undef __memchr, too.
38736         [!weak_alias]: Define __memchr to memchr.
38737
38738         * lib/regex.c: Update from libc.
38739         * lib/regex.h: Likewise.
38740         * lib/getopt1.c: Likewise.
38741         * lib/memcmp.c: Likewise.
38742
38743         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
38744         Avoid using fseek, when possible -- it's broken by design.
38745         Patch by Ulrich Drepper.
38746
38747 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
38748
38749         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
38750         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
38751         Giving in to popular pressure to shut up the compiler with casts.
38752
38753 2000-10-26  Jim Meyering  <meyering@lucent.com>
38754
38755         * lib/strftime.c: Update from libc.
38756
38757 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
38758
38759         * regex.c: More `unsigned char' -> `re_char' changes.
38760         Also change several `int' into `re_wchar_t'.
38761         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
38762         (PUSH_FAILURE_POINTER): Don't cast any more.
38763         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
38764         We want GCC to complain, since this piece of code makes
38765         re_match non-reentrant, which *should* be fixed.
38766         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
38767         (EXTEND_BUFFER): Use RETALLOC.
38768         (SET_LIST_BIT): Don't cast.
38769         (re_wchar_t): New type.
38770         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
38771         that those two functions will always properly return.
38772         (IMMEDIATE_QUIT_CHECK): Cast to void.
38773         (analyse_first): Use recursion rather than an explicit stack.
38774         (re_compile_fastmap): Can't fail anymore.
38775         (re_search_2): Don't check re_compile_fastmap for failure.
38776         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
38777         Now also sets the new value (passed in a new argument).
38778         (re_match_2_internal): Use it.
38779         Also, use a new var `reg' of type size_t when looping through regs
38780         rather than reuse the inappropriate `mcnt'.
38781
38782 2000-10-25  Jim Meyering  <meyering@lucent.com>
38783
38784         * lib/obstack.c: Update from libc.
38785
38786 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
38787
38788         * regex.c (regex_compile): Change the way of handling a range from
38789         a char less than 256 to a char not less than 256.
38790
38791 2000-10-24  Andrew Innes  <andrewi@gnu.org>
38792
38793         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
38794         NT-Emacs only.
38795         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
38796         so that re_search functions only quit when callers expect them to.
38797
38798 2000-10-23  Jim Meyering  <meyering@lucent.com>
38799
38800         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
38801         wrong.  That set_locale call must not have any side effects.
38802         From Paul Eggert.
38803
38804 2000-10-22  Jim Meyering  <meyering@lucent.com>
38805
38806         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
38807         [CYCLIC]: Remove now-unused definition.
38808
38809         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
38810         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
38811         Suggestion from Ulrich Drepper.
38812
38813 2000-10-21  Jim Meyering  <meyering@lucent.com>
38814
38815         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
38816         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
38817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
38818
38819 2000-10-21  Jim Meyering  <meyering@lucent.com>
38820
38821         * lib/dirname.c (memrchr): Declare if necessary.
38822         (dir_name): Remove the restriction that there be no
38823         trailing slashes.  Now, this code skips past them, effectively
38824         ignoring them.
38825         [TEST_DIRNAME] (main): New unit tests.
38826
38827         * lib/memrchr.c: New file from GNU libc.
38828         Undef __memrchr, too.
38829         [!weak_alias]: Define __memrchr to memrchr.
38830         Guard weak_alias use with `#ifdef weak_alias'.
38831
38832 2000-10-21  Jim Meyering  <meyering@lucent.com>
38833
38834         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
38835         (dir_name): Use dir_name_r.
38836         * lib/dirname.h (dir_name_r): Declare it.
38837
38838 2000-10-17  Jim Meyering  <meyering@lucent.com>
38839
38840         * lib/quote.h (PARAMS): Define and use.
38841         Reported by Akim Demaille.
38842
38843         * lib/getopt.c: Update from libc.
38844
38845 2000-10-16  Jim Meyering  <meyering@lucent.com>
38846
38847         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
38848         setlocale.
38849         From Jan Fedak.
38850
38851 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
38852
38853         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
38854
38855 2000-09-25  Jim Meyering  <meyering@lucent.com>
38856
38857         * lib/md5.h (rol): Define (from GnuPG).
38858
38859         * lib/sha.c: Give credit (GnuPG) where due.
38860         (M): Use rol rather than open-coding it.
38861         Add a FIXME comment.
38862
38863 2000-09-21  Jim Meyering  <meyering@lucent.com>
38864
38865         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
38866         Reported by Michael Stone.
38867
38868 2000-09-20  Jim Meyering  <meyering@lucent.com>
38869
38870         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
38871         (noinst_HEADERS): Add sha.h.
38872         Based on code from Scott G. Miller and from GnuPG.
38873
38874 2000-09-18  Jim Meyering  <meyering@lucent.com>
38875
38876         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
38877         LIBS. Otherwise, everyone ends up linking with -lelf for some
38878         configurations.
38879         Reported by Mike Stone.
38880
38881 2000-09-15  Jim Meyering  <meyering@lucent.com>
38882
38883         * lib/regex.c: Update from libc.
38884
38885 2000-09-10  Jim Meyering  <meyering@lucent.com>
38886
38887         * lib/getopt.c (_getopt_internal): Update from glibc.
38888
38889 2000-09-09  Jim Meyering  <meyering@lucent.com>
38890
38891         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
38892         think it should be used as a general replacement for isascii.
38893         * lib/fnmatch.c: Likewise.
38894         * lib/mbswidth.c: Likewise
38895         * lib/regex.c: Likewise.
38896
38897         Don't use atoi.
38898         * lib/userspec.c: Include sys/param.h and limits.h.
38899         Include xstrtol.h.
38900         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38901         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
38902         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
38903         UID, GID.  Check range.
38904
38905 2000-09-06  Jim Meyering  <meyering@lucent.com>
38906
38907         * lib/getopt.c (_getopt_internal): Update from glibc.
38908
38909 2000-08-30  Jim Meyering  <meyering@lucent.com>
38910
38911         * lib/strftime.c: Merge in changes from GNU libc.
38912
38913 2000-08-26  Jim Meyering  <meyering@lucent.com>
38914
38915         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
38916         * m4/fpending.m4: New file.
38917
38918 2000-08-26  Jim Meyering  <meyering@lucent.com>
38919
38920         * lib/closeout.c: Include "__fpending.h".
38921         (close_stdout_status): Return right away if there's nothing to flush.
38922
38923         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
38924         * lib/__fpending.c: New file.
38925         * lib/__fpending.h: New file.
38926
38927 2000-08-20  Jim Meyering  <meyering@lucent.com>
38928
38929         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
38930         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
38931         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
38932
38933 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
38934
38935         Improve fileutils installation on systems where running
38936         programs (like install) can't be unlinked.
38937         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
38938         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
38939
38940 2000-08-07  Paul Eggert  <eggert@twinsun.com>
38941
38942         Standardize on "memory exhausted" instead of "Memory exhausted"
38943         or "virtual memory exhausted".
38944         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
38945         "virtual memory exhausted".
38946         * lib/same.c (same_name): Invoke xalloc_die instead of printing
38947         our own message.
38948         * lib/userspec.c (parse_user_spec): Likewise.
38949         * lib/bumpalloc.h: comment fix
38950         * lib/same.c, userspec.c: Include xalloc.h.
38951
38952         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
38953         not char *const and pointing to a constant array.
38954         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
38955         (xrealloc): Comment fix.
38956
38957         * lib/userspec.c (parse_user_spec):
38958         Don't translate a message until just before returning,
38959         to avoid unnecessary translation.
38960
38961 2000-08-07  Jim Meyering  <meyering@lucent.com>
38962
38963         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
38964         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
38965         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
38966         getgroups.c, gethostname.c, getopt.h, group-member.c,
38967         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
38968         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
38969         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
38970         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
38971         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
38972         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
38973         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
38974         yesno.c: Back out Copyright date changes for each file with no change
38975         this year.  This eases coordination with other programs using the same
38976         source code modules.  From Paul Eggert.
38977
38978 2000-08-06  Paul Eggert  <eggert@twinsun.com>
38979
38980         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
38981         not char, for compatibility with glibc 2.1.3 strftime.c.
38982
38983 2000-08-03  Greg McGary  <greg@mcgary.org>
38984
38985         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
38986         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
38987         (EXTEND_BUFFER): Use them.
38988
38989 2000-08-01  Jim Meyering  <meyering@lucent.com>
38990
38991         * lib/dirname.c (ISSLASH): Define.
38992         (BACKSLASH_IS_PATH_SEPARATOR): Define.
38993         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
38994         both `\' and `/' may be use as path separators.
38995         Based on a patch from Prashant TR.
38996
38997 2000-07-31  Paul Eggert  <eggert@twinsun.com>
38998
38999         * lib/quotearg.c (quotearg_n_options): Don't make the initial
39000         slot vector a constant, since it might get modified.
39001
39002 2000-07-31  Jim Meyering  <meyering@lucent.com>
39003
39004         * lib/xmalloc.c: Use `virtual memory exhausted', not
39005         `Memory exhausted'.
39006         * lib/obstack.c (print_and_abort): Likewise.
39007
39008 2000-07-30  Paul Eggert  <eggert@twinsun.com>
39009
39010         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
39011         buffer, so that the caller can always quote one small
39012         component of a "memory exhausted" message in slot 0.
39013         From a suggestion by Jim Meyering.
39014
39015 2000-07-30  Jim Meyering  <meyering@lucent.com>
39016
39017         * lib/makepath.c (make_path): Quote the other instance, too.
39018
39019         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
39020         (STATIC_BUF_SIZE): Define.
39021         (quotearg_n_options): Use only statically allocated storage when
39022         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
39023         than STATIC_BUF_SIZE.
39024
39025 2000-07-29  Jim Meyering  <meyering@lucent.com>
39026
39027         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
39028         * lib/dirname.c (dir_name): Likewise.
39029
39030         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
39031         `/'.
39032
39033         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
39034         (dir_name): Assert that there are no trailing slashes.
39035
39036 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
39037
39038         * lib/mbswidth.h (mbswidth): Add a flags argument.
39039         (mbswidth): New declaration.
39040         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
39041         * lib/mbswidth.c (mbswidth): Add a flags argument.
39042         (mbsnwidth): New function.
39043
39044 2000-07-24  Jim Meyering  <meyering@lucent.com>
39045
39046         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
39047
39048 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39049
39050         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
39051
39052 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39053
39054         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
39055         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
39056         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
39057         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
39058         invoke multibyte primitives.
39059
39060 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39061
39062         * lib/quotearg.c:
39063         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
39064         so that mbstate_t is always defined.
39065
39066         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
39067         be 1 in at least one GCC installation, and this configuration
39068         error is likely to be common.  Ignoring MB_LEN_MAX hurts
39069         performance on hosts that have mbrtowc but have only unibyte
39070         locales, but I assume these hosts are rare.
39071
39072 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39073
39074         * lib/mbswidth.c (_XOPEN_SOURCE):
39075         Don't define; this causes problems on Solaris 7.
39076         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
39077
39078 2000-07-23  Jim Meyering  <meyering@lucent.com>
39079
39080         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
39081         too: getgrgid, getpwuid, getuid.
39082
39083 2000-07-23  Jim Meyering  <meyering@lucent.com>
39084
39085         * lib/basename.c (base_name): Add an assertion.
39086
39087 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
39088
39089         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
39090         shadow its mbsinit function.
39091
39092 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
39093
39094         * lib/mbswidth.h: New file.
39095         * lib/mbswidth.c: New file.
39096         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
39097         (noinst_HEADERS): Add mbswidth.h.
39098
39099 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
39100
39101         * lib/config.charset: Add support for FreeBSD. Improve support for
39102         HP-UX and IRIX 6.
39103
39104 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
39105
39106         * m4/mbswidth.m4: New file.
39107         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
39108
39109 2000-07-15  Jim Meyering  <meyering@lucent.com>
39110
39111         * lib/makepath.c: Include quote.h.
39112         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
39113         corresponding argument in a `quote (...)' call.
39114         Give better diagnostics.
39115
39116         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
39117         (noinst_HEADERS): Add quote.h.
39118
39119         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
39120         from tar's src/misc.c.
39121         * lib/quote.h: New file.  Prototypes for same.
39122
39123 2000-07-14  Paul Eggert  <eggert@twinsun.com>
39124
39125         From a suggestion by Bruno Haible.
39126         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
39127         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
39128         to decide whether to define the BeOS workaround macro;
39129         this adjusts to the change to AC_MBSTATE_T.
39130
39131 2000-07-14  Jim Meyering  <meyering@lucent.com>
39132
39133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
39134         jm_AC_TYPE_UINTMAX_T.
39135
39136 2000-07-13  Paul Eggert  <eggert@twinsun.com>
39137
39138         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
39139
39140         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
39141         quotearg_buffer_restyled): Add support for
39142         clocale_quoting_style.  Undo previous change to
39143         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
39144         and "{RIGHT QUOTATION MARK}" msgids.
39145
39146 2000-07-10  Paul Eggert  <eggert@twinsun.com>
39147
39148         From a suggestion by Bruno Haible.
39149         * m4/mbstate_t.m4 (AC_MBSTATE_T):
39150         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
39151         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
39152         and mbstate_t, to a single-part test that simply defines mbstate_t.
39153         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
39154         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
39155
39156 2000-07-10  Jim Meyering  <meyering@lucent.com>
39157
39158         * m4/strerror_r.m4: Mirror the correction made in autoconf.
39159
39160         * m4/gnu-source.m4: Output to confdefs.h directly.
39161         Suggestion from Akim Demaille.
39162
39163 2000-07-09  Paul Eggert  <eggert@twinsun.com>
39164
39165         The old behavior of quoting `like this' doesn't look good with
39166         newer, ISO-style fonts.  See:
39167         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
39168
39169         Instead, quote "like this" by default.  Let the translator
39170         tailor the locale-specific quoting behavior by providing
39171         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
39172
39173         * lib/quotearg.c (N_): New macro.
39174         (gettext_default): New function.
39175         (quotearg_buffer_restyled): Use
39176         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
39177         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
39178
39179 2000-07-09  Jim Meyering  <meyering@lucent.com>
39180
39181         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
39182         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
39183
39184         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
39185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
39186
39187 2000-07-09  Jim Meyering  <meyering@lucent.com>
39188
39189         * lib/Most files: Update copyright dates to include 2000.
39190
39191 2000-07-08  Jim Meyering  <meyering@lucent.com>
39192
39193         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
39194         if not defined.
39195         (xgethostname): Remove now-unnecessary #ifdef.
39196         Move declaration of `err' into loop where it's used.
39197
39198 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39199         and Bruno Haible  <haible@clisp.cons.org>
39200
39201         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
39202         only if the test for an object-type mbstate_t fails.  This
39203         prevents us from mistakenly reporting that mbstate_t is a
39204         system object type after we "#define mbstate_t int" to work
39205         around its lack.
39206
39207 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39208         and Bruno Haible  <haible@clisp.cons.org>
39209
39210         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
39211
39212 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39213
39214         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
39215         to strerror_r.
39216         Include <ctype.h> for use of isalpha.
39217
39218 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39219
39220         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
39221         by allocating a larger buffer. Test the gethostname return value for
39222         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
39223         returns an error and ENAMETOOLONG isn't defined.
39224
39225 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39226
39227         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
39228         dimension.
39229
39230 2000-07-04  Jim Meyering  <meyering@lucent.com>
39231
39232         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
39233         of the deprecated AC_CHECKING.
39234
39235 2000-07-04  Jim Meyering  <meyering@lucent.com>
39236
39237         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
39238         Reported by Bruno Haible.
39239
39240 2000-07-04  Jim Meyering  <meyering@lucent.com>
39241
39242         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
39243         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
39244         lacks mbrtowc.
39245
39246 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39247
39248         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
39249         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
39250
39251 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39252         and Bruno Haible  <haible@clisp.cons.org>
39253
39254         * lib/quotearg.c (mbrtowc):
39255         Assign to *pwc, and return 1 only if result is nonzero.
39256         (iswprint): Use ISPRINT when substituting our own mbrtowc.
39257
39258 2000-07-03  Jim Meyering  <meyering@lucent.com>
39259
39260         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
39261
39262 2000-07-03  Jim Meyering  <meyering@lucent.com>
39263
39264         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
39265         This is necessary to get a definition of e.g., UTMP_FILE on
39266         HP-UX 10.20.
39267         From Bob Proulx.
39268
39269 2000-07-02  Jim Meyering  <meyering@lucent.com>
39270
39271         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
39272
39273         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
39274         AC_LIBOBJ(function_name).
39275         * m4/chown.m4: Likewise.
39276         * m4/fnmatch.m4: Likewise.
39277         * m4/ftruncate.m4: Likewise.
39278         * m4/getgroups.m4: Likewise.
39279         * m4/getline.m4: Likewise.
39280         * m4/group-member.m4: Likewise.
39281         * m4/jm-macros.m4: Likewise.
39282         * m4/lstat.m4: Likewise.
39283         * m4/malloc.m4: Likewise.
39284         * m4/memcmp.m4: Likewise.
39285         * m4/nanosleep.m4: Likewise.
39286         * m4/putenv.m4: Likewise.
39287         * m4/realloc.m4: Likewise.
39288         * m4/regex.m4: Likewise.
39289         * m4/stat.m4: Likewise.
39290         * m4/strftime.m4: Likewise.
39291
39292 2000-07-02  Jim Meyering  <meyering@lucent.com>
39293
39294         * lib/quotearg.c (mbstate_t): Don't define here.
39295
39296 2000-07-02  Jim Meyering  <meyering@lucent.com>
39297
39298         * lib/nanosleep.c (SIGCONT): Define if not already defined.
39299
39300 2000-07-01  Jim Meyering  <meyering@lucent.com>
39301
39302         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
39303
39304 2000-07-01  Jim Meyering  <meyering@lucent.com>
39305
39306         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
39307         problem.
39308
39309 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39310
39311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
39312         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
39313
39314 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39315
39316         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
39317         per change in ../m4/ls-mntd-fs.m4.
39318         (read_filesystem_list): Ignore symbolic links.
39319
39320 2000-06-29  Jim Meyering  <meyering@lucent.com>
39321
39322         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
39323         for declaration of strcmp.
39324
39325         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
39326
39327         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
39328         Avoid warning by casting result to `char *' to remove `const'.
39329
39330 2000-06-28  Jim Meyering  <meyering@lucent.com>
39331
39332         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
39333         included by quotearg.c, for which we perform this test.  From
39334         Bruno Haible.
39335
39336 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39337
39338         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
39339         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
39340         <utmpx.h> exists, put readutmp.o into LIBOBJS.
39341
39342 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39343
39344         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
39345
39346 2000-06-26  Paul Eggert  <eggert@twinsun.com>
39347
39348         savedir now sets errno on failure and invokes xmalloc to get memory.
39349         Fix a couple of other minor bugs while we're at it.
39350
39351         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
39352         (NAMLEN): Remove macro.
39353         (malloc, realloc): Remove decls.
39354         (stpcpy): Likewise.
39355         ("xalloc.h"): Include.
39356         (NAME_SIZE_DEFAULT): New macro.
39357         (savedir): Use xmalloc / xrealloc to allocate memory.
39358         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
39359         Skip "" directory entries.
39360         Use strlen to calculate directory entry length, since the old method
39361         is rarely used these days and isn't worth supporting.
39362         Don't use a pointer after freeing it.
39363         Check for integer overflow when calculating allocation size.
39364         Use memcpy to copy entries, instead of stpcpy.
39365         Set errno properly when returning NULL.
39366         Check for readdir error.
39367
39368 2000-06-26  Jim Meyering  <meyering@lucent.com>
39369
39370         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
39371
39372 2000-06-25  Jim Meyering  <meyering@lucent.com>
39373
39374         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
39375         Linux header bug when _XOPEN_SOURCE is defined to 500.
39376
39377 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39378
39379         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
39380         deficiency.
39381
39382 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39383
39384         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
39385         Include xalloc.h.
39386         Don't include <stdlib.h>.  Don't declare malloc, realloc.
39387
39388 2000-06-24  Jim Meyering  <meyering@lucent.com>
39389
39390         * m4/strerror_r.m4: Revive this file -- to try out an experimental
39391         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
39392         for which strerror does return char*, but which lacks a conveniently
39393         accessible declaration of the function.  If the compile-test says
39394         strerror_r doesn't work, then resort to a `run'-test that works on
39395         BeOS and segfaults on DEC Unix.
39396
39397 2000-06-24  Jim Meyering  <meyering@lucent.com>
39398
39399         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
39400
39401 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39402
39403         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
39404         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
39405
39406 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39407
39408         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
39409         (mbrtowc, mbstate_t): Define substitutes if
39410         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
39411         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
39412         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
39413
39414 2000-06-23  Jim Meyering  <meyering@lucent.com>
39415
39416         * m4/afs.m4: Add missing AC_MSG_RESULT.
39417         Reported by Bruno Haible.
39418
39419         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
39420         Suggestion from Bruno Haible.
39421
39422 2000-06-23  Jim Meyering  <meyering@lucent.com>
39423
39424         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
39425
39426 2000-06-21  Jim Meyering  <meyering@lucent.com>
39427
39428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
39429
39430 2000-06-21  Jim Meyering  <meyering@lucent.com>
39431
39432         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
39433         (noinst_HEADERS): Add getstr.h.
39434
39435         * lib/getline.c (getstr): Move into a separate file.
39436         * lib/getstr.c (getstr): New file, extracted from getline.c, with
39437         the following changes: new parameter, delim2; both delim[12]
39438         parameters have type `int', not `char'.  The latter would lose
39439         with 8-bit delimiters.
39440         * lib/getstr.h: New file.
39441
39442 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39443
39444         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
39445         than 1024, return a memory chunk of least possible size, instead
39446         of size PATH_MAX + 2. In the loop, increment the size proportionally.
39447         Use free/xmalloc instead of xrealloc to avoid copying for very long
39448         paths.
39449
39450 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39451
39452         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
39453         the empty string.
39454
39455 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39456
39457         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
39458         address, not strdup.  Include <stdlib.h> and don't declare free().
39459
39460 2000-06-19  Jim Meyering  <meyering@lucent.com>
39461
39462         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
39463
39464 2000-06-18  Jim Meyering  <meyering@lucent.com>
39465
39466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
39467
39468         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
39469         `checking whether...' message to be consistent with that of the
39470         lstat test.
39471
39472 2000-06-18  Jim Meyering  <meyering@lucent.com>
39473
39474         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
39475         Besides, these days every porting target provides a mkdir function.
39476
39477         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
39478         needed. (this snippet comes from src/system.h).
39479
39480 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
39481
39482         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
39483
39484 2000-06-15  Paul Eggert  <eggert@twinsun.com>
39485
39486         * lib/human.c (adjust_value): New function.
39487         (human_readable_inexact): Apply rounding style even when
39488         printing approximate values.
39489
39490 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39491
39492         * lib/human.c (human_readable_inexact): Allow an input block
39493         size that is not a multiple of the output block size, and vice versa.
39494         Reported by Piergiorgio Sartor.
39495
39496 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39497
39498         * lib/getdate.y (get_date): Apply relative times after time
39499         zone indicator, not before.  Reported by Todd A. Jacobs.
39500
39501 2000-06-13  Jim Meyering  <meyering@lucent.com>
39502
39503         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
39504
39505         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
39506
39507 2000-06-12  Paul Eggert  <eggert@twinsun.com>
39508
39509         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
39510
39511 2000-06-12  Jim Meyering  <meyering@lucent.com>
39512
39513         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
39514         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
39515         optional argument.
39516         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
39517         the optional argument, `lib'.
39518
39519 2000-06-08  Jim Meyering  <meyering@lucent.com>
39520
39521         * m4/largefile.m4: Remove file (now that it's part of autoconf).
39522
39523 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39524
39525         Rewrite largefile configuration so that we don't need to run
39526         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
39527         AC_CANONICAL_HOST in configure.in -- jmm]
39528
39529         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
39530         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
39531         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
39532         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
39533         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
39534         All uses changed.
39535         Instead of inspecting the output of getconf, try to compile the
39536         test program without and with the macro definition.
39537         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
39538         for getconf.  Instead, check for the needed flags by compiling
39539         test programs.
39540
39541 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39542
39543         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
39544
39545 2000-06-04  Jim Meyering  <meyering@lucent.com>
39546
39547         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
39548         SunOS 4.1.4 for which gid_t is an unsigned type.
39549
39550 2000-06-03  Jim Meyering  <meyering@lucent.com>
39551
39552         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
39553         now that autoconf requires that.
39554
39555         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
39556         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
39557         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
39558
39559 2000-06-03  Jim Meyering  <meyering@lucent.com>
39560
39561         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
39562
39563 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39564
39565         * m4/glibc21.m4: New file.
39566         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
39567
39568 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39569
39570         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
39571         newer, don't install charset.alias.
39572         * lib/config.charset: Change the Linux/glibc rules so they become empty
39573         on glibc-2.1 or newer.
39574
39575 2000-06-02  Jim Meyering  <meyering@lucent.com>
39576
39577         * lib/mountlist.c: Back out last change.  Instead, do this...
39578         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
39579         me_dummy member using the same `ignore'-testing code.
39580         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
39581         fs_type strings.
39582         From Mark D. Roth.
39583
39584 2000-05-29  Jim Meyering  <meyering@lucent.com>
39585
39586         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
39587         mounts with the `ignore' attribute.  Based on a patch from
39588         Mark D. Roth.
39589
39590 2000-05-28  Jim Meyering  <meyering@lucent.com>
39591
39592         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
39593         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39594         * m4/stat.m4: Likewise.
39595         * m4/lstat.m4: Likewise.
39596         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
39597
39598         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
39599         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
39600
39601 2000-05-26  Jim Meyering  <meyering@lucent.com>
39602
39603         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
39604
39605 2000-05-24  Jim Meyering  <meyering@lucent.com>
39606
39607         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
39608         autoconf requires that.
39609         * m4/lib-check.m4: Likewise.
39610         * m4/jm-macros.m4: Likewise.
39611         * m4/strftime.m4: Likewise.
39612
39613         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
39614         AC_CHECK_DECLS, now that autoconf requires that.
39615
39616 2000-05-22  Jim Meyering  <meyering@lucent.com>
39617
39618         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39619         * m4/lstat.m4: Likewise.
39620
39621 2000-05-22  Jim Meyering  <meyering@lucent.com>
39622
39623         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
39624
39625 2000-05-20  Jim Meyering  <meyering@lucent.com>
39626
39627         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
39628         (jm_PREREQ): Use it.
39629
39630 2000-05-18  Jim Meyering  <meyering@lucent.com>
39631
39632         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
39633         back, too, since it may have been modified by allocate_entry.
39634         (hash_delete): Rewrite to use neither the assignment operator
39635         nor the comma operator in an if-expression.
39636
39637 2000-05-15  Paul Eggert  <eggert@twinsun.com>
39638
39639         * lib/closeout.c:
39640         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
39641         Remove; no longer needed.
39642         "quotearg.h": Add include.
39643         (file_name): Do not bother to explicitly initialize to NULL; it's less
39644         efficient on some hosts.
39645         (close_stdout_status): Remove test as to whether stdout was already
39646         closed; it breaks for the case "echo x | sort >&-".
39647         Quote file name colons.
39648         Do not assume that _("write error") lacks format strings.
39649
39650 2000-05-15  Jim Meyering  <meyering@lucent.com>
39651
39652         * lib/version-etc.c (version_etc_copyright): Update the copyright
39653         string used in all --version output.
39654
39655 2000-05-14  Jim Meyering  <meyering@lucent.com>
39656
39657         * lib/closeout.c (close_stdout_set_file_name): New function.
39658         (close_stdout_status): Use new file-scoped global.
39659         Return right away if fstat says the stdout file descriptor is invalid.
39660         * lib/closeout.h (close_stdout_set_file_name): Declare.
39661
39662 2000-05-10  Jim Meyering  <meyering@lucent.com>
39663
39664         * lib/closeout.c [default_exit_status]: New file-scoped variable.
39665         (close_stdout_set_status): New function.
39666         * lib/closeout.h (close_stdout_set_status): Declare.
39667
39668 2000-05-09  Jim Meyering  <meyering@lucent.com>
39669
39670         * m4/gettext.m4: Rename this...
39671         * m4/libintl.m4: ...to this.
39672
39673 2000-05-08  Jim Meyering  <meyering@lucent.com>
39674
39675         * lib/long-options.c: Don't include closeout.h.
39676         (parse_long_options): Don't call close_stdout for --version.
39677
39678 2000-05-06  Paul Eggert  <eggert@twinsun.com>
39679
39680         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
39681         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
39682         2.1.3 bug.  This avoids a clash when files like regex.c define
39683         _GNU_SOURCE.
39684
39685 2000-05-06  Jim Meyering  <meyering@lucent.com>
39686
39687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
39688         (AC_REPLACE_FUNCS): Add strnlen.
39689
39690         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
39691         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
39692
39693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
39694         AC_SEARCH_LIBS call for nanosleep.
39695         (LIB_NANOSLEEP): Set and AC_SUBST.
39696
39697 2000-05-06  Jim Meyering  <meyering@lucent.com>
39698
39699         * lib/strnlen.c: Undefine __strnlen and strnlen.
39700         [!weak_alias]: Define __strnlen to strnlen.
39701
39702         * lib/atexit.c: New file, from libiberty.
39703
39704 2000-05-06  Jim Meyering  <meyering@lucent.com>
39705
39706         * lib/closeout.c (close_stdout_status): Also check for errors on the
39707         stderr stream.
39708
39709 2000-05-05  Jim Meyering  <meyering@lucent.com>
39710
39711         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
39712         AC_SEARCH_LIBS call for clock_gettime.
39713         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
39714
39715         * m4/search-libs.m4: Update from autoconf.
39716
39717         su doesn't work on Solaris 2.6.
39718         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
39719         <shadow.h>.  Reported by Dragos Harabor.
39720
39721 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
39722
39723         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
39724         memcpy instead of xmalloc, xrealloc, path_concat.
39725         (locale_charset): Treat empty environment variables as absent.
39726         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
39727
39728 2000-05-04  Jim Meyering  <meyering@lucent.com>
39729
39730         * lib/getopt.c: Update from glibc.
39731         * lib/obstack.c: Likewise.
39732         * lib/obstack.h: Likewise.
39733         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
39734         file
39735
39736         * lib/regex.h: Likewise.
39737         * lib/strndup.c: Likewise.
39738         * lib/strnlen.c: New file, from glibc.
39739
39740 2000-05-03  Jim Meyering  <meyering@lucent.com>
39741
39742         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
39743
39744 2000-05-02  Paul Eggert  <eggert@twinsun.com>
39745
39746         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
39747         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
39748         compile-time test, rather than inspecting host and OS, to
39749         decide whether to define _LARGEFILE_SOURCE.
39750
39751 2000-05-01  Jim Meyering  <meyering@lucent.com>
39752
39753         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
39754
39755         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
39756         Based on a patch from Bruno Haible.
39757
39758 2000-05-01  Jim Meyering  <meyering@lucent.com>
39759
39760         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
39761
39762 2000-04-29  Jim Meyering  <meyering@lucent.com>
39763
39764         * lib/path-concat.c: Declare strdup only if it's not defined.
39765         * lib/canon-host.c: Likewise.
39766
39767 2000-04-28  Jim Meyering  <meyering@lucent.com>
39768
39769         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
39770         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
39771         is included first, then limits.h is included by locale.h by libintl.h.
39772         From John David Anglin.
39773
39774 2000-04-25  Jim Meyering  <meyering@lucent.com>
39775
39776         * lib/makepath.c (S_IRWXUGO): Define.
39777         (make_path): Always perform explicit chmod if MODE specifies any
39778         of the `special' permission bits.  Prompted by a bug report against
39779         install from Mate Wierdl and Joost van Baal.
39780
39781 2000-04-18  Jim Meyering  <meyering@lucent.com>
39782
39783         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
39784         (jm_PREREQ): Use it.
39785
39786 2000-04-18  Jim Meyering  <meyering@lucent.com>
39787
39788         * lib/README: New file.
39789
39790         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
39791         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
39792
39793 2000-04-17  Jim Meyering  <meyering@lucent.com>
39794
39795         Get it right :-)
39796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
39797         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
39798         Suggestion from Akim Demaille.
39799
39800 2000-04-17  Jim Meyering  <meyering@lucent.com>
39801
39802         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
39803         the definition of it to rpl_strftime also defined-away the system's
39804         declaration.
39805
39806 2000-04-15  Jim Meyering  <meyering@lucent.com>
39807
39808         Use `C' to denote so-called `contiguous' files, the same way
39809         that tar does.
39810         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
39811         (ftypelet): Use S_ISCTG.
39812         From Michael Deutschmann.
39813
39814 2000-04-14  Jim Meyering  <meyering@lucent.com>
39815
39816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
39817         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
39818         clobbered.
39819
39820 2000-04-14  Jim Meyering  <meyering@lucent.com>
39821
39822         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
39823
39824 2000-04-13  Jim Meyering  <meyering@lucent.com>
39825
39826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
39827         AH_VERBATIM to insert required #ifndef into config.h.in.
39828         Suggestion from Akim Demaille.
39829
39830 2000-04-12  Jim Meyering  <meyering@lucent.com>
39831
39832         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
39833         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
39834         Christian Krackowizer.
39835
39836         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
39837         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
39838         (AC_SYS_LARGEFILE): Require.
39839         (AM_C_PROTOTYPES): Require.
39840
39841 2000-04-08  Jim Meyering  <meyering@lucent.com>
39842
39843         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
39844         names don't conflict.  Reported by Eli Zaretskii.
39845
39846 2000-04-07  Jim Meyering  <meyering@lucent.com>
39847
39848         * lib/putenv.c: Move inclusion of errno.h so it follows that of
39849         sys/types.h, to work around system header problems on AIX 3.2.5.
39850         From Bruno Haible.
39851
39852 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
39853
39854         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
39855         bug.  Deal with the different error behavior of Irix iconv.
39856
39857 2000-04-05  Paul Eggert  <eggert@twinsun.com>
39858
39859         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
39860         IRIX if the installer said otherwise.
39861
39862 2000-04-05  Jim Meyering  <meyering@lucent.com>
39863
39864         Portability tweaks required for ultrix4.3.
39865         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
39866         (jm_CHECK_DECLS): Add getutent to the list of functions.
39867         (_jm_DECL_HEADERS): Add utmpx.h.
39868         From John David Anglin.
39869
39870         * m4/strftime.m4: Back out the 2000-04-02 change.
39871         Instead of that change, simply undefine putenv in the test program.
39872
39873 2000-04-05  Jim Meyering  <meyering@lucent.com>
39874
39875         Portability tweaks required for ultrix4.3.
39876         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
39877         getutent.
39878         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
39879         * lib/canon-host.c: Declare strdup.
39880         * lib/path-concat.c: Likewise.
39881         From John David Anglin.
39882
39883 2000-04-04  Jim Meyering  <meyering@lucent.com>
39884
39885         Be more DOS 8.3-friendly.
39886         * lib/ref-add.sin: Renamed from ref-add.sed.in.
39887         * lib/ref-del.sin: Renamed from ref-del.sed.in.
39888         * lib/Makefile.am: Reflect renaming.
39889         Reported by Eli Zaretskii.
39890
39891         Use a temporary file name that won't clash with `charset.alias'
39892         in the DOS 8.3 name space.
39893         * lib/Makefile.am (charset_tmp): Define.
39894         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
39895         (uninstall-local): Likewise.
39896         Reported by Eli Zaretskii.
39897
39898 2000-04-03  Jim Meyering  <meyering@lucent.com>
39899
39900         * m4/gettext.m4: Fix typo in comment.
39901
39902         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
39903         textutils/configure.in).  Suggestion from Paul Eggert.
39904         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
39905
39906 2000-04-02  Paul Eggert  <eggert@twinsun.com>
39907
39908         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
39909         variable in the shell rather than using putenv, which isn't
39910         portable.  This avoids the configure-time inter-test dependency
39911         on the potentially-renamed putenv function.
39912
39913 2000-03-30  Paul Eggert  <eggert@twinsun.com>
39914
39915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
39916         before checking struct stat.st_blksize, so that
39917         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
39918
39919 2000-03-29  Paul Eggert  <eggert@twinsun.com>
39920
39921         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
39922         since strftime.c uses HAVE_STRFTIME to decide whether to use
39923         the underlying strftime.
39924
39925 2000-03-29  Paul Eggert  <eggert@twinsun.com>
39926
39927         * lib/time/strftime.c (my_strftime): Make sure we call the system
39928         strftime, not ourselves, when invoking the underlying strftime.
39929
39930 2000-03-24  Jim Meyering  <meyering@lucent.com>
39931
39932         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
39933         (charset_alias): Define.
39934         (install-exec-local): Factor out common code.
39935         (uninstall-local): Split lines longer than 80.
39936         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
39937         (SUFFIXES): Define.
39938         (.sed.in.sed): New rule.  Don't redirect directly to $@.
39939         (CLEANFILES): Add ref-add.sed and ref-del.sed.
39940
39941 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
39942
39943         * lib/config.charset: Output a line containing "Packages using this
39944         file".
39945         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
39946         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
39947         ref-del.sed): New rules.
39948
39949 2000-03-17  Jim Meyering  <meyering@lucent.com>
39950
39951         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
39952         Otherwise, include <strings.h>
39953
39954 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
39955
39956         * lib/unicodeio.c (utf8_wctomb): New function.
39957         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
39958         format instead of in UCS-4 with platform dependent endianness.
39959
39960 2000-03-10  Jim Meyering  <meyering@lucent.com>
39961
39962         * m4/lib-check.m4: Look for getspnam in -lgen, too.
39963         From Marco Franzen.
39964
39965 2000-03-07  Paul Eggert  <eggert@twinsun.com>
39966
39967         * lib/savedir.c (savedir): Work even if directory size is
39968         negative; this can happen with some screwy NFS configurations.
39969
39970 2000-03-06  Jim Meyering  <meyering@lucent.com>
39971
39972         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
39973         if it's NULL (because we ran out of memory).  From Bruno Haible.
39974
39975 2000-03-05  Jim Meyering  <meyering@lucent.com>
39976
39977         * lib/localcharset.c ("path-concat.h"): Include.
39978         (get_charset_aliases): Use path_concat instead of ANSI string
39979         concatenation.
39980
39981         * lib/unicodeio.h (PARAMS): Define.
39982         Use it to guard prototype.
39983
39984 2000-03-04  Jim Meyering  <meyering@lucent.com>
39985
39986         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
39987         for lib/localcharset.c.
39988
39989 2000-03-04  Jim Meyering  <meyering@lucent.com>
39990
39991         * lib/Makefile.am (install-exec-local): Create $(libdir) before
39992         installing into it.
39993         (uninstall-local): Uncomment this rule so `make distcheck' works
39994         once again.
39995
39996         * lib/unicodeio.c (<errno.h>): Include it.
39997         (errno): Declare if not defined.
39998
39999         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
40000
40001         * lib/config.charset: New version, incorporating remarks from a linux
40002         i18n mailing list.  From Bruno Haible.
40003
40004 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
40005
40006         * m4/codeset.m4: New file.
40007         * m4/iconv.m4: New file.
40008         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
40009
40010 2000-03-03  Jim Meyering  <meyering@lucent.com>
40011
40012         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
40013
40014 2000-03-02  Jim Meyering  <meyering@lucent.com>
40015
40016         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
40017         the messages come out on separate lines.
40018
40019         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
40020         rather than jm_CHECK_DECLARATIONS.
40021         * m4/decl.m4: Remove now-unused file.
40022
40023         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
40024         geteuid.
40025
40026 2000-03-02  Jim Meyering  <meyering@lucent.com>
40027
40028         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
40029
40030 2000-03-01  Jim Meyering  <meyering@lucent.com>
40031
40032         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
40033         * lib/unicodeio.c: Likewise.
40034
40035 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
40036
40037         * lib/config.charset: New file.
40038         * lib/localcharset.c: New file.
40039         * lib/unicodeio.h, lib/unicodeio.c: New files.
40040         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
40041         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
40042         (noinst_HEADERS): Add unicodeio.h.
40043         (all-local, install-exec-local, charset.alias): New targets.
40044
40045 2000-02-28  Paul Eggert  <eggert@twinsun.com>
40046
40047         * lib/quotearg.c (ALERT_CHAR): New macro.
40048         (quotearg_buffer_restyled): Use it.
40049
40050 2000-02-27  Jim Meyering  <meyering@lucent.com>
40051
40052         * m4/check-decl.m4: Add getenv to the list.
40053
40054 2000-02-27  Jim Meyering  <meyering@lucent.com>
40055
40056         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
40057         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
40058
40059         * lib/backupfile.c: Guard inclusion of stdlib.h with
40060         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
40061         Declare malloc if needed.
40062
40063         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
40064         `#ifndef HAVE_DECL..'
40065         now that autoconf always defines the HAVE_DECL_ symbols.
40066         * lib/human.c: Likewise.
40067         * lib/same.c: Likewise.
40068         * lib/strtoumax.c: Likewise.
40069
40070         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
40071         declaration check was not run.
40072         * lib/hash.c: Likewise.
40073         * lib/human.c: Likewise.
40074         * lib/same.c: Likewise.
40075         * lib/strtoumax.c: Likewise.
40076
40077         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
40078         `.', then first look up the entire `.'-containing string as a login
40079         name.
40080
40081 2000-02-23  Jim Meyering  <meyering@lucent.com>
40082
40083         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
40084         in place of my hack.
40085
40086 2000-02-18  Paul Eggert  <eggert@twinsun.com>
40087
40088         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
40089         (textint): New typedef.
40090         (parser_control): Member year changed from int to textint.
40091         All uses changed.
40092         (YYSTYPE): Removed; replaced by %union with int and textint members.
40093         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
40094         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
40095         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
40096         (tSNUMBER, tUNUMBER): Now of type <textintval>.
40097         (date, number, to_year): Use width of number in digits, not its value,
40098         to determine whether it's a 2-digit year, or a 2-digit time.
40099         (yylex): Store number of digits of numeric tokens.
40100         Reported by John Kendall.
40101
40102         (parser_control): Changed from struct parser_control to typedef (for
40103         consistency).  All uses changed.
40104
40105         (tID): Removed; not used.
40106         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
40107
40108 2000-02-14  Paul Eggert  <eggert@twinsun.com>
40109
40110         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
40111         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
40112
40113 2000-02-12  Jim Meyering  <meyering@lucent.com>
40114
40115         * lib/userspec.c (ISDIGIT): Define it.
40116         (isdigit): Remove definition.
40117         (is_number): Use ISDIGIT, not isdigit.
40118         <libintl.h>: Include.
40119         (_ and N_): Define.
40120         (parse_user_spec): Mark translatable strings.
40121
40122 2000-02-10  Jim Meyering  <meyering@lucent.com>
40123
40124         With these changes, nanosleep.[ch] are finally enough like the other
40125         lib/* replacement files to compile on a few more losing systems.
40126
40127         * lib/nanosleep.h: Don't include config.h.
40128         Remove prototype from declaration of nanosleep.
40129         (PARAMS): Remove now-unneeded definition.
40130         * lib/nanosleep.c: #undef nanosleep.
40131         (rpl_nanosleep): Rename from nanosleep.
40132
40133 2000-02-10  Jim Meyering  <meyering@lucent.com>
40134
40135         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
40136         gnu_nanosleep to rpl_nanosleep.
40137
40138 2000-02-09  Jim Meyering  <meyering@lucent.com>
40139
40140         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
40141         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
40142
40143 2000-02-08  Akim Demaille  <akim@epita.fr>
40144
40145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
40146         `[' and `]' and remove uses of `changequote'.
40147         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
40148         (AC_SYS_LARGEFILE): Likewise.
40149         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40150         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
40151         of changequote.
40152         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
40153         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
40154         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
40155         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
40156
40157 2000-02-05  Jim Meyering  <meyering@lucent.com>
40158
40159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
40160         Remove explicit use of AC_HEADER_TIME.  It is required by
40161         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
40162         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
40163         in autoconf whereby the expansion of the latter ended up preceding
40164         the expansion of its prerequisite, AC_HEADER_TIME.
40165         Reported by Volker Borchert.
40166
40167 2000-02-03  Jim Meyering  <meyering@lucent.com>
40168
40169         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
40170
40171 2000-02-03  Jim Meyering  <meyering@lucent.com>
40172
40173         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
40174         rather than with `#if HAVE_UTMPNAME'.
40175
40176 2000-02-02  Jim Meyering  <meyering@lucent.com>
40177
40178         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
40179         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
40180         Reported by Eli Zaretskii.
40181
40182 2000-02-01  Jim Meyering  <meyering@lucent.com>
40183
40184         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
40185
40186 2000-01-31  Jim Meyering  <meyering@lucent.com>
40187
40188         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
40189         functions.  Add the time.h and sys/time.h headers along with the
40190         AC_REQUIRE'ment of AC_HEADER_TIME.
40191
40192 2000-01-31  Jim Meyering  <meyering@lucent.com>
40193
40194         * lib/nanosleep.h (nanosleep): Guard declaration with
40195         `#if ! HAVE_DECL_NANOSLEEP'.
40196         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
40197         the declaration in that vendor's sys/timers.h.
40198         Reported by Christian Krackowizer.
40199
40200         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
40201         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
40202         (ISPRINT): Likewise.
40203         Reported by Tom Tromey.
40204
40205 2000-01-30  Jim Meyering  <meyering@lucent.com>
40206
40207         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
40208
40209         * m4/prereq.m4 (utmp_includes): Define.
40210         Check for ut_user and ut_name members in both struct utmpx
40211         and struct utmp.
40212
40213 2000-01-30  Jim Meyering  <meyering@lucent.com>
40214
40215         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
40216         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
40217         header files where only utmpx.ut_user is declared.
40218
40219         * lib/readutmp.h (UT_USER): Define.
40220
40221 2000-01-29  Jim Meyering  <meyering@lucent.com>
40222
40223         * m4/lib-check.m4: New file containing library-related checks from
40224         fileutils and sh-utils (textutils had none).
40225
40226 2000-01-28  Jim Meyering  <meyering@lucent.com>
40227
40228         * m4/perl.m4: Change format of warning message to look more like that
40229         from the missing script.  Suggestion from François Pinard.
40230
40231 2000-01-25  Jim Meyering  <meyering@lucent.com>
40232
40233         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
40234         well as time.h in the compile check.
40235         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
40236         Fix typo in cross-compiling case: s/yes/no/.
40237
40238 2000-01-23  Jim Meyering  <meyering@lucent.com>
40239
40240         * m4/jm-macros.m4: Move df-related tests here from
40241         fileutils/configure.in
40242
40243         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
40244         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
40245
40246         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
40247         s/space/ac_fsusage_space/.
40248         (jm_FILE_SYSTEM_USAGE): Take two parameters.
40249
40250         * m4/ftruncate.m4: New file (derived from part of
40251         fileutils/configure.in).
40252         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
40253         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
40254
40255         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
40256         AC_SUBST these here, rather than just in sh-util/configure.in, so
40257         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
40258         all the same.
40259         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
40260         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
40261         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
40262         (AC_SUBST(POW_LIBM)): Likewise.
40263         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
40264
40265 2000-01-23  Jim Meyering  <meyering@lucent.com>
40266
40267         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
40268         obstack.c.
40269
40270 2000-01-22  Jim Meyering  <meyering@lucent.com>
40271
40272         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
40273
40274         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
40275
40276         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
40277         configure.in
40278         (AC_CHECK_HEADERS): Likewise for sh-utils.
40279         (AC_CHECK_HEADERS): Likewise for textutils.
40280         Merge the three lists of headers.
40281
40282         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
40283         from fileutils' configure.in.
40284
40285         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
40286         code. Moved tests into their own function (_jm_DECL_HEADERS) in
40287         check-decl.m4.
40288
40289         * m4/check-decl.m4: Use #if rather than #ifdef.
40290         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
40291         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
40292         (_jm_DECL_HEADERS): Define new function.
40293         (jm_CHECK_DECLARATIONS): Require it.
40294
40295 2000-01-22  Jim Meyering  <meyering@lucent.com>
40296
40297         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
40298         [! HAVE_DECL_STRTOULL]: Declare strtoull.
40299         Required for some AIX systems.  Reported by Christian Krackowizer.
40300         [TESTING] (main): New function.
40301
40302         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
40303         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
40304         letters.
40305
40306         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
40307         iswprint.
40308
40309         * lib/strverscmp.c (ISDIGIT): Define.
40310         (strverscmp): Use ISDIGIT, not isdigit.
40311
40312 2000-01-19  Jim Meyering  <meyering@lucent.com>
40313
40314         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
40315         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
40316         defines `struct timespec' in <sys/time.h>
40317
40318         * m4/c-bs-a.m4: Remove uses of changequote altogether.
40319         Thanks to Akim for explaining.
40320
40321 2000-01-17  Paul Eggert  <eggert@twinsun.com>
40322
40323         * lib/nanosleep.c (nanosleep):
40324         Don't use SA_INTERRUPT to decide whether to call sigaction, as
40325         POSIX.1 doesn't require SA_INTERRUPT and some systems
40326         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
40327         it's been part of POSIX.1 since day 1 (in 1988).
40328
40329 2000-01-17  Jim Meyering  <meyering@lucent.com>
40330
40331         * lib/interlock: Remove unused file.  Reported by François Pinard.
40332
40333 2000-01-16  Paul Eggert  <eggert@twinsun.com>
40334
40335         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
40336         alert, backslash, formfeed, and vertical tab unnecessarily in
40337         shell quoting style.
40338
40339 2000-01-16  Jim Meyering  <meyering@lucent.com>
40340
40341         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
40342         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
40343         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
40344         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
40345
40346 2000-01-16  Jim Meyering  <meyering@lucent.com>
40347
40348         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
40349         because the latter didn't work.
40350
40351 2000-01-15  Jim Meyering  <meyering@lucent.com>
40352
40353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
40354         (AC_REPLACE_FUNCS): Add memcpy and memset.
40355         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
40356         Add strpbrk.
40357         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
40358
40359 2000-01-12  Jim Meyering  <meyering@lucent.com>
40360
40361         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
40362         (jm_PREREQ): Use it.
40363         (jm_PREREQ_READUTMP): New macro.
40364         (jm_PREREQ): Use it.
40365
40366 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40367
40368         Quote multibyte characters correctly.
40369         * m4/c-bs-a.m4: New file.
40370         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
40371         (jm_PREREQ): Use it.
40372
40373 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40374
40375         * m4/uintmax_t.m4: Port to autoconf 2.13.
40376
40377 2000-01-08  Jim Meyering  <meyering@ascend.com>
40378
40379         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
40380         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
40381
40382 2000-01-04  Jim Meyering  <meyering@ascend.com>
40383
40384         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
40385         jm_STRUCT_DIRENT_D_TYPE.
40386         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
40387         jm_STRUCT_DIRENT_D_INO.
40388         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
40389         jm_STRUCT_UTIMBUF.
40390         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
40391         renamings.
40392         * m4/utime.m4: Likewise.
40393
40394         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
40395         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
40396
40397 2000-01-03  Paul Eggert  <eggert@twinsun.com>
40398
40399         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
40400         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
40401
40402 2000-01-02  Jim Meyering  <meyering@ascend.com>
40403
40404         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
40405         remember if this is necessary.
40406
40407 1999-12-26  Jim Meyering  <meyering@ascend.com>
40408
40409         * m4/jm-macros.m4: Use it here.
40410         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
40411
40412 1999-12-23  Jim Meyering  <meyering@ascend.com>
40413
40414         * m4/jm-macros.m4: Check for clock_gettime (moved from
40415         fileutils/configure.in)
40416         Check for gettimeofday.
40417
40418 1999-12-20  Jim Meyering  <meyering@ascend.com>
40419
40420         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
40421         autoconf-2.14a-1999-12-20.
40422
40423 1999-12-19  Jim Meyering  <meyering@ascend.com>
40424
40425         * m4/lstat-slash.m4: New file.
40426         * m4/jm-macros.m4: Use the new macro:
40427         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40428
40429 1999-12-07  Jim Meyering  <meyering@ascend.com>
40430
40431         * m4/perl.m4: Require that File::Compare be available, too.
40432         Too many systems seem to lack it.
40433
40434         * m4/strftime.m4: Add checks for most of the cpp macros tested in
40435         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
40436
40437 1999-11-18  Paul Eggert  <eggert@twinsun.com>
40438
40439         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
40440         problem with the QNX 4.25 shell, which doesn't propagate exit
40441         status of failed commands inside shell assignments.
40442
40443 1999-11-17  Jim Meyering  <meyering@ascend.com>
40444
40445         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
40446
40447 1999-11-07  Jim Meyering  <meyering@ascend.com>
40448
40449         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
40450
40451 1999-11-06  Jim Meyering  <meyering@ascend.com>
40452
40453         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
40454         * m4/jm-macros.m4 (jm_MACROS): Use it here.
40455
40456 1999-11-05  Jim Meyering  <meyering@ascend.com>
40457
40458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
40459         configure.in of textutils, fileutils, and sh-utils into this one
40460         (shared between those packages) file.
40461         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
40462         AC_STRUCT_ST_BLKSIZE.
40463
40464 1999-11-03  Jim Meyering  <meyering@ascend.com>
40465
40466         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
40467         of AC_CHECK_TYPE checks includes unistd.h.
40468         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
40469         Suggestion from Akim Demaille.
40470
40471 1999-10-30  Jim Meyering  <meyering@ascend.com>
40472
40473         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
40474         m4-quoted string.
40475         * m4/ls-mntd-fs.m4: Likewise.
40476         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
40477         * m4/jm-winsz1.m4: Likewise.
40478
40479         * m4/const.m4: Remove file, since the fix made it into the experimental
40480         version of autoconf.
40481         * m4/mktime.m4: Likewise.
40482
40483         * m4/check-type.m4: Remove file, now that the latest version of
40484         AC_CHECK_TYPE takes a third arg to specify additional #includes.
40485
40486         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
40487         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
40488         AC_CHECK_TYPE.
40489
40490 1999-10-04  Jim Meyering  <meyering@ascend.com>
40491
40492         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
40493
40494 1999-09-22  Paul Eggert  <eggert@twinsun.com>
40495
40496         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
40497         2.95.1 bug with HP-UX 10.20.
40498
40499 1999-09-17  Jim Meyering  <meyering@ascend.com>
40500
40501         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
40502         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
40503         due to missing strdup (against sh-utils-2.0).
40504
40505 1999-08-29  Jim Meyering  <meyering@ascend.com>
40506
40507         * m4/jm-macros.m4: Require jm_BISON.
40508         * m4/bison.m4: New file.
40509
40510 1999-08-17  Paul Eggert  <eggert@twinsun.com>
40511
40512         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
40513         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
40514
40515 1999-08-05  Jim Meyering  <meyering@ascend.com>
40516
40517         * m4/getline.m4: Rename test file from conftestdata to conftest.data
40518         to avoid conflicts with `conftest' on 8+3 filesystems.
40519         Suggestion from Eli Zaretskii.
40520
40521 1999-08-04  Jim Meyering  <meyering@ascend.com>
40522
40523         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
40524         fileutils and sh-utils (textutils's getline test was inadequate).
40525         (AM_FUNC_GETLINE): Run this test.
40526         (AC_CHECK_FUNCS): Check for getdelim.
40527         Reported by Bob Proulx.
40528
40529 1999-08-02  Jim Meyering  <meyering@ascend.com>
40530
40531         * m4/jm-macros.m4: Add a comment.
40532
40533 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40534
40535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
40536         <inttypes.h> defines strtoumax as a macro (and not as a
40537         function).
40538
40539 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40540
40541         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
40542         that we can shift, multiply and divide unsigned long long
40543         values; Ultrix cc can't do it.
40544
40545 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40546
40547         * m4/mktime.m4: New file, which is a preview of what should appear
40548         in the next public autoconf release.
40549
40550 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40551
40552         * m4/lfs.m4: Remove this file.
40553         * m4/largefile.m4: New file.  It contains the old contents of
40554         lfs.m4, except that all names with prefix AC_LFS have been
40555         changed to use the prefix AC_SYS_LARGEFILE instead, to be
40556         compatible with future autoconf versions.  Also, some minor m4
40557         quoting problems have been fixed.
40558
40559 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40560
40561         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
40562         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
40563         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
40564         and simplify the shell code.
40565
40566 1999-08-01  Jim Meyering  <meyering@ascend.com>
40567
40568         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
40569         m4.
40570
40571 1999-07-20  Jim Meyering  <meyering@ascend.com>
40572
40573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
40574
40575 1999-07-15  Jim Meyering  <meyering@ascend.com>
40576
40577         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
40578
40579 1999-05-22  Jim Meyering  <meyering@ascend.com>
40580
40581         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
40582
40583 1999-05-20  Jim Meyering  <meyering@ascend.com>
40584
40585         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
40586         Add a colon after each `then' in case $4 is empty.
40587
40588 1999-05-16  Jim Meyering  <meyering@ascend.com>
40589
40590         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
40591
40592 1999-05-10  Jim Meyering  <meyering@ascend.com>
40593
40594         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
40595
40596         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
40597         AC_FUNC_MKTIME.
40598
40599 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
40600
40601         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
40602
40603 1999-05-04  Paul Eggert  <eggert@twinsun.com>
40604
40605         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
40606         not CPPFLAGS, so that linking works correctly in IRIX.
40607
40608 1999-04-30  Paul Eggert  <eggert@twinsun.com>
40609
40610         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
40611
40612 1999-04-20  Paul Eggert  <eggert@twinsun.com>
40613
40614         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
40615         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
40616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
40617         jm_AC_TYPE_UNSIGNED_LONG_LONG.
40618         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
40619
40620         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
40621
40622 1999-04-20  Jim Meyering  <meyering@ascend.com>
40623
40624         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
40625         AC_REPLACE xstroull if necessary.  From Paul Eggert.
40626         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
40627
40628 1999-04-18  Jim Meyering  <meyering@ascend.com>
40629
40630         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
40631         * m4/jm-macros.m4: Use it.
40632
40633 1999-04-06  Jim Meyering  <meyering@ascend.com>
40634
40635         * m4/strftime.m4: Remove test for %f.
40636
40637 1999-03-29  Jim Meyering  <meyering@ascend.com>
40638
40639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
40640         superset of the AC_TYPE_* checks in the textutils, fileutils,
40641         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
40642         AC_TYPE_PID_T.
40643
40644 1999-03-28  Jim Meyering  <meyering@ascend.com>
40645
40646         * m4/jm-macros.m4: Define GNU_PACKAGE here.
40647         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
40648         replaced e.g., in the *.sh files of the sh-utils.
40649
40650 1999-03-20  Jim Meyering  <meyering@ascend.com>
40651
40652         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
40653         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
40654         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
40655
40656 1999-03-19  Jim Meyering  <meyering@ascend.com>
40657
40658         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
40659
40660 1999-03-12  Jim Meyering  <meyering@ascend.com>
40661
40662         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
40663
40664 1999-03-07  Jim Meyering  <meyering@ascend.com>
40665
40666         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
40667         declared.
40668
40669 1999-02-17  Jim Meyering  <meyering@ascend.com>
40670
40671         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
40672         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
40673
40674 1999-02-07  Jim Meyering  <meyering@ascend.com>
40675
40676         * m4/group-member.m4: New file -- extracted from sh-utils'
40677         configure.in.
40678
40679         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
40680         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
40681
40682 1999-02-06  Jim Meyering  <meyering@ascend.com>
40683
40684         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
40685         * m4/fnmatch.m4: Likewise.
40686         * m4/getgroups.m4: Likewise.
40687         * m4/lstat.m4: Likewise.
40688         * m4/malloc.m4: Likewise.
40689         * m4/putenv.m4: Likewise.
40690         * m4/realloc.m4: Likewise.
40691         * m4/regex.m4: Likewise.
40692         * m4/stat.m4: Likewise.
40693         * m4/strftime.m4: Likewise.
40694         Suggestion from Alain Magloire.
40695
40696         * m4/chown.m4: Use `.$ac_objext', not `.o'.
40697         * m4/fnmatch.m4: Likewise.
40698         * m4/getgroups.m4: Likewise.
40699         * m4/getline.m4: Likewise.
40700         * m4/lstat.m4: Likewise.
40701         * m4/malloc.m4: Likewise.
40702         * m4/memcmp.m4: Likewise.
40703         * m4/putenv.m4: Likewise.
40704         * m4/realloc.m4: Likewise.
40705         * m4/regex.m4: Likewise.
40706         * m4/stat.m4: Likewise.
40707         * m4/strftime.m4: Likewise.
40708         Suggestion from Alain Magloire.
40709
40710         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
40711         an argument.
40712
40713         * m4/regex.m4: Add a run-time Test for proper operation of
40714         re_compile_pattern.
40715
40716 1999-01-31  Jim Meyering  <meyering@ascend.com>
40717
40718         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
40719
40720 1999-01-30  Jim Meyering  <meyering@ascend.com>
40721
40722         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
40723
40724         * m4/jm-mktime.m4: Make this a wrapper around the official
40725         AM_FUNC_MKTIME rather than my private copy, now that the official one
40726         is up to date.
40727         * m4/mktime.m4: Remove file.
40728
40729         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
40730         * m4/uptime.m4: Likewise.
40731         * m4/uintmax_t.m4: Likewise.
40732
40733 1999-01-28  Jim Meyering  <meyering@ascend.com>
40734
40735         * m4/jm-macros.m4: Use jm_AFS.
40736         * m4/afs.m4: New file (from fileutils' configure.in).
40737
40738         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
40739         * m4/chown.m4: Likewise.
40740         * m4/d-ino.m4: Likewise.
40741         * m4/d-type.m4: Likewise.
40742         * m4/fnmatch.m4: Likewise.
40743         * m4/getgroups.m4: Likewise.
40744         * m4/gettext.m4: Likewise.
40745         * m4/jm-mktime.m4: Likewise.
40746         * m4/jm-winsz2.m4: Likewise.
40747         * m4/lcmessage.m4: Likewise.
40748         * m4/ls-mntd-fs.m4: Likewise.
40749         * m4/malloc.m4: Likewise.
40750         * m4/memcmp.m4: Likewise.
40751         * m4/putenv.m4: Likewise.
40752         * m4/realloc.m4: Likewise.
40753         * m4/st_mtim.m4: Likewise.
40754         * m4/strftime.m4: Likewise.
40755
40756 1999-01-16  Jim Meyering  <meyering@ascend.com>
40757
40758         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
40759         (ARGMATCH_DIE_DECL): Define.
40760
40761 1999-01-12  Jim Meyering  <meyering@ascend.com>
40762
40763         * m4/Makefile.am.in: Rewrite to avoid using fmt.
40764         Reported by Lars Hecking.
40765
40766 1999-01-10  Jim Meyering  <meyering@ascend.com>
40767
40768         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
40769         gross kludge.
40770         * m4/inttypes_h.m4: Likewise.
40771         * m4/lstat.m4: Likewise.
40772         * m4/malloc.m4: Likewise.
40773         * m4/readdir.m4: Likewise.
40774         * m4/realloc.m4: Likewise.
40775         * m4/st_dm_mode.m4: Likewise.
40776         * m4/stat.m4: Likewise.
40777         * m4/utimbuf.m4: Likewise.
40778         * m4/utimes.m4: Likewise.
40779
40780         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
40781         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
40782         comments in config.h.in are meaningful.
40783
40784         * m4/jm-macros.m4: Require autoconf-2.13 here.
40785
40786         * m4/regex.m4: By default, don't use the included regex.c on systems
40787         with glibc 2.  Suggestion from Uli Drepper.
40788
40789 1999-01-02  Jim Meyering  <meyering@ascend.com>
40790
40791         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
40792
40793 1998-12-18  Jim Meyering  <meyering@ascend.com>
40794
40795         * m4/Makefile.am.in (Makefile.am): Simplify rule.
40796         Based on a suggestion from Lars Hecking.
40797
40798 1998-11-16  Paul Eggert  <eggert@twinsun.com>
40799
40800         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
40801
40802 1998-11-16  Jim Meyering  <meyering@ascend.com>
40803
40804         * m4/lfs.m4: Double-quote the `uname...` expression.
40805
40806 1998-11-14  Jim Meyering  <meyering@ascend.com>
40807
40808         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
40809         * m4/stat.m4: Likewise.
40810
40811 1998-11-03  Jim Meyering  <meyering@ascend.com>
40812
40813         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
40814         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
40815
40816 1998-10-18  Jim Meyering  <meyering@ascend.com>
40817
40818         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
40819
40820 1998-10-17  Jim Meyering  <meyering@ascend.com>
40821
40822         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
40823         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
40824         calls for those previously hard-coded headers.  Instead, take a new
40825         parameter.
40826         (jm_CHECK_DECLARATIONS): Reflect interface change.
40827         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
40828         (jm_CHECK_DECL_LOCALTIME_R): New macro.
40829
40830         * m4/mktime.m4: Test for spring-forward gap before long-running test.
40831
40832 1998-10-14  Jim Meyering  <meyering@ascend.com>
40833
40834         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
40835         instead of "TZ=America/Vancouver".  From Paul Eggert.
40836
40837 1998-10-11  Jim Meyering  <meyering@ascend.com>
40838
40839         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
40840         This adds a test for a recently added compatibility fix for mktime.c.
40841         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
40842
40843 1998-09-27  Jim Meyering  <meyering@ascend.com>
40844
40845         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
40846
40847         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
40848         ../configure.in, including a change from Gordon Matzigkeit to allow
40849         cross-compiling for the Hurd.
40850
40851         * m4/glibc.m4: New file/macro to test for the GNU C Library
40852         versions 1 and 2.  From Gordon Matzigkeit.
40853         Indent.
40854
40855 1998-09-21  Jim Meyering  <meyering@ascend.com>
40856
40857         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
40858
40859 1998-08-18  Paul Eggert  <eggert@twinsun.com>
40860
40861         Port nanosecond-resolution times to UnixWare 2.1.2 and
40862         pedantic Solaris 2.6.
40863
40864         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
40865         AC_STRUCT_ST_MTIM.
40866         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
40867         Generate name of ns member, instead of just 1 or undef.
40868         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
40869
40870 1998-08-15  Jim Meyering  <meyering@ascend.com>
40871
40872         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
40873         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
40874         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
40875         instead of jm_TYPE_SSIZE_T.
40876
40877 1998-08-12  Jim Meyering  <meyering@ascend.com>
40878
40879         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
40880
40881 1998-08-02  Jim Meyering  <meyering@ascend.com>
40882
40883         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
40884         in acconfig.h manually.
40885
40886 1998-07-31  Paul Eggert  <eggert@twinsun.com>
40887
40888         * m4/st_mtim.m4: New file.
40889
40890 1998-07-28  Jim Meyering  <meyering@ascend.com>
40891
40892         * m4/utimes.m4: Undef stat.
40893
40894 1998-07-25  Jim Meyering  <meyering@ascend.com>
40895
40896         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
40897         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
40898
40899 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
40900
40901         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
40902         uid and gid actually remain unchanged.
40903
40904 1998-07-07  Jim Meyering  <meyering@ascend.com>
40905
40906         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
40907
40908 1998-07-04  Jim Meyering  <meyering@ascend.com>
40909
40910         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
40911         to prove that this macro can be used in packages without regex.c.
40912
40913 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
40914
40915         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
40916         is to be used.
40917
40918 1998-07-03  Jim Meyering  <meyering@ascend.com>
40919
40920         * m4/gettext.m4: Add -lintl if it's found to be necessary.
40921
40922         * m4/gettext.m4: New file -- from gettext-0.10.35.
40923         * m4/lcmessage.m4: Likewise.
40924         * m4/progtest.m4: Likewise.
40925
40926         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
40927         * m4/jm-macros.m4: Require the new macro.
40928
40929 1998-06-29  Jim Meyering  <meyering@ascend.com>
40930
40931         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
40932         for the definition of NGROUPS (used in a system header included
40933         by sys/mount.h).
40934
40935 1998-06-28  Jim Meyering  <meyering@ascend.com>
40936
40937         * m4/ls-mntd-fs.m4: New file.
40938         * m4/fstypename.m4: New file.
40939
40940         * m4/jm-macros.m4: Require the new macro.
40941         * m4/jm-glibc-io.m4: New file.
40942
40943 1998-05-19  Jim Meyering  <meyering@ascend.com>
40944
40945         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
40946         * m4/lchown.m4: New file.
40947
40948         * m4/Makefile.am.in: New file.
40949         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
40950
40951 1998-05-14  Jim Meyering  <meyering@ascend.com>
40952
40953         * m4/Makefile.am (EXTRA_DIST): Add them.
40954         * m4/jm-macros.m4: New file.
40955         * m4/utimbuf.m4: New file.
40956
40957 1998-05-12  Jim Meyering  <meyering@ascend.com>
40958
40959         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
40960
40961 1998-05-11  Jim Meyering  <meyering@ascend.com>
40962
40963         * m4/isc-posix.m4: New file.
40964
40965 1998-05-10  Jim Meyering  <meyering@ascend.com>
40966
40967         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
40968
40969 1998-05-09  Jim Meyering  <meyering@ascend.com>
40970
40971         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
40972         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
40973         with automake.
40974
40975         * m4/ssize_t.m4: New file.
40976         * m4/mktime.m4: Remove file -- the new automake has this now.
40977
40978 1998-04-26  Jim Meyering  <meyering@ascend.com>
40979
40980         * m4/assert.m4: New file.
40981         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
40982
40983 1998-04-05  Jim Meyering  <meyering@ascend.com>
40984
40985         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
40986         (jm_PREREQ): Use it here.
40987
40988 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
40989
40990         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
40991         in acconfig.h.
40992
40993 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
40994
40995         * m4/prereq.m4: New file.
40996         * m4/error.m4: New file.
40997         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
40998
40999 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
41000
41001         * m4/getline.m4: Don't set am_cv_func_working_getline before the
41002         cache-check for the same variable -- that defeated the purpose of
41003         the test; the test program was never run.  This was a problem only
41004         on systems with losing getline functions -- HP-UX 10.20 is one.
41005         Reported by Bjorn Helgaas.
41006
41007 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
41008
41009         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
41010
41011 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
41012
41013         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
41014
41015         * m4/const.m4: New file.  Use an initializer in this declaration
41016         typedef int charset[2]; const charset x;
41017         Reported by Bob Glickstein.
41018
41019 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
41020
41021         * m4/chown.m4: Fix reversed types on -1 args to chown.
41022         From Kaveh Ghazi.
41023
41024 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
41025
41026         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
41027         Add lseek and memchr.
41028
41029         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
41030         T.E.Dickey <dickey@clark.net> said that some older preprocessors
41031         have a 20-character limit on names.
41032
41033 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
41034
41035         * m4/inttypes_h.m4: New file.
41036         * m4/uintmax_t.m4: New file.
41037         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
41038
41039
41040         -----
41041
41042         Local Variables:
41043         coding: utf-8
41044         End:
41045
41046         Copyright (C) 1997-2008 Free Software Foundation, Inc.
41047
41048         Copying and distribution of this file, with or without
41049         modification, are permitted provided the copyright notice
41050         and this notice are preserved.