Avoid a configure-time syntax error in gl_FUNC_ACL.
[gnulib.git] / ChangeLog
1 2007-12-06  Jim Meyering  <meyering@redhat.com>
2
3         Avoid a configure-time syntax error in gl_FUNC_ACL.
4         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
5         function in each branch, before testing the cache variable.
6
7 2007-12-04  Eric Blake  <ebb9@byu.net>
8
9         Make scripts executable.
10         * build-aux/config.guess: Add execute permissions.
11         * build-aux/config.sub: Likewise.
12         * build-aux/gendocs.sh: Likewise.
13
14         Fix frexp on mingw.
15         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
16         cross-compiling.
17         * doc/functions/frexp.texi (frexp): Document the bug.
18
19         Make cygwin fseeko check more reliable.
20         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
21         version numbers, rather than unrelated feature check.
22         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
23         * doc/functions/ftello.texi (ftello): Likewise.
24         Reported by Bruno Haible.
25
26         * m4/strerror.m4: Bump version number.
27
28 2007-12-03  Bruno Haible  <bruno@clisp.org>
29
30         * doc/functions/mprotect.texi: Mention the mingw problem.
31
32 2007-12-03  Eric Blake  <ebb9@byu.net>
33
34         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
35         REPLACE_STRERROR is initialized before this macro.
36
37 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38
39         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
40         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42         put -lsec in even for programs other than 'ls'.  This fixes a problem
43         for gettext reported by Bruno Haible in
44         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46         Add support for Solaris 10.  This isn't efficient, but should get the
47         job done for now.
48
49 2007-12-03  James Youngman  <jay@gnu.org>
50
51         * doc/regexprops-generic.texi: change "an close-group" to "a
52         close-group" and "illegal" to "not allowed".
53
54 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55
56         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
57         pr_byname.h. Needed for the rare case when the maintainer has done
58         "make maintainer-clean" in the source directory and then attempts a
59         build outside the source directory.
60         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61         scripts_byname.h.
62
63 2007-12-02  Martin Lambers <marlam@marlam.de>
64             Bruno Haible  <bruno@clisp.org>
65
66         * lib/getpagesize.h: Remove file.
67         * lib/unistd.in.h: Include declaration of getpagesize here.
68         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
69         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
70         HAVE_SYS_PARAM_H.
71         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
72         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
73         * modules/getpagesize (Files): Remove lib/getpagesize.h.
74         (Depends-on): Add unistd.
75         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
76         (Include): Use <unistd.h> instead of getpagesize.h.
77         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
78         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
79         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
80         gl_GETPAGESIZE invocation, already handled by module dependency.
81         * lib/pagealign_alloc.c: Don't include getpagesize.h.
82
83 2007-12-02  Bruno Haible  <bruno@clisp.org>
84
85         * modules/strings-tests: New file.
86         * tests/test-strings.c: New file.
87
88         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
89         * lib/strings.in.h: New file.
90         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
91         * m4/strings_h.m4: New file.
92         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
93         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
94         * modules/strings: New file.
95         * modules/string (Makefile.am): Update.
96         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97         Reported by Karl Berry.
98
99 2007-12-01  Eric Blake  <ebb9@byu.net>
100
101         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
102         accomodate fix in cygwin 1.5.25.
103
104 2007-12-01  Jim Meyering  <meyering@redhat.com>
105
106         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
107         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
108         that would inhibit utf8-optimization of a regexp containing line-
109         or buffer-anchors, e.g., `^', `$'.
110
111 2007-11-30  Bruno Haible  <bruno@clisp.org>
112
113         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
114         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
115         glthread_recursive_lock_init.
116         * lib/lock.c (glthread_recursive_lock_init)
117         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
118         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119
120 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
121
122         New function qset_acl, like set_acl but with syscall semantics.
123         * lib/acl.h (qset_acl): New decl.
124         * lib/acl.c (qset_acl): New function.
125         (set_acl): Use new function.  Use more-consistent diagnostics.
126
127 2007-11-28  Jim Meyering  <meyering@redhat.com>
128
129         * modules/physmem (License): Change from GPL to LGPLv2+.
130
131 2007-11-26  Bruno Haible  <bruno@clisp.org>
132
133         * lib/vasnprintf.c (decode_long_double): Don't abort if the
134         'long double' type has excess precision.
135         Reported by Jim Meyering in
136         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
137
138 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
139
140         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
141         Sync from <http://gnu.org/licenses>.
142         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
143         with license text from same location.
144         * doc/maintain.texi, doc/standards.texi:  Sync from
145         <http://savannah.gnu.org/projects/gnustandards>.
146
147 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
148         and Jim Meyering  <meyering@redhat.com>
149
150         Adjust getdate' grammar to accept a slightly more regular language.
151         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
152         Before, the former was rejected.
153         * lib/getdate.y (digits_to_date_time): New function, factored
154         out of ...
155         (number): ...here.  Just call digits_to_date_time.
156         (hybrid): New non-terminal to handle an <unsigned number,
157         signed relative offset> sequence consistently.
158
159 2007-11-18  Jim Meyering  <meyering@redhat.com>
160
161         Pull my changes from coreutils:
162         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
163         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
164         use of $gnulib_tool_option_extras, so that it's separated from the
165         preceding argument.
166
167         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
168         * build-aux/bootstrap (cp_mark_as_generated): Create any required
169         parent destination directories before copying a file into place.
170
171 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
172
173         bootstrap: work also with 4-argument variant of AC_INIT
174         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
175
176 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
177
178         Port test-getaddrinfo to Solaris.
179         Problem reported by Bruno Haible in
180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
181         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
182         explanation of setting 'hints'.
183         Don't reject an implementation merely because it returns EAI_SERVICE.
184         (EAI_SERVICE): Define to 0 if not defined.
185
186 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
187
188         The license of gnu-make and posix-shell is now "GPLed build tool".
189         * modules/gnu-make (License): Likewise.
190         * modules/posix-shell (License): Likewise.
191
192         New module posix-shell, for determining a POSIX shell
193         or perhaps something that is close enough to a POSIX shell.
194         * m4/posix-shell.m4: New file.
195         * modules/posix-shell: New file.
196
197         * MODULES.html.sh: Mention new module.
198
199         New module gnu-make, for determining whether we're using GNU Make.
200         * m4/gnu-make.m4: New file.
201         * modules/gnu-make: New file.
202         * MODULES.html.sh: Mention new module.
203
204 2007-11-14  Jim Meyering  <meyering@redhat.com>
205
206         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
207         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
208         use this macro to create a function _definition_.
209         Remove useless "#undef ARGMATCH_DIE".
210
211 2007-11-14  Bruno Haible  <bruno@clisp.org>
212
213         * lib/config.charset: Update for OpenBSD 4.1.
214         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
215
216 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
217
218         Document 64-bit #if problems in stdint.texi.
219         * doc/headers/stdint.texi (stdint.h): Mention problems with
220         64-bit-#if, and how to work around them.
221
222         Don't insist on 'long long int' support in the preprocessor.  It
223         breaks too many things.  For example, PRIdMAX still uses a 'long
224         long int' format with the latest Sun compiler, even though
225         HAVE_LONG_LONG_INT isn't defined due to that compiler's
226         preprocessor problem.  This causes the latest coreutils to dump
227         core on Solaris 10 sparc with the Sun C compiler.
228         Instead, fix the 2007-10-16 problem in a different way, by evaluating
229         the troublesome expressions at configure-time, not at #if-time.
230         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
231         preprocessor.
232         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
233         compile-time C checks, done at 'configure'-time.
234         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
235         * modules/inttypes (Makefile): Substitute the new symbols that
236         gl_INTTYPES_H now generates.
237         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
238
239 2007-11-12  Bruno Haible  <bruno@clisp.org>
240
241         Tests for Unicode character classification functions.
242
243         * modules/unictype/bidicategory-byname-tests: New file.
244         * modules/unictype/bidicategory-name-tests: New file.
245         * modules/unictype/bidicategory-of-tests: New file.
246         * modules/unictype/bidicategory-test-tests: New file.
247         * modules/unictype/block-list-tests: New file.
248         * modules/unictype/block-of-tests: New file.
249         * modules/unictype/block-test-tests: New file.
250         * modules/unictype/category-C-tests: New file.
251         * modules/unictype/category-Cc-tests: New file.
252         * modules/unictype/category-Cf-tests: New file.
253         * modules/unictype/category-Cn-tests: New file.
254         * modules/unictype/category-Co-tests: New file.
255         * modules/unictype/category-Cs-tests: New file.
256         * modules/unictype/category-L-tests: New file.
257         * modules/unictype/category-Ll-tests: New file.
258         * modules/unictype/category-Lm-tests: New file.
259         * modules/unictype/category-Lo-tests: New file.
260         * modules/unictype/category-Lt-tests: New file.
261         * modules/unictype/category-Lu-tests: New file.
262         * modules/unictype/category-M-tests: New file.
263         * modules/unictype/category-Mc-tests: New file.
264         * modules/unictype/category-Me-tests: New file.
265         * modules/unictype/category-Mn-tests: New file.
266         * modules/unictype/category-N-tests: New file.
267         * modules/unictype/category-Nd-tests: New file.
268         * modules/unictype/category-Nl-tests: New file.
269         * modules/unictype/category-No-tests: New file.
270         * modules/unictype/category-P-tests: New file.
271         * modules/unictype/category-Pc-tests: New file.
272         * modules/unictype/category-Pd-tests: New file.
273         * modules/unictype/category-Pe-tests: New file.
274         * modules/unictype/category-Pf-tests: New file.
275         * modules/unictype/category-Pi-tests: New file.
276         * modules/unictype/category-Po-tests: New file.
277         * modules/unictype/category-Ps-tests: New file.
278         * modules/unictype/category-S-tests: New file.
279         * modules/unictype/category-Sc-tests: New file.
280         * modules/unictype/category-Sk-tests: New file.
281         * modules/unictype/category-Sm-tests: New file.
282         * modules/unictype/category-So-tests: New file.
283         * modules/unictype/category-Z-tests: New file.
284         * modules/unictype/category-Zl-tests: New file.
285         * modules/unictype/category-Zp-tests: New file.
286         * modules/unictype/category-Zs-tests: New file.
287         * modules/unictype/category-and-not-tests: New file.
288         * modules/unictype/category-and-tests: New file.
289         * modules/unictype/category-byname-tests: New file.
290         * modules/unictype/category-name-tests: New file.
291         * modules/unictype/category-none-tests: New file.
292         * modules/unictype/category-of-tests: New file.
293         * modules/unictype/category-or-tests: New file.
294         * modules/unictype/category-test-withtable-tests: New file.
295         * modules/unictype/combining-class-tests: New file.
296         * modules/unictype/ctype-alnum-tests: New file.
297         * modules/unictype/ctype-alpha-tests: New file.
298         * modules/unictype/ctype-blank-tests: New file.
299         * modules/unictype/ctype-cntrl-tests: New file.
300         * modules/unictype/ctype-digit-tests: New file.
301         * modules/unictype/ctype-graph-tests: New file.
302         * modules/unictype/ctype-lower-tests: New file.
303         * modules/unictype/ctype-print-tests: New file.
304         * modules/unictype/ctype-punct-tests: New file.
305         * modules/unictype/ctype-space-tests: New file.
306         * modules/unictype/ctype-upper-tests: New file.
307         * modules/unictype/ctype-xdigit-tests: New file.
308         * modules/unictype/decimal-digit-tests: New file.
309         * modules/unictype/digit-tests: New file.
310         * modules/unictype/mirror-tests: New file.
311         * modules/unictype/numeric-tests: New file.
312         * modules/unictype/property-alphabetic-tests: New file.
313         * modules/unictype/property-ascii-hex-digit-tests: New file.
314         * modules/unictype/property-bidi-arabic-digit-tests: New file.
315         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
316         * modules/unictype/property-bidi-block-separator-tests: New file.
317         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
318         * modules/unictype/property-bidi-common-separator-tests: New file.
319         * modules/unictype/property-bidi-control-tests: New file.
320         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
321         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
322         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
323         * modules/unictype/property-bidi-european-digit-tests: New file.
324         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
325         * modules/unictype/property-bidi-left-to-right-tests: New file.
326         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
327         * modules/unictype/property-bidi-other-neutral-tests: New file.
328         * modules/unictype/property-bidi-pdf-tests: New file.
329         * modules/unictype/property-bidi-segment-separator-tests: New file.
330         * modules/unictype/property-bidi-whitespace-tests: New file.
331         * modules/unictype/property-byname-tests: New file.
332         * modules/unictype/property-combining-tests: New file.
333         * modules/unictype/property-composite-tests: New file.
334         * modules/unictype/property-currency-symbol-tests: New file.
335         * modules/unictype/property-dash-tests: New file.
336         * modules/unictype/property-decimal-digit-tests: New file.
337         * modules/unictype/property-default-ignorable-code-point-tests: New file.
338         * modules/unictype/property-deprecated-tests: New file.
339         * modules/unictype/property-diacritic-tests: New file.
340         * modules/unictype/property-extender-tests: New file.
341         * modules/unictype/property-format-control-tests: New file.
342         * modules/unictype/property-grapheme-base-tests: New file.
343         * modules/unictype/property-grapheme-extend-tests: New file.
344         * modules/unictype/property-grapheme-link-tests: New file.
345         * modules/unictype/property-hex-digit-tests: New file.
346         * modules/unictype/property-hyphen-tests: New file.
347         * modules/unictype/property-id-continue-tests: New file.
348         * modules/unictype/property-id-start-tests: New file.
349         * modules/unictype/property-ideographic-tests: New file.
350         * modules/unictype/property-ids-binary-operator-tests: New file.
351         * modules/unictype/property-ids-trinary-operator-tests: New file.
352         * modules/unictype/property-ignorable-control-tests: New file.
353         * modules/unictype/property-iso-control-tests: New file.
354         * modules/unictype/property-join-control-tests: New file.
355         * modules/unictype/property-left-of-pair-tests: New file.
356         * modules/unictype/property-line-separator-tests: New file.
357         * modules/unictype/property-logical-order-exception-tests: New file.
358         * modules/unictype/property-lowercase-tests: New file.
359         * modules/unictype/property-math-tests: New file.
360         * modules/unictype/property-non-break-tests: New file.
361         * modules/unictype/property-not-a-character-tests: New file.
362         * modules/unictype/property-numeric-tests: New file.
363         * modules/unictype/property-other-alphabetic-tests: New file.
364         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
365         * modules/unictype/property-other-grapheme-extend-tests: New file.
366         * modules/unictype/property-other-id-continue-tests: New file.
367         * modules/unictype/property-other-id-start-tests: New file.
368         * modules/unictype/property-other-lowercase-tests: New file.
369         * modules/unictype/property-other-math-tests: New file.
370         * modules/unictype/property-other-uppercase-tests: New file.
371         * modules/unictype/property-paired-punctuation-tests: New file.
372         * modules/unictype/property-paragraph-separator-tests: New file.
373         * modules/unictype/property-pattern-syntax-tests: New file.
374         * modules/unictype/property-pattern-white-space-tests: New file.
375         * modules/unictype/property-private-use-tests: New file.
376         * modules/unictype/property-punctuation-tests: New file.
377         * modules/unictype/property-quotation-mark-tests: New file.
378         * modules/unictype/property-radical-tests: New file.
379         * modules/unictype/property-sentence-terminal-tests: New file.
380         * modules/unictype/property-soft-dotted-tests: New file.
381         * modules/unictype/property-space-tests: New file.
382         * modules/unictype/property-terminal-punctuation-tests: New file.
383         * modules/unictype/property-test-tests: New file.
384         * modules/unictype/property-titlecase-tests: New file.
385         * modules/unictype/property-unassigned-code-value-tests: New file.
386         * modules/unictype/property-unified-ideograph-tests: New file.
387         * modules/unictype/property-uppercase-tests: New file.
388         * modules/unictype/property-variation-selector-tests: New file.
389         * modules/unictype/property-white-space-tests: New file.
390         * modules/unictype/property-xid-continue-tests: New file.
391         * modules/unictype/property-xid-start-tests: New file.
392         * modules/unictype/property-zero-width-tests: New file.
393         * modules/unictype/scripts-tests: New file.
394         * modules/unictype/syntax-c-ident-tests: New file.
395         * modules/unictype/syntax-c-whitespace-tests: New file.
396         * modules/unictype/syntax-java-ident-tests: New file.
397         * modules/unictype/syntax-java-whitespace-tests: New file.
398         * tests/unictype/test-bidi_byname.c: New file.
399         * tests/unictype/test-bidi_name.c: New file.
400         * tests/unictype/test-bidi_of.c: New file.
401         * tests/unictype/test-bidi_test.c: New file.
402         * tests/unictype/test-block_list.c: New file.
403         * tests/unictype/test-block_of.c: New file.
404         * tests/unictype/test-block_test.c: New file.
405         * tests/unictype/test-categ_and.c: New file.
406         * tests/unictype/test-categ_and_not.c: New file.
407         * tests/unictype/test-categ_byname.c: New file.
408         * tests/unictype/test-categ_name.c: New file.
409         * tests/unictype/test-categ_none.c: New file.
410         * tests/unictype/test-categ_of.c: New file.
411         * tests/unictype/test-categ_or.c: New file.
412         * tests/unictype/test-categ_test_withtable.c: New file.
413         * tests/unictype/test-combining.c: New file.
414         * tests/unictype/test-decdigit.c: New file.
415         * tests/unictype/test-digit.c: New file.
416         * tests/unictype/test-mirror.c: New file.
417         * tests/unictype/test-numeric.c: New file.
418         * tests/unictype/test-pr_byname.c: New file.
419         * tests/unictype/test-pr_test.c: New file.
420         * tests/unictype/test-predicate-part1.h: New file.
421         * tests/unictype/test-predicate-part2.h: New file.
422         * tests/unictype/test-scripts.c: New file.
423         * tests/unictype/test-sy_c_ident.c: New file.
424         * tests/unictype/test-sy_java_ident.c: New file.
425
426         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
427         for Unicode 5.0.0.
428         * tests/unictype/test-categ_Cc.c: Likewise.
429         * tests/unictype/test-categ_Cf.c: Likewise.
430         * tests/unictype/test-categ_Cn.c: Likewise.
431         * tests/unictype/test-categ_Co.c: Likewise.
432         * tests/unictype/test-categ_Cs.c: Likewise.
433         * tests/unictype/test-categ_L.c: Likewise.
434         * tests/unictype/test-categ_Ll.c: Likewise.
435         * tests/unictype/test-categ_Lm.c: Likewise.
436         * tests/unictype/test-categ_Lo.c: Likewise.
437         * tests/unictype/test-categ_Lt.c: Likewise.
438         * tests/unictype/test-categ_Lu.c: Likewise.
439         * tests/unictype/test-categ_M.c: Likewise.
440         * tests/unictype/test-categ_Mc.c: Likewise.
441         * tests/unictype/test-categ_Me.c: Likewise.
442         * tests/unictype/test-categ_Mn.c: Likewise.
443         * tests/unictype/test-categ_N.c: Likewise.
444         * tests/unictype/test-categ_Nd.c: Likewise.
445         * tests/unictype/test-categ_Nl.c: Likewise.
446         * tests/unictype/test-categ_No.c: Likewise.
447         * tests/unictype/test-categ_P.c: Likewise.
448         * tests/unictype/test-categ_Pc.c: Likewise.
449         * tests/unictype/test-categ_Pd.c: Likewise.
450         * tests/unictype/test-categ_Pe.c: Likewise.
451         * tests/unictype/test-categ_Pf.c: Likewise.
452         * tests/unictype/test-categ_Pi.c: Likewise.
453         * tests/unictype/test-categ_Po.c: Likewise.
454         * tests/unictype/test-categ_Ps.c: Likewise.
455         * tests/unictype/test-categ_S.c: Likewise.
456         * tests/unictype/test-categ_Sc.c: Likewise.
457         * tests/unictype/test-categ_Sk.c: Likewise.
458         * tests/unictype/test-categ_Sm.c: Likewise.
459         * tests/unictype/test-categ_So.c: Likewise.
460         * tests/unictype/test-categ_Z.c: Likewise.
461         * tests/unictype/test-categ_Zl.c: Likewise.
462         * tests/unictype/test-categ_Zp.c: Likewise.
463         * tests/unictype/test-categ_Zs.c: Likewise.
464         * tests/unictype/test-ctype_alnum.c: Likewise.
465         * tests/unictype/test-ctype_alpha.c: Likewise.
466         * tests/unictype/test-ctype_blank.c: Likewise.
467         * tests/unictype/test-ctype_cntrl.c: Likewise.
468         * tests/unictype/test-ctype_digit.c: Likewise.
469         * tests/unictype/test-ctype_graph.c: Likewise.
470         * tests/unictype/test-ctype_lower.c: Likewise.
471         * tests/unictype/test-ctype_print.c: Likewise.
472         * tests/unictype/test-ctype_punct.c: Likewise.
473         * tests/unictype/test-ctype_space.c: Likewise.
474         * tests/unictype/test-ctype_upper.c: Likewise.
475         * tests/unictype/test-ctype_xdigit.c: Likewise.
476         * tests/unictype/test-decdigit.h: Likewise.
477         * tests/unictype/test-digit.h: Likewise.
478         * tests/unictype/test-numeric.h: Likewise.
479         * tests/unictype/test-pr_alphabetic.c: Likewise.
480         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
481         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
482         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
483         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
484         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
485         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
486         * tests/unictype/test-pr_bidi_control.c: Likewise.
487         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
488         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
489         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
490         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
491         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
492         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
493         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
494         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
495         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
496         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
497         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
498         * tests/unictype/test-pr_combining.c: Likewise.
499         * tests/unictype/test-pr_composite.c: Likewise.
500         * tests/unictype/test-pr_currency_symbol.c: Likewise.
501         * tests/unictype/test-pr_dash.c: Likewise.
502         * tests/unictype/test-pr_decimal_digit.c: Likewise.
503         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
504         * tests/unictype/test-pr_deprecated.c: Likewise.
505         * tests/unictype/test-pr_diacritic.c: Likewise.
506         * tests/unictype/test-pr_extender.c: Likewise.
507         * tests/unictype/test-pr_format_control.c: Likewise.
508         * tests/unictype/test-pr_grapheme_base.c: Likewise.
509         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
510         * tests/unictype/test-pr_grapheme_link.c: Likewise.
511         * tests/unictype/test-pr_hex_digit.c: Likewise.
512         * tests/unictype/test-pr_hyphen.c: Likewise.
513         * tests/unictype/test-pr_id_continue.c: Likewise.
514         * tests/unictype/test-pr_id_start.c: Likewise.
515         * tests/unictype/test-pr_ideographic.c: Likewise.
516         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
517         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
518         * tests/unictype/test-pr_ignorable_control.c: Likewise.
519         * tests/unictype/test-pr_iso_control.c: Likewise.
520         * tests/unictype/test-pr_join_control.c: Likewise.
521         * tests/unictype/test-pr_left_of_pair.c: Likewise.
522         * tests/unictype/test-pr_line_separator.c: Likewise.
523         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
524         * tests/unictype/test-pr_lowercase.c: Likewise.
525         * tests/unictype/test-pr_math.c: Likewise.
526         * tests/unictype/test-pr_non_break.c: Likewise.
527         * tests/unictype/test-pr_not_a_character.c: Likewise.
528         * tests/unictype/test-pr_numeric.c: Likewise.
529         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
530         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
531         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
532         * tests/unictype/test-pr_other_id_continue.c: Likewise.
533         * tests/unictype/test-pr_other_id_start.c: Likewise.
534         * tests/unictype/test-pr_other_lowercase.c: Likewise.
535         * tests/unictype/test-pr_other_math.c: Likewise.
536         * tests/unictype/test-pr_other_uppercase.c: Likewise.
537         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
538         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
539         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
540         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
541         * tests/unictype/test-pr_private_use.c: Likewise.
542         * tests/unictype/test-pr_punctuation.c: Likewise.
543         * tests/unictype/test-pr_quotation_mark.c: Likewise.
544         * tests/unictype/test-pr_radical.c: Likewise.
545         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
546         * tests/unictype/test-pr_soft_dotted.c: Likewise.
547         * tests/unictype/test-pr_space.c: Likewise.
548         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
549         * tests/unictype/test-pr_titlecase.c: Likewise.
550         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
551         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
552         * tests/unictype/test-pr_uppercase.c: Likewise.
553         * tests/unictype/test-pr_variation_selector.c: Likewise.
554         * tests/unictype/test-pr_white_space.c: Likewise.
555         * tests/unictype/test-pr_xid_continue.c: Likewise.
556         * tests/unictype/test-pr_xid_start.c: Likewise.
557         * tests/unictype/test-pr_zero_width.c: Likewise.
558         * tests/unictype/test-sy_c_whitespace.c: Likewise.
559         * tests/unictype/test-sy_java_whitespace.c: Likewise.
560
561 2007-11-12  Bruno Haible  <bruno@clisp.org>
562
563         Unicode character classification functions.
564         * lib/unictype.h: New file.
565         * modules/unictype/base: New file.
566         * modules/unictype/category-L: New file.
567         * modules/unictype/category-Lu: New file.
568         * modules/unictype/category-Ll: New file.
569         * modules/unictype/category-Lt: New file.
570         * modules/unictype/category-Lm: New file.
571         * modules/unictype/category-Lo: New file.
572         * modules/unictype/category-M: New file.
573         * modules/unictype/category-Mn: New file.
574         * modules/unictype/category-Mc: New file.
575         * modules/unictype/category-Me: New file.
576         * modules/unictype/category-N: New file.
577         * modules/unictype/category-Nd: New file.
578         * modules/unictype/category-Nl: New file.
579         * modules/unictype/category-No: New file.
580         * modules/unictype/category-P: New file.
581         * modules/unictype/category-Pc: New file.
582         * modules/unictype/category-Pd: New file.
583         * modules/unictype/category-Ps: New file.
584         * modules/unictype/category-Pe: New file.
585         * modules/unictype/category-Pi: New file.
586         * modules/unictype/category-Pf: New file.
587         * modules/unictype/category-Po: New file.
588         * modules/unictype/category-S: New file.
589         * modules/unictype/category-Sm: New file.
590         * modules/unictype/category-Sc: New file.
591         * modules/unictype/category-Sk: New file.
592         * modules/unictype/category-So: New file.
593         * modules/unictype/category-Z: New file.
594         * modules/unictype/category-Zs: New file.
595         * modules/unictype/category-Zl: New file.
596         * modules/unictype/category-Zp: New file.
597         * modules/unictype/category-C: New file.
598         * modules/unictype/category-Cc: New file.
599         * modules/unictype/category-Cf: New file.
600         * modules/unictype/category-Cs: New file.
601         * modules/unictype/category-Co: New file.
602         * modules/unictype/category-Cn: New file.
603         * modules/unictype/category-or: New file.
604         * modules/unictype/category-of: New file.
605         * modules/unictype/category-test: New file.
606         * modules/unictype/category-test-withtable: New file.
607         * modules/unictype/category-byname: New file.
608         * modules/unictype/category-none: New file.
609         * modules/unictype/category-and: New file.
610         * modules/unictype/category-and-not: New file.
611         * modules/unictype/category-name: New file.
612         * modules/unictype/combining-class: New file.
613         * modules/unictype/category-all: New file.
614         * modules/unictype/bidicategory-all: New file.
615         * modules/unictype/bidicategory-byname: New file.
616         * modules/unictype/bidicategory-name: New file.
617         * modules/unictype/bidicategory-of: New file.
618         * modules/unictype/bidicategory-test: New file.
619         * modules/unictype/decimal-digit: New file.
620         * modules/unictype/digit: New file.
621         * modules/unictype/numeric: New file.
622         * modules/unictype/mirror: New file.
623         * modules/unictype/property-white-space: New file.
624         * modules/unictype/property-alphabetic: New file.
625         * modules/unictype/property-other-alphabetic: New file.
626         * modules/unictype/property-not-a-character: New file.
627         * modules/unictype/property-default-ignorable-code-point: New file.
628         * modules/unictype/property-other-default-ignorable-code-point: New
629         file.
630         * modules/unictype/property-deprecated: New file.
631         * modules/unictype/property-logical-order-exception: New file.
632         * modules/unictype/property-variation-selector: New file.
633         * modules/unictype/property-private-use: New file.
634         * modules/unictype/property-unassigned-code-value: New file.
635         * modules/unictype/property-uppercase: New file.
636         * modules/unictype/property-other-uppercase: New file.
637         * modules/unictype/property-lowercase: New file.
638         * modules/unictype/property-other-lowercase: New file.
639         * modules/unictype/property-titlecase: New file.
640         * modules/unictype/property-soft-dotted: New file.
641         * modules/unictype/property-id-start: New file.
642         * modules/unictype/property-other-id-start: New file.
643         * modules/unictype/property-id-continue: New file.
644         * modules/unictype/property-other-id-continue: New file.
645         * modules/unictype/property-xid-start: New file.
646         * modules/unictype/property-xid-continue: New file.
647         * modules/unictype/property-pattern-white-space: New file.
648         * modules/unictype/property-pattern-syntax: New file.
649         * modules/unictype/property-join-control: New file.
650         * modules/unictype/property-grapheme-base: New file.
651         * modules/unictype/property-grapheme-extend: New file.
652         * modules/unictype/property-other-grapheme-extend: New file.
653         * modules/unictype/property-grapheme-link: New file.
654         * modules/unictype/property-bidi-control: New file.
655         * modules/unictype/property-bidi-left-to-right: New file.
656         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
657         * modules/unictype/property-bidi-arabic-right-to-left: New file.
658         * modules/unictype/property-bidi-european-digit: New file.
659         * modules/unictype/property-bidi-eur-num-separator: New file.
660         * modules/unictype/property-bidi-eur-num-terminator: New file.
661         * modules/unictype/property-bidi-arabic-digit: New file.
662         * modules/unictype/property-bidi-common-separator: New file.
663         * modules/unictype/property-bidi-block-separator: New file.
664         * modules/unictype/property-bidi-segment-separator: New file.
665         * modules/unictype/property-bidi-whitespace: New file.
666         * modules/unictype/property-bidi-non-spacing-mark: New file.
667         * modules/unictype/property-bidi-boundary-neutral: New file.
668         * modules/unictype/property-bidi-pdf: New file.
669         * modules/unictype/property-bidi-embedding-or-override: New file.
670         * modules/unictype/property-bidi-other-neutral: New file.
671         * modules/unictype/property-hex-digit: New file.
672         * modules/unictype/property-ascii-hex-digit: New file.
673         * modules/unictype/property-ideographic: New file.
674         * modules/unictype/property-unified-ideograph: New file.
675         * modules/unictype/property-radical: New file.
676         * modules/unictype/property-ids-binary-operator: New file.
677         * modules/unictype/property-ids-trinary-operator: New file.
678         * modules/unictype/property-zero-width: New file.
679         * modules/unictype/property-space: New file.
680         * modules/unictype/property-non-break: New file.
681         * modules/unictype/property-iso-control: New file.
682         * modules/unictype/property-format-control: New file.
683         * modules/unictype/property-dash: New file.
684         * modules/unictype/property-hyphen: New file.
685         * modules/unictype/property-punctuation: New file.
686         * modules/unictype/property-line-separator: New file.
687         * modules/unictype/property-paragraph-separator: New file.
688         * modules/unictype/property-quotation-mark: New file.
689         * modules/unictype/property-sentence-terminal: New file.
690         * modules/unictype/property-terminal-punctuation: New file.
691         * modules/unictype/property-currency-symbol: New file.
692         * modules/unictype/property-math: New file.
693         * modules/unictype/property-other-math: New file.
694         * modules/unictype/property-paired-punctuation: New file.
695         * modules/unictype/property-left-of-pair: New file.
696         * modules/unictype/property-combining: New file.
697         * modules/unictype/property-composite: New file.
698         * modules/unictype/property-decimal-digit: New file.
699         * modules/unictype/property-numeric: New file.
700         * modules/unictype/property-diacritic: New file.
701         * modules/unictype/property-extender: New file.
702         * modules/unictype/property-ignorable-control: New file.
703         * modules/unictype/property-test: New file.
704         * modules/unictype/property-byname: New file.
705         * modules/unictype/property-all: New file.
706         * modules/unictype/scripts: New file.
707         * modules/unictype/scripts-all: New file.
708         * modules/unictype/block-of: New file.
709         * modules/unictype/block-test: New file.
710         * modules/unictype/block-list: New file.
711         * modules/unictype/block-all: New file.
712         * modules/unictype/syntax-c-whitespace: New file.
713         * modules/unictype/syntax-java-whitespace: New file.
714         * modules/unictype/syntax-c-ident: New file.
715         * modules/unictype/syntax-java-ident: New file.
716         * modules/unictype/ctype-alnum: New file.
717         * modules/unictype/ctype-alpha: New file.
718         * modules/unictype/ctype-cntrl: New file.
719         * modules/unictype/ctype-digit: New file.
720         * modules/unictype/ctype-graph: New file.
721         * modules/unictype/ctype-lower: New file.
722         * modules/unictype/ctype-print: New file.
723         * modules/unictype/ctype-punct: New file.
724         * modules/unictype/ctype-space: New file.
725         * modules/unictype/ctype-upper: New file.
726         * modules/unictype/ctype-xdigit: New file.
727         * modules/unictype/ctype-blank: New file.
728         * lib/unictype/bidi_byname.c: New file.
729         * lib/unictype/bidi_name.c: New file.
730         * lib/unictype/bidi_of.c: New file.
731         * lib/unictype/bidi_test.c: New file.
732         * lib/unictype/bitmap.h: New file.
733         * lib/unictype/block_test.c: New file.
734         * lib/unictype/blocks.c: New file.
735         * lib/unictype/categ_C.c: New file.
736         * lib/unictype/categ_Cc.c: New file.
737         * lib/unictype/categ_Cf.c: New file.
738         * lib/unictype/categ_Cn.c: New file.
739         * lib/unictype/categ_Co.c: New file.
740         * lib/unictype/categ_Cs.c: New file.
741         * lib/unictype/categ_L.c: New file.
742         * lib/unictype/categ_Ll.c: New file.
743         * lib/unictype/categ_Lm.c: New file.
744         * lib/unictype/categ_Lo.c: New file.
745         * lib/unictype/categ_Lt.c: New file.
746         * lib/unictype/categ_Lu.c: New file.
747         * lib/unictype/categ_M.c: New file.
748         * lib/unictype/categ_Mc.c: New file.
749         * lib/unictype/categ_Me.c: New file.
750         * lib/unictype/categ_Mn.c: New file.
751         * lib/unictype/categ_N.c: New file.
752         * lib/unictype/categ_Nd.c: New file.
753         * lib/unictype/categ_Nl.c: New file.
754         * lib/unictype/categ_No.c: New file.
755         * lib/unictype/categ_P.c: New file.
756         * lib/unictype/categ_Pc.c: New file.
757         * lib/unictype/categ_Pd.c: New file.
758         * lib/unictype/categ_Pe.c: New file.
759         * lib/unictype/categ_Pf.c: New file.
760         * lib/unictype/categ_Pi.c: New file.
761         * lib/unictype/categ_Po.c: New file.
762         * lib/unictype/categ_Ps.c: New file.
763         * lib/unictype/categ_S.c: New file.
764         * lib/unictype/categ_Sc.c: New file.
765         * lib/unictype/categ_Sk.c: New file.
766         * lib/unictype/categ_Sm.c: New file.
767         * lib/unictype/categ_So.c: New file.
768         * lib/unictype/categ_Z.c: New file.
769         * lib/unictype/categ_Zl.c: New file.
770         * lib/unictype/categ_Zp.c: New file.
771         * lib/unictype/categ_Zs.c: New file.
772         * lib/unictype/categ_and.c: New file.
773         * lib/unictype/categ_and_not.c: New file.
774         * lib/unictype/categ_byname.c: New file.
775         * lib/unictype/categ_name.c: New file.
776         * lib/unictype/categ_none.c: New file.
777         * lib/unictype/categ_of.c: New file.
778         * lib/unictype/categ_or.c: New file.
779         * lib/unictype/categ_test.c: New file.
780         * lib/unictype/combining.c: New file.
781         * lib/unictype/ctype_alnum.c: New file.
782         * lib/unictype/ctype_alpha.c: New file.
783         * lib/unictype/ctype_blank.c: New file.
784         * lib/unictype/ctype_cntrl.c: New file.
785         * lib/unictype/ctype_digit.c: New file.
786         * lib/unictype/ctype_graph.c: New file.
787         * lib/unictype/ctype_lower.c: New file.
788         * lib/unictype/ctype_print.c: New file.
789         * lib/unictype/ctype_punct.c: New file.
790         * lib/unictype/ctype_space.c: New file.
791         * lib/unictype/ctype_upper.c: New file.
792         * lib/unictype/ctype_xdigit.c: New file.
793         * lib/unictype/decdigit.c: New file.
794         * lib/unictype/digit.c: New file.
795         * lib/unictype/identsyntaxmap.h: New file.
796         * lib/unictype/mirror.c: New file.
797         * lib/unictype/numeric.c: New file.
798         * lib/unictype/pr_alphabetic.c: New file.
799         * lib/unictype/pr_ascii_hex_digit.c: New file.
800         * lib/unictype/pr_bidi_arabic_digit.c: New file.
801         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
802         * lib/unictype/pr_bidi_block_separator.c: New file.
803         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
804         * lib/unictype/pr_bidi_common_separator.c: New file.
805         * lib/unictype/pr_bidi_control.c: New file.
806         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
807         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
808         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
809         * lib/unictype/pr_bidi_european_digit.c: New file.
810         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
811         * lib/unictype/pr_bidi_left_to_right.c: New file.
812         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
813         * lib/unictype/pr_bidi_other_neutral.c: New file.
814         * lib/unictype/pr_bidi_pdf.c: New file.
815         * lib/unictype/pr_bidi_segment_separator.c: New file.
816         * lib/unictype/pr_bidi_whitespace.c: New file.
817         * lib/unictype/pr_byname.c: New file.
818         * lib/unictype/pr_byname.gperf: New file.
819         * lib/unictype/pr_combining.c: New file.
820         * lib/unictype/pr_composite.c: New file.
821         * lib/unictype/pr_currency_symbol.c: New file.
822         * lib/unictype/pr_dash.c: New file.
823         * lib/unictype/pr_decimal_digit.c: New file.
824         * lib/unictype/pr_default_ignorable_code_point.c: New file.
825         * lib/unictype/pr_deprecated.c: New file.
826         * lib/unictype/pr_diacritic.c: New file.
827         * lib/unictype/pr_extender.c: New file.
828         * lib/unictype/pr_format_control.c: New file.
829         * lib/unictype/pr_grapheme_base.c: New file.
830         * lib/unictype/pr_grapheme_extend.c: New file.
831         * lib/unictype/pr_grapheme_link.c: New file.
832         * lib/unictype/pr_hex_digit.c: New file.
833         * lib/unictype/pr_hyphen.c: New file.
834         * lib/unictype/pr_id_continue.c: New file.
835         * lib/unictype/pr_id_start.c: New file.
836         * lib/unictype/pr_ideographic.c: New file.
837         * lib/unictype/pr_ids_binary_operator.c: New file.
838         * lib/unictype/pr_ids_trinary_operator.c: New file.
839         * lib/unictype/pr_ignorable_control.c: New file.
840         * lib/unictype/pr_iso_control.c: New file.
841         * lib/unictype/pr_join_control.c: New file.
842         * lib/unictype/pr_left_of_pair.c: New file.
843         * lib/unictype/pr_line_separator.c: New file.
844         * lib/unictype/pr_logical_order_exception.c: New file.
845         * lib/unictype/pr_lowercase.c: New file.
846         * lib/unictype/pr_math.c: New file.
847         * lib/unictype/pr_non_break.c: New file.
848         * lib/unictype/pr_not_a_character.c: New file.
849         * lib/unictype/pr_numeric.c: New file.
850         * lib/unictype/pr_other_alphabetic.c: New file.
851         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
852         * lib/unictype/pr_other_grapheme_extend.c: New file.
853         * lib/unictype/pr_other_id_continue.c: New file.
854         * lib/unictype/pr_other_id_start.c: New file.
855         * lib/unictype/pr_other_lowercase.c: New file.
856         * lib/unictype/pr_other_math.c: New file.
857         * lib/unictype/pr_other_uppercase.c: New file.
858         * lib/unictype/pr_paired_punctuation.c: New file.
859         * lib/unictype/pr_paragraph_separator.c: New file.
860         * lib/unictype/pr_pattern_syntax.c: New file.
861         * lib/unictype/pr_pattern_white_space.c: New file.
862         * lib/unictype/pr_private_use.c: New file.
863         * lib/unictype/pr_punctuation.c: New file.
864         * lib/unictype/pr_quotation_mark.c: New file.
865         * lib/unictype/pr_radical.c: New file.
866         * lib/unictype/pr_sentence_terminal.c: New file.
867         * lib/unictype/pr_soft_dotted.c: New file.
868         * lib/unictype/pr_space.c: New file.
869         * lib/unictype/pr_terminal_punctuation.c: New file.
870         * lib/unictype/pr_test.c: New file.
871         * lib/unictype/pr_titlecase.c: New file.
872         * lib/unictype/pr_unassigned_code_value.c: New file.
873         * lib/unictype/pr_unified_ideograph.c: New file.
874         * lib/unictype/pr_uppercase.c: New file.
875         * lib/unictype/pr_variation_selector.c: New file.
876         * lib/unictype/pr_white_space.c: New file.
877         * lib/unictype/pr_xid_continue.c: New file.
878         * lib/unictype/pr_xid_start.c: New file.
879         * lib/unictype/pr_zero_width.c: New file.
880         * lib/unictype/scripts.c: New file.
881         * lib/unictype/sy_c_ident.c: New file.
882         * lib/unictype/sy_c_whitespace.c: New file.
883         * lib/unictype/sy_java_ident.c: New file.
884         * lib/unictype/sy_java_whitespace.c: New file.
885
886         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
887         Unicode 5.0.0.
888         * lib/unictype/blocks.h: Likewise.
889         * lib/unictype/categ_C.h: Likewise.
890         * lib/unictype/categ_Cc.h: Likewise.
891         * lib/unictype/categ_Cf.h: Likewise.
892         * lib/unictype/categ_Cn.h: Likewise.
893         * lib/unictype/categ_Co.h: Likewise.
894         * lib/unictype/categ_Cs.h: Likewise.
895         * lib/unictype/categ_L.h: Likewise.
896         * lib/unictype/categ_Ll.h: Likewise.
897         * lib/unictype/categ_Lm.h: Likewise.
898         * lib/unictype/categ_Lo.h: Likewise.
899         * lib/unictype/categ_Lt.h: Likewise.
900         * lib/unictype/categ_Lu.h: Likewise.
901         * lib/unictype/categ_M.h: Likewise.
902         * lib/unictype/categ_Mc.h: Likewise.
903         * lib/unictype/categ_Me.h: Likewise.
904         * lib/unictype/categ_Mn.h: Likewise.
905         * lib/unictype/categ_N.h: Likewise.
906         * lib/unictype/categ_Nd.h: Likewise.
907         * lib/unictype/categ_Nl.h: Likewise.
908         * lib/unictype/categ_No.h: Likewise.
909         * lib/unictype/categ_P.h: Likewise.
910         * lib/unictype/categ_Pc.h: Likewise.
911         * lib/unictype/categ_Pd.h: Likewise.
912         * lib/unictype/categ_Pe.h: Likewise.
913         * lib/unictype/categ_Pf.h: Likewise.
914         * lib/unictype/categ_Pi.h: Likewise.
915         * lib/unictype/categ_Po.h: Likewise.
916         * lib/unictype/categ_Ps.h: Likewise.
917         * lib/unictype/categ_S.h: Likewise.
918         * lib/unictype/categ_Sc.h: Likewise.
919         * lib/unictype/categ_Sk.h: Likewise.
920         * lib/unictype/categ_Sm.h: Likewise.
921         * lib/unictype/categ_So.h: Likewise.
922         * lib/unictype/categ_Z.h: Likewise.
923         * lib/unictype/categ_Zl.h: Likewise.
924         * lib/unictype/categ_Zp.h: Likewise.
925         * lib/unictype/categ_Zs.h: Likewise.
926         * lib/unictype/categ_of.h: Likewise.
927         * lib/unictype/combining.h: Likewise.
928         * lib/unictype/ctype_alnum.h: Likewise.
929         * lib/unictype/ctype_alpha.h: Likewise.
930         * lib/unictype/ctype_blank.h: Likewise.
931         * lib/unictype/ctype_cntrl.h: Likewise.
932         * lib/unictype/ctype_digit.h: Likewise.
933         * lib/unictype/ctype_graph.h: Likewise.
934         * lib/unictype/ctype_lower.h: Likewise.
935         * lib/unictype/ctype_print.h: Likewise.
936         * lib/unictype/ctype_punct.h: Likewise.
937         * lib/unictype/ctype_space.h: Likewise.
938         * lib/unictype/ctype_upper.h: Likewise.
939         * lib/unictype/ctype_xdigit.h: Likewise.
940         * lib/unictype/decdigit.h: Likewise.
941         * lib/unictype/digit.h: Likewise.
942         * lib/unictype/mirror.h: Likewise.
943         * lib/unictype/numeric.h: Likewise.
944         * lib/unictype/pr_alphabetic.h: Likewise.
945         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
946         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
947         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
948         * lib/unictype/pr_bidi_block_separator.h: Likewise.
949         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
950         * lib/unictype/pr_bidi_common_separator.h: Likewise.
951         * lib/unictype/pr_bidi_control.h: Likewise.
952         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
953         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
954         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
955         * lib/unictype/pr_bidi_european_digit.h: Likewise.
956         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
957         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
958         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
959         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
960         * lib/unictype/pr_bidi_pdf.h: Likewise.
961         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
962         * lib/unictype/pr_bidi_whitespace.h: Likewise.
963         * lib/unictype/pr_combining.h: Likewise.
964         * lib/unictype/pr_composite.h: Likewise.
965         * lib/unictype/pr_currency_symbol.h: Likewise.
966         * lib/unictype/pr_dash.h: Likewise.
967         * lib/unictype/pr_decimal_digit.h: Likewise.
968         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
969         * lib/unictype/pr_deprecated.h: Likewise.
970         * lib/unictype/pr_diacritic.h: Likewise.
971         * lib/unictype/pr_extender.h: Likewise.
972         * lib/unictype/pr_format_control.h: Likewise.
973         * lib/unictype/pr_grapheme_base.h: Likewise.
974         * lib/unictype/pr_grapheme_extend.h: Likewise.
975         * lib/unictype/pr_grapheme_link.h: Likewise.
976         * lib/unictype/pr_hex_digit.h: Likewise.
977         * lib/unictype/pr_hyphen.h: Likewise.
978         * lib/unictype/pr_id_continue.h: Likewise.
979         * lib/unictype/pr_id_start.h: Likewise.
980         * lib/unictype/pr_ideographic.h: Likewise.
981         * lib/unictype/pr_ids_binary_operator.h: Likewise.
982         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
983         * lib/unictype/pr_ignorable_control.h: Likewise.
984         * lib/unictype/pr_iso_control.h: Likewise.
985         * lib/unictype/pr_join_control.h: Likewise.
986         * lib/unictype/pr_left_of_pair.h: Likewise.
987         * lib/unictype/pr_line_separator.h: Likewise.
988         * lib/unictype/pr_logical_order_exception.h: Likewise.
989         * lib/unictype/pr_lowercase.h: Likewise.
990         * lib/unictype/pr_math.h: Likewise.
991         * lib/unictype/pr_non_break.h: Likewise.
992         * lib/unictype/pr_not_a_character.h: Likewise.
993         * lib/unictype/pr_numeric.h: Likewise.
994         * lib/unictype/pr_other_alphabetic.h: Likewise.
995         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
996         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
997         * lib/unictype/pr_other_id_continue.h: Likewise.
998         * lib/unictype/pr_other_id_start.h: Likewise.
999         * lib/unictype/pr_other_lowercase.h: Likewise.
1000         * lib/unictype/pr_other_math.h: Likewise.
1001         * lib/unictype/pr_other_uppercase.h: Likewise.
1002         * lib/unictype/pr_paired_punctuation.h: Likewise.
1003         * lib/unictype/pr_paragraph_separator.h: Likewise.
1004         * lib/unictype/pr_pattern_syntax.h: Likewise.
1005         * lib/unictype/pr_pattern_white_space.h: Likewise.
1006         * lib/unictype/pr_private_use.h: Likewise.
1007         * lib/unictype/pr_punctuation.h: Likewise.
1008         * lib/unictype/pr_quotation_mark.h: Likewise.
1009         * lib/unictype/pr_radical.h: Likewise.
1010         * lib/unictype/pr_sentence_terminal.h: Likewise.
1011         * lib/unictype/pr_soft_dotted.h: Likewise.
1012         * lib/unictype/pr_space.h: Likewise.
1013         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1014         * lib/unictype/pr_titlecase.h: Likewise.
1015         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1016         * lib/unictype/pr_unified_ideograph.h: Likewise.
1017         * lib/unictype/pr_uppercase.h: Likewise.
1018         * lib/unictype/pr_variation_selector.h: Likewise.
1019         * lib/unictype/pr_white_space.h: Likewise.
1020         * lib/unictype/pr_xid_continue.h: Likewise.
1021         * lib/unictype/pr_xid_start.h: Likewise.
1022         * lib/unictype/pr_zero_width.h: Likewise.
1023         * lib/unictype/scripts.h: Likewise.
1024         * lib/unictype/scripts_byname.gperf: Likewise.
1025         * lib/unictype/sy_c_ident.h: Likewise.
1026         * lib/unictype/sy_c_whitespace.h: Likewise.
1027         * lib/unictype/sy_java_ident.h: Likewise.
1028         * lib/unictype/sy_java_whitespace.h: Likewise.
1029
1030         * lib/unictype/Makefile: New file.
1031         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
1032         glibc.
1033         * lib/unictype/3level.h: New file, copied from glibc.
1034         * lib/unictype/3levelbit.h: New file.
1035
1036 2007-11-11  Bruno Haible  <bruno@clisp.org>
1037
1038         * modules/gperf: New file.
1039         * modules/iconv_open (Depends-on): Add it.
1040         (Makefile.am): Remove the GPERF definition.
1041
1042 2007-11-11  Bruno Haible  <bruno@clisp.org>
1043
1044         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
1045         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
1046
1047 2007-11-11  Bruno Haible  <bruno@clisp.org>
1048
1049         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
1050         (usage): Remove function.
1051
1052 2007-11-11  Bruno Haible  <bruno@clisp.org>
1053
1054         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
1055         gl_FUNC_CEILF_LIBS.
1056         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
1057         gl_FUNC_CEIL_LIBS.
1058         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
1059         gl_FUNC_CEILL_LIBS.
1060         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
1061         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
1062         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
1063
1064 2007-11-11  Bruno Haible  <bruno@clisp.org>
1065
1066         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
1067         roundf were declared but do not exist on functions.
1068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
1069         roundl were declared but do not exist on functions.
1070         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
1071         HAVE_FLOORL_AND_CEILL, respectively.
1072         Needed for Sun C on Solaris 10.
1073
1074 2007-11-11  Bruno Haible  <bruno@clisp.org>
1075
1076         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
1077         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
1078         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
1079         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
1080         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
1081         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
1082         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
1083         HAVE_DECL_ROUNDF.
1084         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
1085         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
1086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
1087         of HAVE_DECL_ROUND*.
1088         * modules/math (Makefile.am): Update.
1089
1090 2007-11-10  Bruno Haible  <bruno@clisp.org>
1091
1092         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
1093         ptrdiff_t as m4/intl.m4.
1094
1095 2007-11-10  Jim Meyering  <meyering@redhat.com>
1096
1097         Avoid link failure for the argmatch test.
1098         * tests/test-argmatch.c (usage): Define function to avoid a link
1099         failure: argmatch_die requires a usage function.
1100
1101 2007-11-09  Bruno Haible  <bruno@clisp.org>
1102
1103         * doc/functions/snprintf.texi: Mention BeOS deficiency.
1104         * doc/functions/vsnprintf.texi: Likewise.
1105         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
1106         with a size argument < 2.
1107
1108 2007-11-09  Bruno Haible  <bruno@clisp.org>
1109
1110         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
1111         buffer. Fixes an inefficiency introduced on 2007-11-03.
1112
1113 2007-11-09  Bruno Haible  <bruno@clisp.org>
1114
1115         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
1116         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
1117
1118 2007-11-08  Jim Meyering  <meyering@redhat.com>
1119
1120         Change cache variable name prefix "jm_" to "gl_" everywhere.
1121         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
1122         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
1123         * m4/uptime.m4: s/gl_/jm_/
1124
1125 2007-11-07  Bruno Haible  <bruno@clisp.org>
1126
1127         Update to GNU gettext 0.17.
1128         * m4/intl.m4: Update to GNU gettext 0.17.
1129         * m4/po.m4: Likewise.
1130         * modules/gettext (Files): Remove m4/ulonglong.m4.
1131         (configure.ac): Require gettext infrastructure from version 0.17.
1132
1133 2007-11-06  Bruno Haible  <bruno@clisp.org>
1134
1135         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
1136         symbolic values are not defined in a public header.
1137         * lib/freadable.c (freadable) [QNX]: Likewise.
1138         * lib/freadahead.c (freadahead) [QNX]: Likewise.
1139         * lib/freading.c (freading) [QNX]: Likewise.
1140         * lib/fseterr.c (fseterr) [QNX]: Likewise.
1141         * lib/fwritable.c (fwritable) [QNX]: Likewise.
1142         * lib/fwriting.c (fwriting) [QNX]: Likewise.
1143         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
1144         Reported by Alain Magloire.
1145
1146         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
1147
1148 2007-11-05  Bruno Haible  <bruno@clisp.org>
1149
1150         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
1151         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
1152         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
1153         Reported by Eric Blake.
1154
1155 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1156             Bruno Haible  <bruno@clisp.org>
1157
1158         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
1159         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
1160         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
1161         (malloc): Undefine also before including <stdlib.h>.
1162         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
1163         Needed on OSF/1 4.0.
1164
1165 2007-11-05  Jim Meyering  <meyering@redhat.com>
1166
1167         git-version-gen: sync from coreutils.
1168         * build-aux/git-version-gen: Add comments.
1169         Change the first '-' to '.' in the snapshot version string,
1170         e.g., 6.9-377-08144 -> 6.9.377-08144
1171         Remove first parameter.
1172         Don't declare a version "-dirty" merely because a time
1173         stamp has changed.
1174
1175 2007-11-04  Bruno Haible  <bruno@clisp.org>
1176
1177         * lib/lock.h: Protect all macro definitions containing an 'if'
1178         statement through a "do { ... } while (0)".
1179         * lib/tls.h: Likewise.
1180
1181 2007-11-04  Bruno Haible  <bruno@clisp.org>
1182
1183         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
1184
1185 2007-11-04  Bruno Haible  <bruno@clisp.org>
1186
1187         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
1188         * modules/fprintf-posix (Depends-on): Add nocrash.
1189         * modules/snprintf-posix (Depends-on): Likewise.
1190         * modules/sprintf-posix (Depends-on): Likewise.
1191         * modules/vasnprintf-posix (Depends-on): Likewise.
1192         * modules/vasprintf-posix (Depends-on): Likewise.
1193         * modules/vfprintf-posix (Depends-on): Likewise.
1194         * modules/vsnprintf-posix (Depends-on): Likewise.
1195         * modules/vsprintf-posix (Depends-on): Likewise.
1196         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1197         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1198         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1199         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1200         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1201         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1202         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1203
1204 2007-11-04  Bruno Haible  <bruno@clisp.org>
1205
1206         * modules/nocrash: New file.
1207         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
1208         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
1209
1210 2007-11-04  Bruno Haible  <bruno@clisp.org>
1211
1212         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
1213         precision handling.
1214         * tests/test-vasprintf-posix.c (test_function): Likewise.
1215         * tests/test-snprintf-posix.h (test_function): Likewise.
1216         * tests/test-sprintf-posix.h (test_function): Likewise.
1217
1218         Fix *printf behaviour for large precisions on mingw and BeOS.
1219         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
1220         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
1221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
1222         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1223         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1224         gl_PRINTF_PRECISION and test its result. Invoke
1225         gl_PREREQ_VASNPRINTF_PRECISION.
1226         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1229         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1230         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1232         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1233         * doc/functions/fprintf.texi: Update.
1234         * doc/functions/printf.texi: Update.
1235         * doc/functions/snprintf.texi: Update.
1236         * doc/functions/sprintf.texi: Update.
1237         * doc/functions/vfprintf.texi: Update.
1238         * doc/functions/vprintf.texi: Update.
1239         * doc/functions/vsnprintf.texi: Update.
1240         * doc/functions/vsprintf.texi: Update.
1241
1242 2007-11-04  Bruno Haible  <bruno@clisp.org>
1243
1244         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
1245
1246 2007-11-04  Bruno Haible  <bruno@clisp.org>
1247
1248         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
1249         Reported by Sylvain Beucler <beuc@gnu.org>.
1250
1251 2007-11-03  Bruno Haible  <bruno@clisp.org>
1252
1253         * tests/test-fprintf-posix2.sh: New file.
1254         * tests/test-fprintf-posix2.c: New file.
1255         * modules/fprintf-posix-tests (Files): Add them.
1256         (TESTS): Add test-fprintf-posix2.sh.
1257         (configure.ac): Check for getrlimit and setrlimit.
1258         (check_PROGRAMS): Add test-fprintf-posix2.
1259
1260         * tests/test-printf-posix2.sh: New file.
1261         * tests/test-printf-posix2.c: New file.
1262         * modules/printf-posix-tests (Files): Add them.
1263         (TESTS): Add test-printf-posix2.sh.
1264         (configure.ac): Check for getrlimit and setrlimit.
1265         (check_PROGRAMS): Add test-printf-posix2.
1266
1267         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
1268         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
1269         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
1270         (decode_double): New function, copied from decode_long_double.
1271         (scale10_round_decimal_decoded): New function, extracted from
1272         scale10_round_decimal_long_double.
1273         (scale10_round_decimal_long_double): Use it.
1274         (scale10_round_decimal_double): New function.
1275         (floorlog10): New function.
1276         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
1277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
1278         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1279         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1280         gl_PRINTF_ENOMEM and test its result. Invoke
1281         gl_PREREQ_VASNPRINTF_ENOMEM.
1282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1283         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1284         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1285         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1286         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1287         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1288         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1289         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
1290         * modules/snprintf-posix (Depends-on): Likewise.
1291         * modules/sprintf-posix (Depends-on): Likewise.
1292         * modules/vasnprintf-posix (Depends-on): Likewise.
1293         * modules/vasprintf-posix (Depends-on): Likewise.
1294         * modules/vfprintf-posix (Depends-on): Likewise.
1295         * modules/vsnprintf-posix (Depends-on): Likewise.
1296         * modules/vsprintf-posix (Depends-on): Likewise.
1297         * doc/functions/fprintf.texi: Update.
1298         * doc/functions/printf.texi: Update.
1299         * doc/functions/snprintf.texi: Update.
1300         * doc/functions/sprintf.texi: Update.
1301         * doc/functions/vfprintf.texi: Update.
1302         * doc/functions/vprintf.texi: Update.
1303         * doc/functions/vsnprintf.texi: Update.
1304         * doc/functions/vsprintf.texi: Update.
1305
1306 2007-11-03  Bruno Haible  <bruno@clisp.org>
1307
1308         * modules/frexp-nolibm-tests: New file.
1309
1310         * modules/frexp-nolibm: New file.
1311         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
1312
1313 2007-11-03  Bruno Haible  <bruno@clisp.org>
1314
1315         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
1316         value is C99 compliant.
1317         Needed for OSF/1 5.1.
1318
1319 2007-11-03  Bruno Haible  <bruno@clisp.org>
1320
1321         Fix out-of-memory handling of vasnprintf.
1322         * lib/printf-parse.c: Include <errno.h>.
1323         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
1324         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
1325         is already set.
1326
1327 2007-11-02  Eric Blake  <ebb9@byu.net>
1328
1329         Fix tests on cygwin.
1330         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
1331
1332 2007-11-01  Bruno Haible  <bruno@clisp.org>
1333
1334         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
1335         warning.
1336         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
1337         needed for POSIX compatibility.
1338
1339 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1340
1341         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
1342         for compatibility with GNU.
1343
1344 2007-11-01  Bruno Haible  <bruno@clisp.org>
1345
1346         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
1347         (putenv): Renamed from rpl_putenv. Change argument type from
1348         'const char *' to 'char *'.
1349         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
1350         of defining putenv in config.h, just set REPLACE_PUTENV.
1351         * modules/putenv (Depends-on): Add stdlib.
1352         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1353         (Include): Use <stdlib.h>.
1354         * lib/stdlib.in.h (putenv): New declaration.
1355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
1356         REPLACE_PUTENV.
1357         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
1358         REPLACE_PUTENV.
1359         Needed for MacOS X 10.5.0.
1360         Reported by Peter O'Gorman <peter@pogma.com>.
1361
1362 2007-11-01  Jim Meyering  <meyering@redhat.com>
1363
1364         Treat an empty date string exactly like "0".
1365         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
1366         if the remaining date string (to be parsed) is empty, use "0".
1367         Reported by Mischa Molhoek and discussed in this thread:
1368         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
1369
1370 2007-10-31  Bruno Haible  <bruno@clisp.org>
1371
1372         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
1373         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
1374         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
1375         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
1376         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
1377         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
1378
1379 2007-10-31  Bruno Haible  <bruno@clisp.org>
1380
1381         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
1382         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
1383         (AC_TYPE_LONG_LONG_INT): Use it.
1384         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
1385         it as well.
1386         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
1387         to m4/longlong.m4.
1388         * modules/stdint (Files): Remove m4/ulonglong.m4.
1389         * modules/strtoull (Files): Use m4/longlong.m4 instead of
1390         m4/ulonglong.m4.
1391         * modules/strtoumax (Files): Likewise.
1392
1393 2007-10-30  Bruno Haible  <bruno@clisp.org>
1394
1395         * modules/xvasprintf-posix: New file.
1396         Suggested by Eric Blake.
1397
1398 2007-10-30  Bruno Haible  <bruno@clisp.org>
1399
1400         * modules/xprintf-posix-tests: New file.
1401         * tests/test-xprintf-posix.sh: New file.
1402         * tests/test-xprintf-posix.c: New file.
1403         * tests/test-xfprintf-posix.c: New file.
1404
1405         * modules/xprintf-posix: New file.
1406
1407 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1408
1409         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
1410         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
1411         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
1412
1413 2007-10-29  Bruno Haible  <bruno@clisp.org>
1414
1415         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
1416         contain the special marker '_cv_'.
1417         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1418         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1419         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1420         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
1421         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1422         Reported by Ralf Wildenhues.
1423
1424 2007-10-29  Bruno Haible  <bruno@clisp.org>
1425
1426         * gnulib-tool (func_import): When --lgpl is not specified, set
1427         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
1428         GPLv3.
1429         Reported by Simon Josefsson.
1430
1431 2007-10-28  Bruno Haible  <bruno@clisp.org>
1432
1433         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
1434         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
1435         HAVE_DECL_ISFINITE.
1436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
1437         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
1438         HAVE_DECL_ISFINITE.
1439
1440 2007-10-28  Bruno Haible  <bruno@clisp.org>
1441
1442         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
1443         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
1444
1445 2007-10-28  Bruno Haible  <bruno@clisp.org>
1446
1447         Fix link errors with Sun C 5.0 on Solaris 10.
1448         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
1449         function is declared but not present in the compiler's libm.
1450         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1451         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1452         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
1453         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
1454         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
1455         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
1456         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
1457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
1458         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
1459         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
1460         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
1461         HAVE_DECL_FLOORL.
1462
1463 2007-10-28  Bruno Haible  <bruno@clisp.org>
1464
1465         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
1466         gl_FUNC_FLOORL. Cache the result.
1467         (gl_FUNC_FLOORL): Use it.
1468         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
1469         gl_FUNC_CEILL. Cache the result.
1470         (gl_FUNC_CEILL): Use it.
1471
1472         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
1473         gl_FUNC_FLOOR. Cache the result.
1474         (gl_FUNC_FLOOR): Use it.
1475         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
1476         gl_FUNC_CEIL. Cache the result.
1477         (gl_FUNC_CEIL): Use it.
1478
1479         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
1480         gl_FUNC_FLOORF. Cache the result.
1481         (gl_FUNC_FLOORF): Use it.
1482         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
1483         gl_FUNC_CEILF. Cache the result.
1484         (gl_FUNC_CEILF): Use it.
1485
1486 2007-10-28  Bruno Haible  <bruno@clisp.org>
1487
1488         * gnulib-tool: Allow specifying the LGPL version number through
1489         --lgpl=2 or --lgpl=3.
1490         (func_usage): Document --lgpl with argument.
1491         Handle --lgpl=... arguments.
1492         (func_import): Recognize also gl_LGPL calls with an argument. When
1493         --lgpl=2 is used and the module's license is just LGPL, report an
1494         error. Set sed_transform_lib_file according to the lgpl variable. In
1495         the generated files, use --lgpl or gl_LGPL invocations with argument,
1496         if necessary.
1497         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
1498         an LGPv2+ license.
1499         * doc/gnulib-tool.texi (Modified imports): Update explanation of
1500         gl_LGPL macro.
1501
1502 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1503             Bruno Haible  <bruno@clisp.org>
1504
1505         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
1506         (u16_uctomb_aux): Likewise.
1507         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
1508         !HAVE_INLINE.
1509         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
1510
1511 2007-10-28  Bruno Haible  <bruno@clisp.org>
1512
1513         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
1514         Invoke AM_GETTEXT_OPTION if it exists.
1515         * modules/vasprintf: Likewise.
1516         * modules/verror: Likewise.
1517         * modules/xprintf: Likewise.
1518         * modules/xvasprintf: Likewise.
1519
1520 2007-10-27  Ben Pfaff  <blp@gnu.org>
1521
1522         * lib/math.in.h: Define isfinite macro and prototypes for
1523         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
1524         implementations.
1525         * m4/math_h.m4: New substitutions for isfinite module.
1526         * lib/isfinite.c: New file.
1527         * m4/isfinite.m4: New file.
1528         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
1529         * modules/isfinite: New file.
1530         * modules/isfinite-tests: New file.
1531         * tests/tests-isfinite.c: New file.
1532         * doc/functions/isfinite.texi: Mention isfinite module.
1533         * MODULES.html.sh: Mention new module.
1534
1535 2007-10-27  Ben Pfaff  <blp@gnu.org>
1536
1537         Ralf Wildenhues reported that Tru64 4.0D declares the round
1538         functions but does not have definitions.
1539         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
1540         cannot be found in any library, set the output variable to
1541         "missing" instead of "".
1542         * m4/round.m4: Also use our substitute if we cannot find round in
1543         any library, even if it is declared.
1544         * m4/roundf.m4: Likewise for roundf.
1545         * m4/roundl.m4: Likewise for roundl.
1546         * lib/math.in.h: Undefine roundf, round, roundl before defining
1547         their replacements, to allow for hypothetical systems where these
1548         may be defined as macros but not available in libraries.
1549
1550 2007-10-27  Bruno Haible  <bruno@clisp.org>
1551
1552         * doc/gnulib.texi: Invoke @firstparagraphindent.
1553         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
1554         changes in gnulib.
1555         (Source changes): New section.
1556
1557 2007-10-26  Bruno Haible  <bruno@clisp.org>
1558
1559         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
1560         borrowed from autoconf.
1561
1562 2007-10-26  Bruno Haible  <bruno@clisp.org>
1563
1564         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
1565         strerror returned the empty string. Needed on HP-UX 11.00.
1566
1567 2007-10-24  Micah Cowan  <micah@cowan.name>
1568
1569         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
1570         * build-aux/bootstrap: Remove support for now-unnecessary option,
1571         --cvs-user, and envvars CVS_USER, CVS_RSH.
1572
1573 2007-10-24  Jim Meyering  <meyering@redhat.com>
1574
1575         Avoid diagnostics from sha1sum when there is no cached checksum.
1576         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
1577         if the po.s1 file hasn't been created yet.
1578
1579         * build-aux/bootstrap: Sync from coreutils:
1580         2007-10-24  Jim Meyering  <meyering@redhat.com>
1581         Get gnulib from the git repository, not from an obsolete cvs one.
1582         * build-aux/bootstrap: Suggestion from Micah Cowan.
1583         2007-10-04  Jim Meyering  <jim@meyering.net>
1584         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
1585         (update_po_files): Work also when there are no .po files in po/.
1586
1587 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1588
1589         * README: Append ".git" to git and cg examples.
1590         Problem reported by Benoit Sigoure.
1591
1592 2007-10-23  Micah Cowan  <micah@cowan.name>
1593
1594         * users.txt: Add wget.
1595
1596 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1597
1598         Fix linking of some unistdio tests on FreeBSD.
1599         * modules/unistdio/u16-vsnprintf-tests
1600         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
1601         * modules/unistdio/u16-vsprintf-tests
1602         (test_u16_vsnprintf1_LDADD): Likewise.
1603         * modules/unistdio/u32-vsnprintf-tests
1604         (test_u32_vsnprintf1_LDADD): Likewise.
1605         * modules/unistdio/u32-vsprintf-tests
1606         (test_u32_vsprintf1_LDADD): Likewise.
1607         * modules/unistdio/u8-vsnprintf-tests
1608         (test_u8_vsnprintf1_LDADD): Likewise.
1609         * modules/unistdio/u8-vsprintf-tests
1610         (test_u8_vsprintf1_LDADD): Likewise.
1611         * modules/unistdio/ulc-vsnprintf-tests
1612         (test_ulc_vsnprintf1_LDADD): Likewise.
1613         * modules/unistdio/ulc-vsprintf-tests
1614         (test_ulc_vsprintf1_LDADD): Likewise.
1615
1616         Fix linking of some uniconv tests on FreeBSD.
1617         * modules/uniconv/u16-conv-from-enc-tests
1618         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
1619         * modules/uniconv/u16-conv-to-enc-tests
1620         (test_u16_conv_to_enc_LDADD): Likewise.
1621         * modules/uniconv/u16-strconv-from-enc-tests
1622         (test_u16_strconv_from_enc_LDADD): Likewise.
1623         * modules/uniconv/u16-strconv-to-enc-tests
1624         (test_u16_strconv_to_enc_LDADD): Likewise.
1625         * modules/uniconv/u32-conv-from-enc-tests
1626         (test_u32_conv_from_enc_LDADD): Likewise.
1627         * modules/uniconv/u32-conv-to-enc-tests
1628         (test_u32_conv_to_enc_LDADD): Likewise.
1629         * modules/uniconv/u32-strconv-from-enc-tests
1630         (test_u32_strconv_from_enc_LDADD): Likewise.
1631         * modules/uniconv/u32-strconv-to-enc-tests
1632         (test_u32_strconv_to_enc_LDADD): Likewise.
1633         * modules/uniconv/u8-conv-from-enc-tests
1634         (test_u8_conv_from_enc_LDADD): Likewise.
1635         * modules/uniconv/u8-conv-to-enc-tests
1636         (test_u8_conv_to_enc_LDADD): Likewise.
1637         * modules/uniconv/u8-strconv-from-enc-tests
1638         (test_u8_strconv_from_enc_LDADD): Likewise.
1639         * modules/uniconv/u8-strconv-to-enc-tests
1640         (test_u8_strconv_to_enc_LDADD): Likewise.
1641
1642 2007-10-22  Bruno Haible  <bruno@clisp.org>
1643
1644         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
1645         size.
1646
1647 2007-10-22  Eric Blake  <ebb9@byu.net>
1648
1649         Tweak x*printf documentation.
1650         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
1651         variable name and comments.
1652         Suggested by Bruno Haible.
1653
1654 2007-10-22  Bruno Haible  <bruno@clisp.org>
1655
1656         * lib/acl.c (copy_acl): Fix file name in comment.
1657
1658 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1659
1660         Fix Tru64 problem with stdbool.h.
1661         * lib/stdbool.in.h (false, true):
1662         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
1663         Don't declare as an enum in this situation; it runs afoul of Tru64.
1664         Problem reported by Steven M. Schweda in
1665         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
1666
1667 2007-10-22  Eric Blake  <ebb9@byu.net>
1668
1669         Also wrap vf?printf.
1670         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
1671         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
1672         (xvprintf, xvfprintf): New functions.
1673
1674 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1675
1676         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
1677         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
1678
1679         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
1680         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
1681
1682 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1683
1684         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
1685         by Bruno Haible.
1686
1687 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1688
1689         * lib/getloadavg.c
1690         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
1691         Undef `sys' after including sys/table.h, for Tru64 4.0D.
1692
1693         * tests/test-i-ring.c: Work for C89.
1694
1695 2007-10-22  Bruno Haible  <bruno@clisp.org>
1696
1697         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
1698         -1u, in preprocessor expression, so that we don't test for the bug
1699         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
1700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
1701
1702 2007-10-22  Eric Blake  <ebb9@byu.net>
1703
1704         * tests/test-yesno.sh: Silence stderr during test.
1705
1706 2007-10-22  Simon Josefsson  <simon@josefsson.org>
1707
1708         * modules/crypto/gc-camellia: New file.
1709
1710         * m4/gc-camellia.m4: New file.
1711
1712         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
1713
1714         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
1715
1716 2007-10-22  Simon Josefsson  <simon@josefsson.org>
1717
1718         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
1719         --help to stdout.  Reported by sms@antinode.org (Steven
1720         M. Schweda).
1721
1722 2007-10-22  Simon Josefsson  <simon@josefsson.org>
1723
1724         * users.txt: Fix link to libksba.
1725
1726 2007-10-21  Ben Pfaff  <blp@gnu.org>
1727
1728         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
1729         round.c roundf implementation that depends on floorf and ceilf to
1730         be tested unconditionally.
1731
1732 2007-10-21  Ben Pfaff  <blp@gnu.org>
1733
1734         * m4/check-libm-func.m4: Removed.
1735         * m4/check-math-lib.m4: New file.
1736         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
1737         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
1738         definition and lack of AC_LIBOBJ([roundf]).
1739         * m4/roundl.m4: Ditto, and similarly for roundl.
1740         * modules/round: Reference new m4 file.
1741         * modules/roundf: Ditto.
1742         * modules/roundl: Ditto.
1743         * tests/test-round2.c (main): Use ROUND instead of round.
1744         Bug report from Bruno Haible.
1745
1746 2007-10-21  Bruno Haible  <bruno@clisp.org>
1747
1748         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
1749         context.
1750
1751 2007-10-21  Bruno Haible  <bruno@clisp.org>
1752
1753         * tests/test-wcwidth.c (main): Allow negative result for some control
1754         characters.
1755
1756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
1757         Needed on OSF/1 5.1.
1758
1759 2007-10-21  Bruno Haible  <bruno@clisp.org>
1760
1761         * tests/test-floorf1.c: Include isnanf.h.
1762         (main): Use isnanf() instead of isnan().
1763         * tests/test-ceilf1.c: Include isnanf.h.
1764         (main): Use isnanf() instead of isnan().
1765         * tests/test-truncf1.c: Include isnanf.h.
1766         (main): Use isnanf() instead of isnan().
1767         * tests/test-roundf1.c: Include isnanf.h.
1768         (main): Use isnanf() instead of isnan().
1769
1770 2007-10-21  Eric Blake  <ebb9@byu.net>
1771
1772         * users.txt: Update URL for m4.
1773
1774 2007-10-21  Bruno Haible  <bruno@clisp.org>
1775
1776         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
1777
1778 2007-10-21  Bruno Haible  <bruno@clisp.org>
1779
1780         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
1781         Git's management files if the CVS files are not present.
1782
1783 2007-10-20  Bruno Haible  <bruno@clisp.org>
1784
1785         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
1786         gcc-3.4.x.
1787
1788 2007-10-20  Ben Pfaff  <blp@gnu.org>
1789
1790         * lib/math.in.h: Declare round, roundf, roundl if we are providing
1791         implementations.
1792         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
1793         * lib/round.c: New file.
1794         * lib/roundf.c: New file.
1795         * lib/roundl.c: New file.
1796         * m4/round.m4: New file.
1797         * m4/roundf.m4: New file.
1798         * m4/roundl.m4: New file.
1799         * m4/check-libm-func-m4: New file.
1800         * modules/math: Replace round, roundf, roundl related @VARS@ in
1801         math.in.h.
1802         * modules/round: New file.
1803         * modules/round-tests: New file.
1804         * modules/roundf: New file.
1805         * modules/roundf-tests: New file.
1806         * modules/roundl: New file.
1807         * modules/roundl-tests: New file.
1808         * tests/test-round1.c: New file.
1809         * tests/test-round2.c: New file.
1810         * tests/test-roundf1.c: New file.
1811         * tests/test-roundf2.c: New file.
1812         * tests/test-roundl.c: New file.
1813         * doc/functions/round.texi: Mention round module.
1814         * doc/functions/roundf.texi: Mention roundf module.
1815         * doc/functions/roundl.texi: Mention roundl module.
1816         * MODULES.html.sh: Mention new modules.
1817         Thanks to Bruno Haible for suggestions.
1818
1819 2007-10-20  Jim Meyering  <meyering@redhat.com>
1820
1821         * lib/xprintf.c: Include <config.h> unconditionally.
1822
1823         Change xprintf's license to GPL.
1824         * modules/xprintf (License): s/LGPL/GPL/, since this module
1825         depends on modules (exit and exitfail) which are GPL.
1826         Suggestion from Bruno Haible.
1827
1828         xprintf fixes.
1829         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
1830         Use a clearer diagnostic.
1831         Patch from Bruno Haible.
1832
1833 2007-10-20  Bruno Haible  <bruno@clisp.org>
1834
1835         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
1836         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
1837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1838
1839 2007-10-20  Bruno Haible  <bruno@clisp.org>
1840
1841         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
1842         precision in the comparison result > x - 1 or similar.
1843         * tests/test-ceilf2.c (correct_result_p): Likewise.
1844         * tests/test-truncf2.c (correct_result_p): Likewise.
1845         * tests/test-trunc2.c (correct_result_p): Likewise.
1846         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1847
1848 2007-10-20  Bruno Haible  <bruno@clisp.org>
1849
1850         * modules/ceil: New file.
1851         * m4/ceil.m4: New file.
1852         * doc/functions/ceil.texi: Mention the 'ceil' module.
1853
1854 2007-10-20  Bruno Haible  <bruno@clisp.org>
1855
1856         * modules/floor: New file.
1857         * m4/floor.m4: New file.
1858         * doc/functions/floor.texi: Mention the 'floor' module.
1859
1860 2007-10-20  Bruno Haible  <bruno@clisp.org>
1861
1862         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
1863         of %a.
1864         * modules/floorf-tests (Depends-on): Likewise.
1865         * modules/truncf-tests (Depends-on): Likewise.
1866         * modules/trunc-tests (Depends-on): Likewise.
1867         Reported by Ben Pfaff.
1868
1869 2007-10-19  Jim Meyering  <meyering@redhat.com>
1870
1871         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
1872         Don't bother testing specific errno values.  Just test ferror.
1873
1874         New module: xprintf
1875         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
1876
1877 2007-10-19  Bruno Haible  <bruno@clisp.org>
1878
1879         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
1880         syntax.
1881         * modules/javaexec (Makefile.am): Likewise.
1882         * modules/relocatable-prog (Makefile.am): Likewise.
1883         Suggested by Jim Meyering.
1884
1885 2007-10-18  Bruno Haible  <bruno@clisp.org>
1886
1887         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
1888         Reported by Jim Meyering.
1889
1890 2007-10-18  Eric Blake  <ebb9@byu.net>
1891
1892         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
1893
1894 2007-10-18  Bruno Haible  <bruno@clisp.org>
1895
1896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
1897         the format string into writable memory. Needed in Fortify conditions.
1898
1899 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
1900             Bruno Haible  <bruno@clisp.org>
1901
1902         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
1903         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
1904         * modules/trim (Depends-on): Add mbchar.
1905         (configure.ac): Add gl_FUNC_MBRTOWC.
1906         (Makefile.am): Augment lib_SOURCES.
1907
1908 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
1909
1910         Modify glob.c to use fstatat and dirfd, to simplify it.
1911         Suggested by Eric Blake.
1912         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
1913         Don't include <stdbool.h>; not used.
1914         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
1915         (link_exists_p): Simplify implementation, since we can now assume
1916         dirfd and fstatat.
1917         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
1918
1919 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1920
1921         * gnulib-tool (func_get_dependencies): Fix sed script to
1922         match only tests.
1923
1924 2007-10-17  Bruno Haible  <bruno@clisp.org>
1925
1926         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
1927         allow locale names without encoding suffix.
1928         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1929         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1930
1931 2007-10-16  Bruno Haible  <bruno@clisp.org>
1932
1933         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
1934         * lib/getgroups.c (getgroups): Likewise.
1935         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
1936
1937 2007-10-16  Bruno Haible  <bruno@clisp.org>
1938
1939         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
1940         * modules/malloc-posix (License): Likewise.
1941         * modules/realloc-posix (License): Likewise.
1942         * modules/calloc-posix (License): Likewise.
1943         * modules/intprops (License): Change from GPL to LGPL, with
1944         Paul Eggert's approval.
1945
1946 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1947
1948         Merge glibc changes into lib/glob.c.
1949
1950         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
1951         2007-10-15 04:59:03 UTC.  Here are the changes:
1952
1953         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
1954
1955         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
1956
1957         * lib/glob.c: Add some branch prediction throughout.
1958
1959         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
1960
1961         [BZ #5103]
1962         * lib/glob.c (glob): Recognize patterns starting \/.
1963
1964         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
1965
1966         [BZ #3996]
1967         * lib/glob.c (attribute_hidden): Define if not defined.
1968         (glob): Unescape dirname, filename or username when needed and not
1969         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
1970         is NULL.  Handle unescaped [ in pattern without closing ].
1971         Don't pass GLOB_CHECK down to recursive glob for directories.
1972         (__glob_pattern_type): New function.
1973         (__glob_pattern_p): Implement using __glob_pattern_type.
1974         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
1975         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
1976         Remove unreachable code.
1977
1978         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
1979
1980         * lib/glob.c (glob_in_dir): Add some comments and asserts to
1981         explain why there are no leaks.
1982
1983         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
1984
1985         [BZ #3253]
1986         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
1987         time, rather allocate increasingly bigger arrays of pointers, if
1988         possible with alloca, if too large with malloc.
1989
1990 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1991
1992         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
1993         Problem reported by H.Merijn Brand in
1994         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
1995         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
1996         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
1997
1998 2007-10-15  Bruno Haible  <bruno@clisp.org>
1999
2000         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
2001         with explicit rpl_ prefix.
2002         * lib/fopen.c (fopen): Likewise.
2003         * lib/freopen.c (freopen): Likewise.
2004         * lib/iconv.c (iconv): Likewise.
2005         * lib/iconv_close.c (iconv_close): Likewise.
2006
2007 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2008
2009         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
2010
2011 2007-10-15  Bruno Haible  <bruno@clisp.org>
2012
2013         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
2014         <stddef.h> instead of <stdlib.h> since we only need NULL.
2015         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2016
2017 2007-10-15  Bruno Haible  <bruno@clisp.org>
2018
2019         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
2020         Replace paragraph talking about LIBOBJS.
2021         Reported by Colin Watson <cjwatson@debian.org>.
2022
2023 2007-10-15  Bruno Haible  <bruno@clisp.org>
2024
2025         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
2026         <stdlib.h> before using NULL.
2027
2028 2007-10-15  Simon Josefsson  <simon@josefsson.org>
2029
2030         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
2031         Reported by Albert Chin <china@thewrittenword.com>.
2032
2033 2007-10-14  Bruno Haible  <bruno@clisp.org>
2034
2035         * modules/iconv_open-utf-tests: New file.
2036         * tests/test-iconv-utf.c: New file.
2037
2038         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
2039         * modules/iconv_open-utf: New file.
2040         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
2041         (iconv, iconv_close): New declarations.
2042         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
2043         be defined.
2044         (iconv_open): Add special handling of conversion between UTF-8 and
2045         UTF-{16,32}{BE,LE}.
2046         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
2047         * lib/iconv_close.c: New file.
2048         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
2049         gl_FUNC_ICONV_OPEN.
2050         (gl_FUNC_ICONV_OPEN): Use it.
2051         (gl_FUNC_ICONV_OPEN_UTF): New macro.
2052         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
2053         and REPLACE_ICONV_UTF.
2054         * modules/iconv_open (Depends-on): Add c-strcase.
2055         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
2056         ICONV_CONST.
2057         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
2058
2059 2007-10-13  Albert Chin  <china@thewrittenword.com>
2060             Bruno Haible  <bruno@clisp.org>
2061
2062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
2063         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
2064
2065 2007-10-13  Bruno Haible  <bruno@clisp.org>
2066
2067         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
2068         defined, use the ISO C99 inline semantics.
2069         * lib/argp.h (ARGP_EI): Likewise.
2070
2071 2007-10-13  Bruno Haible  <bruno@clisp.org>
2072
2073         Handle 'inline' change in gcc 4.3.0.
2074         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
2075         argp_fmtstream_write, argp_fmtstream_set_lmargin,
2076         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
2077         argp_fmtstream_point): Disable 'extern' declaration if the function
2078         definition is going to be provided inline.
2079         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
2080         semantics, not the ISO C99 inline semantics.
2081         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
2082         'extern' declaration if the function definition is going to be provided
2083         inline.
2084         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
2085         the GNU C inline semantics, not the ISO C99 inline semantics. With
2086         GCC 4.2, avoid a warning.
2087
2088 2007-10-13  Bruno Haible  <bruno@clisp.org>
2089
2090         * lib/freading.h (freading): Enable the use of __freading for
2091         glibc >= 2.7.
2092         * lib/freading.c (freading): Likewise.
2093
2094 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2095
2096         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
2097         "warning: C99 inline functions are not supported; using GNU89".
2098
2099 2007-10-12  Bruno Haible  <bruno@clisp.org>
2100
2101         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
2102         of 2.
2103         * tests/test-ceilf2.c: New file.
2104         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
2105
2106         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
2107         * modules/ceilf-tests: Update.
2108
2109 2007-10-12  Bruno Haible  <bruno@clisp.org>
2110
2111         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
2112         of 2.
2113         * tests/test-floorf2.c: New file.
2114         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
2115
2116         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
2117         * modules/floorf-tests: Update.
2118
2119 2007-10-12  Bruno Haible  <bruno@clisp.org>
2120
2121         * tests/test-trunc2.c: New file.
2122         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
2123
2124         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
2125         * modules/trunc-tests: Update.
2126
2127 2007-10-12  Bruno Haible  <bruno@clisp.org>
2128
2129         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
2130         of 2.
2131         * tests/test-truncf2.c: New file.
2132         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
2133
2134         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
2135         * modules/truncf-tests: Update.
2136
2137 2007-10-11  Eric Blake  <ebb9@byu.net>
2138
2139         Don't claim strerror is broken on Interix.
2140         * doc/functions/strerror.texi (strerror): Known broken systems are
2141         now Solaris 8, and not Interix.
2142         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
2143         Interix on cross-compile.
2144         Reported by Martin Koeppe in
2145         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
2146
2147 2007-10-11  Bruno Haible  <bruno@clisp.org>
2148
2149         * modules/i-ring-tests: New file.
2150         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
2151         instead of assert.
2152
2153 2007-10-11  Bruno Haible  <bruno@clisp.org>
2154
2155         * modules/filenamecat-tests: New file.
2156         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
2157         * lib/filenamecat.c: Remove test code.
2158
2159 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2160
2161         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
2162
2163         * lib/strerror.c: Include <string.h> always, to test interface,
2164         and to remove the need for the dummy.
2165         Include intprops.h to compute width instead of doing it ourselves
2166         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
2167         (strerror): Define it to return NULL if there's no system strerror.
2168         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
2169         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
2170         ancient pre-strerror Unix systems well any more.  Saying "unknown
2171         system error" is enough.
2172         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
2173         simpler strerror.c implementation.
2174         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
2175         Simplify the tests to reflect the simpler strerror implementation.
2176         * modules/strerror (Depends-on): Add intprops.
2177
2178 2007-10-09  Eric Blake  <ebb9@byu.net>
2179
2180         Silence test-fpending.
2181         * modules/fpending-tests (Files): Add wrapper script.
2182         * tests/test-fpending.sh: New file.
2183
2184 2007-10-09  Bruno Haible  <bruno@clisp.org>
2185
2186         * MODULES.html.sh (func_module): Don't create a hyperlink for
2187         function names like 'printf_frexp'.
2188         (Misc): Add crc, memxor.
2189         (Characteristics of floating types): New section.
2190         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
2191         isnanf-nolibm, signbit, trunc, truncf, truncl.
2192         (Enhancements for ISO C 99 functions): New subsection Input/output.
2193         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
2194         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
2195         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
2196         (Compatibility checks for POSIX:2001 functions): Add clock-time.
2197         (Enhancements for POSIX:2001 functions): Add chdir-long.
2198         (File system functions): Add areadlink, chdir-safer, read-file.
2199         Remove cycle-check.
2200         (File system as inode set): New section.
2201         (Date and time): Add gethrxtime.
2202         (Multithreading): Add openmp.
2203         (Internationalization functions): Add localename.
2204         (Unicode string functions): Add unistr/u*-mbsnlen.
2205         (Support for maintaining and releasing projects): Add git-version-gen.
2206         (Lone files): Remove directories.
2207
2208 2007-10-08  Ben Pfaff  <blp@gnu.org>
2209
2210         * lib/xmalloca.h: Fix typo in comment.
2211
2212 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
2215         when avoiding problems with integer overflow.  Use a portable test
2216         instead.
2217
2218 2007-10-08  Simon Josefsson  <simon@josefsson.org>
2219
2220         * modules/dummy (License): Change to LGPLv2+.
2221         * modules/float (License): Likewise
2222         * modules/realloc (License): Likewise
2223         * modules/stdlib (License): Likewise
2224
2225 2007-10-07  Bruno Haible  <bruno@clisp.org>
2226
2227         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
2228         * floor.c (TWO_MANT_DIG): Likewise.
2229         * ceil.c (TWO_MANT_DIG): Likewise.
2230         Reported by Ben Pfaff.
2231
2232 2007-10-07  Bruno Haible  <bruno@clisp.org>
2233
2234         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
2235         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
2236         * lib/frexp.c (FUNC): Likewise.
2237         * lib/printf-frexp.h (printf_frexp): Likewise.
2238         * lib/printf-frexpl.h (printf_frexpl): Likewise.
2239         * lib/printf-frexp.c (FUNC): Likewise.
2240         Suggested by Jim Meyering.
2241
2242 2007-10-07  Jim Meyering  <meyering@redhat.com>
2243
2244         Make xnanosleep's integer overflow test more robust.
2245         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
2246         so that gcc-4.3.0 doesn't optimize away this test for overflow.
2247
2248 2007-10-07  Bruno Haible  <bruno@clisp.org>
2249
2250         * NEWS: Mention the license change.
2251
2252         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
2253         abbreviations in the modules files.
2254
2255         Change copyright notice from GPLv2+ to GPLv3+.
2256         * README: Change copyright notice.
2257         * MODULES.html.sh: Likewise.
2258         * build-aux/bootstrap.conf: Likewise.
2259         * build-aux/config.libpath: Likewise.
2260         * build-aux/csharpcomp.sh.in: Likewise.
2261         * build-aux/csharpexec.sh.in: Likewise.
2262         * build-aux/install-reloc: Likewise.
2263         * build-aux/javacomp.sh.in: Likewise.
2264         * build-aux/javaexec.sh.in: Likewise.
2265         * build-aux/ldd.sh.in: Likewise.
2266         * build-aux/reloc-ldflags: Likewise.
2267         * build-aux/relocatable.sh.in: Likewise.
2268         * build-aux/x-to-1.in: Likewise.
2269         * check-module: Likewise.
2270         * config/srclistvars.sh: Likewise.
2271         * gnulib-tool: Likewise.
2272         * lib/acl-internal.h: Likewise.
2273         * lib/acl.c: Likewise.
2274         * lib/acl.h: Likewise.
2275         * lib/acl_entries.c: Likewise.
2276         * lib/areadlink-with-size.c: Likewise.
2277         * lib/areadlink.c: Likewise.
2278         * lib/areadlink.h: Likewise.
2279         * lib/argmatch.c: Likewise.
2280         * lib/argmatch.h: Likewise.
2281         * lib/argp-ba.c: Likewise.
2282         * lib/argp-eexst.c: Likewise.
2283         * lib/argp-fmtstream.c: Likewise.
2284         * lib/argp-fmtstream.h: Likewise.
2285         * lib/argp-fs-xinl.c: Likewise.
2286         * lib/argp-help.c: Likewise.
2287         * lib/argp-namefrob.h: Likewise.
2288         * lib/argp-parse.c: Likewise.
2289         * lib/argp-pin.c: Likewise.
2290         * lib/argp-pv.c: Likewise.
2291         * lib/argp-pvh.c: Likewise.
2292         * lib/argp-xinl.c: Likewise.
2293         * lib/argp.h: Likewise.
2294         * lib/at-func.c: Likewise.
2295         * lib/atanl.c: Likewise.
2296         * lib/backupfile.c: Likewise.
2297         * lib/backupfile.h: Likewise.
2298         * lib/basename.c: Likewise.
2299         * lib/binary-io.h: Likewise.
2300         * lib/byteswap.in.h: Likewise.
2301         * lib/c-stack.c: Likewise.
2302         * lib/c-stack.h: Likewise.
2303         * lib/c-strcasestr.c: Likewise.
2304         * lib/c-strcasestr.h: Likewise.
2305         * lib/c-strstr.c: Likewise.
2306         * lib/c-strstr.h: Likewise.
2307         * lib/c-strtod.c: Likewise.
2308         * lib/calloc.c: Likewise.
2309         * lib/canon-host.c: Likewise.
2310         * lib/canon-host.h: Likewise.
2311         * lib/canonicalize-lgpl.c: Likewise.
2312         * lib/canonicalize.c: Likewise.
2313         * lib/canonicalize.h: Likewise.
2314         * lib/ceil.c: Likewise.
2315         * lib/ceilf.c: Likewise.
2316         * lib/ceill.c: Likewise.
2317         * lib/chdir-long.c: Likewise.
2318         * lib/chdir-long.h: Likewise.
2319         * lib/chdir-safer.c: Likewise.
2320         * lib/chdir-safer.h: Likewise.
2321         * lib/chown.c: Likewise.
2322         * lib/classpath.c: Likewise.
2323         * lib/classpath.h: Likewise.
2324         * lib/clean-temp.c: Likewise.
2325         * lib/clean-temp.h: Likewise.
2326         * lib/cloexec.c: Likewise.
2327         * lib/close-stream.c: Likewise.
2328         * lib/closein.c: Likewise.
2329         * lib/closein.h: Likewise.
2330         * lib/closeout.c: Likewise.
2331         * lib/closeout.h: Likewise.
2332         * lib/concat-filename.c: Likewise.
2333         * lib/copy-file.c: Likewise.
2334         * lib/copy-file.h: Likewise.
2335         * lib/count-one-bits.h: Likewise.
2336         * lib/crc.c: Likewise.
2337         * lib/crc.h: Likewise.
2338         * lib/creat-safer.c: Likewise.
2339         * lib/csharpcomp.c: Likewise.
2340         * lib/csharpcomp.h: Likewise.
2341         * lib/csharpexec.c: Likewise.
2342         * lib/csharpexec.h: Likewise.
2343         * lib/cycle-check.c: Likewise.
2344         * lib/cycle-check.h: Likewise.
2345         * lib/diacrit.c: Likewise.
2346         * lib/diacrit.h: Likewise.
2347         * lib/diffseq.h: Likewise.
2348         * lib/dirchownmod.c: Likewise.
2349         * lib/dirent.in.h: Likewise.
2350         * lib/dirfd.c: Likewise.
2351         * lib/dirfd.h: Likewise.
2352         * lib/dirname.c: Likewise.
2353         * lib/dirname.h: Likewise.
2354         * lib/dummy.c: Likewise.
2355         * lib/dup-safer.c: Likewise.
2356         * lib/dup2.c: Likewise.
2357         * lib/eealloc.h: Likewise.
2358         * lib/error.c: Likewise.
2359         * lib/error.h: Likewise.
2360         * lib/euidaccess.c: Likewise.
2361         * lib/exclude.c: Likewise.
2362         * lib/exclude.h: Likewise.
2363         * lib/execute.c: Likewise.
2364         * lib/execute.h: Likewise.
2365         * lib/exitfail.c: Likewise.
2366         * lib/exitfail.h: Likewise.
2367         * lib/expl.c: Likewise.
2368         * lib/fatal-signal.c: Likewise.
2369         * lib/fatal-signal.h: Likewise.
2370         * lib/fbufmode.c: Likewise.
2371         * lib/fbufmode.h: Likewise.
2372         * lib/fchdir.c: Likewise.
2373         * lib/fchmodat.c: Likewise.
2374         * lib/fchownat.c: Likewise.
2375         * lib/fcntl--.h: Likewise.
2376         * lib/fcntl-safer.h: Likewise.
2377         * lib/fcntl.in.h: Likewise.
2378         * lib/fd-safer.c: Likewise.
2379         * lib/fflush.c: Likewise.
2380         * lib/file-has-acl.c: Likewise.
2381         * lib/file-set.c: Likewise.
2382         * lib/file-type.c: Likewise.
2383         * lib/file-type.h: Likewise.
2384         * lib/fileblocks.c: Likewise.
2385         * lib/filemode.c: Likewise.
2386         * lib/filemode.h: Likewise.
2387         * lib/filename.h: Likewise.
2388         * lib/filenamecat.c: Likewise.
2389         * lib/filenamecat.h: Likewise.
2390         * lib/findprog.c: Likewise.
2391         * lib/findprog.h: Likewise.
2392         * lib/float.in.h: Likewise.
2393         * lib/floor.c: Likewise.
2394         * lib/floorf.c: Likewise.
2395         * lib/floorl.c: Likewise.
2396         * lib/fopen-safer.c: Likewise.
2397         * lib/fopen.c: Likewise.
2398         * lib/fpending.c: Likewise.
2399         * lib/fpending.h: Likewise.
2400         * lib/fprintf.c: Likewise.
2401         * lib/fprintftime.h: Likewise.
2402         * lib/fpucw.h: Likewise.
2403         * lib/fpurge.c: Likewise.
2404         * lib/fpurge.h: Likewise.
2405         * lib/freadable.c: Likewise.
2406         * lib/freadable.h: Likewise.
2407         * lib/freadahead.c: Likewise.
2408         * lib/freadahead.h: Likewise.
2409         * lib/freading.c: Likewise.
2410         * lib/freading.h: Likewise.
2411         * lib/free.c: Likewise.
2412         * lib/freopen.c: Likewise.
2413         * lib/frexp.c: Likewise.
2414         * lib/frexpl.c: Likewise.
2415         * lib/fseek.c: Likewise.
2416         * lib/fseterr.c: Likewise.
2417         * lib/fseterr.h: Likewise.
2418         * lib/fstatat.c: Likewise.
2419         * lib/fstrcmp.c: Likewise.
2420         * lib/fstrcmp.h: Likewise.
2421         * lib/fsusage.c: Likewise.
2422         * lib/fsusage.h: Likewise.
2423         * lib/ftell.c: Likewise.
2424         * lib/ftello.c: Likewise.
2425         * lib/fts-cycle.c: Likewise.
2426         * lib/fts.c: Likewise.
2427         * lib/fts_.h: Likewise.
2428         * lib/full-read.c: Likewise.
2429         * lib/full-read.h: Likewise.
2430         * lib/full-write.c: Likewise.
2431         * lib/full-write.h: Likewise.
2432         * lib/fwritable.c: Likewise.
2433         * lib/fwritable.h: Likewise.
2434         * lib/fwriteerror.c: Likewise.
2435         * lib/fwriteerror.h: Likewise.
2436         * lib/fwriting.c: Likewise.
2437         * lib/fwriting.h: Likewise.
2438         * lib/gcd.c: Likewise.
2439         * lib/gcd.h: Likewise.
2440         * lib/getcwd.c: Likewise.
2441         * lib/getdate.h: Likewise.
2442         * lib/getdate.y: Likewise.
2443         * lib/getdomainname.c: Likewise.
2444         * lib/getdomainname.h: Likewise.
2445         * lib/getgroups.c: Likewise.
2446         * lib/gethostname.c: Likewise.
2447         * lib/gethrxtime.c: Likewise.
2448         * lib/gethrxtime.h: Likewise.
2449         * lib/getloadavg.c: Likewise.
2450         * lib/getndelim2.c: Likewise.
2451         * lib/getndelim2.h: Likewise.
2452         * lib/getnline.c: Likewise.
2453         * lib/getnline.h: Likewise.
2454         * lib/getopt.c: Likewise.
2455         * lib/getopt.in.h: Likewise.
2456         * lib/getopt1.c: Likewise.
2457         * lib/getopt_int.h: Likewise.
2458         * lib/getpagesize.h: Likewise.
2459         * lib/getsubopt.c: Likewise.
2460         * lib/gettime.c: Likewise.
2461         * lib/getugroups.c: Likewise.
2462         * lib/getugroups.h: Likewise.
2463         * lib/getusershell.c: Likewise.
2464         * lib/gl_anyavltree_list1.h: Likewise.
2465         * lib/gl_anyavltree_list2.h: Likewise.
2466         * lib/gl_anyhash_list1.h: Likewise.
2467         * lib/gl_anyhash_list2.h: Likewise.
2468         * lib/gl_anylinked_list1.h: Likewise.
2469         * lib/gl_anylinked_list2.h: Likewise.
2470         * lib/gl_anyrbtree_list1.h: Likewise.
2471         * lib/gl_anyrbtree_list2.h: Likewise.
2472         * lib/gl_anytree_list1.h: Likewise.
2473         * lib/gl_anytree_list2.h: Likewise.
2474         * lib/gl_anytree_oset.h: Likewise.
2475         * lib/gl_anytreehash_list1.h: Likewise.
2476         * lib/gl_anytreehash_list2.h: Likewise.
2477         * lib/gl_array_list.c: Likewise.
2478         * lib/gl_array_list.h: Likewise.
2479         * lib/gl_array_oset.c: Likewise.
2480         * lib/gl_array_oset.h: Likewise.
2481         * lib/gl_avltree_list.c: Likewise.
2482         * lib/gl_avltree_list.h: Likewise.
2483         * lib/gl_avltree_oset.c: Likewise.
2484         * lib/gl_avltree_oset.h: Likewise.
2485         * lib/gl_avltreehash_list.c: Likewise.
2486         * lib/gl_avltreehash_list.h: Likewise.
2487         * lib/gl_carray_list.c: Likewise.
2488         * lib/gl_carray_list.h: Likewise.
2489         * lib/gl_linked_list.c: Likewise.
2490         * lib/gl_linked_list.h: Likewise.
2491         * lib/gl_linkedhash_list.c: Likewise.
2492         * lib/gl_linkedhash_list.h: Likewise.
2493         * lib/gl_list.c: Likewise.
2494         * lib/gl_list.h: Likewise.
2495         * lib/gl_oset.c: Likewise.
2496         * lib/gl_oset.h: Likewise.
2497         * lib/gl_rbtree_list.c: Likewise.
2498         * lib/gl_rbtree_list.h: Likewise.
2499         * lib/gl_rbtree_oset.c: Likewise.
2500         * lib/gl_rbtree_oset.h: Likewise.
2501         * lib/gl_rbtreehash_list.c: Likewise.
2502         * lib/gl_rbtreehash_list.h: Likewise.
2503         * lib/gl_sublist.c: Likewise.
2504         * lib/gl_sublist.h: Likewise.
2505         * lib/group-member.c: Likewise.
2506         * lib/group-member.h: Likewise.
2507         * lib/hard-locale.c: Likewise.
2508         * lib/hard-locale.h: Likewise.
2509         * lib/hash-pjw.c: Likewise.
2510         * lib/hash-pjw.h: Likewise.
2511         * lib/hash-triple.c: Likewise.
2512         * lib/hash.c: Likewise.
2513         * lib/hash.h: Likewise.
2514         * lib/human.c: Likewise.
2515         * lib/human.h: Likewise.
2516         * lib/i-ring.c: Likewise.
2517         * lib/i-ring.h: Likewise.
2518         * lib/idcache.c: Likewise.
2519         * lib/imaxabs.c: Likewise.
2520         * lib/imaxdiv.c: Likewise.
2521         * lib/inet_pton.c: Likewise.
2522         * lib/inet_pton.h: Likewise.
2523         * lib/intprops.h: Likewise.
2524         * lib/inttostr.c: Likewise.
2525         * lib/inttostr.h: Likewise.
2526         * lib/inttypes.in.h: Likewise.
2527         * lib/isapipe.c: Likewise.
2528         * lib/isdir.c: Likewise.
2529         * lib/isnan.c: Likewise.
2530         * lib/isnan.h: Likewise.
2531         * lib/isnanf.c: Likewise.
2532         * lib/isnanf.h: Likewise.
2533         * lib/isnanl-nolibm.h: Likewise.
2534         * lib/isnanl.c: Likewise.
2535         * lib/isnanl.h: Likewise.
2536         * lib/javacomp.c: Likewise.
2537         * lib/javacomp.h: Likewise.
2538         * lib/javaexec.c: Likewise.
2539         * lib/javaexec.h: Likewise.
2540         * lib/javaversion.c: Likewise.
2541         * lib/javaversion.h: Likewise.
2542         * lib/javaversion.java: Likewise.
2543         * lib/lbrkprop.h: Likewise.
2544         * lib/lchmod.h: Likewise.
2545         * lib/lchown.c: Likewise.
2546         * lib/ldexpl.c: Likewise.
2547         * lib/linebreak.c: Likewise.
2548         * lib/linebreak.h: Likewise.
2549         * lib/linebuffer.c: Likewise.
2550         * lib/linebuffer.h: Likewise.
2551         * lib/locale.in.h: Likewise.
2552         * lib/logl.c: Likewise.
2553         * lib/long-options.c: Likewise.
2554         * lib/long-options.h: Likewise.
2555         * lib/lstat.c: Likewise.
2556         * lib/lstat.h: Likewise.
2557         * lib/math.in.h: Likewise.
2558         * lib/mbchar.c: Likewise.
2559         * lib/mbchar.h: Likewise.
2560         * lib/mbfile.h: Likewise.
2561         * lib/mbiter.h: Likewise.
2562         * lib/mbscasecmp.c: Likewise.
2563         * lib/mbscasestr.c: Likewise.
2564         * lib/mbschr.c: Likewise.
2565         * lib/mbscspn.c: Likewise.
2566         * lib/mbslen.c: Likewise.
2567         * lib/mbsncasecmp.c: Likewise.
2568         * lib/mbsnlen.c: Likewise.
2569         * lib/mbspbrk.c: Likewise.
2570         * lib/mbspcasecmp.c: Likewise.
2571         * lib/mbsrchr.c: Likewise.
2572         * lib/mbssep.c: Likewise.
2573         * lib/mbsspn.c: Likewise.
2574         * lib/mbsstr.c: Likewise.
2575         * lib/mbstok_r.c: Likewise.
2576         * lib/mbswidth.c: Likewise.
2577         * lib/mbswidth.h: Likewise.
2578         * lib/mbuiter.h: Likewise.
2579         * lib/memcasecmp.c: Likewise.
2580         * lib/memcasecmp.h: Likewise.
2581         * lib/memchr.c: Likewise.
2582         * lib/memcmp.c: Likewise.
2583         * lib/memcoll.c: Likewise.
2584         * lib/memcoll.h: Likewise.
2585         * lib/memcpy.c: Likewise.
2586         * lib/memrchr.c: Likewise.
2587         * lib/mkancesdirs.c: Likewise.
2588         * lib/mkdir-p.c: Likewise.
2589         * lib/mkdir-p.h: Likewise.
2590         * lib/mkdir.c: Likewise.
2591         * lib/mkdirat.c: Likewise.
2592         * lib/mkdtemp.c: Likewise.
2593         * lib/mkstemp-safer.c: Likewise.
2594         * lib/mkstemp.c: Likewise.
2595         * lib/modechange.c: Likewise.
2596         * lib/modechange.h: Likewise.
2597         * lib/mountlist.c: Likewise.
2598         * lib/mountlist.h: Likewise.
2599         * lib/mpsort.c: Likewise.
2600         * lib/nanosleep.c: Likewise.
2601         * lib/obstack.c: Likewise.
2602         * lib/obstack.h: Likewise.
2603         * lib/open-safer.c: Likewise.
2604         * lib/open.c: Likewise.
2605         * lib/openat-die.c: Likewise.
2606         * lib/openat-priv.h: Likewise.
2607         * lib/openat-proc.c: Likewise.
2608         * lib/openat.c: Likewise.
2609         * lib/openat.h: Likewise.
2610         * lib/pagealign_alloc.c: Likewise.
2611         * lib/pagealign_alloc.h: Likewise.
2612         * lib/physmem.c: Likewise.
2613         * lib/physmem.h: Likewise.
2614         * lib/pipe-safer.c: Likewise.
2615         * lib/pipe.c: Likewise.
2616         * lib/pipe.h: Likewise.
2617         * lib/posixtm.c: Likewise.
2618         * lib/posixtm.h: Likewise.
2619         * lib/posixver.c: Likewise.
2620         * lib/printf-frexp.c: Likewise.
2621         * lib/printf-frexp.h: Likewise.
2622         * lib/printf-frexpl.c: Likewise.
2623         * lib/printf-frexpl.h: Likewise.
2624         * lib/printf.c: Likewise.
2625         * lib/progname.c: Likewise.
2626         * lib/progname.h: Likewise.
2627         * lib/progreloc.c: Likewise.
2628         * lib/putenv.c: Likewise.
2629         * lib/quote.c: Likewise.
2630         * lib/quote.h: Likewise.
2631         * lib/quotearg.c: Likewise.
2632         * lib/quotearg.h: Likewise.
2633         * lib/raise.c: Likewise.
2634         * lib/readline.c: Likewise.
2635         * lib/readline.h: Likewise.
2636         * lib/readlink.c: Likewise.
2637         * lib/readtokens.c: Likewise.
2638         * lib/readtokens.h: Likewise.
2639         * lib/readtokens0.c: Likewise.
2640         * lib/readtokens0.h: Likewise.
2641         * lib/readutmp.c: Likewise.
2642         * lib/readutmp.h: Likewise.
2643         * lib/realloc.c: Likewise.
2644         * lib/relocwrapper.c: Likewise.
2645         * lib/rename-dest-slash.c: Likewise.
2646         * lib/rename.c: Likewise.
2647         * lib/rmdir.c: Likewise.
2648         * lib/rpmatch.c: Likewise.
2649         * lib/safe-read.c: Likewise.
2650         * lib/safe-read.h: Likewise.
2651         * lib/safe-write.c: Likewise.
2652         * lib/safe-write.h: Likewise.
2653         * lib/same-inode.h: Likewise.
2654         * lib/same.c: Likewise.
2655         * lib/same.h: Likewise.
2656         * lib/save-cwd.c: Likewise.
2657         * lib/save-cwd.h: Likewise.
2658         * lib/savedir.c: Likewise.
2659         * lib/savedir.h: Likewise.
2660         * lib/savewd.c: Likewise.
2661         * lib/savewd.h: Likewise.
2662         * lib/search.in.h: Likewise.
2663         * lib/setenv.c: Likewise.
2664         * lib/setenv.h: Likewise.
2665         * lib/settime.c: Likewise.
2666         * lib/sh-quote.c: Likewise.
2667         * lib/sh-quote.h: Likewise.
2668         * lib/sig2str.c: Likewise.
2669         * lib/sig2str.h: Likewise.
2670         * lib/signal.in.h: Likewise.
2671         * lib/signbitd.c: Likewise.
2672         * lib/signbitf.c: Likewise.
2673         * lib/signbitl.c: Likewise.
2674         * lib/sigprocmask.c: Likewise.
2675         * lib/sincosl.c: Likewise.
2676         * lib/sleep.c: Likewise.
2677         * lib/sprintf.c: Likewise.
2678         * lib/sqrtl.c: Likewise.
2679         * lib/stat-time.h: Likewise.
2680         * lib/stdio--.h: Likewise.
2681         * lib/stdio-safer.h: Likewise.
2682         * lib/stdlib--.h: Likewise.
2683         * lib/stdlib-safer.h: Likewise.
2684         * lib/stdlib.in.h: Likewise.
2685         * lib/stpcpy.c: Likewise.
2686         * lib/stpncpy.c: Likewise.
2687         * lib/strchrnul.c: Likewise.
2688         * lib/strcspn.c: Likewise.
2689         * lib/strerror.c: Likewise.
2690         * lib/strftime.c: Likewise.
2691         * lib/strftime.h: Likewise.
2692         * lib/striconveh.c: Likewise.
2693         * lib/striconveh.h: Likewise.
2694         * lib/striconveha.c: Likewise.
2695         * lib/striconveha.h: Likewise.
2696         * lib/stripslash.c: Likewise.
2697         * lib/strnlen1.c: Likewise.
2698         * lib/strnlen1.h: Likewise.
2699         * lib/strtod.c: Likewise.
2700         * lib/strtoimax.c: Likewise.
2701         * lib/strtok_r.c: Likewise.
2702         * lib/strtol.c: Likewise.
2703         * lib/strtoll.c: Likewise.
2704         * lib/strtoul.c: Likewise.
2705         * lib/strtoull.c: Likewise.
2706         * lib/sysexits.in.h: Likewise.
2707         * lib/tempname.c: Likewise.
2708         * lib/tempname.h: Likewise.
2709         * lib/timespec.h: Likewise.
2710         * lib/tls.c: Likewise.
2711         * lib/tls.h: Likewise.
2712         * lib/tmpdir.c: Likewise.
2713         * lib/tmpdir.h: Likewise.
2714         * lib/tmpfile-safer.c: Likewise.
2715         * lib/tmpfile.c: Likewise.
2716         * lib/trigl.c: Likewise.
2717         * lib/trigl.h: Likewise.
2718         * lib/trim.c: Likewise.
2719         * lib/trim.h: Likewise.
2720         * lib/trunc.c: Likewise.
2721         * lib/truncf.c: Likewise.
2722         * lib/truncl.c: Likewise.
2723         * lib/tsearch.c: Likewise.
2724         * lib/unicodeio.c: Likewise.
2725         * lib/unicodeio.h: Likewise.
2726         * lib/unistd--.h: Likewise.
2727         * lib/unistd-safer.h: Likewise.
2728         * lib/unistdio/ulc-fprintf.c: Likewise.
2729         * lib/unistdio/ulc-vfprintf.c: Likewise.
2730         * lib/unlinkdir.c: Likewise.
2731         * lib/unlinkdir.h: Likewise.
2732         * lib/unlocked-io.h: Likewise.
2733         * lib/unsetenv.c: Likewise.
2734         * lib/userspec.c: Likewise.
2735         * lib/utime.c: Likewise.
2736         * lib/utimecmp.c: Likewise.
2737         * lib/utimecmp.h: Likewise.
2738         * lib/utimens.c: Likewise.
2739         * lib/verify.h: Likewise.
2740         * lib/verror.c: Likewise.
2741         * lib/verror.h: Likewise.
2742         * lib/version-etc-fsf.c: Likewise.
2743         * lib/version-etc.c: Likewise.
2744         * lib/version-etc.h: Likewise.
2745         * lib/vfprintf.c: Likewise.
2746         * lib/vprintf.c: Likewise.
2747         * lib/vsprintf.c: Likewise.
2748         * lib/w32spawn.h: Likewise.
2749         * lib/wait-process.c: Likewise.
2750         * lib/wait-process.h: Likewise.
2751         * lib/wcwidth.c: Likewise.
2752         * lib/write-any-file.c: Likewise.
2753         * lib/xalloc-die.c: Likewise.
2754         * lib/xalloc.h: Likewise.
2755         * lib/xasprintf.c: Likewise.
2756         * lib/xgetcwd.c: Likewise.
2757         * lib/xgetcwd.h: Likewise.
2758         * lib/xgetdomainname.c: Likewise.
2759         * lib/xgetdomainname.h: Likewise.
2760         * lib/xgethostname.c: Likewise.
2761         * lib/xmalloc.c: Likewise.
2762         * lib/xmalloca.c: Likewise.
2763         * lib/xmalloca.h: Likewise.
2764         * lib/xmemcoll.c: Likewise.
2765         * lib/xnanosleep.c: Likewise.
2766         * lib/xreadlink.c: Likewise.
2767         * lib/xreadlink.h: Likewise.
2768         * lib/xsetenv.c: Likewise.
2769         * lib/xsetenv.h: Likewise.
2770         * lib/xstriconv.c: Likewise.
2771         * lib/xstriconv.h: Likewise.
2772         * lib/xstrndup.c: Likewise.
2773         * lib/xstrndup.h: Likewise.
2774         * lib/xstrtod.c: Likewise.
2775         * lib/xstrtod.h: Likewise.
2776         * lib/xstrtol-error.c: Likewise.
2777         * lib/xstrtol.c: Likewise.
2778         * lib/xstrtol.h: Likewise.
2779         * lib/xtime.h: Likewise.
2780         * lib/xvasprintf.c: Likewise.
2781         * lib/xvasprintf.h: Likewise.
2782         * lib/yesno.c: Likewise.
2783         * lib/yesno.h: Likewise.
2784         * posix-modules: Likewise.
2785         * tests/test-alloca-opt.c: Likewise.
2786         * tests/test-arcfour.c: Likewise.
2787         * tests/test-arctwo.c: Likewise.
2788         * tests/test-argmatch.c: Likewise.
2789         * tests/test-argp-2.sh: Likewise.
2790         * tests/test-argp.c: Likewise.
2791         * tests/test-arpa_inet.c: Likewise.
2792         * tests/test-array_list.c: Likewise.
2793         * tests/test-array_oset.c: Likewise.
2794         * tests/test-atexit.c: Likewise.
2795         * tests/test-avltree_list.c: Likewise.
2796         * tests/test-avltree_oset.c: Likewise.
2797         * tests/test-avltreehash_list.c: Likewise.
2798         * tests/test-base64.c: Likewise.
2799         * tests/test-binary-io.c: Likewise.
2800         * tests/test-byteswap.c: Likewise.
2801         * tests/test-c-ctype.c: Likewise.
2802         * tests/test-c-strcasecmp.c: Likewise.
2803         * tests/test-c-strcasestr.c: Likewise.
2804         * tests/test-c-strncasecmp.c: Likewise.
2805         * tests/test-c-strstr.c: Likewise.
2806         * tests/test-canonicalize-lgpl.c: Likewise.
2807         * tests/test-canonicalize.c: Likewise.
2808         * tests/test-carray_list.c: Likewise.
2809         * tests/test-ceilf.c: Likewise.
2810         * tests/test-ceill.c: Likewise.
2811         * tests/test-count-one-bits.c: Likewise.
2812         * tests/test-crc.c: Likewise.
2813         * tests/test-dirname.c: Likewise.
2814         * tests/test-fbufmode.c: Likewise.
2815         * tests/test-fcntl.c: Likewise.
2816         * tests/test-fflush.c: Likewise.
2817         * tests/test-floorf.c: Likewise.
2818         * tests/test-floorl.c: Likewise.
2819         * tests/test-fopen.c: Likewise.
2820         * tests/test-fprintf-posix.c: Likewise.
2821         * tests/test-fprintf-posix.h: Likewise.
2822         * tests/test-fpurge.c: Likewise.
2823         * tests/test-freadable.c: Likewise.
2824         * tests/test-freadahead.c: Likewise.
2825         * tests/test-freading.c: Likewise.
2826         * tests/test-freopen.c: Likewise.
2827         * tests/test-frexp.c: Likewise.
2828         * tests/test-frexpl.c: Likewise.
2829         * tests/test-fseek.c: Likewise.
2830         * tests/test-fseeko.c: Likewise.
2831         * tests/test-fseterr.c: Likewise.
2832         * tests/test-fstrcmp.c: Likewise.
2833         * tests/test-ftell.c: Likewise.
2834         * tests/test-ftello.c: Likewise.
2835         * tests/test-fwritable.c: Likewise.
2836         * tests/test-fwriting.c: Likewise.
2837         * tests/test-getaddrinfo.c: Likewise.
2838         * tests/test-getpass.c: Likewise.
2839         * tests/test-gettimeofday.c: Likewise.
2840         * tests/test-hmac-md5.c: Likewise.
2841         * tests/test-hmac-sha1.c: Likewise.
2842         * tests/test-iconv.c: Likewise.
2843         * tests/test-iconvme.c: Likewise.
2844         * tests/test-inttypes.c: Likewise.
2845         * tests/test-isnan.c: Likewise.
2846         * tests/test-isnanf.c: Likewise.
2847         * tests/test-isnanl-nolibm.c: Likewise.
2848         * tests/test-isnanl.c: Likewise.
2849         * tests/test-isnanl.h: Likewise.
2850         * tests/test-ldexpl.c: Likewise.
2851         * tests/test-linked_list.c: Likewise.
2852         * tests/test-linkedhash_list.c: Likewise.
2853         * tests/test-locale.c: Likewise.
2854         * tests/test-localename.c: Likewise.
2855         * tests/test-lock.c: Likewise.
2856         * tests/test-lseek.c: Likewise.
2857         * tests/test-malloca.c: Likewise.
2858         * tests/test-math.c: Likewise.
2859         * tests/test-mbscasecmp.c: Likewise.
2860         * tests/test-mbscasestr1.c: Likewise.
2861         * tests/test-mbscasestr2.c: Likewise.
2862         * tests/test-mbscasestr3.c: Likewise.
2863         * tests/test-mbscasestr4.c: Likewise.
2864         * tests/test-mbschr.c: Likewise.
2865         * tests/test-mbscspn.c: Likewise.
2866         * tests/test-mbsncasecmp.c: Likewise.
2867         * tests/test-mbspbrk.c: Likewise.
2868         * tests/test-mbspcasecmp.c: Likewise.
2869         * tests/test-mbsrchr.c: Likewise.
2870         * tests/test-mbsspn.c: Likewise.
2871         * tests/test-mbsstr1.c: Likewise.
2872         * tests/test-mbsstr2.c: Likewise.
2873         * tests/test-mbsstr3.c: Likewise.
2874         * tests/test-md5.c: Likewise.
2875         * tests/test-memmem.c: Likewise.
2876         * tests/test-netinet_in.c: Likewise.
2877         * tests/test-open.c: Likewise.
2878         * tests/test-printf-frexp.c: Likewise.
2879         * tests/test-printf-frexpl.c: Likewise.
2880         * tests/test-printf-posix.c: Likewise.
2881         * tests/test-printf-posix.h: Likewise.
2882         * tests/test-rbtree_list.c: Likewise.
2883         * tests/test-rbtree_oset.c: Likewise.
2884         * tests/test-rbtreehash_list.c: Likewise.
2885         * tests/test-read-file.c: Likewise.
2886         * tests/test-rijndael.c: Likewise.
2887         * tests/test-search.c: Likewise.
2888         * tests/test-signbit.c: Likewise.
2889         * tests/test-sleep.c: Likewise.
2890         * tests/test-snprintf-posix.c: Likewise.
2891         * tests/test-snprintf-posix.h: Likewise.
2892         * tests/test-snprintf.c: Likewise.
2893         * tests/test-sprintf-posix.c: Likewise.
2894         * tests/test-sprintf-posix.h: Likewise.
2895         * tests/test-stat-time.c: Likewise.
2896         * tests/test-stdbool.c: Likewise.
2897         * tests/test-stdint.c: Likewise.
2898         * tests/test-stdio.c: Likewise.
2899         * tests/test-stdlib.c: Likewise.
2900         * tests/test-stpncpy.c: Likewise.
2901         * tests/test-strcasestr.c: Likewise.
2902         * tests/test-striconv.c: Likewise.
2903         * tests/test-striconveh.c: Likewise.
2904         * tests/test-striconveha.c: Likewise.
2905         * tests/test-string.c: Likewise.
2906         * tests/test-sys_select.c: Likewise.
2907         * tests/test-sys_socket.c: Likewise.
2908         * tests/test-sys_stat.c: Likewise.
2909         * tests/test-sys_time.c: Likewise.
2910         * tests/test-sysexits.c: Likewise.
2911         * tests/test-time.c: Likewise.
2912         * tests/test-tls.c: Likewise.
2913         * tests/test-trunc.c: Likewise.
2914         * tests/test-truncf.c: Likewise.
2915         * tests/test-truncl.c: Likewise.
2916         * tests/test-unistd.c: Likewise.
2917         * tests/test-vasnprintf-posix.c: Likewise.
2918         * tests/test-vasnprintf-posix2.c: Likewise.
2919         * tests/test-vasnprintf.c: Likewise.
2920         * tests/test-vasprintf-posix.c: Likewise.
2921         * tests/test-vasprintf.c: Likewise.
2922         * tests/test-verify.c: Likewise.
2923         * tests/test-vfprintf-posix.c: Likewise.
2924         * tests/test-vprintf-posix.c: Likewise.
2925         * tests/test-vsnprintf-posix.c: Likewise.
2926         * tests/test-vsnprintf.c: Likewise.
2927         * tests/test-vsprintf-posix.c: Likewise.
2928         * tests/test-wchar.c: Likewise.
2929         * tests/test-wctype.c: Likewise.
2930         * tests/test-wcwidth.c: Likewise.
2931         * tests/test-xstrtol.c: Likewise.
2932         * tests/test-xvasprintf.c: Likewise.
2933         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
2934         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
2935         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2936         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2937         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2938         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
2939         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2940         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2941         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2942         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
2943         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2944         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2945         * tests/uniname/test-uninames.c: Likewise.
2946         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
2947         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
2948         * tests/unistdio/test-u16-printf1.h: Likewise.
2949         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
2950         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
2951         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
2952         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
2953         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
2954         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
2955         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
2956         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
2957         * tests/unistdio/test-u32-printf1.h: Likewise.
2958         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
2959         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
2960         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
2961         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
2962         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
2963         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
2964         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
2965         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
2966         * tests/unistdio/test-u8-printf1.h: Likewise.
2967         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
2968         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
2969         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
2970         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
2971         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
2972         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
2973         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
2974         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
2975         * tests/unistdio/test-ulc-printf1.h: Likewise.
2976         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
2977         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
2978         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
2979         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
2980         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
2981         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
2982         * tests/uniwidth/test-u16-strwidth.c: Likewise.
2983         * tests/uniwidth/test-u16-width.c: Likewise.
2984         * tests/uniwidth/test-u32-strwidth.c: Likewise.
2985         * tests/uniwidth/test-u32-width.c: Likewise.
2986         * tests/uniwidth/test-u8-strwidth.c: Likewise.
2987         * tests/uniwidth/test-u8-width.c: Likewise.
2988         * tests/uniwidth/test-uc_width.c: Likewise.
2989         * config/srclist-update: Likewise.
2990         (fixlicense): Update to GPLv3+.
2991
2992         Change copyright notice from LGPLv2.1+ to LGPLv3+.
2993         * tests/test-tsearch.c: Change copyright notice.
2994
2995         Change copyright notice from LGPLv2.0+ to LGPLv3+.
2996         * lib/c-strcaseeq.h: Change copyright notice.
2997         * lib/streq.h: Likewise.
2998         * lib/uniconv.h: Likewise.
2999         * lib/uniconv/u-conv-from-enc.h: Likewise.
3000         * lib/uniconv/u-conv-to-enc.h: Likewise.
3001         * lib/uniconv/u-strconv-from-enc.h: Likewise.
3002         * lib/uniconv/u-strconv-to-enc.h: Likewise.
3003         * lib/uniconv/u16-conv-from-enc.c: Likewise.
3004         * lib/uniconv/u16-conv-to-enc.c: Likewise.
3005         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
3006         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
3007         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
3008         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
3009         * lib/uniconv/u32-conv-from-enc.c: Likewise.
3010         * lib/uniconv/u32-conv-to-enc.c: Likewise.
3011         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
3012         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
3013         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
3014         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
3015         * lib/uniconv/u8-conv-from-enc.c: Likewise.
3016         * lib/uniconv/u8-conv-to-enc.c: Likewise.
3017         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
3018         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
3019         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
3020         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
3021         * lib/uniname.h: Likewise.
3022         * lib/uniname/uniname.c: Likewise.
3023         * lib/unistdio.h: Likewise.
3024         * lib/unistdio/u-asnprintf.h: Likewise.
3025         * lib/unistdio/u-asprintf.h: Likewise.
3026         * lib/unistdio/u-printf-args.c: Likewise.
3027         * lib/unistdio/u-printf-args.h: Likewise.
3028         * lib/unistdio/u-printf-parse.h: Likewise.
3029         * lib/unistdio/u-snprintf.h: Likewise.
3030         * lib/unistdio/u-sprintf.h: Likewise.
3031         * lib/unistdio/u-vasprintf.h: Likewise.
3032         * lib/unistdio/u-vsnprintf.h: Likewise.
3033         * lib/unistdio/u-vsprintf.h: Likewise.
3034         * lib/unistdio/u16-asnprintf.c: Likewise.
3035         * lib/unistdio/u16-asprintf.c: Likewise.
3036         * lib/unistdio/u16-printf-parse.c: Likewise.
3037         * lib/unistdio/u16-snprintf.c: Likewise.
3038         * lib/unistdio/u16-sprintf.c: Likewise.
3039         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
3040         * lib/unistdio/u16-u16-asprintf.c: Likewise.
3041         * lib/unistdio/u16-u16-snprintf.c: Likewise.
3042         * lib/unistdio/u16-u16-sprintf.c: Likewise.
3043         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
3044         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
3045         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
3046         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
3047         * lib/unistdio/u16-vasnprintf.c: Likewise.
3048         * lib/unistdio/u16-vasprintf.c: Likewise.
3049         * lib/unistdio/u16-vsnprintf.c: Likewise.
3050         * lib/unistdio/u16-vsprintf.c: Likewise.
3051         * lib/unistdio/u32-asnprintf.c: Likewise.
3052         * lib/unistdio/u32-asprintf.c: Likewise.
3053         * lib/unistdio/u32-printf-parse.c: Likewise.
3054         * lib/unistdio/u32-snprintf.c: Likewise.
3055         * lib/unistdio/u32-sprintf.c: Likewise.
3056         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
3057         * lib/unistdio/u32-u32-asprintf.c: Likewise.
3058         * lib/unistdio/u32-u32-snprintf.c: Likewise.
3059         * lib/unistdio/u32-u32-sprintf.c: Likewise.
3060         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
3061         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
3062         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
3063         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
3064         * lib/unistdio/u32-vasnprintf.c: Likewise.
3065         * lib/unistdio/u32-vasprintf.c: Likewise.
3066         * lib/unistdio/u32-vsnprintf.c: Likewise.
3067         * lib/unistdio/u32-vsprintf.c: Likewise.
3068         * lib/unistdio/u8-asnprintf.c: Likewise.
3069         * lib/unistdio/u8-asprintf.c: Likewise.
3070         * lib/unistdio/u8-printf-parse.c: Likewise.
3071         * lib/unistdio/u8-snprintf.c: Likewise.
3072         * lib/unistdio/u8-sprintf.c: Likewise.
3073         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
3074         * lib/unistdio/u8-u8-asprintf.c: Likewise.
3075         * lib/unistdio/u8-u8-snprintf.c: Likewise.
3076         * lib/unistdio/u8-u8-sprintf.c: Likewise.
3077         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
3078         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
3079         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
3080         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
3081         * lib/unistdio/u8-vasnprintf.c: Likewise.
3082         * lib/unistdio/u8-vasprintf.c: Likewise.
3083         * lib/unistdio/u8-vsnprintf.c: Likewise.
3084         * lib/unistdio/u8-vsprintf.c: Likewise.
3085         * lib/unistdio/ulc-asnprintf.c: Likewise.
3086         * lib/unistdio/ulc-asprintf.c: Likewise.
3087         * lib/unistdio/ulc-printf-parse.c: Likewise.
3088         * lib/unistdio/ulc-snprintf.c: Likewise.
3089         * lib/unistdio/ulc-sprintf.c: Likewise.
3090         * lib/unistdio/ulc-vasnprintf.c: Likewise.
3091         * lib/unistdio/ulc-vasprintf.c: Likewise.
3092         * lib/unistdio/ulc-vsnprintf.c: Likewise.
3093         * lib/unistdio/ulc-vsprintf.c: Likewise.
3094         * lib/unistr.h: Likewise.
3095         * lib/unistr/u-cpy-alloc.h: Likewise.
3096         * lib/unistr/u-cpy.h: Likewise.
3097         * lib/unistr/u-endswith.h: Likewise.
3098         * lib/unistr/u-move.h: Likewise.
3099         * lib/unistr/u-set.h: Likewise.
3100         * lib/unistr/u-startswith.h: Likewise.
3101         * lib/unistr/u-stpcpy.h: Likewise.
3102         * lib/unistr/u-stpncpy.h: Likewise.
3103         * lib/unistr/u-strcat.h: Likewise.
3104         * lib/unistr/u-strcpy.h: Likewise.
3105         * lib/unistr/u-strcspn.h: Likewise.
3106         * lib/unistr/u-strdup.h: Likewise.
3107         * lib/unistr/u-strlen.h: Likewise.
3108         * lib/unistr/u-strncat.h: Likewise.
3109         * lib/unistr/u-strncpy.h: Likewise.
3110         * lib/unistr/u-strnlen.h: Likewise.
3111         * lib/unistr/u-strpbrk.h: Likewise.
3112         * lib/unistr/u-strspn.h: Likewise.
3113         * lib/unistr/u-strstr.h: Likewise.
3114         * lib/unistr/u-strtok.h: Likewise.
3115         * lib/unistr/u16-check.c: Likewise.
3116         * lib/unistr/u16-chr.c: Likewise.
3117         * lib/unistr/u16-cmp.c: Likewise.
3118         * lib/unistr/u16-cpy-alloc.c: Likewise.
3119         * lib/unistr/u16-cpy.c: Likewise.
3120         * lib/unistr/u16-endswith.c: Likewise.
3121         * lib/unistr/u16-mblen.c: Likewise.
3122         * lib/unistr/u16-mbsnlen.c: Likewise.
3123         * lib/unistr/u16-mbtouc-aux.c: Likewise.
3124         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
3125         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
3126         * lib/unistr/u16-mbtouc.c: Likewise.
3127         * lib/unistr/u16-mbtoucr.c: Likewise.
3128         * lib/unistr/u16-move.c: Likewise.
3129         * lib/unistr/u16-next.c: Likewise.
3130         * lib/unistr/u16-prev.c: Likewise.
3131         * lib/unistr/u16-set.c: Likewise.
3132         * lib/unistr/u16-startswith.c: Likewise.
3133         * lib/unistr/u16-stpcpy.c: Likewise.
3134         * lib/unistr/u16-stpncpy.c: Likewise.
3135         * lib/unistr/u16-strcat.c: Likewise.
3136         * lib/unistr/u16-strchr.c: Likewise.
3137         * lib/unistr/u16-strcmp.c: Likewise.
3138         * lib/unistr/u16-strcpy.c: Likewise.
3139         * lib/unistr/u16-strcspn.c: Likewise.
3140         * lib/unistr/u16-strdup.c: Likewise.
3141         * lib/unistr/u16-strlen.c: Likewise.
3142         * lib/unistr/u16-strmblen.c: Likewise.
3143         * lib/unistr/u16-strmbtouc.c: Likewise.
3144         * lib/unistr/u16-strncat.c: Likewise.
3145         * lib/unistr/u16-strncmp.c: Likewise.
3146         * lib/unistr/u16-strncpy.c: Likewise.
3147         * lib/unistr/u16-strnlen.c: Likewise.
3148         * lib/unistr/u16-strpbrk.c: Likewise.
3149         * lib/unistr/u16-strrchr.c: Likewise.
3150         * lib/unistr/u16-strspn.c: Likewise.
3151         * lib/unistr/u16-strstr.c: Likewise.
3152         * lib/unistr/u16-strtok.c: Likewise.
3153         * lib/unistr/u16-to-u32.c: Likewise.
3154         * lib/unistr/u16-to-u8.c: Likewise.
3155         * lib/unistr/u16-uctomb-aux.c: Likewise.
3156         * lib/unistr/u16-uctomb.c: Likewise.
3157         * lib/unistr/u32-check.c: Likewise.
3158         * lib/unistr/u32-chr.c: Likewise.
3159         * lib/unistr/u32-cmp.c: Likewise.
3160         * lib/unistr/u32-cpy-alloc.c: Likewise.
3161         * lib/unistr/u32-cpy.c: Likewise.
3162         * lib/unistr/u32-endswith.c: Likewise.
3163         * lib/unistr/u32-mblen.c: Likewise.
3164         * lib/unistr/u32-mbsnlen.c: Likewise.
3165         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
3166         * lib/unistr/u32-mbtouc.c: Likewise.
3167         * lib/unistr/u32-mbtoucr.c: Likewise.
3168         * lib/unistr/u32-move.c: Likewise.
3169         * lib/unistr/u32-next.c: Likewise.
3170         * lib/unistr/u32-prev.c: Likewise.
3171         * lib/unistr/u32-set.c: Likewise.
3172         * lib/unistr/u32-startswith.c: Likewise.
3173         * lib/unistr/u32-stpcpy.c: Likewise.
3174         * lib/unistr/u32-stpncpy.c: Likewise.
3175         * lib/unistr/u32-strcat.c: Likewise.
3176         * lib/unistr/u32-strchr.c: Likewise.
3177         * lib/unistr/u32-strcmp.c: Likewise.
3178         * lib/unistr/u32-strcpy.c: Likewise.
3179         * lib/unistr/u32-strcspn.c: Likewise.
3180         * lib/unistr/u32-strdup.c: Likewise.
3181         * lib/unistr/u32-strlen.c: Likewise.
3182         * lib/unistr/u32-strmblen.c: Likewise.
3183         * lib/unistr/u32-strmbtouc.c: Likewise.
3184         * lib/unistr/u32-strncat.c: Likewise.
3185         * lib/unistr/u32-strncmp.c: Likewise.
3186         * lib/unistr/u32-strncpy.c: Likewise.
3187         * lib/unistr/u32-strnlen.c: Likewise.
3188         * lib/unistr/u32-strpbrk.c: Likewise.
3189         * lib/unistr/u32-strrchr.c: Likewise.
3190         * lib/unistr/u32-strspn.c: Likewise.
3191         * lib/unistr/u32-strstr.c: Likewise.
3192         * lib/unistr/u32-strtok.c: Likewise.
3193         * lib/unistr/u32-to-u16.c: Likewise.
3194         * lib/unistr/u32-to-u8.c: Likewise.
3195         * lib/unistr/u32-uctomb.c: Likewise.
3196         * lib/unistr/u8-check.c: Likewise.
3197         * lib/unistr/u8-chr.c: Likewise.
3198         * lib/unistr/u8-cmp.c: Likewise.
3199         * lib/unistr/u8-cpy-alloc.c: Likewise.
3200         * lib/unistr/u8-cpy.c: Likewise.
3201         * lib/unistr/u8-endswith.c: Likewise.
3202         * lib/unistr/u8-mblen.c: Likewise.
3203         * lib/unistr/u8-mbsnlen.c: Likewise.
3204         * lib/unistr/u8-mbtouc-aux.c: Likewise.
3205         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
3206         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
3207         * lib/unistr/u8-mbtouc.c: Likewise.
3208         * lib/unistr/u8-mbtoucr.c: Likewise.
3209         * lib/unistr/u8-move.c: Likewise.
3210         * lib/unistr/u8-next.c: Likewise.
3211         * lib/unistr/u8-prev.c: Likewise.
3212         * lib/unistr/u8-set.c: Likewise.
3213         * lib/unistr/u8-startswith.c: Likewise.
3214         * lib/unistr/u8-stpcpy.c: Likewise.
3215         * lib/unistr/u8-stpncpy.c: Likewise.
3216         * lib/unistr/u8-strcat.c: Likewise.
3217         * lib/unistr/u8-strchr.c: Likewise.
3218         * lib/unistr/u8-strcmp.c: Likewise.
3219         * lib/unistr/u8-strcpy.c: Likewise.
3220         * lib/unistr/u8-strcspn.c: Likewise.
3221         * lib/unistr/u8-strdup.c: Likewise.
3222         * lib/unistr/u8-strlen.c: Likewise.
3223         * lib/unistr/u8-strmblen.c: Likewise.
3224         * lib/unistr/u8-strmbtouc.c: Likewise.
3225         * lib/unistr/u8-strncat.c: Likewise.
3226         * lib/unistr/u8-strncmp.c: Likewise.
3227         * lib/unistr/u8-strncpy.c: Likewise.
3228         * lib/unistr/u8-strnlen.c: Likewise.
3229         * lib/unistr/u8-strpbrk.c: Likewise.
3230         * lib/unistr/u8-strrchr.c: Likewise.
3231         * lib/unistr/u8-strspn.c: Likewise.
3232         * lib/unistr/u8-strstr.c: Likewise.
3233         * lib/unistr/u8-strtok.c: Likewise.
3234         * lib/unistr/u8-to-u16.c: Likewise.
3235         * lib/unistr/u8-to-u32.c: Likewise.
3236         * lib/unistr/u8-uctomb-aux.c: Likewise.
3237         * lib/unistr/u8-uctomb.c: Likewise.
3238         * lib/unitypes.h: Likewise.
3239         * lib/uniwidth.h: Likewise.
3240         * lib/uniwidth/cjk.h: Likewise.
3241         * lib/uniwidth/u16-strwidth.c: Likewise.
3242         * lib/uniwidth/u16-width.c: Likewise.
3243         * lib/uniwidth/u32-strwidth.c: Likewise.
3244         * lib/uniwidth/u32-width.c: Likewise.
3245         * lib/uniwidth/u8-strwidth.c: Likewise.
3246         * lib/uniwidth/u8-width.c: Likewise.
3247         * lib/uniwidth/width.c: Likewise.
3248
3249 2007-10-07  Bruno Haible  <bruno@clisp.org>
3250
3251         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
3252         The file is still under LGPL (see modules/inttypes).
3253
3254 2007-10-06  Bruno Haible  <bruno@clisp.org>
3255
3256         * modules/trunc (Dependencies): Add 'extensions'.
3257         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
3258         Reported by Ben Pfaff <blp@gnu.org>.
3259
3260 2007-10-06  Bruno Haible  <bruno@clisp.org>
3261
3262         * modules/freopen-tests: New file.
3263         * tests/test-freopen.c: New file.
3264
3265         * modules/fopen-tests: New file.
3266         * tests/test-fopen.c: New file.
3267
3268         * modules/fopen: New file.
3269         * lib/fopen.c: New file.
3270         * m4/fopen.m4: New file.
3271         * modules/freopen: New file.
3272         * lib/freopen.c: New file.
3273         * m4/freopen.m4: New file.
3274         * lib/stdio.in.h (fopen, freopen): New declarations.
3275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
3276         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
3277         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
3278         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
3279         * doc/functions/fopen.texi: Mention the 'fopen' module.
3280         * doc/functions/freopen.texi: Mention the 'freopen' module.
3281
3282 2007-10-06  Bruno Haible  <bruno@clisp.org>
3283
3284         * modules/open-tests: New file.
3285         * tests/test-open.c: New file.
3286
3287         * modules/open: New file.
3288         * lib/open.c: New file.
3289         * m4/open.m4: New file.
3290         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
3291         lib/open.c does.
3292         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
3293         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
3294         macros.
3295         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
3296         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
3297         REPLACE_OPEN.
3298         * doc/functions/open.texi: Mention the 'open' module.
3299
3300 2007-10-04  Bruno Haible  <bruno@clisp.org>
3301
3302         * modules/ceill-tests: New file.
3303         * tests/test-ceill.c: New file.
3304
3305         * modules/ceill: New file.
3306         * lib/ceill.c: Replace entire file.
3307         * m4/ceill.m4: New file.
3308         * lib/math.in.h (ceill): Replace declaration.
3309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
3310         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
3311         * doc/functions/ceill.texi: Mention the 'ceill' module.
3312         * modules/mathl (Files): Remove lib/ceill.c.
3313         (Depends-on): Add ceill.
3314
3315 2007-10-04  Bruno Haible  <bruno@clisp.org>
3316
3317         * modules/ceilf-tests: New file.
3318         * tests/test-ceilf.c: New file.
3319
3320         * modules/ceilf: New file.
3321         * lib/ceil.c: New file.
3322         * lib/ceilf.c: New file.
3323         * m4/ceilf.m4: New file.
3324         * lib/math.in.h (ceilf): New declaration.
3325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
3326         HAVE_DECL_CEILF.
3327         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
3328         HAVE_DECL_CEILF.
3329         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
3330
3331 2007-10-04  Bruno Haible  <bruno@clisp.org>
3332
3333         * modules/floorl-tests: New file.
3334         * tests/test-floorl.c: New file.
3335
3336         * modules/floorl: New file.
3337         * lib/floorl.c: Replace entire file.
3338         * m4/floorl.m4: New file.
3339         * lib/math.in.h (floorl): Replace declaration.
3340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
3341         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
3342         * doc/functions/floorl.texi: Mention the 'floorl' module.
3343         * modules/mathl (Files): Remove lib/floorl.c.
3344         (Depends-on): Add floorl.
3345
3346 2007-10-04  Bruno Haible  <bruno@clisp.org>
3347
3348         * modules/floorf-tests: New file.
3349         * tests/test-floorf.c: New file.
3350
3351         * modules/floorf: New file.
3352         * lib/floor.c: New file.
3353         * lib/floorf.c: New file.
3354         * m4/floorf.m4: New file.
3355         * lib/math.in.h (floorf): New declaration.
3356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
3357         HAVE_DECL_FLOORF.
3358         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
3359         HAVE_DECL_FLOORF.
3360         * doc/functions/floorf.texi: Mention the 'floorf' module.
3361
3362 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
3363             Bruno Haible  <bruno@clisp.org>
3364
3365         Advertise for the Git server instead of the CVS server.
3366         * doc/gnulib-intro.texi (Steady Development): Mention the Git
3367         repository instead of the CVS one.
3368         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
3369         about all VCS systems generically.
3370         * doc/gnulib.texi (Introduction): Capitalize `Git'.
3371
3372 2007-10-04  Bruno Haible  <bruno@clisp.org>
3373
3374         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
3375         means.
3376         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
3377
3378 2007-10-04  Bruno Haible  <bruno@clisp.org>
3379
3380         * modules/truncl-tests: New file.
3381         * tests/test-truncl.c: New file.
3382
3383         * modules/truncl: New file.
3384         * lib/truncl.c: New file.
3385         * m4/truncl.m4: New file.
3386         * lib/math.in.h (truncl): New declaration.
3387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
3388         HAVE_DECL_TRUNCL.
3389         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
3390         HAVE_DECL_TRUNCL.
3391         * doc/functions/truncl.texi: Mention the 'truncl' module.
3392
3393 2007-10-04  Bruno Haible  <bruno@clisp.org>
3394
3395         * modules/truncf-tests: New file.
3396         * tests/test-truncf.c: New file.
3397
3398         * modules/truncf: New file.
3399         * lib/trunc.c: Make paramerizable through USE_* macros.
3400         * lib/truncf.c: New file.
3401         * m4/truncf.m4: New file.
3402         * lib/math.in.h (truncf): New declaration.
3403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
3404         HAVE_DECL_TRUNCF.
3405         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
3406         HAVE_DECL_TRUNCF.
3407         * doc/functions/truncf.texi: Mention the 'truncf' module.
3408
3409 2007-10-03  Bruno Haible  <bruno@clisp.org>
3410
3411         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
3412         augmentation also for tests modules.
3413         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
3414         * modules/atexit-tests (Makefile.am): Likewise.
3415         * modules/binary-io-tests (Makefile.am): Likewise.
3416         * modules/c-strcase-tests (Makefile.am): Likewise.
3417         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
3418         * modules/canonicalize-tests (Makefile.am): Likewise.
3419         * modules/closein-tests (Makefile.am): Likewise.
3420         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3421         * modules/freadahead-tests (Makefile.am): Likewise.
3422         * modules/fseek-tests (Makefile.am): Likewise.
3423         * modules/fseeko-tests (Makefile.am): Likewise.
3424         * modules/ftell-tests (Makefile.am): Likewise.
3425         * modules/ftello-tests (Makefile.am): Likewise.
3426         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
3427         * modules/isnanl-tests (Makefile.am): Likewise.
3428         * modules/lseek-tests (Makefile.am): Likewise.
3429         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3430         * modules/mbscasestr-tests (Makefile.am): Likewise.
3431         * modules/mbschr-tests (Makefile.am): Likewise.
3432         * modules/mbscspn-tests (Makefile.am): Likewise.
3433         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3434         * modules/mbspbrk-tests (Makefile.am): Likewise.
3435         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3436         * modules/mbsrchr-tests (Makefile.am): Likewise.
3437         * modules/mbsspn-tests (Makefile.am): Likewise.
3438         * modules/mbsstr-tests (Makefile.am): Likewise.
3439         * modules/printf-posix-tests (Makefile.am): Likewise.
3440         * modules/snprintf-posix-tests (Makefile.am): Likewise.
3441         * modules/sprintf-posix-tests (Makefile.am): Likewise.
3442         * modules/tsearch-tests (Makefile.am): Likewise.
3443         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3444         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3445         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3446         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3447         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3448         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3449         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3450         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3451         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
3452         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
3453         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3454         * modules/xstrtol-tests (Makefile.am): Likewise.
3455         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3456         * modules/yesno-tests (Makefile.am): Likewise.
3457
3458 2007-10-03  Bruno Haible  <bruno@clisp.org>
3459
3460         * modules/trunc-tests: New file.
3461         * tests/test-trunc.c: New file.
3462
3463         * modules/trunc: New file.
3464         * lib/trunc.c: New file.
3465         * m4/trunc.m4: New file.
3466         * lib/math.in.h (trunc): New declaration.
3467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
3468         HAVE_DECL_TRUNC.
3469         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
3470         HAVE_DECL_TRUNC.
3471         * doc/functions/trunc.texi: Mention the 'trunc' module.
3472
3473 2007-10-03  Bruno Haible  <bruno@clisp.org>
3474
3475         * tests/test-fpending.c: New file, mostly copied
3476         from coreutils/lib/t-fpending.c.
3477         * modules/fpending-tests: New file.
3478
3479 2007-10-03  Bruno Haible  <bruno@clisp.org>
3480
3481         Port the stdio extensions to QNX (untested).
3482         * lib/fseterr.c (fseterr): Add support for QNX.
3483         * lib/fbufmode.c (fbufmode): Likewise.
3484         * lib/freadable.c (freadable): Likewise.
3485         * lib/fwritable.c (fwritable): Likewise.
3486         * lib/freading.c (freading): Likewise.
3487         * lib/fwriting.c (fwriting): Likewise.
3488         * lib/freadahead.c (freadahed): Likewise.
3489         * lib/fpurge.c (fpurge): Likewise.
3490         * lib/fseeko.c (rpl_fseeko): Likewise.
3491
3492 2007-10-03  Bruno Haible  <bruno@clisp.org>
3493             Jim Meyering  <jim@meyering.net>
3494             Eric Blake  <ebb9@byu.net>
3495
3496         * doc/relocatable.texi: Use @command instead of @program.
3497
3498 2007-10-02  Jim Meyering  <jim@meyering.net>
3499
3500         Perform one more "_.h" -> ".in.h" substitution.
3501         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
3502         instead of unistd_.h here, too.
3503
3504 2007-10-01  Bruno Haible  <bruno@clisp.org>
3505
3506         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
3507         Needed for the alloca-opt module.
3508
3509 2007-09-30  Bruno Haible  <bruno@clisp.org>
3510
3511         * lib/alloca.in.h: Renamed from lib/alloca_.h.
3512         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
3513         alloca_.h.
3514         * lib/argz.in.h: Renamed from lib/argz_.h.
3515         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
3516         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
3517         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
3518         byteswap_.h.
3519         * lib/dirent.in.h: Renamed from lib/dirent_.h.
3520         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
3521         dirent_.h.
3522         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
3523         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
3524         fcntl_.h.
3525         * lib/float.in.h: Renamed from lib/float_.h.
3526         * modules/float (Files, Makefile.am): Use float.in.h instead of
3527         float_.h.
3528         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
3529         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
3530         fnmatch_.h.
3531         * lib/getopt.in.h: Renamed from lib/getopt_.h.
3532         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
3533         getopt_.h.
3534         * lib/glob.in.h: Renamed from lib/glob_.h.
3535         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
3536         * lib/iconv.in.h: Renamed from lib/iconv_.h.
3537         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
3538         iconv_.h.
3539         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
3540         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
3541         inttypes_.h.
3542         * lib/locale.in.h: Renamed from lib/locale_.h.
3543         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
3544         locale_.h.
3545         * lib/math.in.h: Renamed from lib/math_.h.
3546         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
3547         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
3548         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
3549         of netinet_in_.h. Add dependency.
3550         * lib/poll.in.h: Renamed from lib/poll_.h.
3551         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
3552         * lib/search.in.h: Renamed from lib/search_.h.
3553         * modules/search (Files, Makefile.am): Use search.in.h instead of
3554         search_.h.
3555         * lib/signal.in.h: Renamed from lib/signal_.h.
3556         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
3557         _signal.h.
3558         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
3559         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
3560         stdbool_.h.
3561         * lib/stdint.in.h: Renamed from lib/stdint_.h.
3562         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
3563         stdint_.h.
3564         * lib/stdio.in.h: Renamed from lib/stdio_.h.
3565         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
3566         stdio_.h.
3567         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
3568         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
3569         stdlib_.h.
3570         * lib/string.in.h: Renamed from lib/string_.h.
3571         * modules/string (Files, Makefile.am): Use string.in.h instead of
3572         string_.h.
3573         * doc/gnulib-tool.texi (Initial import): Update.
3574         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
3575         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
3576         of sys_select_.h. Add dependency.
3577         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
3578         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
3579         of sys_socket_.h.
3580         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
3581         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
3582         sys_stat_.h.
3583         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
3584         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
3585         sys_time_.h.
3586         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
3587         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
3588         sysexits_.h.
3589         * lib/time.in.h: Renamed from lib/time_.h.
3590         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
3591         * lib/unistd.in.h: Renamed from lib/unistd_.h.
3592         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
3593         unistd_.h.
3594         * lib/wchar.in.h: Renamed from lib/wchar_.h.
3595         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
3596         wchar_.h.
3597         * lib/wctype.in.h: Renamed from lib/wctype_.h.
3598         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
3599         wctype_.h.
3600         * build-aux/bootstrap (slurp): Update.
3601         * lib/.cppi-disable: Update.
3602
3603 2007-09-30  Bruno Haible  <bruno@clisp.org>
3604
3605         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
3606         Needed on BeOS.
3607
3608 2007-09-30  Bruno Haible  <bruno@clisp.org>
3609
3610         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
3611
3612 2007-09-29  Bruno Haible  <bruno@clisp.org>
3613
3614         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
3615
3616 2007-09-29  Bruno Haible  <bruno@clisp.org>
3617
3618         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
3619         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
3620         * build-aux/install-reloc: Compile also areadlink.c.
3621         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
3622
3623 2007-09-29  Bruno Haible  <bruno@clisp.org>
3624
3625         * gnulib-tool (func_emit_initmacro_done): Indentation.
3626
3627 2007-09-29  Bruno Haible  <bruno@clisp.org>
3628
3629         * README: Add CVS checkout update instructions.
3630         Info from Bob Proulx <bob@proulx.com>.
3631
3632 2007-09-28  Eric Blake  <ebb9@byu.net>
3633
3634         Provide move-if-change.
3635         * build-aux/move-if-change: New file, based on best practice
3636         rather than any canonical upstream location.
3637
3638 2007-09-28  Jim Meyering  <jim@meyering.net>
3639
3640         Fix canonicalize loop-detection corner case.
3641         Do not attempt to stat the symlink values stored via seen_triple.
3642         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
3643         on linux-2.6.18, (but not 2.6.22).
3644         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
3645         triple_compare.  The former compares dev,ino,filename, while the latter
3646         would actually stat dirname(filename) when dev and ino were equal.
3647         * lib/hash-triple.c: Install <string.h>.
3648         (STREQ): Define.
3649         (triple_compare_ino_str): New function.
3650         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
3651
3652 2007-09-28  Eric Blake  <ebb9@byu.net>
3653
3654         Enforce that AC_REPLACE_FUNCS files exist.
3655         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
3656         override check for typos.
3657
3658         Fix test-closein on Solaris 10.
3659         * tests/test-closein.c (main): Don't assume stdin can be inherited
3660         closed on all systems.
3661         * tests/test-closein.sh: Likewise.
3662         Reported by Piotr Tarnowski.
3663
3664 2007-09-28  Jim Meyering  <jim@meyering.net>
3665
3666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
3667
3668 2007-09-27  Jim Meyering  <jim@meyering.net>
3669
3670         canonicalize: Avoid a false-positive cycle failure.
3671         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
3672         Sort.  Remove cycle-check.
3673         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
3674         not cycle-check.h.
3675         (seen_triple): New function.
3676         (canonicalize_filename_mode): Use it instead of cycle-check.
3677         * tests/test-canonicalize.c: Add a test for this bug.
3678         * tests/test-canonicalize.sh: Set up and run the test.
3679
3680         New module, file-set, from coreutils.
3681         * modules/file-set: Define it.
3682         * lib/file-set.c, lib/file-set.h: Implement.
3683
3684         New module, hash-triple, from coreutils.
3685         * modules/hash-triple: Define it.
3686         * lib/hash-triple.c, lib/hash-triple.h: Implement.
3687
3688 2007-09-25  Eric Blake  <ebb9@byu.net>
3689
3690         Fix strerror on Interix.
3691         * lib/string_.h (strerror): Declare replacement.
3692         * doc/functions/strerror.texi (strerror): Document the Interix
3693         shortcoming.
3694         * modules/string (Makefile.am): Support new hooks.
3695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
3696         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
3697         gl_FUNC_STRERROR_SEPARATE.
3698         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
3699         * lib/strerror.c (rpl_strerror): Provide replacement.
3700         * modules/strerror (Depends-on): Add string.
3701         (configure.ac): Detect use of module.
3702         * tests/test-strerror.c: New file.
3703         * modules/strerror-tests: New test module.
3704         * modules/argp (Depends-on): Add strerror.
3705         * modules/error (Depends-on): Likewise.
3706         Reported by Martin Koeppe.
3707
3708 2007-09-24  Bruno Haible  <bruno@clisp.org>
3709
3710         * README: Update git instructions.
3711
3712 2007-09-24  Eric Blake  <ebb9@byu.net>
3713
3714         Revert fpending breakage from 2007-09-08.
3715         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
3716         __fpending.c.
3717
3718 2007-09-24  Jim Meyering  <jim@meyering.net>
3719
3720         filenamecat.c: Add a test.
3721         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
3722         showing how the function works when DIR is the empty string.
3723
3724 2007-09-21  Simon Josefsson  <simon@josefsson.org>
3725
3726         * tests/test-canonicalize.sh: Turn on executable bit.
3727
3728 2007-09-19  Eric Blake  <ebb9@byu.net>
3729
3730         * README: Update CVS instructions.
3731
3732 2007-09-18  Bruno Haible  <bruno@clisp.org>
3733
3734         * modules/areadlink: New file.
3735         * lib/areadlink.h (areadlink): New declaration.
3736         * lib/areadlink.c: New file, based on lib/xreadlink.c.
3737
3738 2007-09-17  Jim Meyering  <jim@meyering.net>
3739
3740         * lib/savewd.c (ESTALE) [!defined]: Define.
3741         Reported to be required on Interix by Martin Koeppe.
3742
3743 2007-09-17  Bruno Haible  <bruno@clisp.org>
3744
3745         * gnulib-tool (func_version): Use $version.
3746
3747 2007-09-16  Bruno Haible  <bruno@clisp.org>
3748
3749         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
3750         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
3751         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
3752         Reported by Greg Schafer <gschafer@zip.com.au>.
3753
3754 2007-09-15  Bruno Haible  <bruno@clisp.org>
3755
3756         * gnulib-tool (sed): Try a little harder to make bash understand the
3757         alias.
3758         Reported by Bruce Korb <bruce.korb@gmail.com>.
3759
3760 2007-09-13  Eric Blake  <ebb9@byu.net>
3761
3762         * ChangeLog: Remove conflict markers.
3763
3764 2007-09-13  Simon Josefsson  <simon@josefsson.org>
3765
3766         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
3767         Reported by Bruno Haible <bruno@clisp.org>.
3768
3769 2007-09-12  Bruno Haible  <bruno@clisp.org>
3770
3771         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
3772         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
3773         is not defined.
3774
3775 2007-09-12  Eric Blake  <ebb9@byu.net>
3776
3777         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
3778         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
3779         Autoconf definition.
3780         * modules/euidaccess (Depends-on): Add extensions, for
3781         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
3782         * modules/fnmatch (Depends-on): Likewise.
3783         * modules/getaddrinfo (Depends-on): Likewise.
3784         * modules/getdelim (Depends-on): Likewise.
3785         * modules/getline (Depends-on): Likewise.
3786         * modules/getsubopt (Depends-on): Likewise.
3787         * modules/gettext (Depends-on): Likewise.
3788         * modules/group-member (Depends-on): Likewise.
3789         * modules/mbchar (Depends-on): Likewise.
3790         * modules/memmem (Depends-on): Likewise.
3791         * modules/mempcpy (Depends-on): Likewise.
3792         * modules/memrchr (Depends-on): Likewise.
3793         * modules/pagealign_alloc (Depends-on): Likewise.
3794         * modules/readutmp (Depends-on): Likewise.
3795         * modules/stpcpy (Depends-on): Likewise.
3796         * modules/stpncpy (Depends-on): Likewise.
3797         * modules/strchrnul (Depends-on): Likewise.
3798         * modules/strndup (Depends-on): Likewise.
3799         * modules/strsep (Depends-on): Likewise.
3800         * modules/strverscmp (Depends-on): Likewise.
3801         * modules/vasprintf (Depends-on): Likewise.
3802         * modules/wcwidth (Depends-on): Likewise.
3803         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
3804         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
3805         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
3806         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
3807         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3808         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3809         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
3810         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
3811         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
3812         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3813         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3814         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
3815         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
3816         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3817         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
3818         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3819         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3820         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
3821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3822         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
3823         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3824         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
3825         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
3826         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
3827         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
3828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3829         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
3830         so that lock.m4 can be used in gettext without extensions module.
3831
3832 2007-09-11  Bruno Haible  <bruno@clisp.org>
3833
3834         * m4/isc-posix.m4: Remove file.
3835         Suggested by Eric Blake.
3836
3837 2007-09-11  Eric Blake  <ebb9@byu.net>
3838
3839         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
3840
3841 2007-09-10  Bruno Haible  <bruno@clisp.org>
3842
3843         * posix-modules: Fix typo in error message.
3844         Reported by Matt <mkraai@beckman.com>.
3845
3846 2007-09-09  Bruno Haible  <bruno@clisp.org>
3847
3848         * doc/functions/getdelim.texi: Update list of platforms lacking the
3849         function.
3850         * doc/functions/getline.texi: Likewise.
3851
3852 2007-09-09  Jim Meyering  <jim@meyering.net>
3853
3854         * lib/hash.c (hash_initialize): Detect calloc failure.
3855         Reported by Bruno Haible.
3856
3857 2007-09-09  Bruno Haible  <bruno@clisp.org>
3858
3859         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
3860         malloc or realloc fails.
3861
3862 2007-09-09  Bruno Haible  <bruno@clisp.org>
3863
3864         * modules/getcwd (Depends-on): Add malloc-posix.
3865         * modules/glob (Depends-on): Likewise.
3866         * modules/putenv (Depends-on): Likewise.
3867         * modules/strdup (Depends-on): Likewise.
3868         * modules/getdelim (Depends-on): Add realloc-posix.
3869         * modules/read-file (Depends-on): Likewise.
3870
3871 2007-09-09  Bruno Haible  <bruno@clisp.org>
3872
3873         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
3874         (gl_FUNC_MALLOC_POSIX): Require it.
3875         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
3876         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
3877         * modules/realloc (Files): Add m4/malloc.m4.
3878         * modules/calloc (Files): Likewise.
3879
3880 2007-09-09  Bruno Haible  <bruno@clisp.org>
3881
3882         * modules/malloc-posix: New file.
3883         * modules/malloc (Depends-on): Add malloc-posix.
3884         * lib/malloc.c: Include errno.h.
3885         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
3886         and a POSIX-compatible malloc into a single function. Set ENOMEM
3887         when returning NULL.
3888         * m4/malloc.m4: New file.
3889         * doc/functions/malloc.texi: Mention the malloc-posix module.
3890         * lib/stdlib_.h (malloc): New declaration.
3891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
3892         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
3893         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
3894         and HAVE_MALLOC_POSIX.
3895
3896 2007-09-09  Bruno Haible  <bruno@clisp.org>
3897
3898         * modules/realloc-posix: New file.
3899         * modules/realloc (Depends-on): Add realloc-posix.
3900         * lib/realloc.c: Include errno.h.
3901         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
3902         and a POSIX-compatible realloc into a single function. Set ENOMEM
3903         when returning NULL.
3904         * m4/realloc.m4: New file.
3905         * doc/functions/realloc.texi: Mention the realloc-posix module.
3906         * lib/stdlib_.h (realloc): New declaration.
3907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
3908         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
3909         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
3910         and HAVE_REALLOC_POSIX.
3911
3912 2007-09-09  Bruno Haible  <bruno@clisp.org>
3913
3914         * modules/calloc-posix: New file.
3915         * modules/calloc (Depends-on): Add calloc-posix.
3916         * lib/calloc.c: Include errno.h.
3917         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
3918         and a POSIX-compatible calloc into a single function. Set ENOMEM
3919         when returning NULL.
3920         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
3921         * doc/functions/calloc.texi: Mention the calloc-posix module.
3922         * lib/stdlib_.h (calloc): New declaration.
3923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
3924         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
3925         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
3926         and HAVE_CALLOC_POSIX.
3927
3928 2007-09-09  Bruno Haible  <bruno@clisp.org>
3929
3930         Allow for modules to show an arbitrary notice.
3931         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
3932         * gnulib-tool: New option --extract-notice.
3933         (func_usage): Document it.
3934         (sed_extract_prog): Update.
3935         (func_get_notice): New function.
3936         (func_modules_notice): New function.
3937         (func_import, func_create_testdir): Invoke it.
3938         Suggested by Jim Meyering.
3939
3940 2007-09-09  Bruno Haible  <bruno@clisp.org>
3941
3942         * gnulib-tool: New options --verbose, --quiet.
3943         (func_usage): Document them.
3944         (verbose): New variable.
3945         (func_execute_command): New function.
3946         (func_import): Don't show the module list and the file list if
3947         $verbose < 0.
3948         (func_create_testdir): Likewise. Use func_execute_command.
3949         (func_create_megatestdir): Use func_execute_command.
3950
3951 2007-09-08  Bruno Haible  <bruno@clisp.org>
3952
3953         * gnulib-tool (func_import): Prefer rsync over wget when available,
3954         for fetching the PO files.
3955
3956 2007-09-08  Bruno Haible  <bruno@clisp.org>
3957
3958         * posix-modules: New file. Portions copied from gnulib-tool.
3959         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
3960
3961 2007-09-08  Jim Meyering  <jim@meyering.net>
3962
3963         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
3964         * lib/fpending.h: Rename from __fpending.h.
3965         * lib/fpending.c: Rename from __fpending.c.
3966         Include "fpending.h", not "__fpending.h".
3967         * lib/__fpending.h, lib/__fpending.c: Remove files.
3968         * modules/fpending (Files): Reflect new file names.
3969         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
3970
3971 2007-09-08  Bruno Haible  <bruno@clisp.org>
3972
3973         * m4/inttypes-h.m4: Remove stub file.
3974
3975 2007-09-07  Simon Josefsson  <simon@josefsson.org>
3976
3977         * doc/headers/stdint.texi: Discuss #include_next issue.
3978
3979 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
3980
3981         * build-aux/bootstrap: Remove obsolete comment about wget --help.
3982
3983 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3984
3985         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
3986         in variable name.
3987
3988 2007-09-03  Jim Meyering  <jim@meyering.net>
3989
3990         New module: git-version-gen.
3991         * modules/git-version-gen: New file.
3992
3993         Import changes from coreutils for bootstrap script.
3994
3995         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
3996
3997         bootstrap: uses rsync to download the .po files
3998         * build-aux/bootstrap (po_download_command_format): New global.
3999         (download_po_files): Use rsync.
4000         (update_po_files): Don't remove .po files after download,
4001         so future rsync runs can take advantage of the copies.
4002
4003         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
4004
4005         Solve the unnecessary-.po-file-regeneration problem once and for all.
4006         * build-aux/bootstrap (download_po_files): New function, renamed from
4007         get_translations.  Now, downloads, but doesn't update LINGUAS.
4008         (update_po_files): New function.
4009
4010         bootstrap: Ignore more.
4011         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
4012         uniwidth to e.g., lib/.gitignore.
4013         (slurp): Handle the sys_stat_.h -> sys mapping, too.
4014
4015         * build-aux/bootstrap: New setting: vc_ignore.
4016         (insert_sorted_if_absent): Create $file if absent.
4017         Adapt to new, possibly empty, list: $vc_ignore.
4018
4019         bootstrap: generate more ignorable names
4020         * build-aux/bootstrap (slurp): When generating ignorable names,
4021         also map .sin to .sed, .gperf to .c, and .y to .c.
4022
4023 2007-09-03  Jim Meyering  <jim@meyering.net>
4024
4025         * build-aux/git-version-gen: New file, from coreutils.  For details, see
4026         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
4027
4028 2007-09-02  Bruno Haible  <bruno@clisp.org>
4029
4030         Fix mis-recognition of 'mcs' on QNX 6.
4031         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
4032         output contains the string "Mono".
4033         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
4034         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
4035
4036 2007-09-01  Bruno Haible  <bruno@clisp.org>
4037
4038         Fix collision between uniwidth/* and linebreak modules.
4039         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
4040         u32_width): Remove declarations.
4041         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
4042         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
4043         streq3, streq2, streq1, streq0): Remove functions.
4044         (STREQ): Remove macro.
4045         (is_cjk_encoding): Remove function.
4046         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
4047         (uc_width, u8_width, u16_width, u32_width): Remove functions.
4048         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
4049         * NEWS: Document the change.
4050
4051 2007-09-01  Bruno Haible  <bruno@clisp.org>
4052
4053         * lib/streq.h: Add double-inclusion guard.
4054
4055 2007-09-01  Karl Berry  <karl@gnu.org>
4056
4057         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
4058
4059 2007-08-28  Jim Meyering  <jim@meyering.net>
4060
4061         Rename mreadlink_with_size to areadlink_with_size.
4062         * NEWS: Document the change.
4063         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
4064         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
4065         * lib/mreadlink.h: Rename this to...
4066         * lib/areadlink.h: ...this.
4067         * modules/mreadlink-with-size: Rename this to...
4068         * modules/areadlink-with-size: ...this.
4069         * lib/canonicalize.c: Reflect the renaming.
4070         * modules/canonicalize: Likewise.
4071
4072 2007-08-26  Bruno Haible  <bruno@clisp.org>
4073
4074         * gnulib-tool (func_import): When deciding which files to remove,
4075         consider also dangling symbolic links.
4076         Reported by Eric Blake.
4077
4078 2007-08-26  Bruno Haible  <bruno@clisp.org>
4079
4080         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
4081
4082 2007-08-23  Simon Josefsson  <simon@josefsson.org>
4083
4084         * lib/readline.c: Don't include getline.h, the prototype is now
4085         found in stdio.h.
4086
4087 2007-08-23  Jim Meyering  <jim@meyering.net>
4088
4089         Getdelim touchup.
4090         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
4091         around the funlockfile call, since funlockfile never sets errno.
4092         Don't set errno upon failed realloc.
4093
4094 2007-08-22  Eric Blake  <ebb9@byu.net>
4095
4096         Getline touchups.
4097         * lib/getdelim.c (getdelim): Revert regression that required *n to
4098         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
4099         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
4100         getdelim, rather than whether implementation is missing.
4101         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
4102         * lib/stdio_.h (getline): Also declare if replacement is
4103         required.
4104         * doc/functions/getdelim.texi: New file.
4105         * doc/functions/getline.texi: Likewise.
4106         * doc/gnulib.texi (Function Substitutes): Add new files.
4107         Reported by Bruno Haible.
4108
4109 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
4110
4111         * users.txt: Add Guile.
4112
4113 2007-08-22  Eric Blake  <ebb9@byu.net>
4114
4115         * tests/test-getdelim.c (main): Use remove, not unlink.
4116         * tests/test-getline.c (main): Likewise.
4117
4118         Move getline and getdelim into stdio.h, per POSIX 200x.
4119         * modules/getline (Files): Remove getline.h.
4120         (Depends-on): Add stdio.
4121         (configure.ac): Add module indicator.
4122         * modules/getdelim (Files): Remove getdelim.h.
4123         (Depends-on): Add stdio.
4124         (configure.ac): Add module indicator.
4125         * modules/stdio (Makefile.am): Work with new indicators.
4126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
4127         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
4128         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4129         * lib/getdelim.h: Delete.
4130         * lib/getline.h: Delete.
4131         * lib/stdio_.h (getdelim, getline): Declare.
4132         * modules/getdelim-tests: New module.
4133         * modules/getline-tests: Likewise.
4134         * tests/test-getdelim.c: New file.
4135         * tests/test-getline.c: Likewise.
4136         * NEWS: Document the change.
4137         * lib/getline.c: Update choice of header.
4138         * lib/csharpcomp.c: Likewise.
4139         * lib/getpass.c: Likewise.
4140         * lib/javacomp.c: Likewise.
4141         * lib/javaversion.c: Likewise.
4142         * lib/yesno.c: Likewise.
4143         * lib/getdelim.c: Likewise.
4144         (getdelim): Set errno on failure, and avoid memory leak.
4145
4146 2007-08-19  Bruno Haible  <bruno@clisp.org>
4147
4148         * modules/closein (Depends-on): Add freadahead.
4149         * lib/closein.c: Include freadahead.h.
4150         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
4151         is zero.
4152
4153 2007-08-19  Bruno Haible  <bruno@clisp.org>
4154
4155         * modules/freadahead-tests: New file.
4156         * tests/test-freadahead.sh: New file.
4157         * tests/test-freadahead.c: New file.
4158
4159         * modules/freadahead: New file.
4160         * lib/freadahead.h: New file.
4161         * lib/freadahead.c: New file.
4162         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
4163         fbufmode, fpurge, freadable, fwritable.
4164
4165 2007-08-19  Eric Blake  <ebb9@byu.net>
4166
4167         Test yesno in combination with closein.
4168         * lib/yesno.c (yesno): Document use of stdin.
4169         * modules/yesno-tests (Files): New module.
4170         * tests/test-yesno.c (main): New file.
4171         * tests/test-yesno.sh: Likewise.
4172
4173 2007-08-19  Bruno Haible  <bruno@clisp.org>
4174
4175         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
4176         * lib/fseeko.c (rpl_fseeko): Likewise.
4177         * lib/fseterr.c (fseterr): Likewise.
4178
4179 2007-08-19  Bruno Haible  <bruno@clisp.org>
4180
4181         * tests/test-lseek.c (main): Disable a test for BeOS.
4182         * doc/functions/lseek.texi: Document the BeOS bug.
4183
4184 2007-08-19  Bruno Haible  <bruno@clisp.org>
4185             Eric Blake  <ebb9@byu.net>
4186
4187         * lib/lseek.c: Include <sys/stat.h>.
4188         (rpl_lseek): Add workaround code also for Unix platforms.
4189         Needed for BeOS.
4190         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
4191         * doc/functions/lseek.texi: Document BeOS definiency.
4192
4193 2007-08-18  Bruno Haible  <bruno@clisp.org>
4194
4195         * modules/fstrcmp-tests: New file.
4196         * tests/test-fstrcmp.c: New file.
4197
4198 2007-08-18  Bruno Haible  <bruno@clisp.org>
4199
4200         * modules/fstrcmp: New file, from GNU gettext with modifications.
4201         * lib/fstrcmp.h: New file, from GNU gettext.
4202         * lib/fstrcmp.c: New file, from GNU gettext.
4203         * MODULES.html.sh (String handling): Add fstrcmp.
4204
4205 2007-08-18  Bruno Haible  <bruno@clisp.org>
4206
4207         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
4208         'bool'.
4209         (diag, compareseq): Remove const from the ctxt argument.
4210         (USE_HEURISTIC): Undefine at the end.
4211
4212 2007-08-18  Jim Meyering  <jim@meyering.net>
4213
4214         New file: lib/idcache.h
4215         * NEWS: Mention the addition.
4216         * modules/idcache (Files): Add lib/idcache.h
4217         * lib/idcache.c: Include "idcache.h".
4218         Don't include <sys/types.h>.
4219         Add a FIXME comment.
4220         Move file-scoped "static" declarations to the top.
4221         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
4222
4223 2007-08-17  Bruno Haible  <bruno@clisp.org>
4224         and Paul Eggert  <eggert@cs.ucla.edu>
4225
4226         * MODULES.html.sh: Add diffseq.
4227         * modules/diffseq: New file.
4228         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
4229         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
4230
4231 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4232
4233         Import changes from coreutils for bootstrap script.
4234
4235         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
4236
4237         * build-aux/bootstrap (slurp): Work even in environments where
4238         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
4239         current code does not slurp files whose names start with ".", and
4240         this looks like it might be a troublesome area.
4241
4242         2007-07-11  Jim Meyering  <jim@meyering.net>
4243
4244         If there's a GPL vN copyright comment, require that N == 3.
4245
4246         2007-07-08  Jim Meyering  <jim@meyering.net>
4247
4248         Run the coreutils-specific code only if tests/Makefile.am.in exists.
4249         * build-aux/bootstrap (mam_template): Move definition out of loop.
4250
4251         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
4252
4253         * build-aux/bootstrap (symlink_to_dir): Rename function from
4254         symlink_to_gnulib.  Add a directory parameter.  Update all
4255         callers.
4256         (cp_mark_as_generated): Also check for -- and link to -- files in
4257         gl/.
4258
4259         2007-07-08  Jim Meyering  <jim@meyering.net>
4260
4261         Adapt to deeper hierarchy in gnulib.
4262         * build-aux/bootstrap (symlink_to_dir): If the destination
4263         directory doesn't exist, create it. This is required at least for
4264         "lib/uniwidth/cjk.h".
4265
4266         2007-05-15  Jim Meyering  <jim@meyering.net>
4267
4268         * build-aux/bootstrap: Now that generated Makefile.am files
4269         are no longer under version control, they must be created at
4270         bootstrap time.
4271
4272 2007-08-14  Ben Pfaff  <blp@gnu.org>
4273
4274         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
4275
4276 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4277
4278         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
4279         given the changes below.
4280         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
4281         even on hosts that have padding bits beyond the supported 64.
4282
4283 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4284
4285         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
4286         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
4287         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
4288         depends on it.
4289         (xstrtol_error): Remove.
4290         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
4291         but with a different signature.
4292         (ATTRIBUTE_NORETURN, __attribute__): New macros.
4293         * lib/xstrtol-error.c: Include exitfail.h.
4294         (xstrtol_fatal): New function, with a different signature from the
4295         old xstrtol_error, so that the caller need not worry about passing
4296         in an exit status, or about storage management of the option argument.
4297         (xstrtol_error): Now a static function.  Redo signature to
4298         implement xstrtol_fatal.  Output the correct number of hyphens in
4299         front of the option so that the caller need not worry about
4300         storage management.
4301         (N_): New macro.
4302         (_): Remove; not used now.
4303         * modules/xstrtol: Depend on getopt.
4304         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
4305         of old STRTOL_FATAL_ERROR macro.
4306         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
4307         of test program.
4308         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
4309         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
4310
4311 2007-08-08  Eric Blake  <ebb9@byu.net>
4312
4313         * lib/xstrtol-error.c: Add missing include.
4314
4315         Move xstrtol messages into gnulib domain, when --pobase is used.
4316         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
4317         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
4318         * modules/xstrtol (Files): Distribute new file.
4319         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
4320         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
4321         * tests/test-xstrtol.c: ...into new file.
4322         * tests/test-xstrtoul.c: Also test xstrtoul.
4323         * tests/test-xstrtoimax.c: Also test xstrtoimax.
4324         * tests/test-xstrtoumax.c: Also test xstrtoumax.
4325         * tests/test-xstrtol.sh: Drive the tests.
4326         * tests/test-xstrtoimax.sh: Likewise.
4327         * tests/test-xstrtoumax.sh: Likewise.
4328         * modules/xstrtol-tests: New module.
4329         * modules/xstrtoimax-tests: Likewise.
4330         * modules/xstrtoumax-tests: Likewise.
4331
4332 2007-08-08  Jim Meyering  <jim@meyering.net>
4333
4334         New function: mfile_name_concat.
4335         * lib/filenamecat.c (mfile_name_concat): New function, just like
4336         file_name_concat, but return NULL upon failure rather than exiting
4337         with a diagnostic.
4338         * lib/filenamecat.h: Declare it.
4339
4340 2007-08-07  Bruno Haible  <bruno@clisp.org>
4341
4342         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
4343         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
4344         warning from gcc.
4345         Reported by Eric Blake.
4346
4347 2007-08-07  Simon Josefsson  <simon@josefsson.org>
4348
4349         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
4350         * modules/crypto/arcfour (License): Likewise.
4351         * modules/crypto/des-tests (License): Likewise.
4352         * modules/crypto/gc-arctwo-tests (License): Likewise.
4353         * modules/crypto/gc-des-tests (License): Likewise.
4354         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
4355         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
4356         * modules/crypto/gc-md2-tests (License): Likewise.
4357         * modules/crypto/gc-md4-tests (License): Likewise.
4358         * modules/crypto/gc-md5-tests (License): Likewise.
4359         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
4360         * modules/crypto/gc-rijndael-tests (License): Likewise.
4361         * modules/crypto/gc-sha1-tests (License): Likewise.
4362         * modules/crypto/gc-tests (License): Likewise.
4363         * modules/crypto/hmac-md5 (License): Likewise.
4364         * modules/crypto/hmac-sha1 (License): Likewise.
4365         * modules/crypto/md2-tests (License): Likewise.
4366         * modules/crypto/md4-tests (License): Likewise.
4367         * modules/crypto/md5 (License): Likewise.
4368         * modules/crypto/rijndael (License): Likewise.
4369         * modules/crypto/sha1 (License): Likewise.
4370         * modules/memxor (License): Likewise.
4371
4372 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4373         and Bruno Haible  <bruno@clisp.org>
4374
4375         * NEWS: Describe interface changes to human, xstrtol.
4376         * lib/human.h: Include <xstrtol.h>.
4377         (human_options): Return enum strtol_error, not int.  Remove
4378         bool arg; take int * instead.
4379         * lib/human.c: Don't include "gettext.h".
4380         (_): Remove; no longer used.
4381         Don't include <xstrtol.h>, since human.h does it.
4382         (human_options): Adjust to abovementioned interface changes.
4383         Do not report error to stderr; that's now the caller's
4384         responsibility.
4385         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
4386         interface change.
4387         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
4388         Str, Argument_type_string.  All uses changed.  Put " argument"
4389         in diagnostics to make them clearer.  Change wording of suffix
4390         message for clarity.
4391         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
4392         Argument_type_string.
4393         (STRTOL_FATAL_WARN): Remove; no longer used.
4394         * modules/human (Depends-on): Remove gettext-h.
4395
4396 2007-08-06  Simon Josefsson  <simon@josefsson.org>
4397
4398         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
4399
4400 2007-07-31  Bruno Haible  <bruno@clisp.org>
4401
4402         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
4403         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
4404         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
4405
4406 2007-07-31  Bruno Haible  <bruno@clisp.org>
4407
4408         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
4409         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
4410
4411 2007-07-30  Bruno Haible  <bruno@clisp.org>
4412
4413         * modules/base64 (License): Use the synonymous term "LGPLv2+".
4414         * modules/c-ctype (License): Likewise.
4415         * modules/c-strcase (License): Likewise.
4416         * modules/check-version (License): Likewise.
4417         * modules/iconv (License): Likewise.
4418         * modules/iconv_open (License): Likewise.
4419         * modules/read-file (License): Likewise.
4420         * modules/striconv (License): Likewise.
4421         * modules/strverscmp (License): Likewise.
4422         * modules/vasprintf (License): Likewise.
4423         * modules/crypto/des (License): Likewise.
4424         * modules/crypto/gc (License): Likewise.
4425         * modules/crypto/gc-arcfour (License): Likewise.
4426         * modules/crypto/gc-arctwo (License): Likewise.
4427         * modules/crypto/gc-des (License): Likewise.
4428         * modules/crypto/gc-hmac-md5 (License): Likewise.
4429         * modules/crypto/gc-hmac-sha1 (License): Likewise.
4430         * modules/crypto/gc-md2 (License): Likewise.
4431         * modules/crypto/gc-md4 (License): Likewise.
4432         * modules/crypto/gc-md5 (License): Likewise.
4433         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
4434         * modules/crypto/gc-random (License): Likewise.
4435         * modules/crypto/gc-rijndael (License): Likewise.
4436         * modules/crypto/gc-sha1 (License): Likewise.
4437         * modules/crypto/md2 (License): Likewise.
4438         * modules/crypto/md4 (License): Likewise.
4439
4440 2007-07-30  Jim Meyering  <jim@meyering.net>
4441
4442         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
4443         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
4444         it has valid stat data.  This bug would cause du not to count the
4445         sizes of inaccessible directories.
4446         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
4447         in <http://bugzilla.redhat.com/250077>.
4448
4449 2007-07-25  Peter O'Gorman  <peter@pogma.com>
4450             Bruno Haible  <bruno@clisp.org>
4451
4452         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
4453         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
4454         #include_next, gives a diagnostic about it, but reports no error in
4455         the exit code.
4456         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
4457
4458 2007-07-24  Ben Pfaff  <blp@gnu.org>
4459
4460         Improve name: "count-one-bits" is better than "popcount".
4461         * MODULES.html.sh: Update name.
4462         * lib/popcount.h: Renamed lib/count-one-bits.h.
4463         (popcount): Renamed count_one_bits.
4464         (popcountl): Renamed count_one_bits_l.
4465         (popcountll): Renamed count_one_bits_ll.
4466         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
4467         * modules/popcount: Renamed module/count-one-bits.
4468         * modules/popcount-tests: Renamed module/count-one-bits-tests.
4469         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
4470
4471 2007-07-23  Ben Pfaff  <blp@gnu.org>
4472
4473         * lib/popcount.h (popcount32): Reduce size of constants, to allow
4474         better code generation, and add U to large constants to avoid
4475         warnings, in non-GCC case.
4476         Suggested by Bruno Haible.
4477
4478 2007-07-23  Ben Pfaff  <blp@gnu.org>
4479
4480         * lib/popcount.h: Use verify_true instead of if...abort.
4481         * modules/popcount: Depend on verify module.
4482         Suggested by Jim Meyering.
4483
4484 2007-07-23  Bruno Haible  <bruno@clisp.org>
4485
4486         * gnulib-tool (func_import): Create a .cvsignore file also when the
4487         directory is not yet in CVS but the toplevel directory is. When
4488         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
4489         Reported by Karl Berry.
4490
4491 2007-07-22  Ben Pfaff  <blp@gnu.org>
4492
4493         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
4494         case.
4495         Suggested by Eric Blake.
4496
4497 2007-07-22  Ben Pfaff  <blp@gnu.org>
4498
4499         New module: popcount.
4500         * MODULES.html.sh: Add popcount.
4501         * modules/popcount: New file.
4502         * modules/popcount-tests: New file.
4503         * tests/test-popcount.c: New file.
4504         * lib/popcount.h: New file.
4505         * m4/popcount.m4: New file.
4506
4507 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4508
4509         * build-aux/announce-gen: Update to GPLv3.
4510
4511         * build-aux/config.guess: Update from config.
4512
4513 2007-07-21  Bruno Haible  <bruno@clisp.org>
4514
4515         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
4516         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
4517
4518 2007-07-20  Jim Meyering  <jim@meyering.net>
4519
4520         * check-module: Diagnose a self-dependency.
4521
4522 2007-07-19  Bruno Haible  <bruno@clisp.org>
4523
4524         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
4525         empty.
4526         Reported by Eric Blake.
4527
4528 2007-07-18  Bruno Haible  <bruno@clisp.org>
4529
4530         * gnulib-tool: New options --po-base, --po-domain.
4531         (func_usage): Document them.
4532         (pobase, po_domain): New variables.
4533         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
4534         DEFAULT_TEXT_DOMAIN.
4535         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
4536         (func_import): Consider pobase and po_domain. Create a po/ directory.
4537         (func_create_testdir): Set pobase and po_domain to empty.
4538         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
4539         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
4540
4541 2007-07-18  Bruno Haible  <bruno@clisp.org>
4542
4543         * gnulib-tool (func_get_automake_snippet): Synthesize also an
4544         EXTRA_DIST augmentation for files in build-aux/.
4545
4546 2007-07-16  Bruno Haible  <bruno@clisp.org>
4547
4548         * modules/lseek (License): Use the synonymous term "LGPLv2+".
4549         * modules/getdelim (License): Likewise.
4550
4551 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4552
4553         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
4554         * modules/d-type (License): Likewise.
4555         * modules/extensions (License): Likewise.
4556         * modules/fnmatch (License): Likewise.
4557         * modules/fseeko (License): Likewise.
4558         * modules/getaddrinfo (License): Likewise.
4559         * modules/getline (License): Likewise.
4560         * modules/getlogin_r (License): Likewise.
4561         * modules/getpass (License): Likewise.
4562         * modules/gettimeofday (License): Likewise.
4563         * modules/glob (License): Likewise.
4564         * modules/inet_ntop (License): Likewise.
4565         * modules/malloc (License): Likewise.
4566         * modules/malloca (License): Likewise.
4567         * modules/memmem (License): Likewise.
4568         * modules/mempcpy (License): Likewise.
4569         * modules/memset (License): Likewise.
4570         * modules/minmax (License): Likewise.
4571         * modules/mktime (License): Likewise.
4572         * modules/netinet_in (License): Likewise.
4573         * modules/pathmax (License): Likewise.
4574         * modules/poll (License): Likewise.
4575         * modules/regex (License): Likewise.
4576         * modules/snprintf (License): Likewise.
4577         * modules/stdbool (License): Likewise.
4578         * modules/stdint (License): Likewise.
4579         * modules/stdio (License): Likewise.
4580         * modules/strcase (License): Likewise.
4581         * modules/strcasestr (License): Likewise.
4582         * modules/strdup (License): Likewise.
4583         * modules/string (License): Likewise.
4584         * modules/strndup (License): Likewise.
4585         * modules/strnlen (License): Likewise.
4586         * modules/strpbrk (License): Likewise.
4587         * modules/strptime (License): Likewise.
4588         * modules/strsep (License): Likewise.
4589         * modules/sys_select (License): Likewise.
4590         * modules/sys_socket (License): Likewise.
4591         * modules/sys_stat (License): Likewise.
4592         * modules/sys_time (License): Likewise.
4593         * modules/time (License): Likewise.
4594         * modules/time_r (License): Likewise.
4595         * modules/timegm (License): Likewise.
4596         * modules/unistd (License): Likewise.
4597         * modules/vsnprintf (License): Likewise.
4598         * modules/wctype (License): Likewise.
4599
4600 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4601
4602         * modules/argz (License): LGPLv2+.
4603
4604 2007-07-15  Karl Berry  <karl@gnu.org>
4605
4606         * doc/gnulib.texi: revise node structure per new fdl.texi.
4607
4608 2007-07-14  Bruno Haible  <bruno@clisp.org>
4609
4610         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
4611         the output file.
4612         * lib/uniname/uninames.h: Regenerated.
4613
4614 2007-07-14  Karl Berry  <karl@gnu.org>
4615
4616         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
4617         omitting sectioning and index commands.
4618
4619 2007-07-13  Bruno Haible  <bruno@clisp.org>
4620
4621         New gnulib-tool option --more-symlinks.
4622         * gnulib-tool (func_usage): Document --more-symlinks.
4623         (do_copyrights): New variable.
4624         Recognize option --more-symlinks.
4625         (func_import): Don't add a copyright notice transform to
4626         sed_transform_lib_file if do_copyrights is empty.
4627
4628 2007-07-13  Bruno Haible  <bruno@clisp.org>
4629
4630         * lib/vasnprintf.c (decimal_point_char): Define also if
4631         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
4632         && !NEED_PRINTF_DIRECTIVE_A.
4633         Reported by Clemens Koller <clemens.koller@anagramm.de> via
4634         Gary V. Vaughan <gary@gnu.org>.
4635
4636 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
4637
4638         * lib/inttypes_.h: Undo previous change, since it was fixed
4639         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
4640
4641 2007-07-13  Bruno Haible  <bruno@clisp.org>
4642
4643         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
4644         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
4645
4646 2007-07-13  Jim Meyering  <jim@meyering.net>
4647
4648         df: Don't fail for Tru64's "file-on-file mount".
4649         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
4650         so we fall through and use statfs instead.  Details here:
4651         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
4652         Reported by Albert Chin.
4653
4654 2007-07-13  Bruno Haible  <bruno@clisp.org>
4655
4656         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
4657         * modules/configmake (License): Likewise.
4658         * modules/gettext (License): Likewise.
4659         * modules/gettext-h (License): Likewise.
4660         * modules/include_next (License): Likewise.
4661         * modules/link-warning (License): Likewise.
4662         * modules/localcharset (License): Likewise.
4663         * modules/localename (License): Likewise.
4664         * modules/lock (License): Likewise.
4665         * modules/relocatable-lib-lgpl (License): Likewise.
4666         * modules/size_max (License): Likewise.
4667         * modules/vasnprintf (License): Likewise.
4668         * modules/wchar (License): Likewise.
4669         * modules/xsize (License): Likewise.
4670
4671 2007-07-13  Bruno Haible  <bruno@clisp.org>
4672
4673         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
4674         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
4675
4676 2007-07-12  Bruno Haible  <bruno@clisp.org>
4677
4678         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
4679         in the modules files.
4680
4681 2007-07-11  Karl Berry  <karl@gnu.org>
4682
4683         * MODULES.html.sh (func_module): use
4684          sed -e '\|^'"${includefile}"'$|d'
4685          instead of /.../d, to avoid errors on $includefile's containing /.
4686
4687 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
4688
4689         * gnulib-tool (func_import): Avoid duplication of --avoid
4690         statements
4691         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
4692         names to `_' in variable names.
4693
4694 2007-07-10  Eric Blake  <ebb9@byu.net>
4695
4696         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
4697         * NEWS: Document this change.
4698
4699 2007-07-08  Bruno Haible  <bruno@clisp.org>
4700
4701         Update to Unicode 5.0.
4702         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
4703         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
4704         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
4705         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
4706         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
4707         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
4708         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
4709         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
4710         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
4711         U+10A3F, U+1D242..U+1D244.
4712         (nonspacing_table_ind): Update.
4713         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
4714         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
4715
4716 2007-07-08  Bruno Haible  <bruno@clisp.org>
4717
4718         Update to Unicode 5.0.
4719         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
4720         code transform. Extend the name index field of unicode_name_to_code and
4721         unicode_code_to_name from 16 to 24 bits.
4722         * lib/uniname/uniname.c (unicode_character_name,
4723         unicode_name_character): Add the range 0x12xxx to the code transform.
4724         * lib/uniname/uninames.h: Regenerated.
4725         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
4726
4727 2007-07-07  Bruno Haible  <bruno@clisp.org>
4728
4729         * modules/wcwidth-tests: New file.
4730         * tests/test-wcwidth.c: New file.
4731
4732         Work around MacOS X wcwidth() bug.
4733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
4734         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
4735         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
4736         original wcwidth in non-UTF-8 locales.
4737         * modules/wcwidth (Depends-on): Add localcharset, streq,
4738         uniwidth/width.
4739         * doc/functions/wcwidth.texi: Update.
4740
4741 2007-07-07  Bruno Haible  <bruno@clisp.org>
4742
4743         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
4744         (wcwidth): New declaration.
4745         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
4746         macros.
4747         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
4748         here. Prepare for creating <wchar.h> unconditionally.
4749         * modules/wchar (Depends-on): Add link-warning.
4750         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
4751         REPLACE_WCWIDTH, and GL_LINK_WARNING.
4752         * lib/wcwidth.h: Remove file.
4753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
4754         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
4755         * modules/wcwidth (Files): Remove lib/wcwidth.h.
4756         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
4757         (Include): Replace wcwidth.h with <wchar.h>.
4758         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
4759         * lib/mbchar.h: Don't include wcwidth.h.
4760         * lib/mbswidth.c: Likewise.
4761         * NEWS: Mention the change.
4762
4763 2007-07-07  Bruno Haible  <bruno@clisp.org>
4764
4765         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
4766         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
4767         definition with an external declaration.
4768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
4769         defined as a function. Remove AC_C_INLINE requirement.
4770         * modules/wcwidth (Files): Add lib/wcwidth.c.
4771         (Makefile.am): Remove redundant statement.
4772
4773 2007-07-07  Bruno Haible  <bruno@clisp.org>
4774
4775         * MODULES.html.sh (Unicode string functions): Add the new modules.
4776
4777         * tests/uniwidth/test-u32-strwidth.c: New file.
4778         * modules/uniwidth/u32-strwidth-tests: New file.
4779
4780         * lib/uniwidth/u32-strwidth.c: New file.
4781         * modules/uniwidth/u32-strwidth: New file.
4782
4783         * tests/uniwidth/test-u16-strwidth.c: New file.
4784         * modules/uniwidth/u16-strwidth-tests: New file.
4785
4786         * lib/uniwidth/u16-strwidth.c: New file.
4787         * modules/uniwidth/u16-strwidth: New file.
4788
4789         * tests/uniwidth/test-u8-strwidth.c: New file.
4790         * modules/uniwidth/u8-strwidth-tests: New file.
4791
4792         * lib/uniwidth/u8-strwidth.c: New file.
4793         * modules/uniwidth/u8-strwidth: New file.
4794
4795         * tests/uniwidth/test-u32-width.c: New file.
4796         * modules/uniwidth/u32-width-tests: New file.
4797
4798         * lib/uniwidth/u32-width.c: New file.
4799         * modules/uniwidth/u32-width: New file.
4800
4801         * tests/uniwidth/test-u16-width.c: New file.
4802         * modules/uniwidth/u16-width-tests: New file.
4803
4804         * lib/uniwidth/u16-width.c: New file.
4805         * modules/uniwidth/u16-width: New file.
4806
4807         * tests/uniwidth/test-u8-width.c: New file.
4808         * modules/uniwidth/u8-width-tests: New file.
4809
4810         * lib/uniwidth/u8-width.c: New file.
4811         * modules/uniwidth/u8-width: New file.
4812
4813         * tests/uniwidth/test-uc_width.c: New file.
4814         * modules/uniwidth/width-tests: New file.
4815
4816         * lib/uniwidth/width.c: New file, from GNU libiconv.
4817         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
4818         * modules/uniwidth/width: New file.
4819
4820         * lib/uniwidth.h: New file, from GNU libiconv.
4821         * modules/uniwidth/base: New file.
4822
4823 2007-07-07  Bruno Haible  <bruno@clisp.org>
4824
4825         * lib/uniname.h: New file, from GNU gettext.
4826         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
4827         * lib/uniname/uninames.h: New file, from GNU gettext.
4828         * lib/uniname/uniname.c: New file, from GNU gettext.
4829         * tests/uniname/test-uninames.sh: New file.
4830         * tests/uniname/test-uninames.c: New file, from GNU gettext.
4831         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
4832         * modules/uniname/base: New file.
4833         * modules/uniname/uniname: New file.
4834         * modules/uniname/uniname-tests: New file.
4835         * MODULES.html.sh (Unicode string functions): Add the new modules.
4836
4837 2007-07-06  Bruno Haible  <bruno@clisp.org>
4838
4839         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
4840
4841 2007-07-06  Bruno Haible  <bruno@clisp.org>
4842
4843         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
4844         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
4845         includes <cygwin/sys_time.h> which includes <sys/select.h> which
4846         include <sys/time.h>.
4847         Reported by Eric Blake.
4848
4849 2007-07-06  Eric Blake  <ebb9@byu.net>
4850
4851         Fix testing canonicalize on cygwin.
4852         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
4853         Revert patch from 2007-06-19.
4854         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
4855         canonicalize module is also in use.
4856         * tests/test-canonicalize.c: New file.
4857         * tests/test-canonicalize.sh: Likewise.
4858         * modules/canonicalize-tests: Likewise.
4859
4860 2007-07-06  Jim Meyering  <jim@meyering.net>
4861
4862         * lib/getugroups.c (getugroups): Detect getgrent failure.
4863         Adjust comment to reflect reality: this function may return -1.
4864
4865 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
4866
4867         * build-aux/bootstrap (TP_URL,get_translations): Update to use
4868         the new TP address.
4869         (usage): Fix typo
4870         (gnulib_mk): New variable.
4871
4872 2007-07-05  Jim Meyering  <jim@meyering.net>
4873
4874         Don't let endgrent clobber errno, no matter how improbable.
4875         * lib/getugroups.c (getugroups): Save and restore errno around
4876         endgrent call.
4877
4878         Close the group DB even when failing with 2^31 or more members.
4879         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
4880
4881 2007-07-04  Jim Meyering  <jim@meyering.net>
4882
4883         * lib/getugroups.h: New file.
4884         * lib/getugroups.c: Include "getugroups.h".
4885         Remove uses of "register" keyword.
4886         Move local variable, "cp", down into scope where used.
4887         Give "username" parameter the "const" attribute.
4888         * modules/getugroups (Files): Add lib/getugroups.h
4889
4890 2007-07-04  Karl Berry  <karl@gnu.org>
4891
4892         * MODULES.html.sh (func_all_modules): Complete rename of
4893         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
4894
4895 2007-07-02  Bruno Haible  <bruno@clisp.org>
4896
4897         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
4898         mode, when inttypes.h comes from gnulib.
4899         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
4900
4901 2007-07-02  Simon Josefsson  <simon@josefsson.org>
4902
4903         * NEWS: Mention lgpl module name change.
4904
4905         * modules/lgpl-2.1: Renamed from lgpl.
4906
4907         * NEWS: Mention gpl module name change.
4908
4909         * modules/gpl-3.0: New file, based on gpl-2.0.
4910
4911         * modules/gpl-2.0: Renamed from gpl.
4912
4913         * modules/gpl: Fix filename, doc/gpl.texi is now found at
4914         doc/gpl-2.0.texi.
4915
4916 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4917
4918         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
4919         #define __STDC_LIMIT_MACROS temporarily while including
4920         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
4921         Problem reported by Joel E. Denny in
4922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
4923
4924 2007-07-01  Bruno Haible  <bruno@clisp.org>
4925
4926         * lib/unistdio.h: New file.
4927         * lib/unistdio/u-asnprintf.h: New file.
4928         * lib/unistdio/u-asprintf.h: New file.
4929         * lib/unistdio/u-printf-args.c: New file.
4930         * lib/unistdio/u-printf-args.h: New file.
4931         * lib/unistdio/u-printf-parse.h: New file.
4932         * lib/unistdio/u-snprintf.h: New file.
4933         * lib/unistdio/u-sprintf.h: New file.
4934         * lib/unistdio/u-vasprintf.h: New file.
4935         * lib/unistdio/u-vsnprintf.h: New file.
4936         * lib/unistdio/u-vsprintf.h: New file.
4937         * lib/unistdio/ulc-asnprintf.c: New file.
4938         * lib/unistdio/ulc-asprintf.c: New file.
4939         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
4940         * lib/unistdio/ulc-printf-parse.c: New file.
4941         * lib/unistdio/ulc-snprintf.c: New file.
4942         * lib/unistdio/ulc-sprintf.c: New file.
4943         * lib/unistdio/ulc-vasnprintf.c: New file.
4944         * lib/unistdio/ulc-vasprintf.c: New file.
4945         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
4946         * lib/unistdio/ulc-vsnprintf.c: New file.
4947         * lib/unistdio/ulc-vsprintf.c: New file.
4948         * lib/unistdio/u8-asnprintf.c: New file.
4949         * lib/unistdio/u8-asprintf.c: New file.
4950         * lib/unistdio/u8-printf-parse.c: New file.
4951         * lib/unistdio/u8-snprintf.c: New file.
4952         * lib/unistdio/u8-sprintf.c: New file.
4953         * lib/unistdio/u8-vasnprintf.c: New file.
4954         * lib/unistdio/u8-vasprintf.c: New file.
4955         * lib/unistdio/u8-vsnprintf.c: New file.
4956         * lib/unistdio/u8-vsprintf.c: New file.
4957         * lib/unistdio/u8-u8-asnprintf.c: New file.
4958         * lib/unistdio/u8-u8-asprintf.c: New file.
4959         * lib/unistdio/u8-u8-snprintf.c: New file.
4960         * lib/unistdio/u8-u8-sprintf.c: New file.
4961         * lib/unistdio/u8-u8-vasnprintf.c: New file.
4962         * lib/unistdio/u8-u8-vasprintf.c: New file.
4963         * lib/unistdio/u8-u8-vsnprintf.c: New file.
4964         * lib/unistdio/u8-u8-vsprintf.c: New file.
4965         * lib/unistdio/u16-asnprintf.c: New file.
4966         * lib/unistdio/u16-asprintf.c: New file.
4967         * lib/unistdio/u16-printf-parse.c: New file.
4968         * lib/unistdio/u16-snprintf.c: New file.
4969         * lib/unistdio/u16-sprintf.c: New file.
4970         * lib/unistdio/u16-vasnprintf.c: New file.
4971         * lib/unistdio/u16-vasprintf.c: New file.
4972         * lib/unistdio/u16-vsnprintf.c: New file.
4973         * lib/unistdio/u16-vsprintf.c: New file.
4974         * lib/unistdio/u16-u16-asnprintf.c: New file.
4975         * lib/unistdio/u16-u16-asprintf.c: New file.
4976         * lib/unistdio/u16-u16-snprintf.c: New file.
4977         * lib/unistdio/u16-u16-sprintf.c: New file.
4978         * lib/unistdio/u16-u16-vasnprintf.c: New file.
4979         * lib/unistdio/u16-u16-vasprintf.c: New file.
4980         * lib/unistdio/u16-u16-vsnprintf.c: New file.
4981         * lib/unistdio/u16-u16-vsprintf.c: New file.
4982         * lib/unistdio/u32-asnprintf.c: New file.
4983         * lib/unistdio/u32-asprintf.c: New file.
4984         * lib/unistdio/u32-printf-parse.c: New file.
4985         * lib/unistdio/u32-snprintf.c: New file.
4986         * lib/unistdio/u32-sprintf.c: New file.
4987         * lib/unistdio/u32-vasnprintf.c: New file.
4988         * lib/unistdio/u32-vasprintf.c: New file.
4989         * lib/unistdio/u32-vsnprintf.c: New file.
4990         * lib/unistdio/u32-vsprintf.c: New file.
4991         * lib/unistdio/u32-u32-asnprintf.c: New file.
4992         * lib/unistdio/u32-u32-asprintf.c: New file.
4993         * lib/unistdio/u32-u32-snprintf.c: New file.
4994         * lib/unistdio/u32-u32-sprintf.c: New file.
4995         * lib/unistdio/u32-u32-vasnprintf.c: New file.
4996         * lib/unistdio/u32-u32-vasprintf.c: New file.
4997         * lib/unistdio/u32-u32-vsnprintf.c: New file.
4998         * lib/unistdio/u32-u32-vsprintf.c: New file.
4999         * tests/unistdio/test-ulc-asnprintf1.c: New file.
5000         * tests/unistdio/test-ulc-asnprintf1.h: New file.
5001         * tests/unistdio/test-ulc-printf1.h: New file.
5002         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
5003         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
5004         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
5005         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
5006         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
5007         * tests/unistdio/test-ulc-vasprintf1.c: New file.
5008         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
5009         * tests/unistdio/test-ulc-vsprintf1.c: New file.
5010         * tests/unistdio/test-u8-asnprintf1.c: New file.
5011         * tests/unistdio/test-u8-asnprintf1.h: New file.
5012         * tests/unistdio/test-u8-printf1.h: New file.
5013         * tests/unistdio/test-u8-vasnprintf1.c: New file.
5014         * tests/unistdio/test-u8-vasnprintf2.c: New file.
5015         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
5016         * tests/unistdio/test-u8-vasnprintf3.c: New file.
5017         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
5018         * tests/unistdio/test-u8-vasprintf1.c: New file.
5019         * tests/unistdio/test-u8-vsnprintf1.c: New file.
5020         * tests/unistdio/test-u8-vsprintf1.c: New file.
5021         * tests/unistdio/test-u16-asnprintf1.c: New file.
5022         * tests/unistdio/test-u16-asnprintf1.h: New file.
5023         * tests/unistdio/test-u16-printf1.h: New file.
5024         * tests/unistdio/test-u16-vasnprintf1.c: New file.
5025         * tests/unistdio/test-u16-vasnprintf2.c: New file.
5026         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
5027         * tests/unistdio/test-u16-vasnprintf3.c: New file.
5028         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
5029         * tests/unistdio/test-u16-vasprintf1.c: New file.
5030         * tests/unistdio/test-u16-vsnprintf1.c: New file.
5031         * tests/unistdio/test-u16-vsprintf1.c: New file.
5032         * tests/unistdio/test-u32-asnprintf1.c: New file.
5033         * tests/unistdio/test-u32-asnprintf1.h: New file.
5034         * tests/unistdio/test-u32-printf1.h: New file.
5035         * tests/unistdio/test-u32-vasnprintf1.c: New file.
5036         * tests/unistdio/test-u32-vasnprintf2.c: New file.
5037         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
5038         * tests/unistdio/test-u32-vasnprintf3.c: New file.
5039         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
5040         * tests/unistdio/test-u32-vasprintf1.c: New file.
5041         * tests/unistdio/test-u32-vsnprintf1.c: New file.
5042         * tests/unistdio/test-u32-vsprintf1.c: New file.
5043         * modules/unistdio/base: New file.
5044         * modules/unistdio/u-printf-args: New file.
5045         * modules/unistdio/ulc-asnprintf: New file.
5046         * modules/unistdio/ulc-asprintf: New file.
5047         * modules/unistdio/ulc-fprintf: New file.
5048         * modules/unistdio/ulc-printf-parse: New file.
5049         * modules/unistdio/ulc-snprintf: New file.
5050         * modules/unistdio/ulc-sprintf: New file.
5051         * modules/unistdio/ulc-vasnprintf: New file.
5052         * modules/unistdio/ulc-vasprintf: New file.
5053         * modules/unistdio/ulc-vfprintf: New file.
5054         * modules/unistdio/ulc-vsnprintf: New file.
5055         * modules/unistdio/ulc-vsprintf: New file.
5056         * modules/unistdio/u8-asnprintf: New file.
5057         * modules/unistdio/u8-asprintf: New file.
5058         * modules/unistdio/u8-printf-parse: New file.
5059         * modules/unistdio/u8-snprintf: New file.
5060         * modules/unistdio/u8-sprintf: New file.
5061         * modules/unistdio/u8-vasnprintf: New file.
5062         * modules/unistdio/u8-vasprintf: New file.
5063         * modules/unistdio/u8-vsnprintf: New file.
5064         * modules/unistdio/u8-vsprintf: New file.
5065         * modules/unistdio/u8-u8-asnprintf: New file.
5066         * modules/unistdio/u8-u8-asprintf: New file.
5067         * modules/unistdio/u8-u8-snprintf: New file.
5068         * modules/unistdio/u8-u8-sprintf: New file.
5069         * modules/unistdio/u8-u8-vasnprintf: New file.
5070         * modules/unistdio/u8-u8-vasprintf: New file.
5071         * modules/unistdio/u8-u8-vsnprintf: New file.
5072         * modules/unistdio/u8-u8-vsprintf: New file.
5073         * modules/unistdio/u16-asnprintf: New file.
5074         * modules/unistdio/u16-asprintf: New file.
5075         * modules/unistdio/u16-printf-parse: New file.
5076         * modules/unistdio/u16-snprintf: New file.
5077         * modules/unistdio/u16-sprintf: New file.
5078         * modules/unistdio/u16-vasnprintf: New file.
5079         * modules/unistdio/u16-vasprintf: New file.
5080         * modules/unistdio/u16-vsnprintf: New file.
5081         * modules/unistdio/u16-vsprintf: New file.
5082         * modules/unistdio/u16-u16-asnprintf: New file.
5083         * modules/unistdio/u16-u16-asprintf: New file.
5084         * modules/unistdio/u16-u16-snprintf: New file.
5085         * modules/unistdio/u16-u16-sprintf: New file.
5086         * modules/unistdio/u16-u16-vasnprintf: New file.
5087         * modules/unistdio/u16-u16-vasprintf: New file.
5088         * modules/unistdio/u16-u16-vsnprintf: New file.
5089         * modules/unistdio/u16-u16-vsprintf: New file.
5090         * modules/unistdio/u32-asnprintf: New file.
5091         * modules/unistdio/u32-asprintf: New file.
5092         * modules/unistdio/u32-printf-parse: New file.
5093         * modules/unistdio/u32-snprintf: New file.
5094         * modules/unistdio/u32-sprintf: New file.
5095         * modules/unistdio/u32-vasnprintf: New file.
5096         * modules/unistdio/u32-vasprintf: New file.
5097         * modules/unistdio/u32-vsnprintf: New file.
5098         * modules/unistdio/u32-vsprintf: New file.
5099         * modules/unistdio/u32-u32-asnprintf: New file.
5100         * modules/unistdio/u32-u32-asprintf: New file.
5101         * modules/unistdio/u32-u32-snprintf: New file.
5102         * modules/unistdio/u32-u32-sprintf: New file.
5103         * modules/unistdio/u32-u32-vasnprintf: New file.
5104         * modules/unistdio/u32-u32-vasprintf: New file.
5105         * modules/unistdio/u32-u32-vsnprintf: New file.
5106         * modules/unistdio/u32-u32-vsprintf: New file.
5107         * modules/unistdio/ulc-asnprintf-tests: New file.
5108         * modules/unistdio/ulc-vasnprintf-tests: New file.
5109         * modules/unistdio/ulc-vasprintf-tests: New file.
5110         * modules/unistdio/ulc-vsnprintf-tests: New file.
5111         * modules/unistdio/ulc-vsprintf-tests: New file.
5112         * modules/unistdio/u8-asnprintf-tests: New file.
5113         * modules/unistdio/u8-vasnprintf-tests: New file.
5114         * modules/unistdio/u8-vasprintf-tests: New file.
5115         * modules/unistdio/u8-vsnprintf-tests: New file.
5116         * modules/unistdio/u8-vsprintf-tests: New file.
5117         * modules/unistdio/u16-asnprintf-tests: New file.
5118         * modules/unistdio/u16-vasnprintf-tests: New file.
5119         * modules/unistdio/u16-vasprintf-tests: New file.
5120         * modules/unistdio/u16-vsnprintf-tests: New file.
5121         * modules/unistdio/u16-vsprintf-tests: New file.
5122         * modules/unistdio/u32-asnprintf-tests: New file.
5123         * modules/unistdio/u32-vasnprintf-tests: New file.
5124         * modules/unistdio/u32-vasprintf-tests: New file.
5125         * modules/unistdio/u32-vsnprintf-tests: New file.
5126         * modules/unistdio/u32-vsprintf-tests: New file.
5127         * MODULES.html.sh (Unicode string functions): Add the new modules.
5128
5129 2007-07-01  Bruno Haible  <bruno@clisp.org>
5130
5131         * lib/sprintf.c (sprintf): Limit the available length estimation,
5132         to avoid address wraparound.
5133         * lib/vsprintf.c (vsprintf): Likewise.
5134         * modules/sprintf-posix (Dependencies): Add stdint.
5135         * modules/vsprintf-posix (Dependencies): Likewise.
5136
5137 2007-07-01  Bruno Haible  <bruno@clisp.org>
5138
5139         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
5140         Windows PATH as well. Conservative double-quoting. Comments.
5141
5142 2007-07-01  Bruno Haible  <bruno@clisp.org>
5143             Eric Blake  <ebb9@byu.net>
5144             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5145
5146         * gnulib-tool (self_abspathname): Fix algorithm to cope with
5147         empty components in $PATH, denoting '.'.
5148
5149 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5150
5151         * gnulib-tool: Fix indentation.
5152         (func_create_megatestdir): Likewise.
5153         Report by Bruno Haible.
5154
5155 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5156
5157         Sync from Automake.
5158         * build-aux/gnupload: Fix shell portability issues with for loops.
5159         Report by Karl Berry.
5160
5161 2007-06-29  Simon Josefsson  <simon@josefsson.org>
5162
5163         * build-aux/maint.mk (POURL): Use translationproject.org.
5164
5165 2007-06-27  Simon Josefsson  <simon@josefsson.org>
5166             Bruno Haible  <bruno@clisp.org>
5167
5168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
5169         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
5170         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
5171         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
5172         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
5173
5174 2007-06-27  Bruno Haible  <bruno@clisp.org>
5175
5176         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
5177         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
5178
5179 2007-06-26  Karl Berry  <karl@gnu.org>
5180
5181         * MODULES.html.sh: remove xreadlink-with-size.
5182
5183 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5184
5185         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
5186         method that I hope also handles the double-include problem noted
5187         by Bruno Haible in
5188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
5189
5190 2007-06-23  Bruno Haible  <bruno@clisp.org>
5191
5192         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5193         Don't let the 'mostlyclean' target fail if the last subdirectory could
5194         not be removed.
5195         Reported by Karl Berry.
5196
5197 2007-06-23  Bruno Haible  <bruno@clisp.org>
5198
5199         * gnulib-tool (echo): Add a speedier workaround for ksh.
5200         * tests/test-echo.sh: Likewise.
5201
5202 2007-06-23  Bruno Haible  <bruno@clisp.org>
5203
5204         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
5205         * tests/test-echo.sh: Likewise.
5206
5207 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5208
5209         * gnulib-tool (IFS): Initialize early, so we don't set it to
5210         empty later.
5211         (self_abspathname): Rewrite algorithm to set it, reindent.
5212         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
5213         (func_create_megatestdir): Merge some sed scripts.
5214
5215 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5216
5217         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
5218         exposed by Sun Studio 11 cc on Solaris 8.
5219
5220 2007-06-22  Bruno Haible  <bruno@clisp.org>
5221
5222         * gnulib-tool (echo): Ensure the echo primitive does not interpret
5223         backslashes.
5224         * tests/test-echo.sh: New file.
5225
5226 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5227
5228         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
5229         simplify `sed_replace_build_aux' scripts, they are portable but
5230         echoing them with `echo' is not.
5231         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
5232
5233 2007-06-21  Karl Berry  <karl@gnu.org>
5234
5235         * config/srclist.txt: guess we can't handle the licenses via
5236         srclist at the moment.
5237
5238 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
5239
5240         * MODULES.html.sh: Add include_next.
5241         * modules/include_next: New file.
5242
5243 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5244
5245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
5246         INCLUDE_NEXT.
5247         (gl_CHECK_NEXT_HEADERS): New macro.
5248         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
5249         the obsolescent gl_ABSOLUTE_HEADER.
5250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
5251         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
5252         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5253         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5254         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5255         * m4/math_h.m4 (gl_MATH_H): Likewise.
5256         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5257         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5258         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5259         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5260         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
5261         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
5262         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
5263         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5265         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5266         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
5267         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
5268         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5269         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5270         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5271         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
5272         * m4/inttypes.m4 (gl_INTTYPES_H): Define
5273         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
5274         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
5275         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
5276         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
5277         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
5278         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
5279         * lib/float_.h: Likewise.
5280         * lib/inttypes_.h: Likewise.
5281         * lib/math_.h: Likewise.
5282         * lib/search_.h: Likewise.
5283         * lib/signal_.h: Likewise.
5284         * lib/stdint_.h: Likewise.
5285         * lib/stdio_.h: Likewise.
5286         * lib/stdlib_.h: Likewise.
5287         * lib/string_.h: Likewise.
5288         * lib/sys_stat_.h: Likewise.
5289         * lib/sys_time_.h: Likewise.
5290         * lib/time_.h: Likewise.
5291         * lib/unistd_.h: Likewise.
5292         * lib/wchar_.h: Likewise.
5293         * lib/wctype_.h: Likewise.
5294         * lib/dirent_.h: Likewise.
5295         * lib/iconv_.h: Likewise.
5296         * lib/locale_.h: Likewise.
5297         * lib/netinet_in_.h: Likewise.
5298         * lib/sys_select_.h: Likewise.
5299         * lib/sys_socket_.h: Likewise.
5300         * lib/sysexits_.h: Likewise.
5301         * modules/fcntl (Depends-on): Depend on include_next, not
5302         absolute_header.
5303         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
5304         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
5305         * modules/fchdir: Likewise.
5306         * modules/float: Likewise.
5307         * modules/iconv_open: Likewise.
5308         * modules/inttypes: Likewise.
5309         * modules/locale: Likewise.
5310         * modules/math: Likewise.
5311         * modules/netinet_in: Likewise.
5312         * modules/search: Likewise.
5313         * modules/signal: Likewise.
5314         * modules/stdint: Likewise.
5315         * modules/stdio: Likewise.
5316         * modules/stdlib: Likewise.
5317         * modules/string: Likewise.
5318         * modules/sys_select: Likewise.
5319         * modules/sys_socket: Likewise.
5320         * modules/sys_stat: Likewise.
5321         * modules/sys_time: Likewise.
5322         * modules/sysexits: Likewise.
5323         * modules/time: Likewise.
5324         * modules/unistd: Likewise.
5325         * modules/wchar: Likewise.
5326         * modules/wctype: Likewise.
5327         * modules/sys_stat: Change maintainer to "all".
5328         * modules/unistd: Likewise.
5329
5330 2007-06-20  Karl Berry  <karl@gnu.org>
5331
5332         * config/srclist.txt: track www changes in license files.
5333
5334 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
5335
5336         * build-aux/bootstrap: Remove stray dot.
5337         Make sure build_aux settings are honored when linking
5338         gnulib_extra_files.
5339
5340 2007-06-19  Eric Blake  <ebb9@byu.net>
5341
5342         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
5343         Allow compilation on cygwin.
5344
5345 2007-06-19  Jim Meyering  <jim@meyering.net>
5346
5347         xreadlink-with-size: Remove module.  No longer used.
5348         Ex-callers now use xreadlink or mreadlink-with-size.
5349         * modules/xreadlink-with-size: Remove module.
5350         * lib/xreadlink-with-size.c: Remove file.
5351         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
5352         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
5353         just before the function definition *is* accurate.
5354
5355         Eliminate one way canonicalize_filename_mode could exit.
5356         * lib/canonicalize.c (canonicalize_filename_mode):
5357         Use mreadlink_with_size, not xreadlink_with_size.
5358
5359 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
5360
5361         Detect porting problems to FreeBSD/arm, which has time_t wider than
5362         long int.  Original problem reported for GNU diff by Xin Li in
5363         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
5364         * modules/getdate (Depends-on): Add intprops, verify.
5365         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
5366         is an integer type no wider than long int.
5367
5368 2007-06-18  Jim Meyering  <jim@meyering.net>
5369
5370         New module: mreadlink-with-size.
5371         * MODULES.html.sh: Add mreadlink-with-size.
5372         * modules/mreadlink-with-size: New module
5373         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
5374         not xreadlink-with-size.
5375         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
5376
5377 2007-06-16  Bruno Haible  <bruno@clisp.org>
5378
5379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
5380         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
5381         Reported by Gary V. Vaughan <gary@gnu.org>.
5382
5383 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5384
5385         Revamp lchown so that it lives in unistd.h where it belongs.
5386         * lib/lchown.h: Remove.
5387         * lib/dirchownmod.c: Don't include lib/lchown.h.
5388         * lib/fchownat.c: Likewise.
5389         * lib/openat.c: Likewise.
5390         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
5391         does not follow symlinks.
5392         (EOPNOTSUPP): Define if not defined.
5393         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
5394         is defined to 0.
5395         (lchown): New decl.
5396         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
5397         Do not check for lchown decl.
5398         Set REPLACE_LCHOWN.
5399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
5400         REPLACE_LCHOWN.
5401         * modules/chown: Make it clear it follows symlinks.
5402         * modules/lchown: Make it clear it doesn't follow symlinks.
5403         (Files): Remove lib/lchown.h
5404         (Depends-on): Add unistd.
5405         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
5406         (Include): Include <unistd.h>, not "lchown.h".
5407         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
5408         REPLACE_LCHOWN.
5409
5410 2007-06-15  Jim Meyering  <jim@meyering.net>
5411
5412         Change license (GPL to LGPL) of fsusage and dependents.
5413         * modules/fsusage (License): Change to LGPL.
5414         * modules/full-read (License): Likewise.
5415         * modules/full-write (License): Likewise.
5416         * modules/safe-read (License): Likewise.
5417         * modules/safe-write (License): Likewise.
5418
5419 2007-06-14  Ben Pfaff  <blp@gnu.org>
5420
5421         Missing part of allocsa -> malloca transition.
5422         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
5423         gl_MALLOCA.
5424
5425 2007-06-12  Bruno Haible  <bruno@clisp.org>
5426
5427         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
5428         to ia64, x86_64, i386.
5429         Reported by Eric Blake.
5430
5431 2007-06-12  Bruno Haible  <bruno@clisp.org>
5432
5433         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
5434         cross-compiling to x86_64.
5435
5436 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
5437
5438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
5439         glitch reported by Ralf Wildenhues in
5440         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
5441
5442         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
5443         Vin Shelton.
5444
5445 2007-06-11  Bruno Haible  <bruno@clisp.org>
5446
5447         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
5448         replacement string.
5449         Reported by Eric Blake.
5450
5451 2007-06-10  Bruno Haible  <bruno@clisp.org>
5452
5453         Prepare vasnprintf code for use with Unicode strings.
5454         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
5455         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
5456         TYPE_U32_STRING.
5457         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
5458         a_u32_string variants.
5459         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
5460         * lib/printf-args.c: Don't include config.h and the specification
5461         header if PRINTF_FETCHARGS is already defined.
5462         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
5463         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
5464         TYPE_U16_STRING, TYPE_U32_STRING.
5465         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
5466         u16_directive, u16_directives, u32_directive, u32_directives): New
5467         types.
5468         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
5469         New declarations.
5470         * lib/printf-parse.c: Don't include config.h and the specification
5471         header if PRINTF_PARSE is already defined. Eliminate the set of
5472         parameters for WIDE_CHAR_VERSION; the user of this file must provide
5473         them now. Include c-ctype.h.
5474         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
5475         directive and CHAR_T_ONLY_ASCII.
5476         * lib/vasnprintf.c: Don't include config.h and the specification header
5477         if VASNPRINTF is already defined.
5478         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
5479         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
5480         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
5481         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
5482         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
5483         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
5484         code accordingly.
5485         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
5486         pad_ourselves also in this case, with the 'c' and 's' directives, and
5487         with a different notion of "width".
5488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
5489
5490 2007-06-10  Bruno Haible  <bruno@clisp.org>
5491
5492         * modules/unistr/u32-mbsnlen: New file.
5493         * lib/unistr/u32-mbsnlen.c: New file.
5494
5495         * modules/unistr/u16-mbsnlen: New file.
5496         * lib/unistr/u16-mbsnlen.c: New file.
5497
5498         * modules/unistr/u8-mbsnlen: New file.
5499         * lib/unistr/u8-mbsnlen.c: New file.
5500
5501         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
5502         declarations.
5503
5504 2007-06-10  Bruno Haible  <bruno@clisp.org>
5505
5506         * lib/string_.h (mbsnlen): New declaration.
5507         * lib/mbsnlen.c: New file.
5508         * m4/mbsnlen.m4: New file.
5509         * modules/mbsnlen: New file.
5510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
5511         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
5512         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
5513
5514 2007-06-10  Bruno Haible  <bruno@clisp.org>
5515
5516         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
5517
5518 2007-06-10  Bruno Haible  <bruno@clisp.org>
5519
5520         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
5521         * lib/mbuiter.h: Likewise.
5522
5523 2007-06-10  Bruno Haible  <bruno@clisp.org>
5524
5525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
5526         declaration.
5527
5528 2007-06-10  Karl Berry  <karl@gnu.org>
5529
5530         * config/srclist.txt: remove gettext entries, Bruno prefers
5531         to update individually.
5532
5533 2007-06-10  Bruno Haible  <bruno@clisp.org>
5534
5535         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
5536         'maxlen'. Ensure only length + width bytes are allocated, not
5537         length + 1 + width.
5538
5539 2007-06-09  Bruno Haible  <bruno@clisp.org>
5540
5541         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
5542         (CHAR_T): Remove macro.
5543         (VASNPRINTF): Update.
5544
5545 2007-06-09  Bruno Haible  <bruno@clisp.org>
5546
5547         * MODULES.html.sh (Unicode string functions): Add the new modules.
5548
5549         * modules/uniconv/u32-conv-to-enc: New file.
5550         * lib/uniconv/u32-conv-to-enc.c: New file.
5551         * modules/uniconv/u32-conv-to-enc-tests: New file.
5552         * tests/uniconv/test-u32-conv-to-enc.c: New file.
5553
5554         * modules/uniconv/u16-conv-to-enc: New file.
5555         * lib/uniconv/u16-conv-to-enc.c: New file.
5556         * lib/uniconv/u-conv-to-enc.h: New file.
5557         * modules/uniconv/u16-conv-to-enc-tests: New file.
5558         * tests/uniconv/test-u16-conv-to-enc.c: New file.
5559
5560         * modules/uniconv/u8-conv-to-enc: New file.
5561         * lib/uniconv/u8-conv-to-enc.c: New file.
5562         * modules/uniconv/u8-conv-to-enc-tests: New file.
5563         * tests/uniconv/test-u8-conv-to-enc.c: New file.
5564
5565         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
5566         u32_conv_to_encoding): New declarations.
5567
5568 2007-06-09  Bruno Haible  <bruno@clisp.org>
5569
5570         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
5571
5572 2007-06-09  Bruno Haible  <bruno@clisp.org>
5573
5574         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
5575         * modules/malloca: Renamed from modules/allocsa, updated.
5576         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
5577         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
5578         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
5579         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
5580         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
5581         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
5582         * modules/xmalloca: Renamed from modules/xallocsa, updated.
5583         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
5584         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
5585         * modules/c-strcasestr (Depends-on): Update.
5586         * lib/c-strcasestr.c: Update.
5587         * modules/c-strstr (Depends-on): Update.
5588         * lib/c-strstr.c: Update.
5589         * modules/canonicalize-lgpl (Depends-on): Update.
5590         * lib/canonicalize-lgpl.c: Update.
5591         * modules/clean-temp (Depends-on): Update.
5592         * lib/clean-temp.c: Update.
5593         * modules/csharpcomp (Depends-on): Update.
5594         * lib/csharpcomp.c: Update.
5595         * modules/csharpexec (Depends-on): Update.
5596         * lib/csharpexec.c: Update.
5597         * modules/javacomp (Depends-on): Update.
5598         * lib/javacomp.c: Update.
5599         * modules/javaexec (Depends-on): Update.
5600         * lib/javaexec.c: Update.
5601         * modules/mbscasestr (Depends-on): Update.
5602         * lib/mbscasestr.c: Update.
5603         * modules/mbsstr (Depends-on): Update.
5604         * lib/mbsstr.c: Update.
5605         * modules/setenv (Depends-on): Update.
5606         * lib/setenv.c: Update.
5607         * modules/strcasestr (Depends-on): Update.
5608         * lib/strcasestr.c: Update.
5609         * modules/striconveha (Depends-on): Update.
5610         * lib/striconveha.c: Update.
5611         * modules/relocatable-prog-wrapper (Files): Update.
5612         * lib/relocwrapper.c: Update.
5613         * build-aux/install-reloc: Update.
5614         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
5615
5616 2007-06-08  Bruno Haible  <bruno@clisp.org>
5617
5618         Port to uClibc.
5619         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
5620         * lib/fpurge.c (fpurge): Likewise.
5621         * lib/freading.c (freading): Likewise.
5622         * lib/fseeko.c (rpl_fseeko): Likewise.
5623         * lib/fseterr.c (fseterr): Likewise.
5624         * lib/fwriting.c (fwriting): Likewise.
5625         * tests/test-fflush.c (main): Avoid a failure on uClibc.
5626
5627 2007-06-08  Bruno Haible  <bruno@clisp.org>
5628
5629         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
5630         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
5631         * modules/gettext (Files): Add m4/intlmacosx.m4.
5632
5633 2007-06-07  Bruno Haible  <bruno@clisp.org>
5634
5635         * modules/localename-tests: New file.
5636         * tests/test-localename.c: New file.
5637
5638         New module 'localename'.
5639         * lib/localename.h: New file.
5640         * lib/localename.c: New file, from GNU gettext.
5641         * m4/localename.m4: New file.
5642         * modules/localename: New file.
5643
5644 2007-06-07  Bruno Haible  <bruno@clisp.org>
5645
5646         Work around the lack of <wchar.h> on some builds of uClibc.
5647         * doc/headers/wchar.texi: Update.
5648         * lib/wchar_.h: Include <wchar.h> only if it exists.
5649         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
5650         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
5651         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
5652         doesn't exist.
5653         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
5654         * modules/mbfile (Depends-on): Add wchar.
5655         * modules/mbiter (Depends-on): Likewise.
5656         * modules/mbuiter (Depends-on): Likewise.
5657         Reported by Simon Josefsson.
5658
5659 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
5660
5661         Work around problem reported by Steven M. Schweda in
5662         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
5663         Tru64 5.1B with the Compaq compiler environment installed declares
5664         an 'isblank' function but does not define it in the C library.
5665         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
5666         * lib/regex_internal.h (isblank): Likewise.
5667         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
5668         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5669
5670 2007-06-05  Bruno Haible  <bruno@clisp.org>
5671
5672         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
5673         ia64.
5674         * modules/printf-safe: New file.
5675         * modules/fprintf-posix (Depends-on): Add printf-safe.
5676         * modules/printf-posix (Depends-on): Likewise.
5677         * modules/snprintf-posix (Depends-on): Likewise.
5678         * modules/sprintf-posix (Depends-on): Likewise.
5679         * modules/vasnprintf-posix (Depends-on): Likewise.
5680         * modules/vasprintf-posix (Depends-on): Likewise.
5681         * modules/vfprintf-posix (Depends-on): Likewise.
5682         * modules/vprintf-posix (Depends-on): Likewise.
5683         * modules/vsnprintf-posix (Depends-on): Likewise.
5684         * modules/vsprintf-posix (Depends-on): Likewise.
5685         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
5686         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
5687         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
5688         "no" on i386, x86_64, ia64.
5689         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
5690         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
5691         on i386, x86_64, ia64.
5692         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
5693         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
5694         on i386, x86_64, ia64.
5695         * tests/test-vasnprintf-posix.c: Include float.h.
5696         (LDBL80_WORDS): New macro.
5697         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
5698         on i386, x86_64, ia64.
5699         * tests/test-vasprintf-posix.c: Include float.h.
5700         (LDBL80_WORDS): New macro.
5701         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
5702         on i386, x86_64, ia64.
5703         * tests/test-snprintf-posix.c: Include float.h.
5704         * tests/test-sprintf-posix.c: Likewise.
5705         * tests/test-vsnprintf-posix.c: Likewise.
5706         * tests/test-vsprintf-posix.c: Likewise.
5707
5708 2007-06-05  Bruno Haible  <bruno@clisp.org>
5709
5710         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
5711         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
5712         non-IEEE numbers on i386, x86_64, ia64.
5713         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
5714         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
5715         * tests/test-isnanl.h: Include float.h.
5716         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
5717
5718 2007-06-05  Bruno Haible  <bruno@clisp.org>
5719
5720         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
5721         also the %a / %A. Handle the %a / %A code before this extra handling.
5722
5723 2007-06-05  Bruno Haible  <bruno@clisp.org>
5724
5725         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
5726         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
5727
5728 2007-06-05  Bruno Haible  <bruno@clisp.org>
5729
5730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
5731         typo in variable name.
5732
5733 2007-06-05  Eric Blake  <ebb9@byu.net>
5734
5735         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
5736         Reported by Simon Josefsson.
5737
5738 2007-06-04  Bruno Haible  <bruno@clisp.org>
5739
5740         Avoid test failures on some PowerPC platforms.
5741         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
5742         Define differently for PowerPC.
5743         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
5744         Reported by Gary V. Vaughan <gary@gnu.org>.
5745
5746 2007-06-02  Bruno Haible  <bruno@clisp.org>
5747
5748         Fix test-stdint failure on FreeBSD/ia64.
5749         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
5750         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
5751         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
5752         * doc/headers/stdint.texi: Update.
5753
5754 2007-06-01  Bruno Haible  <bruno@clisp.org>
5755
5756         * tests/test-binary-io.c (main): Pass a third argument to open().
5757         Reported by Gary V. Vaughan <gary@gnu.org>.
5758
5759 2007-06-01  Bruno Haible  <bruno@clisp.org>
5760
5761         * doc/functions/frexpl.texi: Update for mingw.
5762
5763 2007-06-01  Bruno Haible  <bruno@clisp.org>
5764
5765         * tests/test-lseek.c (main): Disable test of errno for invalid third
5766         argument.
5767         * doc/functions/lseek.texi: Update.
5768         Reported by Gary V. Vaughan <gary@gnu.org>.
5769
5770 2007-05-28  Bruno Haible  <bruno@clisp.org>
5771
5772         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
5773
5774 2007-05-31  Eric Blake  <ebb9@byu.net>
5775
5776         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
5777         cross compiling.
5778
5779 2007-05-30  Eric Blake  <ebb9@byu.net>
5780         and Bruno Haible  <bruno@clisp.org>
5781
5782         Work around mingw test failures exposed by m4-1.4.9b.
5783         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
5784         * tests/test-unistd.c: Disable uid_t and git_t tests for the
5785         moment.
5786
5787 2007-05-30  Bruno Haible  <bruno@clisp.org>
5788
5789         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
5790         assuming that they are closed. Needed on HP-UX 11.
5791
5792 2007-05-29  Bruno Haible  <bruno@clisp.org>
5793
5794         Fix a problem with #include_next.
5795         * lib/dirent_.h: Split the double-inclusion guard.
5796         * lib/fcntl_.h: Likewise.
5797         * lib/float_.h: Likewise.
5798         * lib/iconv_.h: Likewise.
5799         * lib/inttypes_.h: Likewise.
5800         * lib/locale_.h: Likewise.
5801         * lib/math_.h: Likewise.
5802         * lib/netinet_in_.h: Likewise.
5803         * lib/search_.h: Likewise.
5804         * lib/signal_.h: Likewise.
5805         * lib/stdint_.h: Likewise.
5806         * lib/stdio_.h: Likewise.
5807         * lib/stdlib_.h: Likewise.
5808         * lib/string_.h: Likewise.
5809         * lib/sys_select_.h: Likewise.
5810         * lib/sys_socket_.h: Likewise.
5811         * lib/sys_stat_.h: Likewise.
5812         * lib/sys_time_.h: Likewise.
5813         * lib/sysexits_.h: Likewise.
5814         * lib/time_.h: Likewise.
5815         * lib/unistd_.h: Likewise.
5816         * lib/wchar_.h: Likewise.
5817         * lib/wctype_.h: Likewise.
5818
5819 2007-05-29  Bruno Haible  <bruno@clisp.org>
5820
5821         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
5822         for the moment.
5823
5824 2007-05-29  Bruno Haible  <bruno@clisp.org>
5825
5826         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
5827         invocation.
5828         Reported by Eric Blake.
5829
5830 2007-05-29  Bruno Haible  <bruno@clisp.org>
5831
5832         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
5833         compiling case.
5834
5835 2007-05-29  Eric Blake  <ebb9@byu.net>
5836             Bruno Haible  <bruno@clisp.org>
5837
5838         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
5839         cross compiles.
5840
5841 2007-05-28  Eric Blake  <ebb9@byu.net>
5842
5843         * modules/closein-tests (test_closein_LDADD): Support test on
5844         cygwin with libtool.
5845
5846 2007-05-28  Bruno Haible  <bruno@clisp.org>
5847
5848         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
5849         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5850         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5851         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5852         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5853         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5854         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5855         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5856         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5857
5858 2007-05-28  Eric Blake  <ebb9@byu.net>
5859
5860         Unconditionally include <config.h> in unit tests.
5861         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
5862         * tests/test-allocsa.c, tests/test-arcfour.c,
5863         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
5864         tests/test-array_list.c, tests/test-array_oset.c,
5865         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
5866         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
5867         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
5868         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
5869         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
5870         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
5871         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
5872         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
5873         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
5874         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
5875         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
5876         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
5877         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
5878         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
5879         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
5880         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
5881         test-md5.c, test-memmem.c, test-printf-posix.c,
5882         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
5883         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
5884         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
5885         test-strcasestr.c, test-striconv.c, test-striconveh.c,
5886         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
5887         test-vasnprintf-posix2.c, test-vasnprintf.c,
5888         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
5889         test-vfprintf-posix.c, test-vprintf-posix.c,
5890         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
5891         test-xvasprintf.c: Likewise.
5892
5893 2007-05-28  Bruno Haible  <bruno@clisp.org>
5894
5895         * gnulib-tool (func_import): Remember the --with-tests command-line
5896         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
5897         Reported by Eric Blake.
5898
5899 2007-05-28  Bruno Haible  <bruno@clisp.org>
5900
5901         * modules/ftell-tests: New file.
5902         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
5903         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
5904
5905         * lib/ftell.c: New file.
5906         * modules/ftell: New file.
5907         * m4/ftell.m4: New file.
5908         * doc/functions/ftell.texi: Update.
5909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
5910         REPLACE_FTELL.
5911         * lib/stdio_.h (rpl_ftell): New declaration.
5912         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
5913         REPLACE_FTELL.
5914
5915 2007-05-28  Eric Blake  <ebb9@byu.net>
5916
5917         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
5918
5919 2007-05-28  Bruno Haible  <bruno@clisp.org>
5920
5921         * modules/fseek-tests: New file.
5922         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
5923         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
5924
5925         * lib/fseek.c: New file.
5926         * modules/fseek: New file.
5927         * m4/fseek.m4: New file.
5928         * doc/functions/fseek.texi: Update.
5929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
5930         REPLACE_FSEEK.
5931         * lib/stdio_.h (rpl_fseek): New declaration.
5932         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
5933         REPLACE_FSEEK.
5934
5935 2007-05-28  Bruno Haible  <bruno@clisp.org>
5936
5937         * lib/stdio_.h (fflush): More comments.
5938
5939 2007-05-28  Bruno Haible  <bruno@clisp.org>
5940
5941         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
5942         runtime test.
5943
5944 2007-05-28  Eric Blake  <ebb9@byu.net>
5945
5946         Improve lseek module.
5947         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
5948         * lib/unistd_.h (lseek): Scale back link warning message.
5949         * tests/test-lseek.c: Beef up test.
5950         * tests/test-lseek.sh: Exercise more facets of lseek.
5951         Reported by Bruno Haible.
5952
5953 2007-05-28  Bruno Haible  <bruno@clisp.org>
5954
5955         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
5956         to define.
5957
5958 2007-05-27  Bruno Haible  <bruno@clisp.org>
5959
5960         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
5961
5962 2007-05-27  Bruno Haible  <bruno@clisp.org>
5963
5964         * modules/openmp: New file.
5965         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
5966         Noah Misch.
5967
5968 2007-05-26  Bruno Haible  <bruno@clisp.org>
5969
5970         * modules/chdir-long (Depends-on): Add fchdir.
5971         * modules/chdir-safer (Depends-on): Likewise.
5972         * modules/fts (Depends-on): Likewise.
5973         * modules/fts-lgpl (Depends-on): Likewise.
5974         * modules/openat (Depends-on): Likewise.
5975         * modules/savewd (Depends-on): Likewise.
5976
5977 2007-05-24  Eric Blake  <ebb9@byu.net>
5978
5979         Fix lseek on mingw.
5980         * modules/lseek: New module.
5981         * m4/lseek.m4: New file.
5982         * lib/lseek.c: New file.
5983         * modules/lseek-tests: New file.
5984         * tests/test-lseek.c: New file.
5985         * tests/test-lseek.sh: New file.
5986         * MODULES.html.sh: Document lseek module.
5987         * modules/fflush (Depends-on): Add lseek, fseeko.
5988         * modules/fseeko (Depends-on): Likewise.
5989         * modules/ftello (Depends-on): Likewise.
5990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
5991         broken.
5992         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
5993         broken.
5994         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
5995         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
5996         * lib/ftello.c (rpl_ftello): Likewise.
5997         * tests/test-fseeko.c (main): Test this.
5998         * tests/test-fseeko.sh: Likewise.
5999         * tests/test-ftello.c (main): Likewise.
6000         * tests/test-ftello.sh: Likewise.
6001         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
6002         implies replacing fseek.
6003         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
6004         HAVE_FTELLO.
6005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
6006         * modules/unistd (Makefile.am): Likewise.
6007         * lib/unistd_.h (lseek): Declare a replacement.
6008         * doc/functions/lseek.texi (lseek): Document this fix.
6009         * doc/functions/fseek.texi (fseek): Likewise.
6010         * doc/functions/ftell.texi (ftell): Likewise.
6011
6012 2007-05-24  Bruno Haible  <bruno@clisp.org>
6013
6014         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
6015         in the printed representation of a NaN.
6016         * tests/test-vasprintf-posix.c (test_function): Likewise.
6017         * tests/test-snprintf-posix.h (test_function): Likewise.
6018         * tests/test-sprintf-posix.h (test_function): Likewise.
6019         Reported by Eric Blake.
6020
6021 2007-05-23  Eric Blake  <ebb9@byu.net>
6022
6023         Fix fseeko/ftello on cygwin 1.5.24.
6024         * doc/functions/fseeko.texi (fseeko): Document the fix.
6025         * doc/functions/ftello.texi (ftello): Document the fix.
6026         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
6027         * doc/functions/stdout.text (stdout): New file.
6028         * doc/functions/stderr.text (stderr): New file.
6029         * doc/gnulib.texi (Function Substitutes): Use new files.
6030         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
6031         prior to 1.7.0.
6032         * tests/test-ftello.c (main): Likewise for ftello.
6033         * tests/test-fseeko.sh: New file.
6034         * tests/test-ftello.sh: New file.
6035         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
6036         with seekable stdin.
6037         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
6038         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
6039         (gl_REPLACE_FSEEKO): New macro.
6040         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
6041         * modules/fseeko (Files): Distribute fseeko.c.
6042         * modules/ftello (Files): Distribute ftello.c.
6043         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
6044         mode.
6045         * lib/ftello.c (rpl_ftello): New file.
6046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
6047         fseeko, ftello.
6048         (gl_STDIN_LARGE_OFFSET): New macro.
6049         * modules/stdio (Makefile.am): Perform the replacement.
6050         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
6051
6052 2007-05-23  Bruno Haible  <bruno@clisp.org>
6053
6054         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
6055         GNULIB_POSIXCHECK is defined.
6056
6057 2007-05-21  Bruno Haible  <bruno@clisp.org>
6058
6059         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
6060         Check also the output for NaN arguments. When cross-compiling, guess
6061         no on IRIX.
6062         * lib/vasnprintf.c: Update comments.
6063         * tests/test-vasnprintf-posix.c (strisnan): New function.
6064         (test_function): Use it.
6065         * tests/test-vasprintf-posix.c (strisnan): New function.
6066         (test_function): Use it.
6067         * tests/test-snprintf-posix.h (strisnan): New function.
6068         (test_function): Use it.
6069         * tests/test-sprintf-posix.h (strisnan): New function.
6070         (test_function): Use it.
6071         Reported by Eric Blake.
6072
6073 2007-05-20  Bruno Haible  <bruno@clisp.org>
6074
6075         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
6076         numbers that fails on BeOS.
6077         * doc/functions/frexpl.texi: Update.
6078
6079 2007-05-20  Jim Meyering  <jim@meyering.net>
6080
6081         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
6082         forced upon us by glibc-2.6.
6083
6084 2007-05-20  Bruno Haible  <bruno@clisp.org>
6085
6086         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
6087         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
6088         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
6089         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
6090         NEED_PRINTF_INFINITE.
6091         (is_infinitel): New function.
6092         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
6093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
6094         gl_PREREQ_VASNPRINTF_INFINITE.
6095         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
6096         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6097         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
6098         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
6099         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
6100         gl_PREREQ_VASNPRINTF_INFINITE.
6101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6108         * doc/functions/fprintf.texi: Update.
6109         * doc/functions/printf.texi: Update.
6110         * doc/functions/snprintf.texi: Update.
6111         * doc/functions/sprintf.texi: Update.
6112         * doc/functions/vfprintf.texi: Update.
6113         * doc/functions/vprintf.texi: Update.
6114         * doc/functions/vsnprintf.texi: Update.
6115         * doc/functions/vsprintf.texi: Update.
6116
6117 2007-05-20  Bruno Haible  <bruno@clisp.org>
6118
6119         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
6120         was not found in libc.
6121         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6122
6123 2007-05-20  Bruno Haible  <bruno@clisp.org>
6124
6125         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
6126         printed as "-nan" instead of "nan".
6127         * tests/test-vasprintf-posix.c (test_function): Likewise.
6128         * tests/test-snprintf-posix.h (test_function): Likewise.
6129         * tests/test-sprintf-posix.h (test_function): Likewise.
6130         Needed for HP-UX 11.
6131
6132 2007-05-20  Jim Meyering  <jim@meyering.net>
6133
6134         Fix buggy test for the fchownat-deref bug.
6135         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
6136         symlink required for the run-test.  Without it, this test would
6137         always declare that fchownat doesn't work, and client code would
6138         unnecessarily use the replacement function with fixed libc.
6139         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
6140         Reported by Greg Schafer.
6141
6142 2007-05-19  Bruno Haible  <bruno@clisp.org>
6143
6144         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
6145         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
6146         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
6147         Needed for IRIX 6.5 and Solaris 2.5.1.
6148
6149 2007-05-19  Bruno Haible  <bruno@clisp.org>
6150
6151         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
6152         (test_function): Skip tests involving -0.0 on platforms where
6153         -0.0 = 0.0.
6154         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
6155         (test_function): Skip tests involving -0.0 on platforms where
6156         -0.0 = 0.0.
6157         * tests/test-snprintf-posix.h (have_minus_zero): New function.
6158         (test_function): Skip tests involving -0.0 on platforms where
6159         -0.0 = 0.0.
6160         * tests/test-sprintf-posix.h (have_minus_zero): New function.
6161         (test_function): Skip tests involving -0.0 on platforms where
6162         -0.0 = 0.0.
6163         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
6164         tests.
6165         * tests/test-printf-posix.h (test_function): Likewise.
6166         * tests/test-printf-posix.output: Remove all -0.0 related results.
6167         Needed for IRIX 6.5.
6168
6169 2007-05-19  Bruno Haible  <bruno@clisp.org>
6170
6171         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
6172         printed as "nan0x7fffffff" instead of "nan".
6173         * tests/test-vasprintf-posix.c (test_function): Likewise.
6174         * tests/test-snprintf-posix.h (test_function): Likewise.
6175         * tests/test-sprintf-posix.h (test_function): Likewise.
6176         * tests/test-fprintf-posix.h (NaN): Remove macro.
6177         (test_function): Remove all NaN related tests.
6178         * tests/test-printf-posix.h (NaN): Remove macro.
6179         (test_function): Remove all NaN related tests.
6180         * tests/test-printf-posix.output: Remove all NaN related results.
6181         Needed for IRIX 6.5.
6182
6183 2007-05-19  Bruno Haible  <bruno@clisp.org>
6184
6185         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
6186         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6187
6188 2007-05-19  Bruno Haible  <bruno@clisp.org>
6189
6190         * lib/float_.h: New file.
6191         * m4/float_h.m4: New file.
6192         * modules/float: New file.
6193         * modules/isnanl (Dependencies): Add float.
6194         * modules/isnanl-nolibm (Dependencies): Likewise.
6195         * modules/mathl (Dependencies): Likewise.
6196         * modules/printf-frexpl (Dependencies): Likewise.
6197         * modules/signbit (Dependencies): Likewise.
6198         * modules/vasnprintf (Dependencies): Likewise.
6199         * doc/headers/float.texi: Update.
6200
6201 2007-05-19  Jim Meyering  <jim@meyering.net>
6202
6203         * lib/utimens.c (gl_futimens): Rename from futimens,
6204         now that glibc-2.6 declares futimens.
6205         * lib/utimens.h: Likewise.
6206
6207 2007-05-19  Bruno Haible  <bruno@clisp.org>
6208
6209         Avoid test failures on mingw.
6210         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
6211         * tests/test-printf-posix.sh: Likewise.
6212         * tests/test-vfprintf-posix.sh: Likewise.
6213         * tests/test-vprintf-posix.sh: Likewise.
6214
6215 2007-05-19  Bruno Haible  <bruno@clisp.org>
6216
6217         Fix *printf result for NaN, Inf, -0.0 on mingw.
6218         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
6219         * lib/vasnprintf.c: Include math.h and isnan.h.
6220         (is_infinite_or_zero): New function.
6221         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
6222         values in the %f, %F, %e, %E, %g, %G directives.
6223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
6224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6225         gl_PRINTF_INFINITE and test its result. Invoke
6226         gl_PREREQ_VASNPRINTF_INFINITE.
6227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6234         * doc/functions/fprintf.texi: Update.
6235         * doc/functions/printf.texi: Update.
6236         * doc/functions/snprintf.texi: Update.
6237         * doc/functions/sprintf.texi: Update.
6238         * doc/functions/vfprintf.texi: Update.
6239         * doc/functions/vprintf.texi: Update.
6240         * doc/functions/vsnprintf.texi: Update.
6241         * doc/functions/vsprintf.texi: Update.
6242
6243 2007-05-19  Bruno Haible  <bruno@clisp.org>
6244
6245         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
6246         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
6247         Instead of multiplying with 10^k, set extra_zeroes to k.
6248         (scale10_round_long_double): Remove function.
6249
6250 2007-05-18  Bruno Haible  <bruno@clisp.org>
6251
6252         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
6253         introduced on 2007-05-06.
6254
6255 2007-05-18  Bruno Haible  <bruno@clisp.org>
6256
6257         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
6258         %g directives.
6259         * tests/test-vasprintf-posix.c (test_function): Likewise.
6260         * tests/test-snprintf-posix.h (test_function): Likewise.
6261         * tests/test-sprintf-posix.h (test_function): Likewise.
6262
6263 2007-05-18  Bruno Haible  <bruno@clisp.org>
6264
6265         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
6266         (strmatch): New function.
6267         (test_function): Test the %f directive on numbers of various exponents.
6268         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
6269         (strmatch): New function.
6270         (test_function): Test the %f directive on numbers of various exponents.
6271         * tests/test-snprintf-posix.h (strmatch): New function.
6272         (test_function): Test the %f directive on numbers of various exponents.
6273         * tests/test-sprintf-posix.h (strmatch): New function.
6274         (test_function): Test the %f directive on numbers of various exponents.
6275         * tests/test-snprintf-posix.c (SIZEOF): New macro.
6276         * tests/test-sprintf-posix.c (SIZEOF): New macro.
6277         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
6278         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
6279
6280 2007-05-18  Bruno Haible  <bruno@clisp.org>
6281
6282         Add support for 'long double' number output.
6283         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
6284         * lib/vasnprintf.c: Include math.h and float+.h.
6285         (mp_limb_t): New type.
6286         (GMP_LIMB_BITS): New macro.
6287         (mp_twolimb_t): New type.
6288         (GMP_TWOLIMB_BITS): New macro.
6289         (mpn_t): New type.
6290         (multiply, divide, convert_to_decimal, decode_long_double,
6291         scale10_round_long_double, scale10_round_decimal_long_double,
6292         floorlog10l): New functions.
6293         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
6294         for the %f, %F, %e, %E, %g, %G directives.
6295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
6296         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6297         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
6298         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
6299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6306         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
6307         * modules/snprintf-posix (Depends-on): Likewise.
6308         * modules/sprintf-posix (Depends-on): Likewise.
6309         * modules/vasnprintf-posix (Depends-on): Likewise.
6310         * modules/vasprintf-posix (Depends-on): Likewise.
6311         * modules/vfprintf-posix (Depends-on): Likewise.
6312         * modules/vsnprintf-posix (Depends-on): Likewise.
6313         * modules/vsprintf-posix (Depends-on): Likewise.
6314         * modules/vasnprintf (Files): Add lib/float+.h.
6315         * doc/functions/fprintf.texi: Update.
6316         * doc/functions/printf.texi: Update.
6317         * doc/functions/snprintf.texi: Update.
6318         * doc/functions/sprintf.texi: Update.
6319         * doc/functions/vfprintf.texi: Update.
6320         * doc/functions/vprintf.texi: Update.
6321         * doc/functions/vsnprintf.texi: Update.
6322         * doc/functions/vsprintf.texi: Update.
6323
6324 2007-05-18  Bruno Haible  <bruno@clisp.org>
6325
6326         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
6327
6328 2007-05-18  Bruno Haible  <bruno@clisp.org>
6329
6330         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
6331         for printing 64-bit integers. Needed for mingw.
6332
6333 2007-05-18  Bruno Haible  <bruno@clisp.org>
6334
6335         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
6336         gl_FUNC_FREXPL_WORKS.
6337         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
6338
6339 2007-05-18  Bruno Haible  <bruno@clisp.org>
6340
6341         * modules/frexpl-nolibm-tests: New file.
6342
6343         * modules/frexpl-nolibm: New file.
6344         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
6345
6346 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6347
6348         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
6349         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
6350         GCC 4.2, which otherwise issues a lot of warnings.
6351         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
6352         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
6353         Likewise.
6354         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
6355         * modules/iconv_open (iconv.h): Likewise.
6356         * modules/locale (locale.h): Likewise.
6357         * modules/netinet_in (netinet/in.h): Likewise.
6358         * modules/sys_select (sys_select.h): Likewise.
6359         * modules/sys_socket (sys/socket.h): Likewise.
6360         * modules/sys_stat (sys/stat.h): Likewise.
6361         * modules/sysexits (sysexits.h): Likewise.
6362         * modules/unistd (unistd.h): Likewise.
6363
6364 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6365
6366         * modules/closein-tests (Makefile.am): Distribute
6367         `test-closein.sh'.
6368
6369 2007-05-17  Bruno Haible  <bruno@clisp.org>
6370
6371         * tests/test-printf-posix.output: Renamed from
6372         tests/test-fprintf-posix.out.
6373         * modules/fprintf-posix-tests: Update.
6374         * modules/printf-posix-tests: Update.
6375         * modules/vfprintf-posix-tests: Update.
6376         * modules/vprintf-posix-tests: Update.
6377         * tests/test-fprintf-posix.sh: Update.
6378         * tests/test-printf-posix.sh: Update.
6379         * tests/test-vfprintf-posix.sh: Update.
6380         * tests/test-vprintf-posix.sh: Update.
6381         Reported by Ralf Wildenhues.
6382
6383 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6384
6385         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
6386         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
6387         GCC 4.2, which otherwise issues a lot of warnings.
6388         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
6389         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
6390         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
6391         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
6392         it should no longer be needed.
6393         * lib/string_.h: Likewise.
6394         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
6395         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
6396         * modules/inttypes (inttypes.h): Likewise.
6397         * modules/math (math.h): Likewise.
6398         * modules/search (search.h): Likewise.
6399         * modules/signal (signal.h): Likewise.
6400         * modules/stdint (stdint.h): Likewise.
6401         * modules/stdio (stdio.h): Likewise.
6402         * modules/stdlib (stdlib.h): Likewise.
6403         * modules/string (string.h): Likewise.
6404         * modules/sys_time (sys/time.h): Likewise.
6405         * modules/time (time.h): Likewise.
6406         * modules/wchar (wchar.h): Likewise.
6407         * modules/wctype (wtype.h): Likewise.
6408
6409 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6410
6411         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
6412
6413 2007-05-13  Bruno Haible  <bruno@clisp.org>
6414
6415         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
6416         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6417         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
6418         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6419         (gl_PREREQ_STRTOK_R): Don't require it here.
6420
6421 2007-05-13  Bruno Haible  <bruno@clisp.org>
6422
6423         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
6424         when used in C++ mode.
6425
6426 2007-05-12  Bruno Haible  <bruno@clisp.org>
6427
6428         * lib/linebuffer.h: Tweak doc.
6429         * lib/linebuffer.c: Likewise.
6430
6431 2007-05-12  James Youngman  <jay@gnu.org>
6432
6433         * lib/linebuffer.c (readlinebuffer_delim): New function,
6434         like readlinebuffer, but use a caller-specified delimiter.
6435         (readlinebuffer): Just call readlinebuffer_delim with '\n'
6436         as the delimiter.
6437         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
6438
6439 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6440
6441         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
6442         * modules/openat (Files): Remove openat-die.c.
6443         (Depends-on): Add openat-die.
6444         * modules/openat-die: New module.
6445
6446 2007-05-06  Bruno Haible  <bruno@clisp.org>
6447
6448         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
6449         Update with info about Cygwin.
6450         * doc/functions/fprintf.texi: Update.
6451         * doc/functions/printf.texi: Update.
6452         * doc/functions/snprintf.texi: Update.
6453         * doc/functions/sprintf.texi: Update.
6454         * doc/functions/vfprintf.texi: Update.
6455         * doc/functions/vprintf.texi: Update.
6456         * doc/functions/vsnprintf.texi: Update.
6457         * doc/functions/vsprintf.texi: Update.
6458         Reported by Eric Blake.
6459
6460 2007-05-06  Bruno Haible  <bruno@clisp.org>
6461
6462         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
6463         padding ourselves for the floating-point directives.
6464         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
6465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
6466         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6467         gl_PRINTF_FLAG_ZERO and test its result. Invoke
6468         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
6469         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6470         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
6471         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6475         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6476         * tests/test-snprintf-posix.h (test_function): Also check the width
6477         and some flags in the %f directive.
6478         * tests/test-sprintf-posix.h (test_function): Likewise.
6479         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6480         * tests/test-vasprintf-posix.c (test_function): Likewise.
6481         * doc/functions/fprintf.texi: Update.
6482         * doc/functions/printf.texi: Update.
6483         * doc/functions/snprintf.texi: Update.
6484         * doc/functions/sprintf.texi: Update.
6485         * doc/functions/vfprintf.texi: Update.
6486         * doc/functions/vprintf.texi: Update.
6487         * doc/functions/vsnprintf.texi: Update.
6488         * doc/functions/vsprintf.texi: Update.
6489
6490 2007-05-06  Bruno Haible  <bruno@clisp.org>
6491
6492         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
6493         pass the ' flag character to sprintf or snprintf.
6494         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
6495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
6496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6497         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
6498         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
6499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6500         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
6501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6506         * tests/test-snprintf-posix.h (test_function): Also check the grouping
6507         flag.
6508         * tests/test-sprintf-posix.h (test_function): Likewise.
6509         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6510         * tests/test-vasprintf-posix.c (test_function): Likewise.
6511         * doc/functions/fprintf.texi: Update.
6512         * doc/functions/printf.texi: Update.
6513         * doc/functions/snprintf.texi: Update.
6514         * doc/functions/sprintf.texi: Update.
6515         * doc/functions/vfprintf.texi: Update.
6516         * doc/functions/vprintf.texi: Update.
6517         * doc/functions/vsnprintf.texi: Update.
6518         * doc/functions/vsprintf.texi: Update.
6519
6520 2007-05-01  Bruno Haible  <bruno@clisp.org>
6521
6522         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
6523
6524 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
6527         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
6528
6529 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6530
6531         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
6532         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
6533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
6534
6535 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
6536
6537         * lib/argp-help.c (struct hol_entry): New member `ord'.
6538         (HOL_ENTRY_PTRCMP): Use ord for comparison
6539         (hol_sort): Initialize ord.
6540
6541 2007-05-01  Bruno Haible  <bruno@clisp.org>
6542
6543         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
6544         Reported by Eric Blake.
6545         * doc/gnulib.texi (Function Substitutes): Update.
6546
6547 2007-05-01  Bruno Haible  <bruno@clisp.org>
6548
6549         * doc/functions.texi: Remove file, now redundant through
6550         doc/functions/*.texi.
6551
6552 2007-05-01  Bruno Haible  <bruno@clisp.org>
6553
6554         * modules/argp (Depends-on): Add sleep.
6555
6556 2007-05-01  Bruno Haible  <bruno@clisp.org>
6557
6558         * modules/sleep-tests: New file.
6559         * tests/test-sleep.c: New file.
6560
6561         * modules/sleep: New file.
6562         * lib/sleep.c: New file.
6563         * m4/sleep.m4: New file.
6564         * lib/unistd_.h (sleep): New declaration.
6565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
6566         HAVE_SLEEP.
6567         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
6568         * doc/functions/sleep.texi: Document the sleep module.
6569
6570 2007-05-01  Bruno Haible  <bruno@clisp.org>
6571
6572         * lib/sigprocmask.h: Remove file.
6573         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
6574         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
6575         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
6576         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
6577         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6578         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
6579         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
6580         HAVE_SIGSET_T as a shell variable.
6581         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
6582         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
6583         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
6584         (Depends-on): Add signal. Remove verify.
6585         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
6586         (Include): Mention <signal.h> instead of sigprocmask.h.
6587         * NEWS: Mention the change.
6588         * lib/fatal-signal.c: Don't include sigprocmask.h.
6589
6590 2007-05-01  Bruno Haible  <bruno@clisp.org>
6591
6592         * modules/signal: New file.
6593         * lib/signal_.h: New file.
6594         * m4/signal_h.m4: New file.
6595
6596 2007-05-01  Bruno Haible  <bruno@clisp.org>
6597
6598         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
6599         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
6600         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
6601         HAVE_WCTYPE_CTMP_BUG into wctype.h.
6602
6603 2007-05-01  Bruno Haible  <bruno@clisp.org>
6604
6605         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
6606         configure time.
6607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
6608         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
6609         * modules/sys_stat (Makefile.am): Substitute their values into
6610         sys/stat.h.
6611
6612 2007-05-01  Bruno Haible  <bruno@clisp.org>
6613
6614         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
6615         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
6616         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
6617
6618 2007-05-01  Bruno Haible  <bruno@clisp.org>
6619
6620         * doc/header/assert.texi: Undo last change: don't mention the gnulib
6621         'assert' module here.
6622
6623 2007-05-01  Bruno Haible  <bruno@clisp.org>
6624
6625         * doc/functions/*.texi: New files.
6626         * doc/functions/google-ranking.txt: New file.
6627         * doc/gnulib.texi (Function Substitutes): New chapter.
6628         (ctime, inet_ntoa): Remove sections.
6629         * doc/ctime.texi: Remove file.
6630         * doc/inet_ntoa.texi: Remove file.
6631         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
6632         dependencies.
6633         (%.info): New rule, specifying a --reference-limit.
6634
6635 2007-05-01  Bruno Haible  <bruno@clisp.org>
6636
6637         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
6638
6639 2007-05-01  Bruno Haible  <bruno@clisp.org>
6640
6641         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
6642         the portability of 'mkdir' to mingw systems.
6643
6644 2007-05-01  Bruno Haible  <bruno@clisp.org>
6645
6646         * doc/headers/google-ranking.txt: New file.
6647
6648 2007-04-30  Eric Blake  <ebb9@byu.net>
6649
6650         Prefer fseeko to fseek.
6651         * modules/getpass (Depends-on): Add fseeko.
6652         * lib/getpass.c (getpass): Use fseeko, not fseek.
6653
6654 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
6655
6656         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
6657         assumes the sorting is stable, while most qsort implementations
6658         are not.  Use argument addresses to ensure they never compare as
6659         equal.
6660
6661         * tests/test-argp-2.sh (usage-indent test): Fix output
6662         (func_compare): Restore diff options
6663         * tests/test-argp.c: Restore #include "progname.h"
6664
6665 2007-04-29  Bruno Haible  <bruno@clisp.org>
6666
6667         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
6668         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6669         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
6670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6671         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
6672         (configure.ac): Define CHECK_SNPRINTF_POSIX.
6673         (TESTS, check_PROGRAMS): Add test-snprintf.
6674         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
6675         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
6676         (TESTS, check_PROGRAMS): Add test-vsnprintf.
6677         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
6678         assertions that fail on HP-UX, OSF/1, or IRIX.
6679         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
6680
6681 2007-04-29  Bruno Haible  <bruno@clisp.org>
6682
6683         * MODULES.html.sh (posix_functions): Remove 'contents'.
6684
6685 2007-04-29  Karl Berry  <karl@gnu.org>
6686
6687         * config/srclist.txt (gendocs_template_min): new entry.
6688
6689 2007-04-29  Bruno Haible  <bruno@clisp.org>
6690
6691         Work around fpurge bug on BSD systems.
6692         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
6693         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
6694         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
6695         fpurge to rpl_fpurge if the system already has this function.
6696         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
6697         the case where the system already has this function. Correct invariants
6698         on BSD systems.
6699         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
6700         BSD systems.
6701
6702 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
6703
6704         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
6705         proposed by Sven Verdoolaege.
6706
6707         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
6708         options.
6709         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
6710         (usage and help tests): Update
6711
6712 2007-04-29  Bruno Haible  <bruno@clisp.org>
6713
6714         * tests/test-fflush.c (main): Use a file of size 17, not 10.
6715         Print more information in case of failure. Disable a test on BeOS.
6716
6717 2007-04-29  Bruno Haible  <bruno@clisp.org>
6718
6719         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
6720         This helps debugging on systems on which no gdb is available.
6721
6722 2007-04-29  Bruno Haible  <bruno@clisp.org>
6723
6724         * lib/freading.h: Improve comments.
6725         * lib/fwriting.h: Likewise.
6726         * tests/test-freading.c (main): Don't check freading immediately after
6727         repositioning. Needed for glibc.
6728
6729 2007-04-29  Bruno Haible  <bruno@clisp.org>
6730
6731         * lib/freading.c (freading): Trivial simplification.
6732
6733 2007-04-28  Bruno Haible  <bruno@clisp.org>
6734
6735         * tests/test-fwriting.c (main): Also test the interaction between
6736         fflush and fwriting.
6737         * modules/fwriting-tests (Depends-on): Add fflush.
6738
6739         * tests/test-freading.c (main): Also test the interaction between
6740         fflush and freading.
6741         * modules/freading-tests (Depends-on): Add fflush.
6742
6743 2007-04-28  Bruno Haible  <bruno@clisp.org>
6744
6745         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
6746         fseeko and ftello.
6747         Suggested by Eric Blake.
6748
6749 2007-04-28  Jim Meyering  <jim@meyering.net>
6750
6751         Avoid false-negative in gl_STDINT_H's C99 conformance test.
6752         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
6753         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
6754
6755 2007-04-27  Eric Blake  <ebb9@byu.net>
6756
6757         * doc/headers/assert.texi (assert.h): Document assert module use.
6758
6759 2007-04-27  Bruno Haible  <bruno@clisp.org>
6760
6761         * doc/headers/*.texi: New files.
6762         * doc/gnulib.texi (Header File Substitutes): New chapter.
6763         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
6764         dependencies.
6765         (standards.info ,standards.html, standards.dvi): Update dependencies.
6766         (mostlyclean, clean): New targets.
6767
6768 2007-04-27  Bruno Haible  <bruno@clisp.org>
6769
6770         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
6771         * modules/sysexits (Files, Makefile.am): Update.
6772
6773         * lib/sys_socket_.h: Renamed from lib/socket_.h.
6774         * modules/sys_socket (Files, Makefile.am): Update.
6775
6776         * lib/sys_stat_.h: Renamed from lib/stat_.h.
6777         * modules/sys_stat (Files, Makefile.am): Update.
6778
6779 2007-04-27  Eric Blake  <ebb9@byu.net>
6780
6781         * lib/freading.h: Improve comments.
6782         * lib/fwriting.h: Likewise.
6783         * lib/fflush.c: Likewise.
6784
6785         Fix closein for mingw.
6786         * modules/closein-tests: Add tests for closein.
6787         * tests/test-closein.c: New file.
6788         * tests/test-closein.sh: Likewise.
6789         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
6790         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
6791
6792 2007-04-27  Bruno Haible  <bruno@clisp.org>
6793
6794         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
6795         version is < 6.
6796         * lib/math_.h [__DECC]: Likewise.
6797         * lib/stdio_.h [__DECC]: Likewise.
6798         * lib/stdlib_.h [__DECC]: Likewise.
6799         * lib/string_.h [__DECC]: Likewise.
6800         * lib/time_.h [__DECC]: Likewise.
6801         * lib/wchar_.h [__DECC]: Likewise.
6802         * lib/wctype_.h [__DECC]: Likewise.
6803
6804 2007-04-27  Bruno Haible  <bruno@clisp.org>
6805
6806         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
6807
6808 2007-04-27  Bruno Haible  <bruno@clisp.org>
6809
6810         * lib/fflush.c: Add comments.
6811         * modules/fpurge-tests (Depends-on): Add fflush.
6812         * modules/freadable-tests (Depends-on): Likewise.
6813         * modules/fwritable-tests (Depends-on): Likewise.
6814
6815 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
6816
6817         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
6818         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
6819         Report by Bruno Haible <bruno@clisp.org>.
6820
6821 2007-04-26  Eric Blake  <ebb9@byu.net>
6822
6823         Fix fflush on mingw.
6824         * modules/fflush (Depends-on): Add freading.
6825         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
6826         but unread data.
6827
6828 2007-04-26  Eric Blake  <ebb9@byu.net>
6829         and Bruno Haible  <bruno@clisp.org>
6830
6831         Implement freading and fwriting.
6832         * lib/freading.c: New file.
6833         * lib/freading.h: Likewise.
6834         * m4/freading.m4: Likewise.
6835         * modules/freading: Likewise.
6836         * modules/freading-tests: Likewise.
6837         * tests/test-freading.c: Likewise.
6838         * lib/fwriting.c: New file.
6839         * lib/fwriting.h: Likewise.
6840         * m4/fwriting.m4: Likewise.
6841         * modules/fwriting: Likewise.
6842         * modules/fwriting-tests: Likewise.
6843         * tests/test-fwriting.c: Likewise.
6844         * MODULES.html.sh (File stream based Input/Output): Mention them.
6845
6846 2007-04-26  Bruno Haible  <bruno@clisp.org>
6847
6848         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
6849         'long' when we assume it.
6850         Suggested by Eric Blake.
6851
6852 2007-04-26  Bruno Haible  <bruno@clisp.org>
6853
6854         Ensure fseeko, ftello are declared on glibc systems.
6855         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
6856         * modules/fseeko (configure.ac-early): Likewise.
6857         * modules/ftello (configure.ac-early): Likewise.
6858         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
6859         AC_FUNC_FSEEKO for this.
6860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
6861         (gl_CHECK_FSEEKO): Remove macro.
6862
6863 2007-04-26  Bruno Haible  <bruno@clisp.org>
6864
6865         * tests/test-fflush.c (main): Also check the ftell result after
6866         fflush and fseek/fseeko.
6867         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
6868         file descriptor position cache in the stream.
6869         * lib/fseeko.c (rpl_fseeko): Likewise.
6870
6871 2007-04-26  Bruno Haible  <bruno@clisp.org>
6872
6873         * modules/fflush-tests (Depends-on): Add fseeko.
6874
6875 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
6876             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6877
6878         * lib/argz_.h: ensure error_t definition is obtained in same
6879         mechanism system argz.h would have.
6880         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
6881         argz facilities are known bad.  Err on the side of caution if
6882         cross-compiling.
6883
6884 2007-04-25  Eric Blake  <ebb9@byu.net>
6885
6886         * lib/fpurge.c (includes): Use stdlib.h for free.
6887         * tests/test-fflush.c (main): Also test fflush-fseeko.
6888
6889 2007-04-25  Bruno Haible  <bruno@clisp.org>
6890
6891         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
6892         * lib/fseeko.c: New file.
6893         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
6894         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
6895         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
6896         gl_FUNC_FSEEKO.
6897         (gl_FUNC_FSEEKO): Invoke it.
6898         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
6899         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
6900         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
6901
6902 2007-04-25  Bruno Haible  <bruno@clisp.org>
6903
6904         * modules/fflush (Depends-on): Add ftello.
6905
6906 2007-04-25  Bruno Haible  <bruno@clisp.org>
6907
6908         * modules/ftello-tests: New file.
6909         * tests/test-ftello.c: New file.
6910
6911         * modules/ftello: New file.
6912         * m4/ftello.m4: New file.
6913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
6914         HAVE_FTELLO.
6915         * lib/stdio_.h (ftello): New declaration.
6916         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
6917         HAVE_FTELLO.
6918
6919 2007-04-25  Bruno Haible  <bruno@clisp.org>
6920
6921         * modules/fseeko-tests: New file.
6922         * tests/test-fseeko.c: New file.
6923
6924         * modules/fseeko: New file.
6925         * m4/fseeko.m4: New file.
6926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
6927         HAVE_FSEEKO.
6928         * lib/stdio_.h (fseeko): New declaration.
6929         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
6930         HAVE_FSEEKO.
6931
6932 2007-04-25  Bruno Haible  <bruno@clisp.org>
6933
6934         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
6935
6936 2007-04-25  Bruno Haible  <bruno@clisp.org>
6937
6938         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
6939         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
6940         * tests/test-unistd.c: Likewise.
6941         * tests/test-fcntl.c: Likewise.
6942
6943 2007-04-23  Eric Blake  <ebb9@byu.net>
6944
6945         * lib/fflush.c: Fix missing include.
6946         Reported by Bruno Haible.
6947
6948 2007-04-23  Bruno Haible  <bruno@clisp.org>
6949
6950         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
6951         Reported by Eric Blake.
6952
6953 2007-04-23  Bruno Haible  <bruno@clisp.org>
6954
6955         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
6956
6957 2007-04-23  Bruno Haible  <bruno@clisp.org>
6958
6959         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
6960
6961 2007-04-23  Bruno Haible  <bruno@clisp.org>
6962
6963         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
6964         Needed on HP-UX 11.
6965
6966 2007-04-16  Eric Blake  <ebb9@byu.net>
6967
6968         Make fflush rely on fpurge.
6969         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
6970         open coding all variants.
6971         * modules/fflush (Depends-on): Add fpurge and unistd.
6972         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
6973         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
6974
6975         Fix --with-tests compilation on cygwin.
6976         * modules/argmatch-tests (Makefile.am): List gnulib library first
6977         in LDADD.
6978         * modules/argp-tests (Makefile.am): Likewise.
6979         * modules/array-list-tests (Makefile.am): Likewise.
6980         * modules/array-oset-tests (Makefile.am): Likewise.
6981         * modules/avltree-list-tests (Makefile.am): Likewise.
6982         * modules/avltree-oset-tests (Makefile.am): Likewise.
6983         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6984         * modules/carray-list-tests (Makefile.am): Likewise.
6985         * modules/dirname-tests (Makefile.am): Likewise.
6986         * modules/frexp-tests (Makefile.am): Likewise.
6987         * modules/isnanl-tests (Makefile.am): Likewise.
6988         * modules/linked-list-tests (Makefile.am): Likewise.
6989         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6990         * modules/lock-tests (Makefile.am): Likewise.
6991         * modules/rbtree-list-tests (Makefile.am): Likewise.
6992         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6993         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6994         * modules/tls-tests (Makefile.am): Likewise.
6995         * modules/tsearch-tests (Makefile.am): Likewise.
6996         * modules/xvasprintf-tests (Makefile.am): Likewise.
6997
6998         Fix fpurge for cygwin.
6999         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
7000         value.
7001         * modules/fpurge-tests (Depends-on): Clean up trash.
7002
7003 2007-04-16  Simon Josefsson  <simon@josefsson.org>
7004
7005         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
7006
7007         * m4/autobuild.m4: Re-indent.
7008
7009 2007-04-13  Bruno Haible  <bruno@clisp.org>
7010
7011         * modules/fpurge-tests: New file.
7012         * tests/test-fpurge.c: New file.
7013
7014         * modules/fpurge: New file.
7015         * lib/fpurge.h: New file.
7016         * lib/fpurge.c: New file.
7017         * m4/fpurge.m4: New file.
7018
7019 2007-04-13  Bruno Haible  <bruno@clisp.org>
7020
7021         * modules/fbufmode-tests: New file.
7022         * tests/test-fbufmode.c: New file.
7023
7024         * modules/fbufmode: New file.
7025         * lib/fbufmode.h: New file.
7026         * lib/fbufmode.c: New file.
7027         * m4/fbufmode.m4: New file.
7028
7029 2007-04-13  Bruno Haible  <bruno@clisp.org>
7030
7031         * modules/fwritable-tests: New file.
7032         * tests/test-fwritable.c: New file.
7033
7034         * modules/fwritable: New file.
7035         * lib/fwritable.h: New file.
7036         * lib/fwritable.c: New file.
7037         * m4/fwritable.m4: New file.
7038
7039 2007-04-13  Bruno Haible  <bruno@clisp.org>
7040
7041         * modules/freadable-tests: New file.
7042         * tests/test-freadable.c: New file.
7043
7044         * modules/freadable: New file.
7045         * lib/freadable.h: New file.
7046         * lib/freadable.c: New file.
7047         * m4/freadable.m4: New file.
7048
7049 2007-04-13  Bruno Haible  <bruno@clisp.org>
7050
7051         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
7052         MOSTLYCLEANFILES.
7053
7054 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
7055
7056         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
7057         gzip bootstrap.conf to avoid dragging in i18n machinery.
7058         (gnulib_tool_option): Use it.
7059
7060 2007-04-13  Bruno Haible  <bruno@clisp.org>
7061
7062         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
7063         %F directives.
7064         * tests/test-vasprintf-posix.c (test_function): Likewise.
7065         * tests/test-snprintf-posix.h (test_function): Likewise.
7066         * tests/test-sprintf-posix.h (test_function): Likewise.
7067         * tests/test-fprintf-posix.h (test_function): Likewise.
7068         * tests/test-printf-posix.h (test_function): Likewise.
7069         * tests/test-fprintf-posix.out: Likewise.
7070
7071 2007-04-13  Bruno Haible  <bruno@clisp.org>
7072
7073         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
7074         * modules/tls-tests (configure.ac): Likewise.
7075         Reported by Arto C. Nirkko <anirkko@insel.ch>.
7076
7077 2007-04-13  Bruno Haible  <bruno@clisp.org>
7078
7079         * lib/tls.c (glthread_tls_get): Fix return type.
7080         Patch by Arto C. Nirkko <anirkko@insel.ch>.
7081
7082 2007-04-12  Eric Blake  <ebb9@byu.net>
7083
7084         * modules/gettime (Depends-on): Remove gettime.
7085         Reported by Dmitry V. Levin.
7086
7087 2007-04-12  Bruno Haible  <bruno@clisp.org>
7088
7089         * modules/fflush (Include): Mention <stdio.h>.
7090         * modules/strtoimax (Include): Mention <inttypes.h>.
7091         * modules/strtoumax (Include): Likewise.
7092
7093 2007-04-12  Eric Blake  <ebb9@byu.net>
7094
7095         * .cvsignore: New file.
7096         * .gitignore: Likewise.
7097
7098 2007-04-12  Bruno Haible  <bruno@clisp.org>
7099
7100         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
7101         not before, since $(LDADD) often contains libgnu.a.
7102         * modules/striconv-tests (test_striconv_LDADD): Likewise.
7103         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
7104         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
7105         Needed on Cygwin.
7106
7107 2007-04-12  Eric Blake  <ebb9@byu.net>
7108
7109         Work around glibc's failure to flush stdin on fclose.
7110         * lib/closein.c (close_stdin): Flush stdin before closing.
7111
7112         Work around glibc's failure to reset seekable stdin on exit.
7113         * modules/closein: New module.
7114         * lib/closein.c: New file.
7115         * lib/closein.h: Likewise.
7116         * m4/closein.m4: Likewise.
7117         * MODULES.html.sh (File stream based Input/Output): Document it.
7118
7119 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7120
7121         * gnulib-tool: Rename generated 'autobuild' script to
7122         'do-autobuild' in --create-megatestdir output.
7123
7124         * doc/gnulib.texi (Build robot for gnulib): Fix.
7125
7126 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7127
7128         * modules/sysexits (Depends-on): Add absolute-header.
7129
7130 2007-04-12  Eric Blake  <ebb9@byu.net>
7131
7132         No need to preserve errno on success.
7133         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
7134         Reported by Bruno Haible.
7135
7136 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7137
7138         * MODULES.html.sh (Support for maintaining and releasing
7139         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
7140
7141 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7142
7143         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
7144
7145 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7146
7147         * modules/autobuild: New module.
7148
7149         * m4/autobuild.m4: New file.
7150
7151 2007-04-11  Bruno Haible  <bruno@clisp.org>
7152
7153         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
7154         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
7155         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
7156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
7157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
7164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7166         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
7167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
7170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
7173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
7176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
7179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7181         Reported by Eric Blake.
7182
7183 2007-04-11  Bruno Haible  <bruno@clisp.org>
7184
7185         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
7186
7187 2007-04-10  Bruno Haible  <bruno@clisp.org>
7188
7189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
7190         for NaN and Infinity. Needed on FreeBSD 6.1.
7191         * tests/test-vasnprintf-posix.c (test_function): Undo last change
7192         regarding results for "%010a" of Infinity and NaN.
7193         * tests/test-vasprintf-posix.c (test_function): Likewise.
7194         * tests/test-snprintf-posix.h (test_function): Likewise.
7195         * tests/test-sprintf-posix.h (test_function): Likewise.
7196         * tests/test-fprintf-posix.h (test_function): Likewise.
7197         * tests/test-printf-posix.h (test_function): Likewise.
7198         * tests/test-fprintf-posix.out: Likewise.
7199
7200 2007-04-10  Bruno Haible  <bruno@clisp.org>
7201
7202         * modules/locale-tests: New file.
7203         * tests/test-locale.c: New file.
7204
7205         * modules/locale: New file.
7206         * lib/locale_.h: New file.
7207         * m4/locale_h.m4: New file.
7208
7209 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
7210             Bruno Haible  <bruno@clisp.org>
7211
7212         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
7213         be determined, test for availability of the copysignf, copysign,
7214         copysignl functions.
7215         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
7216         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
7217         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
7218
7219 2007-04-09  Eric Blake  <ebb9@byu.net>
7220
7221         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
7222         * modules/stdio (Makefile.am): Support fflush.
7223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7224         * modules/fflush: New file.
7225         * lib/fflush.c: Likewise.
7226         * m4/fflush.m4: Likewise.
7227         * modules/fflush-tests: New test.
7228         * tests/test-fflush.c: Likewise.
7229         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
7230
7231 2007-04-06  Bruno Haible  <bruno@clisp.org>
7232
7233         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
7234         (VASNPRINTF): Use signbit for faster determination whether to print a
7235         minus sign.
7236         * modules/vasnprintf (Files): Remove lib/float+.h.
7237         * modules/fprintf-posix (Depends-on): Add signbit.
7238         * modules/snprintf-posix (Depends-on): Likewise.
7239         * modules/sprintf-posix (Depends-on): Likewise.
7240         * modules/vasnprintf-posix (Depends-on): Likewise.
7241         * modules/vasprintf-posix (Depends-on): Likewise.
7242         * modules/vfprintf-posix (Depends-on): Likewise.
7243         * modules/vsnprintf-posix (Depends-on): Likewise.
7244         * modules/vsprintf-posix (Depends-on): Likewise.
7245
7246 2007-04-06  Bruno Haible  <bruno@clisp.org>
7247
7248         * tests/test-frexp.c (main): Test also the sign bit of zero results.
7249         * tests/test-frexpl.c (main): Likewise.
7250         * tests/test-ldexpl.c (main): Likewise.
7251         * modules/frexp-tests (Depends-on): Add signbit.
7252         * modules/frexpl-tests (Depdends-on): Likewise.
7253         * modules/ldexpl-tests (Depdends-on): Likewise.
7254
7255 2007-04-06  Bruno Haible  <bruno@clisp.org>
7256
7257         * modules/signbit-tests: New file.
7258         * tests/test-signbit.c: New file.
7259
7260         * modules/signbit: New file.
7261         * lib/signbitf.c: New file.
7262         * lib/signbitd.c: New file.
7263         * lib/signbitl.c: New file.
7264         * m4/signbit.m4: New file.
7265         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
7266         (signbit): New macro.
7267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
7268         REPLACE_SIGNBIT.
7269         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
7270         REPLACE_FREXPL into math.h.
7271
7272 2007-04-06  Bruno Haible  <bruno@clisp.org>
7273
7274         * modules/isnanf-nolibm-tests: New file.
7275         * tests/test-isnanf.c: New file.
7276
7277         * modules/isnanf-nolibm: New file.
7278         * lib/isnanf.h: New file.
7279         * lib/isnanf.c: New file.
7280         * lib/isnan.c: Consider the USE_FLOAT macro.
7281         * m4/isnanf.m4: New file.
7282
7283 2007-04-06  Bruno Haible  <bruno@clisp.org>
7284
7285         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
7286         (Link): New section.
7287
7288         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
7289
7290 2007-04-06  Bruno Haible  <bruno@clisp.org>
7291
7292         Assume the 'long double' type.
7293         * m4/longdouble.m4: Remove file.
7294         * config/srclist.txt: Don't mention longdouble.m4.
7295         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
7296         * lib/float+.h: Likewise.
7297         * lib/frexp.c: Likewise.
7298         * lib/printf-args.h: Likewise.
7299         * lib/printf-args.c: Likewise.
7300         * lib/printf-frexp.c: Likewise.
7301         * lib/printf-parse.c: Likewise.
7302         * lib/vasnprintf.c: Likewise.
7303         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
7304         * m4/intl.m4: Likewise.
7305         * m4/isnanl.m4: Likewise.
7306         * m4/printf.m4: Likewise.
7307         * m4/printf-frexpl.m4: Likewise.
7308         * m4/vasnprintf.m4: Likewise.
7309         * modules/allocsa (Files): Remove m4/longdouble.m4.
7310         * modules/gettext (Files): Likewise.
7311         * modules/relocatable-prog-wrapper (Files): Likewise.
7312         * modules/vasnprintf (Files): Likewise.
7313         * modules/isnanl (Files): Likewise.
7314         (Include): Simplify.
7315         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
7316         (Include): Simplify.
7317         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
7318         (Include): Simplify.
7319         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
7320         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7321         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
7322         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7323         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
7324         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7325         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
7326         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7327         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
7328         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7329         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
7330         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7331         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
7332         * tests/test-isnanl.c: Likewise.
7333         * tests/test-snprintf-posix.h: Likewise.
7334         * tests/test-sprintf-posix.h: Likewise.
7335         * tests/test-vasnprintf-posix.c: Likewise.
7336         * tests/test-vasnprintf-posix2.c: Likewise.
7337         * tests/test-vasprintf-posix.c: Likewise.
7338
7339 2007-04-06  Bruno Haible  <bruno@clisp.org>
7340
7341         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
7342         * lib/math_.h [__DECC]: Include the overridden include file through
7343         #include_next, outside the double-inclusion guard.
7344         * lib/stdio_.h [__DECC]: Likewise.
7345         * lib/stdlib_.h [__DECC]: Likewise.
7346         * lib/string_.h [__DECC]: Likewise.
7347         * lib/time_.h [__DECC]: Likewise.
7348         * lib/wchar_.h [__DECC]: Likewise.
7349         * lib/wctype_.h [__DECC]: Likewise.
7350         * lib/inttypes_.h [__DECC]: Likewise.
7351         Reported by Albert Chin <china@thewrittenword.com> in
7352         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
7353
7354 2007-04-04  Eric Blake  <ebb9@byu.net>
7355
7356         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
7357         1.5.x.
7358
7359 2007-04-04  Bruno Haible  <bruno@clisp.org>
7360
7361         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
7362         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
7363
7364 2007-04-04  Bruno Haible  <bruno@clisp.org>
7365
7366         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
7367         results for "%010a" of Infinity and NaN.
7368         * tests/test-vasprintf-posix.c (test_function): Likewise.
7369         * tests/test-snprintf-posix.h (test_function): Likewise.
7370         * tests/test-sprintf-posix.h (test_function): Likewise.
7371         * tests/test-fprintf-posix.h (test_function): Remove these tests.
7372         * tests/test-printf-posix.h (test_function): Likewise.
7373         * tests/test-fprintf-posix.out: Update.
7374         Needed for FreeBSD 6.1.
7375
7376 2007-04-04  Bruno Haible  <bruno@clisp.org>
7377
7378         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
7379         directly used by the gnulib modules nor by gnulib-tool.
7380
7381 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
7382
7383         * DEPENDENCIES: Give overall description of version dependency
7384         desirability.  Use more-typical names for apps.
7385         Add shell, coreutils, diffutils, grep, tar, gzip.
7386
7387 2007-04-04  Simon Josefsson  <simon@josefsson.org>
7388
7389         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
7390
7391 2007-04-04  Karl Berry  <karl@gnu.org>
7392
7393         * MODULES.html.sh (func_module): missing '.
7394
7395 2007-04-03  Bruno Haible  <bruno@clisp.org>
7396
7397         * modules/argmatch-tests (Makefile.am): New variable
7398         test_argmatch_LDADD.
7399         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
7400         * modules/array-list-tests (Makefile.am): New variable
7401         test_array_list_LDADD.
7402         * modules/array-oset-tests (Makefile.am): New variable
7403         test_array_oset_LDADD.
7404         * modules/avltree-list-tests (Makefile.am): New variable
7405         test_avltree_list_LDADD.
7406         * modules/avltree-oset-tests (Makefile.am): New variable
7407         test_avltree_oset_LDADD.
7408         * modules/avltreehash-list-tests (Makefile.am): New variable
7409         test_avltreehash_list_LDADD.
7410         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
7411         test_canonicalize_lgpl_LDADD.
7412         * modules/carray-list-tests (Makefile.am): New variable
7413         test_carray_list_LDADD.
7414         * modules/dirname-tests (Makefile.am): New variable
7415         test_dirname_LDADD.
7416         * modules/linked-list-tests (Makefile.am): New variable
7417         test_linked_list_LDADD.
7418         * modules/linkedhash-list-tests (Makefile.am): New variable
7419         test_linkedhash_list_LDADD.
7420         * modules/rbtree-list-tests (Makefile.am): New variable
7421         test_rbtree_list_LDADD.
7422         * modules/rbtree-oset-tests (Makefile.am): New variable
7423         test_rbtree_oset_LDADD.
7424         * modules/rbtreehash-list-tests (Makefile.am): New variable
7425         test_rbtreehash_list_LDADD.
7426         * modules/xvasprintf-tests (Makefile.am): New variable
7427         test_xvasprintf_LDADD.
7428         Reported by Eric Blake.
7429
7430 2007-04-03  Eric Blake  <ebb9@byu.net>
7431
7432         * DEPENDENCIES: Weaken m4 requirements.
7433
7434 2007-04-03  Bruno Haible  <bruno@clisp.org>
7435
7436         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
7437         * modules/isnanl-tests (configure.ac): Likewise.
7438
7439 2007-04-03  Ben Pfaff  <blp@gnu.org>
7440
7441         * modules/iconv_open: Add $(srcdir)/ to source directory
7442         references in Makefile fragments that call gperf, to fix VPATH
7443         builds.
7444
7445 2007-04-03  Bruno Haible  <bruno@clisp.org>
7446
7447         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
7448         * lib/ldexpl.c: Undo last change.
7449
7450 2007-04-03  Bruno Haible  <bruno@clisp.org>
7451
7452         * modules/printf-frexpl (Depends-on): Undo last change.
7453         (Files): Add m4/ldexpl.m4.
7454
7455 2007-04-03  Bruno Haible  <bruno@clisp.org>
7456
7457         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
7458         * modules/isnanl (Link): New section.
7459
7460         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
7461         * modules/frexp (Link): New section.
7462
7463         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
7464         * modules/frexpl (Link): New section.
7465
7466         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
7467         * modules/ldexpl (Link): New section.
7468
7469 2007-04-03  Bruno Haible  <bruno@clisp.org>
7470
7471         * modules/TEMPLATE-EXTENDED: New file.
7472         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
7473
7474 2007-04-03  Bruno Haible  <bruno@clisp.org>
7475
7476         * DEPENDENCIES: New file.
7477         Suggested by Simon Josefsson.
7478
7479 2007-04-03  Bruno Haible  <bruno@clisp.org>
7480
7481         * doc/gnulib.texi: Escape @.
7482
7483 2007-04-03  James Youngman  <jay@gnu.org>
7484         and Paul Eggert  <eggert@cs.ucla.edu>
7485
7486         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
7487         birthtime on all systems that have birthtime, not just those which
7488         use st_birthtimensec rather than st_birthtim.  Putting zero in
7489         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
7490         that the birth time is not available for files on an NFS mount.
7491
7492 2007-04-03  Simon Josefsson  <simon@josefsson.org>
7493
7494         * modules/memxor: Move back from crypto/, suggested by Bruno.
7495         * modules/crypto/hmac-sha1: Fix memxor dependency.
7496
7497         * modules/crypto/gc: Moved from ../.
7498
7499 2007-04-02  Eric Blake  <ebb9@byu.net>
7500
7501         * lib/ldexpl.c (includes): Avoid libm.
7502
7503         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
7504
7505 2007-04-02  Bruno Haible  <bruno@clisp.org>
7506
7507         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
7508         on IRIX.
7509
7510 2007-04-02  Bruno Haible  <bruno@clisp.org>
7511
7512         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
7513         x86 or x86_64 platforms running MacOS X.
7514         Reported by Ryan Schmidt <@ryandesign.com>.
7515
7516 2007-04-02  Bruno Haible  <bruno@clisp.org>
7517
7518         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
7519         i386.
7520
7521 2007-04-01  Simon Josefsson  <simon@josefsson.org>
7522
7523         * modules/crypto/arcfour: Moved from ../.
7524         * modules/crypto/arcfour-tests: Moved from ../.
7525         * modules/crypto/arctwo: Moved from ../.
7526         * modules/crypto/arctwo-tests: Moved from ../.
7527         * modules/crypto/des: Moved from ../.
7528         * modules/crypto/des-tests: Moved from ../.
7529         * modules/crypto/gc-arcfour: Moved from ../.
7530         * modules/crypto/gc-arcfour-tests: Moved from ../.
7531         * modules/crypto/gc-arctwo: Moved from ../.
7532         * modules/crypto/gc-arctwo-tests: Moved from ../.
7533         * modules/crypto/gc-des: Moved from ../.
7534         * modules/crypto/gc-des-tests: Moved from ../.
7535         * modules/crypto/gc-hmac-md5: Moved from ../.
7536         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
7537         * modules/crypto/gc-hmac-sha1: Moved from ../.
7538         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
7539         * modules/crypto/gc-md2: Moved from ../.
7540         * modules/crypto/gc-md2-tests: Moved from ../.
7541         * modules/crypto/gc-md4: Moved from ../.
7542         * modules/crypto/gc-md4-tests: Moved from ../.
7543         * modules/crypto/gc-md5: Moved from ../.
7544         * modules/crypto/gc-md5-tests: Moved from ../.
7545         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
7546         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
7547         * modules/crypto/gc-random: Moved from ../.
7548         * modules/crypto/gc-rijndael: Moved from ../.
7549         * modules/crypto/gc-rijndael-tests: Moved from ../.
7550         * modules/crypto/gc-sha1: Moved from ../.
7551         * modules/crypto/gc-sha1-tests: Moved from ../.
7552         * modules/crypto/gc-tests: Moved from ../.
7553         * modules/crypto/hmac-md5: Moved from ../.
7554         * modules/crypto/hmac-md5-tests: Moved from ../.
7555         * modules/crypto/hmac-sha1: Moved from ../.
7556         * modules/crypto/hmac-sha1-tests: Moved from ../.
7557         * modules/crypto/md2: Moved from ../.
7558         * modules/crypto/md2-tests: Moved from ../.
7559         * modules/crypto/md4: Moved from ../.
7560         * modules/crypto/md4-tests: Moved from ../.
7561         * modules/crypto/md5: Moved from ../.
7562         * modules/crypto/md5-tests: Moved from ../.
7563         * modules/crypto/memxor: Moved from ../.
7564         * modules/crypto/rijndael: Moved from ../.
7565         * modules/crypto/rijndael-tests: Moved from ../.
7566         * modules/crypto/sha1: Moved from ../.
7567
7568 2007-03-30  James Youngman  <jay@gnu.org>
7569
7570         * tests/test-stat-time.c (prepare_test): use chmod() rather than
7571         rename() to change the ctime of a file (because ctime is unaffected
7572         by rename on jfs2 on AIX 5.1).
7573         (main): Start by doing cleanup, in case a previous run failed leaving
7574         test files behind.
7575
7576 2007-03-31  Bruno Haible  <bruno@clisp.org>
7577
7578         Support old proprietary implementations of iconv.
7579         * modules/iconv_open: New file.
7580         * lib/iconv_.h: New file.
7581         * m4/iconv_h.m4: New file.
7582         * lib/iconv_open.c: New file.
7583         * lib/iconv_open-aix.gperf: New file.
7584         * lib/iconv_open-hpux.gperf: New file.
7585         * lib/iconv_open-irix.gperf: New file.
7586         * lib/iconv_open-osf.gperf: New file.
7587         * m4/iconv_open.m4: New file.
7588         * modules/linebreak (Depends-on): Add iconv_open.
7589         * modules/striconv (Depends-on): Likewise.
7590         * modules/striconveh (Depends-on): Likewise.
7591         * modules/unicodeio (Depends-on): Likewise.
7592         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
7593         (iconv_t)(-1).
7594         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
7595         conversion if cd is (iconv_t)(-1).
7596         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
7597         is not possible.
7598
7599 2007-03-31  Bruno Haible  <bruno@clisp.org>
7600
7601         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
7602         work on Solaris either. Protect also second use of "autodetect_jp".
7603
7604 2007-03-31  Bruno Haible  <bruno@clisp.org>
7605
7606         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
7607         the function is not present.
7608
7609 2007-03-31  Bruno Haible  <bruno@clisp.org>
7610
7611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
7612         the function is not present.
7613
7614 2007-03-31  Bruno Haible  <bruno@clisp.org>
7615
7616         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
7617         a bug in HP-UX iconv_open().
7618
7619 2007-03-31  Bruno Haible  <bruno@clisp.org>
7620
7621         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
7622         (Mathematics <math.h>): New section, add fpieee.
7623         (Input/output <stdio.h>): Add fseterr.
7624         (Mathematics <math.h>): New section, add printf-frexp.
7625         (Container data structures): Add sublist.
7626         (Core language properties): Add fpucw, inline.
7627         (Functions for greatest-width integer types <inttypes.h>): Add
7628         imaxabs, imaxdiv, inttypes.
7629         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
7630         isnanl-nolibm, ldexp.
7631         (Mathematics <math.h>): New section, add printf-frexpl.
7632         (Support for systems lacking POSIX:2001): Add fprintf-posix,
7633         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
7634         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
7635         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
7636         (Unicode string functions): Add unistr/u*-mbtoucr.
7637         (Java): Add javacomp-script, javaexec-script.
7638         (C#): Add csharpcomp-script, csharpexec-script.
7639         (Support for building libraries and executables): Add havelib,
7640         relocatable-*.
7641         (Support for maintaining and releasing projects): Renamed from
7642         'Support for maintaining and release projects'. Add announce-gen.
7643
7644 2007-03-31  Bruno Haible  <bruno@clisp.org>
7645
7646         * README: Talk primarily about git.
7647         (git and CVS): Renamed from CVS.
7648         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
7649         gnulib is available through git.
7650         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
7651
7652 2007-03-30  Bruno Haible  <bruno@clisp.org>
7653
7654         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
7655         * lib/poll_.h: Likewise.
7656         * lib/stat_.h: Likewise.
7657         * lib/sys_time_.h: Likewise.
7658         * lib/sysexit_.h: Likewise.
7659         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
7660         * lib/stdbool_.h: Likewise.
7661         * lib/byteswap_.h: Add double-inclusion guard.
7662
7663 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
7664
7665         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
7666
7667 2007-03-30  Karl Berry  <karl@gnu.org>
7668
7669         * config/srclist-update: double space after USA in the license
7670         substitution, since that's how it's usually (?) written.
7671
7672 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
7673
7674         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
7675         reported by Bruno Haible.
7676
7677 2007-03-29  Bruno Haible  <bruno@clisp.org>
7678
7679         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
7680         a bug in AIX iconv().
7681
7682 2007-03-29  Bruno Haible  <bruno@clisp.org>
7683
7684         * modules/ldexpl-tests: New file.
7685         * tests/test-ldexpl.c: New file.
7686
7687 2007-03-29  Bruno Haible  <bruno@clisp.org>
7688
7689         * lib/ldexpl.c: Include fpucw.h.
7690         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
7691         multiplication.
7692         * modules/ldexpl (Depends-on): Add fpucw.
7693
7694 2007-03-29  Bruno Haible  <bruno@clisp.org>
7695
7696         * modules/ldexpl: New file.
7697         * m4/ldexpl.m4: New file.
7698         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
7699         set.
7700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
7701         REPLACE_LDEXPL.
7702         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
7703         REPLACE_LDEXPL.
7704         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
7705         gl_FUNC_LDEXPL_WORKS.
7706         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
7707         * modules/mathl (Files): Remove lib/ldexpl.c.
7708         (Depends-on): Add ldexpl.
7709
7710 2007-03-29  Bruno Haible  <bruno@clisp.org>
7711
7712         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
7713
7714 2007-03-29  Bruno Haible  <bruno@clisp.org>
7715
7716         * tests/test-striconveh.c (main): Don't assume that a direct conversion
7717         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
7718         and possibly also HP-UX.
7719         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
7720         work on AIX, IRIX, HP-UX, OSF/1.
7721         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
7722         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
7723         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
7724         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
7725         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
7726         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
7727
7728 2007-03-29  Bruno Haible  <bruno@clisp.org>
7729
7730         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
7731
7732 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
7733
7734         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
7735         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
7736
7737 2007-03-29  Eric Blake  <ebb9@byu.net>
7738
7739         * lib/acl-internal.h: Remove redundant include.
7740         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
7741         Cygwin when a file is locked.
7742
7743 2007-03-29  Bruno Haible  <bruno@clisp.org>
7744
7745         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
7746         file.
7747         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
7748
7749 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
7750
7751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
7752         try to remove a parent directory if the child couldn't be removed
7753         (except for the first rmdir, which could fail because the child
7754         doesn't exist).  Problem reported by Jeff Blaine in
7755         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
7756
7757 2007-03-28  Bruno Haible  <bruno@clisp.org>
7758
7759         * lib/striconveh.c (utf8conv_carefully): New function.
7760         (mem_cd_iconveh_internal): Invoke it.
7761
7762 2007-03-28  Bruno Haible  <bruno@clisp.org>
7763
7764         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
7765         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
7766         input.
7767         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
7768         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
7769         unistr/u8-uctomb.
7770
7771 2007-03-28  Bruno Haible  <bruno@clisp.org>
7772
7773         * modules/unistr/u8-mbtoucr: New file.
7774         * lib/unistr/u8-mbtoucr.c: New file.
7775         * modules/unistr/u16-mbtoucr: New file.
7776         * lib/unistr/u16-mbtoucr.c: New file.
7777         * modules/unistr/u16-mbtoucr: New file.
7778         * lib/unistr/u16-mbtoucr.c: New file.
7779         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
7780
7781 2007-03-27  Simon Josefsson  <simon@josefsson.org>
7782             Bruno Haible  <bruno@clisp.org>
7783
7784         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
7785         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
7786         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
7787
7788         * m4/stdio_h.m4: Add stubs for vasprintf too.
7789
7790         * modules/stdio: Support vasprintf in sed command.
7791
7792         * modules/vasprintf: Depend on stdio for prototypes.  Remove
7793         vasprintf.h.  Add stdio module indicator.
7794
7795         * lib/stdio_.h: Declare asprintf and vasprintf, based on
7796         vasprintf.h.
7797
7798         * lib/vasprintf.h: File removed.
7799
7800         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
7801         * lib/vasprintf.c: Ditto.
7802         * lib/xvasprintf.c: Ditto.
7803         * tests/test-vasprintf-posix.c: Ditto.
7804         * tests/test-vasprintf.c: Ditto.
7805
7806 2007-03-27  Bruno Haible  <bruno@clisp.org>
7807
7808         Make vasnprintf multithread-safe.
7809         * lib/vasnprintf.c (decimal_point_char): New function.
7810         (VASNPRINTF): Use it.
7811         Suggested by Simon Josefsson.
7812
7813 2007-03-27  Eric Blake  <ebb9@byu.net>
7814
7815         Support sub-second birthtime on cygwin.
7816         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
7817         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
7818         (get_stat_birthtime): Also work with st_birthtim.
7819
7820 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
7821
7822         * lib/stat-time.h (USE_BIRTHTIME): Remove.
7823         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
7824         (get_stat_birthtime_ns): Do not try to use "spare" fields.
7825         (get_stat_birthtime_ns): Simplify compile-time tests.
7826         (get_stat_birthtime): Change the API to look like
7827         get_stat_mtime etc., except return a negative tv_nsec on error.
7828         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
7829         Don't check for "spare" fields.
7830         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
7831         or for struct stat.st_birthtime, as these tests aren't used.
7832         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
7833
7834 2007-03-27  Bruno Haible  <bruno@clisp.org>
7835
7836         * lib/stat-time.h: Include <sys/stat.h>.
7837
7838 2007-03-27  James Youngman  <jay@gnu.org>
7839
7840         * lib/stat-time.h (get_stat_birthtime): New function for
7841           retrieving st_birthtime as provided by UFS2 (hence *BSD).
7842         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
7843           and its variants.
7844         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
7845         * modules/stat-time-test: New file.
7846         * tests/test-stat-time.c: New test, devised by Bruno Haible.
7847
7848 2007-03-26  Bruno Haible  <bruno@clisp.org>
7849
7850         Better support of signalling NaNs.
7851         * lib/atanl.c: Include isnanl.h.
7852         (atanl): Perform test for NaN at the beginning of the function and
7853         through a call to isnanl.
7854         * lib/cosl.c: Include isnanl.h.
7855         (cosl): Perform test for NaN at the beginning of the function and
7856         through a call to isnanl.
7857         * lib/ldexpl.c: Include isnanl.h.
7858         (ldexpl): Perform test for NaN through a call to isnanl.
7859         * lib/logl.c: Include isnanl.h.
7860         (logl): Perform test for NaN at the beginning of the function and
7861         through a call to isnanl.
7862         * lib/sinl.c: Include isnanl.h.
7863         (sinl): Perform test for NaN at the beginning of the function and
7864         through a call to isnanl.
7865         * lib/sqrtl.c: Include isnanl.h.
7866         (sqrtl): Perform test for NaN at the beginning of the function and
7867         through a call to isnanl.
7868         * lib/tanl.c: Include isnanl.h.
7869         (tanl): Perform test for NaN at the beginning of the function and
7870         through a call to isnanl.
7871         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
7872         * modules/mathl (Depends-on): Add isnanl.
7873
7874 2007-03-26  Eric Blake  <ebb9@byu.net>
7875
7876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
7877         regression in logic sense of previous patch.
7878
7879 2007-03-26  Bruno Haible  <bruno@clisp.org>
7880
7881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
7882         unportable shell command "if ! ...".
7883         Reported by Ralf Wildenhues.
7884
7885 2007-03-25  Bruno Haible  <bruno@clisp.org>
7886
7887         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
7888         <sysexits.h> file, and only add EX_CONFIG.
7889         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
7890         absolute file name and whether it is sufficient. Substitute also
7891         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
7892         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
7893         ABSOLUTE_SYSEXITS_H into sysexits.h.
7894
7895 2007-03-25  Bruno Haible  <bruno@clisp.org>
7896
7897         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
7898         hints is NULL.
7899
7900 2007-03-25  Bruno Haible  <bruno@clisp.org>
7901
7902         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
7903         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
7904
7905 2007-03-25  Bruno Haible  <bruno@clisp.org>
7906
7907         * lib/vasnprintf.c: Include langinfo.h.
7908         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
7909         multithread-safe.
7910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
7911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
7912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
7918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7919         Reported by Simon Josefsson.
7920
7921 2007-03-25  Bruno Haible  <bruno@clisp.org>
7922
7923         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
7924         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
7925         * modules/vasnprintf (Depends-on): Add stdint.
7926
7927 2007-03-25  Bruno Haible  <bruno@clisp.org>
7928
7929         * modules/fpieee: New file.
7930         * m4/fpieee.m4: New file.
7931         * modules/isnan-nolibm (Depends-on): Add fpieee.
7932         * modules/isnanl-nolibm (Depends-on): Add fpieee.
7933         * modules/isnanl (Depends-on): Add fpieee.
7934
7935 2007-03-25  Bruno Haible  <bruno@clisp.org>
7936
7937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
7938
7939 2007-03-25  Bruno Haible  <bruno@clisp.org>
7940
7941         Avoid test failures on IRIX 6.5.
7942         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
7943         (main): Use it.
7944         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
7945         macros.
7946         (main): Use them.
7947
7948 2007-03-25  Bruno Haible  <bruno@clisp.org>
7949
7950         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
7951         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
7952         exists but doesn't work.
7953         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
7954         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
7955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
7956         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
7957
7958 2007-03-25  Bruno Haible  <bruno@clisp.org>
7959
7960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
7961         returns inf. Needed on IRIX 6.5.
7962
7963 2007-03-25  Bruno Haible  <bruno@clisp.org>
7964
7965         * tests/test-frexpl.c: Include isnanl-nolibm.h.
7966         (main): Use isnanl instead of x != x idiom.
7967         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
7968
7969         * tests/test-frexp.c: Include isnan.h.
7970         (main): Use isnan instead of x != x idiom.
7971         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
7972
7973 2007-03-25  Bruno Haible  <bruno@clisp.org>
7974
7975         * tests/test-frexp.c (NaN): New function/macro.
7976         (main): Use it instead of 0.0 / 0.0.
7977         * tests/test-isnan.c (NaN): New function/macro.
7978         (main): Use it instead of 0.0 / 0.0.
7979         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
7980         (test_function): Use it instead of 0.0 / 0.0.
7981         * tests/test-vasprintf-posix.c (NaN): New function/macro.
7982         (test_function): Use it instead of 0.0 / 0.0.
7983         * tests/test-snprintf-posix.h (NaN): New function/macro.
7984         (test_function): Use it instead of 0.0 / 0.0.
7985         * tests/test-sprintf-posix.h (NaN): New function/macro.
7986         (test_function): Use it instead of 0.0 / 0.0.
7987         * tests/test-fprintf-posix.h (NaN): New function/macro.
7988         (test_function): Use it instead of 0.0 / 0.0.
7989         * tests/test-printf-posix.h (NaN): New function/macro.
7990         (test_function): Use it instead of 0.0 / 0.0.
7991
7992         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
7993
7994 2007-03-25  Bruno Haible  <bruno@clisp.org>
7995
7996         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
7997
7998 2007-03-25  Bruno Haible  <bruno@clisp.org>
7999
8000         * lib/regexec.c (merge_state_with_log): Make static.
8001
8002 2007-03-25  Bruno Haible  <bruno@clisp.org>
8003
8004         * lib/trigl.c (kernel_rem_pio2): Make static.
8005
8006 2007-03-25  Bruno Haible  <bruno@clisp.org>
8007
8008         * lib/sincosl.c (sincosl_table): Make static.
8009
8010 2007-03-25  Bruno Haible  <bruno@clisp.org>
8011
8012         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
8013         if the compiler does not support C99.
8014
8015 2007-03-25  Bruno Haible  <bruno@clisp.org>
8016
8017         * modules/time (Makefile.am): Ensure all rule action lines start with a
8018         tab.
8019
8020 2007-03-24  Bruno Haible  <bruno@clisp.org>
8021
8022         * modules/tsearch-tests: New file.
8023         * tests/test-tsearch.sh: New file.
8024         * tests/test-tsearch.c: New file, mostly copied from glibc.
8025
8026         * modules/search-tests: New file.
8027         * tests/test-search.c: New file.
8028
8029         * modules/search: New file.
8030         * lib/search_.h: New file, incorporating lib/tsearch.h.
8031         * m4/search_h.m4: New file.
8032         * lib/tsearch.h: Remove file.
8033         * lib/tsearch.c: Include search.h instead of tsearch.h.
8034         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
8035         HAVE_TSEARCH.
8036         * modules/tsearch (Files): Remove lib/tsearch.h.
8037         (Depends-on): Add search.
8038         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
8039         (Include): Change tsearch.h into search.h.
8040
8041 2007-03-24  Bruno Haible  <bruno@clisp.org>
8042
8043         * modules/fpucw: New file.
8044         * lib/fpucw.h: New file.
8045         * lib/frexp.c: Include fpucw.h.
8046         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
8047         (FUNC): Use them.
8048         * lib/printf-frexp.c: Include fpucw.h.
8049         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
8050         (FUNC): Use them.
8051         * lib/vasnprintf.c: Include fpucw.h.
8052         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
8053         'long double' calculations.
8054         * tests/test-frexpl.c: Include fpucw.h.
8055         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
8056         * tests/test-printf-frexpl.c: Include fpucw.h.
8057         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
8058         * modules/frexpl (Depends-on): Add fpucw.
8059         * modules/printf-frexpl (Depends-on): Likewise.
8060         * modules/fprintf-posix (Depends-on): Likewise.
8061         * modules/snprintf-posix (Depends-on): Likewise.
8062         * modules/sprintf-posix (Depends-on): Likewise.
8063         * modules/vasnprintf-posix (Depends-on): Likewise.
8064         * modules/vasprintf-posix (Depends-on): Likewise.
8065         * modules/vfprintf-posix (Depends-on): Likewise.
8066         * modules/vsnprintf-posix (Depends-on): Likewise.
8067         * modules/vsprintf-posix (Depends-on): Likewise.
8068         * modules/frexpl-tests (Depends-on): Likewise.
8069         * modules/printf-frexpl-tests (Depends-on): Likewise.
8070
8071 2007-03-24  Bruno Haible  <bruno@clisp.org>
8072
8073         * lib/float+.h: New file.
8074         * lib/isnan.c: Include float+.h.
8075         (SIZE): New macro.
8076         (FUNC): Compare only SIZE bytes of the value.
8077         * lib/vasnprintf.c: Include float+.h.
8078         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
8079         SIZEOF_LDBL or SIZEOF_DBL bytes.
8080         * modules/isnan-nolibm (Files): Add lib/float+.h.
8081         * modules/isnanl-nolibm (Files): Add lib/float+.h.
8082         * modules/isnanl (Files): Add lib/float+.h.
8083         * modules/vasnprintf (Files): Add lib/float+.h.
8084
8085 2007-03-24  Bruno Haible  <bruno@clisp.org>
8086
8087         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
8088         include isnanl-nolibm.h.
8089
8090 2007-03-24  Bruno Haible  <bruno@clisp.org>
8091
8092         * tests/test-read-file.c (main): Don't produce spurious output for
8093         expected situations. Make the test fail if it encountered unexpected
8094         results.
8095
8096 2007-03-24  Bruno Haible  <bruno@clisp.org>
8097
8098         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
8099         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
8100
8101 2007-03-24  Bruno Haible  <bruno@clisp.org>
8102
8103         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
8104
8105 2007-03-24  Bruno Haible  <bruno@clisp.org>
8106
8107         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
8108         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
8109
8110         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
8111         * modules/utf8-ucs4: Turn into a symbolic link to module
8112         unistr/u8-mbtouc.
8113
8114         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
8115         utf8-ucs4-unsafe.
8116         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
8117         unistr/u8-mbtouc-unsafe.
8118
8119         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
8120         * modules/utf16-ucs4: Turn into a symbolic link to module
8121         unistr/u16-mbtouc.
8122
8123         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
8124         utf16-ucs4-unsafe.
8125         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
8126         unistr/u16-mbtouc-unsafe.
8127
8128         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
8129         * modules/ucs4-utf8: Turn into a symbolic link to module
8130         unistr/u8-ubtomb.
8131
8132         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
8133         * modules/ucs4-utf16: Turn into a symbolic link to module
8134         unistr/u16-ubtomb.
8135
8136 2007-03-24  Bruno Haible  <bruno@clisp.org>
8137
8138         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
8139         Enable the function only if HAVE_INLINE.
8140         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
8141         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
8142         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
8143         Enable the function only if HAVE_INLINE.
8144         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
8145         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
8146         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
8147         Enable the function only if HAVE_INLINE.
8148         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
8149         Enable the function only if HAVE_INLINE.
8150         * modules/utf8-ucs4: Update.
8151         * modules/utf8-ucs4-unsafe: Update.
8152         * modules/utf16-ucs4: Update.
8153         * modules/utf16-ucs4-unsafe: Update.
8154         * modules/ucs4-utf8: Update.
8155         * modules/ucs4-utf16: Update.
8156
8157 2007-03-24  Bruno Haible  <bruno@clisp.org>
8158
8159         * lib/utf8-ucs4.h: Remove file.
8160         * lib/utf8-ucs4-unsafe.h: Remove file.
8161         * lib/utf16-ucs4.h: Remove file.
8162         * lib/utf16-ucs4-unsafe.h: Remove file.
8163         * lib/ucs4-utf8.h: Remove file.
8164         * lib/ucs4-utf16.h: Remove file.
8165         * lib/unistr.h: Include their previous contents.
8166         * m4/utf-ucs4.m4: Remove file.
8167         * m4/ucs4-utf.m4: Remove file.
8168         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
8169         (Depends-on): Add unistr/base.
8170         (configure.ac): Remove gl_UTF_UCS4.
8171         (Makefile.am): Update.
8172         (Include): Change to unistr.h.
8173         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
8174         (Depends-on): Add unistr/base.
8175         (configure.ac): Remove gl_UTF_UCS4.
8176         (Makefile.am): Update.
8177         (Include): Change to unistr.h.
8178         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
8179         (Depends-on): Add unistr/base.
8180         (configure.ac): Remove gl_UTF_UCS4.
8181         (Makefile.am): Update.
8182         (Include): Change to unistr.h.
8183         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
8184         (Depends-on): Add unistr/base.
8185         (configure.ac): Remove gl_UTF_UCS4.
8186         (Makefile.am): Update.
8187         (Include): Change to unistr.h.
8188         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
8189         (Depends-on): Add unistr/base.
8190         (configure.ac): Remove gl_UCS4_UTF.
8191         (Makefile.am): Update.
8192         (Include): Change to unistr.h.
8193         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
8194         (Depends-on): Add unistr/base.
8195         (configure.ac): Remove gl_UCS4_UTF.
8196         (Makefile.am): Update.
8197         (Include): Change to unistr.h.
8198         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
8199         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
8200         utf8-ucs4-unsafe.h.
8201         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
8202         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
8203         utf16-ucs4-unsafe.h.
8204         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
8205         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
8206         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
8207         * lib/unistr/u8-strchr.c: Likewise.
8208         * lib/unistr/u8-strrchr.c: Likewise.
8209         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
8210         * lib/unistr/u16-strchr.c: Likewise.
8211         * lib/unistr/u16-strrchr.c: Likewise.
8212         * lib/striconveh.c: Update.
8213         * lib/linebreak.c: Update.
8214
8215 2007-03-24  Bruno Haible  <bruno@clisp.org>
8216
8217         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
8218         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
8219
8220 2007-03-22  Bruno Haible  <bruno@clisp.org>
8221
8222         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
8223
8224 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
8225
8226         * MODULES.html.sh (File system functions): New module write-any-file.
8227         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
8228         * m4/write-any-file.m4: New files.
8229
8230 2007-03-23  Eric Blake  <ebb9@byu.net>
8231
8232         * gnulib-tool: Rearrange space-tab sequences, since some editors
8233         like to eat them.
8234
8235 2007-03-23  Eric Blake  <ebb9@byu.net>
8236
8237         * lib/version-etc.c (version_etc_va): Update license wording to
8238         be more concise.  Recommended by Richard Stallman.
8239
8240 2007-03-22  Bruno Haible  <bruno@clisp.org>
8241
8242         * lib/poll.c (MSG_PEEK): New fallback definition.
8243
8244 2007-03-22  Bruno Haible  <bruno@clisp.org>
8245
8246         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
8247         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
8248         (main): Update.
8249         Fixes a compilation error on BeOS.
8250
8251 2007-03-22  Bruno Haible  <bruno@clisp.org>
8252
8253         * modules/frexpl-tests: New file.
8254         * tests/test-frexpl.c: New file.
8255
8256         * modules/frexpl: New file.
8257         * m4/frexpl.m4: New file.
8258         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
8259         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
8260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
8261         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
8262         (Depends-on): Add frexpl. Remove isnanl-nolibm.
8263         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
8264
8265 2007-03-22  Bruno Haible  <bruno@clisp.org>
8266
8267         * lib/frexpl.c: Share code with lib/frexp.c.
8268         * modules/mathl (Files): Add lib/frexp.c.
8269         (Depends-on): Add isnanl-nolibm.
8270
8271 2007-03-22  Bruno Haible  <bruno@clisp.org>
8272
8273         * modules/printf-frexp (Files): Add m4/frexp.m4.
8274         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
8275         only if the found frexp function actually works.
8276
8277 2007-03-22  Bruno Haible  <bruno@clisp.org>
8278
8279         * lib/frexp.c: Remove older implementation that uses divisions.
8280
8281 2007-03-21  Bruno Haible  <bruno@clisp.org>
8282
8283         * modules/frexp-tests: New file.
8284         * tests/test-frexp.c: New file.
8285
8286         * modules/frexp: New file.
8287         * lib/frexp.c: New file.
8288         * m4/frexp.m4: New file.
8289         * lib/math_.h (frexp): New declaration.
8290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
8291         REPLACE_FREXP.
8292         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
8293
8294 2007-03-21  Bruno Haible  <bruno@clisp.org>
8295
8296         * modules/isnanl-tests: New file.
8297         * tests/test-isnanl.c: New file.
8298
8299         * modules/isnanl: New file.
8300         * lib/isnanl.h: New file.
8301         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
8302         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
8303         gl_FUNC_ISNANL_WORKS.
8304         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
8305         New macros.
8306
8307 2007-03-21  Bruno Haible  <bruno@clisp.org>
8308
8309         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
8310         lib/isnanl.h.
8311         (Include): Update.
8312         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
8313         * lib/vasnprintf.c: Update.
8314         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
8315         tests/test-isnanl.h, remove tests/test-isnanl.c.
8316         (Makefile.am): Update.
8317         * tests/test-isnanl-nolibm.c: New file.
8318         * tests/test-isnanl.h: New file.
8319         * tests/test-isnanl.c: Remove file.
8320
8321 2007-03-21  Jim Meyering  <jim@meyering.net>
8322
8323         When trying to open ".", treat ESTALE like EACCES.
8324         * lib/savewd.c (savewd_save): Resort to forking not just upon
8325         failure with EACCES, but also when errno is ESTALE.
8326
8327 2007-03-20  Bruno Haible  <bruno@clisp.org>
8328
8329         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
8330         Needed on AIX 5.1. Reported by Matthew Woehlke.
8331
8332 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8333
8334         Suggestions by Bruno Haible:
8335         * lib/acl-internal.h: Include "gettext.h" rather than rolling
8336         our own.
8337         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
8338         * modules/acl (Depends-on): Add gettext.
8339
8340 2007-03-19  Bruno Haible  <bruno@clisp.org>
8341
8342         * modules/iconvme: Remove file.
8343         * lib/iconvme.h: Remove file.
8344         * lib/iconvme.c: Remove file.
8345         * m4/iconvme.m4: Remove file.
8346
8347 2007-03-19  Bruno Haible  <bruno@clisp.org>
8348
8349         * doc/relocatable-maint.texi: Break long shell script line.
8350         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
8351
8352 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8353
8354         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
8355         handle file_has_acl.
8356         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
8357         * lib/acl.c: Move header inclusions and related macro defns into
8358         lib/acl-internal.h.
8359         (S_ISLNK): Remove defn, since that's now done for us.
8360         (file_has_acl): Move to lib/file-has-acl.c.
8361         Call acl_trivial if available.  This is the crucial part of the fix.
8362         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
8363         shared within the library.  Rewrite a bit, partly to make it compatible
8364         with the GNU coding style.
8365         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
8366         Remove unnecessary double-quotes.
8367         Don't test for acl_to_text; the build will catch that.
8368         Replace acl_entries if it doesn't exist and it is needed.
8369         Check for -lsec and acl_trivial (as used on Solaris 10).
8370         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
8371         lib/file-has-acl.c.
8372         (Depends-on): Add sys_stat, for S_ISLNK.
8373
8374 2007-03-19  Ben Pfaff  <blp@gnu.org>
8375
8376         * doc/gnulib.texi: Fix typos.
8377         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
8378
8379 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8380
8381         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
8382         If size is zero here, buf must be zero.
8383
8384 2007-03-19  Simon Josefsson  <simon@josefsson.org>
8385
8386         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
8387         <bruno@clisp.org>.
8388
8389 2007-03-18  Bruno Haible  <bruno@clisp.org>
8390
8391         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
8392         Suggested by Eric Blake.
8393
8394 2007-03-18  Ben Pfaff  <blp@gnu.org>
8395
8396         * doc/relocatable.texi: Recommend using as prefix a directory
8397         that does not exist and will never be created.  Based on
8398         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
8399         and others.
8400
8401 2007-03-17  Bruno Haible  <bruno@clisp.org>
8402
8403         * lib/fchownat.c: Include lchown.h.
8404
8405 2007-03-17  Bruno Haible  <bruno@clisp.org>
8406
8407         Fix endless loop when the given allocated size was > INT_MAX.
8408         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
8409         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
8410         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
8411         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
8412         * lib/sprintf.c (sprintf): Likewise.
8413
8414 2007-03-17  Bruno Haible  <bruno@clisp.org>
8415
8416         * tests/test-argp-2.sh (func_compare): Output a context diff.
8417
8418 2007-03-17  Bruno Haible  <bruno@clisp.org>
8419
8420         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
8421         locale's decimal-point character.
8422
8423 2007-03-17  Bruno Haible  <bruno@clisp.org>
8424
8425         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
8426         before comparing it. Needed because on some platforms (e.g. x86) a
8427         'long double' occupies less bytes than sizeof (long double).
8428
8429 2007-03-17  Bruno Haible  <bruno@clisp.org>
8430
8431         * tests/test-crc.c (main): Make printf statements 64-bit clean.
8432         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
8433         * tests/test-getaddrinfo.c (simple): Likewise.
8434         * tests/test-read-file.c (main): Likewise.
8435
8436 2007-03-17  Bruno Haible  <bruno@clisp.org>
8437
8438         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
8439
8440 2007-03-17  Bruno Haible  <bruno@clisp.org>
8441
8442         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
8443         unused variable.
8444
8445 2007-03-17  Bruno Haible  <bruno@clisp.org>
8446
8447         * tests/test-c-strcasecmp.c: Include c-strcase.h.
8448         * tests/test-c-strncasecmp.c: Likewise.
8449
8450 2007-03-17  Bruno Haible  <bruno@clisp.org>
8451
8452         * modules/stdlib (Depends-on): Add unistd.
8453         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
8454         Needed for MacOS X 10.3.
8455
8456 2007-03-17  Bruno Haible  <bruno@clisp.org>
8457
8458         * lib/unistr/u-strdup.h: Include <stdlib.h>.
8459
8460 2007-03-17  Bruno Haible  <bruno@clisp.org>
8461
8462         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
8463
8464 2007-03-17  Bruno Haible  <bruno@clisp.org>
8465
8466         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
8467         to reflect files copied from gnulib (with or without modifications).
8468         Suggested by Jim Meyering.
8469
8470 2007-03-17  Eric Blake  <ebb9@byu.net>
8471
8472         * NEWS: Document stdlib change from 2007-02-18.
8473
8474 2007-03-17  Jim Meyering  <jim@meyering.net>
8475
8476         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
8477         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
8478         someone uses a name containing shell meta-characters.
8479         Reported by Alfred M. Szmidt.
8480
8481         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
8482
8483 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
8484
8485         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
8486         and copy gettext configuration files only if configure.ac contains
8487         a use of AM_GNU_GETTEXT_VERSION.
8488
8489 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
8490
8491         * build-aux/bootstrap (gnulib_name): New variable.
8492         (gnulib_tool_options): Use it.
8493
8494 2007-03-13  Simon Josefsson  <simon@josefsson.org>
8495
8496         * tests/test-des.c: Use new namespace.
8497
8498 2007-03-15  Bruno Haible  <bruno@clisp.org>
8499
8500         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
8501         Reported by James Youngman <jay@gnu.org>.
8502
8503 2007-03-15  Bruno Haible  <bruno@clisp.org>
8504
8505         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
8506         declared prototype. Needed with cc on OSF/1 5.1.
8507
8508 2007-03-15  Bruno Haible  <bruno@clisp.org>
8509
8510         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
8511         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
8512         (struct gl_list_implementation): Add dispose_fn argument to the
8513         'create_empty', 'create' methods.
8514         (struct gl_list_impl_base): Add field 'dispose_fn'.
8515         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
8516         argument.
8517         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
8518         dispose_fn argument.
8519         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
8520         dispose_fn on the dropped values.
8521         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
8522         dispose_fn argument.
8523         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
8524         dropped values.
8525         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
8526         (gl_tree_remove_node): Call dispose_fn on the dropped value.
8527         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
8528         (gl_tree_remove_node): Call dispose_fn on the dropped value.
8529         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
8530         argument.
8531         (gl_tree_list_free): Call dispose_fn on the dropped values.
8532         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
8533         the dropped values.
8534         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
8535         Add dispose_fn argument.
8536         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
8537         Call dispose_fn on the dropped values.
8538         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
8539         Add dispose_fn argument.
8540         (gl_sublist_create): Initialize the 'dispose_fn' field.
8541         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
8542         * tests/test-array_list.c (main): Update.
8543         * tests/test-carray_list.c (main): Update.
8544         * tests/test-avltree_list.c (main): Update.
8545         * tests/test-rbtree_list.c (main): Update.
8546         * tests/test-avltreehash_list.c (main): Update.
8547         * tests/test-rbtreehash_list.c (main): Update.
8548         * tests/test-linked_list.c (main): Update.
8549         * tests/test-linkedhash_list.c (main): Update.
8550         * tests/test-array_oset.c (main): Update.
8551
8552 2007-03-15  Bruno Haible  <bruno@clisp.org>
8553
8554         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
8555         (gl_oset_create_empty): Add dispose_fn argument.
8556         (struct gl_oset_implementation): Add dispose_fn argument to
8557         'create_empty' method.
8558         (struct gl_oset_impl_base): Add dispose_fn field.
8559         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
8560         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
8561         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
8562         values.
8563         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
8564         (gl_tree_oset_free): Call dispose_fn on the dropped values.
8565         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
8566         dropped value.
8567         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
8568         dropped value.
8569         * tests/test-array_oset.c (main): Update.
8570         * tests/test-avltree_oset.c (main): Update.
8571         * tests/test-rbtree_oset.c (main): Update.
8572         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
8573
8574 2007-03-13  Bruno Haible  <bruno@clisp.org>
8575
8576         * tests/test-stdbool.c (i): Update after last patch.
8577
8578 2007-03-12  Bruno Haible  <bruno@clisp.org>
8579
8580         * lib/quotearg.c: Include <wctype.h> early, before the definition of
8581         the iswprint macro. Needed on Solaris 2.5.1.
8582
8583 2007-03-12  Bruno Haible  <bruno@clisp.org>
8584
8585         * tests/test-printf-frexp.c (main): Declare x as volatile.
8586
8587 2007-03-12  Simon Josefsson  <simon@josefsson.org>
8588
8589         * doc/gnulib.texi (Build robot for gnulib): New section.
8590
8591 2007-03-12  Jim Meyering  <jim@meyering.net>
8592
8593         * build-aux/bootstrap: New file.
8594         * build-aux/bootstrap.conf: New file, from coreutils.
8595
8596 2007-03-11  Bruno Haible  <bruno@clisp.org>
8597
8598         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
8599
8600 2007-03-12  Simon Josefsson  <simon@josefsson.org>
8601
8602         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
8603         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
8604         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
8605
8606 2007-03-11  Bruno Haible  <bruno@clisp.org>
8607
8608         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
8609         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
8610
8611 2007-03-11  Bruno Haible  <bruno@clisp.org>
8612
8613         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
8614         formula. Needed for SunPRO C 5.0.
8615
8616 2007-03-11  Bruno Haible  <bruno@clisp.org>
8617
8618         * modules/long-options (Depends-on): Add getopt.
8619
8620 2007-03-11  Bruno Haible  <bruno@clisp.org>
8621
8622         * modules/modechange (Depends-on): Add stdbool.
8623
8624 2007-03-11  Bruno Haible  <bruno@clisp.org>
8625
8626         * modules/i-ring (Depends-on): Add stdbool.
8627
8628 2007-03-11  Bruno Haible  <bruno@clisp.org>
8629
8630         * modules/gc-des (Depends-on): Add stdbool.
8631
8632 2007-03-11  Bruno Haible  <bruno@clisp.org>
8633
8634         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
8635
8636 2007-03-11  Bruno Haible  <bruno@clisp.org>
8637
8638         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
8639
8640 2007-03-11  Bruno Haible  <bruno@clisp.org>
8641
8642         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
8643
8644 2007-03-11  Bruno Haible  <bruno@clisp.org>
8645
8646         * lib/vasnprintf.c (sprintf): Undefine.
8647
8648 2007-03-11  Bruno Haible  <bruno@clisp.org>
8649
8650         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
8651         initializers in SunPRO C and Compaq C compilers.
8652
8653 2007-03-11  Bruno Haible  <bruno@clisp.org>
8654
8655         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
8656         decrementing code ANSI C compliant.
8657
8658 2007-03-11  Bruno Haible  <bruno@clisp.org>
8659
8660         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
8661         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
8662
8663 2007-03-11  Bruno Haible  <bruno@clisp.org>
8664
8665         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
8666         <stdbool.h> substitute doesn't pass.
8667
8668 2007-03-11  Bruno Haible  <bruno@clisp.org>
8669
8670         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
8671
8672 2007-03-11  Bruno Haible  <bruno@clisp.org>
8673
8674         * gnulib-tool (func_create_megatestdir): Create also an autobuild
8675         script, for submission to autobuild.josefsson.org.
8676
8677 2007-03-10  Bruno Haible  <bruno@clisp.org>
8678
8679         * modules/canonicalize-lgpl-tests: New file.
8680         * tests/test-canonicalize-lgpl.sh: New file.
8681         * tests/test-canonicalize-lgpl.c: New file.
8682
8683         * modules/c-strcase-tests: New file.
8684         * tests/test-c-strcase.sh: New file.
8685         * tests/test-c-strcasecmp.c: New file.
8686         * tests/test-c-strncasecmp.c: New file.
8687
8688         * modules/atexit-tests: New file.
8689         * tests/test-atexit.sh: New file.
8690         * tests/test-atexit.c: New file.
8691
8692 2007-03-10  Bruno Haible  <bruno@clisp.org>
8693
8694         * tests/test-binary-io.sh: Use temporary filenames that are not so
8695         likely to clash with those of other tests (in a parallel make).
8696         * tests/test-binary-io.c: Likewise.
8697
8698 2007-03-10  Bruno Haible  <bruno@clisp.org>
8699
8700         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
8701         fallback; use #error instead.
8702         Suggested by Simon Josefsson.
8703
8704 2007-03-10  Bruno Haible  <bruno@clisp.org>
8705
8706         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
8707         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
8708         first and the last.
8709
8710 2007-03-10  Bruno Haible  <bruno@clisp.org>
8711
8712         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
8713
8714 2007-03-10  Bruno Haible  <bruno@clisp.org>
8715
8716         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
8717         "make distcheck".
8718         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
8719         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
8720         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
8721
8722 2007-03-10  Bruno Haible  <bruno@clisp.org>
8723
8724         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
8725         variable.
8726         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
8727         variable.
8728
8729 2007-03-09  Eric Blake  <ebb9@byu.net>
8730         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
8731
8732         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
8733         types are not being provided by gnulib.
8734         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
8735         types are supported.
8736
8737 2007-03-10  Bruno Haible  <bruno@clisp.org>
8738
8739         * lib/stdio_.h (__attribute__): New macro.
8740         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
8741         vsprintf): Specify __attribute__ __format__ for GCC.
8742         Suggested by Eric Blake.
8743
8744 2007-03-09  Bruno Haible  <bruno@clisp.org>
8745
8746         * modules/printf-posix-tests: New file.
8747         * tests/test-printf-posix.sh: New file.
8748         * tests/test-printf-posix.c: New file.
8749
8750         * modules/printf-posix: New file.
8751         * lib/printf.c: New file.
8752         * m4/printf-posix-rpl.m4: New file.
8753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
8754         REPLACE_PRINTF.
8755         * lib/stdio_.h (printf): New declaration.
8756         (format, __format__, ____printf____, ____scanf____, ____strftime____,
8757         ____strfmon____): New macros.
8758         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
8759         REPLACE_PRINTF.
8760
8761 2007-03-09  Bruno Haible  <bruno@clisp.org>
8762
8763         * tests/test-vasnprintf-posix2.sh: New file.
8764         * tests/test-vasnprintf-posix2.c: New file.
8765         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
8766         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
8767         (Makefile.am): Activate test-vasnprintf-posix2.sh.
8768
8769         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
8770         a locale dependent decimal point, rather than always '.'.
8771
8772 2007-03-09  Eric Blake  <ebb9@byu.net>
8773
8774         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
8775         spite of platforms like Tandem/NSK that define it to -1.
8776
8777 2007-03-08  Bruno Haible  <bruno@clisp.org>
8778
8779         * modules/vprintf-posix-tests: New file.
8780         * tests/test-vprintf-posix.sh: New file.
8781         * tests/test-vprintf-posix.c: New file.
8782         * tests/test-printf-posix.h: New file.
8783
8784         * modules/vprintf-posix: New file.
8785         * lib/vprintf.c: New file.
8786         * m4/vprintf-posix.m4: New file.
8787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
8788         REPLACE_VPRINTF.
8789         * lib/stdio_.h (vprintf): New declaration.
8790         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
8791         REPLACE_VPRINTF.
8792
8793 2007-03-08  Bruno Haible  <bruno@clisp.org>
8794
8795         * modules/fprintf-posix-tests: New file.
8796         * tests/test-fprintf-posix.sh: New file.
8797         * tests/test-fprintf-posix.c: New file.
8798
8799         * modules/fprintf-posix: New file.
8800         * lib/fprintf.c: New file.
8801         * m4/fprintf-posix.m4: New file.
8802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
8803         REPLACE_FPRINTF.
8804         * lib/stdio_.h (fprintf): New declaration.
8805         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
8806         REPLACE_FPRINTF.
8807
8808 2007-03-08  Bruno Haible  <bruno@clisp.org>
8809
8810         * modules/vfprintf-posix-tests: New file.
8811         * tests/test-vfprintf-posix.sh: New file.
8812         * tests/test-vfprintf-posix.c: New file.
8813         * tests/test-fprintf-posix.h: New file.
8814         * tests/test-fprintf-posix.out: New file.
8815
8816         * modules/vfprintf-posix: New file.
8817         * lib/vfprintf.c: New file.
8818         * m4/vfprintf-posix.m4: New file.
8819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
8820         REPLACE_VFPRINTF.
8821         * lib/stdio_.h (vfprintf): New declaration.
8822         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
8823         REPLACE_VFPRINTF.
8824
8825 2007-03-08  Bruno Haible  <bruno@clisp.org>
8826
8827         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
8828
8829 2007-03-08  Bruno Haible  <bruno@clisp.org>
8830
8831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
8832         instead of 'expr' invocations.
8833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8838         Suggested by Paul Eggert.
8839
8840 2007-03-08  Bruno Haible  <bruno@clisp.org>
8841
8842         * modules/fseterr-tests: New file.
8843         * tests/test-fseterr.c: New file.
8844
8845         * modules/fseterr: New file.
8846         * lib/fseterr.h: New file.
8847         * lib/fseterr.c: New file.
8848
8849 2007-03-08  Bruno Haible  <bruno@clisp.org>
8850
8851         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
8852         * lib/getopt_.h: Likewise.
8853         * lib/mbswidth.h: Likewise.
8854         * lib/setenv.h: Likewise.
8855         * lib/vasnprintf.h: Likewise.
8856         * lib/vasprintf.h: Likewise.
8857         * lib/verror.h: Likewise.
8858         * lib/xsetenv.h: Likewise.
8859         * lib/xvasprintf.h: Likewise.
8860
8861 2007-03-08  Jim Meyering  <jim@meyering.net>
8862
8863         * users.txt: Add parted.
8864
8865         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
8866
8867 2007-03-07  Bruno Haible  <bruno@clisp.org>
8868
8869         * m4/printf.m4: Make the shell script snippets copy&pastable.
8870
8871 2007-03-02  Bruno Haible  <bruno@clisp.org>
8872
8873         * lib/netinet_in_.h: New file.
8874         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
8875         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
8876         * modules/netinet_in (Files): Add lib/netinet_in_.h.
8877         (Depends-on): Add absolute-header.
8878         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
8879         into netinet/in.h.
8880
8881 2007-03-03  Bruno Haible  <bruno@clisp.org>
8882
8883         * lib/sys_select_.h: New file.
8884         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
8885         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
8886         * modules/sys_select (Files): Add lib/sys_select_.h.
8887         (Depends-on): Add absolute-header.
8888         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
8889         into sys/select.h.
8890
8891 2007-03-02  Bruno Haible  <bruno@clisp.org>
8892
8893         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
8894         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
8895         values.
8896         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
8897         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
8898         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
8899         * modules/sys_socket (Depends-on): Add absolute-header.
8900         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
8901         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
8902         (Include): Remove requirement of inclusion of <sys/types.h>.
8903
8904 2007-03-02  Bruno Haible  <bruno@clisp.org>
8905
8906         * lib/byteswap_.h (bswap_32): Fix formula.
8907
8908 2007-03-06  Bruno Haible  <bruno@clisp.org>
8909
8910         * modules/sprintf-posix-tests: New file.
8911         * tests/test-sprintf-posix.c: New file.
8912
8913         * modules/sprintf-posix: New file.
8914         * lib/sprintf.c: New file.
8915         * m4/sprintf-posix.m4: New file.
8916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
8917         REPLACE_SPRINTF.
8918         * lib/stdio_.h (sprintf): New declaration.
8919         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
8920         REPLACE_SPRINTF.
8921
8922 2007-03-06  Bruno Haible  <bruno@clisp.org>
8923
8924         * modules/vsprintf-posix-tests: New file.
8925         * tests/test-vsprintf-posix.c: New file.
8926         * tests/test-sprintf-posix.h: New file.
8927
8928         * modules/vsprintf-posix: New file.
8929         * lib/vsprintf.c: New file.
8930         * m4/vsprintf-posix.m4: New file.
8931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
8932         REPLACE_VSPRINTF.
8933         * lib/stdio_.h (vsprintf): New declaration.
8934         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
8935         REPLACE_VSPRINTF.
8936
8937 2007-03-06  Bruno Haible  <bruno@clisp.org>
8938
8939         * modules/vsnprintf (Depend-on): Remove minmax.
8940
8941 2007-03-06  Bruno Haible  <bruno@clisp.org>
8942
8943         * modules/snprintf-posix-tests: New file.
8944         * tests/test-snprintf-posix.c: New file.
8945
8946         * modules/snprintf-posix: New file.
8947         * m4/snprintf-posix.m4: New file.
8948         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
8949         gl_FUNC_SNPRINTF.
8950         (gl_FUNC_SNPRINTF): Invoke it.
8951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
8952         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
8953         is set.
8954         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
8955
8956 2007-03-06  Bruno Haible  <bruno@clisp.org>
8957
8958         * modules/vsnprintf-posix-tests: New file.
8959         * tests/test-vsnprintf-posix.c: New file.
8960         * tests/test-snprintf-posix.h: New file.
8961
8962         * modules/vsnprintf-posix: New file.
8963         * m4/vsnprintf-posix.m4: New file.
8964         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
8965         gl_FUNC_VSNPRINTF.
8966         (gl_FUNC_VSNPRINTF): Invoke it.
8967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
8968         * lib/stdio_.h (vsnprintf): Define as a replacement if
8969         REPLACE_VSNPRINTF is set.
8970         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
8971
8972 2007-03-06  Bruno Haible  <bruno@clisp.org>
8973
8974         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
8975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
8976
8977 2007-03-06  Bruno Haible  <bruno@clisp.org>
8978
8979         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
8980         (asinl): Declare also if HAVE_DECL_ASINL is set.
8981         (atanl): Declare also if HAVE_DECL_ATANL is set.
8982         (ceill): Declare also if HAVE_DECL_CEILL is set.
8983         (cosl): Declare also if HAVE_DECL_COSL is set.
8984         (expl): Declare also if HAVE_DECL_EXPL is set.
8985         (floorl): Declare also if HAVE_DECL_FLOORL is set.
8986         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
8987         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
8988         (logl): Declare also if HAVE_DECL_LOGL is set.
8989         (sinl): Declare also if HAVE_DECL_SINL is set.
8990         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
8991         (tanl): Declare also if HAVE_DECL_TANL is set.
8992         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
8993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
8994         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
8995         declaration of frexpl, ldexpl.
8996         * modules/printf-frexpl (Depends-on): Add math.
8997         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
8998
8999 2007-03-05  Bruno Haible  <bruno@clisp.org>
9000
9001         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
9002         frexpl and ldexpl are declared.
9003         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
9004
9005 2007-03-05  Bruno Haible  <bruno@clisp.org>
9006
9007         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
9008         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
9009
9010 2007-03-05  Bruno Haible  <bruno@clisp.org>
9011
9012         * lib/stdio_.h: Include <stddef.h>.
9013
9014 2007-03-05  Bruno Haible  <bruno@clisp.org>
9015
9016         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
9017
9018 2007-03-05  Bruno Haible  <bruno@clisp.org>
9019
9020         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
9021         NetBSD 4, from Ralf Wildenhues.
9022
9023 2007-03-04  Bruno Haible  <bruno@clisp.org>
9024
9025         * lib/vasprintf.h: Update #if logic for the case when the functions
9026         exist but are overridden.
9027
9028 2007-03-04  Bruno Haible  <bruno@clisp.org>
9029
9030         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
9031         implementations: glibc-2.4 and MacOS X 10.3.
9032         * tests/test-vasnprintf-posix.c (test_function): Test also the case
9033         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
9034         * tests/test-vasprintf-posix.c (test_function): Likewise.
9035
9036 2007-03-04  Bruno Haible  <bruno@clisp.org>
9037
9038         * modules/vasprintf-posix-tests: New file.
9039         * tests/test-vasprintf-posix.c: New file.
9040
9041         * modules/vasprintf-posix: New file.
9042         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
9043         defined.
9044         * m4/vasprintf-posix.m4: New file.
9045         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
9046         gl_FUNC_VASPRINTF.
9047         (gl_FUNC_VASPRINTF): Invoke it.
9048         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
9049         here.
9050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
9051
9052 2007-03-04  Bruno Haible  <bruno@clisp.org>
9053
9054         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
9055         REPLACE_GETTIMEOFDAY.
9056         * modules/sys_time (Makefile.am): Likewise.
9057         * m4/sys_time_h.m4: Likewise.
9058         * m4/gettimeofday.m4: Likewise.
9059
9060 2007-03-04  Bruno Haible  <bruno@clisp.org>
9061
9062         * modules/vasnprintf-posix-tests: New file.
9063         * tests/test-vasnprintf-posix.c: New file.
9064
9065         * modules/vasnprintf-posix: New file.
9066         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
9067         printf-frexpl.h.
9068         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
9069         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
9070         REPLACE_VASNPRINTF is defined.
9071         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
9072         gl_FUNC_VASNPRINTF.
9073         (gl_FUNC_VASNPRINTF): Invoke it.
9074         * m4/vasnprintf-posix.m4: New file.
9075         * m4/printf.m4: New file.
9076
9077 2007-03-04  Bruno Haible  <bruno@clisp.org>
9078
9079         Compile progreloc.c only if --enable-relocatable is specified.
9080         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
9081         if --enable-relocatable was specified.
9082         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
9083         lib_SOURCES.
9084
9085 2007-03-04  Jim Meyering  <jim@meyering.net>
9086
9087         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
9088         Use it consistently, rather than enumerating errno constants.
9089
9090 2007-03-04  Bruno Haible  <bruno@clisp.org>
9091
9092         * modules/xvasprintf-tests: New file.
9093         * tests/test-xvasprintf.c: New file.
9094
9095         * modules/vasprintf-tests: New file.
9096         * tests/test-vasprintf.c: New file.
9097
9098         * modules/vasnprintf-tests: New file.
9099         * tests/test-vasnprintf.c: New file.
9100
9101         * modules/vsnprintf-tests: New file.
9102         * tests/test-vsnprintf.c: New file.
9103
9104         * modules/snprintf-tests: New file.
9105         * tests/test-snprintf.c: New file.
9106
9107 2007-03-04  Bruno Haible  <bruno@clisp.org>
9108
9109         Compile relocatable.c only if --enable-relocatable is specified.
9110         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
9111         gl_RELOCATABLE_LIBRARY.
9112         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
9113         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
9114         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
9115         gl_RELOCATABLE_LIBRARY.
9116         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
9117         (Makefile.am): Remove lib_SOURCES.
9118         * modules/relocatable-lib-lgpl (configure.ac): Invoke
9119         gl_RELOCATABLE_LIBRARY.
9120         (Makefile.am): Remove lib_SOURCES.
9121         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
9122         always.
9123         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9124         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
9125
9126 2007-03-04  Bruno Haible  <bruno@clisp.org>
9127
9128         * modules/argmatch-tests: New file.
9129         * tests/test-argmatch.c: New file.
9130
9131         * tests/test-allocsa.c (main): Halve the number of loop runs.
9132
9133         * modules/alloca-opt-tests: New file.
9134         * tests/test-alloca-opt.c: New file.
9135
9136 2007-03-04  Jim Meyering  <jim@meyering.net>
9137
9138         Work around difference between Linux ACLs and Solaris 10 ZFS.
9139         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
9140         for EINVAL.
9141
9142 2007-03-03  Bruno Haible  <bruno@clisp.org>
9143
9144         * modules/relocatable-prog (Depends-on): Add back progreloc's
9145         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
9146
9147 2007-03-03  Bruno Haible  <bruno@clisp.org>
9148
9149         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
9150         * modules/relocatable-lib: New file.
9151
9152 2007-03-03  Bruno Haible  <bruno@clisp.org>
9153
9154         * modules/relocatable-prog: Renamed from modules/relocatable.
9155         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
9156
9157 2007-03-03  Bruno Haible  <bruno@clisp.org>
9158
9159         * modules/relocatable-script (Files): Add doc/relocatable.texi,
9160         m4/relocatable-lib.m4.
9161         (Depends-on): Remove 'relocatable'.
9162         (configure.ac): Add gl_RELOCATABLE_NOP.
9163
9164 2007-03-03  Bruno Haible  <bruno@clisp.org>
9165
9166         * modules/relocatable-prog-wrapper: New file.
9167         * modules/relocatable (Depends-on): Add it. Remove all other
9168         dependencies except progname.
9169         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
9170
9171         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
9172         (gl_FUNC_STRERROR): Nop.
9173         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
9174
9175         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
9176         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
9177
9178         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
9179         (gl_FUNC_READLINK): Update.
9180
9181         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
9182
9183 2007-03-03  Bruno Haible  <bruno@clisp.org>
9184
9185         * lib/xreadlink.c: Include <unistd.h> unconditionally.
9186         * modules/xreadlink (Depends-on): Add unistd.
9187         * modules/xreadlink-with-size (Depends-on): Likewise.
9188
9189 2007-03-03  Bruno Haible  <bruno@clisp.org>
9190
9191         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
9192         extracted from gt_FUNC_SETENV.
9193         (gt_FUNC_SETENV): Remove macro.
9194         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
9195         remove gt_FUNC_SETENV.
9196
9197 2007-03-03  Bruno Haible  <bruno@clisp.org>
9198
9199         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
9200         ENABLE_RELOCATABLE here.
9201         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
9202
9203 2007-03-03  Bruno Haible  <bruno@clisp.org>
9204
9205         * modules/rbtreehash-list-tests (Depends-on): Add progname.
9206         * tests/test-rbtreehash_list.c: Include progname.h.
9207         (main): Call set_program_name.
9208
9209         * modules/rbtree-oset-tests (Depends-on): Add progname.
9210         * tests/test-rbtree_oset.c: Include progname.h.
9211         (main): Call set_program_name.
9212
9213         * modules/rbtree-list-tests (Depends-on): Add progname.
9214         * tests/test-rbtree_list.c: Include progname.h.
9215         (main): Call set_program_name.
9216
9217         * modules/linked-list-tests (Depends-on): Add progname.
9218         * tests/test-linked_list.c: Include progname.h.
9219         (main): Call set_program_name.
9220
9221 2007-03-03  Bruno Haible  <bruno@clisp.org>
9222
9223         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
9224         All uses of __restrict changed to _Restrict_.
9225         * lib/glob_.h (__restrict): Remove macro.
9226
9227 2007-03-02  Bruno Haible  <bruno@clisp.org>
9228
9229         * modules/gettext (configure.ac): Require gettext infrastructure
9230         from version 0.16.1.
9231
9232 2007-03-02  Bruno Haible  <bruno@clisp.org>
9233
9234         * modules/linkedhash-list-tests (Depends-on): Add progname.
9235         * tests/test-linkedhash_list.c: Include progname.h.
9236         (main): Call set_program_name.
9237
9238         * modules/carray-list-tests (Depends-on): Add progname.
9239         * tests/test-carray_list.c: Include progname.h.
9240         (main): Call set_program_name.
9241
9242         * modules/avltreehash-list-tests (Depends-on): Add progname.
9243         * tests/test-avltreehash_list.c: Include progname.h.
9244         (main): Call set_program_name.
9245
9246         * modules/avltree-oset-tests (Depends-on): Add progname.
9247         * tests/test-avltree_oset.c: Include progname.h.
9248         (main): Call set_program_name.
9249
9250         * modules/avltree-list-tests (Depends-on): Add progname.
9251         * tests/test-avltree_list.c: Include progname.h.
9252         (main): Call set_program_name.
9253
9254         * modules/array-oset-tests (Depends-on): Add progname.
9255         * tests/test-array_oset.c: Include progname.h.
9256         (main): Call set_program_name.
9257
9258         * modules/array-list-tests (Depends-on): Add progname.
9259         * tests/test-array_list.c: Include progname.h.
9260         (main): Call set_program_name.
9261
9262         * modules/argp-tests (Depends-on): Add progname.
9263         * tests/test-argp.c: Include argp.h first. Include progname.h.
9264         (main): Call set_program_name.
9265
9266 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
9267
9268         * doc/gnulib-tool.texi (Initial import): Reword description of
9269         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
9270         limited effect even if defined after the first system include.
9271
9272 2007-03-01  Bruno Haible  <bruno@clisp.org>
9273
9274         * build-aux/config.libpath: Update to libtool-1.5.22.
9275         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9276
9277 2007-03-01  Bruno Haible  <bruno@clisp.org>
9278
9279         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
9280         foo_CFLAGS.
9281         Reported by Ralf Wildenhues.
9282
9283 2007-03-01  Bruno Haible  <bruno@clisp.org>
9284
9285         * build-aux/install-reloc: Remove object files left over by some
9286         compilers.
9287         Reported by Ralf Wildenhues.
9288
9289 2007-03-01  Bruno Haible  <bruno@clisp.org>
9290
9291         * build-aux/install-reloc: Break long lines.
9292
9293 2007-03-01  Bruno Haible  <bruno@clisp.org>
9294
9295         * doc/relocatable.texi: Document that it may not work on OpenBSD.
9296         Reported by Ralf Wildenhues.
9297
9298 2007-03-01  Bruno Haible  <bruno@clisp.org>
9299
9300         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
9301         include ordering constraints.
9302
9303 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
9304
9305         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
9306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
9307         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
9308         as another example.
9309         * lib/time_.h: Fix misspelling.
9310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
9311         Require gl_HEADER_TIME_H_DEFAULTS.
9312         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
9313         * m4/time_r.m4 (gl_TIME_R): Likewise.
9314         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
9315
9316 2007-03-01  Bruno Haible  <bruno@clisp.org>
9317
9318         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
9319         * m4/utimens.m4 (gl_UTIMENS): Likewise.
9320
9321 2007-03-01  Jim Meyering  <jim@meyering.net>
9322
9323         * modules/xreadlink (Maintainer): Add my name.
9324         * modules/xreadlink-with-size (Depends-on): Alphabetize.
9325
9326 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
9327             Bruno Haible  <bruno@clisp.org>
9328
9329         * build-aux/install-reloc: Compile also c-ctype.c.
9330         * build-aux/relocatable.sh.in: New file.
9331         * doc/relocatable.texi: New file.
9332         * doc/relocatable-maint.texi: New file.
9333         * doc/gnulib.texi: Include relocatable-maint.texi.
9334         * lib/progreloc.c: Include unistd.h unconditionally.
9335         * lib/relocwrapper.c: Include unistd.h unconditionally.
9336         Include c-ctype.h.
9337         (add_dotbin): Use c_tolower.
9338         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
9339         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
9340         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
9341         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
9342         to m4/relocatable-lib.m4.
9343         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
9344         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
9345         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
9346         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
9347         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
9348         * modules/relocatable: New file.
9349         * modules/relocatable-lib: New file.
9350         * modules/relocatable-script: New file.
9351
9352 2007-02-28  Bruno Haible  <bruno@clisp.org>
9353
9354         Import --enable-relocatable infrastructure.
9355         * build-aux/config.libpath: New file, from GNU gettext.
9356         * build-aux/install-reloc: New file, from GNU gettext.
9357         * build-aux/reloc-ldflags: New file, from GNU gettext.
9358         * lib/relocatable.h: New file, from GNU gettext.
9359         * lib/relocatable.c: New file, from GNU gettext.
9360         * lib/relocwrapper.c: New file, from GNU gettext.
9361         * m4/relocatable.m4: New file, from GNU gettext.
9362
9363 2007-02-28  Bruno Haible  <bruno@clisp.org>
9364
9365         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
9366
9367         * modules/xreadlink: New file, from GNU gettext with modifications.
9368         * lib/xreadlink.c: New file, from GNU gettext.
9369         * lib/xreadlink.h: Add comments.
9370         (xreadlink): New declaration.
9371
9372         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
9373         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
9374         lib/xreadlink-with-size.c.
9375         (configure.ac): Remove gl_XREADLINK invocation.
9376         (Makefile.am): Augment lib_SOURCES.
9377         * m4/xreadlink.m4: Remove file.
9378         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
9379         (xreadlink_with_size): Renamed from xreadink.
9380         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
9381         * modules/canonicalize (Depends-on): Replace xreadlink with
9382         xreadlink-with-size.
9383         * lib/canonicalize.c (canonicalize_filename_mode): Update.
9384
9385 2007-02-25  Jim Meyering  <jim@meyering.net>
9386
9387         * build-aux/announce-gen: When complaining about excess arguments,
9388         list them.
9389
9390 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9391
9392         * README: Document signed integer overflow situation more
9393         accurately.
9394
9395 2007-02-25  Bruno Haible  <bruno@clisp.org>
9396
9397         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
9398         'a' or 'A' conversion.
9399
9400 2007-02-25  Bruno Haible  <bruno@clisp.org>
9401
9402         * modules/filename: Renamed from modules/pathname.
9403         (Files): Replace lib/pathname.h with lib/filename.h. Replace
9404         lib/concatpath.c with lib/concat-filename.c.
9405         (Makefile.am): Update.
9406         (Include): Replace pathname.h with filename.h.
9407         * lib/filename.h: Renamed from lib/pathname.h.
9408         (concatenated_filename): Renamed from concatenated_pathname.
9409         * lib/concat-filename.c: Renamed from lib/concatpath.c.
9410         (concatenated_filename): Renamed from concatenated_pathname.
9411         * lib/findprog.c: Include filename.h instead of pathname.h.
9412         (find_in_path): Update.
9413         * lib/javacomp.c: Include filename.h instead of pathname.h.
9414         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
9415         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
9416         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
9417         is_oldgcj_14_13_usable, is_javac_usable): Update.
9418         * lib/javaexec.c: Include filename.h instead of pathname.h.
9419         (execute_java_class): Update.
9420         * modules/findprog: Update.
9421         * modules/javacomp: Update.
9422         * modules/javaexec: Update.
9423         * MODULES.html.sh (File system functions): Add 'filename', remove
9424         'pathname'.
9425
9426 2007-02-25  Bruno Haible  <bruno@clisp.org>
9427
9428         * modules/printf-frexpl-tests: New file.
9429         * tests/test-printf-frexpl.c: New file.
9430
9431         * modules/printf-frexpl: New file.
9432         * lib/printf-frexpl.h: New file.
9433         * lib/printf-frexpl.c: New file.
9434         * m4/printf-frexpl.m4: New file.
9435
9436 2007-02-25  Bruno Haible  <bruno@clisp.org>
9437
9438         * modules/printf-frexp-tests: New file.
9439         * tests/test-printf-frexp.c: New file.
9440
9441         * modules/printf-frexp: New file.
9442         * lib/printf-frexp.h: New file.
9443         * lib/printf-frexp.c: New file.
9444         * m4/printf-frexp.m4: New file.
9445
9446 2007-02-25  Bruno Haible  <bruno@clisp.org>
9447
9448         Assume automake >= 1.10 for the tests.
9449         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
9450         * modules/arctwo-tests: Likewise.
9451         * modules/argp-tests: Likewise.
9452         * modules/avltree-list-tests: Likewise.
9453         * modules/avltree-oset-tests: Likewise.
9454         * modules/avltreehash-list-tests: Likewise.
9455         * modules/carray-list-tests: Likewise.
9456         * modules/crc-tests: Likewise.
9457         * modules/des-tests: Likewise.
9458         * modules/gc-arcfour-tests: Likewise.
9459         * modules/gc-arctwo-tests: Likewise.
9460         * modules/gc-des-tests: Likewise.
9461         * modules/gc-hmac-md5-tests: Likewise.
9462         * modules/gc-hmac-sha1-tests: Likewise.
9463         * modules/gc-md2-tests: Likewise.
9464         * modules/gc-md4-tests: Likewise.
9465         * modules/gc-md5-tests: Likewise.
9466         * modules/gc-pbkdf2-sha1-tests: Likewise.
9467         * modules/gc-rijndael-tests: Likewise.
9468         * modules/gc-sha1-tests: Likewise.
9469         * modules/gc-tests: Likewise.
9470         * modules/getaddrinfo-tests: Likewise.
9471         * modules/hmac-md5-tests: Likewise.
9472         * modules/hmac-sha1-tests: Likewise.
9473         * modules/linked-list-tests: Likewise.
9474         * modules/linkedhash-list-tests: Likewise.
9475         * modules/lock-tests: Likewise.
9476         * modules/md2-tests: Likewise.
9477         * modules/md4-tests: Likewise.
9478         * modules/md5-tests: Likewise.
9479         * modules/rbtree-list-tests: Likewise.
9480         * modules/rbtree-oset-tests: Likewise.
9481         * modules/rbtreehash-list-tests: Likewise.
9482         * modules/read-file-tests: Likewise.
9483         * modules/rijndael-tests: Likewise.
9484         * modules/stdint-tests: Likewise.
9485         * modules/tls-tests: Likewise.
9486
9487 2007-02-24  Bruno Haible  <bruno@clisp.org>
9488
9489         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
9490         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
9491         function; instead check whether isnan with a double argument links.
9492         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
9493         function; instead check whether isnan with a 'long double' argument
9494         links.
9495         Reported by Eric Blake <ebb9@byu.net>.
9496
9497 2007-02-24  Bruno Haible  <bruno@clisp.org>
9498
9499         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
9500         defined.
9501         * lib/isnanl.c: Remove all code. Just include isnan.c.
9502         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
9503
9504 2007-02-25  Jim Meyering  <jim@meyering.net>
9505
9506         Avoid conflicting types for 'unsetenv' on FreeBSD.
9507         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
9508         conflicting with FreeBSD's (5.0 and 6.1) function declaration
9509         in stdlib.h.
9510
9511 2007-02-24  Bruno Haible  <bruno@clisp.org>
9512
9513         * modules/isnanl-nolibm-tests: New file.
9514         * tests/test-isnanl.c: New file.
9515
9516         * modules/isnanl-nolibm: New file.
9517         * lib/isnanl.h: New file.
9518         * lib/isnanl.c: New file.
9519         * m4/isnanl.m4: New file.
9520
9521 2007-02-24  Bruno Haible  <bruno@clisp.org>
9522
9523         * modules/isnan-nolibm-tests: New file.
9524         * tests/test-isnan.c: New file.
9525
9526         * modules/isnan-nolibm: New file.
9527         * lib/isnan.h: New file.
9528         * lib/isnan.c: New file.
9529         * m4/isnan.m4: New file.
9530
9531 2007-02-24  Bruno Haible  <bruno@clisp.org>
9532
9533         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
9534         assume that an exponent fits in 20 bits.
9535
9536 2007-02-24  Jim Meyering  <jim@meyering.net>
9537
9538         * m4/regex.m4: Update the description of the configure-time option,
9539         --without-included-regex, to state accurately what the defaults are,
9540         and perhaps to give people an idea why using this option is risky.
9541
9542 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9543
9544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
9545         loops on small arguments.  This attempts to avoid the problem
9546         Bruno Haible reported for AIX 4.3.2 in
9547         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
9548
9549 2007-02-23  Bruno Haible  <bruno@clisp.org>
9550
9551         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
9552         Needed for help2man.
9553
9554 2007-02-23  Karl Berry  <karl@gnu.org>
9555
9556         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
9557         exists, foo.h should be cvs-ignored, not committed.
9558
9559 2007-02-23  Eric Blake  <ebb9@byu.net>
9560
9561         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
9562         * lib/stat-time.h (includes): Likewise.
9563         * lib/utimecmp.c (includes): Likewise.
9564         * lib/utimens.h (includes): Likewise.
9565         * lib/getdate.y (includes): Also include "timespec.h" for use
9566         internal to the module.
9567         * modules/utimens (Depends-on): Revert yesterday's patch.
9568         * modules/nanosleep (Depends-on): Add missing dependency.
9569
9570 2007-02-22  Bruno Haible  <bruno@clisp.org>
9571
9572         * lib/glob.c: Don't include getlogin_r.h.
9573
9574 2007-02-22  Jim Meyering  <jim@meyering.net>
9575
9576         * modules/utimens (Depends-on): Add timespec, required for
9577         utimens.h's inclusion of timespec.h.
9578
9579 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9580
9581         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
9582         long unreadable paths in GNU/Linux.  Problem reported by Andreas
9583         Schwab in
9584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
9585         I'll try to think of a better way to fix the Solaris problem.
9586
9587         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
9588         like glibc; on Solaris 10, it fails with errno == EINVAL.
9589         POSIX says the behavior is unspecified if the first argument is NULL,
9590         so play it safe and never pass NULL to the system getcwd.
9591
9592 2007-02-21  Jim Meyering  <jim@meyering.net>
9593
9594         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
9595         of gettimeofday.  It would conflict with the one now always
9596         provided via sys_time_.h.  Reported by Matthew Woehlke, as
9597         an IRIX 6.5 build failure.
9598
9599 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9600
9601         Minor fixups to port to Solaris 10 with Sun C 5.8.
9602         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
9603         * modules/getcwd (Depends-on): Add dirfd.
9604         * lib/putenv.c (putenv): #undef it.
9605         (rpl_putenv): New decl.
9606         (malloc, free): Include <stdlib.h> rather than prototyping separately.
9607
9608 2007-02-20  Bruno Haible  <bruno@clisp.org>
9609
9610         * modules/stdio-tests: New file.
9611         * tests/test-stdio.c: New file.
9612
9613         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
9614         (Depends-on): Add stdio.
9615         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9616         (Include): Use <stdio.h> instead of vsnprintf.h.
9617         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
9618         HAVE_DECL_VSNPRINTF.
9619         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
9620
9621         * modules/snprintf (Files): Remove lib/snprintf.h.
9622         (Depends-on): Add stdio.
9623         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9624         (Include): Use <stdio.h> instead of snprintf.h.
9625         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
9626         HAVE_DECL_SNPRINTF.
9627         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
9628         * lib/getaddrinfo.c: Likewise.
9629
9630         * modules/stdio: New file.
9631         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
9632         * lib/snprintf.h: Remove file.
9633         * lib/vsnprintf.h: Remove file.
9634         * lib/.cppi-disable: Remove snprintf.h.
9635         * m4/stdio_h.m4: New file.
9636         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
9637
9638 2007-02-20  Jim Meyering  <jim@meyering.net>
9639
9640         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
9641         used by e.g., mingw.  From Bruno Haible.
9642
9643 2007-02-19  Bruno Haible  <bruno@clisp.org>
9644
9645         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
9646         warnings.
9647         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9648
9649 2007-02-19  Bruno Haible  <bruno@clisp.org>
9650
9651         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
9652         from mingw users.
9653
9654 2007-02-19  Bruno Haible  <bruno@clisp.org>
9655
9656         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
9657         warnings.
9658         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
9659
9660 2007-02-19  Jim Meyering  <jim@meyering.net>
9661
9662         Don't use FD after a successful "fdopendir (fd)".
9663         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
9664         Reset it by calling dirfd on the just-obtained DIR*.
9665
9666         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
9667         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
9668
9669 2007-02-18  Bruno Haible  <bruno@clisp.org>
9670
9671         * lib/readlink.c: Include <unistd.h>.
9672         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
9673         HAVE_READLINK.
9674         * modules/readlink (Depends-on): Add unistd.
9675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9676         (Include): Add <unistd.h>.
9677
9678         * lib/getlogin_r.h: Remove file.
9679         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
9680         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
9681         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
9682         HAVE_DECL_GETLOGIN_R.
9683         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
9684         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9685         (Include): Use <unistd.h> instead of getlogin_r.h.
9686
9687         * lib/getcwd.h: Remove file.
9688         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
9689         * lib/xgetcwd.c: Likewise.
9690         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
9691         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
9692         * modules/getcwd (Files): Remove lib/getcwd.h.
9693         (Depends-on): Add unistd.
9694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9695         (Include): Use <unistd.h> instad of getcwd.h.
9696
9697         * lib/ftruncate.c: Include <unistd.h> first.
9698         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
9699         Set HAVE_FTRUNCATE.
9700         * modules/ftruncate (Depends-on): Add unistd.
9701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9702
9703         * lib/fchdir.c: Include <unistd.h> first.
9704         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
9705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
9706         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
9707         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9708         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
9709
9710         * lib/dup2.c: Include <unistd.h> first.
9711         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
9712         HAVE_DUP2.
9713         * modules/dup2 (Depends-on): Add unistd.
9714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9715
9716         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
9717         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
9718         REPLACE_CHOWN. Don't define chown as a macro here.
9719         * modules/chown (Depends-on): Add unistd.
9720         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9721
9722         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
9723         Add definition for GL_LINK_WARNING.
9724         (chown, dup2): New declarations.
9725         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
9726         link warning.
9727         (ftruncate): New declaration.
9728         (getcwd): New declaration, taken from old getcwd.h.
9729         (getlogin_r): New declaration, taken from old getlogin_r.h.
9730         (readlink): New declaration.
9731         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
9732         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
9733         (gl_PREREQ_UNISTD): Remove macro.
9734         (gl_UNISTD_MODULE_INDICATOR): New macro.
9735         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
9736         many new variables. Don't set UNISTD_H.
9737         * modules/unistd (Description): Change.
9738         (Depends-on): Add link-warning.
9739         (configure.ac): Update.
9740         (Makefile.am): Create unistd.h always. Substitute many new variables
9741         into it.
9742
9743 2007-02-18  Bruno Haible  <bruno@clisp.org>
9744
9745         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
9746         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
9747         HAVE_GETSUBOPT.
9748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
9749         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
9750         * lib/getsubopt.h: Remove file.
9751         * modules/getsubopt (Files): Remove lib/getsubopt.h.
9752         (Depends-on): Add stdlib.
9753         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9754         (Includes): Use <stdlib.h> instead of getsubopt.h.
9755         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
9756         Set HAVE_GETSUBOPT.
9757         * lib/getsubopt.c: Don't include getsubopt.h.
9758
9759 2007-02-18  Bruno Haible  <bruno@clisp.org>
9760
9761         * modules/fchdir (Depends-on): Add dup2.
9762
9763 2007-02-18  Bruno Haible  <bruno@clisp.org>
9764
9765         * lib/stdlib_.h: Handle glibc's special invocation convention
9766         specially.
9767
9768 2007-02-18  Bruno Haible  <bruno@clisp.org>
9769
9770         * modules/stdlib-tests: New file.
9771         * tests/test-stdlib.c: New file.
9772
9773         * modules/mkstemp (Files): Remove lib/mkstemp.h.
9774         (Depends-on): Add stdlib.
9775         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9776         (Includes): Use <stdlib.h> instead of mkstemp.h.
9777         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
9778         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
9779         * lib/mkstemp.c: Don't include mkstemp.h.
9780         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
9781         * lib/stdlib--.h: Don't include mkstemp.h.
9782
9783         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
9784         (Depends-on): Add stdlib.
9785         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9786         (Includes): Use <stdlib.h> instead of mkdtemp.h.
9787         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
9788         HAVE_MKDTEMP.
9789         * lib/mkdtemp.c: Don't include mkdtemp.h.
9790         * lib/clean-temp.c: Don't include mkdtemp.h.
9791
9792         * modules/exit (Files): Remove lib/exit.h.
9793         (Depends-on): Add stdlib.
9794         (Makefile.am): Remove lib_SOURCES.
9795         (Include): Use <stdlib.h> instead of exit.h.
9796         * lib/argmatch.c: Don't include exit.h.
9797         * lib/execute.c: Likewise.
9798         * lib/pagealign_alloc.c: Likewise.
9799         * lib/pipe.c: Likewise.
9800         * lib/wait-process.c: Likewise.
9801         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
9802         * lib/exitfail.c: Likewise.
9803         * lib/savewd.c: Likewise.
9804         * lib/xsetenv.c: Likewise.
9805
9806         * modules/stdlib: New file.
9807         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
9808         and extra comments about mkstemp().
9809         * lib/exit.h: Remove file.
9810         * lib/mkdtemp.h: Remove file.
9811         * lib/mkstemp.h: Remove file.
9812         * m4/stdlib_h.m4: New file.
9813         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
9814
9815 2007-02-18  Bruno Haible  <bruno@clisp.org>
9816
9817         * modules/math-tests: New file.
9818         * tests/test-math.c: New file.
9819
9820         * modules/math: New file.
9821         * modules/mathl (Files): Remove lib/mathl.h.
9822         (Depends-on): Add math.
9823         (Makefile.am): Don't mention mathl.h.
9824         (Include): Use <math.h> instead of mathl.h.
9825         * lib/math_.h: New file.
9826         * lib/mathl.h: Remove file.
9827         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
9828         mathl.h.
9829         * lib/asinl.c: Likewise.
9830         * lib/atanl.c: Likewise.
9831         * lib/ceill.c: Likewise.
9832         * lib/cosl.c: Likewise.
9833         * lib/expl.c: Likewise.
9834         * lib/floorl.c: Likewise.
9835         * lib/frexpl.c: Likewise.
9836         * lib/ldexpl.c: Likewise.
9837         * lib/logl.c: Likewise.
9838         * lib/sincosl.c: Likewise.
9839         * lib/sinl.c: Likewise.
9840         * lib/sqrtl.c: Likewise.
9841         * lib/tanl.c: Likewise.
9842         * lib/trigl.c: Likewise.
9843         * m4/math_h.m4: New file.
9844         * MODULES.html.sh (Mathematics): Add math.
9845
9846 2007-02-17  Bruno Haible  <bruno@clisp.org>
9847
9848         * modules/wctype-tests: New file.
9849         * tests/test-wctype.c: New file.
9850
9851         * modules/wchar-tests: New file.
9852         * tests/test-wchar.c: New file.
9853
9854         * modules/unistd-tests: New file.
9855         * tests/test-unistd.c: New file.
9856
9857         * modules/time-tests: New file.
9858         * tests/test-time.c: New file.
9859
9860         * modules/sysexits-tests: New file.
9861         * tests/test-sysexits.c: New file.
9862
9863         * modules/sys_time-tests: New file.
9864         * tests/test-sys_time.c: New file.
9865
9866         * modules/sys_stat-tests: New file.
9867         * tests/test-sys_stat.c: New file.
9868
9869         * modules/sys_socket-tests: New file.
9870         * tests/test-sys_socket.c: New file.
9871
9872         * modules/sys_select-tests: New file.
9873         * tests/test-sys_select.c: New file.
9874
9875         * modules/string-tests: New file.
9876         * tests/test-string.c: New file.
9877
9878         * modules/stdbool-tests: New file.
9879         * tests/test-stdbool.c: New file.
9880
9881         * modules/netinet_in-tests: New file.
9882         * tests/test-netinet_in.c: New file.
9883
9884         * modules/inttypes-tests: New file.
9885         * tests/test-inttypes.c: New file.
9886
9887         * modules/fcntl-tests: New file.
9888         * tests/test-fcntl.c: New file.
9889
9890         * modules/byteswap-tests: New file.
9891         * tests/test-byteswap.c: New file.
9892
9893         * modules/arpa_inet-tests: New file.
9894         * tests/test-arpa_inet.c: New file.
9895
9896 2007-02-17  Bruno Haible  <bruno@clisp.org>
9897
9898         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
9899         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
9900         if the corresponding module is not enabled. Emit link warnings if
9901         the function is used nevertheless.
9902         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
9903         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
9904         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
9905         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
9906         * modules/inttypes (Depends-on): Add link-warning.
9907         (Makefile.am): Copy the contents of build-aux/link-warning.h into
9908         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
9909         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
9910         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
9911         * modules/imaxdiv (configure.ac): Likewise.
9912         * modules/strtoimax (configure.ac): Likewise.
9913         * modules/strtoumax (configure.ac): Likewise.
9914
9915 2007-02-17  Bruno Haible  <bruno@clisp.org>
9916
9917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
9918         gl_STRING_MODULE_INDICATOR_DEFAULTS.
9919         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
9920         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
9921
9922 2007-02-17  Bruno Haible  <bruno@clisp.org>
9923
9924         * modules/link-warning: New file.
9925         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
9926         * lib/string_.h (GL_LINK_WARNING): Remove definition.
9927         * modules/string (Depends-on): Add link-warning.
9928         (Makefile.am): Copy the contents of build-aux/link-warning.h into
9929         string.h.
9930         * MODULES.html.sh (Support for building libraries and executables): Add
9931         link-warning.
9932
9933 2007-02-17  Bruno Haible  <bruno@clisp.org>
9934
9935         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
9936         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
9937         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
9938         long lines.
9939
9940 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
9941             Bruno Haible  <bruno@clisp.org>
9942
9943         * modules/tmpfile: New file.
9944         * lib/tmpfile.c: New file.
9945         * m4/tmpfile.m4: New file.
9946         * MODULES.html.sh (func_all_modules): New section "Input/output".
9947
9948 2007-02-15  Bruno Haible  <bruno@clisp.org>
9949
9950         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
9951         (supports_delete_on_close): New function.
9952         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
9953
9954 2007-02-14  Bruno Haible  <bruno@clisp.org>
9955
9956         * modules/mbspcasecmp-tests: New file.
9957         * tests/test-mbspcasecmp.sh: New file.
9958         * tests/test-mbspcasecmp.c: New file.
9959
9960         New module mbspcasecmp.
9961         * modules/mbspcasecmp: New file.
9962         * lib/mbspcasecmp.c: New file.
9963         * lib/string_.h (strncasecmp): Change warning message.
9964         (mbspcasecmp): New declaration.
9965         * m4/mbspcasecmp.m4: New file.
9966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9967         GNULIB_MBSPCASECMP.
9968         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
9969         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
9970
9971 2007-02-14  Bruno Haible  <bruno@clisp.org>
9972
9973         * modules/mbsncasecmp-tests: New file.
9974         * tests/test-mbsncasecmp.sh: New file.
9975         * tests/test-mbsncasecmp.c: New file.
9976
9977         New module mbsncasecmp.
9978         * modules/mbsncasecmp: New file.
9979         * lib/mbsncasecmp.c: New file.
9980         * lib/string_.h (mbsncasecmp): New declaration.
9981         * m4/mbsncasecmp.m4: New file.
9982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9983         GNULIB_MBSNCASECMP.
9984         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
9985         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
9986
9987 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9988
9989         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
9990         Verify that it doesn't overlap with our flags.
9991         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
9992         do not have the desired effect in multibyte locales; instead, use
9993         mbscasecmp.
9994         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
9995         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
9996         we don't require GNU fnmatch ourselves (if our users require it, they
9997         should do so explicitly).
9998
9999         Fix regex code so it doesn't rely on strcasecmp.
10000         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
10001         Otherwise, include gnulib's langinfo.h.
10002         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
10003         undesirable behavior in non-C locales.  Instead, rely on localecharset.
10004         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
10005         * modules/regex (FILES): Remove m4/codeset.m4.
10006         (Depends-on): Add localcharset.  Remove strcase.
10007
10008 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10009
10010         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
10011         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10012
10013 2007-02-13  Bruno Haible  <bruno@clisp.org>
10014
10015         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
10016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10017
10018 2007-02-12  Bruno Haible  <bruno@clisp.org>
10019
10020         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
10021         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
10022         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
10023         time warning rather than a link error.
10024
10025 2007-02-12  Bruno Haible  <bruno@clisp.org>
10026
10027         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
10028         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10030
10031 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10032
10033         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
10034         args, not 2.
10035
10036 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10037
10038         New module 'time', so that apps can include <time.h> as per
10039         POSIX and GNU instead of separate include files like time_r.h
10040         and timegm.h.  This implementation tries out a simpler approach
10041         for replacing decls in standard include files (as compared to
10042         the string module), somewhat as an experiment.
10043
10044         * config/srclist.txt: Comment out mktime.c for now.
10045         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
10046         since it doesn't apply any more.  Use generic wording instead.
10047         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
10048         'time'.
10049         * lib/time_.h, m4/time_h.m4, modules/time: New files.
10050         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
10051         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
10052         Don't include <sys/types.h>; no longer needed since we assume C89.
10053         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
10054         * lib/strftime.c: Likewise.
10055         * lib/time_r.c: Likewise.
10056         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
10057         * lib/nanosleep.c: Include <time.h> first, to check interface.
10058         * lib/strptime.c: Likewise.
10059         * lib/time_r.c: Likewise.
10060         * lib/timegm.c: Likewise.
10061         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
10062         needed.
10063         * lib/timegm.c: Don't include timegm.h; no longer needed.
10064         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
10065         time.h now handles any problems in that area.
10066         (struct timespec, nanosleep): Remove; time.h now arranges for these.
10067         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
10068         that time.h defines struct timespec.
10069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
10070         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
10071         handles that.
10072         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
10073         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
10074         needed.  Set REPLACE_LOCALTIME.
10075         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
10076         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
10077         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
10078         nanosleep; time_h.m4 now does that.  Don't require
10079         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
10080         module handles this now.
10081         * modules/getdate (Depends-on): Remove timespec.  Add time.
10082         * modules/nanosleep (Depends-on): Likewise.
10083         * modules/stat-time (Depends-on): Likewise.
10084         * modules/nanosleep (Include): Include time.h, not timespec.h.
10085         * modules/strptime (Files): Remove lib/strptime.h.
10086         (Depends-on): Add extensions, time.
10087         (Include): Include time.h, not strptime.h.
10088         * modules/time_r (Files): Remove lib/time_r.h.
10089         (Depends-on): Add time.
10090         (Include): Include time.h, not time_r.h.
10091         * modules/timegm: Likewise.
10092         * modules/timespec (Description): Now does timespec-related decls
10093         of our own, instead of struct timespec itself.
10094         (Depends-on): Add time; remove extensions.
10095         (Maintainer): Add self.
10096         * modules/utimecmp (Depends-on): Add time; remove timespec.
10097         * modules/utimens (Depends-on): Likewise.
10098         * modules/xnanosleep (Depends-on): Likewise.
10099
10100 2007-02-11  Bruno Haible  <bruno@clisp.org>
10101
10102         * lib/c-strstr.c: Include allocsa.h.
10103         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
10104         * lib/c-strcasestr.c: Include allocsa.h.
10105         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
10106         * lib/strcasestr.c: Include allocsa.h.
10107         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
10108         * lib/mbsstr.c: Include allocsa.h.
10109         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
10110         allocsa/freesa instead of malloc/free.
10111         * lib/mbscasestr.c: Include allocsa.h.
10112         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
10113         allocsa/freesa instead of malloc/free.
10114         * modules/c-strstr (Depends-on): Add allocsa.
10115         * modules/c-strcasestr (Depends-on): Likewise.
10116         * modules/strcasestr (Depends-on): Likewise.
10117         * modules/mbsstr (Depends-on): Likewise.
10118         * modules/mbscasestr (Depends-on): Likewise.
10119
10120 2007-02-11  Bruno Haible  <bruno@clisp.org>
10121
10122         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
10123
10124         * modules/mbsspn-tests: New file.
10125         * tests/test-mbsspn.sh: New file.
10126         * tests/test-mbsspn.c: New file.
10127
10128 2007-02-11  Bruno Haible  <bruno@clisp.org>
10129
10130         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
10131
10132         * modules/mbspbrk-tests: New file.
10133         * tests/test-mbspbrk.sh: New file.
10134         * tests/test-mbspbrk.c: New file.
10135
10136 2007-02-11  Bruno Haible  <bruno@clisp.org>
10137
10138         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
10139         unneeded cast.
10140
10141         * modules/mbscspn-tests: New file.
10142         * tests/test-mbscspn.sh: New file.
10143         * tests/test-mbscspn.c: New file.
10144
10145 2007-02-11  Bruno Haible  <bruno@clisp.org>
10146
10147         * modules/mbscasecmp-tests: New file.
10148         * tests/test-mbscasecmp.sh: New file.
10149         * tests/test-mbscasecmp.c: New file.
10150
10151 2007-02-11  Bruno Haible  <bruno@clisp.org>
10152
10153         Ensure O(n) worst-case complexity of mbscasestr.
10154         * lib/mbscasestr.c: Include stdbool.h.
10155         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
10156         functions.
10157         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
10158         the bookkeeping indicates that it's worth it.
10159         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
10160
10161         * modules/mbscasestr-tests: New file.
10162         * tests/test-mbscasestr1.c: New file.
10163         * tests/test-mbscasestr2.sh: New file.
10164         * tests/test-mbscasestr2.c: New file.
10165         * tests/test-mbscasestr3.sh: New file.
10166         * tests/test-mbscasestr3.c: New file.
10167         * tests/test-mbscasestr4.sh: New file.
10168         * tests/test-mbscasestr4.c: New file.
10169         * m4/locale-tr.m4: New file.
10170
10171 2007-02-11  Bruno Haible  <bruno@clisp.org>
10172
10173         Ensure O(n) worst-case complexity of mbsstr.
10174         * lib/mbsstr.c: Include stdbool.h.
10175         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
10176         functions.
10177         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
10178         bookkeeping indicates that it's worth it.
10179         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
10180
10181         * modules/mbsstr-tests: New file.
10182         * tests/test-mbsstr1.c: New file.
10183         * tests/test-mbsstr2.sh: New file.
10184         * tests/test-mbsstr2.c: New file.
10185         * tests/test-mbsstr3.sh: New file.
10186         * tests/test-mbsstr3.c: New file.
10187         * m4/locale-fr.m4: New file.
10188
10189 2007-02-11  Bruno Haible  <bruno@clisp.org>
10190
10191         * lib/mbsrchr.c (mbsrchr): Fix bug.
10192
10193         * modules/mbsrchr-tests: New file.
10194         * tests/test-mbsrchr.sh: New file.
10195         * tests/test-mbsrchr.c: New file.
10196
10197 2007-02-11  Bruno Haible  <bruno@clisp.org>
10198
10199         * lib/mbschr.c (mbschr): Fix bug.
10200
10201         * modules/mbschr-tests: New file.
10202         * tests/test-mbschr.sh: New file.
10203         * tests/test-mbschr.c: New file.
10204         * m4/locale-zh.m4: New file.
10205
10206 2007-02-11  Bruno Haible  <bruno@clisp.org>
10207
10208         Support for copying multibyte string iterators.
10209         * lib/mbiter.h: Include <string.h>.
10210         (mbiter_multi_copy): New function.
10211         (mbi_copy): New macro.
10212         * lib/mbuiter.h: Include <string.h>.
10213         (mbuiter_multi_copy): New function.
10214         (mbui_copy): New macro.
10215
10216 2007-02-11  Bruno Haible  <bruno@clisp.org>
10217
10218         New module mbslen.
10219         * modules/mbslen: New file.
10220         * lib/mbslen.c: New file.
10221         * lib/string_.h (mbslen): New declaration.
10222         * m4/mbslen.m4: New file.
10223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10224         GNULIB_MBSLEN.
10225         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
10226         * MODULES.html.sh (Internationalization functions): Add mbslen.
10227
10228 2007-02-11  Bruno Haible  <bruno@clisp.org>
10229
10230         Ensure O(n) worst-case complexity of strcasestr substitute.
10231         * lib/strcasestr.c: Include stdbool.h.
10232         (knuth_morris_pratt): New function.
10233         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
10234         bookkeeping indicates that it's worth it.
10235         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
10236
10237         * modules/strcasestr-tests: New file.
10238         * tests/test-strcasestr.c: New file.
10239
10240 2007-02-11  Bruno Haible  <bruno@clisp.org>
10241
10242         Ensure O(n) worst-case complexity of c_strcasestr.
10243         * lib/c-strcasestr.c: Include stdbool.h, string.h.
10244         (knuth_morris_pratt): New function.
10245         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
10246         the bookkeeping indicates that it's worth it.
10247         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
10248
10249         * modules/c-strcasestr-tests: New file.
10250         * tests/test-c-strcasestr.c: New file.
10251
10252 2007-02-11  Bruno Haible  <bruno@clisp.org>
10253
10254         Ensure O(n) worst-case complexity of c_strstr.
10255         * lib/c-strstr.c: Include stdbool.h, string.h.
10256         (knuth_morris_pratt): New function.
10257         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
10258         bookkeeping indicates that it's worth it.
10259         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
10260
10261         * lib/c-strstr.c: Complete rewrite for maintainability.
10262
10263         * modules/c-strstr-tests: New file.
10264         * tests/test-c-strstr.c: New file.
10265
10266 2007-02-11  Bruno Haible  <bruno@clisp.org>
10267
10268         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
10269         5.2.1 and earlier, whereby \055 was treated just like the range
10270         delimiter '-'.
10271         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
10272
10273 2007-02-08  Bruno Haible  <bruno@clisp.org>
10274
10275         * modules/regex (Depends-on): Add stdbool.
10276         Reported by Dalibor Topic <robilad@kaffe.org>.
10277
10278 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
10279
10280         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
10281         Prefer returning from main to exiting from it.
10282         Remove unnecessary parens after sizeof.
10283
10284 2007-02-05  Bruno Haible  <bruno@clisp.org>
10285
10286         New module mbssep.
10287         * modules/mbssep: New file.
10288         * lib/mbssep.c: New file.
10289         * lib/string_.h (strsep): Add a conditional link warning.
10290         (mbssep): New declaration.
10291         * m4/mbssep.m4: New file.
10292         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10293         GNULIB_MBSSEP.
10294         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
10295         * MODULES.html.sh (Internationalization functions): Add mbssep.
10296
10297 2007-02-05  Bruno Haible  <bruno@clisp.org>
10298
10299         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
10300         Optimize search in case of 1 delimiter.
10301
10302 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
10303
10304         * lib/acl.h: Include sys/types.h before sys/acl.h.
10305
10306 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
10307
10308         Merge upstream fix for glibc bugzilla #3957:
10309
10310         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10311
10312         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10313         bit for RE_HAT_LISTS_NOT_NEWLINE.
10314         (build_charclass_op): Remove bogus comment.
10315
10316 2007-02-05  Simon Josefsson  <simon@josefsson.org>
10317
10318         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
10319
10320 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10321
10322         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
10323         * lib/memmem.c [!defined _LIBC]: Include config.h.
10324
10325 2007-02-04  Bruno Haible  <bruno@clisp.org>
10326
10327         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
10328         warning message.
10329
10330 2007-02-04  Bruno Haible  <bruno@clisp.org>
10331
10332         New module mbstok_r.
10333         * modules/mbstok_r: New file.
10334         * lib/mbstok_r.c: New file.
10335         * lib/string_.h (strtok_r): Change argument names to match the
10336         comments. Add a conditional link warning.
10337         (mbstok_r): New declaration.
10338         * m4/mbstok_r.m4: New file.
10339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10340         GNULIB_MBSTOK_R.
10341         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
10342         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
10343
10344 2007-02-04  Bruno Haible  <bruno@clisp.org>
10345
10346         New module mbsspn.
10347         * modules/mbsspn: New file.
10348         * lib/mbsspn.c: New file.
10349         * lib/string_.h (strspn): Add a conditional link warning.
10350         (mbsspn): New declaration.
10351         * m4/mbsspn.m4: New file.
10352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10353         GNULIB_MBSSPN.
10354         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
10355         * MODULES.html.sh (Internationalization functions): Add mbsspn.
10356
10357 2007-02-04  Bruno Haible  <bruno@clisp.org>
10358
10359         New module mbspbrk.
10360         * modules/mbspbrk: New file.
10361         * lib/mbspbrk.c: New file.
10362         * lib/string_.h (strpbrk): Add a conditional link warning.
10363         (mbspbrk): New declaration.
10364         * m4/mbspbrk.m4: New file.
10365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10366         GNULIB_MBSPBRK.
10367         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
10368         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
10369
10370 2007-02-04  Bruno Haible  <bruno@clisp.org>
10371
10372         New module mbscspn.
10373         * modules/mbscspn: New file.
10374         * lib/mbscspn.c: New file.
10375         * lib/string_.h (strcspn): Add a conditional link warning.
10376         (mbscspn): New declaration.
10377         * m4/mbscspn.m4: New file.
10378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10379         GNULIB_MBSCSPN.
10380         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
10381         * MODULES.html.sh (Internationalization functions): Add mbscspn.
10382
10383 2007-02-04  Bruno Haible  <bruno@clisp.org>
10384
10385         New module mbscasestr, reduced goal of strcasestr.
10386         * modules/mbscasestr: New file.
10387         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
10388         (mbscasestr): Renamed from strcasestr.
10389         * lib/strcasestr.c: Don't include mbuiter.h.
10390         (strcasestr): Remove support for multibyte locales.
10391         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
10392         Change the conditional link warning.
10393         (mbscasestr): New declaration.
10394         * m4/mbscasestr.m4: New file.
10395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
10396         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
10397         REPLACE_STRCASESTR.
10398         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
10399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10400         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
10401         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
10402         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
10403         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
10404         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
10405         (Depends-on): Remove mbuiter.
10406         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
10407
10408 2007-02-04  Bruno Haible  <bruno@clisp.org>
10409
10410         Simplify handling of strncasecmp.
10411         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
10412         the conditional link warning.
10413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10414         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
10415         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
10416         * modules/strcase (configure.ac): Don't invoke
10417         gl_STRING_MODULE_INDICATOR.
10418         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
10419
10420 2007-02-04  Bruno Haible  <bruno@clisp.org>
10421
10422         New module mbscasecmp, reduced goal of strcasecmp.
10423         * modules/mbscasecmp: New file.
10424         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
10425         (mbscasecmp): Renamed from strcasecmp.
10426         * lib/strcasecmp.c: Don't include mbuiter.h.
10427         (strcasecmp): Remove support for multibyte locales.
10428         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
10429         Change the conditional link warning.
10430         (mbscasecmp): New declaration.
10431         * m4/mbscasecmp.m4: New file.
10432         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
10433         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
10434         REPLACE_STRCASECMP.
10435         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
10436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10437         GNULIB_MBSCASECMP.
10438         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
10439         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
10440         * modules/strcase (Files): Remove m4/mbrtowc.m4.
10441         (Depends-on): Remove mbuiter.
10442         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
10443
10444 2007-02-04  Bruno Haible  <bruno@clisp.org>
10445
10446         New module mbsstr. Remove module strstr.
10447         * modules/mbsstr: New file.
10448         * modules/strstr: Remove file.
10449         * lib/mbsstr.c: Renamed from lib/strstr.c.
10450         (mbsstr): Renamed from strstr.
10451         * lib/string_.h (strstr): Remove declaration. Change the conditional
10452         link warning.
10453         (mbsstr): New declaration.
10454         * m4/mbsstr.m4: New file.
10455         * m4/strstr.m4: Remove file.
10456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
10457         REPLACE_STRSTR.
10458         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
10459         Don't initialize GNULIB_STRSTR.
10460         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
10461         substitute GNULIB_STRSTR and REPLACE_STRSTR.
10462         * MODULES.html.sh (Internationalization functions): Add mbsstr.
10463         (Support for systems lacking ANSI C 89): Remove strstr.
10464
10465 2007-02-04  Bruno Haible  <bruno@clisp.org>
10466
10467         New module mbsrchr.
10468         * modules/mbsrchr: New file.
10469         * lib/mbsrchr.c: New file.
10470         * lib/string_.h (strrchr): Add a conditional link warning.
10471         (mbsrchr): New declaration.
10472         * m4/mbsrchr.m4: New file.
10473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10474         GNULIB_MBSRCHR.
10475         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
10476         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
10477
10478 2007-02-04  Bruno Haible  <bruno@clisp.org>
10479
10480         New module mbschr.
10481         * modules/mbschr: New file.
10482         * lib/mbschr.c: New file.
10483         * lib/string_.h (strchr): Add a conditional link warning.
10484         (mbschr): New declaration.
10485         * m4/mbschr.m4: New file.
10486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10487         GNULIB_MBSCHR.
10488         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
10489         * MODULES.html.sh (Internationalization functions): Add mbschr.
10490
10491 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10492
10493         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
10494
10495         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
10496
10497 2007-02-04  Bruno Haible  <bruno@clisp.org>
10498
10499         New module description section 'configure.ac-early'.
10500         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
10501         (func_get_autoconf_early_snippet): New function.
10502         (func_import, func_create_testdir): Use it. Remove special cases for
10503         modules 'extensions' and 'lock'.
10504         * modules/extensions (configure.ac-early): Require
10505         gl_USE_SYSTEM_EXTENSIONS.
10506         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
10507
10508 2007-02-04  Bruno Haible  <bruno@clisp.org>
10509
10510         Make use of gcj-4.3's -fsource and -ftarget option.
10511         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
10512         and if so try the options -fsource and -ftarget.
10513         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
10514         source_version, ftarget_option, target_version arguments.
10515         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
10516         (is_envjavac_oldgcj_14_14_usable): Renamed from
10517         is_envjavac_gcj_14_14_usable.
10518         (is_envjavac_oldgcj_14_13_usable): Renamed from
10519         is_envjavac_gcj_14_13_usable.
10520         (is_gcj_present): Update.
10521         (is_gcj_43, is_gcj43_usable): New functions.
10522         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
10523         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
10524         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
10525         try the options -fsource and -ftarget.
10526
10527 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
10530         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
10531         larger value.
10532
10533 2007-02-03  Jim Meyering  <jim@meyering.net>
10534
10535         Give tools a better chance to allocate space for very large buffers.
10536         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
10537
10538         Make pwd and readlink work also when run with an unreadable parent dir
10539         on systems with openat support.
10540         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
10541         provided getcwd function, even when we have openat support.
10542         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
10543
10544 2007-02-02  Bruno Haible  <bruno@clisp.org>
10545
10546         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
10547         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
10548         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
10549         portability problems if one of these functions is only used on specific
10550         platforms.
10551         Reported by Paul Eggert.
10552
10553 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10554
10555         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
10556         is causing more trouble than it's curing.
10557         * lib/regex_internal.h (__mempcpy): Remove.
10558         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
10559         (and make the code a tad smaller to boot).
10560         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
10561
10562 2007-02-02  Jim Meyering  <jim@meyering.net>
10563
10564         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
10565         section, not in the Makefile.am: one.
10566
10567 2007-02-02  Eric Blake  <ebb9@byu.net>
10568
10569         * lib/strchrnul.c: Always include config.h first.
10570
10571         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
10572         gnulib strstr is not necessary here.
10573
10574 2007-02-02  Simon Josefsson  <simon@josefsson.org>
10575
10576         * m4/socklen.m4: Fix typo.
10577
10578 2007-02-02  Eric Blake  <ebb9@byu.net>
10579
10580         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
10581         * modules/netinet_in (Makefile.am): Likewise.
10582
10583 2007-02-01  Bruno Haible  <bruno@clisp.org>
10584
10585         * lib/string_.h (GL_LINK_WARNING): New macro.
10586         (strcasecmp, strstr, strcasestr): If provided by the system,
10587         conditionally define as a macro that leads to a warning instead of to
10588         an error.
10589         (strncasecmp): Conditionally define as a macro that leads to a warning.
10590
10591 2007-02-01  Karl Berry  <karl@gnu.org>
10592
10593         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
10594
10595 2007-02-01  Bruno Haible  <bruno@clisp.org>
10596
10597         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
10598         renamings.
10599
10600 2007-02-01  Eric Blake  <ebb9@byu.net>
10601
10602         * modules/regex (Depends-on): Revert dependence on mempcpy.
10603         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
10604         module's definition of mempcpy.
10605         Reported by Paul Eggert.
10606
10607 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
10608
10609         * lib/string_.h: If the gnulib module XYZ is not present, undefine
10610         the symbol XYZ before redefining it.  This fixes a problem with
10611         programs that don't use XYZ, when compiled on systems that define
10612         XYZ to something else.
10613
10614 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
10615
10616         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
10617         occurs when "mkdir -m foo" creates a setgid directory that is (1)
10618         writeable to group or other and (2) is intended to have a special
10619         mode bit that is set or cleared.  In such a case, the directory
10620         should be neither group- nor other-writeable until the special
10621         mode bits are right.
10622
10623 2007-01-31  Eric Blake  <ebb9@byu.net>
10624
10625         * modules/mountlist (Depends-on): Add strstr.
10626
10627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
10628         bug.
10629         * modules/string (Makefile.am): Remove redundant replacement.
10630         * modules/regex (Depends-on): Add mempcpy.
10631
10632 2007-01-31  Bruno Haible  <bruno@clisp.org>
10633
10634         New module description field 'Link'.
10635         * gnulib-tool (func_usage): Document --extract-link-directive.
10636         (sed_extract_prog): Recognize 'Link' directive.
10637         (func_get_link_directive): New function.
10638         (func_import): Show summary of link directives.
10639         Handle --extract-link-directive option.
10640         * modules/acl (Link): New section.
10641         * modules/clock-time (Link): New section.
10642         * modules/euidaccess (Link): New section.
10643         * modules/gettext (Link): New section.
10644         * modules/iconv (Link): New section.
10645         * modules/lock (Link): New section.
10646         * modules/nanosleep (Link): New section.
10647         * modules/readline (Link): New section.
10648
10649 2007-01-27  Bruno Haible  <bruno@clisp.org>
10650
10651         Enforce the use of gnulib modules for unportable <string.h> functions.
10652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
10653         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
10654         (gl_HEADER_STRING_H_BODY): Require it.
10655         * lib/string_.h: If the gnulib module XYZ is not present, redefine
10656         the symbol XYZ to one that gives a link error.
10657         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
10658         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
10659         * modules/mempcpy (configure.ac): Likewise.
10660         * modules/memrchr (configure.ac): Likewise.
10661         * modules/stpcpy (configure.ac): Likewise.
10662         * modules/stpncpy (configure.ac): Likewise.
10663         * modules/strcase (configure.ac): Likewise.
10664         * modules/strcasestr (configure.ac): Likewise.
10665         * modules/strchrnul (configure.ac): Likewise.
10666         * modules/strdup (configure.ac): Likewise.
10667         * modules/strndup (configure.ac): Likewise.
10668         * modules/strnlen (configure.ac): Likewise.
10669         * modules/strpbrk (configure.ac): Likewise.
10670         * modules/strsep (configure.ac): Likewise.
10671         * modules/strstr (configure.ac): Likewise.
10672         * modules/strtok_r (configure.ac): Likewise.
10673
10674 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
10675
10676         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
10677
10678 2007-01-30  Jim Meyering  <jim@meyering.net>
10679
10680         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
10681
10682 2007-01-29  Bruno Haible  <bruno@clisp.org>
10683
10684         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
10685         * lib/execute.c: Likewise.
10686         * lib/pipe.c: Likewise.
10687         * lib/printf-args.h: Likewise.
10688         * lib/printf-args.c: Likewise.
10689         * lib/printf-parse.c: Likewise.
10690         * lib/vasnprintf.c: Likewise.
10691
10692 2007-01-29  Eric Blake  <ebb9@byu.net>
10693
10694         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
10695         declaration.
10696
10697 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10698
10699         * lib/strptime.h (strptime): Use 'restrict' for args where
10700         POSIX requires this.
10701         * lib/strptime.c (strptime): Likewise.
10702         Change license notice from LGPL to GPL, since gnulib-tool will
10703         change this as needed.
10704         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
10705         defined.
10706         Include "strptime.h" first, to check interface.
10707         Do not #undef _LIBC and _NL_CURRENT.
10708         Do not include <stdlib.h>; no longer needed.
10709         Include "time_r.h" and declare ptime_locale_status
10710         only if _LIBC is not defined.
10711         (__P): Remove unused macro.
10712         (match_string): Bring back glibc version, but use it only if _LIBC
10713         is defined.
10714         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
10715         Remove unnecessary assertion and abort() call.
10716         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
10717         * m4/strptime.m4: Fix serial number comment.
10718         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
10719         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
10720         (Depends-on): Add time_r.
10721
10722 2007-01-29  Bruno Haible  <bruno@clisp.org>
10723
10724         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10725         strptime.
10726         * modules/strptime (Depends-on): Add stdbool.
10727         * lib/strptime.h: Include <time.h> always. Add comments.
10728
10729 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
10730
10731         * modules/strptime: New file.
10732         * lib/strptime.h: New file.
10733         * lib/strptime.c: New file.
10734         * m4/strptime.m4: New file.
10735
10736 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10737
10738         * MODULES.html.sh: New module mpsort.
10739         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
10740
10741         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
10742         a circularity problem with HP-UX ia64 reported by Bob Proulx in
10743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
10744         All uses changed.
10745         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
10746         All uses changed.
10747         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
10748         to _Restrict_.
10749         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
10750         the parameter matches the prototype.
10751
10752 2007-01-28  Jim Meyering  <jim@meyering.net>
10753
10754         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
10755         sys/time.h here, reverting that part of the previous patch:
10756         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
10757
10758 2007-01-28  Bruno Haible  <bruno@clisp.org>
10759
10760         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
10761         value of $(SYS_TIME_H).
10762         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
10763         remove it conditionally, too. [added by Jim Meyering]
10764         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
10765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
10766         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
10767         GETTIMEOFDAY_REPLACEMENT to 1.
10768
10769 2007-01-28  Bruno Haible  <bruno@clisp.org>
10770
10771         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
10772         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
10773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
10774         Set UNISTD_H instead of UNISTD_H2.
10775         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
10776
10777 2007-01-28  Bruno Haible  <bruno@clisp.org>
10778
10779         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
10780         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
10781
10782 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10783
10784         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
10785         (func_create_testdir): Ensure C locale for `grep' and `tr'
10786         character ranges.
10787         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
10788         ACLOCAL_AMFLAGS parsing state machine.
10789
10790 2007-01-27  Bruno Haible  <bruno@clisp.org>
10791
10792         * modules/unistr/base: Update.
10793
10794 2007-01-27  Bruno Haible  <bruno@clisp.org>
10795
10796         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
10797         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
10798         * modules/unistr/u32-mbtouc-unsafe: Renamed from
10799         modules/unistr/u32-mbtouc.
10800         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
10801         * lib/unistr.h: Update.
10802         * lib/linebreak.c: Update.
10803         * modules/unistr/u32-mbtouc: Renamed from
10804         modules/unistr/u32-mbtouc-safe.
10805         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
10806         * lib/unistr.h: Update.
10807         * lib/unistr/u32-to-u8.c: Update.
10808         * lib/unistr/u32-to-u16.c: Update.
10809
10810 2007-01-27  Bruno Haible  <bruno@clisp.org>
10811
10812         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
10813         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
10814         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
10815         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
10816         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
10817         * modules/unistr/u16-mbtouc-unsafe: Renamed from
10818         modules/unistr/u16-mbtouc.
10819         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
10820         * lib/unistr.h: Update.
10821         * lib/linebreak.c: Update.
10822         * modules/linebreak: Update.
10823         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
10824         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
10825         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
10826         * modules/unistr/u16-mbtouc: Renamed from
10827         modules/unistr/u16-mbtouc-safe.
10828         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
10829         * lib/unistr.h: Update.
10830         * lib/unistr/u16-to-u8.c: Update.
10831         * modules/unistr/u16-to-u8: Update.
10832         * lib/unistr/u16-to-u32.c: Update.
10833         * modules/unistr/u16-to-u32: Update.
10834
10835 2007-01-27  Bruno Haible  <bruno@clisp.org>
10836
10837         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
10838         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
10839         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
10840         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
10841         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
10842         * modules/unistr/u8-mbtouc-unsafe: Renamed from
10843         modules/unistr/u8-mbtouc.
10844         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
10845         * lib/unistr.h: Update.
10846         * lib/striconveh.c: Update.
10847         * modules/striconveh: Update.
10848         * lib/linebreak.c: Update.
10849         * modules/linebreak: Update.
10850         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
10851         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
10852         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
10853         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
10854         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
10855         * lib/unistr.h: Update.
10856         * lib/striconveh.c: Update.
10857         * modules/striconveh: Update.
10858         * lib/unistr/u8-to-u16.c: Update.
10859         * modules/unistr/u8-to-u16: Update.
10860         * lib/unistr/u8-to-u32.c: Update.
10861         * modules/unistr/u8-to-u32: Update.
10862
10863 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10864
10865         Sync from Libtool.
10866         * lib/argz.c: Do not include strings.h nor memory.h, include
10867         string.h unconditionally.  Patch by Simon Josefsson.
10868
10869 2007-01-27  Bruno Haible  <bruno@clisp.org>
10870
10871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
10872         from gl_HEADER_STRING_H_BODY.
10873         (gl_HEADER_STRING_H_BODY): Require it.
10874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
10875         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10876         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10877         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10878         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10879         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
10880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10881         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10882         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
10883         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10884         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10885         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
10886         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10887         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10888         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10889
10890 2007-01-27  Bruno Haible  <bruno@clisp.org>
10891
10892         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
10893         check_PROGRAMS into noinst_PROGRAMS.
10894         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
10895         check_PROGRAMS in this case.
10896         (func_import): Set for_test to false.
10897         (func_create_testdir): Set for_test to true.
10898
10899 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10900             Bruno Haible  <bruno@clisp.org>
10901
10902         * modules/strcasestr (Files): Remove lib/strcasestr.h.
10903         (Depends-on): Add string.
10904         (Includes): Use <string.h> instead of strcasestr.h.
10905         * modules/string (Makefile.am): Also substitute the value of
10906         REPLACE_STRCASESTR.
10907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
10908         assume strcasestr is declared in <string.h> not <strings.h>. Also
10909         set REPLACE_STRCASESTR.
10910         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
10911         REPLACE_STRCASESTR.
10912         * lib/strcasestr.h: Remove file.
10913         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
10914         * lib/string_.h (strcasestr): New declaration.
10915
10916 2007-01-27  Bruno Haible  <bruno@clisp.org>
10917
10918         * lib/string_.h: Use 'extern'.
10919
10920 2007-01-27  Jim Meyering  <jim@meyering.net>
10921
10922         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
10923         of set-but-not-used local, "q".
10924
10925         * lib/mempcpy.c: Include <config.h> before <string.h>.
10926         This fixes a compilation error on HP-UX, due to the system's
10927         "restrict"-using mempcpy prototype.
10928
10929 2007-01-26  Bruno Haible  <bruno@clisp.org>
10930
10931         Small optimization.
10932         * lib/javacomp.c: Include c-strstr.h.
10933          (is_envjavac_gcj): Use c_strstr instead of strstr.
10934         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
10935
10936 2007-01-26  Bruno Haible  <bruno@clisp.org>
10937
10938         * MODULES.html.sh (Unicode string functions): Add the new modules.
10939
10940         * modules/uniconv/u32-strconv-to-locale: New file.
10941         * lib/uniconv/u32-strconv-to-locale.c: New file.
10942
10943         * modules/uniconv/u16-strconv-to-locale: New file.
10944         * lib/uniconv/u16-strconv-to-locale.c: New file.
10945
10946         * modules/uniconv/u8-strconv-to-locale: New file.
10947         * lib/uniconv/u8-strconv-to-locale.c: New file.
10948
10949         * modules/uniconv/u32-strconv-from-locale: New file.
10950         * lib/uniconv/u32-strconv-from-locale.c: New file.
10951
10952         * modules/uniconv/u16-strconv-from-locale: New file.
10953         * lib/uniconv/u16-strconv-from-locale.c: New file.
10954
10955         * modules/uniconv/u8-strconv-from-locale: New file.
10956         * lib/uniconv/u8-strconv-from-locale.c: New file.
10957
10958         * modules/uniconv/u32-strconv-to-enc: New file.
10959         * lib/uniconv/u32-strconv-to-enc.c: New file.
10960         * modules/uniconv/u32-strconv-to-enc-tests: New file.
10961         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
10962
10963         * modules/uniconv/u16-strconv-to-enc: New file.
10964         * lib/uniconv/u16-strconv-to-enc.c: New file.
10965         * lib/uniconv/u-strconv-to-enc.h: New file.
10966         * modules/uniconv/u16-strconv-to-enc-tests: New file.
10967         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
10968
10969         * modules/uniconv/u8-strconv-to-enc: New file.
10970         * lib/uniconv/u8-strconv-to-enc.c: New file.
10971         * modules/uniconv/u8-strconv-to-enc-tests: New file.
10972         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
10973
10974         * modules/uniconv/u32-strconv-from-enc: New file.
10975         * lib/uniconv/u32-strconv-from-enc.c: New file.
10976         * modules/uniconv/u32-strconv-from-enc-tests: New file.
10977         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
10978
10979         * modules/uniconv/u16-strconv-from-enc: New file.
10980         * lib/uniconv/u16-strconv-from-enc.c: New file.
10981         * modules/uniconv/u16-strconv-from-enc-tests: New file.
10982         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
10983
10984         * modules/uniconv/u8-strconv-from-enc: New file.
10985         * lib/uniconv/u8-strconv-from-enc.c: New file.
10986         * lib/uniconv/u-strconv-from-enc.h: New file.
10987         * modules/uniconv/u8-strconv-from-enc-tests: New file.
10988         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
10989
10990         * modules/uniconv/u32-conv-from-enc: New file.
10991         * lib/uniconv/u32-conv-from-enc.c: New file.
10992         * modules/uniconv/u32-conv-from-enc-tests: New file.
10993         * tests/uniconv/test-u32-conv-from-enc.c: New file.
10994
10995         * modules/uniconv/u16-conv-from-enc: New file.
10996         * lib/uniconv/u16-conv-from-enc.c: New file.
10997         * lib/uniconv/u-conv-from-enc.h: New file.
10998         * modules/uniconv/u16-conv-from-enc-tests: New file.
10999         * tests/uniconv/test-u16-conv-from-enc.c: New file.
11000
11001         * modules/uniconv/u8-conv-from-enc: New file.
11002         * lib/uniconv/u8-conv-from-enc.c: New file.
11003         * modules/uniconv/u8-conv-from-enc-tests: New file.
11004         * tests/uniconv/test-u8-conv-from-enc.c: New file.
11005
11006         * modules/uniconv/base: New file.
11007         * lib/uniconv.h: New file.
11008
11009 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
11010
11011         * doc/gnulib-tool.texi (Initial import): Update to match current
11012         behavior with strdup module.
11013         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
11014         * lib/memmem.h: Remove; all uses removed.  This is now done
11015         by <string.h>.
11016         * lib/mempcpy.h: Likewise.
11017         * lib/memrchr.h: Likewise.
11018         * lib/stpcpy.h: Likewise.
11019         * lib/stpncpy.h: Likewise.
11020         * lib/strcase.h: Likewise.
11021         * lib/strchrnul.h: Likewise.
11022         * lib/strdup.h: Likewise.
11023         * lib/strndup.h: Likewise.
11024         * lib/strnlen.h: Likewise.
11025         * lib/strpbrk.h: Likewise.
11026         * lib/strsep.h: Likewise.
11027         * lib/strstr.h: Likewise.
11028         * lib/strtok_r.h: Likewise.
11029         * lib/string_.h: New file.
11030         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
11031         Rely on <string.h> instead.
11032         * lib/canon-host.c: Likewise.
11033         * lib/chdir-long.c: Likewise.
11034         * lib/concatpath.c: Likewise.
11035         * lib/exclude.c: Likewise.
11036         * lib/fchdir.c: Likewise.
11037         * lib/getaddrinfo.c: Likewise.
11038         * lib/getcwd.c: Likewise.
11039         * lib/getsubopt.c: Likewise.
11040         * lib/glob.c: Likewise.
11041         * lib/hard-locale.c: Likewise.
11042         * lib/iconvme.c: Likewise.
11043         * lib/javacomp.c: Likewise.
11044         * lib/mempcpy.c: Likewise.
11045         * lib/memrchr.c: Likewise.
11046         * lib/regex_internal.h: Likewise.
11047         * lib/stpncpy.c: Likewise.
11048         * lib/strcasecmp.c: Likewise.
11049         * lib/strchrnul.c: Likewise.
11050         * lib/strdup.c: Likewise.
11051         * lib/striconv.c: Likewise.
11052         * lib/striconveh.c: Likewise.
11053         * lib/striconveha.c: Likewise.
11054         * lib/strncasecmp.c: Likewise.
11055         * lib/strndup.c: Likewise.
11056         * lib/strnlen.c: Likewise.
11057         * lib/strsep.c: Likewise.
11058         * lib/strstr.c: Likewise.
11059         * lib/strtok_r.c: Likewise.
11060         * lib/userspec.c: Likewise.
11061         * lib/w32spawn.h: Likewise.
11062         * lib/xstrndup.c: Likewise.
11063         * lib/mountlist.c (strstr): Remove decl.
11064         * m4/string_h.m4: New file.
11065         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
11066         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
11067         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
11068         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
11069         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
11070         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
11071         Set REPLACE_STRCASECMP if necessary.
11072         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
11073         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
11074         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
11075         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
11076         HAVE_DECL_STRDUP if necessary.
11077         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
11078         since gl_FUNC_STRNDUP does that now.
11079         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
11080         Check for decl here...
11081         (gl_PREREQ_STRNLEN): ... not here.
11082         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
11083         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
11084         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
11085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
11086         necessary.
11087         * modules/string: New file.
11088         * modules/memmem (Files): Remove special-purpose include file.
11089         (Depends-on): Add string.
11090         (Include): Include <string.h>, not the removed file.
11091         * modules/mempcpy: Likewise.
11092         * modules/memrchr: Likewise.
11093         * modules/stpcpy: Likewise.
11094         * modules/stpncpy: Likewise.
11095         * modules/strcase: Likewise.
11096         * modules/strchrnul: Likewise.
11097         * modules/strdup: Likewise.
11098         * modules/strndup: Likewise.
11099         * modules/strnlen: Likewise.
11100         * modules/strpbrk: Likewise.
11101         * modules/strsep: Likewise.
11102         * modules/strstr: Likewise.
11103         * modules/strtok_r: Likewise.
11104         * tests/test-dirname.c: Don't include "strdup.h", since
11105         <string.h> now suffices.
11106         * tests/test-memmem.c: Don't include "memmem.h", since
11107         <string.h> now suffices.
11108
11109 2007-01-25  Bruno Haible  <bruno@clisp.org>
11110
11111         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
11112         *resultp is 0.
11113
11114         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
11115         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
11116         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
11117         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
11118
11119         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
11120         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
11121         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
11122         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
11123         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
11124         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
11125
11126 2007-01-24  Bruno Haible  <bruno@clisp.org>
11127
11128         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
11129         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
11130         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
11131         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
11132         gl_FUNC_FTS_CORE.
11133         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
11134         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
11135         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11136         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
11137         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
11138         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
11139         gl_FUNC_FCHOWNAT.
11140         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
11141         gl_FUNC_STRFTIME.
11142         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
11143         Reported by Ralf Wildenhues.
11144
11145 2007-01-24  Bruno Haible  <bruno@clisp.org>
11146
11147         Drop AC_REQUIRE calls that are redundant with the module dependencies.
11148         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
11149         gl_GETADDRINFO.
11150         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
11151         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
11152         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
11153
11154 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
11155
11156         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
11157         Don't use 'exit'; just return from 'main'.
11158         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
11159
11160         * lib/fnmatch_.h: Readjust white space and comments to match
11161         glibc, to avoid spurious diffs.
11162
11163 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11164
11165         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
11166         2004-12-01 change by Jakub Jelinek, since this code won't compile
11167         if !LIBC.  Problem reported by Bob Proulx.
11168
11169 2007-01-23  Bruno Haible  <bruno@clisp.org>
11170
11171         * lib/striconveh.c: Include c-strcaseeq.h.
11172         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
11173         * modules/striconveh (Depends-on): Add c-strcaseeq.
11174
11175 2007-01-23  Bruno Haible  <bruno@clisp.org>
11176
11177         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
11178
11179         * modules/c-strcaseeq: New file.
11180         * lib/c-strcaseeq.h: New file.
11181
11182         * modules/streq: New file.
11183         * lib/streq.h: New file.
11184
11185 2007-01-23  Bruno Haible  <bruno@clisp.org>
11186
11187         * modules/striconveha-tests: New file.
11188         * tests/test-striconveha.c: New file.
11189
11190         * lib/striconveha.h: Include <stdbool.h>.
11191         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
11192         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
11193         (mem_iconveha_notranslit): Renamed from mem_iconveha.
11194         (mem_iconveha): New function.
11195         (str_iconveha_notranslit): Renamed from str_iconveha.
11196         (str_iconveha): New function.
11197         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
11198         c-strcase.
11199
11200 2007-01-23  Bruno Haible  <bruno@clisp.org>
11201
11202         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
11203         encodings without forgiving before trying any encoding with handler.
11204         (str_iconveha): Try all encodings without forgiving before trying any
11205         encoding with handler.
11206
11207 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11208
11209         Import the following changes from libc.
11210
11211         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
11212
11213         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
11214
11215         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
11216
11217         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
11218         normal_bracket label.
11219
11220         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
11221
11222         [BZ #361]
11223         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
11224         to normal_bracket after fetching the next character.
11225
11226 2007-01-22  Bruno Haible  <bruno@clisp.org>
11227
11228         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
11229         argument.
11230         * lib/striconveh.c (iconv_carefully_1): New function.
11231         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
11232         argument.
11233         (str_cd_iconveh): Update.
11234         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
11235         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
11236         * tests/test-striconveh.c (MAGIC): New macro.
11237         (new_offsets): New function.
11238         (main): Test call with and without offsets.
11239
11240 2007-01-22  Bruno Haible  <bruno@clisp.org>
11241
11242         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
11243         * modules/sys_select (Makefile.am): Likewise.
11244         * modules/sys_socket (Makefile.am): Likewise.
11245         * modules/sys_time (Makefile.am): Likewise.
11246
11247 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
11248
11249         * modules/gettimeofday (License): Change from GPL to LGPL, since
11250         gettimeofday is a library function.
11251
11252 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11253
11254         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
11255
11256 2007-01-21  Bruno Haible  <bruno@clisp.org>
11257
11258         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
11259
11260 2007-01-21  Bruno Haible  <bruno@clisp.org>
11261
11262         * modules/striconveha: New file.
11263         * lib/striconveha.h: New file.
11264         * lib/striconveha.c: New file.
11265         * MODULES.html.sh (Internationalization functions): Add striconveha.
11266         * lib/striconv.c (str_iconv): Optimize the case of an empty input
11267         string.
11268         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
11269
11270 2007-01-21  Bruno Haible  <bruno@clisp.org>
11271
11272         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
11273         * lib/striconveh.c (str_iconveh): Likewise.
11274
11275 2007-01-21  Bruno Haible  <bruno@clisp.org>
11276
11277         * lib/striconveh.h (mem_iconveh): New declaration.
11278         * lib/striconveh.c (mem_iconveh): New function.
11279         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
11280
11281 2007-01-21  Bruno Haible  <bruno@clisp.org>
11282
11283         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
11284
11285         * lib/striconveh.h (mem_cd_iconveh): Change specification.
11286         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
11287         original result buffer.
11288         (str_cd_iconveh): Update.
11289         * tests/test-striconveh.c (main): Update.
11290
11291         * lib/striconv.h (mem_cd_iconv): Change specification.
11292         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
11293         result buffer.
11294         (str_cd_iconv): Update.
11295         * tests/test-striconv.c (main): Update.
11296
11297 2007-01-21  Bruno Haible  <bruno@clisp.org>
11298
11299         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
11300
11301 2007-01-20  Jim Meyering  <jim@meyering.net>
11302
11303         * lib/userspec.c (parse_with_separator): If a user or group string
11304         starts with "+", skip the corresponding name-to-ID look-up, since
11305         such a look-up must fail: user and group names may not include "+".
11306
11307 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11308
11309         * lib/poll.c: Include sys/time.h and time.h unconditionally,
11310         since we now assume the sys_time module.
11311         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
11312         check for sys/time.h; no longer needed.
11313         * modules/poll (Depends-on): Depend on sys_time.
11314
11315 2007-01-18  Bruno Haible  <bruno@clisp.org>
11316
11317         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
11318         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
11319
11320         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
11321         gettimeofday.
11322
11323         * tests/test-gettimeofday.c: Include <time.h>.
11324         (dummy): Remove variable.
11325
11326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
11327         gl_HEADER_SYS_TIME_H.
11328         (gl_HEADER_SYS_TIME_H): New macro.
11329
11330         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
11331         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11332         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11333         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
11334         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
11336         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
11337         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11338         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
11339         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
11340         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11341
11342         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
11343         last change; it caused a compilation error when cross-compiling to
11344         Cygwin.
11345
11346 2007-01-18  Jim Meyering  <jim@meyering.net>
11347
11348         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
11349         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
11350         than the race-prone "test -d sys || mkdir sys".
11351         (configure.ac): Use AC_PROG_MKDIR_P.
11352         * modules/sys_select: Likewise.
11353         * modules/sys_socket: Likewise.
11354         * modules/sys_time: Likewise.
11355
11356 2007-01-18  Eric Blake  <ebb9@byu.net>
11357
11358         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
11359         replace gettimeofday.
11360         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
11361         name, to avoid infinite recursion.
11362
11363 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
11364
11365         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
11366         module sys_time.
11367         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
11368         assume timespec.h defines struct timeval.
11369         * lib/settime.c: Likewise.
11370         * lib/utimens.c: Likewise.
11371         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
11372         since we now assume the gettimeofday module.
11373         * lib/tempname.c (__gen_tempname): Likewise.
11374         * lib/gettimeofday.h: Remove.
11375         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
11376         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
11377         Include <time.h>, for 'time()'.
11378         (localtime_buffer_addr): Also use this workaround if
11379         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
11380         to simplify the uses.  All uses changed.
11381         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
11382         that #undef is inside {}, and 'const' follows type name consistently.
11383         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
11384         (gettimeofday): Do not use the maximum possible value for
11385         tv->tv_usec, since that might break usages other than ls.c.
11386         Instead, we'll leave ls.c alone.  This undoes today's patch
11387         by Bruno.  Add a compile-time warning for 1s-clock resolution;
11388         we've never observed the problem but might as well keep the
11389         canary.
11390         * lib/nanosleep.c: Include timespec.h first, for interface check.
11391         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
11392         now assume the sys_time module.
11393         * lib/tempname.c: Likewise.
11394         * lib/timespec.h: Likewise.
11395         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
11396         needed.
11397         * lib/strftime.c: Likewise.
11398         * lib/timespec.h: Likewise.
11399         * lib/posixtm.c: Include posixtm.h first, for interface check.
11400         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
11401         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
11402         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
11403         * lib/sys_time_.h: New file.
11404         * lib/timespec.h (struct timespec): Use long int, not long.
11405         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
11406         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
11407         Remove obsolescent call to AC_HEADER_TIME.
11408         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11410         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
11411         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
11412         Likewise.
11413         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11414         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
11415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
11416         into the sys_time module.  Check for gettimeofday just once.
11417         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
11418         for gettimeofday signature to just check the signature.  Merely
11419         compile it, since linking doesn't test signature.  Improve test for
11420         whether gettimeofday.o is actually needed.
11421         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
11422         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
11423         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
11424         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11425         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
11426         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
11427         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
11428         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
11429         than worrying about sys/time.h.
11430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11431         Don't bother worrying about TIME_WITH_SYS_TIME.
11432         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11433         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
11434         * m4/sys_time_h.m4: New file.
11435         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
11436         Don't include sys/time.h.  Return from main rather than exiting.
11437         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
11438         all uses changed.
11439         * modules/gethrxtime (Depends-on): Add sys_time.
11440         * modules/gettime (Depends-on): Likewise.
11441         * modules/gettimeofday (Depends-on): Likewise.
11442         * modules/nanosleep (Depends-on): Likewise.
11443         * modules/settime (Depends-on): Likewise.
11444         * modules/tempname (Depends-on): Likewise.
11445         * modules/utimens (Depends-on): Likewise.
11446         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
11447         (Include:) Change back to <sys/time.h>.
11448         (Maintainer:) Add self.
11449         * modules/sys_time: New file.
11450         * modules/tempname (Depends-on): Add gettimeofday.
11451         * tests/test-gettimeofday.c: Include <sys/time.h>
11452         rather than gettimeofday.h.
11453
11454 2007-01-17  Bruno Haible  <bruno@clisp.org>
11455
11456         * gnulib-tool (func_get_license): Revert last patch. Instead, let
11457         the license default to GPL.
11458         (func_create_testdir): Don't complain if a module is LGPL and its
11459         tests module depends on GPLed modules.
11460
11461 2007-01-17  Bruno Haible  <bruno@clisp.org>
11462
11463         * lib/gettimeofday.c (gettimeofday): Add code for the case
11464         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
11465         maximum possible value for tv->tv_usec, rather than the minimum one.
11466
11467 2005-10-08  Martin Lambers  <marlam@marlam.de>
11468 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11469 2007-01-16  Bruno Haible  <bruno@clisp.org>
11470
11471         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
11472         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
11473         gl_FUNC_GETTIMEOFDAY.
11474         (Include): Add gettimeofday.h.
11475         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
11476         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
11477         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
11478         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
11479         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
11480         * lib/gettimeofday.h: New file.
11481         * lib/gettimeofday.c: Include <sys/timeb.h>.
11482         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
11483         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11484         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
11485         fall back on time().
11486
11487         * tests/test-gettimeofday.c: New file.
11488         * modules/gettimeofday-tests: New file.
11489
11490 2007-01-16  Eric Blake  <ebb9@byu.net>
11491
11492         * modules/fnmatch (Depends-on): Depend on wchar.
11493         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
11494         * m4/fnmatch.m4: Likewise.
11495         * modules/mbchar (Makefile.am): Assume <wchar.h>.
11496         * m4/mbchar.m4: Likewise.
11497         * modules/mbswidth (Depends-on): Depend on wchar.
11498         * lib/mbswidth.c: Assume <wchar.h>.
11499         * m4/mbswidth.m4: Likewise.
11500         * modules/quotearg (Depends-on): Depend on wchar.
11501         * lib/quotearg.c: Assume <wchar.h>.
11502         * m4/quotearg.m4: Likewise.
11503         * modules/regex (Depends-on): Depend on wchar.
11504         * lib/regex_internal.h: Assume <wchar.h>.
11505         * m4/regex.m4: Likewise.
11506         * modules/stdint (Depends-on): Depend on wchar.
11507         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
11508         * m4/stdint.m4: Likewise.
11509         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
11510         * modules/strftime (Depends-on): Depend on wchar.
11511         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
11512         * modules/strtol (Depends-on): Depend on wchar.
11513         * lib/strtol.c: Assume <wchar.h>.
11514         * modules/wcwidth (Depends-on): Depend on wchar.
11515         * lib/wcwidth.h: Assume <wchar.h>.
11516         * m4/wcwidth.m4: Likewise.
11517
11518 2007-01-16  Bruno Haible  <bruno@clisp.org>
11519
11520         * modules/csharpexec-script: New, created from...
11521         * modules/csharpexec: ... this.
11522
11523 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
11524
11525         * modules/javaexec-script: New, created from...
11526         * modules/javaexec: ... this.
11527
11528 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11529
11530         * modules/poll (Dependencies): Add sys_select.
11531
11532 2007-01-15  Jim Meyering  <jim@meyering.net>
11533
11534         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
11535         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
11536         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
11537         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
11538
11539 2007-01-15  Bruno Haible  <bruno@clisp.org>
11540
11541         * modules/striconveh: New file.
11542         * lib/striconveh.h: New file.
11543         * lib/striconveh.c: New file.
11544         * MODULES.html.sh (Internationalization functions): Add striconveh.
11545
11546         * modules/striconveh-tests: New file.
11547         * tests/test-striconveh.c: New file.
11548
11549 2007-01-15  Bruno Haible  <bruno@clisp.org>
11550
11551         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
11552         not from GNU libiconv or GNU libc.
11553
11554 2007-01-15  Bruno Haible  <bruno@clisp.org>
11555
11556         * doc/gnulib-intro.texi (Copyright): Explain the different license
11557         terms for module descriptions, autoconf macros, tests, documentation.
11558
11559 2007-01-14  Bruno Haible  <bruno@clisp.org>
11560
11561         * modules/striconv-tests: New file.
11562         * tests/test-striconv.c: New file.
11563
11564 2007-01-14  Bruno Haible  <bruno@clisp.org>
11565
11566         * modules/iconv-tests: New file.
11567         * tests/test-iconv.c: New file.
11568
11569 2007-01-14  Bruno Haible  <bruno@clisp.org>
11570
11571         * gnulib-tool (func_get_license): For test modules, use the license of
11572         the main module.
11573
11574 2007-01-14  Bruno Haible  <bruno@clisp.org>
11575
11576         * modules/iconv (Include): Clarify that <iconv.h> can only be included
11577         if iconv is found to exist.
11578
11579 2007-01-14  Bruno Haible  <bruno@clisp.org>
11580
11581         * modules/c-ctype-tests: New file.
11582         * tests/test-c-ctype.c: New file.
11583
11584 2007-01-14  Bruno Haible  <bruno@clisp.org>
11585
11586         * modules/binary-io-tests: New file.
11587         * tests/test-binary-io.sh: New file.
11588         * tests/test-binary-io.c: New file.
11589
11590 2007-01-14  Bruno Haible  <bruno@clisp.org>
11591
11592         * modules/array-oset-tests: New file.
11593         * tests/test-array_oset.c: New file.
11594
11595 2007-01-14  Bruno Haible  <bruno@clisp.org>
11596
11597         * modules/array-list-tests: New file.
11598         * tests/test-array_list.c: New file.
11599
11600 2007-01-14  Bruno Haible  <bruno@clisp.org>
11601
11602         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
11603         and make.
11604         Reported by Simon Josefsson in
11605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
11606
11607 2007-01-14  Bruno Haible  <bruno@clisp.org>
11608
11609         * modules/allocsa-tests: New file.
11610         * tests/test-allocsa.c: New file.
11611
11612 2007-01-14  Bruno Haible  <bruno@clisp.org>
11613
11614         * modules/fchdir (Depends-on): Add absolute-header.
11615         * modules/unistd (Depends-on): Likewise.
11616
11617 2006-12-30  Bruno Haible  <bruno@clisp.org>
11618
11619         * modules/fchdir: New file.
11620         * modules/unistd (Files): Add lib/unistd_.h.
11621         (Makefile.am): Generate unistd.h from unistd_.h.
11622         * lib/fchdir.c: New file.
11623         * lib/dirent_.h: New file.
11624         * lib/unistd_.h: New file.
11625         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
11626         * m4/fchdir.m4: New file.
11627         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
11628         (gl_HEADER_UNISTD): Invoke it.
11629         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
11630         function.
11631         * lib/backupfile.c (opendir, closedir): Undefine.
11632         * lib/chown.c (open, close): Undefine.
11633         * lib/clean-temp.c (open, close): Undefine.
11634         * lib/copy-file.c (open, close): Undefine.
11635         * lib/execute.c (open, close): Undefine.
11636         * lib/fsusage.c (open, close): Undefine.
11637         * lib/gc-gnulib.c (open, close): Undefine.
11638         * lib/getcwd.c (opendir, closedir): Undefine.
11639         * lib/glob.c (opendir, closedir): Undefine.
11640         * lib/javacomp.c (open, close): Undefine.
11641         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
11642         * lib/openat-proc.c (open, close): Undefine.
11643         * lib/pagealign_alloc.c (open, close): Undefine.
11644         * lib/pipe.c (open, close): Undefine.
11645         * lib/progreloc.c (open, close): Undefine.
11646         * lib/savedir.c (opendir, closedir): Undefine.
11647         * lib/utime.c (open, close): Undefine.
11648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
11649
11650 2007-01-10  Bruno Haible  <bruno@clisp.org>
11651
11652         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
11653
11654 2007-01-12  Eric Blake  <ebb9@byu.net>
11655
11656         Provide a robust <wchar.h>.  Further simplifications are now
11657         possible in other modules, but not included here.
11658         * modules/wchar: New module.
11659         * m4/wchar.m4: New file.
11660         * lib/wchar_.h: Likewise.
11661         * modules/mbchar (Depends-on): Depend on wchar, as the first use
11662         of the new module.
11663         * MODULES.html.sh (Extended multibyte and wide character utilities):
11664         New section.
11665
11666 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
11667
11668         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
11669         to a reasonable default for memory allocation.
11670         (xreadlink): Don't allocate a huge buffer, to work around a buggy
11671         file system that reports garbage st_size values for symlinks.
11672         Problem reported by Liyang Hu.
11673
11674 2007-01-11  Simon Josefsson  <simon@josefsson.org>
11675
11676         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
11677         Emacs .#* auto-save files).
11678
11679 2007-01-11  Bruno Haible  <bruno@clisp.org>
11680
11681         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
11682         directory.
11683
11684 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11685
11686         Use @...@ consistently in lib/wctype_.h.
11687         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
11688         on it being set to 1 or 0.
11689         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
11690         go back to AC_SUBSTing it.
11691         * modules/wctype (Makefile.am): Undo previous change.
11692
11693 2007-01-10  Eric Blake  <ebb9@byu.net>
11694
11695         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
11696         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
11697         * modules/wctype (Makefile.am): Likewise.
11698         Reported by Chris McGuire.
11699
11700 2007-01-10  Jim Meyering  <jim@meyering.net>
11701
11702         fts.c: a small readability/maintainability improvement
11703         * lib/fts.c (fts_read): Make this code slightly more readable and
11704         maintainable by hoisting the "sp->fts_cur = p" assignments to
11705         immediately follow the statements that set P.  Derived from
11706         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
11707
11708 2007-01-10  Eric Blake  <ebb9@byu.net>
11709
11710         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
11711         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
11712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11713         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11714         Reported by Chris McGuire.
11715
11716 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11717
11718         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
11719         in sed script.
11720
11721 2007-01-09  Bruno Haible  <bruno@clisp.org>
11722
11723         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
11724         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
11725         variables.
11726         (func_module): Use them.
11727
11728 2007-01-09  Bruno Haible  <bruno@clisp.org>
11729
11730         * modules/unistr/base: New file.
11731         * lib/unistr.h: New file.
11732
11733         * modules/unistr/u8-to-u16: New file.
11734         * lib/unistr/u8-to-u16.c: New file.
11735
11736         * modules/unistr/u8-to-u32: New file.
11737         * lib/unistr/u8-to-u32.c: New file.
11738
11739         * modules/unistr/u16-to-u8: New file.
11740         * lib/unistr/u16-to-u8.c: New file.
11741
11742         * modules/unistr/u16-to-u32: New file.
11743         * lib/unistr/u16-to-u32.c: New file.
11744
11745         * modules/unistr/u32-to-u8: New file.
11746         * lib/unistr/u32-to-u8.c: New file.
11747
11748         * modules/unistr/u32-to-u16: New file.
11749         * lib/unistr/u32-to-u16.c: New file.
11750
11751         * modules/unistr/u8-check: New file.
11752         * modules/unistr/u16-check: New file.
11753         * modules/unistr/u32-check: New file.
11754         * lib/unistr/u8-check.c: New file.
11755         * lib/unistr/u16-check.c: New file.
11756         * lib/unistr/u32-check.c: New file.
11757
11758         * modules/unistr/u8-chr: New file.
11759         * modules/unistr/u16-chr: New file.
11760         * modules/unistr/u32-chr: New file.
11761         * lib/unistr/u8-chr.c: New file.
11762         * lib/unistr/u16-chr.c: New file.
11763         * lib/unistr/u32-chr.c: New file.
11764
11765         * modules/unistr/u8-cmp: New file.
11766         * modules/unistr/u16-cmp: New file.
11767         * modules/unistr/u32-cmp: New file.
11768         * lib/unistr/u8-cmp.c: New file.
11769         * lib/unistr/u16-cmp.c: New file.
11770         * lib/unistr/u32-cmp.c: New file.
11771
11772         * modules/unistr/u8-cpy: New file.
11773         * modules/unistr/u16-cpy: New file.
11774         * modules/unistr/u32-cpy: New file.
11775         * lib/unistr/u8-cpy.c: New file.
11776         * lib/unistr/u16-cpy.c: New file.
11777         * lib/unistr/u32-cpy.c: New file.
11778         * lib/unistr/u-cpy.h: New file.
11779
11780         * modules/unistr/u8-cpy-alloc: New file.
11781         * modules/unistr/u16-cpy-alloc: New file.
11782         * modules/unistr/u32-cpy-alloc: New file.
11783         * lib/unistr/u8-cpy-alloc.c: New file.
11784         * lib/unistr/u16-cpy-alloc.c: New file.
11785         * lib/unistr/u32-cpy-alloc.c: New file.
11786         * lib/unistr/u-cpy-alloc.h: New file.
11787
11788         * modules/unistr/u8-endswith: New file.
11789         * modules/unistr/u16-endswith: New file.
11790         * modules/unistr/u32-endswith: New file.
11791         * lib/unistr/u8-endswith.c: New file.
11792         * lib/unistr/u16-endswith.c: New file.
11793         * lib/unistr/u32-endswith.c: New file.
11794         * lib/unistr/u-endswith.h: New file.
11795
11796         * modules/unistr/u8-mblen: New file.
11797         * modules/unistr/u16-mblen: New file.
11798         * modules/unistr/u32-mblen: New file.
11799         * lib/unistr/u8-mblen.c: New file.
11800         * lib/unistr/u16-mblen.c: New file.
11801         * lib/unistr/u32-mblen.c: New file.
11802
11803         * modules/unistr/u8-mbtouc: New file.
11804         * modules/unistr/u16-mbtouc: New file.
11805         * modules/unistr/u32-mbtouc: New file.
11806         * lib/unistr/u8-mbtouc.c: New file.
11807         * lib/unistr/u16-mbtouc.c: New file.
11808         * lib/unistr/u32-mbtouc.c: New file.
11809
11810         * modules/unistr/u8-mbtouc-safe: New file.
11811         * modules/unistr/u16-mbtouc-safe: New file.
11812         * modules/unistr/u32-mbtouc-safe: New file.
11813         * lib/unistr/u8-mbtouc-safe.c: New file.
11814         * lib/unistr/u16-mbtouc-safe.c: New file.
11815         * lib/unistr/u32-mbtouc-safe.c: New file.
11816
11817         * modules/unistr/u8-move: New file.
11818         * modules/unistr/u16-move: New file.
11819         * modules/unistr/u32-move: New file.
11820         * lib/unistr/u8-move.c: New file.
11821         * lib/unistr/u16-move.c: New file.
11822         * lib/unistr/u32-move.c: New file.
11823         * lib/unistr/u-move.h: New file.
11824
11825         * modules/unistr/u8-next: New file.
11826         * modules/unistr/u16-next: New file.
11827         * modules/unistr/u32-next: New file.
11828         * lib/unistr/u8-next.c: New file.
11829         * lib/unistr/u16-next.c: New file.
11830         * lib/unistr/u32-next.c: New file.
11831
11832         * modules/unistr/u8-prev: New file.
11833         * modules/unistr/u16-prev: New file.
11834         * modules/unistr/u32-prev: New file.
11835         * lib/unistr/u8-prev.c: New file.
11836         * lib/unistr/u16-prev.c: New file.
11837         * lib/unistr/u32-prev.c: New file.
11838
11839         * modules/unistr/u8-set: New file.
11840         * modules/unistr/u16-set: New file.
11841         * modules/unistr/u32-set: New file.
11842         * lib/unistr/u8-set.c: New file.
11843         * lib/unistr/u16-set.c: New file.
11844         * lib/unistr/u32-set.c: New file.
11845         * lib/unistr/u-set.h: New file.
11846
11847         * modules/unistr/u8-startswith: New file.
11848         * modules/unistr/u16-startswith: New file.
11849         * modules/unistr/u32-startswith: New file.
11850         * lib/unistr/u8-startswith.c: New file.
11851         * lib/unistr/u16-startswith.c: New file.
11852         * lib/unistr/u32-startswith.c: New file.
11853         * lib/unistr/u-startswith.h: New file.
11854
11855         * modules/unistr/u8-stpcpy: New file.
11856         * modules/unistr/u16-stpcpy: New file.
11857         * modules/unistr/u32-stpcpy: New file.
11858         * lib/unistr/u8-stpcpy.c: New file.
11859         * lib/unistr/u16-stpcpy.c: New file.
11860         * lib/unistr/u32-stpcpy.c: New file.
11861         * lib/unistr/u-stpcpy.h: New file.
11862
11863         * modules/unistr/u8-stpncpy: New file.
11864         * modules/unistr/u16-stpncpy: New file.
11865         * modules/unistr/u32-stpncpy: New file.
11866         * lib/unistr/u8-stpncpy.c: New file.
11867         * lib/unistr/u16-stpncpy.c: New file.
11868         * lib/unistr/u32-stpncpy.c: New file.
11869         * lib/unistr/u-stpncpy.h: New file.
11870
11871         * modules/unistr/u8-strcat: New file.
11872         * modules/unistr/u16-strcat: New file.
11873         * modules/unistr/u32-strcat: New file.
11874         * lib/unistr/u8-strcat.c: New file.
11875         * lib/unistr/u16-strcat.c: New file.
11876         * lib/unistr/u32-strcat.c: New file.
11877         * lib/unistr/u-strcat.h: New file.
11878
11879         * modules/unistr/u8-strchr: New file.
11880         * modules/unistr/u16-strchr: New file.
11881         * modules/unistr/u32-strchr: New file.
11882         * lib/unistr/u8-strchr.c: New file.
11883         * lib/unistr/u16-strchr.c: New file.
11884         * lib/unistr/u32-strchr.c: New file.
11885
11886         * modules/unistr/u8-strcmp: New file.
11887         * modules/unistr/u16-strcmp: New file.
11888         * modules/unistr/u32-strcmp: New file.
11889         * lib/unistr/u8-strcmp.c: New file.
11890         * lib/unistr/u16-strcmp.c: New file.
11891         * lib/unistr/u32-strcmp.c: New file.
11892
11893         * modules/unistr/u8-strcpy: New file.
11894         * modules/unistr/u16-strcpy: New file.
11895         * modules/unistr/u32-strcpy: New file.
11896         * lib/unistr/u8-strcpy.c: New file.
11897         * lib/unistr/u16-strcpy.c: New file.
11898         * lib/unistr/u32-strcpy.c: New file.
11899         * lib/unistr/u-strcpy.h: New file.
11900
11901         * modules/unistr/u8-strcspn: New file.
11902         * modules/unistr/u16-strcspn: New file.
11903         * modules/unistr/u32-strcspn: New file.
11904         * lib/unistr/u8-strcspn.c: New file.
11905         * lib/unistr/u16-strcspn.c: New file.
11906         * lib/unistr/u32-strcspn.c: New file.
11907         * lib/unistr/u-strcspn.h: New file.
11908
11909         * modules/unistr/u8-strdup: New file.
11910         * modules/unistr/u16-strdup: New file.
11911         * modules/unistr/u32-strdup: New file.
11912         * lib/unistr/u8-strdup.c: New file.
11913         * lib/unistr/u16-strdup.c: New file.
11914         * lib/unistr/u32-strdup.c: New file.
11915         * lib/unistr/u-strdup.h: New file.
11916
11917         * modules/unistr/u8-strlen: New file.
11918         * modules/unistr/u16-strlen: New file.
11919         * modules/unistr/u32-strlen: New file.
11920         * lib/unistr/u8-strlen.c: New file.
11921         * lib/unistr/u16-strlen.c: New file.
11922         * lib/unistr/u32-strlen.c: New file.
11923         * lib/unistr/u-strlen.h: New file.
11924
11925         * modules/unistr/u8-strmblen: New file.
11926         * modules/unistr/u16-strmblen: New file.
11927         * modules/unistr/u32-strmblen: New file.
11928         * lib/unistr/u8-strmblen.c: New file.
11929         * lib/unistr/u16-strmblen.c: New file.
11930         * lib/unistr/u32-strmblen.c: New file.
11931
11932         * modules/unistr/u8-strmbtouc: New file.
11933         * modules/unistr/u16-strmbtouc: New file.
11934         * modules/unistr/u32-strmbtouc: New file.
11935         * lib/unistr/u8-strmbtouc.c: New file.
11936         * lib/unistr/u16-strmbtouc.c: New file.
11937         * lib/unistr/u32-strmbtouc.c: New file.
11938
11939         * modules/unistr/u8-strncat: New file.
11940         * modules/unistr/u16-strncat: New file.
11941         * modules/unistr/u32-strncat: New file.
11942         * lib/unistr/u8-strncat.c: New file.
11943         * lib/unistr/u16-strncat.c: New file.
11944         * lib/unistr/u32-strncat.c: New file.
11945         * lib/unistr/u-strncat.h: New file.
11946
11947         * modules/unistr/u8-strncmp: New file.
11948         * modules/unistr/u16-strncmp: New file.
11949         * modules/unistr/u32-strncmp: New file.
11950         * lib/unistr/u8-strncmp.c: New file.
11951         * lib/unistr/u16-strncmp.c: New file.
11952         * lib/unistr/u32-strncmp.c: New file.
11953
11954         * modules/unistr/u8-strncpy: New file.
11955         * modules/unistr/u16-strncpy: New file.
11956         * modules/unistr/u32-strncpy: New file.
11957         * lib/unistr/u8-strncpy.c: New file.
11958         * lib/unistr/u16-strncpy.c: New file.
11959         * lib/unistr/u32-strncpy.c: New file.
11960         * lib/unistr/u-strncpy.h: New file.
11961
11962         * modules/unistr/u8-strnlen: New file.
11963         * modules/unistr/u16-strnlen: New file.
11964         * modules/unistr/u32-strnlen: New file.
11965         * lib/unistr/u8-strnlen.c: New file.
11966         * lib/unistr/u16-strnlen.c: New file.
11967         * lib/unistr/u32-strnlen.c: New file.
11968         * lib/unistr/u-strnlen.h: New file.
11969
11970         * modules/unistr/u8-strpbrk: New file.
11971         * modules/unistr/u16-strpbrk: New file.
11972         * modules/unistr/u32-strpbrk: New file.
11973         * lib/unistr/u8-strpbrk.c: New file.
11974         * lib/unistr/u16-strpbrk.c: New file.
11975         * lib/unistr/u32-strpbrk.c: New file.
11976         * lib/unistr/u-strpbrk.h: New file.
11977
11978         * modules/unistr/u8-strrchr: New file.
11979         * modules/unistr/u16-strrchr: New file.
11980         * modules/unistr/u32-strrchr: New file.
11981         * lib/unistr/u8-strrchr.c: New file.
11982         * lib/unistr/u16-strrchr.c: New file.
11983         * lib/unistr/u32-strrchr.c: New file.
11984
11985         * modules/unistr/u8-strspn: New file.
11986         * modules/unistr/u16-strspn: New file.
11987         * modules/unistr/u32-strspn: New file.
11988         * lib/unistr/u8-strspn.c: New file.
11989         * lib/unistr/u16-strspn.c: New file.
11990         * lib/unistr/u32-strspn.c: New file.
11991         * lib/unistr/u-strspn.h: New file.
11992
11993         * modules/unistr/u8-strstr: New file.
11994         * modules/unistr/u16-strstr: New file.
11995         * modules/unistr/u32-strstr: New file.
11996         * lib/unistr/u8-strstr.c: New file.
11997         * lib/unistr/u16-strstr.c: New file.
11998         * lib/unistr/u32-strstr.c: New file.
11999         * lib/unistr/u-strstr.h: New file.
12000
12001         * modules/unistr/u8-strtok: New file.
12002         * modules/unistr/u16-strtok: New file.
12003         * modules/unistr/u32-strtok: New file.
12004         * lib/unistr/u8-strtok.c: New file.
12005         * lib/unistr/u16-strtok.c: New file.
12006         * lib/unistr/u32-strtok.c: New file.
12007         * lib/unistr/u-strtok.h: New file.
12008
12009         * modules/unistr/u8-uctomb: New file.
12010         * modules/unistr/u16-uctomb: New file.
12011         * modules/unistr/u32-uctomb: New file.
12012         * lib/unistr/u8-uctomb.c: New file.
12013         * lib/unistr/u16-uctomb.c: New file.
12014         * lib/unistr/u32-uctomb.c: New file.
12015
12016         * MODULES.html.sh (Unicode string functions): Add the new modules.
12017
12018 2007-01-08  Bruno Haible  <bruno@clisp.org>
12019
12020         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
12021         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
12022         subdirectories.
12023
12024 2007-01-08  Karl Berry  <karl@gnu.org>
12025
12026         * doc/error.texi: mention that main() fns must set program_name
12027         when progname is used.
12028
12029 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
12030
12031         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
12032         WCTYPE_H is empty, for the benefit of builds from non-distclean
12033         directories.  Problem reported by Eric Blake in
12034         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
12035
12036 2007-01-08  Bruno Haible  <bruno@clisp.org>
12037
12038         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
12039         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
12040         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
12041         PROVIDE_CANONICALIZE_FILENAME_MODE.
12042         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
12043
12044 2007-01-08  Bruno Haible  <bruno@clisp.org>
12045
12046         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
12047         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
12048         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
12049         * lib/fts.c: Likewise.
12050         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
12051
12052 2006-12-25  Bruno Haible  <bruno@clisp.org>
12053
12054         * modules/utf8-ucs4-safe: New file.
12055         * lib/utf8-ucs4-safe.h: New file.
12056         * lib/unistr/utf8-ucs4-safe.c: New file.
12057
12058         * modules/utf16-ucs4-safe: New file.
12059         * lib/utf16-ucs4-safe.h: New file.
12060         * lib/unistr/utf16-ucs4-safe.c: New file.
12061
12062         * MODULES.html.sh (Unicode string functions): Add the new modules.
12063
12064 2007-01-08  Bruno Haible  <bruno@clisp.org>
12065
12066         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
12067         (Depends-on): Add unitypes.
12068         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
12069         (u8_mbtouc_aux): Move out to separate file.
12070         (u8_mbtouc): Use ucs4_t, uint8_t types.
12071         * lib/unistr/utf8-ucs4.c: New file.
12072
12073         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
12074         (Depends-on): Add unitypes.
12075         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
12076         (u16_mbtouc_aux): Move out to separate file.
12077         (u16_mbtouc): Use ucs4_t, uint16_t types.
12078         * lib/unistr/utf16-ucs4.c: New file.
12079
12080         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
12081         (Depends-on): Add unitypes.
12082         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
12083         (u8_uctomb_aux): Move out to separate file.
12084         (u8_uctomb): Use ucs4_t, uint8_t types.
12085         * lib/unistr/ucs4-utf8.c: New file.
12086
12087         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
12088         (Depends-on): Add unitypes.
12089         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
12090         (u16_uctomb_aux): Move out to separate file.
12091         (u16_uctomb): Use ucs4_t, uint16_t types.
12092         * lib/unistr/ucs4-utf16.c: New file.
12093
12094 2006-12-25  Bruno Haible  <bruno@clisp.org>
12095
12096         * modules/unitypes: New file.
12097         * lib/unitypes.h: New file.
12098         * MODULES.html.sh (func_all_modules): New section "Unicode string
12099         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
12100         this section. Add unitypes.
12101
12102 2007-01-08  Bruno Haible  <bruno@clisp.org>
12103
12104         Avoid variable names that conflict with those from libtool.
12105         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
12106         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
12107         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
12108         library_names_spec to acl_library_names_spec, hardcode_* to
12109         acl_hardcode_*.
12110         Reported by Ralf Wildenhues.
12111
12112 2007-01-08  Bruno Haible  <bruno@clisp.org>
12113
12114         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
12115         definition.
12116         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
12117         definition.
12118         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
12119         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
12120         definition.
12121         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
12122         definition.
12123         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
12124         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
12125         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
12126         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
12127         definition.
12128         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
12129         definition.
12130         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
12131         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
12132         GC_USE_<algorithm>.
12133         * lib/gc-libgcrypt.c: Likewise.
12134         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
12135         * modules/gc-arctwo (configure.ac): Likewise.
12136         * modules/gc-des (configure.ac): Likewise.
12137         * modules/gc-hmac-md5 (configure.ac): Likewise.
12138         * modules/gc-hmac-sha1 (configure.ac): Likewise.
12139         * modules/gc-md2 (configure.ac): Likewise.
12140         * modules/gc-md4 (configure.ac): Likewise.
12141         * modules/gc-md5 (configure.ac): Likewise.
12142         * modules/gc-random (configure.ac): Likewise.
12143         * modules/gc-rijndael (configure.ac): Likewise.
12144         * modules/gc-sha1 (configure.ac): Likewise.
12145
12146 2007-01-08  Bruno Haible  <bruno@clisp.org>
12147
12148         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
12149         macro definition.
12150         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
12151         definition.
12152         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
12153         definition.
12154         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
12155         * modules/fcntl-safer (configure.ac): Likewise.
12156         * modules/fopen-safer (configure.ac): Likewise.
12157         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
12158         GNULIB_FWRITEERROR macro definition.
12159
12160 2007-01-08  Bruno Haible  <bruno@clisp.org>
12161
12162         * m4/gnulib-common.m4: New file.
12163         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
12164         (func_get_filelist): Add m4/gnulib-common.m4.
12165
12166 2007-01-08  Bruno Haible  <bruno@clisp.org>
12167
12168         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
12169         command.
12170
12171 2007-01-08  Jim Meyering  <jim@meyering.net>
12172
12173         Use a more robust test for a "can't happen" condition.
12174         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
12175         narrowed the st_size value.  Presuming the "can't happen" condition
12176         is true, that narrowing could conceivably convert an invalid st_size
12177         value into a valid one.  Instead, use a change based on Matthew
12178         Woehlke's original patch.
12179
12180         Slight readability improvement: use an assert-like macro
12181         in place of literal "abort ()" uses.
12182         * lib/fts.c (fts_assert): Define.
12183         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
12184         Use this macro instead of a bare 'abort'.
12185
12186 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12187
12188         Don't worry about using IRIX 5.3's wctype.h broken definitions;
12189         simply work around them.
12190         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
12191         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
12192         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
12193         declaring.
12194         Don't bother to define as macros, since the standard doesn't require it.
12195         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
12196         longer worry about IRIX 5.3.
12197         (HAVE_WCTYPE_CTMP_BUG): Remove.
12198
12199 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12200
12201         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
12202         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
12203         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12204         Problems reported by Georg Schwarz for IRIX 5.3.
12205
12206         * gnulib-tool (autoconf_minversion): Take the maximum version number
12207         found, not the minimum.  Problem reported by James Youngman.
12208
12209 2007-01-03  Karl Berry  <karl@gnu.org>
12210
12211         * doc/error.texi: new file, explaining interaction with progname.
12212         * doc/gnulib.texi: include it.  Update copyright.
12213
12214 2007-01-03  Simon Josefsson  <simon@josefsson.org>
12215
12216         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
12217         AC_CANONICAL_HOST, to improve autobuild outputs.
12218
12219 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
12220             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12221
12222         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
12223         sockets, server sockets, and other file descriptors.  Count errors
12224         to compute the return value.  Reorder the code a bit to be easier
12225         to follow.  Don't set event bits that were not requested (except
12226         POLLERR and POLLHUP).
12227
12228 2007-01-01  Bruno Haible  <bruno@clisp.org>
12229
12230         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
12231
12232 2007-01-03  Jim Meyering  <jim@meyering.net>
12233
12234         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
12235
12236 2007-01-02  Bruno Haible  <bruno@clisp.org>
12237
12238         * modules/settime (Include): Require timespec.h.
12239         * modules/nanosleep (Include): Likewise.
12240
12241 2007-01-01  Bruno Haible  <bruno@clisp.org>
12242
12243         * gnulib-tool (func_emit_copyright_notice): Bump year.
12244         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
12245
12246 2007-01-01  Bruno Haible  <bruno@clisp.org>
12247
12248         Improve support for OpenBSD.
12249         * build-aux/config.rpath (libname_spec): Export.
12250         (library_names_spec): New variable. Export.
12251         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
12252         library_names_spec from the config.rpath output. Locate shared library
12253         through the name pattern in library_names_spec.
12254
12255 2007-01-01  Eric Blake  <ebb9@byu.net>
12256
12257         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
12258
12259 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
12260
12261         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
12262         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
12263         assume the C locale, and avoid an "eval" that could cause trouble.
12264         Problem with SORT reported by Bob Proulx.
12265
12266         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
12267         Define.  Trivial patch from Henning Nielsen Lund, originally
12268         sent to bug-grep@gnu.org today.
12269
12270 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12271
12272         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
12273         struct stat.  Problem reported by Henning Nielsen Lund.
12274         * lib/acl.c: Include acl.h first, to check interface.  Don't
12275         bother to include sys/types.h and sys/stat.h again.
12276
12277 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         Import the following change from libc; problem reported by
12280         Sven Verdoolaege.
12281
12282         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
12283
12284         [BZ #1373]
12285         * lib/argp.h: Remove __NTH for __argp_usage inline function.
12286
12287 2006-12-28  Jim Meyering  <jim@meyering.net>
12288
12289         * build-aux/announce-gen: Do not assume that the package
12290         builds any of tar.gz, tar.bz2, and .xdelta files.
12291         Suggestion from Simon Josefsson.
12292
12293 2006-12-28  Simon Josefsson  <simon@josefsson.org>
12294
12295         * modules/announce-gen: New file.
12296
12297 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12298
12299         * lib/mbchar.h: Just include <wctype.h>; the wctype module
12300         handles its gotchas now.
12301         * lib/mbswidth.c: Likewise.
12302         * lib/wcwidth.h: Likewise.
12303         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
12304         and iswcntrl; the wctype module does this stuff now.
12305         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12307         * modules/mbchar (Depends-on): Add wctype.
12308         * modules/mbswidth (Depends-on): Likewise.
12309         * modules/wcwidth (Depends-on): Likewise.
12310
12311 2006-12-27  Eric Blake  <ebb9@byu.net>
12312
12313         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
12314         module uses more than what <wctype.h> is required to provide.
12315
12316 2006-12-26  Eric Blake  <ebb9@byu.net>
12317
12318         * gnulib-tool (sed_extract_prog): Avoid space-tab.
12319
12320 2006-12-26  Eric Blake  <ebb9@byu.net>
12321
12322         * modules/absolute-header: New module.
12323         * modules/fcntl (Depends-on): Depend on it.
12324         * modules/inttypes (Depends-on): Likewise.
12325         * modules/stdint (Depends-on): Likewise.
12326         * modules/sys_stat (Depends-on): Likewise.
12327         * modules/wctype (Depends-on): Likewise.
12328         * MODULES.html.sh (Support for building libraries and
12329         executables): Document it.
12330
12331 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12332
12333         * gnulib-tool (SED): Remove, undoing previous change.
12334         The problem was that it broke coreutils on Solaris, because
12335         "sed --posix" leaked into a makefile.
12336         (sed): New alias, if 'alias' and GNU sed.
12337
12338 2006-12-24  Jim Meyering  <jim@meyering.net>
12339
12340         Work around an fchownat bug in glibc-2.4:
12341         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
12342         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
12343         in spite of the -P option.
12344         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
12345         New macros.
12346         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
12347         * modules/openat (Files): Add lib/fchownat.c.
12348         * lib/openat.c (fchownat): Don't define here.  Move to...
12349         * lib/fchownat.c: ...this new file.
12350
12351 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12352
12353         Fix bug reported by Bruno Haible in
12354         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
12355         where quotearg.c didn't compile on Mac OS X 10.2 because it
12356         lacks <wchar.h> and wint_t.
12357         * lib/wctype_.h (__wctype_wint_t): New type.
12358         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
12359         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
12360         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
12361         Arg is now of type __wctype_wint_t, not wint_t.
12362         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
12363         substitute HAVE_WINT_T.
12364         * modules/wctype (Files): Add m4/wint_t.m4.
12365         (wctype.h): Substitute HAVE_WINT_T.
12366
12367 2006-12-23  Bruno Haible  <bruno@clisp.org>
12368
12369         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
12370
12371 2006-12-23  Bruno Haible  <bruno@clisp.org>
12372
12373         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
12374         S_ISLNK.
12375         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
12376         mingw.
12377
12378 2006-12-22  Bruno Haible  <bruno@clisp.org>
12379
12380         * lib/copy-file.c: Include acl.h.
12381         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
12382         Close the file descriptors only after being done with copy_acl.
12383         * modules/copy-file (Depends-on): Add acl.
12384
12385 2006-12-22  Bruno Haible  <bruno@clisp.org>
12386
12387         * gnulib-tool (SED): New variable.
12388         Use $SED instead of sed everywhere.
12389
12390 2006-12-22  Bruno Haible  <bruno@clisp.org>
12391
12392         * modules/no-c++: New file.
12393         * m4/no-c++.m4: New file.
12394         * MODULES.html.sh (Support for building libraries and executables):
12395         Add no-c++.
12396
12397 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12398
12399         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
12400         Include <limits.h>, and use its INT_MAX to rewrite the
12401         j loop so that it does not overflow 'int'.  Problem reported by
12402         Ralf Wildenhues in
12403         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
12404         Play it safe by shifting left by 1 rather than multiplying by 2,
12405         as GCC is less likely to optimize this away when the value
12406         is signed (when it assumes overflow leads to undefined behavior).
12407         Also, don't assume time_t uses two's complement.
12408
12409 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12410
12411         * MODULES.html.sh: New module wctype.
12412         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
12413         * lib/fnmatch.c: Don't bother to include <wchar.h> before
12414         <wctype.h>, since the new wctype module should fix this.
12415         * lib/quotearg.c: Include <wctype.h> unconditionally, since
12416         the wctype module should arrange for it.
12417         * lib/regex_internal.h: Likewise.
12418         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
12419         since the wctype module should handle this now.
12420         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
12421         * modules/fnmatch (Depends-on): Add wctype.
12422         * modules/quotearg (Depends-on): Likewise.
12423         * modules/regex (Depends-on): Likewise.
12424
12425 2006-12-19  Bruno Haible  <bruno@clisp.org>
12426
12427         * lib/strdup.h [C++]: Wrap definitions in extern "C".
12428         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
12429
12430 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12431
12432         * modules/savewd (Depends-on): Fix dependency on fcntl.
12433
12434 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12435
12436         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
12437         conforms to C99, rather than relying on the user's environment
12438         setting of STDINT_H.
12439
12440 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12441         and Eric Blake  <ebb9@byu.net>
12442
12443         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
12444         This is more consistent with the other defines here.
12445         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
12446         Port to z/OS.  Problem reported by Paul Gilmartin.
12447         Change local vars to use gl_ prefix rather than ac_.
12448         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
12449         with other defines.
12450         * modules/double-slash-root: New module.
12451         * modules/dirname (Files): Remove m4/double-slash-root.m4.
12452         (Depends-on): Add double-slash-root.
12453         * MODULES.html.sh (File system functions): Mention new module.
12454
12455 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
12456
12457         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
12458         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
12459         This is for the benefit of gzip, which doesn't do i18n.
12460
12461 2006-12-12  Jim Meyering  <jim@meyering.net>
12462
12463         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
12464         Reported by Andreas Schwab <schwab@suse.de>.
12465
12466 2006-12-12  Bruno Haible  <bruno@clisp.org>
12467
12468         Merge these changes.
12469         2006-09-05  Bruno Haible  <bruno@clisp.org>
12470         * lib/iconvme.c (iconv_string): No need to save and restore errno when
12471         iconv_alloc succeeded.
12472         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
12473         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
12474         test for " && dest " at the end - dest is always != NULL there. Call
12475         iconv with 4xNULL arguments initially, to reset the state. Call iconv
12476         with 2xNULL arguments, also to flush the state storage. Handle the
12477         IRIX iconv behaviour. Realloc the final result, to throw away unused
12478         memory.
12479
12480 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
12481
12482         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
12483         and fchmodat unconditionally, since glibc 2.4 has them.
12484         Problem reported by Arkadiusz Miskiewicz.
12485
12486 2006-12-10  Bruno Haible  <bruno@clisp.org>
12487
12488         * gnulib-tool (func_import): Show the include files only for those
12489         modules that are copied and specified.
12490         Reported by Karl Berry.
12491
12492 2006-12-08  Jim Meyering  <jim@meyering.net>
12493
12494         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
12495         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
12496
12497         * build-aux/announce-gen: Add two new options, both optional:
12498         --bootstrap-tools=TOOL_LIST
12499               a comma-separated list of tools, e.g.,
12500               autoconf,automake,bison,gnulib
12501         --gnulib-snapshot-date=DATE
12502               if gnulib is in the bootstrap tool list,
12503               then report this as the snapshot date.
12504               If not specified, use the current date/time.
12505               If you specify a date here, be sure it's UTC.
12506
12507 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12508
12509         * tests/test-argp-2.sh: Fix test to match actual output.
12510         (func_compare): Fix sed script to be portable.
12511
12512 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
12513
12514         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
12515         workaround for this case.  It is not autoconfigured now; offhand
12516         it's hard to see how to autoconfigure it.
12517
12518 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
12519
12520         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
12521         a directory that is about to be chowned.  Such a directory's
12522         initial file permissions should permit the owner only and this
12523         should not be changed until after the chown, since the group and
12524         other bits would be incorrect if they granted permission before
12525         the chown.
12526
12527         Fix porting problem for iswctype reported by Georg Schwarz in:
12528         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
12529         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
12530         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
12531         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
12532         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12533
12534 2006-12-03  Jim Meyering  <jim@meyering.net>
12535
12536         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
12537         p->fts_statp may not yet be defined.
12538         (fts_read): Instead, set it in the caller, once p->fts_statp is
12539         sure to be defined, and corresponds to a top-level directory.
12540         This bug made du -x fail.  Here's the coreutils test case:
12541         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
12542         Reported by Mike Frysinger.
12543
12544 2006-12-01  Jim Meyering  <jim@meyering.net>
12545
12546         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
12547         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
12548         Reported by Simon Josefsson.
12549
12550 2006-11-30  Jim Meyering  <jim@meyering.net>
12551
12552         * m4/warning.m4: Use the all-permissive copyright notice
12553         recommended by RMS (rather than LGPL).
12554         * m4/vararrays.m4: Likewise.
12555         * m4/flexmember.m4: Likewise.
12556
12557 2006-11-29  Bruno Haible  <bruno@clisp.org>
12558
12559         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
12560         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
12561         using +=.
12562         Reported by Simon Josefsson <simon@josefsson.org>.
12563
12564 2006-11-28  James Youngman <jay@gnu.org>
12565
12566         * README: Advise users that they might find the bug-gnulib@gnu.org
12567         and autotools-announce@gnu.org mailing lists useful.
12568
12569 2006-11-28  Bruno Haible  <bruno@clisp.org>
12570
12571         * m4/ptrdiff_max.m4: Remove file.
12572
12573 2006-11-21  Bruno Haible  <bruno@clisp.org>
12574
12575         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
12576         _AC_COMPUTE_INT.
12577         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
12578         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
12579         _AC_COMPUTE_INT.
12580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
12581         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
12582         _AC_COMPUTE_INT.
12583         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
12584
12585 2006-11-28  Jim Meyering  <jim@meyering.net>
12586
12587         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
12588         warning from "gcc -Wshadow" about shadowing the builtin.
12589
12590 2006-11-27  Bruno Haible  <bruno@clisp.org>
12591
12592         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
12593         _AC_COMPUTE_INT.
12594         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
12595
12596 2006-11-27  Bruno Haible  <bruno@clisp.org>
12597             Paul Eggert  <eggert@cs.ucla.edu>
12598
12599         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
12600
12601 2006-11-26  Bruno Haible  <bruno@clisp.org>
12602
12603         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
12604         noinst_LTLIBRARIES.
12605
12606 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
12607             Bruno Haible  <bruno@clisp.org>
12608
12609         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
12610         if compiling with "gcc -ansi".
12611
12612 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
12613
12614         Fix some incompatibilities with gcc -ansi -pedantic.
12615         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
12616         if compiling pedantically with GCC, unless it's C99 or later.
12617         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
12618         it mishandles gcc -ansi -pedantic as well.
12619         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
12620         if gcc -pedantic.
12621         * lib/regexec.c (check_node_accept_bytes): Don't use auto
12622         initializers for struct if -pedantic, unless it's C99 or later.
12623
12624 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
12625
12626         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
12627         Don't close an fd more than once. Identical atimes indicate
12628         success, not failure.
12629
12630 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
12631
12632         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
12633
12634 2006-11-23  Jim Meyering  <jim@meyering.net>
12635
12636         * build-aux/announce-gen: New file.  From coreutils.
12637
12638 2006-11-22  Jim Meyering  <jim@meyering.net>
12639
12640         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
12641         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
12642         (fts_read): Use a temporary to narrow the overused st_size member
12643         before using it in a switch statement.  Reported by Matthew Woehlke.
12644
12645         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
12646         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12647
12648 2006-11-20  Bruno Haible  <bruno@clisp.org>
12649
12650         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
12651         changequote instead of pairs of brackets.
12652         Reported by Andreas Schwab <schwab@suse.de>.
12653
12654 2006-11-21  Jim Meyering  <jim@meyering.net>
12655
12656         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
12657         so as to remain compatible with older compilers.
12658         Patch from Michael Deutschmann.
12659
12660 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12661
12662         * MODULES.html.sh (File system functions): Add openat.
12663
12664         * lib/openat.h (rpl_fstatat): New macro, if
12665         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
12666         (fstatat): Define to rpl_fstatat under the same conditions,
12667         unless COMPILING_FSTATAT.
12668         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
12669         seems to have the bug.
12670         * lib/fstatat.c: New file.
12671         * modules/openat (Files): Add it.
12672
12673 2006-11-20  Bruno Haible  <bruno@clisp.org>
12674
12675         * Makefile: New file.
12676
12677 2006-11-20  Jim Meyering  <jim@meyering.net>
12678
12679         The beginnings of syntax-related checks for gnulib.
12680         * lib/Makefile: New file.
12681         * lib/t-idcache: New script.  Ensure that the two halves of
12682         idcache.c stay in sync.
12683
12684         * lib/idcache.c: Adjust comments in user- and group- portions to
12685         be more accurate, and to be consistent with one another.
12686
12687 2006-11-20  Jim Meyering  <jim@meyering.net>
12688
12689         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
12690         continue using the flexible array member (thus, this module performs
12691         half as many malloc calls), with the addition that...
12692         (getgroup, getuser): Consistently record a non-match via an empty
12693         "name" string, and map an empty string match to a NULL return value.
12694         * modules/idcache (Depends-on): Re-add flexmember.
12695
12696         * lib/idcache.c (getuser): Remove all uses of the register keyword.
12697         (getuidbyname, getgroup, getgidbyname): Likewise.
12698
12699         Use cleaner syntax: NULL rather than 0.
12700         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
12701
12702 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12703
12704         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
12705         It mishandled the case where the group was missing.
12706         Problem reported by Greg Schafer.
12707         * modules/idcache: Likewise.
12708
12709 2006-11-18  Jim Meyering  <jim@meyering.net>
12710
12711         * check-module (%exempt_header): Add exception for some
12712         conditionally-included headers.
12713
12714         * modules/i-ring (Depends-on): Add verify.
12715         (License): Change to LGPL.
12716
12717 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12718
12719         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
12720         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
12721         and inttostr.h.  Use snprintf rather than uinttostr, so that
12722         LGPLed code doesn't depend on GPLed.
12723
12724 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12725
12726         * modules/inline (License): Change from GPL to LGPL.
12727
12728 2006-11-17  Jim Meyering  <jim@meyering.net>
12729
12730         * modules/d-type (License): Switch to LGPL.
12731
12732 2006-11-15  Bruno Haible  <bruno@clisp.org>
12733
12734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
12735
12736 2006-11-15  Eric Blake  <ebb9@byu.net>
12737
12738         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
12739         the module dependency.
12740
12741 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12742             Bruno Haible  <bruno@clisp.org>
12743
12744         * gnulib-tool (func_create_testdir): Add license consistency check.
12745
12746 2006-11-15  Eric Blake  <ebb9@byu.net>
12747
12748         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
12749         random "(cached)" in configure output.
12750
12751 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12752
12753         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
12754         test for conforming inttypes.h is both announced and cached.
12755
12756         * MODULES.html.sh (seen_modules, seen_files): New variables.
12757         (func_module): Rewrite to use a few less gnulib-tool and sed
12758         invocations.  Avoid a couple of quadratic algorithms for ...
12759         (missed_modules, missed_files): ... these, with ...
12760         (func_append, func_tmpdir): ... these new functions, from
12761         gnulib-tool.  Analogously, install traps for cleanup.
12762
12763         * tests/test-gc.c (main): Remove unused variables.
12764         * tests/test-read-file.c: Include stdlib.h, for 'free'.
12765
12766 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
12767
12768         * modules/inttostr (License): Change to LGPL.
12769
12770 2006-11-14  Eric Blake  <ebb9@byu.net>
12771
12772         * modules/tempname (License): Change to LGPL.
12773
12774 2006-11-14  Eric Blake  <ebb9@byu.net>
12775
12776         * doc/functions.texi (Function Portability): *printf functions on
12777         Cygwin now understand all POSIX size specifiers.
12778
12779 2006-11-14  Bruno Haible  <bruno@clisp.org>
12780
12781         * modules/c-ctype (License): Change to LGPL.
12782
12783 2006-11-12  Bruno Haible  <bruno@clisp.org>
12784
12785         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12786         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
12787         for GNOME libraries, for which the include files are installed in
12788         subdirectories of $prefix/include.
12789
12790 2006-11-12  Bruno Haible  <bruno@clisp.org>
12791
12792         * m4/lib-link.m4: Require at least autoconf-2.54.
12793         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
12794         name to underscores for the --with option.
12795
12796 2006-11-13  Bruno Haible  <bruno@clisp.org>
12797
12798         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
12799         the tests directory.
12800         Reported by Ralf Wildenhues.
12801
12802 2006-11-13  Bruno Haible  <bruno@clisp.org>
12803
12804         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
12805         (func_emit_initmacro_end): Undo the override here.
12806         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
12807         Works around the famous automake error in coreutils.
12808
12809 2006-11-13  Eric Blake  <ebb9@byu.net>
12810
12811         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
12812         element, not its node.
12813
12814 2006-11-12  Bruno Haible  <bruno@clisp.org>
12815
12816         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
12817         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
12818
12819 2006-11-12  Bruno Haible  <bruno@clisp.org>
12820
12821         * gnulib-tool: New option --local-symlink.
12822         (func_usage): Document it.
12823         (lsymbolic): New variable.
12824         (func_import, func_create_testdir): If --symlink was not specified,
12825         test whether --local-symlink was specified and the file comes from
12826         the local_gnulib_dir.
12827
12828 2006-11-12  Bruno Haible  <bruno@clisp.org>
12829
12830         * gnulib-tool (func_ln): New function.
12831         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
12832
12833 2006-11-12  Bruno Haible  <bruno@clisp.org>
12834
12835         Finish support for source files in subdirectories.
12836         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
12837         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
12838         AUTOMAKE_OPTIONS.
12839         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
12840
12841 2006-11-12  Bruno Haible  <bruno@clisp.org>
12842
12843         * gnulib-tool (func_get_automake_snippet): Synthesize also an
12844         EXTRA_lib_SOURCES augmentation.
12845         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
12846
12847 2006-11-12  Jim Meyering  <jim@meyering.net>
12848
12849         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
12850         file descriptors.  This also averts a failure on systems with
12851         native openat support when a traversed directory lacks "x" access.
12852         * lib/fts_.h: Include "i-ring.h"
12853         (struct FTS) [fts_fd_ring]: New member.
12854         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
12855         (FCHDIR): Add parentheses.
12856         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
12857         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
12858         When descending, rather than simply closing the previous
12859         fts_cwd_fd value, push that file descriptor onto the ring.
12860         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
12861         (fts_open): Initialize the new fd_ring member.
12862         (fts_close): Clear the ring.
12863         (fts_safe_changedir): When possible, use our new fd_ring to skip
12864         the diropen and fstat and dev/ino comparison that would normally
12865         accompany a virtual `chdir ("..")'.
12866
12867         * modules/fts (Depends-on): Add i-ring.
12868         * modules/i-ring: New module.
12869         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
12870         * m4/i-ring.m4: New file.
12871
12872 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12873
12874         * gnulib-tool (func_create_testdir): Fix replacement of
12875         `build-aux' in configure.ac.  Run autotools in gltests
12876         subdirectory.
12877         (func_create_testdir, func_create_megatestdir, test): There is
12878         no need for '--force' in most autotool invocations in a new
12879         tree.  Actually fail the whole test if any of the tools, or the
12880         configure or make stages fail.
12881
12882         Sync from Automake.
12883         * build-aux/gnupload: Revert last change.  Add pointer to upload
12884         instructions of the GNU Maintenance Instructions.
12885         Suggestion by Karl Berry.
12886
12887 2006-11-10  Jim Meyering  <jim@meyering.net>
12888
12889         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
12890
12891 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12892
12893         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
12894         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
12895         (bind_textdomain_codeset) [! ENABLE_NLS]:
12896         Evaluate all the arguments.  That way, callers get compatible behavior
12897         if the arguments have side effects.  Also, it avoids some GCC
12898         diagnostics in some cases; Joel E. Denny reported problems when Bison
12899         was configured with --enable-gcc-warnigs.
12900
12901 2006-11-10  Jim Meyering  <jim@meyering.net>
12902
12903         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
12904         relevant options in CFLAGS (like -O, -fno-inline) are taken into
12905         account.
12906
12907 2006-11-10  Jim Meyering  <jim@meyering.net>
12908
12909         * modules/inline: New file/module.
12910         * modules/xalloc (Files): Remove m4/inline.m4.
12911         (Depends-on): Add inline, instead.
12912         * modules/oset: Likewise.
12913         * modules/list: Likewise.
12914
12915 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12916
12917         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
12918         Problem reported by Matthew Woehlke.
12919
12920 2006-11-09  Bruno Haible  <bruno@clisp.org>
12921
12922         * lib/tempname.c (gen_tempname): Remove variant that invokes
12923         __gen_tempname.
12924         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
12925         __gen_tempname.
12926
12927 2006-11-08  Bruno Haible  <bruno@clisp.org>
12928
12929         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
12930         to 'yes' instead of 'cross-compiling'.
12931
12932 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
12933
12934         * lib/quotearg.h (quotearg_free): New decl.
12935         * lib/quotearg.c (quotearg_free): New function.
12936         (slot0, nslots, slotvec0, slotvec):
12937         Now file-scope so that quotearg_free can get at them.
12938
12939 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12940
12941         Sync from Automake.
12942         * build-aux/gnupload: Add missing 'gnu' to example URL.
12943         Report by Karl Berry.
12944
12945 2006-11-08  Bruno Haible  <bruno@clisp.org>
12946
12947         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
12948         Suggested by Paul Eggert.
12949
12950 2006-11-08  Jim Meyering  <jim@meyering.net>
12951
12952         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
12953         It's already included if !_LIBC.
12954         (fts_safe_changedir): Add a comment.
12955
12956 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12957
12958         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
12959         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
12960         Matthew Woehlke.
12961
12962         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
12963         definitions up, to avoid colliding with change below.
12964         (static_inline) [HAVE_INLINE]: New macro.
12965         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
12966         Provide extern decls when !HAVE_INLINE.  Do not define unless
12967         static_inline is defined, either by us or by xmalloc.c.  Use
12968         static_inline rather than static inline.
12969         (XCALLOC): Optimize sizeof(T) = 1 case.
12970         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
12971
12972 2006-11-07  Bruno Haible  <bruno@clisp.org>
12973
12974         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
12975         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
12976         AC_C_INLINE.
12977         * modules/xalloc (Files): Add m4/inline.m4.
12978
12979 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12980
12981         * README: Fix typo.
12982         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
12983         (Miscellanous Notes): ...from this.
12984
12985 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12986
12987         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
12988         Mention that offsetof should be used instead of sizeof.
12989         From Bruno Haible.
12990
12991 2006-11-07  Bruno Haible  <bruno@clisp.org>
12992
12993         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
12994
12995 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12996
12997         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
12998         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
12999         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
13000         (gl_tree_add_before, gl_tree_add_after):
13001         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
13002         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
13003         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
13004         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
13005         (gl_linked_add_after, gl_linked_add_at): Likewise.
13006         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
13007         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
13008         (gl_tree_add_before, gl_tree_add_after): Likewise.
13009         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
13010         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
13011         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13012
13013 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13014
13015         * lib/gl_oset.h: Use C comment style, not C++ comment style.
13016
13017 2006-11-06  Bruno Haible  <bruno@clisp.org>
13018
13019         * m4/inline.m4: New file.
13020         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
13021         * modules/list (Files): Add m4/inline.m4.
13022         * modules/oset (Files): Likewise.
13023
13024 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13025
13026         * lib/idcache.c: Include <stddef.h>, for offsetof.
13027         (struct userid.name): Change from char * to a flexible array member.
13028         All uses changed.
13029         * modules/idcache (Depends-on): Add flexmember.
13030
13031         * MODULES.html.sh (Core language properties): New module flexmember.
13032         * modules/flexmember, m4/flexmember.m4: New files.
13033
13034         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
13035         inline functions that are identical with the old xnmalloc_inline,
13036         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
13037         that we can avoid some unnecessary integer multiplications and
13038         divisions in the common case where the element size is known at
13039         compile time.
13040         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
13041         needed.
13042         (xnboundedmalloc): Remove.
13043         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
13044         arguments, for consistency with rest of this header.
13045         (xcharalloc): Rewrite using XNMALLOC.
13046         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
13047         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
13048         versions have been moved to lib/xalloc.h and renamed to be the
13049         non-*_inline versions.
13050         (xmalloc, xrealloc): Implement without reference to the xnmalloc
13051         and xnrealloc functions, since those functions are now inline and
13052         now call us.
13053         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
13054         renaming described above.
13055         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
13056         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
13057         captures the dependency in AC_C_INLINE.
13058
13059         New module canonicalize-lgpl, proposed by Charles Wilson in
13060         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
13061         with a few small changes afterwards.
13062         * MODULES.html.sh (File system functions): New module
13063         canonicalize-lgpl.
13064         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
13065         and canonicalize_file_name.
13066         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
13067         * modules/canonicalize-lgpl: New files.
13068
13069 2006-11-05  Bruno Haible  <bruno@clisp.org>
13070
13071         * gnulib-tool (func_import, func_create_testdir): Create directories
13072         also for files in subdirectories of lib/.
13073
13074 2006-11-05  Bruno Haible  <bruno@clisp.org>
13075
13076         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
13077         ANSI C compliant.
13078
13079 2006-11-03  Bruno Haible  <bruno@clisp.org>
13080
13081         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
13082         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
13083         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
13084         (xnboundedmalloc): New inline function.
13085         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
13086         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
13087         xmalloc.
13088         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
13089         xmalloc.
13090         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
13091         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
13092         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
13093         xmalloc.
13094         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
13095         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
13096         xmalloc.
13097         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
13098         gl_tree_add_after): Use XMALLOC instead of xmalloc.
13099         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
13100         xmalloc.
13101         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
13102         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
13103         gl_tree_add_after): Use XMALLOC instead of xmalloc.
13104         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
13105         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
13106         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
13107         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
13108
13109 2006-11-03  Bruno Haible  <bruno@clisp.org>
13110
13111         * lib/c-ctype.h [C++]: Define functions without name mangling.
13112         * lib/fwriteerror.h [C++]: Likewise.
13113         * lib/gcd.h [C++]: Likewise.
13114         * lib/linebreak.h [C++]: Likewise.
13115
13116 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13117
13118         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
13119         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
13120         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
13121         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
13122         Check for functions and headers just once.
13123         Check for declaration of canonicalize_file_name.
13124         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
13125
13126 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
13127
13128         * gnulib-tool (func_import): Fix typo in actioncmd.
13129
13130 2006-11-02  Bruno Haible  <bruno@clisp.org>
13131
13132         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
13133         newline sequence in the Makefile.am snippet as a space, like "make"
13134         does.
13135         Reported by Roger Persson <perrog@gmail.com>.
13136
13137 2006-11-01  Bruno Haible  <bruno@clisp.org>
13138
13139         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
13140         already declared in <string.h>.
13141         * lib/strcase.h (strncasecmp): Don't declare it if yes.
13142
13143 2006-11-01  Bruno Haible  <bruno@clisp.org>
13144
13145         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
13146         * lib/strcase.h: Include <string.h>.
13147         (strcasecmp): Define to rpl_strcasecmp here.
13148
13149 2006-11-01  Bruno Haible  <bruno@clisp.org>
13150
13151         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
13152
13153 2006-11-01  Eric Blake  <ebb9@byu.net>
13154
13155         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
13156
13157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
13158
13159 2006-10-29  Bruno Haible  <bruno@clisp.org>
13160
13161         Make it compile in C++ mode.
13162         * lib/full-write.c (full_rw): Add a cast.
13163
13164 2006-11-01  Bruno Haible  <bruno@clisp.org>
13165
13166         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
13167         be POSIX compliant.
13168         Reported by Roger Persson <perrog@gmail.com>.
13169
13170 2006-11-01  Eric Blake  <ebb9@byu.net>
13171
13172         * lib/getopt_.h: Fix comments.
13173
13174 2006-10-31  Eric Blake  <ebb9@byu.net>
13175
13176         * modules/tmpdir (Depends-on): Add sys_stat.
13177         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
13178         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
13179         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
13180         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
13181         tempname.
13182
13183 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13184
13185         Avoid some C++ diagnostics reported by Bruno Haible.
13186         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
13187         xmalloc.
13188         (quotearg_alloc): Use xcharalloc rather than xmalloc.
13189         (struct slotvec): Move to top level.
13190         (quotearg_n_options): Rewrite to avoid xmalloc.
13191         * lib/xalloc.h (xcharalloc): New function.
13192         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
13193         [defined __cplusplus]: Add function template that provides result
13194         type propagation.  This part of the change is from Bruno Haible.
13195
13196 2006-10-29  Bruno Haible  <bruno@clisp.org>
13197
13198         Make it compile in C++ mode.
13199         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
13200         * lib/strnlen1.c (strnlen1): Cast memchr result.
13201         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
13202         * lib/clean-temp.c (string_equals, string_hash): Add casts.
13203         (create_temp_dir): Rename local variable 'template'.
13204         (compile_csharp_using_sscli): Add cast.
13205         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
13206         * lib/findprog.c (find_in_path): Likewise.
13207         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
13208         * lib/wait-process.c (register_slave_subprocess): Likewise.
13209
13210 2006-10-22  Bruno Haible  <bruno@clisp.org>
13211
13212         * modules/tsearch: New file.
13213         * lib/tsearch.h: New file.
13214         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
13215         * m4/tsearch.m4: New file.
13216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
13217
13218 2006-10-29  Eric Blake  <ebb9@byu.net>
13219
13220         * lib/arcfour.c: Assume config.h.
13221         * lib/arctwo.c: Likewise.
13222         * lib/base64.c: Likewise.
13223         * lib/check-version.c: Likewise.
13224         * lib/crc.c: Likewise.
13225         * lib/des.c: Likewise.
13226         * lib/gc-gnulib.c: Likewise.
13227         * lib/gc-libgcrypt.c: Likewise.
13228         * lib/gc-pbkdf2-sha1.c: Likewise.
13229         * lib/getaddrinfo.c: Likewise.
13230         * lib/getdelim.c: Likewise.
13231         * lib/getline.c: Likewise.
13232         * lib/hmac-md5.c: Likewise.
13233         * lib/hmac-sha1.c: Likewise.
13234         * lib/iconvme.c: Likewise.
13235         * lib/md2.c: Likewise.
13236         * lib/md4.c: Likewise.
13237         * lib/memxor.c: Likewise.
13238         * lib/read-file.c: Likewise.
13239         * lib/readline.c: Likewise.
13240         * lib/rijndael-alg-fst.c: Likewise.
13241         * lib/rijndael-api-fst.c: Likewise.
13242         * lib/xgetdomainname.c: Likewise.
13243
13244 2006-10-28  Eric Blake  <ebb9@byu.net>
13245
13246         * lib/xstrndup.c: Assume config.h.
13247
13248 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
13249
13250         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
13251         stat-macros.h is now for our own macros, whereas stat_h is for
13252         macros in the <sys/stat.h> name space.
13253         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
13254         (STAT_MACROS_H): Remove.
13255         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
13256         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
13257         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
13258         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
13259         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
13260         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
13261         Move these macros to ...
13262         * lib/stat_.h: here.  Don't include stat-macros.h.
13263         * lib/canonicalize.c: Don't include stat-macros.h.
13264         * lib/chown.c: Likewise.
13265         * lib/euidaccess.c: Likewise.
13266         * lib/file-type.c: Likewise.
13267         * lib/filemode.c: Likewise.
13268         * lib/glob.c: Likewise.
13269         * lib/isapipe.c: Likewise.
13270         * lib/lchown.c: Likewise.
13271         * lib/lstat.c: Likewise.
13272         * lib/mkdir-p.c: Likewise.
13273         * lib/rmdir.c: Likewise.
13274         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
13275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
13276         unless mkdir isn't declared, to speed up 'configure'.
13277         Always create sys/stat.h, since it's unlikely any real sys/stat.h
13278         would define all the S_* symbols.
13279         * modules/canonicalize (Depends-on):
13280         Depend on sys_stat, not stat-macros.
13281         * modules/chown: Likewise.
13282         * modules/euidaccess: Likewise.
13283         * modules/filemode: Likewise.
13284         * modules/file-type: Likewise.
13285         * modules/glob: Likewise.
13286         * modules/isapipe: Likewise.
13287         * modules/lchown: Likewise.
13288         * modules/lstat: Likewise.
13289         * modules/mkancesdirs: Likewise.
13290         * modules/rmdir: Likewise.
13291         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
13292         * modules/modechange: Likewise.
13293         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
13294         (configure.ac): Remove gl_STAT_MACROS.
13295         * modules/sys_stat (Depends-on): Remove stat-macros.
13296
13297 2006-10-27  Bruno Haible  <bruno@clisp.org>
13298
13299         * m4/signed.m4: Remove file.
13300         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
13301         invocation.
13302         * modules/vasnprintf (Files): Remove m4/signed.m4.
13303
13304 2006-10-27  Bruno Haible  <bruno@clisp.org>
13305
13306         Update to GNU gettext 0.16.
13307         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
13308         m4/inttypes-h.m4, m4/signed.m4.
13309         * m4/gettext.m4: Update to GNU gettext 0.16.
13310         * m4/intl.m4: New file, from GNU gettext.
13311         * m4/intldir.m4: New file, from GNU gettext.
13312         * config/srclist.txt: Update
13313
13314 2006-10-27  Eric Blake  <ebb9@byu.net>
13315
13316         * MODULES.html.sh: Document tempname.
13317         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
13318         dependencies.
13319         (Files): Move lib/tempname.c...
13320         * modules/tempname: ...to this new module.
13321         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
13322         (gl_PREREQ_TEMPNAME): Move...
13323         * m4/tempname.m4: ...to this new file.
13324         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
13325         * modules/sys_stat (Depends-on): Add stat-macros.
13326         * lib/stat_.h (includes): Pick up stat macros.
13327         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
13328         if stat macros are broken.
13329         * lib/tempname.c (includes): No need to include "stat-macros.h".
13330         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
13331         (direxists, __path_search) [!_LIBC]: Don't compile these in
13332         gnulib; the tmpdir module covers that.
13333         * lib/tempname.h: New file.
13334
13335 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13336
13337         * COPYING: Explain how gnulib-tool converts licence headers.
13338         Almost all wording by Eric Blake.
13339
13340 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13341
13342         * lib/mbchar.h (is_basic_table): Make read-only.
13343         * lib/mbchar.c (is_basic_table): Likewise.
13344         Reported by John Darrington.
13345
13346 2006-10-25  Bruno Haible  <bruno@clisp.org>
13347
13348         * lib/progname.h (set_program_name): Undefine before defining.
13349
13350 2006-10-25  Bruno Haible  <bruno@clisp.org>
13351
13352         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
13353         false for non-gcc C++ compilers.
13354         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13355
13356 2006-10-24  Bruno Haible  <bruno@clisp.org>
13357
13358         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
13359         iconv implementations like Irix iconv.
13360
13361 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13362
13363         * modules/vararrays: New file.
13364         * m4/vararrays.m4: New file, taken from diffutils.
13365         * MODULES.html.sh: New module vararrays.
13366
13367 2006-10-24  Karl Berry  <karl@gnu.org>
13368
13369         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
13370         Don't call GNU Unix.
13371
13372 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13373
13374         * users.txt: Add Libtool.
13375
13376         Sync from Libtool:
13377
13378         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13379
13380         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
13381         to gnulib's policy of including config.h unconditionally.
13382
13383 2006-10-24  Bruno Haible  <bruno@clisp.org>
13384
13385         * modules/wcwidth (Files): Add m4/wint_t.m4.
13386         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
13387         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
13388
13389 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13390
13391         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
13392         to pacify GCC with some -W flags enabled.  Problem reported by
13393         Bruno Haible.
13394
13395 2006-10-24  Jim Meyering  <jim@meyering.net>
13396
13397         * MODULES.html.sh: Remove uinttostr.  It's not a module.
13398         Reported by Karl Berry.
13399
13400 2006-10-23  Bruno Haible  <bruno@clisp.org>
13401
13402         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
13403
13404 2006-10-24  Bruno Haible  <bruno@clisp.org>
13405
13406         * lib/gl_list.h: Use C comment style, not C++ comment style.
13407
13408 2006-10-23  Eric Blake  <ebb9@byu.net>
13409
13410         * lib/getaddrinfo.c (includes): Add missing include.
13411
13412 2006-10-23  Bruno Haible  <bruno@clisp.org>
13413             Paul Eggert  <eggert@cs.ucla.edu>
13414
13415         Ability to rename obstack_free.
13416         * lib/obstack.h (__obstack_free): New macro. Declare instead of
13417         obstack_free.
13418         (obstack_free): Invoke the __obstack_free macro.
13419         * lib/obstack.c (obstack_free): Use __obstack_free macro.
13420
13421 2006-10-23  Bruno Haible  <bruno@clisp.org>
13422             Paul Eggert  <eggert@cs.ucla.edu>
13423
13424         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
13425         __argc, __argv from the declaration. (They are defined as macros on
13426         mingw.)
13427
13428 2006-10-22  Bruno Haible  <bruno@clisp.org>
13429
13430         * doc/gnulib-intro.texi: New file.
13431         * doc/gnulib.texi: Include it.
13432
13433 2006-10-21  Bruno Haible  <bruno@clisp.org>
13434
13435         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
13436         "Introduction", "Miscellanous Notes", "Particular Modules".
13437
13438 2006-10-21  Bruno Haible  <bruno@clisp.org>
13439
13440         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13441         Change mostlyclean-local rule to avoid sh syntax error from bash
13442         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
13443
13444 2006-10-23  Jim Meyering  <jim@meyering.net>
13445
13446         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
13447         in place of snprintf.
13448
13449         * modules/inttostr (Files): Add lib/uinttostr.c.
13450         * lib/uinttostr.c (inttostr): New file/function.
13451         * lib/inttostr.h (uinttostr): Declare.
13452         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
13453         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
13454         Add uinttostr.
13455         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
13456
13457 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
13458
13459         * lib/canonicalize.c (ELOOP): Define if not already defined.
13460         Problem reported by Bruno Haible in
13461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
13462
13463 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
13464
13465         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
13466         Problem reported by Perry Smith and Ville Laurikari.
13467
13468         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
13469         uses.
13470
13471 2006-10-19  Bruno Haible  <bruno@clisp.org>
13472
13473         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
13474         for mingw.
13475
13476 2006-10-19  Bruno Haible  <bruno@clisp.org>
13477
13478         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
13479         Needed for mingw.
13480
13481 2006-10-19  Bruno Haible  <bruno@clisp.org>
13482
13483         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
13484
13485 2006-10-19  Bruno Haible  <bruno@clisp.org>
13486
13487         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
13488         it.
13489
13490 2006-10-19  Bruno Haible  <bruno@clisp.org>
13491
13492         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
13493         invocation.
13494
13495 2006-10-19  Bruno Haible  <bruno@clisp.org>
13496
13497         * gnulib-tool (func_create_testdir): Don't include ftruncate and
13498         mountlist by default.
13499
13500 2006-10-16  Bruno Haible  <bruno@clisp.org>
13501
13502         * lib/c-strstr.c: Include c-strstr.h.
13503
13504 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
13505
13506         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
13507         in a slash.
13508
13509 2006-10-18  Bruno Haible  <bruno@clisp.org>
13510
13511         * lib/lock.h [C++]: Wrap definitions in extern "C".
13512
13513 2006-10-18  Bruno Haible  <bruno@clisp.org>
13514
13515         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
13516         gl_LIBOBJS list.
13517
13518 2006-10-18  Bruno Haible  <bruno@clisp.org>
13519
13520         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
13521
13522 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
13523
13524         * lib/xstrtol.h: Include gettext.h.
13525         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
13526         Problem reported by Eric Blake.
13527         * modules/xstrtol (Depends-on): Add gettext-h.
13528
13529 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
13530
13531         * lib/strftime.c (advance): New macro.
13532         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
13533         incomplete type, so you can't add 0 to it.  Problem and patch
13534         reported by Eelco Dolstra for dietlibc.
13535
13536 2006-10-18  Jim Meyering  <jim@meyering.net>
13537
13538         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
13539         type for a local, and rename it: s/up/user_proc/.
13540
13541 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
13542
13543         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
13544         READ_UTMP_USER_PROCESS.
13545         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
13546
13547 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
13548
13549         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
13550         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
13551
13552 2006-10-17  Eric Blake  <ebb9@byu.net>
13553
13554         * lib/sigprocmask.c (sigprocmask): Fix typo.
13555
13556         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
13557
13558         * modules/clean-temp (Makefile.am): Don't add to make output...
13559         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
13560         config.h.
13561
13562 2006-10-17  Bruno Haible  <bruno@clisp.org>
13563
13564         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
13565         differently if DEFAULT_TEXT_DOMAIN is set.
13566
13567 2006-10-16  Bruno Haible  <bruno@clisp.org>
13568
13569         * lib/clean-temp.c: Include fwriteerror.h.
13570
13571 2006-10-16  Bruno Haible  <bruno@clisp.org>
13572
13573         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
13574
13575 2006-10-16  Bruno Haible  <bruno@clisp.org>
13576
13577         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
13578         * lib/sigprocmask.h: Include <sys/types.h>.
13579         (sigset_t): Use the system's definition if present.
13580
13581 2006-10-17  Eric Blake  <ebb9@byu.net>
13582
13583         * lib/xvasprintf.c (includes): Assume config.h.
13584         * lib/xasprintf.c (includes): Likewise.
13585
13586 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
13587
13588         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
13589         at least as wide as intmax_t.
13590
13591 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
13592
13593         (Imported from Automake.)
13594         * build-aux/gnupload: Update to version 1.1 of directive file.
13595
13596 2006-10-16  Eric Blake  <ebb9@byu.net>
13597
13598         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
13599         match Automake 1.10a.
13600
13601 2006-10-14  Bruno Haible  <bruno@clisp.org>
13602
13603         * modules/sigprocmask: New file.
13604         * lib/sigprocmask.h: New file.
13605         * lib/sigprocmask.c: New file.
13606         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
13607         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
13608         request sigprocmask.o.
13609         (gl_PREREQ_SIGPROCMASK): New macro.
13610         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
13611         (Depends-on): Add sigprocmask.
13612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
13613         gt_SIGNALBLOCKING. Test for 'raise' only once.
13614         * lib/fatal-signal.c: Include sigprocmask.h.
13615         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
13616         unblock_fatal_signals): Define always.
13617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13618         sigprocmask.
13619
13620 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
13621
13622         Sync from Automake.
13623         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
13624         which incorrectly sets the mode of an existing destination
13625         directory.  In some cases the unpatched install-sh could do the
13626         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
13627         system.  We hope this is rare in practice, but it's clearly worth
13628         fixing.  Problem reported by Alex Unleashed in
13629         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
13630         Also, don't bother to check for -m bugs unless we're using -m;
13631         suggested by Stepan Kasal.
13632
13633 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13634
13635         Sync from Automake.
13636         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
13637         `-c' flag, so they appear at the same position as in %FASTDEP%
13638         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
13639         which ignores unknown options only after the first non-option.
13640         Bug report against M4 by Nelson H. F. Beebe.
13641
13642 2006-10-13  Jim Meyering  <jim@meyering.net>
13643
13644         Fix a bug in yesterday's change.
13645         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
13646         p->fts_statp->st_dev would be used uninitialized.
13647         Ensures that we always call fts_stat on the very first entry.
13648         Miklos Szeredi reported that find -xdev stopped working.
13649
13650 2006-10-12  Bruno Haible  <bruno@clisp.org>
13651
13652         * gnulib-tool (func_get_automake_snippet): Append an automatically
13653         computed EXTRA_DIST augmentation.
13654         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
13655         * modules/alloca-opt (Makefile.am): Likewise.
13656         * modules/allocsa (Makefile.am): Likewise.
13657         * modules/arcfour (Makefile.am): Likewise.
13658         * modules/arctwo (Makefile.am): Likewise.
13659         * modules/argmatch (Makefile.am): Likewise.
13660         * modules/argz (Makefile.am): Likewise.
13661         * modules/atexit (Makefile.am): Likewise.
13662         * modules/backupfile (Makefile.am): Likewise.
13663         * modules/byteswap (Makefile.am): Likewise.
13664         * modules/c-strtod (Makefile.am): Likewise.
13665         * modules/c-strtold (Makefile.am): Likewise.
13666         * modules/calloc (Makefile.am): Likewise.
13667         * modules/canon-host (Makefile.am): Likewise.
13668         * modules/canonicalize (Makefile.am): Likewise.
13669         * modules/chdir-long (Makefile.am): Likewise.
13670         * modules/chdir-safer (Makefile.am): Likewise.
13671         * modules/check-version (Makefile.am): Likewise.
13672         * modules/chown (Makefile.am): Likewise.
13673         * modules/cloexec (Makefile.am): Likewise.
13674         * modules/close-stream (Makefile.am): Likewise.
13675         * modules/closeout (Makefile.am): Likewise.
13676         * modules/crc (Makefile.am): Likewise.
13677         * modules/csharpexec (Makefile.am): Likewise.
13678         * modules/cycle-check (Makefile.am): Likewise.
13679         * modules/des (Makefile.am): Likewise.
13680         * modules/dev-ino (Makefile.am): Likewise.
13681         * modules/dirfd (Makefile.am): Likewise.
13682         * modules/dirname (Makefile.am): Likewise.
13683         * modules/dup2 (Makefile.am): Likewise.
13684         * modules/eealloc (Makefile.am): Likewise.
13685         * modules/error (Makefile.am): Likewise.
13686         * modules/euidaccess (Makefile.am): Likewise.
13687         * modules/exclude (Makefile.am): Likewise.
13688         * modules/exitfail (Makefile.am): Likewise.
13689         * modules/fcntl-safer (Makefile.am): Likewise.
13690         * modules/fcntl (Makefile.am): Likewise.
13691         * modules/file-type (Makefile.am): Likewise.
13692         * modules/fileblocks (Makefile.am): Likewise.
13693         * modules/filemode (Makefile.am): Likewise.
13694         * modules/filenamecat (Makefile.am): Likewise.
13695         * modules/fnmatch (Makefile.am): Likewise.
13696         * modules/fopen-safer (Makefile.am): Likewise.
13697         * modules/fpending (Makefile.am): Likewise.
13698         * modules/fprintftime (Makefile.am): Likewise.
13699         * modules/free (Makefile.am): Likewise.
13700         * modules/fsusage (Makefile.am): Likewise.
13701         * modules/ftruncate (Makefile.am): Likewise.
13702         * modules/fts (Makefile.am): Likewise.
13703         * modules/gc-arcfour (Makefile.am): Likewise.
13704         * modules/gc-des (Makefile.am): Likewise.
13705         * modules/gc-hmac-md5 (Makefile.am): Likewise.
13706         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
13707         * modules/gc-md4 (Makefile.am): Likewise.
13708         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
13709         * modules/gc-sha1 (Makefile.am): Likewise.
13710         * modules/gc (Makefile.am): Likewise.
13711         * modules/getaddrinfo (Makefile.am): Likewise.
13712         * modules/getcwd (Makefile.am): Likewise.
13713         * modules/getdelim (Makefile.am): Likewise.
13714         * modules/getdomainname (Makefile.am): Likewise.
13715         * modules/getgroups (Makefile.am): Likewise.
13716         * modules/gethostname (Makefile.am): Likewise.
13717         * modules/gethrxtime (Makefile.am): Likewise.
13718         * modules/getline (Makefile.am): Likewise.
13719         * modules/getloadavg (Makefile.am): Likewise.
13720         * modules/getlogin_r (Makefile.am): Likewise.
13721         * modules/getndelim2 (Makefile.am): Likewise.
13722         * modules/getopt (Makefile.am): Likewise.
13723         * modules/getpagesize (Makefile.am): Likewise.
13724         * modules/getpass-gnu (Makefile.am): Likewise.
13725         * modules/getpass (Makefile.am): Likewise.
13726         * modules/getsubopt (Makefile.am): Likewise.
13727         * modules/gettime (Makefile.am): Likewise.
13728         * modules/gettimeofday (Makefile.am): Likewise.
13729         * modules/getugroups (Makefile.am): Likewise.
13730         * modules/getusershell (Makefile.am): Likewise.
13731         * modules/glob (Makefile.am): Likewise.
13732         * modules/group-member (Makefile.am): Likewise.
13733         * modules/hard-locale (Makefile.am): Likewise.
13734         * modules/hash (Makefile.am): Likewise.
13735         * modules/hmac-md5 (Makefile.am): Likewise.
13736         * modules/hmac-sha1 (Makefile.am): Likewise.
13737         * modules/human (Makefile.am): Likewise.
13738         * modules/idcache (Makefile.am): Likewise.
13739         * modules/imaxabs (Makefile.am): Likewise.
13740         * modules/imaxdiv (Makefile.am): Likewise.
13741         * modules/inet_ntop (Makefile.am): Likewise.
13742         * modules/inet_pton (Makefile.am): Likewise.
13743         * modules/intprops (Makefile.am): Likewise.
13744         * modules/inttostr (Makefile.am): Likewise.
13745         * modules/inttypes (Makefile.am): Likewise.
13746         * modules/isapipe (Makefile.am): Likewise.
13747         * modules/javaversion (Makefile.am): Likewise.
13748         * modules/lchmod (Makefile.am): Likewise.
13749         * modules/lchown (Makefile.am): Likewise.
13750         * modules/localcharset (Makefile.am): Likewise.
13751         * modules/long-options (Makefile.am): Likewise.
13752         * modules/lstat (Makefile.am): Likewise.
13753         * modules/malloc (Makefile.am): Likewise.
13754         * modules/mathl (Makefile.am): Likewise.
13755         * modules/mbchar (Makefile.am): Likewise.
13756         * modules/md2 (Makefile.am): Likewise.
13757         * modules/md4 (Makefile.am): Likewise.
13758         * modules/md5 (Makefile.am): Likewise.
13759         * modules/memcasecmp (Makefile.am): Likewise.
13760         * modules/memchr (Makefile.am): Likewise.
13761         * modules/memcmp (Makefile.am): Likewise.
13762         * modules/memcoll (Makefile.am): Likewise.
13763         * modules/memcpy (Makefile.am): Likewise.
13764         * modules/memmem (Makefile.am): Likewise.
13765         * modules/memmove (Makefile.am): Likewise.
13766         * modules/mempcpy (Makefile.am): Likewise.
13767         * modules/memrchr (Makefile.am): Likewise.
13768         * modules/memset (Makefile.am): Likewise.
13769         * modules/memxor (Makefile.am): Likewise.
13770         * modules/mkancesdirs (Makefile.am): Likewise.
13771         * modules/mkdir-p (Makefile.am): Likewise.
13772         * modules/mkdir (Makefile.am): Likewise.
13773         * modules/mkdtemp (Makefile.am): Likewise.
13774         * modules/mkstemp (Makefile.am): Likewise.
13775         * modules/mktime (Makefile.am): Likewise.
13776         * modules/modechange (Makefile.am): Likewise.
13777         * modules/mountlist (Makefile.am): Likewise.
13778         * modules/nanosleep (Makefile.am): Likewise.
13779         * modules/obstack (Makefile.am): Likewise.
13780         * modules/openat (Makefile.am): Likewise.
13781         * modules/pagealign_alloc (Makefile.am): Likewise.
13782         * modules/pathmax (Makefile.am): Likewise.
13783         * modules/physmem (Makefile.am): Likewise.
13784         * modules/poll (Makefile.am): Likewise.
13785         * modules/posixtm (Makefile.am): Likewise.
13786         * modules/posixver (Makefile.am): Likewise.
13787         * modules/putenv (Makefile.am): Likewise.
13788         * modules/quote (Makefile.am): Likewise.
13789         * modules/quotearg (Makefile.am): Likewise.
13790         * modules/raise (Makefile.am): Likewise.
13791         * modules/read-file (Makefile.am): Likewise.
13792         * modules/readline (Makefile.am): Likewise.
13793         * modules/readlink (Makefile.am): Likewise.
13794         * modules/readtokens (Makefile.am): Likewise.
13795         * modules/readutmp (Makefile.am): Likewise.
13796         * modules/realloc (Makefile.am): Likewise.
13797         * modules/regex (Makefile.am): Likewise.
13798         * modules/rename-dest-slash (Makefile.am): Likewise.
13799         * modules/rename (Makefile.am): Likewise.
13800         * modules/rijndael (Makefile.am): Likewise.
13801         * modules/rmdir (Makefile.am): Likewise.
13802         * modules/rpmatch (Makefile.am): Likewise.
13803         * modules/safe-read (Makefile.am): Likewise.
13804         * modules/safe-write (Makefile.am): Likewise.
13805         * modules/same-inode (Makefile.am): Likewise.
13806         * modules/same (Makefile.am): Likewise.
13807         * modules/save-cwd (Makefile.am): Likewise.
13808         * modules/savedir (Makefile.am): Likewise.
13809         * modules/setenv (Makefile.am): Likewise.
13810         * modules/settime (Makefile.am): Likewise.
13811         * modules/sha1 (Makefile.am): Likewise.
13812         * modules/sig2str (Makefile.am): Likewise.
13813         * modules/snprintf (Makefile.am): Likewise.
13814         * modules/stat-macros (Makefile.am): Likewise.
13815         * modules/stat-time (Makefile.am): Likewise.
13816         * modules/stdbool (Makefile.am): Likewise.
13817         * modules/stdint (Makefile.am): Likewise.
13818         * modules/stdlib-safer (Makefile.am): Likewise.
13819         * modules/stpcpy (Makefile.am): Likewise.
13820         * modules/stpncpy (Makefile.am): Likewise.
13821         * modules/strcase (Makefile.am): Likewise.
13822         * modules/strcasestr (Makefile.am): Likewise.
13823         * modules/strchrnul (Makefile.am): Likewise.
13824         * modules/strcspn (Makefile.am): Likewise.
13825         * modules/strdup (Makefile.am): Likewise.
13826         * modules/strerror (Makefile.am): Likewise.
13827         * modules/strftime (Makefile.am): Likewise.
13828         * modules/strndup (Makefile.am): Likewise.
13829         * modules/strnlen (Makefile.am): Likewise.
13830         * modules/strpbrk (Makefile.am): Likewise.
13831         * modules/strsep (Makefile.am): Likewise.
13832         * modules/strstr (Makefile.am): Likewise.
13833         * modules/strtod (Makefile.am): Likewise.
13834         * modules/strtoimax (Makefile.am): Likewise.
13835         * modules/strtok_r (Makefile.am): Likewise.
13836         * modules/strtol (Makefile.am): Likewise.
13837         * modules/strtoll (Makefile.am): Likewise.
13838         * modules/strtoul (Makefile.am): Likewise.
13839         * modules/strtoull (Makefile.am): Likewise.
13840         * modules/strtoumax (Makefile.am): Likewise.
13841         * modules/strverscmp (Makefile.am): Likewise.
13842         * modules/sys_socket (Makefile.am): Likewise.
13843         * modules/sys_stat (Makefile.am): Likewise.
13844         * modules/sysexits (Makefile.am): Likewise.
13845         * modules/time_r (Makefile.am): Likewise.
13846         * modules/timegm (Makefile.am): Likewise.
13847         * modules/timespec (Makefile.am): Likewise.
13848         * modules/tmpfile-safer (Makefile.am): Likewise.
13849         * modules/trim (Makefile.am): Likewise.
13850         * modules/unistd-safer (Makefile.am): Likewise.
13851         * modules/unlinkdir (Makefile.am): Likewise.
13852         * modules/unlocked-io (Makefile.am): Likewise.
13853         * modules/userspec (Makefile.am): Likewise.
13854         * modules/utime (Makefile.am): Likewise.
13855         * modules/utimecmp (Makefile.am): Likewise.
13856         * modules/utimens (Makefile.am): Likewise.
13857         * modules/vasnprintf (Makefile.am): Likewise.
13858         * modules/vasprintf (Makefile.am): Likewise.
13859         * modules/vsnprintf (Makefile.am): Likewise.
13860         * modules/xalloc (Makefile.am): Likewise.
13861         * modules/xgetcwd (Makefile.am): Likewise.
13862         * modules/xnanosleep (Makefile.am): Likewise.
13863         * modules/xreadlink (Makefile.am): Likewise.
13864         * modules/xstrtod (Makefile.am): Likewise.
13865         * modules/xstrtol (Makefile.am): Likewise.
13866         * modules/xstrtold (Makefile.am): Likewise.
13867         * modules/yesno (Makefile.am): Likewise.
13868         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
13869
13870 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
13871
13872         * modules/error (Makefile.am): Distribute files through
13873         EXTRA_DIST, not lib_SOURCES.
13874
13875 2006-10-12  Eric Blake  <ebb9@byu.net>
13876
13877         * modules/error (Makefile.am): Distribute files in /lib.
13878         * modules/obstack (Makefile.am): Likewise.
13879
13880 2006-10-12  Bruno Haible  <bruno@clisp.org>
13881
13882         * modules/acl (Makefile.am): Distribute all files in lib/ through
13883         EXTRA_DIST.
13884         * modules/arcfour (Makefile.am): Likewise.
13885         * modules/arctwo (Makefile.am): Likewise.
13886         * modules/argmatch (Makefile.am): Likewise.
13887         * modules/argz (Makefile.am): Likewise.
13888         * modules/atexit (Makefile.am): Likewise.
13889         * modules/backupfile (Makefile.am): Likewise.
13890         * modules/c-strtod (Makefile.am): Likewise.
13891         * modules/c-strtold (Makefile.am): Likewise.
13892         * modules/calloc (Makefile.am): Likewise.
13893         * modules/canon-host (Makefile.am): Likewise.
13894         * modules/canonicalize (Makefile.am): Likewise.
13895         * modules/chdir-long (Makefile.am): Likewise.
13896         * modules/chdir-safer (Makefile.am): Likewise.
13897         * modules/check-version (Makefile.am): Likewise.
13898         * modules/chown (Makefile.am): Likewise.
13899         * modules/cloexec (Makefile.am): Likewise.
13900         * modules/close-stream (Makefile.am): Likewise.
13901         * modules/closeout (Makefile.am): Likewise.
13902         * modules/crc (Makefile.am): Likewise.
13903         * modules/cycle-check (Makefile.am): Likewise.
13904         * modules/des (Makefile.am): Likewise.
13905         * modules/dirfd (Makefile.am): Likewise.
13906         * modules/dirname (Makefile.am): Likewise.
13907         * modules/dup2 (Makefile.am): Likewise.
13908         * modules/euidaccess (Makefile.am): Likewise.
13909         * modules/exclude (Makefile.am): Likewise.
13910         * modules/exitfail (Makefile.am): Likewise.
13911         * modules/fcntl-safer (Makefile.am): Likewise.
13912         * modules/file-type (Makefile.am): Likewise.
13913         * modules/fileblocks (Makefile.am): Likewise.
13914         * modules/filemode (Makefile.am): Likewise.
13915         * modules/filenamecat (Makefile.am): Likewise.
13916         * modules/fnmatch (Makefile.am): Likewise.
13917         * modules/fopen-safer (Makefile.am): Likewise.
13918         * modules/fpending (Makefile.am): Likewise.
13919         * modules/fprintftime (Makefile.am): Likewise.
13920         * modules/free (Makefile.am): Likewise.
13921         * modules/fsusage (Makefile.am): Likewise.
13922         * modules/ftruncate (Makefile.am): Likewise.
13923         * modules/fts (Makefile.am): Likewise.
13924         * modules/gc (Makefile.am): Likewise.
13925         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
13926         * modules/getaddrinfo (Makefile.am): Likewise.
13927         * modules/getcwd (Makefile.am): Likewise.
13928         * modules/getdelim (Makefile.am): Likewise.
13929         * modules/getdomainname (Makefile.am): Likewise.
13930         * modules/getgroups (Makefile.am): Likewise.
13931         * modules/gethostname (Makefile.am): Likewise.
13932         * modules/gethrxtime (Makefile.am): Likewise.
13933         * modules/getline (Makefile.am): Likewise.
13934         * modules/getloadavg (Makefile.am): Likewise.
13935         * modules/getlogin_r (Makefile.am): Likewise.
13936         * modules/getopt (Makefile.am): Likewise.
13937         * modules/getpass (Makefile.am): Likewise.
13938         * modules/getpass-gnu (Makefile.am): Likewise.
13939         * modules/getsubopt (Makefile.am): Likewise.
13940         * modules/gettime (Makefile.am): Likewise.
13941         * modules/gettimeofday (Makefile.am): Likewise.
13942         * modules/getugroups (Makefile.am): Likewise.
13943         * modules/getusershell (Makefile.am): Likewise.
13944         * modules/glob (Makefile.am): Likewise.
13945         * modules/group-member (Makefile.am): Likewise.
13946         * modules/hard-locale (Makefile.am): Likewise.
13947         * modules/hash (Makefile.am): Likewise.
13948         * modules/hmac-md5 (Makefile.am): Likewise.
13949         * modules/hmac-sha1 (Makefile.am): Likewise.
13950         * modules/human (Makefile.am): Likewise.
13951         * modules/idcache (Makefile.am): Likewise.
13952         * modules/imaxabs (Makefile.am): Likewise.
13953         * modules/imaxdiv (Makefile.am): Likewise.
13954         * modules/inet_ntop (Makefile.am): Likewise.
13955         * modules/inet_pton (Makefile.am): Likewise.
13956         * modules/inttostr (Makefile.am): Likewise.
13957         * modules/isapipe (Makefile.am): Likewise.
13958         * modules/lchown (Makefile.am): Likewise.
13959         * modules/long-options (Makefile.am): Likewise.
13960         * modules/lstat (Makefile.am): Likewise.
13961         * modules/malloc (Makefile.am): Likewise.
13962         * modules/mathl (Makefile.am): Likewise.
13963         * modules/mbchar (Makefile.am): Likewise.
13964         * modules/md2 (Makefile.am): Likewise.
13965         * modules/md4 (Makefile.am): Likewise.
13966         * modules/md5 (Makefile.am): Likewise.
13967         * modules/memcasecmp (Makefile.am): Likewise.
13968         * modules/memchr (Makefile.am): Likewise.
13969         * modules/memcmp (Makefile.am): Likewise.
13970         * modules/memcoll (Makefile.am): Likewise.
13971         * modules/memcpy (Makefile.am): Likewise.
13972         * modules/memmem (Makefile.am): Likewise.
13973         * modules/memmove (Makefile.am): Likewise.
13974         * modules/mempcpy (Makefile.am): Likewise.
13975         * modules/memrchr (Makefile.am): Likewise.
13976         * modules/memset (Makefile.am): Likewise.
13977         * modules/memxor (Makefile.am): Likewise.
13978         * modules/mkancesdirs (Makefile.am): Likewise.
13979         * modules/mkdir (Makefile.am): Likewise.
13980         * modules/mkdir-p (Makefile.am): Likewise.
13981         * modules/mkdtemp (Makefile.am): Likewise.
13982         * modules/mkstemp (Makefile.am): Likewise.
13983         * modules/mktime (Makefile.am): Likewise.
13984         * modules/modechange (Makefile.am): Likewise.
13985         * modules/mountlist (Makefile.am): Likewise.
13986         * modules/nanosleep (Makefile.am): Likewise.
13987         * modules/openat (Makefile.am): Likewise.
13988         * modules/pagealign_alloc (Makefile.am): Likewise.
13989         * modules/physmem (Makefile.am): Likewise.
13990         * modules/poll (Makefile.am): Likewise.
13991         * modules/posixtm (Makefile.am): Likewise.
13992         * modules/posixver (Makefile.am): Likewise.
13993         * modules/putenv (Makefile.am): Likewise.
13994         * modules/quote (Makefile.am): Likewise.
13995         * modules/quotearg (Makefile.am): Likewise.
13996         * modules/raise (Makefile.am): Likewise.
13997         * modules/read-file (Makefile.am): Likewise.
13998         * modules/readline (Makefile.am): Likewise.
13999         * modules/readlink (Makefile.am): Likewise.
14000         * modules/readtokens (Makefile.am): Likewise.
14001         * modules/readutmp (Makefile.am): Likewise.
14002         * modules/realloc (Makefile.am): Likewise.
14003         * modules/regex (Makefile.am): Likewise.
14004         * modules/rename (Makefile.am): Likewise.
14005         * modules/rename-dest-slash (Makefile.am): Likewise.
14006         * modules/rijndael (Makefile.am): Likewise.
14007         * modules/rmdir (Makefile.am): Likewise.
14008         * modules/rpmatch (Makefile.am): Likewise.
14009         * modules/safe-read (Makefile.am): Likewise.
14010         * modules/safe-write (Makefile.am): Likewise.
14011         * modules/same (Makefile.am): Likewise.
14012         * modules/save-cwd (Makefile.am): Likewise.
14013         * modules/savedir (Makefile.am): Likewise.
14014         * modules/setenv (Makefile.am): Likewise.
14015         * modules/settime (Makefile.am): Likewise.
14016         * modules/sha1 (Makefile.am): Likewise.
14017         * modules/sig2str (Makefile.am): Likewise.
14018         * modules/snprintf (Makefile.am): Likewise.
14019         * modules/stdlib-safer (Makefile.am): Likewise.
14020         * modules/stpcpy (Makefile.am): Likewise.
14021         * modules/stpncpy (Makefile.am): Likewise.
14022         * modules/strcase (Makefile.am): Likewise.
14023         * modules/strcasestr (Makefile.am): Likewise.
14024         * modules/strchrnul (Makefile.am): Likewise.
14025         * modules/strcspn (Makefile.am): Likewise.
14026         * modules/strdup (Makefile.am): Likewise.
14027         * modules/strerror (Makefile.am): Likewise.
14028         * modules/strftime (Makefile.am): Likewise.
14029         * modules/strndup (Makefile.am): Likewise.
14030         * modules/strnlen (Makefile.am): Likewise.
14031         * modules/strpbrk (Makefile.am): Likewise.
14032         * modules/strsep (Makefile.am): Likewise.
14033         * modules/strstr (Makefile.am): Likewise.
14034         * modules/strtod (Makefile.am): Likewise.
14035         * modules/strtoimax (Makefile.am): Likewise.
14036         * modules/strtok_r (Makefile.am): Likewise.
14037         * modules/strtol (Makefile.am): Likewise.
14038         * modules/strtoll (Makefile.am): Likewise.
14039         * modules/strtoul (Makefile.am): Likewise.
14040         * modules/strtoull (Makefile.am): Likewise.
14041         * modules/strtoumax (Makefile.am): Likewise.
14042         * modules/strverscmp (Makefile.am): Likewise.
14043         * modules/time_r (Makefile.am): Likewise.
14044         * modules/timegm (Makefile.am): Likewise.
14045         * modules/tmpfile-safer (Makefile.am): Likewise.
14046         * modules/unistd-safer (Makefile.am): Likewise.
14047         * modules/unlinkdir (Makefile.am): Likewise.
14048         * modules/userspec (Makefile.am): Likewise.
14049         * modules/utime (Makefile.am): Likewise.
14050         * modules/utimecmp (Makefile.am): Likewise.
14051         * modules/utimens (Makefile.am): Likewise.
14052         * modules/vasnprintf (Makefile.am): Likewise.
14053         * modules/vasprintf (Makefile.am): Likewise.
14054         * modules/vsnprintf (Makefile.am): Likewise.
14055         * modules/xalloc (Makefile.am): Likewise.
14056         * modules/xgetcwd (Makefile.am): Likewise.
14057         * modules/xnanosleep (Makefile.am): Likewise.
14058         * modules/xreadlink (Makefile.am): Likewise.
14059         * modules/xstrtod (Makefile.am): Likewise.
14060         * modules/xstrtol (Makefile.am): Likewise.
14061         * modules/xstrtold (Makefile.am): Likewise.
14062         * modules/yesno (Makefile.am): Likewise.
14063
14064 2006-10-12  Jim Meyering  <jim@meyering.net>
14065
14066         * m4/getloadavg.m4: Revert the change below.
14067
14068         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
14069         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
14070         fail with a symlink, which is what coreutils' ./bootstrap now
14071         creates by default.
14072
14073 2006-10-12  Bruno Haible  <bruno@clisp.org>
14074
14075         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
14076         mingw.
14077         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
14078         MSVC and mingw explicitly.
14079
14080 2006-10-11  Simon Josefsson  <jas@extundo.com>
14081             Bruno Haible  <bruno@clisp.org>
14082
14083         Add support for multiple gnulib-tool invocations in the scope of a
14084         single configure.ac file.
14085         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
14086         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
14087         with the same contents as the _LIBADD variable.
14088         (func_emit_initmacro_start, func_emit_initmacro_end,
14089         func_emit_initmacro_done): New functions.
14090         (func_import, func_create_testdir): Invoke them. Allow the identifiers
14091         gl_LIBOBJS and gl_LTLIBOBJS.
14092
14093 2006-10-11  Bruno Haible  <bruno@clisp.org>
14094
14095         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
14096         (func_create_testdir): Don't create po/Makefile.am, don't invoke
14097         autoreconf. Instead, invoke autopoint explicitly but move back the
14098         *.m4 files from gnulib.
14099
14100 2006-10-11  Bruno Haible  <bruno@clisp.org>
14101
14102         * gnulib-tool (func_usage): Make module names after --create-testdir
14103         optional.
14104         (func_create_testdir): If no module was specified, use nearly all
14105         modules.
14106
14107 2006-10-12  Jim Meyering  <jim@meyering.net>
14108
14109         Big performance improvement for fts-based tools that use FTS_NOSTAT.
14110         Avoid spurious inode-mismatch problems on non-POSIX file systems.
14111         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
14112         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
14113         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
14114         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
14115         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
14116         (fts_set_stat_required): New function.
14117         (fts_open): Defer the calls to fts_stat, if possible or requested.
14118         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
14119         into fts_stat itself.
14120         (fts_read): Perform any required (deferred) fts_stat call.
14121         (fts_build): Likewise, for the directory we're about to open and read.
14122         In the readdir loop, carefully decide whether each entry will require
14123         an eventual call to fts_stat, using dirent.d_type info if available.
14124         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
14125         a command line argument into this function.  Update all callers.
14126         Map a return value of FTS_DOT to FTS_D for a command line argument.
14127         * modules/fts (Depends-on): Add d-type.  Alphabetize.
14128         Thanks to Miklos Szeredi for his tenacity and for the initial
14129         bug report about "find" failing on a FUSE-based file system.
14130
14131         * lib/fts.c (fts_open): Use consistent indentation.
14132
14133 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14134
14135         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
14136         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
14137         reported by Jim Meyering.  All uses of cache variables renamed
14138         to match Autoconf's.
14139         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
14140         the other one.
14141
14142         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14143         Fix misspelling in diagnostic.
14144
14145 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14146
14147         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
14148         defined.  Problem reported by Matthew Woehlke.
14149
14150         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
14151         Add support for Tandem NonStop R series.
14152         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
14153         Use new macro.
14154
14155         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
14156         (has_trailing_slash): Omit size arg; all callers changed.
14157         Omit 'inline', since it doesn't help performance and we'd
14158         need to configure it.
14159         Don't count //, ///, etc. as having a trailing slash.
14160         As a side effect, this removes a C99ism reported by Matthew Woehlke.
14161         (rpl_rename_dest_slash): On failure, use rename's errno rather
14162         than (in some cases) an incorrect or junk errno.
14163         Simplify code by removing need to compute length; this does
14164         cause it to make two passes instead of one over the file name,
14165         but it's worth it.
14166
14167         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
14168         change, since Autoconf's version may no longer be appropriate now
14169         that we are using CVS Autoconf's version.  Add support for Tandem.
14170
14171 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14172             Bruno Haible  <bruno@clisp.org>
14173
14174         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
14175         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
14176         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
14177         gl_AC_TYPE_LONG_LONG.
14178
14179         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
14180         instead of HAVE_LONG_LONG.
14181         * lib/printf-args.c (printf_fetchargs): Likewise.
14182         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14183         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14184         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
14185         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
14186         gl_AC_TYPE_LONG_LONG.
14187
14188 2006-10-11  Bruno Haible  <bruno@clisp.org>
14189
14190         * m4/longlong.m4: Add comments.
14191         * m4/ulonglong.m4: Likewise.
14192
14193 2006-10-10  Bruno Haible  <bruno@clisp.org>
14194
14195         Make it possible to #define stpcpy, strdup to aliases.
14196         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
14197         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
14198
14199 2006-10-10  Bruno Haible  <bruno@clisp.org>
14200
14201         Make it possible to #define gcd to an alias.
14202         * lib/gcd.c: Include config.h.
14203
14204 2006-10-10  Bruno Haible  <bruno@clisp.org>
14205
14206         Make it possible to #define c_isascii to an alias.
14207         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
14208         defined. Undefine the macros before defining them, to avoid gcc
14209         warnings.
14210         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
14211         define NO_C_CTYPE_MACROS early.
14212
14213 2006-10-10  Bruno Haible  <bruno@clisp.org>
14214
14215         Make it possible to #define set_program_name to an alias.
14216         * lib/progname.c: Don't undefine set_program_name; instead, undefine
14217         ENABLE_RELOCATABLE early.
14218
14219 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14220
14221         Port to Tandem NSK OSS, which has 64-bit signed int but at most
14222         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
14223         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
14224         More generally, don't assume that 64-bit signed int is available
14225         if unsigned int is, and vice versa.
14226         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
14227         unsigned symbols, not on their signed counterparts.
14228         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
14229         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
14230         (UINT64_C, UINTMAX_C):
14231         Likewise.
14232         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
14233         unsigned counterparts.
14234         (Have_long_long, Unsigned): New macros.
14235         (Int): Renamed from INT.
14236         (strtoimax): Use the new macros.
14237         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
14238         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
14239         * modules/inttypes (inttypes.h): Substitute
14240         HAVE_UNSIGNED_LONG_LONG_INT.
14241         * modules/stdint (stdint.h): Likewise.
14242         (Files): Add m4/ulonglong.m4.
14243
14244 2006-10-10  Bruno Haible  <bruno@clisp.org>
14245
14246         Fix a gcc -Wshadow warning.
14247         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
14248         to 'bucket'.
14249         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
14250         gl_linked_indexof_from_to): Likewise.
14251         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
14252         Likewise.
14253         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
14254         Likewise.
14255         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
14256         Reported by Eric Blake.
14257
14258 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
14259
14260         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
14261         for NetBSD.  Problem reported by Bruno Haible.
14262
14263 2006-10-09  Jim Meyering  <jim@meyering.net>
14264
14265         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
14266         Patch from Bruno Haible.
14267
14268 2006-10-09  Jim Meyering  <jim@meyering.net>
14269
14270         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
14271         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
14272         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
14273
14274 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14275
14276         Don't include <config.h> twice; this doesn't work in some cases,
14277         e.g., when config.h has "#define intmax_t long long int" and
14278         we include <config.h>, <inttypes.h>, <config.h> in that order.
14279         Problem reported by Matthew Woehlke in:
14280         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
14281         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
14282         * lib/fts-cycle.c: Don't include config.h.
14283         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
14284         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
14285         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
14286         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
14287         inttypes.h.
14288         * lib/xstrtoumax.c: Likewise.
14289         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
14290         __strtol and the like, so that this module is more like its siblings.
14291         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
14292         Remove; no longer needed now that we assume gnulib inttypes.h.
14293
14294 2006-10-08  Bruno Haible  <bruno@clisp.org>
14295
14296         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
14297         option.
14298
14299 2006-10-07  Jim Meyering  <jim@meyering.net>
14300
14301         * modules/inttypes (inttypes.h): Revert what seems to have been
14302         an inadvertent part of today's change: use "|", not "/" in the
14303         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
14304
14305 2006-10-07  Bruno Haible  <bruno@clisp.org>
14306
14307         * modules/sublist: New file.
14308
14309 2006-10-07  Bruno Haible  <bruno@clisp.org>
14310
14311         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
14312         * modules/argz (argz.h): Likewise.
14313         * modules/arpa_inet (arpa/inet.h): Likewise.
14314         * modules/byteswap (byteswap.h): Likewise.
14315         * modules/configmake (configmake.h): Likewise.
14316         * modules/fcntl (fcntl.h): Likewise.
14317         * modules/fnmatch (fnmatch.h): Likewise.
14318         * modules/getopt (getopt.h): Likewise.
14319         * modules/glob (glob.h): Likewise.
14320         * modules/inttypes (inttypes.h): Likewise.
14321         * modules/netinet_in (netinet/in.h): Likewise.
14322         * modules/poll (poll.h): Likewise.
14323         * modules/stdbool (stdbool.h): Likewise.
14324         * modules/stdint (stdint.h): Likewise.
14325         * modules/sys_select (sys/select.h): Likewise.
14326         * modules/sys_socket (sys/socket.h): Likewise.
14327         * modules/sys_stat (sys/stat.h): Likewise.
14328         * modules/sysexits (sysexits.h): Likewise.
14329         * modules/unistd (unistd.h): Likewise.
14330         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14331         Add a "DO NOT EDIT" comment to the generated file.
14332         (func_import): Likewise for gnulib-comp.m4.
14333
14334 2006-10-07  Bruno Haible  <bruno@clisp.org>
14335
14336         * lib/gl_sublist.h: New file.
14337         * lib/gl_sublist.c: New file.
14338
14339 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14340
14341         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
14342         name (relative to the original working directory) and the file
14343         name component (relative to the temporary working directory).  All
14344         callers changed.
14345         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
14346         * lib/mkdir-p.c (make_dir_parents): Likewise.
14347         * lib/mkdir-p.h (make_dir_parents): Likewise.
14348
14349 2006-10-06  Eric Blake  <ebb9@byu.net>
14350
14351         Define several macros for use by the clean-temp module.
14352         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
14353         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
14354         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
14355
14356         * lib/clean-temp.h (close_stream_temp): New declaration.
14357         * lib/clean-temp.c (includes): Pull in headers according to what
14358         other modules are in use.
14359         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
14360
14361 2006-10-06  Bruno Haible  <bruno@clisp.org>
14362
14363         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
14364         instead of fopen, fwriteerror.
14365
14366 2006-10-06  Bruno Haible  <bruno@clisp.org>
14367
14368         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
14369         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
14370         int.
14371         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
14372         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
14373         Return an error indicator.
14374         Suggested by Eric Blake.
14375
14376 2006-10-06  Bruno Haible  <bruno@clisp.org>
14377
14378         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
14379         Reported by Eric Blake.
14380
14381 2006-10-06  Bruno Haible  <bruno@clisp.org>
14382
14383         * modules/closeout (Description): Mention stderr too.
14384
14385 2006-10-06  Bruno Haible  <bruno@clisp.org>
14386         and Paul Eggert  <eggert@cs.ucla.edu>
14387
14388         * lib/closeout.c (close_stdout): Also close stderr.
14389         * lib/closeout.h: Update comment.
14390
14391 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14392
14393         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
14394         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
14395         * lib/dirchownmod.c: Include lchown.h.
14396         * lib/lchown.c: Don't include files that lchown.h now includes.
14397         Don't declare chown, since lchown.h now does that.
14398         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
14399         (lchown): Define to rpl_chown if lchown is declared but
14400         does not exist.  Declare using a prototype if lchown is not
14401         declared.  Add a copyright notice.
14402         * lib/mkstemp.h: Include <unistd.h>.
14403         * lib/openat.c: Include lchown.h.
14404
14405         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
14406         we now test for that separately.
14407         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
14408         rather than O_NOFOLLOW, when testing whether it's possible to
14409         avoid a race condition reliably.
14410         * lib/savewd.c (savewd_chdir): Likewise.
14411
14412         Remove macros that are no longer needed now that stdint.h is
14413         reliable.
14414         * lib/fsusage.c (UINTMAX_MAX): Remove.
14415         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
14416         * lib/utimecmp.c (SIZE_MAX): Remove.
14417
14418         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
14419
14420         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
14421         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
14422         O_NOATIME works.
14423
14424 2006-10-05  Bruno Haible  <bruno@clisp.org>
14425
14426         * lib/gl_list.h (gl_sortedlist_search_from_to,
14427         gl_sortedlist_indexof_from_to): New declarations.
14428         (gl_list_implementation): New fields sortedlist_search_from_to,
14429         sortedlist_indexof_from_to.
14430         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
14431         inline functions.
14432         * lib/gl_list.c (gl_sortedlist_search_from_to,
14433         gl_sortedlist_indexof_from_to): New functions.
14434         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
14435         function.
14436         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
14437         (gl_array_sortedlist_search_from_to): New function.
14438         (gl_array_list_implementation): Update.
14439         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
14440         function.
14441         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
14442         (gl_carray_sortedlist_search_from_to): New function.
14443         (gl_carray_list_implementation): Update.
14444         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
14445         gl_linked_sortedlist_indexof_from_to): New functions.
14446         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
14447         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
14448         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
14449         gl_tree_sortedlist_indexof_from_to): New functions.
14450         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
14451         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
14452         Update.
14453         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
14454         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
14455         Update.
14456
14457 2006-10-05  Bruno Haible  <bruno@clisp.org>
14458
14459         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
14460         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
14461         (struct gl_list_implementation): Add fields search_from_to,
14462         indexof_from_to. Remove fields search, indexof.
14463         (gl_list_search): Use the search_from_to method.
14464         (gl_list_search_from, gl_list_search_from_to): New functions.
14465         (gl_list_indexof): Use the indexof_from_to method.
14466         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
14467         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
14468         (gl_list_search_from, gl_list_search_from_to): New functions.
14469         (gl_list_indexof): Use the indexof_from_to method.
14470         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
14471         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
14472         gl_array_indexof. Add start_index, end_index arguments.
14473         (gl_array_search_from_to): Renamed from gl_array_search. Add
14474         start_index, end_index arguments.
14475         (gl_array_remove, gl_array_list_implementation): Update.
14476         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
14477         gl_carray_indexof. Add start_index, end_index arguments.
14478         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
14479         start_index, end_index arguments.
14480         (gl_carray_remove, gl_carray_list_implementation): Update.
14481         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
14482         gl_linked_search. Add start_index, end_index arguments.
14483         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
14484         start_index, end_index arguments.
14485         (gl_linked_remove): Update.
14486         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
14487         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
14488         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
14489         field to 'size_t'.
14490         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
14491         gl_tree_search. Add start_index, end_index arguments.
14492         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
14493         start_index, end_index arguments.
14494         (gl_tree_remove): Update.
14495         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
14496         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
14497         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
14498         function.
14499         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
14500         gl_tree_search. Add start_index, end_index arguments.
14501         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
14502         start_index, end_index arguments.
14503         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
14504         Update.
14505         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
14506
14507 2006-10-05  Bruno Haible  <bruno@clisp.org>
14508
14509         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
14510
14511         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
14512         fwriteerror_temp): New declarations.
14513         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
14514         (descriptors): New variable.
14515         (cleanup): First, close the descriptors.
14516         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
14517         fclose_temp, fwriteerror_temp): New functions.
14518
14519 2006-10-04  Jim Meyering  <jim@meyering.net>
14520
14521         * lib/fts.c (fts_open): Tiny comment change.
14522
14523 2006-10-04  Bruno Haible  <bruno@clisp.org>
14524
14525         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
14526         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
14527         gl_LOCK_BODY.
14528         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
14529         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
14530         gl_LOCK_EARLY_BODY.
14531         (gl_LOCK): Require gl_LOCK_BODY.
14532
14533 2006-10-04  Bruno Haible  <bruno@clisp.org>
14534
14535         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
14536         (gl_oset_search_atleast): New declaration.
14537         (struct gl_oset_implementation): Add field 'search_atleast'.
14538         (gl_oset_search_atleast): New inline function.
14539         * lib/gl_oset.c (gl_oset_search_atleast): New function.
14540         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
14541         (gl_array_oset_implementation): Update.
14542         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
14543         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
14544         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
14545
14546 2006-10-04  Bruno Haible  <bruno@clisp.org>
14547
14548         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
14549
14550 2006-10-03  Bruno Haible  <bruno@clisp.org>
14551
14552         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
14553         from gl_avltreehash_list_implementation.
14554
14555 2006-10-03  Bruno Haible  <bruno@clisp.org>
14556
14557         * lib/gl_oset.c (gl_oset_add): Fix return type.
14558
14559 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
14560
14561         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
14562
14563 2006-10-02  Eric Blake  <ebb9@byu.net>
14564
14565         * modules/strnlen (Depends-on): Add extensions.
14566
14567 2006-10-02  Eric Blake  <ebb9@byu.net>
14568
14569         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
14570         definition in 2.60+.
14571
14572 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
14573
14574         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
14575         checks.
14576
14577 2006-10-02  Bruno Haible  <bruno@clisp.org>
14578
14579         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
14580         to the AUTOMAKE_OPTIONS.
14581         Reported by Jim Meyering.
14582
14583 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
14584
14585         Work around bug in Solaris 10 /proc file system:
14586         /proc/self/fd/NNN/.. isn't the parent directory of
14587         the directory whose file descriptor is NNN.  This needs to
14588         be worked around at run time, not compile time, since a
14589         program might be built on Solaris 8, where things work, and
14590         run on Solaris 10.
14591         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
14592         to use the following interface instead:
14593         (OPENAT_BUFFER_SIZE): New macro.
14594         (openat_proc_name): New function.
14595         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
14596         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
14597         Likewise.
14598         * lib/openat-proc.c: New file.
14599         * modules/openat (Files): Add lib/openat-proc.c.
14600         (Depends-on): Add same-inode, stdbool.
14601         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
14602
14603 2006-09-29  Bruno Haible  <bruno@clisp.org>
14604
14605         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
14606         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
14607         argument. Set stdout_closed before testing for ferror, not after.
14608         (fwriteerror, fwriteerror_no_ebadf): New functions.
14609
14610 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14611
14612         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
14613
14614 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
14615
14616         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
14617         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
14618
14619 2006-09-28  Jim Meyering  <jim@meyering.net>
14620
14621         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
14622         Include <unistd.h>.
14623
14624 2006-09-28  Bruno Haible  <bruno@clisp.org>
14625
14626         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
14627         * modules/linkedhash-list (Depends-on): Likewise.
14628         * modules/rbtreehash-list (Depends-on): Likewise.
14629
14630 2006-09-28  Bruno Haible  <bruno@clisp.org>
14631
14632         * lib/strndup.h: Simplify the redefinition of strndup.
14633         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
14634         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
14635
14636 2006-09-28  Bruno Haible  <bruno@clisp.org>
14637
14638         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
14639         * lib/gl_linkedhash_list.c: Likewise.
14640         * lib/gl_rbtreehash_list.c: Likewise.
14641
14642 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
14643
14644         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
14645         getaddrinfo.
14646
14647         * lib/__fpending.h: Don't include <stdio_ext.h> unless
14648         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
14649         it causes <stdio_ext.h> to cause a compile-time error.
14650         Problem reported by Nelson H. F. Beebe.
14651         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
14652         of HAVE_DECL___PENDING.
14653
14654         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
14655         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
14656         declaration.
14657
14658 2006-09-27  Jim Meyering  <jim@meyering.net>
14659
14660         This file could end up with a definition for a function
14661         named __strndup, rather than rpl_strndup on a system with
14662         incomplete weak_alias support.
14663         * lib/strndup.c (strndup): Rename from __strndup.
14664         Remove #defines that used to map __strndup to strndup.
14665         Don't use K&R prototypes.
14666         Remove LIBC-related code, since this file is not sync'd with glibc.
14667         * lib/strndup.h: Revamp, accordingly.
14668         * m4/strndup.m4: Modernize.
14669
14670 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
14671
14672         * modules/savewd (Depends-on): Add 'raise'.
14673         * lib/savewd.c: Include <signal.h>, for 'raise'.
14674
14675 2006-09-26  Jim Meyering  <jim@meyering.net>
14676
14677         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
14678         when we detect Darwin 8.7.0's acl_get_file bug.
14679         Rearrange to perform the new (below) run-test while $LIBS
14680         contains any acl-related library.  Set USE_ACL at the end.
14681         (gl_ACL_GET_FILE): New function.
14682
14683 2006-09-26  Eric Blake  <ebb9@byu.net>
14684
14685         * lib/verror.c: Include <config.h> unconditionally.
14686
14687 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
14688
14689         * modules/clock-time (Maintainer): Add self.
14690         * modules/getlogin_r (Depends-on): Add extensions.
14691
14692 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14693
14694         * modules/clock-time: New module.
14695         * modules/nanosleep (Depends-on): Add clock-time.
14696         * modules/gethrxtime (Depends-on): Likewise.
14697         * modules/gettime (Depends-on): Likewise.
14698         * modules/settime (Depends-on): Likewise.
14699
14700         * modules/fts-lgpl: Depend on openat.
14701         * modules/mkancesdirs: Depend on savewd.
14702         * modules/mkdir-p: Likewise.
14703
14704 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14705
14706         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
14707
14708         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
14709         `gl_have_arbitrary_file_name_length_limit' to
14710         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
14711         actually works between configure runs.
14712
14713 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14714             Bruno Haible  <bruno@clisp.org>
14715
14716         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
14717
14718 2006-09-25  Jim Meyering  <jim@meyering.net>
14719
14720         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
14721         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
14722
14723 2006-09-25  Eric Blake  <ebb9@byu.net>
14724
14725         * gnulib-tool (func_import, func_create_testdir): Fix typos in
14726         exec's in 2006-09-18 patch when shuffling fds.
14727
14728 2006-09-25  Bruno Haible  <bruno@clisp.org>
14729
14730         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
14731         Reported by Jim Meyering.
14732
14733 2006-09-24  Jim Meyering  <jim@meyering.net>
14734
14735         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
14736         compare a pointer against a literal "0".  That caused failures with
14737         at least HP-UX's hpcc.
14738
14739 2006-09-22  Simon Josefsson  <jas@extundo.com>
14740
14741         * modules/gc-sha1:
14742         * modules/gc-md4:
14743         * modules/gc-hmac-sha1:
14744         * modules/gc-hmac-md5:
14745         * modules/gc-des:
14746         * modules/gc-arcfour: Distribute more files.
14747
14748 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14749
14750         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
14751         (gl_linked_iterator_from_to): Initialize struct completely.
14752         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
14753         (gl_tree_iterator_from_to): Likewise
14754         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
14755         * lib/gl_array_list.c [lint] (gl_array_iterator)
14756         (gl_array_iterator_from_to): Likewise.
14757         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
14758         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
14759         (gl_carray_iterator_from_to): Likewise.
14760
14761         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
14762         * lib/md4.c (md4_process_block): Remove unused variable.
14763         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
14764         parentheses for clarity.
14765
14766 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14767
14768         * modules/bison-i18n (Depends-on): Add gettext.
14769
14770 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14771
14772         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
14773         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
14774         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
14775         also add missing comma that caused broken test.
14776         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
14777         stdlib.h, for `abort'.
14778         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
14779         variables.
14780         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
14781         include unistd.h if present, for `rmdir'.
14782         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
14783         variables.
14784         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
14785         in the process include standard headers for prototypes.
14786         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
14787         gets declared on GNU/Linux.
14788         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
14789         unistd.h, for `rmdir'.
14790         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
14791
14792         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
14793         always true.
14794         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
14795
14796         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
14797
14798 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14799
14800         * gnulib-tool (func_version): Create output all at once.  This
14801         may help avoid triggering unnecessary SIGPIPEs, and at any
14802         rate it doesn't hurt.
14803
14804 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14805             Bruno Haible  <bruno@clisp.org>
14806
14807         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
14808         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14809         * m4/signed.m4 (bh_C_SIGNED): Likewise.
14810
14811         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
14812         (gl_FUNC_VASPRINTF): Invoke it.
14813
14814 2006-09-22  Bruno Haible  <bruno@clisp.org>
14815
14816         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
14817         getloadavg.c as first argument.
14818
14819 2006-09-22  Bruno Haible  <bruno@clisp.org>
14820
14821         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
14822         at the beginning of the gl_INIT macro.
14823         * modules/getloadavg (configure.ac): Pass $gl_source_base to
14824         gl_GETLOADAVG.
14825
14826 2006-09-22  Bruno Haible  <bruno@clisp.org>
14827
14828         * gnulib-tool (func_create_megatestdir): Don't include the config-h
14829         module.
14830         Suggested by Ralf Wildenhues.
14831
14832 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14833
14834         Import this patch from libc:
14835
14836         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
14837
14838         * lib/regex_internal.c (re_string_reconstruct): Handle
14839         offset < pstr->valid_raw_len && pstr->offsets_needed case.
14840         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
14841         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
14842         re_string_context_at.
14843
14844         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
14845         now requires it.
14846         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
14847         gl_REGEX now does it for us.
14848         (gl_REGEX): Add test taken from
14849         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
14850
14851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
14852         Check that large offsets work.  Modernize Autoconf usages.
14853         Prefer "yes" to mean a good thing rather than a bad.
14854         Don't put "#define mkstemp" in config.h, as this might interfere
14855         with standard system headers that "#define mkstemp mkstemp64".
14856
14857         * modules/mkstemp (Depends-on): Add extensions, so that
14858         mkstemp is visible on some platforms.
14859         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
14860         (Include): Change to "mkstemp.h" from <stdlib.h>.
14861         (Files): Add mkstemp.h.
14862
14863         * lib/mkstemp.h: New file, since some standard headers
14864         #define mkstemp.
14865         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
14866         Include "mkstemp.h".
14867         Make the _LIBC code resemble glibc original more,
14868         e.g., use K&R style.
14869         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
14870         (mkstemp): Remove, since mkstemp.h does this for us.
14871         * lib/stdlib--.h: Include mkstemp.h.
14872
14873         Import this patch from libc:
14874
14875         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
14876
14877         * lib/tempname.c (__gen_tempname): Change attempts_min
14878         into a macro.  Use preprocessor to decide how to initialize
14879         attempts [Coverity CID 67].
14880
14881 2006-09-20  Bruno Haible  <bruno@clisp.org>
14882
14883         * lib/mkdtemp.c: Import from libc.
14884         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
14885                 * sysdeps/posix/tempname.c (__gen_tempname): Change
14886                 attempts_min into a macro.  Use preprocessor to decide how to
14887                 initialize attempts [Coverity CID 67].
14888         2001-11-27  Paul Eggert  <eggert@twinsun.com>
14889                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
14890                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
14891
14892 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14893
14894         * gnulib-tool (func_exit): New function, to allow to pass the
14895         exit status portably through the trap.  Use everywhere.
14896         (--help, --version): Signal a write error.
14897         (trap): catch SIGPIPE, for write errors.
14898         Exit at the end of the trap, with the correct exit status.
14899
14900 2006-09-19  Karl Berry  <karl@gnu.org>
14901
14902         * doc/gnulib.texi: note about the license texinfo files.
14903
14904 2006-09-19  Eric Blake  <ebb9@byu.net>
14905
14906         * gnulib-tool: Avoid space-tab.
14907
14908 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14909
14910         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
14911         that prevented coreutils 6.1 from building.  Problem reported
14912         by Petter Reinholdtsen.
14913
14914 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14915
14916         * gnulib-tool (avoidlist): Fix typo that broke options like
14917         --avoid=lock that are used by coreutils bootstrap.
14918
14919 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
14920
14921         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
14922         more systematically.
14923
14924 2006-09-18  Jim Meyering  <jim@meyering.net>
14925
14926         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
14927
14928 2006-09-18  Bruno Haible  <bruno@clisp.org>
14929
14930         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
14931
14932 2006-09-18  Bruno Haible  <bruno@clisp.org>
14933
14934         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
14935         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
14936         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
14937         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
14938         * m4/gettext.m4: Require autoconf >= 2.52.
14939         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
14940         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
14941         of gl_cv_header_inttypes_h.
14942
14943 2006-09-18  Bruno Haible  <bruno@clisp.org>
14944
14945         * lib/javaversion.c: Include configmake.h.
14946
14947 2006-09-18  Bruno Haible  <bruno@clisp.org>
14948
14949         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
14950         avoid that the while loops be executed in a subshell.
14951
14952 2006-09-18  Bruno Haible  <bruno@clisp.org>
14953
14954         * MODULES.html.sh (func_module): Break long lines.
14955         Suggested by Bruce Korb <bkorb@gnu.org>.
14956
14957 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14958
14959         Speed up by a factor of 1.12.
14960         * gnulib-tool (nl): New variable.
14961         (func_import): Rewrite include directive extraction to only read each
14962         directive once.
14963
14964 2006-09-17  Bruno Haible  <bruno@clisp.org>
14965
14966         * modules/javaversion (Makefile.am): Remove DEFS setting.
14967         (Depends-on): Add configmake, for PKGDATADIR definition.
14968
14969 2006-09-17  Bruno Haible  <bruno@clisp.org>
14970
14971         * gnulib-tool (func_create_testdir): Rewrite all files at once.
14972
14973 2006-09-17  Bruno Haible  <bruno@clisp.org>
14974
14975         * gnulib-tool (func_append): New function, stolen from libtool.m4.
14976         (func_modules_transitive_closure, func_modules_add_dummy,
14977         func_modules_to_filelist, func_import, func_create_testdir,
14978         func_create_megatestdir, ...): Use it wherever possible.
14979         Suggested by Ralf Wildenhues.
14980
14981 2006-09-16  Karl Berry  <karl@gnu.org>
14982
14983         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
14984         to avoid sectioning errors.
14985         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
14986         [ifinfo]: blank line after @center-ed titles.
14987         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
14988         Spell FSF address consistently with others.
14989         (These changes approved by rms.)
14990
14991 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14992
14993         Speed up by a factor of 1.61.
14994         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
14995         already checked module names again.
14996
14997 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14998
14999         Speed up by a factor of 1.13.
15000         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
15001         for new_files, and the input to func_add_or_update.
15002
15003 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15004
15005         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
15006         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
15007
15008 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15009
15010         * modules/mkancesdirs (Depends-on): Add fcntl.
15011         * modules/savewd: New file.
15012         * MODULES.html.sh (File system functions): Add savewd.
15013
15014         * modules/configmake (Makefile.am): Add support for the
15015         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
15016
15017 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15018
15019         * m4/savewd.m4: New file.
15020
15021 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15022
15023         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
15024         (dirchownmod): New arg FD.  All callers changed.
15025         Use FD rather than opening the directory ourself, as opening is
15026         now the caller's responsibility.
15027         * lib/dirchownmod.h: Likewise.
15028         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
15029         hosts that require <sys/types.h> before <sys/stat.h>.  Include
15030         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
15031         (test_dir): Remove.
15032         (mkancesdirs): Return length of prefix of FILE that has already
15033         been made, or -2 if there is a child doing the work.  Redo
15034         algorithm so that it is O(N) rather than O(N**2).  Optimize away
15035         ".", and treat ".." specially since it might stray back into
15036         already-created areas.  Use a subprocess if necessary.  New arg
15037         WD; all users changed.  MAKE_DIR function should now return 1
15038         if it creates a directory that is not readable.  Return -2 if
15039         a child process is spun off.
15040         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
15041         Adjust signature to match code.
15042         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
15043         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
15044         all users changed.
15045         * lib/savewd.c, lib/savewd.h: New files.
15046
15047 2006-09-15  Jim Meyering  <jim@meyering.net>
15048
15049         * modules/rename-dest-slash: New module.
15050         * MODULES.html.sh (posix_compat): Add it here.
15051
15052         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
15053
15054 2006-09-15  Jim Meyering  <jim@meyering.net>
15055
15056         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
15057         file.
15058
15059         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
15060
15061 2006-09-15  Jim Meyering  <jim@meyering.net>
15062
15063         * lib/rename-dest-slash.c (has_trailing_slash): Use
15064         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
15065         (rpl_rename_dest_slash): Perform the cheaper trailing slash
15066         test before testing whether SRC is a directory.
15067         Suggestions from Bruno Haible.
15068
15069         Avoid a warning about an unused variable.
15070         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
15071         into the #ifdef block where it's used.
15072
15073         * lib/rename-dest-slash.c: New file.
15074
15075 2006-09-14  Bruno Haible  <bruno@clisp.org>
15076
15077         * lib/allocsa.c: Include <config.h> unconditionally.
15078         * lib/asnprintf.c: Likewise.
15079         * lib/asprintf.c: Likewise.
15080         * lib/c-strcasecmp.c: Likewise.
15081         * lib/c-strcasestr.c: Likewise.
15082         * lib/c-strncasecmp.c: Likewise.
15083         * lib/c-strstr.c: Likewise.
15084         * lib/classpath.c: Likewise.
15085         * lib/clean-temp.c: Likewise.
15086         * lib/concatpath.c: Likewise.
15087         * lib/copy-file.c: Likewise.
15088         * lib/csharpcomp.c: Likewise.
15089         * lib/csharpexec.c: Likewise.
15090         * lib/execute.c: Likewise.
15091         * lib/fatal-signal.c: Likewise.
15092         * lib/findprog.c: Likewise.
15093         * lib/fwriteerror.c: Likewise.
15094         * lib/gl_array_list.c: Likewise.
15095         * lib/gl_array_oset.c: Likewise.
15096         * lib/gl_avltree_list.c: Likewise.
15097         * lib/gl_avltree_oset.c: Likewise.
15098         * lib/gl_avltreehash_list.c: Likewise.
15099         * lib/gl_carray_list.c: Likewise.
15100         * lib/gl_linked_list.c: Likewise.
15101         * lib/gl_linkedhash_list.c: Likewise.
15102         * lib/gl_list.c: Likewise.
15103         * lib/gl_oset.c: Likewise.
15104         * lib/gl_rbtree_list.c: Likewise.
15105         * lib/gl_rbtree_oset.c: Likewise.
15106         * lib/gl_rbtreehash_list.c: Likewise.
15107         * lib/imaxabs.c: Likewise.
15108         * lib/imaxdiv.c: Likewise.
15109         * lib/javacomp.c: Likewise.
15110         * lib/javaexec.c: Likewise.
15111         * lib/javaversion.c: Likewise.
15112         * lib/linebreak.c: Likewise.
15113         * lib/localcharset.c: Likewise.
15114         * lib/lock.c: Likewise.
15115         * lib/mbchar.c: Likewise.
15116         * lib/mbswidth.c: Likewise.
15117         * lib/mkdtemp.c: Likewise.
15118         * lib/pipe.c: Likewise.
15119         * lib/printf-args.c: Likewise.
15120         * lib/printf-parse.c: Likewise.
15121         * lib/progname.c: Likewise.
15122         * lib/progreloc.c: Likewise.
15123         * lib/readlink.c: Likewise.
15124         * lib/sh-quote.c: Likewise.
15125         * lib/stpcpy.c: Likewise.
15126         * lib/stpncpy.c: Likewise.
15127         * lib/strcasecmp.c: Likewise.
15128         * lib/strcasestr.c: Likewise.
15129         * lib/strcspn.c: Likewise.
15130         * lib/striconv.c: Likewise.
15131         * lib/strncasecmp.c: Likewise.
15132         * lib/strnlen1.c: Likewise.
15133         * lib/strstr.c: Likewise.
15134         * lib/strtok_r.c: Likewise.
15135         * lib/tls.c: Likewise.
15136         * lib/tmpdir.c: Likewise.
15137         * lib/unicodeio.c: Likewise.
15138         * lib/unsetenv.c: Likewise.
15139         * lib/vasnprintf.c: Likewise.
15140         * lib/vasprintf.c: Likewise.
15141         * lib/wait-process.c: Likewise.
15142         * lib/xallocsa.c: Likewise.
15143         * lib/xsetenv.c: Likewise.
15144         * lib/xstriconv.c: Likewise.
15145
15146 2006-09-13  Simon Josefsson  <jas@extundo.com>
15147
15148         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
15149         that internally, suggested by Ralf Wildenhues
15150         <Ralf.Wildenhues@gmx.de>.
15151
15152 2006-09-13  Simon Josefsson  <jas@extundo.com>
15153
15154         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
15155         @LIBOBJS@.
15156         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15157
15158 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15159
15160         * lib/_fpending.c: Include <config.h> unconditionally, since we no
15161         longer worry about uses that don't define HAVE_CONFIG_H.
15162         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
15163         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
15164         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
15165         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
15166         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
15167         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
15168         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
15169         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
15170         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
15171         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
15172         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
15173         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
15174         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
15175         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
15176         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
15177         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
15178         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
15179         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
15180         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
15181         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
15182         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
15183         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
15184         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
15185         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
15186         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
15187         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
15188         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
15189         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
15190         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
15191         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
15192         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
15193         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
15194         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
15195         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
15196         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
15197         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
15198         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
15199         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
15200         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
15201         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
15202         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
15203         Likewise.
15204
15205 2006-09-13  Eric Blake  <ebb9@byu.net>
15206
15207         * lib/getopt.c: Fix typo in last commit.
15208
15209 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15210
15211         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
15212         dgettext.
15213
15214 2006-09-12  Jim Meyering  <jim@meyering.net>
15215
15216         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
15217         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
15218         Reported by Nelson H. F. Beebe.
15219
15220 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
15221
15222         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
15223         program_invocation_name and program_invocation_short_name are
15224         initialized.
15225         * lib/argp-namefrob.h: Move declarations of program_invocation_name
15226         and program_invocation_short_name to argp.h, so they are visible
15227         to user programs.
15228         * lib/argp.h: Likewise
15229
15230 2006-09-10  Bruno Haible  <bruno@clisp.org>
15231
15232         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
15233         m4/inttypes_h.m4, m4/uintmax_t.m4.
15234
15235 2006-09-10  Bruno Haible  <bruno@clisp.org>
15236
15237         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
15238         gl_AC_TYPE_UINTMAX_T.
15239
15240 2006-09-10  Bruno Haible  <bruno@clisp.org>
15241
15242         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
15243
15244 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15245
15246         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
15247         convention.  Text proposed by Bruno Haible.
15248         (struct argp_option): Document the use of N_() wrappers.
15249
15250         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
15251         '\v', and translate the two parts separately, instead of feeding
15252         the whole string to gettext.  This allows to exclude
15253         '\v' from the strings visible to the translator by writing doc
15254         strings as N_("..") "\v" N_("..").
15255
15256 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
15257
15258         * config/srclist.txt: Undo latest change; the bug was fixed.
15259
15260 2006-09-09  Bruno Haible  <bruno@clisp.org>
15261
15262         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
15263         assignments if building a library without libtool.
15264         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
15265         in func_emit_lib_Makefile_am.
15266         (func_import): When building a static library libfoo.a, arrange to
15267         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
15268         (func_create_testdir): Likewise.
15269         * modules/gc (configure.ac, Makefile.am): If building statically,
15270         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
15271         * modules/iconvme (configure.ac, Makefile.am): Likewise.
15272         * modules/striconv (configure.ac, Makefile.am): Likewise.
15273         Based on a suggestion by Ralf Wildenhues.
15274
15275 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15276
15277         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
15278         Check for unistd.h too, since Autoconf doesn't assume POSIX.
15279         Also:
15280
15281         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15282         Add year_2050_test to catch glibc bug 2821
15283         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
15284
15285         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15286         Prefer #ifdef to #if.
15287
15288         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
15289         Return from 'main' instead of calling 'exit'.
15290
15291 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15292
15293         * lib/mktime.c (guess_time_tm): Fix bug where mktime
15294         returned the maximum time_t value rather than (time_t) -1.
15295         Problem originally reported by William Bardwell
15296         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
15297
15298         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
15299         Moved to here ...
15300         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
15301         ... from here.
15302
15303 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15304
15305         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
15306         2821 is fixed.
15307
15308 2006-09-08  Jim Meyering  <jim@meyering.net>
15309
15310         Don't make generated files read-only.  That would bother too many
15311         people.  However, do retain the ability to work when targets are
15312         read-only: remove the destination and temporary files before writing
15313         them (when generated via sed or echo), or by using the -f option for
15314         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
15315         * modules/alloca-opt, modules/argz, modules/arpa_inet:
15316         * modules/byteswap, modules/configmake, modules/fcntl:
15317         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
15318         * modules/localcharset, modules/netinet_in, modules/poll:
15319         * modules/stdbool, modules/stdint, modules/sys_select:
15320         * modules/sys_socket, modules/sys_stat, modules/sysexits:
15321
15322 2006-09-08  Jim Meyering  <jim@meyering.net>
15323
15324         Avoid new build failure on FreeBSD 6.0.
15325         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
15326         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
15327         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
15328
15329 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15330
15331         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
15332
15333 2006-09-07  Jim Meyering  <jim@meyering.net>
15334
15335         Fix global typo in last change: use chmod u-w, not chmod u-x.
15336         Spotted by Paul Eggert and Bruce Korb.
15337         * modules/alloca-opt, modules/argz, modules/arpa_inet:
15338         * modules/byteswap, modules/configmake, modules/fcntl:
15339         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
15340         * modules/localcharset, modules/netinet_in, modules/poll:
15341         * modules/stdbool, modules/stdint, modules/sys_select:
15342         * modules/sys_socket, modules/sys_stat, modules/sysexits:
15343
15344 2006-09-06  Jim Meyering  <jim@meyering.net>
15345
15346         Make generated files be read-only.
15347         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
15348         Ensure that each generated file is now read-only.
15349         * modules/argz: Likewise.
15350         * modules/arpa_inet: Likewise.
15351         * modules/byteswap: Likewise.
15352         * modules/configmake: Likewise.
15353         * modules/fcntl: Likewise.
15354         * modules/fnmatch: Likewise.
15355         * modules/getopt: Likewise.
15356         * modules/glob: Likewise.
15357         * modules/inttypes: Likewise.
15358         * modules/netinet_in: Likewise.
15359         * modules/poll: Likewise.
15360         * modules/stdbool: Likewise.
15361         * modules/stdint: Likewise.
15362         * modules/sys_select: Likewise.
15363         * modules/sys_socket: Likewise.
15364         * modules/sys_stat: Likewise.
15365         * modules/sysexits: Likewise.
15366         * modules/localcharset: Same as above, but continue using temporary
15367         file named "t-$@" (why different?) rather than the "$@-t" used
15368         everywhere else.
15369
15370         * modules/sysexits (Makefile.am): Replace literal occurrences
15371         of "sysexit.h" more readable, and more consistent, "$@".
15372
15373 2006-09-06  Bruno Haible  <bruno@clisp.org>
15374
15375         * modules/striconv: New file.
15376         * modules/xstriconv: New file.
15377         * MODULES.html.sh (Internationalization functions): Add striconv,
15378         xstriconv.
15379
15380 2006-09-06  Bruno Haible  <bruno@clisp.org>
15381
15382         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
15383         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
15384         not using libtool correctly.
15385
15386 2006-09-06  Bruno Haible  <bruno@clisp.org>
15387
15388         * lib/striconv.h: New file.
15389         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
15390         iconvstring.c.
15391         * lib/xstriconv.h: New file.
15392         * lib/xstriconv.c: New file.
15393
15394 2006-09-06  Bruno Haible  <bruno@clisp.org>
15395
15396         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15397         lib_..._LDFLAGS.
15398
15399 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15400
15401         * lib/argz_.h: Sync from Libtool.
15402
15403         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
15404                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15405
15406         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
15407
15408 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
15409
15410         * modules/trim: New file.
15411
15412 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
15413
15414         * lib/trim.h: New file.
15415         * lib/trim.c: New file.
15416
15417 2006-09-05  Bruno Haible  <bruno@clisp.org>
15418
15419         * MODULES.html.sh (String handling): Add trim.
15420
15421 2006-09-04  Karl Berry  <karl@gnu.org>
15422
15423         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
15424         until next release.
15425
15426 2006-09-03  Bruno Haible  <bruno@clisp.org>
15427
15428         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
15429         correctly.
15430
15431 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15432
15433         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
15434         not gl_GETLOADAVG.  Omit unneeded semicolons.
15435         Problems reported by Ralf Wildenhues in
15436         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
15437         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
15438         at the end, which is the usual gnulib style.
15439
15440         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
15441         of doing all the work ourselves.
15442         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
15443         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
15444
15445 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15446
15447         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
15448         Problem reported by Ralf Wildenhues in
15449         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
15450
15451         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
15452         HAVE_STRUCT_STATFS_F_FSTYPENAME.
15453
15454 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15455
15456         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
15457         yesterday's patch by changing test -n to test -z.
15458
15459 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15460
15461         * modules/getloadavg (Files): Add m4/getloadavg.m4.
15462         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
15463         the former is now obsolescent.
15464
15465         * modules/chdir-long (Depends-on): Add fcntl.
15466
15467 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15468
15469         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
15470         obsolescent, and programs should use gnulib instead.
15471         * m4/getloadavg.m4: New file, with contents taken from Autoconf
15472         but with prefixes changed.
15473
15474 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15475
15476         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
15477         or stdbool.h, because they might not exist while configuring.
15478
15479         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
15480         Don't include unistd.h or limits.h; not needed, since chdir-long.h
15481         does that for us.
15482         (O_DIRECTORY): Remove.
15483
15484 2006-08-31  Eric Blake  <ebb9@byu.net>
15485
15486         * gnulib-tool: Don't let emacs change spaces to TAB.
15487
15488 2006-08-31  Bruno Haible  <bruno@clisp.org>
15489
15490         * gnulib-tool: When calling func_import more than once, do it in a
15491         subshell.
15492         Reported by Eric Blake <ebb9@byu.net>.
15493
15494 2006-08-31  Bruno Haible  <bruno@clisp.org>
15495
15496         * gnulib-tool (nl): Remove variable.
15497         (sed_transform_lib_file): Use more robust test for config-h module.
15498         (func_import): Fix typo in 2006-08-25 patch.
15499
15500 2006-08-31  Bruno Haible  <bruno@clisp.org>
15501
15502         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
15503         specified, augment Makefile.am variables instead of assigning them.
15504
15505 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15506
15507         Work around a bug in both the Linux and SunOS 64-bit kernels:
15508         nanosleep mishandles sleeps for longer than 2**31 seconds.
15509         Problem reported by Frank v Waveren in
15510         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
15511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
15512         Check for nanosleep bug.
15513         (LIB_NANOSLEEP): Append clock_gettime library if needed.
15514
15515 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15516
15517         Work around a bug in both the Linux and SunOS 64-bit kernels:
15518         nanosleep mishandles sleeps for longer than 2**31 seconds.
15519         Problem reported by Frank v Waveren in
15520         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
15521         * lib/nanosleep.c (BILLION): New constant.
15522         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
15523         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
15524         implementation.
15525
15526 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15527
15528         * modules/nanosleep (Depends-on): Add gettime.
15529
15530 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15531         and Simon Josefsson  <jas@extundo.com>
15532         and Oskar Liljeblad  <oskar@osk.mine.nu>
15533
15534         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
15535         * gnulib-tool (func_import): New license type 'unmodifiable license
15536         text'.
15537         * modules/fdl: Use it.  Longer description.
15538         * module/gpl, module/lgpl: New files.
15539
15540 2006-08-30  Jim Meyering  <jim@meyering.net>
15541
15542         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
15543         shadowing the parameter.
15544
15545 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15546
15547         Sync from Libtool:
15548
15549         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15550
15551         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
15552         sharing with gnulib.  Report by Eric Blake.
15553
15554 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15555
15556         * modules/isapipe: New file.
15557         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
15558
15559 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15560
15561         * modules/configmake (Makefile.am): Add a comment, and omit
15562         the CONFIGMAKE_ prefix from generated macro names.  Suggested
15563         by Bruno Haible.
15564
15565 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15566
15567         * m4/isapipe.m4: New file.
15568
15569 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15570
15571         * lib/isapipe.c, lib/isapipe.h: New files.
15572
15573 2006-08-29  Jim Meyering  <jim@meyering.net>
15574
15575         * modules/configmake (Makefile.am): Make configmake.h depend on
15576         Makefile.  Otherwise, a stale configmake.h could hang around.
15577
15578 2006-08-29  Eric Blake  <ebb9@byu.net>
15579
15580         * lib/error.c (error_at_line, print_errno_message): Match libc, after
15581         resolution of upstream bug 3044.
15582
15583 2006-08-29  Bruno Haible  <bruno@clisp.org>
15584
15585         * modules/localcharset (Depends-on): Add configmake.
15586         (Makefile.am): Remove setting of LIBDIR through DEFS.
15587
15588 2006-08-29  Bruno Haible  <bruno@clisp.org>
15589
15590         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
15591         defined.
15592
15593 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15594
15595         * modules/fcntl: New file.
15596         * modules/chdir-safer (Depends-on): Add fcntl.
15597         * modules/fts: Likewise.
15598         * modules/mkdir-p: Likewise.
15599
15600         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
15601         This undoes the most recent change, since we're now addressing the
15602         problem in a different way.
15603
15604         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
15605         into output, since the output might be called Makefile.am even
15606         if $makefile_name is something different.
15607         (func_import): Use $makefile_am rather than
15608         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
15609         empty.
15610
15611         * modules/inttypes (Files): Add m4/inttypes-h.m4.
15612
15613 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15614
15615         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
15616         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
15617         recent change to stdint.m4, since we're now addressing the problem in a
15618         different way.
15619
15620 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15621
15622         * m4/fcntl_h.m4: New file.
15623
15624 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15625
15626         * lib/fcntl_.h: New file.
15627         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
15628         the fcntl module.
15629         * lib/dirchownmod.c: Likewise.
15630         * lib/fts.c: Likewise.
15631
15632         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
15633         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
15634         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
15635         just before including <inttypes.h>, to avoid circular inclusion.
15636
15637 2006-08-28  Jim Meyering  <jim@meyering.net>
15638
15639         * doc/visibility.texi: Actually read and correct the grammar of the
15640         sentence affected by yesterday's change.
15641
15642 2006-08-28  Eric Blake  <ebb9@byu.net>
15643
15644         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
15645         needs wrapper.
15646
15647 2006-08-28  Eric Blake  <ebb9@byu.net>
15648
15649         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
15650
15651 2006-08-28  Eric Blake  <ebb9@byu.net>
15652
15653         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
15654
15655 2006-08-28  Bruno Haible  <bruno@clisp.org>
15656
15657         * modules/c-strstr: New file, from GNU gettext.
15658         * MODULES.html.sh (String handling): Add c-strstr.
15659
15660 2006-08-28  Bruno Haible  <bruno@clisp.org>
15661
15662         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
15663         macros.
15664         Reported by Eric Blake.
15665
15666 2006-08-28  Bruno Haible  <bruno@clisp.org>
15667
15668         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
15669         (VASNPRINTF): Return a string of length > INT_MAX without failing.
15670         * lib/vasprintf.c: Include errno.h, limits.h.
15671         (EOVERFLOW): New fallback definition.
15672         (vasprintf): Test here whether the string length is > INT_MAX.
15673         * lib/vsnprintf.c: Include errno.h, limits.h.
15674         (EOVERFLOW): New fallback definition.
15675         (vsnprintf): Fix bug when generated string was too long for the buffer.
15676         Test here whether the string length is > INT_MAX.
15677
15678 2006-08-28  Bruno Haible  <bruno@clisp.org>
15679
15680         * lib/inttypes_.h (SCNX*): Remove definitions.
15681         Reported by Eric Blake.
15682
15683 2006-08-28  Bruno Haible  <bruno@clisp.org>
15684
15685         * lib/c-strstr.h: New file, from GNU gettext.
15686         * lib/c-strstr.c: New file, from GNU gettext.
15687
15688 2006-08-28  Bruno Haible  <bruno@clisp.org>
15689
15690         * gnulib-tool: Reorder some statements.
15691
15692 2006-08-28  Bruno Haible  <bruno@clisp.org>
15693
15694         * gnulib-tool: New option --makefile-name.
15695         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
15696         $makefile_name.
15697         (func_import): Write $makefile_name to the cache file, and read it from
15698         there unless explicitly specified. Use $makefile_name as file name
15699         instead of Makefile.am. Adjust the recommendations accordingly.
15700
15701 2006-08-28  Bruno Haible  <bruno@clisp.org>
15702
15703         * gnulib-tool (func_verify_module): Check against misapplying patch.
15704
15705 2006-08-28  Bruno Haible  <bruno@clisp.org>
15706
15707         * gnulib-tool (func_relativize, func_relconcat): New functions.
15708         Give an error if --local-dir is given with --update.
15709         Remove trailing slashes from $local_gnulib_dir.
15710         (func_import): Store the relativized $local_gnulib_dir in
15711         gnulib-cache.m4, and read it from there if not specified explicitly.
15712
15713 2006-08-28  Bruno Haible  <bruno@clisp.org>
15714
15715         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
15716         is the current directory. Respect also $local_gnulib_dir.
15717
15718 2006-08-28  Bruno Haible  <bruno@clisp.org>
15719             Simon Josefsson  <jas@extundo.com>
15720
15721         BeOS portability.
15722         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
15723
15724 2006-08-27  Jim Meyering  <jim@meyering.net>
15725
15726         * doc/visibility.texi: Remove duplicate word: "pointer".
15727
15728 2006-08-26  Bruno Haible  <bruno@clisp.org>
15729
15730         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
15731         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
15732         (Makefile.am): Create inttypes.h from inttypes_.h.
15733         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
15734
15735         * modules/imaxabs: New file.
15736
15737         * modules/imaxdiv: New file.
15738
15739 2006-08-26  Bruno Haible  <bruno@clisp.org>
15740
15741         * m4/inttypes.m4: New file.
15742         * m4/_inttypes_h.m4: Remove file.
15743         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
15744         PRI_MACROS_BROKEN.
15745         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
15746
15747         * m4/imaxabs.m4: New file.
15748
15749         * m4/imaxdiv.m4: New file.
15750
15751 2006-08-26  Bruno Haible  <bruno@clisp.org>
15752
15753         * lib/inttypes_.h: New file.
15754         * lib/inttypes.h: Remove file.
15755         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
15756
15757         * lib/imaxabs.c: New file.
15758
15759         * lib/imaxdiv.c: New file.
15760
15761 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         New config-h module, so that "make" output needn't be cluttered
15764         by -DHAVE_CONFIG_H.
15765         * MODULES.html.sh (Support for building libraries and executables):
15766         Add config-h.
15767         * modules/config-h: New file.
15768         * gnulib-tool (nl, sed_transform_lib_file): New vars.
15769         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
15770         the config-h module is used.
15771
15772         New configmake module, so that "make" output needn't be cluttered
15773         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
15774         * MODULES.html.sh (Support for building libraries and executables):
15775         Add configmake.
15776         * modules/configmake: New file.
15777
15778 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
15779
15780         * m4/config-h.m4: New file.
15781
15782 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15783
15784         * config/srclist.txt: Add elisp-comp.
15785
15786 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15787
15788         * MODULES.html.sh (Support for building libraries and executables):
15789         Add elisp-comp.
15790         * build-aux/elisp-comp: New file.
15791         * modules/elisp-comp: New file.
15792
15793 2006-08-24  Bruno Haible  <bruno@clisp.org>
15794
15795         * gnulib-tool (func_create_testdir): Use non-default values of
15796         sourcebase and m4base.
15797
15798 2006-08-24  Bruno Haible  <bruno@clisp.org>
15799
15800         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
15801         HTML structure.
15802
15803 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15804
15805         * modules/openat (Depends-on): Add lchown.
15806
15807 2006-08-23  Bruno Haible  <bruno@clisp.org>
15808
15809         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
15810         of gl_LOCK_EARLY instead of gl_LOCK.
15811
15812 2006-08-23  Bruno Haible  <bruno@clisp.org>
15813
15814         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
15815         on OSF/1 to no.
15816         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
15817
15818 2006-08-23  Bruno Haible  <bruno@clisp.org>
15819
15820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
15821         as unusable.
15822
15823         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
15824         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
15825         (gl_LOCK): New macro.
15826
15827 2006-08-22  Simon Josefsson  <jas@extundo.com>
15828
15829         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
15830         to md5 module.
15831
15832 2006-08-22  Simon Josefsson  <jas@extundo.com>
15833
15834         * MODULES.html.sh: Add "Support for maintaining and release
15835         projects".
15836
15837         * build-aux/gnupload: New file, from coreutils.
15838
15839 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
15840
15841         Avoid the need for AC_LIBSOURCES in m4 macros.
15842         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
15843         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
15844         * modules/check-version (EXTRA_DIST): Add check-version.h.
15845         * modules/crc (EXTRA_DIST): Add crc.h.
15846         * modules/des (EXTRA_DIST): Add des.h.
15847         * modules/gc (EXTRA_DIST): Add gc.h.
15848         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
15849         * modules/getline (EXTRA_DIST): Add getline.h.
15850         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
15851         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
15852         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
15853         * modules/md2 (EXTRA_DIST): Add md2.h.
15854         * modules/md4 (EXTRA_DIST): Add md4.h.
15855         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
15856         * modules/read-file (EXTRA_DIST): Add read-file.h.
15857         * modules/readline (EXTRA_DIST): Add readline.h.
15858         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
15859         rijndael-api-fst.h.
15860
15861 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
15862
15863         * m4/rijndael.m4 (gl_ARCFOUR):
15864         * m4/arctwo.m4 (gl_ARCTWO):
15865         * m4/check-version.m4 (gl_CHECK_VERSION):
15866         * m4/crc.m4 (gl_CRC):
15867         * m4/des.m4 (gl_DES):
15868         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
15869         * m4/gc.m4 (gl_GC):
15870         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
15871         * m4/getline.m4 (gl_FUNC_GETLINE):
15872         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
15873         * m4/hmac-md5.m4 (gl_HMAC_MD5):
15874         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
15875         * m4/md2.m4 (gl_MD2):
15876         * m4/md4.m4 (gl_MD4):
15877         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
15878         * m4/read-file.m4 (gl_FUNC_READ_FILE):
15879         * m4/readline.m4 (gl_FUNC_READLINE):
15880         * m4/rijndael.m4 (gl_RIJNDAEL):
15881         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
15882         to get the necessary .h files and whatnot.
15883
15884 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
15885
15886         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
15887         gnulib rather than the other way around.
15888         * config/srclistvars.sh (COREUTILS): Remove.
15889
15890 2006-08-22  Jim Meyering  <jim@meyering.net>
15891
15892         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
15893
15894         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
15895
15896 2006-08-22  Eric Blake  <ebb9@byu.net>
15897
15898         * modules/regexprops-generic: New file.
15899         * MODULES.html.sh (Support for building documentation): List it.
15900
15901 2006-08-22  Eric Blake  <ebb9@byu.net>
15902
15903         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
15904         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15905         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
15906         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15907
15908 2006-08-22  Bruno Haible  <bruno@clisp.org>
15909
15910         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
15911         and lib_LTLIBRARIES like the other lib_* variables.
15912
15913 2006-08-22  Bruno Haible  <bruno@clisp.org>
15914
15915         * build-aux/x-to-1.in: New file, from GNU gettext.
15916
15917 2006-08-22  Bruno Haible  <bruno@clisp.org>
15918
15919         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
15920         <utmpx.h> exists.
15921
15922 2006-08-22  Bruno Haible  <bruno@clisp.org>
15923
15924         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
15925         <utmpx.h> exists.
15926
15927 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
15928
15929         BeOS portability.
15930         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
15931         exist.
15932         Problem reported by Bruno Haible.
15933
15934 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
15935
15936         Avoid the need for AC_LIBSOURCES in m4 macros.
15937         * modules/acl (EXTRA_DIST): Add acl.h.
15938         * modules/argmatch (Files): Add m4/argmatch.m4.
15939         (configure.ac): Add gl_ARGMATCH.
15940         (EXTRA_DIST): Renamed from lib_SOURCES, for
15941         consistency with the other modules.  Remove argmatch.c.
15942         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
15943         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
15944         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
15945         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
15946         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
15947         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
15948         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
15949         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
15950         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
15951         * modules/closeout (EXTRA_DIST): Add closeout.h.
15952         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
15953         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
15954         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
15955         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
15956         dirname.h; remove basename.c and stripslash.c.
15957         * modules/exclude (EXTRA_DIST): Add exclude.h.
15958         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
15959         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
15960         * modules/file-type (EXTRA_DIST): Add file-type.h.
15961         * modules/filemode (EXTRA_DIST): Add filemode.h.
15962         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
15963         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
15964         * modules/fpending (EXTRA_DIST): Add __fpending.h.
15965         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
15966         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
15967         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
15968         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
15969         * modules/getdate (EXTRA_DIST): Add getdate.c.
15970         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
15971         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
15972         * modules/getpass (EXTRA_DIST): Add getpass.h.
15973         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
15974         * modules/group-member (EXTRA_DIST): Add group-member.h.
15975         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
15976         * modules/hash (EXTRA_DIST): Add hash.h.
15977         * modules/human (EXTRA_DIST): Add human.h.
15978         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
15979         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
15980         * modules/lchown (EXTRA_DIST): Add lchown.h.
15981         * modules/long-options (EXTRA_DIST): Add long-options.h.
15982         * modules/lstat (EXTRA_DIST): Add lstat.h.
15983         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
15984         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
15985         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
15986         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
15987         * modules/memxor (EXTRA_DIST): Add memxor.h.
15988         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
15989         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
15990         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
15991         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
15992         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
15993         * modules/physmem (EXTRA_DIST): Add physmem.h.
15994         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
15995         * modules/posixver (EXTRA_DIST): Add posixver.h.
15996         * modules/quote (EXTRA_DIST): Add quote.h.
15997         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
15998         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
15999         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
16000         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
16001         regex_internal.h regexec.c.
16002         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
16003         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
16004         * modules/same (EXTRA_DIST): Add same.h.
16005         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
16006         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
16007         * modules/savedir (EXTRA_DIST): Add savedir.h.
16008         * modules/sha1 (EXTRA_DIST): Add sha1.h.
16009         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
16010         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
16011         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
16012         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
16013         * modules/strdup (EXTRA_DIST): Add strdup.h.
16014         * modules/strftime (EXTRA_DIST): Add strftime.h.
16015         * modules/strndup (EXTRA_DIST): Add strndup.h.
16016         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
16017         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
16018         * modules/time_r (EXTRA_DIST): Add time_r.h.
16019         * modules/timespec (EXTRA_DIST): Add timespec.h.
16020         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
16021         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
16022         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
16023         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
16024         * modules/userspec (EXTRA_DIST): Add userspec.h.
16025         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
16026         * modules/utimens (EXTRA_DIST): Add utimens.h.
16027         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
16028         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
16029         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
16030         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
16031         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
16032         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
16033         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
16034         * modules/yesno (EXTRA_DIST): Add yesno.h.
16035
16036 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
16037
16038         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
16039
16040         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
16041         * m4/dev-ino.m4, same-inode.m4: Remove.
16042
16043         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
16044         * m4/acl.m4 (AC_FUNC_ACL):
16045         * m4/backupfile.m4 (gl_BACKUPFILE):
16046         * m4/c-strtod.m4 (gl_C99_STRTOLD):
16047         * m4/canon-host.m4 (gl_CANON_HOST):
16048         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
16049         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
16050         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
16051         * m4/cloexec.m4 (gl_CLOEXEC):
16052         * m4/close-stream.m4 (gl_CLOSE_STREAM):
16053         * m4/closeout.m4 (gl_CLOSEOUT):
16054         * m4/dirfd.m4 (gl_FUNC_DIRFD):
16055         * m4/dirname.m4 (gl_DIRNAME):
16056         * m4/exclude.m4 (gl_EXCLUDE):
16057         * m4/exitfail.m4 (gl_EXITFAIL):
16058         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
16059         * m4/file-type.m4 (gl_FILE_TYPE):
16060         * m4/filemode.m4 (gl_FILEMODE):
16061         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
16062         * m4/fpending.m4 (gl_FUNC_FPENDING):
16063         * m4/fprintftime.m4 (gl_FPRINTFTIME):
16064         * m4/fts.m4 (gl_FUNC_FTS):
16065         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
16066         * m4/getdate.m4 (gl_GETDATE):
16067         * m4/gethrxtime.m4 (gl_GETHRXTIME):
16068         * m4/getpagesize.m4 (gl_GETPAGESIZE):
16069         * m4/getpass.m4 (gl_FUNC_GETPASS):
16070         * m4/gettime.m4 (gl_GETTIME):
16071         * m4/getugroups.m4 (gl_GETUGROUPS):
16072         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
16073         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
16074         * m4/hard-locale.m4 (gl_HARD_LOCALE):
16075         * m4/hash.m4 (gl_HASH):
16076         * m4/idcache.m4 (gl_IDCACHE):
16077         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
16078         * m4/lchown.m4 (gl_FUNC_LCHOWN):
16079         * m4/long-options.m4 (gl_LONG_OPTIONS):
16080         * m4/lstat.m4 (gl_FUNC_LSTAT):
16081         * m4/md5.m4 (gl_MD5):
16082         * m4/memcasecmp.m4 (gl_MEMCASECMP):
16083         * m4/memcoll.m4 (gl_MEMCOLL):
16084         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
16085         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
16086         * m4/memxor.m4 (gl_MEMXOR):
16087         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
16088         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
16089         * m4/modechange.m4 (gl_MODECHANGE):
16090         * m4/mountlist.m4 (gl_MOUNTLIST):
16091         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16092         * m4/openat.m4 (gl_FUNC_OPENAT):
16093         * m4/pathmax.m4 (gl_PATHMAX):
16094         * m4/physmem.m4 (gl_PHYSMEM):
16095         * m4/posixtm.m4 (gl_POSIXTM):
16096         * m4/posixver.m4 (gl_POSIXVER):
16097         * m4/quote.m4 (gl_QUOTE):
16098         * m4/quotearg.m4 (gl_QUOTEARG):
16099         * m4/readtokens.m4 (gl_READTOKENS):
16100         * m4/readutmp.m4 (gl_READUTMP):
16101         * m4/regex.m4 (gl_REGEX):
16102         * m4/safe-read.m4 (gl_SAFE_READ):
16103         * m4/safe-write.m4 (gl_SAFE_WRITE):
16104         * m4/same.m4 (gl_SAME):
16105         * m4/save-cwd.m4 (gl_SAVE_CWD):
16106         * m4/savedir.m4 (gl_SAVEDIR):
16107         * m4/settime.m4 (gl_SETTIME):
16108         * m4/sha1.m4 (gl_SHA1):
16109         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
16110         * m4/stat-macros.m4 (gl_STAT_MACROS):
16111         * m4/stat-time.m4 (gl_STAT_TIME):
16112         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
16113         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
16114         * m4/strdup.m4 (gl_FUNC_STRDUP):
16115         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
16116         * m4/strndup.m4 (gl_FUNC_STRNDUP):
16117         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
16118         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
16119         * m4/time_r.m4 (gl_TIME_R):
16120         * m4/timespec.m4 (gl_TIMESPEC):
16121         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
16122         * m4/unlinkdir.m4 (gl_UNLINKDIR):
16123         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
16124         * m4/userspec.m4 (gl_USERSPEC):
16125         * m4/utimecmp.m4 (gl_UTIMECMP):
16126         * m4/utimens.m4 (gl_UTIMENS):
16127         * m4/xalloc.m4 (gl_XALLOC):
16128         * m4/xgetcwd.m4 (gl_XGETCWD):
16129         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
16130         * m4/xreadlink.m4 (gl_XREADLINK):
16131         * m4/xstrtod.m4 (gl_XSTRTOD):
16132         * m4/yesno.m4 (gl_YESNO):
16133         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
16134         to get the necessary .h files and whatnot.
16135
16136 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
16137             Bruno Haible  <bruno@clisp.org>
16138
16139         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
16140         /bin/sh understanding of '!' conditional negation.
16141
16142 2006-08-21  Jim Meyering  <jim@meyering.net>
16143
16144         * modules/openat (Depends-on): Really alphabetize.
16145
16146         * modules/acl (Depends-on): Add error and quote.
16147
16148         * check-module (find_included_lib_files): Add at-func.c to the
16149         ok-to-include-more-than-once white list.
16150
16151         * modules/openat (Depends-on): Add lstat.  Alphabetize.
16152
16153 2006-08-21  Bruno Haible  <bruno@clisp.org>
16154
16155         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16156         Emit a pkgdata_DATA variable only if some snippets add contents to it.
16157         Reported by Martin Lambers <marlam@marlam.de>.
16158
16159 2006-08-21  Bruno Haible  <bruno@clisp.org>
16160
16161         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
16162         specify an installation location, don't emit a noinst_LIBRARIES or
16163         noinst_LTLIBRARIES assignment.
16164
16165 2006-08-21  Bruno Haible  <bruno@clisp.org>
16166
16167         BeOS portability.
16168         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
16169         BeOS has mbrtowc() but no <wctype.h>.
16170
16171 2006-08-21  Bruno Haible  <bruno@clisp.org>
16172
16173         BeOS portability.
16174         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
16175         exist.
16176
16177 2006-08-21  Bruno Haible  <bruno@clisp.org>
16178
16179         BeOS portability.
16180         * lib/mbchar.h: Include <wctype.h> only if it exists.
16181
16182 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16183
16184         Remove files that are no longer needed by their respective modules.
16185         * m4/obstack.m4: Remove.
16186         * m4/strerror_r.m4: Remove.
16187         * m4/uint32_t.m4: Remove.
16188         * m4/uintptr_t.m4: Remove.
16189         * m4/ullong_max.m4: Remove.
16190         * m4/xstrtoimax.m4: Remove.
16191         * m4/xstrtoumax.m4: Remove.
16192
16193         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
16194         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
16195         dependencies now capture this.
16196
16197         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
16198         Do not use AC_LIBSOURCES, since gnulib modules now do this.
16199         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
16200         * m4/human.m4 (gl_HUMAN): Likewise.
16201         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
16202         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
16203
16204         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
16205
16206         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
16207         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
16208         stdint.
16209         * m4/human.m4 (gl_HUMAN): Likewise.
16210         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
16211         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
16212         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
16213         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
16214         * m4/xstrtol (gl_XSTRTOL): Likewise.
16215
16216         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
16217         AC_TYPE_LONG_LONG_INT.
16218         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
16219         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
16220         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
16221         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
16222
16223         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
16224         on stdbool.
16225
16226         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
16227         (gl_PREREQ_XSTRTOUL): Remove.
16228
16229         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
16230
16231         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
16232         mode.
16233
16234 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16235
16236         Add and change modules to make it easier for coreutils to use
16237         gnulib-tool.
16238         * modules/backupfile (Files): Remove m4/d-ino.m4.
16239         (Depends-on): Add d-ino.
16240         * modules/cycle-check (Depends-on): Add stdint.
16241         (lib_SOURCES): Add cycle-check.h.
16242         * modules/d-ino: New module.
16243         * modules/d-type: New module.
16244         * modules/error (Files): Remove m4/strerror_r.m4.
16245         * modules/filemode (Files): Add m4/st_dm_mode.m4.
16246         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
16247         m4/inttypes_h.m4, m4/uintmax_t.m4.
16248         (Depends-on): Add stdint.
16249         (lib_SOURCES): Add fsusage.h.
16250         * modules/getcwd (Files): Remove d-ino.m4.
16251         (Depends-on): Add d-ino.
16252         * modules/getndelim2 (Depends-on): Add stdint.
16253         * modules/glob (Files): Remove m4/d-type.m4.
16254         (Depends-on): Add d-type.
16255         * modules/host-os: New module.
16256         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
16257         m4/inttypes_h.m4, m4/uintmax_t.m4.
16258         * Depends-on: Add stdint.
16259         (lib_SOURCES): Add human.h.
16260         * modules/inttostr (Files): Remove m4/intmax_t.m4,
16261         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
16262         m4/uintmax_t.m4, m4/ulonglong.m4.
16263         (Depends-on): Add stdint.
16264         (EXTRA_DIST): Add inttostr.h.
16265         * modules/lchmod: New module.
16266         * modules/link-follow: New module.
16267         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
16268         (Depends-on): Add lchmod.
16269         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
16270         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
16271         (Depends-on): Add stdint.
16272         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
16273         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
16274         (Depends-on): Add stdint.
16275         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
16276         * modules/perl: New module.
16277         * modules/regex (Depends-on): Add stdint.
16278         * modules/rmdir-errno: New module.
16279         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
16280         m4/intmax_t.m4.
16281         (Depends-on): Add stdint.
16282         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
16283         m4/uintmax_t.m4.
16284         (Depends-on): Add stdint.
16285         * modules/unlink-busy: New module.
16286         * modules/utimecmp (Depends-on): Add stdint.
16287         * modules/uptime: New module.
16288         * modules/winsz-ioctl: New module.
16289         * modules/winsz-termios: New module.
16290         * modules/xnanosleep (Depends-on): Add nanosleep.
16291         * modules/ullong_max: Remove.
16292         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
16293         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
16294         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
16295         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
16296         (Depends-on): Add inttypes.
16297         (lib_SOURCES): Add xstrtol.h.
16298         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
16299         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
16300         * MODULES.html.sh: Move 'assert' into the assert section.
16301         Move 'dummy' into the linking section.
16302         Remove ullong_max.
16303         Add section for compatibility checks for POSIX:2001 functions,
16304         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
16305         winsz-ioctl, and winsz-termios into it.
16306         Add lchmod.
16307         Add top-level Misc section and put host-os, perl, and uptime
16308         into it.
16309
16310 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16311
16312         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
16313         now assume the stdint module.  Do not include inttypes.h.
16314         * lib/fsusage.h: Likewise.
16315         * lib/getndelim2.c: Likewise.
16316         * lib/human.h: Likewise.
16317         * lib/inttostr.h: Likewise.
16318         * lib/obstack.c: Likewise.
16319         * lib/regex_internal.h: Likewise.
16320         * lib/tempname.c: Likewise.
16321         * lib/utimecmp.c: Likewise.
16322         * lib/xstrtol.h: Likewise.
16323
16324         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
16325
16326         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
16327         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
16328         * lib/xtime.h: Likewise.
16329
16330 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16331
16332         * modules/openat (Files): Add lib/fchmodat.c.
16333         Fixes problem reported by Jay Youngman.
16334
16335 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16336
16337         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
16338         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
16339
16340 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16341             Bruno Haible  <bruno@clisp.org>
16342
16343         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
16344         and is a script that invokes bison. Tighten the code. Add comments.
16345
16346 2006-08-18  Jim Meyering  <jim@meyering.net>
16347
16348         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
16349         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
16350         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
16351         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
16352
16353 2006-08-18  Bruno Haible  <bruno@clisp.org>
16354
16355         * modules/bison-i18n: New file.
16356         * MODULES.html.sh (Internationalization functions): Add it.
16357
16358 2006-08-18  Bruno Haible  <bruno@clisp.org>
16359
16360         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
16361         sys/statvfs.h. When getmntinfo was found, check its declaration and
16362         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
16363
16364 2006-08-18  Bruno Haible  <bruno@clisp.org>
16365
16366         * m4/bison-i18n.m4: New file, from bison.
16367
16368 2006-08-18  Bruno Haible  <bruno@clisp.org>
16369
16370         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
16371         (ME_DUMMY): Treat "kernfs" as a dummy.
16372         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
16373
16374 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16375
16376         Update from coreutils.
16377
16378         2006-08-15  Jim Meyering  <jim@meyering.net>
16379
16380         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
16381
16382         2006-01-17  Jim Meyering  <jim@meyering.net>
16383
16384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
16385
16386         2006-01-11  Jim Meyering  <jim@meyering.net>
16387
16388         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
16389         Check for the lchmod function.
16390
16391 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16392
16393         Update from coreutils.
16394
16395         * lib/__fpending.h: Add copyright notice.
16396         * lib/fprintftime.h: Likewise.
16397         * lib/savedir.c: Use (C) in copyright notice.
16398         * lib/savedir.h: Likewise.
16399
16400         2006-08-15  Jim Meyering  <jim@meyering.net>
16401
16402         * lib/at-func.c: New file, with the logic of all emulated at-functions.
16403         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
16404         in support of the EXPECTED_ERRNO macro.
16405         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
16406         definitions.  Instead, define the appropriate symbols and include
16407         "at-func.c".
16408         * lib/mkdirat.c (mkdirat): Likewise.
16409         * lib/fchmodat.c (fchmodat): Likewise.
16410         (ENOSYS): Remove definition.
16411         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
16412         it.  Don't include "unistd--.h" -- it wasn't ever used.
16413
16414         2006-01-17  Jim Meyering  <jim@meyering.net>
16415
16416         Rewrite fts.c not to change the current working directory,
16417         by using openat, fstatat, fdopendir, etc..
16418
16419         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
16420         (HAVE_OPENAT_SUPPORT): Define.
16421         [_LIBC] (fchdir): Don't undef or define; no longer used.
16422         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
16423         Now, this `function' always succeeds, and consumes its file descriptor
16424         parameter -- so callers must not close such FDs.  Update callers.
16425         (diropen_fd, opendirat, cwd_advance_fd): New functions.
16426         (diropen): Add parameter, SP.  Adjust all callers.
16427         Implement using diropen_fd, rather than open.
16428         (fts_open): Initialize new member, fts_cwd_fd.
16429         Remove fts_rft-setting code.
16430         (fts_close): Close fts_cwd_fd, if necessary.
16431         (__opendir2): Define in terms of opendir or opendirat,
16432         depending on whether the FST_NOCHDIR flag is set.
16433         (fts_build): Since fts_safe_changedir consumes its FD, and since
16434         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
16435         and close the dup'd file descriptor upon failure.
16436         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
16437         (fts_safe_changedir): Tweak semantics to reflect that this function
16438         now calls cwd_advance_fd and hence consumes its FD argument.
16439         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
16440         [struct FTS] (fts_rft): Remove now-unused member.
16441         [struct FTS] (fts_cycle.state): Improve comment.
16442
16443         * lib/openat.c (openat_needs_fchdir): New function.
16444         * lib/openat.h (openat_needs_fchdir): Declare it.
16445
16446 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
16447
16448         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
16449         Problem and fix reported by Pádraig Brady in
16450         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
16451
16452 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16453
16454         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
16455
16456 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16457
16458         * lib/memcoll.c (memcoll): Optimize for the common case where the
16459         arguments are bytewise equal.
16460
16461 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16462
16463         * doc/regexprops-generic.texi: Add a copyright notice.
16464
16465 2006-08-15  Bruno Haible  <bruno@clisp.org>
16466
16467         * modules/tmpdir (License): Change to LGPL.
16468
16469 2006-08-15  Bruno Haible  <bruno@clisp.org>
16470
16471         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
16472         module.
16473
16474 2006-08-14  Simon Josefsson  <jas@extundo.com>
16475
16476         * config/srclist.txt: Add gnupload.
16477
16478 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16479
16480         Change copyright notice from LGPL 2 to GPL 2, since that's the
16481         standard form used in the gnulib repository.
16482         * tests/test-lock.c: Likewise.
16483         * tests/test-stdint.c: Likewise.
16484         * tests/test-tls.c: Likewise.
16485
16486         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
16487         prelude-manager.  User shorter URLs for GNU projects, without '?'.
16488         Add copyright notice.
16489
16490         * check-module: Add copyright notice.  Output a copyright
16491         notice if "--version" is specified.
16492         * modules/COPYING: New file.
16493         * tests/test-getaddrinfo.c: Add copyright notice.
16494         * tests/test-verify.c: Likewise.
16495
16496 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16497
16498         Change copyright notice from LGPL 2 to GPL 2, since that's the
16499         standard form used in the gnulib repository.
16500         * lib/lock.c: LGPL -> GPL.
16501         * lib/lock.h: Likewise.
16502         * lib/strnlen1.c: Likewise.
16503         * lib/strnlen1.h: Likewise.
16504         * lib/tls.c: Likewise.
16505         * lib/tls.h: Likewise.
16506         * lib/tmpdir.c: Likewise.
16507
16508         * lib/TODO: Remove; this belongs only in coreutils.
16509
16510 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16511
16512         Add copyright notices to long-enough files that lack them, since
16513         otherwise the files aren't clearly free.  Use the same notice that
16514         getdate.texi already uses.
16515         * doc/alloca-opt.texi: Add copyright notice.
16516         * doc/alloca.texi: Likewise.
16517         * doc/ctime.texi: Likewise.
16518         * doc/functions.texi: Likewise.
16519         * doc/gcd.texi: Likewise.
16520         * doc/gnulib-tool.texi: Likewise.
16521         * doc/inet_ntoa.texi: Likewise.
16522         * doc/visibility.texi: Likewise.
16523
16524         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
16525         * doc/quote.texi: Add copyright notice.
16526
16527         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
16528         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
16529         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
16530         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
16531         is now obsolete, and give a pointer to the Sun list.
16532         Add copyright notice.
16533
16534 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16535
16536         * config/srclistvars.sh: Add copyright notice.
16537
16538 2006-08-14  Eric Blake  <ebb9@byu.net>
16539
16540         Import the following change from libc:
16541
16542         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
16543
16544         Upstream bug 2997.
16545         * lib/misc/error.c: Add space between program name and message if file
16546         name is missing.
16547
16548 2006-08-12  Karl Berry  <karl@gnu.org>
16549
16550         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
16551         remove, these originate in gnulib now.
16552
16553 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16554
16555         * doc/Makefile (standards.info standards.html standards.dvi):
16556         Also depend on make-stds.texi.
16557
16558 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16559
16560         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
16561         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
16562
16563         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
16564         in wchar_t.  Problem reported by Eric Blake.
16565
16566         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
16567         LEN is smaller than SIZE.  Suggested by Bruno Haible.
16568         Also, help the compiler to keep LEN in a register.
16569
16570 2006-08-11  Eric Blake  <ebb9@byu.net>
16571
16572         * users.txt: Sort.  Add tar.
16573
16574 2006-08-11  Bruno Haible  <bruno@clisp.org>
16575
16576         * users.txt: New file.
16577
16578 2006-08-11  Bruno Haible  <bruno@clisp.org>
16579
16580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
16581         before <wchar.h>. Needed for OSF/1 and BSD/OS.
16582
16583 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16584
16585         * modules/snprintf (Depends-on): Remove minmax.
16586         (Maintainer): Add self and Bruno.
16587
16588 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16589
16590         * lib/.cppi-disable: Add snprintf.h, socket_.h.
16591         * lib/snprintf.c: Include <errno.h> and <limits.h>.
16592         (EOVERFLOW): Define if the system does not.
16593         Do not include "minmax.h"; it wasn't used.
16594         (snprintf): Don't assume size_t promotes to an unsigned type.
16595         Fix bug when generated string was too long for the buffer: the
16596         buffer's contents are supposed to be the initial prefix of the
16597         output.  Don't assume vasnprintf returns EOVERFLOW if the size
16598         exceeds INT_MAX; do the check ourselves.
16599
16600         Import the following changes from libc:
16601
16602         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
16603
16604         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
16605         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
16606         set wc to the byte which couldn't be converted.
16607         (re_string_reconstruct): Don't clear valid_raw_len before calling
16608         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
16609         tip_context using re_string_context_at.
16610
16611         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
16612
16613         * lib/posix/regex.h: g++ still cannot handled [restrict].
16614
16615         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
16616
16617         * lib/posix/regex.h: Remove special handling for VMS.
16618
16619 2006-08-10  Jim Meyering  <jim@meyering.net>
16620
16621         * modules/same-inode: New module.
16622         * modules/dev-ino: New module.
16623         * modules/cycle-check: Depend on these modules, rather than simply
16624         including their .h files.
16625         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
16626         required via m4/cycle-check.m4.
16627         * modules/same: Depend on new same-inode module, rather than
16628         including same-inode.h.
16629         * modules/chdir-safer: New file.
16630
16631         * modules/chown (Depends-on): Add stat-macros.
16632
16633 2006-08-10  Jim Meyering  <jim@meyering.net>
16634
16635         * m4/cycle-check.m4: New file.
16636         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
16637         * m4/dev-ino.m4, m4/same-inode.m4: New files.
16638
16639 2006-08-10  Eric Blake  <ebb9@byu.net>
16640
16641         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
16642         in from original proposal.
16643
16644 2006-08-10  Eric Blake  <ebb9@byu.net>
16645         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16646
16647         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
16648         namespace.
16649
16650 2006-08-10  Bruno Haible  <bruno@clisp.org>
16651
16652         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
16653         as well.
16654
16655 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16656
16657         Sync from coreutils.
16658
16659         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
16660
16661         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
16662         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
16663
16664 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16665
16666         * modules/restrict: Remove; no longer needed now that we assume
16667         Autoconf 2.59 or later.
16668         * MODULES.html.sh: Remove 'restrict'.
16669         * modules/argp (Depends-on): Remove 'restrict'.
16670         * modules/base64 (Depends-on): Likewise.
16671         * modules/gc (Depends-on): Likewise.
16672         * modules/getaddrinfo (Depends-on): Likewise.
16673         * modules/glob (Depends-on): Likewise.
16674         * modules/inet_ntop (Depends-on): Likewise.
16675         * modules/inet_pton (Depends-on): Likewise.
16676         * modules/memxor (Depends-on): Likewise.
16677         * modules/regex (Depends-on): Likewise.
16678         * modules/strtok_r (Depends-on): Likewise.
16679         * modules/time_r (Depends-on): Likewise.
16680
16681 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16682
16683         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
16684         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
16685         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
16686         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
16687         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16688         * m4/memxor.m4 (gl_MEMXOR): Likewise.
16689         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
16690         gl_C_RESTRICT replaced by AC_C_RESTRICT.
16691
16692         Merge from coreutils.
16693         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
16694         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
16695         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
16696         * m4/time_r.m4 (gl_TIME_R): Likewise.
16697
16698 2006-08-09  Karl Berry  <karl@gnu.org>
16699
16700         * config/srclist.txt: no more gettext-tools, per Bruno.
16701
16702 2006-08-08  Eric Blake  <ebb9@byu.net>
16703
16704         * modules/verror: New module.
16705         * MODULES.html.sh: Document it.
16706
16707 2006-08-08  Eric Blake  <ebb9@byu.net>
16708
16709         * lib/verror.h, lib/verror.c: New files.
16710
16711 2006-08-08  Eric Blake  <ebb9@byu.net>
16712
16713         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
16714         verror_at_line output complies with GNU Coding Standards even when
16715         file is NULL.
16716
16717 2006-08-07  Bruno Haible  <bruno@clisp.org>
16718
16719         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
16720         versions of AIX.
16721         Reported by Ralf Wildenhues.
16722
16723 2006-08-07  Bruno Haible  <bruno@clisp.org>
16724
16725         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
16726         in an AC_DEFUN. Needed so that the autoconf snippets can use
16727         AC_REQUIRE.
16728
16729 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16730
16731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16732         Initialize pkgdata_DATA.
16733         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
16734         overriding it.
16735
16736 2006-08-06  Eric Blake  <ebb9@byu.net>
16737
16738         * lib/error.h: Fold in some upstream changes from glibc.
16739         * lib/error.c: Likewise.
16740
16741 2006-08-04  Bruno Haible  <bruno@clisp.org>
16742
16743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16744         Make the mostlyclean-local rule depend on mostlyclean-generic.
16745         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
16746
16747 2006-07-31  Bruno Haible  <bruno@clisp.org>
16748
16749         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
16750         <stdlib.h>, <string.h>.
16751
16752 2006-07-30  Bruno Haible  <bruno@clisp.org>
16753
16754         * modules/readlink (License): Change to LGPL.
16755
16756 2006-07-30  Bruno Haible  <bruno@clisp.org>
16757
16758         * modules/javaversion (Makefile.am): Distribute javaversion.java and
16759         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
16760         set PKGDATADIR to point to it.
16761
16762 2006-07-30  Bruno Haible  <bruno@clisp.org>
16763
16764         * modules/csharpexec (configure.ac): Comment out macro invocation.
16765         * modules/javaexec (configure.ac): Likewise.
16766         * modules/javacomp-script (configure.ac): Likewise.
16767
16768         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
16769
16770 2006-07-30  Bruno Haible  <bruno@clisp.org>
16771
16772         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
16773         linked-list.
16774
16775 2006-07-30  Bruno Haible  <bruno@clisp.org>
16776
16777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
16778
16779 2006-07-30  Bruno Haible  <bruno@clisp.org>
16780
16781         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16782         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
16783         get removed.
16784
16785 2006-07-29  Bruno Haible  <bruno@clisp.org>
16786
16787         Make it possible for gnulib-tool to work with locally modified or
16788         augmented gnulib repositories.
16789         * gnulib-tool (func_usage): Document --local-dir option.
16790         (local_gnulib_dir): New variable.
16791         Handle --local-dir option.
16792         (func_lookup_file): New function.
16793         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
16794         (func_get_description, func_get_filelist, func_get_description,
16795         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
16796         func_get_automake_snippet, func_get_include_directive,
16797         func_get_license, func_get_maintainer): Use func_lookup_file.
16798         (func_import, func_create_testdir): Use func_lookup_file.
16799
16800 2006-07-29  Bruno Haible  <bruno@clisp.org>
16801
16802         * modules/setenv (Depends-on): Add unistd.
16803
16804 2006-07-29  Bruno Haible  <bruno@clisp.org>
16805
16806         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
16807
16808 2006-07-29  Bruno Haible  <bruno@clisp.org>
16809
16810         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
16811
16812 2006-07-29  Bruno Haible  <bruno@clisp.org>
16813
16814         * gnulib-tool (import, update): If there is no Makefile.am, look at
16815         aclocal.m4, instead of bailing out.
16816
16817 2006-07-29  Bruno Haible  <bruno@clisp.org>
16818
16819         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
16820         Categorize the options by when they are useful.
16821
16822 2006-07-29  Bruno Haible  <bruno@clisp.org>
16823
16824         * gnulib-tool (func_usage): Document option --no-libtool.
16825         Handle option --no-libtool.
16826         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
16827         for changed semantics of $libtool variable.
16828         (func_import): Likewise. If libtool is not used, show this through
16829         an option --no-libtool.
16830         (func_create_testdir): Update.
16831
16832 2006-07-29  Bruno Haible  <bruno@clisp.org>
16833
16834         * gnulib-tool (func_import): Extend error message about missing
16835         --doc-base.
16836
16837 2006-07-29  Bruno Haible  <bruno@clisp.org>
16838
16839         * gnulib-tool (func_import): Don't create the $docbase directory if
16840         there is no file to store there.
16841
16842 2006-07-29  Bruno Haible  <bruno@clisp.org>
16843
16844         * gnulib-tool (autoconf_minversion): If a --dir option is given and
16845         relevant, look for configure.ac there, not in the current directory.
16846         Also use a simple search for AC_PREREQ, not "autoconf --trace".
16847
16848 2006-07-29  Bruno Haible  <bruno@clisp.org>
16849
16850         * gnulib-tool (SORT): New variable.
16851         (func_usage): Undocument --assume-autoconf option.
16852         Remove --assume-autoconf option handling.
16853         (autoconf_minversion): Determine from the contents of configure.ac.
16854         (func_import): Remove autoconf_minversion handling.
16855         Suggested by Eric Blake.
16856
16857 2006-07-29  Bruno Haible  <bruno@clisp.org>
16858
16859         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
16860
16861 2006-07-29  Bruno Haible  <bruno@clisp.org>
16862
16863         * config/srclist.txt (*setenv.[ch]): Remove rules.
16864
16865 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16866
16867         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
16868
16869 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16870
16871         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
16872         arpa/inet.h.
16873
16874 2006-07-28  Simon Josefsson  <jas@extundo.com>
16875
16876         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
16877         * modules/inet_pton (Depends-on): Likewise.
16878
16879 2006-07-28  Simon Josefsson  <jas@extundo.com>
16880
16881         * m4/netinet_in_h.m4: New file.
16882
16883 2006-07-28  Simon Josefsson  <jas@extundo.com>
16884
16885         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
16886         #include's.
16887
16888 2006-07-28  Simon Josefsson  <jas@extundo.com>
16889
16890         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
16891         #include's.
16892
16893 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
16894
16895         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
16896         setgid on directories only if they set these bits.
16897         * lib/modechange.h: Remove obsolete comment about masks.
16898
16899 2006-07-28  Eric Blake  <ebb9@byu.net>
16900
16901         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
16902         macro expansion.
16903
16904 2006-07-28  Bruno Haible  <bruno@clisp.org>
16905
16906         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
16907
16908 2006-07-28  Bruno Haible  <bruno@clisp.org>
16909
16910         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
16911
16912 2006-07-28  Bruno Haible  <bruno@clisp.org>
16913
16914         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16915         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
16916         Define fallbacks.
16917         Avoids link error on FreeBSD 4.x.
16918         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16919
16920         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
16921         encoding.
16922         * lib/mbswidth.c (iswcntrl): Likewise.
16923
16924 2006-07-27  Bruno Haible  <bruno@clisp.org>
16925
16926         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
16927         test.
16928
16929 2006-07-27  Bruno Haible  <bruno@clisp.org>
16930
16931         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
16932         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
16933         defined.
16934
16935 2006-07-26  Eric Blake  <ebb9@byu.net>
16936
16937         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
16938
16939 2006-07-26  Eric Blake  <ebb9@byu.net>
16940
16941         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
16942         like mingw that lack mkstemp.
16943         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
16944         avoid compilation warning on mingw.
16945
16946 2006-07-26  Bruno Haible  <bruno@clisp.org>
16947
16948         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
16949         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
16950         INT_FAST*_MIN, INTPTR_MIN.
16951
16952 2006-07-25  Bruno Haible  <bruno@clisp.org>
16953
16954         * modules/version-etc (Depends-on): Add stdarg.
16955
16956 2006-07-25  Bruno Haible  <bruno@clisp.org>
16957
16958         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
16959         complex commands.
16960
16961 2006-07-25  Bruno Haible  <bruno@clisp.org>
16962
16963         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
16964         defined in <stdarg.h> or config.h.
16965
16966 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16967
16968         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
16969         (gl_STDIO_SAFER): Remove.
16970
16971 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16972
16973         * MODULES.html.sh (File stream based Input/Output):
16974         Add fopen-safer, tmpfile-safer; remove stdio-safer.
16975         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
16976         * modules/fopen-safer, modules/tmpfile-safer: New files.
16977         * modules/stdio-safer: Remove.
16978
16979 2006-07-24  Bruno Haible  <bruno@clisp.org>
16980
16981         * modules/tmpdir: New file.
16982         * MODULES.html.sh (File system functions): Add it.
16983
16984 2006-07-24  Bruno Haible  <bruno@clisp.org>
16985
16986         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
16987         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
16988
16989 2006-07-24  Bruno Haible  <bruno@clisp.org>
16990
16991         * modules/clean-temp: New file.
16992
16993 2006-07-24  Bruno Haible  <bruno@clisp.org>
16994
16995         * m4/tmpdir.m4: New file, from GNU gettext.
16996
16997 2006-07-24  Bruno Haible  <bruno@clisp.org>
16998
16999         * lib/tmpdir.h: New file, from GNU gettext.
17000         * lib/tmpdir.c: New file, from GNU gettext.
17001
17002 2006-07-24  Bruno Haible  <bruno@clisp.org>
17003
17004         * lib/clean-temp.h: New file, from GNU gettext.
17005         * lib/clean-temp.c: New file, from GNU gettext.
17006
17007 2006-07-23  Eric Blake  <ebb9@byu.net>
17008
17009         * modules/stdio-safer (Files): Add tmpfile-safer.c.
17010         (Depends-on): Add binary-io.
17011
17012 2006-07-23  Eric Blake  <ebb9@byu.net>
17013
17014         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
17015
17016 2006-07-23  Eric Blake  <ebb9@byu.net>
17017
17018         * lib/tmpfile-safer.c: New file.
17019         * lib/stdio-safer.h (fopen_safer): Add prototype.
17020         * lib/stdio--.h (tmpfile): Make safer.
17021
17022 2006-07-23  Bruno Haible  <bruno@clisp.org>
17023
17024         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
17025         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
17026         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
17027         gl_linked_remove_at): Use it.
17028
17029 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17030         and Simon Josefsson <jas@extundo.com>
17031
17032         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
17033
17034         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
17035
17036 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17037
17038         * modules/close-stream: New file.
17039         * modules/closeout (Description): Make it clear that it exits
17040         with a diagnostic on error.
17041         (Depends-on): Add close-stream.  Remove fpending, stdbool.
17042         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
17043
17044 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17045
17046         * m4/close-stream.m4: New file.
17047
17048 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17049
17050         * lib/close-stream.c, lib/close-stream.h: New files.
17051
17052 2006-07-22  Bruno Haible  <bruno@clisp.org>
17053
17054         Merge from GNU gettext 0.15.
17055
17056         2006-05-01  Bruno Haible  <bruno@clisp.org>
17057
17058                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
17059
17060         2006-07-22  Bruno Haible  <bruno@clisp.org>
17061
17062                 * modules/javaversion: New file.
17063                 * MODULES.html.sh (Java): Add javaversion.
17064
17065         2006-03-12  Bruno Haible  <bruno@clisp.org>
17066
17067                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
17068
17069         2005-12-04  Bruno Haible  <bruno@clisp.org>
17070
17071                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
17072                 (untested).
17073
17074         2006-06-21  Bruno Haible  <bruno@clisp.org>
17075
17076                 Avoid warnings from recent versions of mcs.
17077                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
17078                 -o, -L, -r any more. Use options documented since mcs-1.0
17079                 instead. Similarly for -g.
17080
17081         2005-12-04  Bruno Haible  <bruno@clisp.org>
17082
17083                 * build-aux/csharpcomp.sh.in: Suffix for resources is
17084                 .resources, not .resource.
17085
17086         2005-07-09  Bruno Haible  <bruno@clisp.org>
17087
17088                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
17089                 add a .dll suffix.
17090                 Reported by Mark Junker <mjscod@gmx.de>.
17091
17092         2006-07-22  Bruno Haible  <bruno@clisp.org>
17093
17094                 * modules/gettext: Upgrade to gettext-0.15.
17095                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
17096                 m4/visibility.m4.
17097                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
17098
17099 2006-07-22  Bruno Haible  <bruno@clisp.org>
17100
17101         Merge from GNU gettext 0.15.
17102
17103         2006-03-25  Bruno Haible  <bruno@clisp.org>
17104
17105                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
17106
17107         2006-07-21  Bruno Haible  <bruno@clisp.org>
17108
17109                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
17110                 "1.1".
17111
17112         2006-05-09  Bruno Haible  <bruno@clisp.org>
17113
17114                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
17115                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
17116                 for the conftestver execution.
17117
17118         2006-05-01  Bruno Haible  <bruno@clisp.org>
17119
17120                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
17121                 optional target-version argument. Verify that the compiler
17122                 groks source of the specified source-version, or add -source
17123                 option as necessary. Verify that the compiler produces
17124                 bytecode in the specified target-version, or add -target and
17125                 -source options as necessary. Make the result of the test
17126                 available as variable CONF_JAVAC. Also log error output in
17127                 config.log.
17128
17129         2006-03-11  Bruno Haible  <bruno@clisp.org>
17130
17131                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
17132
17133         2006-05-09  Bruno Haible  <bruno@clisp.org>
17134
17135                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
17136                 CLASSPATH_SEPARATOR to a semicolon.
17137
17138         2006-03-12  Bruno Haible  <bruno@clisp.org>
17139
17140                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
17141                 available as variable CONF_JAVA, for subsequent autoconf
17142                 tests. Also log error output in config.log.
17143
17144         2006-07-19  Bruno Haible  <bruno@clisp.org>
17145
17146                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
17147                 that getline works on glibc2 systems. Needed to avoid trouble
17148                 in relocatable.c.
17149                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
17150
17151         2005-12-04  Bruno Haible  <bruno@clisp.org>
17152
17153                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
17154                 launcher (untested).
17155
17156         2005-12-04  Bruno Haible  <bruno@clisp.org>
17157
17158                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
17159
17160         2006-07-22  Bruno Haible  <bruno@clisp.org>
17161
17162                 * gettext.m4: Update from GNU gettext-0.15.
17163                 * nls.m4: Likewise.
17164                 * po.m4: Likewise.
17165                 * inttypes-pri.m4: Likewise.
17166                 * inttypes-h.m4: Renamed from inttypes.m4.
17167                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
17168
17169 2006-07-22  Bruno Haible  <bruno@clisp.org>
17170
17171         Merge from GNU gettext 0.15.
17172
17173         2005-07-05  Bruno Haible  <bruno@clisp.org>
17174
17175                 * printf-args.c (printf_fetchargs): Work around broken
17176                 definition of wint_t on mingw.
17177
17178         2005-02-12  Bruno Haible  <bruno@clisp.org>
17179
17180                 * xallocsa.h: Add extern "C" for C++.
17181
17182         2006-05-17  Bruno Haible  <bruno@clisp.org>
17183
17184                 Cygwin portability.
17185                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
17186
17187         2006-04-30  Bruno Haible  <bruno@clisp.org>
17188
17189                 * progreloc.c: Include <mach-o/dyld.h> if available.
17190                 (find_executable): Use _NSGetExecutablePath when possible.
17191
17192         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17193
17194                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
17195                 function.
17196
17197         2005-12-29  Bruno Haible  <bruno@clisp.org>
17198
17199                 * progreloc.c (set_program_name_and_installdir): Fix
17200                 compilation error.
17201
17202         2005-12-04  Bruno Haible  <bruno@clisp.org>
17203
17204                 Cygwin portability.
17205                 * progreloc.c: Include <windows.h> also on Cygwin.
17206                 (find_executable): Add support for Cygwin.
17207                 (set_program_name_and_installdir): Handle also platforms with
17208                 nonempty EXEEXT.
17209
17210         2006-07-11  Bruno Haible  <bruno@clisp.org>
17211
17212                 * javacomp.c: Fix a comment.
17213                 Reported by Jim Meyering.
17214
17215         2006-04-30  Bruno Haible  <bruno@clisp.org>
17216
17217                 * javacomp.h (compile_java_class): Add source_version,
17218                 target_version arguments.
17219                 * javacomp.c: Rewritten to choose only a compiler that
17220                 respects the specified source_version and target_version.
17221
17222         2006-06-27  Bruno Haible  <bruno@clisp.org>
17223
17224                 Assume correct S_ISDIR macro.
17225                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
17226
17227         2006-07-22  Bruno Haible  <bruno@clisp.org>
17228
17229                 * javaversion.h: New file, from GNU gettext.
17230                 * javaversion.c: New file, from GNU gettext.
17231                 * javaversion.java: New file, from GNU gettext.
17232                 * javaversion.class: New file, from GNU gettext.
17233
17234         2006-05-17  Bruno Haible  <bruno@clisp.org>
17235
17236                 Cygwin portability.
17237                 * javaexec.c (execute_java_class): Test for jview program
17238                 also on Cygwin.
17239
17240         2006-04-09  Bruno Haible  <bruno@clisp.org>
17241
17242                 * fatal-signal.c: Don't include string.h.
17243                 (at_fatal_signal): Use a copying loop instead of memcpy.
17244
17245         2005-12-04  Bruno Haible  <bruno@clisp.org>
17246
17247                 * csharpexec.c: Add support for 'clix' launcher (untested).
17248                 (execute_csharp_using_sscli): New function.
17249                 (execute_csharp_program): Call it.
17250
17251         2006-06-21  Bruno Haible  <bruno@clisp.org>
17252
17253                 Avoid warnings from recent versions of mcs.
17254                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
17255                 -o, -L, -r any more. Use options documented since mcs-1.0
17256                 instead. Similarly for -g.
17257
17258         2005-07-09  Bruno Haible  <bruno@clisp.org>
17259
17260                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
17261                 add a .dll suffix.
17262                 Reported by Mark Junker <mjscod@gmx.de>.
17263
17264         2006-06-17  Bruno Haible  <bruno@clisp.org>
17265
17266                 * config.charset: Update for NetBSD 3.0.
17267
17268         2006-05-17  Bruno Haible  <bruno@clisp.org>
17269
17270                 Cygwin portability.
17271                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
17272
17273         2006-05-16  Bruno Haible  <bruno@clisp.org>
17274
17275                 * localcharset.c [CYGWIN]: Include <windows.h>.
17276                 (get_charset_aliases): For Cygwin, return the same CPxxx
17277                 aliases list as under WIN32.
17278                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
17279                 the environment variables. Fall back to GetACP().
17280
17281         2006-04-05  Bruno Haible  <bruno@clisp.org>
17282
17283                 * config.charset: Update Juan Manuel Guerrero's address.
17284
17285         2005-02-12  Bruno Haible  <bruno@clisp.org>
17286
17287                 * allocsa.h: Add extern "C" for C++.
17288
17289         2005-02-10  Bruno Haible  <bruno@clisp.org>
17290
17291                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
17292                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
17293
17294         2006-07-22  Bruno Haible  <bruno@clisp.org>
17295
17296                 * gettext.h: Update to GNU gettext-0.15.
17297
17298 2006-07-22  Bruno Haible  <bruno@clisp.org>
17299
17300         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
17301         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
17302         lib-prefix.m4, longdouble.m4, ssize_t.m4.
17303
17304 2006-07-21  Eric Blake  <ebb9@byu.net>
17305
17306         * modules/stdlib-safer: New file.
17307         * MODULES.html.sh (File stream based Input/Output): Add
17308         stdlib-safer.
17309
17310 2006-07-21  Eric Blake  <ebb9@byu.net>
17311
17312         * lib/stdlib-safer.h: New file from coreutils, required by
17313         stdlib--.h.
17314
17315 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
17316
17317         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
17318
17319 2006-07-20  Bruno Haible  <bruno@clisp.org>
17320
17321         * gnulib-tool: Recognize new option --assume-autoconf.
17322         (autoconf_minversion): New variable.
17323         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
17324
17325 2006-07-20  Bruno Haible  <bruno@clisp.org>
17326
17327         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
17328
17329 2006-07-19  Derek R. Price  <derek@ximbiot.com>
17330
17331         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
17332         Reindent and repaginate.
17333
17334 2006-07-19  Derek Price  <derek@ximbiot.com>
17335
17336         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
17337         Correct grammar.
17338
17339 2006-07-17  Bruno Haible  <bruno@clisp.org>
17340
17341         * modules/list: New file.
17342         * modules/array-list: New file.
17343         * modules/carray-list, modules/carray-list-tests: New files.
17344         * modules/linked-list, modules/linked-list-tests: New files.
17345         * modules/avltree-list, modules/avltree-list-tests: New files.
17346         * modules/rbtree-list, modules/rbtree-list-tests: New files.
17347         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
17348         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
17349         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
17350         * modules/oset: New file.
17351         * modules/array-oset: New file.
17352         * modules/avltree-oset, modules/avltree-oset-tests: New files.
17353         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
17354         * tests/test-carray_list.c: New file.
17355         * tests/test-linked_list.c: New file.
17356         * tests/test-avltree_list.c: New file.
17357         * tests/test-rbtree_list.c: New file.
17358         * tests/test-linkedhash_list.c: New file.
17359         * tests/test-avltreehash_list.c: New file.
17360         * tests/test-rbtreehash_list.c: New file.
17361         * tests/test-avltree_oset.c: New file.
17362         * tests/test-rbtree_oset.c: New file.
17363         * MODULES.html.sh (Container data structures): New section.
17364
17365 2006-07-17  Bruno Haible  <bruno@clisp.org>
17366
17367         * m4/gl_list.m4: New file.
17368
17369 2006-07-17  Bruno Haible  <bruno@clisp.org>
17370
17371         * lib/gl_list.h: New file.
17372         * lib/gl_list.c: New file.
17373         * lib/gl_array_list.h: New file.
17374         * lib/gl_array_list.c: New file.
17375         * lib/gl_carray_list.h: New file.
17376         * lib/gl_carray_list.c: New file.
17377         * lib/gl_linked_list.h: New file.
17378         * lib/gl_linked_list.c: New file.
17379         * lib/gl_anylinked_list1.h: New file.
17380         * lib/gl_anylinked_list2.h: New file.
17381         * lib/gl_avltree_list.h: New file.
17382         * lib/gl_avltree_list.c: New file.
17383         * lib/gl_anyavltree_list1.h: New file.
17384         * lib/gl_anyavltree_list2.h: New file.
17385         * lib/gl_rbtree_list.h: New file.
17386         * lib/gl_rbtree_list.c: New file.
17387         * lib/gl_anyrbtree_list1.h: New file.
17388         * lib/gl_anyrbtree_list2.h: New file.
17389         * lib/gl_anytree_list1.h: New file.
17390         * lib/gl_anytree_list2.h: New file.
17391         * lib/gl_linkedhash_list.h: New file.
17392         * lib/gl_linkedhash_list.c: New file.
17393         * lib/gl_anyhash_list1.h: New file.
17394         * lib/gl_anyhash_list2.h: New file.
17395         * lib/gl_avltreehash_list.h: New file.
17396         * lib/gl_avltreehash_list.c: New file.
17397         * lib/gl_rbtreehash_list.h: New file.
17398         * lib/gl_rbtreehash_list.c: New file.
17399         * lib/gl_anytreehash_list1.h: New file.
17400         * lib/gl_anytreehash_list2.h: New file.
17401
17402         * lib/gl_oset.h: New file.
17403         * lib/gl_oset.c: New file.
17404         * lib/gl_array_oset.h: New file.
17405         * lib/gl_array_oset.c: New file.
17406         * lib/gl_avltree_oset.h: New file.
17407         * lib/gl_avltree_oset.c: New file.
17408         * lib/gl_rbtree_oset.h: New file.
17409         * lib/gl_rbtree_oset.c: New file.
17410         * lib/gl_anytree_oset.h: New file.
17411
17412 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
17413
17414         * m4/mkancesdirs.m4: New file.
17415         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
17416         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
17417         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
17418         it.
17419
17420 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
17421
17422         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
17423         * lib/mkancesdirs.h: New files.
17424         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
17425         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
17426         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
17427         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
17428         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
17429         callers changed.  Revamp internals significantly, by not
17430         attempting to create directories that are temporarily more
17431         permissive than the final results.  Do not attempt to use
17432         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
17433         This removes some race conditions, fixes some bugs, and simplifies
17434         things.  Use new dirchownmod function to do owner and mode changes.
17435         * lib/mkdir-p.h: Likewise.
17436         * lib/modechange.c (octal_to_mode): New function.
17437         (struct mode_change): New member mentioned.
17438         (make_node_op_equals): New arg mentioned.  All callers changed.
17439         (mode_compile): Keep track of which mode bits the user has explicitly
17440         mentioned.
17441         (mode_adjust): New arg DIR, so that we implement the X op correctly.
17442         New arg PMODE_BITS, to keep track of which mode bits the user
17443         mentioned; it treats S_ISUID and S_ISGID speciall.
17444         All callers changed.
17445         * lib/modechange.h: Likewise.
17446
17447 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
17448
17449         * MODULES.html.sh: Add mkancestors.
17450         * modules/mkancesdirs: New module.
17451         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
17452         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
17453         The chdir-safer and afs files are now orphans; I'll remove them
17454         unless someone speaks up.
17455         Add lib/dirchownmod.c, lib/dirchownmod.h.
17456         (Depends-on): Remove alloca, chown, save-cwd, dirname.
17457         Add lchown, mkancesdirs.
17458         (Maintainer): Add self.
17459
17460 2006-07-15  Karl Berry  <karl@gnu.org>
17461
17462         * gnulib-tool: help message wording/arrangement.
17463
17464 2006-07-14  Simon Josefsson  <jas@extundo.com>
17465
17466         * doc/gnulib.texi (Libtool and Windows): New section.
17467
17468 2006-07-12  Simon Josefsson  <jas@extundo.com>
17469
17470         * modules/gendocs (License): Fix license, approved by Karl.
17471
17472 2006-07-12  Eric Blake  <ebb9@byu.net>
17473
17474         * MODULES.html.sh: Add gendocs.
17475
17476 2006-07-11  Eric Blake  <ebb9@byu.net>
17477
17478         * modules/fdl: New module, to install doc/fdl.texi.
17479         * MODULES.html.sh: Add new section for documentation modules.
17480         * gnulib-tool: Avoid space-tab.
17481         (--doc-base): New option, to manage files from doc.
17482
17483 2006-07-11  Eric Blake  <ebb9@byu.net>
17484
17485         * m4/absolute-header.m4: Fix comments to match recent change.
17486
17487 2006-07-11  Eric Blake  <ebb9@byu.net>
17488
17489         * gnulib-tool: List --doc-base before --tests-base.
17490
17491 2006-07-11  Derek R. Price  <derek@ximbiot.com>
17492
17493         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
17494
17495 2006-07-11  Bruno Haible  <bruno@clisp.org>
17496
17497         * README: Mention where to put documentation.
17498
17499 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17500
17501         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
17502
17503 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
17504
17505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
17506         to stdint.m4.
17507
17508 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
17509
17510         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
17511         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
17512         "no/such/file/stdint.h" when there is no such file, so that
17513         the resulting C code can be parsed by dodgy compilers.
17514         Problems reported by Bob Proulx.
17515
17516 2006-07-10  Derek R. Price  <derek@ximbiot.com>
17517
17518         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
17519         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
17520         macros into the GNU _D_EXACT_NAMLEN.
17521         * lib/savedir.c:  Likewise.
17522         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
17523
17524 2006-07-10  Derek R. Price  <derek@ximbiot.com>
17525         and Paul Eggert  <eggert@cs.ucla.edu>
17526
17527         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
17528         * m4/savedir.m4:
17529         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
17530         macros into the GNU _D_EXACT_NAMLEN.
17531
17532 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17533
17534         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
17535         around the absolute name, to work around a problem with the HP-UX
17536         11.23 native C compiler, reported by Bob Proulx.
17537
17538 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17539
17540         * doc/maintain.texi, make-stds.texi: Sync from
17541         <http://savannah.gnu.org/projects/gnustandards>.
17542
17543 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17544
17545         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
17546
17547 2006-07-09  Jim Meyering  <jim@meyering.net>
17548
17549         * m4/glob.m4: Remove a doubled word in a comment.
17550
17551 2006-07-09  Jim Meyering  <jim@meyering.net>
17552
17553         * lib/argp-pv.c: Remove a doubled word in a comment.
17554         * lib/check-version.c (check_version): Likewise.
17555         * lib/javacomp.c (compile_java_class): Likewise.
17556
17557 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17558
17559         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
17560         for the benefit of people using Autoconf 2.60.  If you want to
17561         support older Autoconf versions you can copy m4/onceonly_2_57.m4
17562         (or m4/onceonly.m4, if pre-2.57) manually.
17563
17564 2006-07-08  Jim Meyering  <jim@meyering.net>
17565
17566         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
17567         comment.
17568         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
17569         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
17570         comment.
17571
17572 2006-07-08  Jim Meyering  <jim@meyering.net>
17573
17574         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
17575
17576 2006-07-07  Simon Josefsson  <jas@extundo.com>
17577
17578         * tests/test-crc.c: Change expected crc value, the test vector
17579         were probably computed using the old broken crc.c?
17580
17581 2006-07-06  Simon Josefsson  <jas@extundo.com>
17582
17583         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
17584         now the canonical place for the M4 file).
17585
17586         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
17587         from the sys_socket dependency now.
17588
17589         * modules/inet_pton (Files): Ditto.
17590
17591         * modules/inet_ntop (Files): Ditto.
17592
17593 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
17594
17595         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
17596         not gl_PREREQ_GETUSERSHELL.
17597
17598 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17599
17600         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
17601         with only one argument, for Autoconf 2.60.
17602         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
17603         expand to nothing, so add a shell command to avoid syntax error.
17604         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
17605
17606 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17607
17608         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
17609
17610 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17611
17612         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
17613         no longer needed.  Check for isblank decl.
17614         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
17615         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
17616         of existence.
17617
17618 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17619
17620         * lib/getloadavg.c: Use __VMS, not VMS.
17621         * lib/getopt.c: Likewise.
17622         * lib/getpagesize.h: Likewise.
17623         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
17624         and probably does not work.
17625
17626 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17627
17628         * lib/.cppi-disable: Add wcwidth.
17629         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
17630         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
17631         (ISGRAPH): Remove.  All uses changed to isgraph.
17632         (FOLD) [!defined _LIBC]: Remove special case.
17633         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
17634         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
17635         HAVE_ISBLANK.
17636         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
17637         case.
17638
17639 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
17640
17641         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
17642         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
17643         brackets.  Other minor changes to suppress some compiler
17644         warnings.
17645
17646 2006-07-06  Derek R. Price  <derek@ximbiot.com>
17647         and Paul Eggert  <eggert@cs.ucla.edu>
17648
17649         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
17650         of invoking obsolescent AC_HEADER_DIRENT macro.
17651         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17652         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
17653         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17654         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17655         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
17656         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17657         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
17658         * m4/readdir.m4: Remove; no longer needed.
17659
17660 2006-07-06  Derek R. Price  <derek@ximbiot.com>
17661         and Paul Eggert  <eggert@cs.ucla.edu>
17662
17663         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
17664         Don't worry about this obsolete case any more.
17665         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
17666         directories.
17667         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
17668         worry about this obsolete case any more.
17669         * lib/fts.c: Likewise.
17670         * lib/getcwd.c: Likewise.
17671         * lib/glob.h: Likewise.
17672         * lib/savedir.c: Likewise.
17673
17674 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17675
17676         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
17677         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
17678         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
17679         needed.
17680         All uses removed.
17681         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
17682         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
17683         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
17684         needed.
17685         * m4/getdate.m4 (gl_GETDATE): Likewise.
17686         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
17687         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
17688         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17689         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
17690         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
17691         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17692         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
17693         needed.
17694
17695 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17696
17697         * lib/memcasecmp.c: Include <limits.h>.
17698         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
17699         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
17700         Don't assume isdigit succeeds only on '0' through '9'.
17701
17702 2006-07-05  Eric Blake  <ebb9@byu.net>
17703
17704         * modules/getaddrinfo (Depends-on): Add snprintf.
17705
17706 2006-07-05  Eric Blake  <ebb9@byu.net>
17707
17708         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
17709         to avoid 'header present but could not be compiled' on cygwin.
17710
17711 2006-07-05  Eric Blake  <ebb9@byu.net>
17712
17713         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
17714         missing from netdb.h.
17715         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
17716
17717 2006-07-05  Derek R. Price  <derek@ximbiot.com>
17718
17719         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
17720         no longer needed.
17721         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
17722         * m4/getdate.m4 (gl_GETDATE): Likewise.
17723         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
17724         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
17725         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17726         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
17727         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17728
17729 2006-07-05  Derek R. Price  <derek@ximbiot.com>
17730
17731         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
17732         All uses of is_space replaced by isspace.
17733         * lib/exit.h: Don't talk about STDC_HEADERS.
17734         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
17735         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
17736         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
17737         replaced by isprint etc.
17738         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
17739         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
17740         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
17741         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
17742         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
17743         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
17744
17745 2006-07-05  Bruno Haible  <bruno@clisp.org>
17746
17747         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
17748         the function exists, before testing against AIX.
17749         Reported by Martin Lambers <marlam@marlam.de>.
17750
17751 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17752
17753         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
17754         From Mark D. Baushke.
17755
17756 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17757
17758         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
17759         to the absolute name, not just one, to bypass Sun C 5.8's
17760         "warning: #include of /usr/include/... may be non-portable".
17761
17762 2006-07-04  Eric Blake  <ebb9@byu.net>
17763
17764         * modules/dirname-tests: New test module.
17765         * tests/test-dirname.c: New file, replacing dirname.c
17766         TEST_DIRNAME section that was recently deleted.
17767
17768 2006-07-04  Bruno Haible  <bruno@clisp.org>
17769
17770         Assume ANSI C header files and <ctype.h> functions.
17771         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
17772         (mbsnwidth): Use isprint, iscntrl instead.
17773
17774 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17775
17776         Merge from coreutils.
17777         * MODULES.html.sh: Add xstrtold.
17778         * modules/xstrtold: New file.
17779         * modules/cycle-check (Files): Add lib/same-inode.h.
17780         * modules/dirname (Files): Add m4/double-slash-root.m4.
17781         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
17782         * modules/mkdir-p (Files): Add lib/same-inode.h.
17783         * modules/same (Files): Add lib/same-inode.h.
17784
17785 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17786
17787         * m4/absolute-header.m4: Renamed from full-header-path.m4.
17788         This is to keep the terminology clean; POSIX talks about
17789         "absolute pathnames", not "full pathnames", but the GNU
17790         Coding Standards say to use "path" for something else;
17791         so use "absolute" to keep both sides happy.
17792         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
17793         Set gl_absolute_header, not gl_full_header_path.
17794         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
17795         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
17796         All uses changed.
17797
17798         Merge from coreutils.
17799
17800         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17801
17802         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
17803         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
17804         want to require the building of c-strtod.o.
17805         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
17806         needs -lm directly.
17807         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
17808
17809         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
17810
17811         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
17812         --as-needed option if available.  Problem reported by Albert Chin in
17813         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
17814         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
17815         cc merely issues a bunch of annoying warnings for --as-needed
17816         (this problem was reported by Bob Proulx).  Also, try linking with
17817         -lm to detect a bug in binutils 2.16 (this problem was reported
17818         by Ralf Wildenhues).
17819
17820         2006-06-18  Jim Meyering  <jim@meyering.net>
17821
17822         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
17823         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
17824         macro.
17825         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
17826         also check for glibc-2.4's abort-inducing bug.
17827
17828         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
17829         Low-probability clean-up should be to use rmdir to get rid of
17830         the just-created directory, not unlink.
17831
17832         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
17833         configure fail, and request a bug report to inform us about it.
17834         Add a comment that, barring reports to the contrary, in 2007 we'll
17835         assume ftruncate is universally available.
17836
17837         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17838
17839         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
17840
17841         2006-03-12  Jim Meyering  <jim@meyering.net>
17842
17843         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
17844         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
17845         * m4/same.m4 (gl_SAME): Likewise.
17846         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
17847
17848         2006-03-11  Eric Blake  <ebb9@byu.net>
17849
17850         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
17851         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
17852         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
17853         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
17854
17855 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17856
17857         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
17858         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
17859         reported by Mark D. Baushke, one in
17860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
17861
17862         Merge from coreutils.
17863
17864         * lib/.cppi-disable: Add stdint_.h.
17865         * lib/.cvsignore: Add stdint.h.
17866
17867         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17868
17869         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
17870         both double and long double versions.
17871         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
17872         * lib/xstrtold.c: New file.
17873         * lib/xstrtod.h (xstrtold): New decl.
17874
17875         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17876
17877         * lib/filemode.c (setst): Remove.
17878         (strmode): Rewrite to avoid setst.  This makes the code shorter,
17879         (arguably) clearer, and the generated code is a bit smaller on my
17880         Debian GNU/Linux stable x86 host.
17881
17882         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17883
17884         * lib/filemode.c: Include "filemode.h" first, to test the interface.
17885         Assume that filemode.h includes sys/types.h and sys/stat.h.
17886         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
17887         (ftypelet): Reorder to put common cases first, for efficiency.
17888         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
17889         to do 'M'.
17890         (strmode): Renamed from mode_string, and now stores 12 bytes instead
17891         of 10, for compatibility with FreeBSD.  All callers changed.
17892         (filemodestring): Now stores 12 bytes instead of 10, and sets file
17893         types that can't be deduced solely from st_mode.  First arg is now a
17894         const pointer.
17895         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
17896         (strmode): Renamed from mode_string.
17897         (filemodestring): New decl.
17898         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
17899         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
17900         needed.
17901         (S_ISPORT, S_ISWHT): New macros, if not already defined.
17902
17903         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17904
17905         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
17906         fsusage.h now does that.  Include fsusage.h first, to test interface.
17907         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
17908         at most one method (the old code could have generated decls that
17909         didn't conform to C89, not that this was ever exercised).
17910         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
17911
17912         2006-03-19  Jim Meyering  <jim@meyering.net>
17913
17914         Work even in a chroot where d_ino values for entries in "/"
17915         don't match the stat.st_ino values for the same names.
17916         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
17917         number, iterate through all entries again, using lstat instead.
17918         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
17919         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
17920
17921         * lib/getcwd.c (__getcwd): Clarify a comment.
17922         Use memcpy in place of a call to strcpy.
17923
17924         2006-03-12  Jim Meyering  <jim@meyering.net>
17925
17926         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
17927         matches that of the current directory (which we're about to chdir ".."
17928         out of), then save the dev-ino of the parent, instead.
17929
17930         * lib/same-inode.h (SAME_INODE): New file/macro.
17931         * lib/chdir-safer.c (SAME_INODE): Remove definition.
17932         Include "same-inode.h", instead.
17933         * lib/same.c: Likewise.
17934         * lib/cycle-check.h: Include "same-inode.h".
17935         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
17936         * lib/cycle-check.c (SAME_INODE): Remove definition.
17937         * lib/root-dev-ino.h: Include "same-inode.h".
17938
17939         2006-03-11  Eric Blake  <ebb9@byu.net>
17940
17941         * lib/same.c (same_name): s/base_name/last_component/
17942         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
17943         * lib/filenamecat.c (file_name_concat): Likewise.
17944
17945         2006-03-11  Eric Blake  <ebb9@byu.net>,
17946                     Paul Eggert  <eggert@cs.ucla.edu>
17947
17948         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
17949         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
17950         drive prefix.
17951         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
17952         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
17953         (last_component): New method.
17954         * lib/dirname.c (dir_len): Determine when drive letters need a
17955         subsequent slash.  Preserve // when it is special.
17956         (dir_name): Don't append dot when drive letter is absolute.
17957         [TEST_DIRNAME]: Move into a full-blown gnulib test.
17958         * lib/basename.c (base_name): New semantics - malloc the result.
17959         Preserve // when it is special.  Preserve relative files that look
17960         like drive letters.
17961         (base_len): Preserve // when it is special.
17962         (last_component): New method, similar to old base_name semantics.
17963         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
17964         base_name.  Strip redundant slashes from ///.
17965
17966 2006-07-03  Jim Meyering  <jim@meyering.net>
17967
17968         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
17969         macro is used before the first cycle_check call.
17970
17971 2006-07-03  Eric Blake  <ebb9@byu.net>
17972
17973         * modules/dirname (Depends-on): Add xstrndup.
17974
17975 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
17976
17977         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
17978         test cases, so that config.log is a bit easier to follow.
17979
17980 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
17981
17982         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
17983         both are 64 bits, since this seems to be the tradition, and this
17984         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
17985         we ever run into a host that prefers long long to long in this
17986         case, we'll need another configure-time test.  Problem reported by
17987         Jim Meyering.
17988
17989 2006-07-02  Eric Blake  <ebb9@byu.net>
17990
17991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
17992
17993 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17994
17995         * modules/inttypes (Depends-on): No longer depends on stdint.
17996         * modules/stdint (Description): Say more about assumptions.
17997         Say that the fast types might differ.  Say macros are used.
17998         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
17999         (Makefile.am): Revise list of substituted symbols to match
18000         new stdint.m4.
18001         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
18002         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
18003         * tests/test-stdint.c (verify_same_types)
18004         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
18005         the code conforms to C99/C89.
18006         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
18007         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
18008
18009 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18010
18011         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
18012         but fix a bug, by requiring at least 64 bits.
18013         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
18014         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
18015         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
18016         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
18017
18018         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
18019         changes.  Make 2.59 a prerequisite.  Check and substitute for
18020         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
18021         inttypes.h.  Do not use special include files; just use the
18022         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
18023         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
18024         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
18025         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
18026         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
18027         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
18028         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
18029         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
18030         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
18031         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
18032         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
18033         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
18034         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
18035         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
18036         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
18037         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
18038         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
18039         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
18040         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
18041         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
18042         WINT_MAX.  Check for C99 conformance more strictly, by detecting
18043         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
18044         not check for things that C99 does not require, e.g., int8_t.  If
18045         a test isn't needed unless <stdint.h> isn't working, and is
18046         unlikely to be needed for any other reason, then don't do it
18047         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
18048         size_t, since we assume C89 freestanding at least.  Do not check
18049         for sig_atomic_t, wchar_t, or wint_t, since the code now does
18050         the right thing even if the types are not defined.  Instead use:
18051         (gl_STDINT_TYPE_PROPERTIES): New macro.
18052         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
18053         testing whether <sys/types.h> clashes, as Autoconf does this for
18054         us now.  All uses removed.
18055         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
18056         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
18057         (gl_CHECK_TYPE_SAME):
18058         Remove; no longer needed.
18059         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
18060         exists, since we'll return 0 anyway in that case.
18061         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
18062
18063 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18064
18065         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
18066         possible collision with system files.
18067         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
18068         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
18069         WCHAR_MIN and WCHAR_MAX in this case.
18070         (<stddef.h>): Do not include; no longer needed.
18071         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
18072         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
18073         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
18074         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
18075         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
18076         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
18077         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
18078         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
18079         !defined(__c99))]: Include in this case too, since it's harmless
18080         now.
18081         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
18082         dangerous to do so.
18083         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
18084         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
18085         (_STDINT_MIN, _STDINT_MAX): New macros.
18086         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
18087         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
18088         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
18089         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
18090         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
18091         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
18092         macros, not typedefs; this simplifies things quite a bit.
18093         Use long int for all types narrower than int64_t.
18094         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
18095         Define in terms of long long int or int64_t or long int,
18096         not int64_t or int32_t.  This saves some compile-time testing.
18097         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
18098         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
18099         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
18100         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
18101         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
18102         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
18103         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
18104         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
18105         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
18106         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
18107         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
18108         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
18109         undef any previous version and define our own version, for
18110         simplicity and consistency with the new macros for types.
18111         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
18112         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
18113         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
18114         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
18115         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
18116         @WINT_T_SUFFIX@ to keep things simple here.
18117         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
18118         Simplify by assuming typical 8/16/32/64 host, since we're
18119         already doing that elsewhere anyway.
18120         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
18121         and assume long long int is 64 bits if available.  This
18122         speeds up 'configure'.
18123
18124 2006-07-01  Eric Blake  <ebb9@byu.net>
18125
18126         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
18127         Reported by Andreas Buening.
18128
18129 2006-07-01  Eric Blake  <ebb9@byu.net>
18130
18131         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
18132
18133 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
18134
18135         * lib/getaddrinfo.c: fixed typo
18136
18137 2006-06-29  Jim Meyering  <jim@meyering.net>
18138
18139         * modules/strftime (Maintainer): Add my name, since with the
18140         FPRINTFTIME changes strftime.c has forked from glibc.
18141
18142 2006-06-29  Eric Blake  <ebb9@byu.net>
18143
18144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
18145
18146 2006-06-29  Eric Blake  <ebb9@byu.net>
18147
18148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
18149
18150 2006-06-29  Eric Blake  <ebb9@byu.net>
18151
18152         * lib/stat_.h: New file.
18153
18154 2006-06-29  Eric Blake  <ebb9@byu.net>
18155
18156         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
18157         unused static function.
18158
18159 2006-06-29  Eric Blake  <ebb9@byu.net>
18160
18161         * doc/functions.texi (Function Portability): Document missing lstat
18162         on mingw.
18163
18164 2006-06-29  Eric Blake  <ebb9@byu.net>
18165
18166         * MODULES.html.sh: Add sys_stat.
18167         * modules/sys_stat: New module.
18168         * modules/mkstemp (Depends-on): Add sys_stat.
18169
18170 2006-06-29  Derek R. Price  <derek@ximbiot.com>
18171
18172         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
18173
18174 2006-06-29  Derek R. Price  <derek@ximbiot.com>
18175
18176         * m4/c-bs-a.m4: Removed.
18177
18178 2006-06-29  Derek R. Price  <derek@ximbiot.com>
18179
18180         * lib/strftime.c: Assume strftime() exists.
18181
18182 2006-06-29  Derek Price  <derek@ximbiot.com>
18183
18184         * modules/c-bs-a: Removed - \a is C89.
18185         * MODULES.html.sh: Remove c-bs-a.
18186
18187 2006-06-29  Bruno Haible  <bruno@clisp.org>
18188
18189         * modules/wcwidth (License): Change to LGPL.
18190
18191 2006-06-28  Simon Josefsson  <jas@extundo.com>
18192
18193         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
18194         on _WIN32.
18195
18196         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
18197         getnameinfo.
18198
18199 2006-06-28  Simon Josefsson  <jas@extundo.com>
18200
18201         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
18202
18203 2006-06-28  Simon Josefsson  <jas@extundo.com>
18204
18205         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
18206         functions there.  It will succeed on Windows XP, but on Windows
18207         2000 and (presumably) earlier, it will fail, and use the internal
18208         re-implementation.
18209         (use_win32_p): New function.
18210         (getaddrinfo): Use strtoul on servname, to support numeric ports.
18211         Support AI_NUMERICSERV to disable getservbyname.
18212         (getnameinfo): New function, only supports
18213         NI_NUMERICHOST|NI_NUMERICSERV for now.
18214
18215         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
18216         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
18217         getnameinfo.
18218
18219 2006-06-28  Eric Blake  <ebb9@byu.net>
18220
18221         * modules/wcwidth: New file.
18222         * modules/mbchar (Depends-on): Add wcwidth.
18223         * modules/mbswidth (Depends-on): Add wcwidth.
18224         * MODULES.html.sh: Add wcwidth.
18225
18226 2006-06-28  Eric Blake  <ebb9@byu.net>
18227
18228         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
18229         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
18230
18231 2006-06-28  Eric Blake  <ebb9@byu.net>
18232
18233         * lib/xvasprintf.h: Fix comments.
18234
18235 2006-06-28  Eric Blake  <ebb9@byu.net>
18236
18237         * lib/mbchar.h (wcwidth): Include wcwidth.h.
18238         * lib/mbswidth.c (wcwidth): Move from here...
18239         * lib/wcwidth.h: ...to this new file.
18240
18241 2006-06-28  Derek R. Price  <derek@ximbiot.com>
18242
18243         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
18244
18245         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
18246         it's obsolete.
18247         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
18248
18249 2006-06-28  Derek R. Price  <derek@ximbiot.com>
18250
18251         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
18252         Autoconf 2.60 says this stuff was obsolete.
18253
18254 2006-06-28  Bruno Haible  <bruno@clisp.org>
18255
18256         * modules/wcwidth (Files): Add m4/wchar_t.m4.
18257
18258 2006-06-28  Bruno Haible  <bruno@clisp.org>
18259
18260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
18261         gt_TYPE_WCHAR_T.
18262
18263 2006-06-28  Bruno Haible  <bruno@clisp.org>
18264
18265         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
18266         declaration for wcwidth.
18267         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
18268
18269 2006-06-28  Bruno Haible  <bruno@clisp.org>
18270
18271         * lib/mkdtemp.c [MINGW]: Include <io.h>.
18272         (mkdir): Define using _mkdir.
18273
18274 2006-06-28  Bruno Haible  <bruno@clisp.org>
18275
18276         * lib/getaddrinfo.h: Fix POSIX URL.
18277         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
18278         _WIN32.
18279         (use_win32_p): Make static.
18280         (getaddrinfo): Reject service name if it is empty or does not consist
18281         solely of decimal digits, or if its value is > 65535.
18282         (getnameinfo): Remove useless casts.
18283
18284 2006-06-27  Simon Josefsson  <jas@extundo.com>
18285
18286         * modules/sys_select: New file, suggested by Bruno Haible, Paul
18287         Eggert and Martin Lambers.
18288
18289 2006-06-27  Simon Josefsson  <jas@extundo.com>
18290
18291         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
18292         Eggert and Martin Lambers.
18293
18294 2006-06-27  Bruno Haible  <bruno@clisp.org>
18295
18296         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
18297         result to 0, not to empty.
18298         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
18299
18300 2006-06-27  Bruno Haible  <bruno@clisp.org>
18301
18302         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
18303
18304 2006-06-26  Simon Josefsson  <jas@extundo.com>
18305
18306         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
18307         present.
18308
18309 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
18310
18311         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
18312         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
18313         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
18314
18315 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
18316
18317         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
18318
18319 2006-06-26  Bruno Haible  <bruno@clisp.org>
18320
18321         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
18322
18323 2006-06-26  Bruno Haible  <bruno@clisp.org>
18324
18325         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
18326
18327 2006-06-26  Bruno Haible  <bruno@clisp.org>
18328
18329         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
18330         SGI C compiler in pre-C99 mode.
18331         Suggested by Mark D. Baushke and Larry Jones.
18332
18333 2006-06-26  Bruno Haible  <bruno@clisp.org>
18334
18335         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
18336         WCHAR_MAX.
18337         Reported by Mark D. Baushke and Larry Jones.
18338
18339 2006-06-26  Bruno Haible  <bruno@clisp.org>
18340
18341         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
18342         in pre-C99 mode.
18343         Suggested by Mark D. Baushke and Larry Jones.
18344
18345 2006-06-23  Simon Josefsson  <jas@extundo.com>
18346             Bruno Haible  <bruno@clisp.org>
18347
18348         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
18349         Emit mostlyclean-local rule.
18350         (func_emit_tests_Makefile_am): Likewise.
18351         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
18352
18353 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
18354
18355         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
18356
18357 2006-06-23  Bruno Haible  <bruno@clisp.org>
18358
18359         * tests/test-stdint.c: Update to match ISO C 99 Technical
18360         Corrigendum 1.
18361
18362 2006-06-23  Bruno Haible  <bruno@clisp.org>
18363
18364         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
18365
18366 2006-06-23  Bruno Haible  <bruno@clisp.org>
18367
18368         * lib/stdint_.h: Treat IRIX like OpenBSD.
18369
18370 2006-06-23  Bruno Haible  <bruno@clisp.org>
18371
18372         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
18373         ISO C 99 Technical Corrigendum 1.
18374
18375 2006-06-22  Simon Josefsson  <jas@extundo.com>
18376
18377         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
18378         MinGW.
18379
18380 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18381
18382         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
18383         needed.  Some compiler complained about some of them.  Problem reported
18384         by Larry Jones in
18385         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
18386
18387 2006-06-21  Simon Josefsson  <jas@extundo.com>
18388
18389         * tests/test-getaddrinfo.c: New file.
18390
18391         * modules/getaddrinfo-tests: New file.
18392
18393         * MODULES.html.sh: Add inet_pton.
18394
18395         * modules/inet_pton: New file.
18396
18397 2006-06-21  Simon Josefsson  <jas@extundo.com>
18398
18399         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
18400         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
18401         of using the (limited) gnulib implementation on Windows XP.
18402
18403         * m4/inet_pton.m4: New file.
18404
18405 2006-06-21  Simon Josefsson  <jas@extundo.com>
18406
18407         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
18408         variable.
18409
18410         * lib/socket_.h: Don't define WINVER.
18411
18412         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
18413         slightly modified to work in gnulib.
18414
18415 2006-06-21  Simon Josefsson  <jas@extundo.com>
18416
18417         * doc/gnulib.texi (Windows sockets): Add.
18418
18419 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18420
18421         * lib/read-file.c (fread_file): Start with buffer allocation of
18422         0 bytes rather than 1 byte; this simplifies the code.
18423         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
18424         code to free buffer and save/restore errno.
18425         (internal_read_file): Remove unused local.
18426
18427 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
18428
18429         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
18430         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
18431         Problem reported by Denis Excoffier in
18432         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
18433
18434 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18435
18436         * modules/sys_socket, modules/socklen: Include sys/types since
18437         FreeBSD 4.x's sys/socket.h needs it.
18438
18439 2006-06-19  Simon Josefsson  <jas@extundo.com>
18440
18441         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
18442
18443 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
18444
18445         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
18446
18447 2006-06-19  Bruno Haible  <bruno@clisp.org>
18448
18449         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
18450         and FULL_PATH_INTTYPES_H in angle brackets.
18451         Reported by Mark D. Baushke <mdb@gnu.org>.
18452
18453 2006-06-17  Eric Blake  <ebb9@byu.net>
18454
18455         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
18456         errno.
18457
18458 2006-06-17  Bruno Haible  <bruno@clisp.org>
18459
18460         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
18461         <sys/inttypes.h>.
18462
18463 2006-06-17  Bruno Haible  <bruno@clisp.org>
18464
18465         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
18466         whether errno is declared. Assume <errno.h> declares errno.
18467
18468 2006-06-17  Bruno Haible  <bruno@clisp.org>
18469
18470         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
18471
18472 2006-06-17  Bruno Haible  <bruno@clisp.org>
18473
18474         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
18475         problem on Solaris 2.5.1.
18476
18477 2006-06-16  Eric Blake  <ebb9@byu.net>
18478
18479         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
18480         * lib/unicodeio.c [!defined errno]: Likewise.
18481         * lib/strtol.c [!defined errno]: Likewise.
18482         * lib/strtod.c [!defined errno]: Likewise.
18483
18484 2006-06-15  Eric Blake  <ebb9@byu.net>
18485
18486         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
18487
18488 2006-06-15  Eric Blake  <ebb9@byu.net>
18489
18490         * config/srclist.txt (ssize_t.m4): Lose sync.
18491
18492 2006-06-15  Bruno Haible  <bruno@clisp.org>
18493
18494         * modules/stdint (Files): Include m4/full-header-path.m4,
18495         m4/size_max.m4, m4/wchar_t.m4.
18496         (Makefile.am): Many more substitutions.
18497         * modules/stdint-tests: New file.
18498         * tests/test-stdint.c: New file.
18499
18500 2006-06-15  Bruno Haible  <bruno@clisp.org>
18501
18502         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
18503         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
18504         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
18505         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
18506         gl_CHECK_TYPE_SAME): New macros.
18507
18508 2006-06-15  Bruno Haible  <bruno@clisp.org>
18509
18510         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
18511
18512 2006-06-15  Bruno Haible  <bruno@clisp.org>
18513
18514         * lib/stdint_.h: Rewritten to be fully auto-configured.
18515         Fixes bug on HP-UX/IA64.
18516
18517 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18518
18519         * lib/getdate.y (__attribute__): Don't define if already defined.
18520         Problem reported by Larry Jones.
18521         * lib/utimens.c (__attribute__): Likewise.
18522
18523 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
18524
18525         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
18526         reported by Andreas Schwab.
18527
18528 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18529             Bruno Haible  <bruno@clisp.org>
18530
18531         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
18532         check for the declaration of strnlen and a run test that exposes the
18533         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
18534         rpl_strndup.
18535
18536 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18537             Bruno Haible  <bruno@clisp.org>
18538
18539         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
18540
18541 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18542
18543         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
18544         compile test, for Tru64 4.0D.
18545
18546 2006-05-28  Karl Berry  <karl@gnu.org>
18547
18548         * config/srclist.txt (printf-args.c): lose sync.
18549
18550 2006-05-26  Martin Lambers  <marlam@marlam.de>
18551
18552         * lib/getpass.c: Updates the test for the native W32 API, and adds
18553         missing includes, thus fixing compilation warnings.
18554
18555 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18556
18557         * lib/exclude.c (exclude_fnmatch): New function.
18558         (excluded_file_name): Call exclude_fnmatch.
18559         * lib/exclude.h (excluded_file_name): New prototype
18560
18561 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
18562
18563         * lib/tempname.c (small_open, large_open): New macros.
18564         (__open, __open64) [!_LIBC]: Remove.
18565         (__gen_tempname): Use small_open and large_open instead of __open
18566         and __open64.  This fixes a portability bug on HP-UX 11.11i
18567         reported by Simon Wing-Tang in
18568         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
18569
18570 2006-05-24  Bruno Haible  <bruno@clisp.org>
18571
18572         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
18573         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
18574         Reported by Thorsten Maerz <torte@netztorte.de> via
18575         Aaron Stone <aaron@serendipity.cx>.
18576
18577 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18578
18579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
18580         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
18581         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
18582         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
18583         not really conditional on the cache.
18584         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
18585
18586 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18587
18588         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
18589         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
18590         (my_usleep): Don't mishandle maximum value.
18591
18592 2006-05-19  Jim Meyering  <jim@meyering.net>
18593
18594         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
18595
18596 2006-05-17  Bruno Haible  <bruno@clisp.org>
18597
18598         Cygwin portability.
18599         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
18600
18601 2006-05-17  Bruno Haible  <bruno@clisp.org>
18602
18603         * lib/stdint_.h: Fix recognition of Cygwin.
18604
18605 2006-05-15  Bruno Haible  <bruno@clisp.org>
18606
18607         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
18608         on libtool patch by Ralf Wildenhues.
18609
18610 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18611
18612         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
18613         test for C99 conformance; (bool) 0.5 is an integer constant
18614         expression, but (bool) -0.5 is not.  Problem reported by Fedor
18615         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
18616
18617 2006-05-11  Simon Josefsson  <jas@extundo.com>
18618
18619         * m4/xvasprintf.m4: Fix obvious typo.
18620
18621 2006-05-11  Jim Meyering  <jim@meyering.net>
18622
18623         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
18624         James Lemley.
18625
18626 2006-05-10  Simon Josefsson  <jas@extundo.com>
18627
18628         * lib/md4.c: Typo fix, update copyright years.
18629         (K1, K2): Don't use L because it turn computations into 64-bit on
18630         64-bit platforms.
18631
18632 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
18633
18634         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
18635         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
18636         unwanted sign propagation, e.g., on hosts with 64-bit int.
18637         There still are some problems with reeelly weird theoretical hosts
18638         (e.g., 33-bit int) but it's not worth worrying about now.
18639         * lib/sha1.c (rol): Likewise.
18640         (K1, K2, K3, K4): Remove unnecessary L suffix.
18641
18642 2006-05-10  Bruno Haible  <bruno@clisp.org>
18643
18644         * lib/des.c: Cast to avoid warnings.
18645
18646 2006-05-09  Bruno Haible  <bruno@clisp.org>
18647
18648         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
18649         (Depends-on): Depend also on xsize, stdarg.
18650         (configure.ac): Add gl_XVASPRINTF.
18651
18652 2006-05-09  Bruno Haible  <bruno@clisp.org>
18653
18654         * m4/xvasprintf.m4: New file.
18655
18656 2006-05-09  Bruno Haible  <bruno@clisp.org>
18657
18658         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
18659         (EOVERFLOW): Define fallback value.
18660         (xstrcat): New function.
18661         (xvasprintf): Recognize the special case of a string concatenation.
18662
18663 2006-05-08  Eric Blake  <ebb9@byu.net>
18664
18665         * gnulib-tool (func_version): Base copyright year on CVS date.
18666         (func_emit_copyright_notice): New function.
18667         (func_emit_lib_Makefile_am): Use it.
18668         (func_emit_tests_Makefile_am): Likewise.
18669         (func_import): Likewise.
18670
18671 2006-05-08  Bruno Haible  <bruno@clisp.org>
18672
18673         * modules/stdarg: New file.
18674         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
18675
18676 2006-05-08  Bruno Haible  <bruno@clisp.org>
18677
18678         * m4/stdarg.m4: New file, from GNU gettext.
18679
18680 2006-05-08  Bruno Haible  <bruno@clisp.org>
18681
18682         * config/srclist.txt (build-aux/config.rpath): different from latest
18683         release.
18684
18685 2006-05-08  Bruno Haible  <bruno@clisp.org>
18686
18687         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
18688
18689 2006-05-05  Jim Meyering  <jim@meyering.net>
18690
18691         * m4/warning.m4: New file, derived from bison's file by the same name.
18692
18693 2006-05-03  Bruno Haible  <bruno@clisp.org>
18694
18695         * lib/stdint_.h: Shorter URL.
18696         * lib/inttypes.h: Likewise.
18697
18698 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
18699
18700         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
18701
18702 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
18703
18704         * lib/verify.h: Document the internals better.  Most of this change
18705         was written by Bruno Haible.
18706
18707 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
18708
18709         * doc/verify.texi: New file, partly based on a proposal by
18710         Bruno Haible.
18711
18712 2006-05-02  Bruno Haible  <bruno@clisp.org>
18713
18714         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
18715         test from here...
18716         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
18717
18718 2006-04-29  Bruno Haible  <bruno@clisp.org>
18719
18720         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
18721         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
18722
18723 2006-04-29  Bruno Haible  <bruno@clisp.org>
18724
18725         * gnulib-tool: Make --update option actually work.
18726
18727 2006-04-29  Bruno Haible  <bruno@clisp.org>
18728
18729         * doc/gcd.texi: New file.
18730         * doc/gnulib.texi: Include it.
18731
18732 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18733
18734         * lib/getdate.y (get_date): When adding relative date, start with the
18735         initial time, not with the result of the first mktime call.
18736
18737 2006-04-25  Bruno Haible  <bruno@clisp.org>
18738
18739         * gnulib-tool (func_import): Output the include directives in three
18740         blocks, sorted separately.
18741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18742
18743 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18744
18745         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
18746         to define main with arguments, for C++.  Reported by Eric Blake.
18747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
18748         Prefer 'int main ()' to 'int main (void)', for C++.
18749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
18751         for 'main', for C99 and C++.
18752
18753 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18754
18755         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
18756         Don't assume that exit status -1 is valid.
18757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18758         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18759         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18760         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
18761         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
18762         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
18763         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
18764         functions can be used without declaring them, or that you can
18765         exit with status -1.
18766         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
18767
18768 2006-04-24  Karl Berry  <karl@gnu.org>
18769
18770         * config/srclist.txt (longdouble.m4): sync lost.
18771
18772 2006-04-24  Eric Blake  <ebb9@byu.net>
18773
18774         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
18775
18776 2006-04-24  Bruno Haible  <bruno@clisp.org>
18777
18778         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
18779         poll() implementation in AIX.
18780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18781
18782 2006-04-24  Bruno Haible  <bruno@clisp.org>
18783
18784         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
18785         assigned exactly once.
18786
18787 2006-04-23  Claudio Fontana  <claudio@gnu.org>
18788             Bruno Haible  <bruno@clisp.org>
18789
18790         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
18791         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
18792         for AM_CPPFLAGS.
18793
18794 2006-04-23  Bruno Haible  <bruno@clisp.org>
18795
18796         * modules/copy-file: Depend on unistd.
18797         * modules/execute: Likewise.
18798         * modules/fatal-signal: Likewise.
18799         * modules/findprog: Likewise.
18800         * modules/mkdtemp : Likewise.
18801         * modules/pipe: Likewise.
18802         * modules/wait-process: Likewise.
18803
18804 2006-04-23  Bruno Haible  <bruno@clisp.org>
18805
18806         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
18807         condition was already detected.
18808         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18809
18810 2006-04-23  Bruno Haible  <bruno@clisp.org>
18811
18812         * lib/copy-file.c: Include <unistd.h> unconditionally.
18813         * lib/execute.c: Likewise.
18814         * lib/fatal-signal.c: Likewise.
18815         * lib/findprog.c: Likewise.
18816         * lib/mkdtemp.c: Likewise.
18817         * lib/pipe.h: Likewise.
18818         * lib/pipe.c: Likewise.
18819         * lib/wait-process.h: Likewise.
18820
18821 2006-04-23  Bruno Haible  <bruno@clisp.org>
18822
18823         * gnulib-tool (func_usage): Fix --import description. Document
18824         --update.
18825         (func_import): Create temporary file in a temporary directory, if
18826         --dry-run is specified. Silence errors from 'grep' when there are no
18827         m4 files in $m4dir.
18828         (func_create_testdir): Silence errors from 'grep' when there are no
18829         m4 files in $m4dir.
18830         Reported by Karl Berry <karl@freefriends.org>.
18831
18832 2006-04-20  Bruno Haible  <bruno@clisp.org>
18833
18834         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
18835         one argument, so that the code will be portable to Autoconf 2.60.
18836         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
18837         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
18838         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
18839
18840 2006-04-19  Derek Price  <derek@ximbiot.com>
18841             Eric Blake  <ebb9@byu.net>
18842
18843         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
18844         rather than "/full/path.h".  Update comment to match.  Shorten &
18845         generalize m4_translit call via AS_TR_CPP.
18846
18847 2006-04-19  Derek Price  <derek@ximbiot.com>
18848             Eric Blake  <ebb9@byu.net>
18849
18850         * lib/inttypes.h: Correct grammar in comment.
18851
18852 2006-04-18  Derek Price  <derek@ximbiot.com>
18853             Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         * modules/inttypes: New file.
18856         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
18857
18858 2006-04-18  Derek Price  <derek@ximbiot.com>
18859             Paul Eggert  <eggert@cs.ucla.edu>
18860
18861         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
18862         New files.
18863
18864 2006-04-18  Derek Price  <derek@ximbiot.com>
18865             Paul Eggert  <eggert@cs.ucla.edu>
18866
18867         * lib/inttypes.h: New file.
18868         * lib/strtoimax.c: Assume <inttypes.h>.
18869
18870 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
18871
18872         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
18873         isn't mounted.  Problem reported by Kir Kolyshkin.
18874
18875 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
18876
18877         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
18878         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
18879         Derek R. Price.
18880         * lib/regex.h (RE_DUP_MAX): Update comment to match current
18881         implementation.
18882
18883 2006-04-12  Eric Blake  <ebb9@byu.net>
18884
18885         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
18886         is now done automatically by the corresponding Autoconf macro.
18887
18888 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
18889
18890         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
18891         time_r.h.
18892
18893 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18894
18895         Merge regex changes from libc, removing some of our
18896         POSIX-conformance changes that were rejected and redoing them in a
18897         less-intrusive way.
18898
18899         * lib/regcomp.c (re_compile_internal, init_dfa):
18900         Length arg is now size_t, not Idx.  All uses changed.
18901         (peek_token): Forward decl now says internal_function.
18902         (__re_error_msgid, __re_error_msgid_idx):
18903         Now static rather than extern with attribute_hidden.
18904         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
18905         For some reason libc prefers K&R style defns for external functions.
18906         (regerror) [!defined _LIBC]: Likewise.
18907         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
18908         (seek_collating_symbol_entry, lookup_collation_sequence_value):
18909         (build_range_exp, build_collating_symbol):
18910         Use K&R-style defn.
18911         (re_compile_fastmap): Use '\0' to memset, not 0.
18912         (utf8_sb_map): Make the calculations more obvious.
18913         (init_dfa, parse_bracket_exp, build_charclass_op):
18914         Call calloc and cast result, as glibc does.
18915         (init_word_char, fetch_token, peek_token, peek_token_bracket):
18916         (build_range_exp, build_collating_symbol):
18917         Now internal functions.
18918
18919         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
18920
18921         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
18922         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
18923         Don't depend on VMS; depend on __VMS instead, for POSIX
18924         namespace cleanness.
18925         (regoff_t): Define to ssize_t, not long int.
18926
18927         Remove the REG_ macros named below.  Instead, make the old names
18928         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
18929         __USE_GNU_REGEX.
18930         (REG_BACKSLASH_ESCAPE_IN_LISTS):
18931         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
18932         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
18933         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
18934         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
18935         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
18936         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
18937         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
18938         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
18939         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
18940         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
18941         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
18942         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
18943         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
18944         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
18945         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
18946         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
18947         (REG_NREGS):
18948         Remove.  All uses replaced by the old RE_* names.
18949         (RE_BACKSLASH_ESCAPE_IN_LISTS):
18950         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
18951         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
18952         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
18953         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
18954         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
18955         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
18956         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
18957         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
18958         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
18959         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
18960         Don't bother having these macros be independent of each others'
18961         values, since they no longer exist in the POSIX name space.
18962
18963         Rename the following member names back to their old names,
18964         unless !__USE_GNU_REGEX.  All uses changed back.
18965         (buffer): Renamed from re_buffer.
18966         (allocated): Renamed from re_allocated.
18967         (used): Renamed from re_used.
18968         (syntax): Renamed from re_syntax.
18969         (fastmap): Renamed from re_fastmap.
18970         (translate): Renamed from re_translate.
18971         (can_be_null): Renamed from re_can_be_null.
18972         (regs_allocated): Renamed from re_regs_allocated.
18973         (fastmap_accurate): Renamed from re_fastmap_accurate.
18974         (no_sub): Renamed from re_no_sub.
18975         (not_bol): Renamed from re_not_bol.
18976         (not_eol): Renamed from re_not_eol.
18977         (newline_anchor): Renamed from re_newline_anchor.
18978         (num_regs): Renamed from rm_num_regs.
18979         (start): Renamed from rm_start.
18980         (end): Renamed from rm_end.
18981
18982         (free_state): Move up a bit.
18983
18984         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
18985         #define to be empty.
18986         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
18987         when that is what is intended.
18988         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
18989         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
18990         (MAX): New macro.
18991         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
18992         All uses changed back to re_malloc, etc.  It's now the caller's
18993         responsibility to check for overflow; all callers changed.
18994         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
18995         (re_x2nrealloc): Remove.
18996         (free_state): Remove decl.
18997
18998         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
18999         (re_set_registers, re_exec):
19000         Use K&R-style defn.
19001
19002         2006-01-31  Roland McGrath  <roland@redhat.com>
19003
19004         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
19005         Reported by Mike Frysinger <vapier@gentoo.org>.
19006
19007         2006-01-15  Andreas Jaeger  <aj@suse.de>
19008
19009         [BZ #1950]
19010         * lib/regex_internal.c (re_string_reconstruct): Adjust for
19011         build_wcs_upper_buffer change.
19012         (build_wcs_upper_buffer): Change return type.
19013
19014         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
19015
19016         * lib/regex_internal.h: Include <stdint.h> if available.
19017
19018         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
19019
19020         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
19021
19022         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
19023
19024         * lib/regcomp.c: Adjust for changed secondary hash function.
19025
19026         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
19027
19028         * lib/regex.h: Pretty printing.
19029         Clean up namespace a bit.
19030
19031         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
19032
19033         * lib/regexec.c (update_cur_sifted_state, check_arrival,
19034         check_arrival_add_next_nodes): Avoid using uninitialized variable.
19035
19036         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19037                     Ulrich Drepper  <drepper@redhat.com>
19038
19039         [BZ #1302]
19040         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
19041         changed.
19042         (bitset_word_t): Renamed from bitset_word.  All uses changed.
19043
19044         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
19045
19046         [BZ #281]
19047         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
19048         * lib/regcomp.c: Remove unnecessary uses of
19049         unsigned RE_TRANSLATE_TYPE.
19050         * lib/regex_internal.h: Likewise.
19051         * lib/regex_internal.c: Likewise.
19052         * lib/regexec.c: Likewise.
19053         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
19054
19055         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
19056
19057         * lib/regexec.c (find_recover_state): Remove unnecessary
19058         initialization.
19059         (transit_state_bkref): Make DFA a const pointer.
19060         (get_subexp): Likewise.
19061         (check_arrival): Likewise.
19062         (update_cur_sifted_state): Likewise.
19063         (re_search_internal): Likewise.
19064         (prune_impossible_nodes): Likewise.
19065         (acquire_init_state_context): Likewise.
19066         (proceed_next_node): Likewise.
19067         (set_regs): Likewise.
19068         (free_fail_stack_return): Likewise.
19069         (check_arrival_expand_ecl): Mark DFA parameter as const.
19070         (check_arrival_expand_ecl_sub): Likewise.
19071         (check_subexp_limits): Likewise.
19072         (sub_epsilon_src_nodes):  Likewise.
19073         (add_epsilon_src_nodes):  Likewise.
19074         (merge_state_array): Likewise.
19075         (update_regs): Likewise.
19076         (build_trtable): Likewise.
19077         (sift_states_backward): Mark MCTX parameter as const.
19078         (build_sifted_states): Likewise.
19079         (update_cur_sifted_state): Likewise.
19080         (sift_states_mkref): Likewise.
19081         (check_arrival_expand_ecl): Mark eclosure as const.
19082         (check_dst_limits_calc_pos_1): Likewise.
19083         * lib/regex_internal.h (re_match_context_t): Make dfa a const
19084         pointer.
19085
19086         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
19087
19088         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
19089         (transit_state_sb): Likewise.
19090         (transit_state_mb): Likewise.
19091         (sift_states_iter_mb): Likewise.
19092         (check_arrival_add_next_nodes): Likewise.
19093         (check_node_accept_bytes): Change first parameter to pointer-to-const.
19094         [_LIBC] (re_search_2_stub): Use mempcpy.
19095
19096         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
19097         mbrtowc for very simple UTF-8 case.
19098
19099         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
19100         a pointer-to-const.
19101         (re_acquire_state_context): Likewise.
19102         * lib/regex_internal.h: Adjust prototypes.
19103
19104         * lib/regex.c: Prevent using C++ compilers.
19105
19106         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
19107         (re_acquire_state_context): Likewise.
19108
19109 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19110
19111         * modules/regex (Depends-on): Add ssize_t.
19112
19113 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19114
19115         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
19116         translation table.
19117
19118 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19119
19120         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
19121
19122 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
19123             Bruno Haible  <bruno@clisp.org>
19124
19125         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
19126         <sys/types.h> and <inttypes.h>.
19127
19128 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19129
19130         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
19131         `__error_t_defined', so argp.h will not typedef the former.
19132
19133 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19134
19135         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
19136         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
19137         glibc names.  Even if glibc is changed to conform to POSIX, the
19138         traditional names will be available anyway, since regex depends on
19139         the extensions module.  Also, fix a longstanding typo in the
19140         implementation of Spencer ERE test #75 from grep 2.3.  Problems
19141         reported by Emanuele Giaquinta.  Also, change sense of cached
19142         variable, so that the message makes sense.
19143
19144 2006-03-24  Simon Josefsson  <jas@extundo.com>
19145
19146         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
19147         including some doc fixes.
19148         (base64_encode_alloc): Fix +1 bug on allocation failures.
19149
19150 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19151
19152         * lib/base64.c (base64_encode): Do not read past end of array with
19153         unsanitized input on systems with CHAR_BIT > 8.
19154
19155 2006-03-24  Eric Blake  <ebb9@byu.net>
19156
19157         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
19158
19159 2006-03-22  Karl Berry  <karl@gnu.org>
19160
19161         * config/srclist.txt (*setenv.[ch]): get from coreutils.
19162         * config/srclistvars.sh (COREUTILS): new var.
19163
19164 2006-03-17  Jim Meyering  <jim@meyering.net>
19165
19166         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
19167         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
19168
19169 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19170
19171         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
19172         no longer needs it.  Instead, check that regoff_t is as least
19173         as wide as ptrdiff_t.
19174
19175         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
19176         so that our regex.h stays compatible with the installed regex.
19177         This is helpful for installers who configure --without-included-regex.
19178         Problem reported by Emanuele Giaquinta.
19179
19180 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19181
19182         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
19183         Typedef to long int, not to off_, as POSIX will likely change
19184         in that direction.
19185
19186 2006-03-15  Eric Blake  <ebb9@byu.net>
19187
19188         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
19189
19190 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
19191
19192         * lib/argp-help.c (validate_uparams): Fix typo
19193         * lib/argp-parse.c (argp_default_options): Consistently begin help
19194         messages with a lowercase letter.
19195
19196 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
19197
19198         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
19199         overrun buffers and shouldn't be used (much as gets shouldn't be
19200         used).
19201         * lib/time_r.c (asctime_r, ctime_r): Likewise.
19202
19203 2006-03-08  Simon Josefsson  <jas@extundo.com>
19204
19205         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
19206         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19207
19208 2006-03-08  Simon Josefsson  <jas@extundo.com>
19209
19210         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
19211         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19212
19213 2006-03-08  Simon Josefsson  <jas@extundo.com>
19214
19215         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
19216         signal that configure disabled the device.
19217
19218 2006-03-08  Simon Josefsson  <jas@extundo.com>
19219
19220         * build-aux/maint.mk: Fix refresh-po, to handle no translated
19221         languages.
19222
19223 2006-03-07  Simon Josefsson  <jas@extundo.com>
19224
19225         * modules/getopt (Depends-on): Add unistd.
19226
19227         * modules/unistd: New file.
19228
19229 2006-03-07  Simon Josefsson  <jas@extundo.com>
19230
19231         * modules/gc-random: New file.
19232
19233 2006-03-07  Simon Josefsson  <jas@extundo.com>
19234
19235         * m4/unistd_h.m4: New file.
19236
19237 2006-03-07  Simon Josefsson  <jas@extundo.com>
19238
19239         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
19240         test to be side-effect free by storing the result in the cache
19241         variable gl_cv_lib_readline, and moving the assignment of
19242         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
19243         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19244
19245 2006-03-07  Simon Josefsson  <jas@extundo.com>
19246
19247         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
19248         error on missing devices (the functions will return an error).
19249
19250         * m4/gc.m4: Move random stuff to gc-random.m4
19251
19252 2006-03-07  Simon Josefsson  <jas@extundo.com>
19253
19254         * lib/unistd_.h: New file.
19255
19256 2006-03-07  Simon Josefsson  <jas@extundo.com>
19257
19258         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
19259
19260 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19261
19262         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
19263         Problem reported by Juan Manuel Guerrero.
19264
19265 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19266
19267         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
19268         the unistd module.
19269         * lib/getlogin_r.c: Likewise.
19270         * lib/getlogin_r.h: Likewise.
19271         * lib/glob.c: Likewise.
19272         * lib/pagealign_alloc.c: Likewise.
19273         * lib/unistd_.h: Remove; no longer needed.
19274
19275 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19276
19277         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19278         Add unistd.
19279         * modules/c-stack (Depends-on): Add unistd.
19280         * modules/getlogin_r: Likewise.
19281         * modules/glob: Likewise.
19282         * modules/pagealign_alloc: Likewise.
19283         * modules/unistd (Files): Remove lib/unistd_.h.
19284         (EXTRA_DIST): Remove.
19285         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
19286         need unistd_.h.
19287         (MOSTLYCLEANFILES): Remove unistd.h-t.
19288
19289 2006-03-03  Simon Josefsson  <jas@extundo.com>
19290
19291         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
19292
19293 2006-03-03  Simon Josefsson  <jas@extundo.com>
19294
19295         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
19296         libidn and bison.
19297
19298 2006-03-03  Simon Josefsson  <jas@extundo.com>
19299
19300         * build-aux/maint.mk: Add indent target.
19301
19302 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
19303
19304         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
19305         our replacement poll.h in any case, to avoid a differing
19306         declaration from a system header.  Seen on AIX.
19307
19308 2006-03-01  Simon Josefsson  <jas@extundo.com>
19309
19310         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
19311         <kasal@ucw.cz>.
19312
19313 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19314
19315         * modules/gettime (Depends-on): Add extensions module.
19316         * modules/nanosleep (Depends-on): Likewise.
19317         * modules/settime (Depends-on): Likewise.
19318
19319 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19320
19321         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
19322         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
19323         pedantically.
19324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19325         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
19326
19327         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
19328         not "==".  Reported by Ralf Wildenhues.
19329
19330 2006-03-01  Karl Berry  <karl@gnu.org>
19331
19332         * doc/Copyright/request-*: new files, synced from gnuorg.
19333
19334 2006-03-01  Karl Berry  <karl@gnu.org>
19335
19336         * config/srclist.txt (Copyright/*): new entries.
19337
19338 2006-02-28  Simon Josefsson  <jas@extundo.com>
19339
19340         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
19341
19342 2006-02-27  Simon Josefsson  <jas@extundo.com>
19343
19344         * lib/base64.h: Indent #define's.  From Jim Meyering
19345         <jim@meyering.net>.
19346
19347 2006-02-27  Jim Meyering  <jim@meyering.net>
19348
19349         Revert the change of 2006-02-24, so these files can continue
19350         to be sync'd from gettext.
19351         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
19352         of `config.h'.
19353
19354 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
19355
19356         * modules/intprops: New file.
19357         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19358         Add intprops.
19359         * modules/getloadavg (Files): Remove lib/intprops.h.
19360         (Depends-on): Add intprops.
19361         * modules/human: Likewise.
19362         * modules/inttostr: Likewise.
19363         * modules/openat: Likewise.
19364         * modules/sig2str: Likewise.
19365         * modules/userspec: Likewise.
19366         * modules/utimecmp: Likewise.
19367         * modules/xnanosleep: Likewise.
19368         * modules/xstrtol: Likewise.
19369
19370 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
19371
19372         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
19373         * modules/lock-tests (TESTS): Use $(EXEEXT).
19374         * modules/tls-tests: Likewise.
19375         * modules/argp-tests: Likewise.
19376         (check_PROGRAMS): New var, replacing...
19377         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
19378
19379 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19380
19381         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
19382         `config.h'.
19383
19384 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19385
19386         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
19387
19388 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19389
19390         Sync from coreutils.
19391         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
19392         gl_CHDIR_SAFER.
19393
19394 2006-02-22  Jim Meyering  <jim@meyering.net>
19395
19396         Sync from coreutils.
19397         * m4/chdir-safer.m4: New file.
19398
19399 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19400
19401         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
19402         AT_FDCWD exceeds INT_MAX.
19403         * lib/openat.h (AT_FDCWD): Likewise.
19404
19405 2006-02-17  Eric Blake  <address@hidden>
19406
19407         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
19408
19409 2006-02-16  Simon Josefsson  <jas@extundo.com>
19410
19411         * modules/getaddrinfo (Depends-on): Add sys_socket.
19412
19413 2006-02-15  Simon Josefsson  <jas@extundo.com>
19414
19415         * build-aux/maint.mk: Add dsyntax-check rule.
19416
19417 2006-02-15  Eric Blake  <ebb9@byu.net>
19418
19419         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
19420         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
19421         'present but cannot compile' warnings on cygwin.
19422         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
19423         use ws2tcpip.h if sys/socket.h works.
19424         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
19425         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
19426
19427 2006-02-14  Simon Josefsson  <jas@extundo.com>
19428
19429         * modules/maintainer-makefile (Files): Rename.
19430
19431         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
19432         and (the local) Makefile.cfg to maint-cfg.mk.
19433
19434         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
19435         to the latter.
19436
19437         * modules/maintainer-makefile: New module.
19438
19439         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
19440         severaly stripped to make it possible to build it up from scratch
19441         with reliable tests.
19442
19443         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
19444         fixes to permit overriding the default actions when configure and
19445         makefile are not available.
19446
19447 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19448
19449         Sync from coreutils.
19450         * modules/lstat (Depends-on): Don't depend on xalloc.
19451         (License): Change from GPL to LGPL, since this is now simply a
19452         replacement for a libc function.
19453
19454 2006-02-14  Jim Meyering  <jim@meyering.net>
19455
19456         Sync from coreutils.
19457
19458         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
19459         failure on deficient systems, and simplify gnulib lgpl dependencies.
19460         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
19461         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
19462
19463         * lib/xalloc-die.c: Remove unused definition of N_.
19464
19465 2006-02-14  Jim Meyering  <jim@meyering.net>
19466
19467         Sync from coreutils.
19468         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
19469         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
19470         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
19471         double-quote uses of that variable, to accommodate the rare case in
19472         which getmntent is available in none of the libraries checked.  This
19473         happens at least on FreeBSD 5.0.
19474
19475 2006-02-13  Simon Josefsson  <jas@extundo.com>
19476
19477         * gnulib-tool (Usage): Fix --import, from
19478         karl@freefriends.org (Karl Berry).
19479
19480 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
19481
19482         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
19483
19484 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
19485
19486         * lib/argp-namefrob.h: Restore changes accidentally lost during the
19487         "autoupdate" on 2005-12-12.
19488
19489 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19490
19491         * modules/closeout (Depends-on): Remove atexit.
19492
19493 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19494
19495         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
19496         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
19497
19498 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
19499
19500         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
19501         __EXTENSIONS__ if this causes compilation to fail.  Problem
19502         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
19503         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
19504
19505 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19506
19507         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
19508         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
19509         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
19510         All uses changed.
19511
19512 2006-01-26  Simon Josefsson  <jas@extundo.com>
19513
19514         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
19515         prototype is visible on mingw32.
19516
19517         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
19518         for mingw32.
19519
19520         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
19521         mingw32).
19522
19523 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19524
19525         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
19526         attempt to open for write; this always fails, at least on POSIX
19527         hosts.  This reinstates the 2006-01-09 change, which was
19528         inadvertently removed.
19529
19530 2006-01-26  Bruno Haible  <bruno@clisp.org>
19531
19532         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
19533         Reported by Paul Eggert.
19534
19535 2006-01-26  Bruno Haible  <bruno@clisp.org>
19536             Paul Eggert  <eggert@cs.ucla.edu>
19537
19538         * lib/stdbool_.h (_Bool)
19539         [(! (defined __cplusplus || defined __BEOS__)
19540           && !defined __GNUC__
19541           && !(defined __HP_cc || defined __xlc__
19542                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
19543                || defined __sgi))]:
19544         #define to signed char in these cases too; this simplifies
19545         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
19546         etc., separately) and makes it more conservative.
19547
19548 2006-01-25  Simon Josefsson  <jas@extundo.com>
19549
19550         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
19551         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
19552         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
19553
19554 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19555
19556         * lib/argp-namefrob.h: Bugfix. Remove stray #
19557
19558 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
19559
19560         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
19561         so that we test the test.
19562         Check for yet another HP-UX cc bug involving *bool |= bool.
19563
19564 2006-01-25  Karl Berry  <karl@gnu.org>
19565
19566         * config/srclist.txt (vasnprintf.c): sync lost.
19567
19568 2006-01-25  Jim Meyering  <jim@meyering.net>
19569
19570         Sync from the stable (b5) branch of coreutils:
19571
19572         * lib/fts.c (fts_children): Don't let close() clobber errno from
19573         failed fchdir().
19574
19575         * lib/fts.c (fts_stat): When following a symlink-to-directory,
19576         don't necessarily interpret stat-fails+lstat-succeeds as indicating
19577         a dangling symlink.  That can also happen at least for ELOOP.
19578         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
19579         FYI, this bug predates the inclusion of fts.c in coreutils.
19580
19581         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
19582         in their own block, so pre-c99 compilers don't object.
19583
19584         Avoid the double-free (first in fts_read, second in fts_close) that
19585         would occur when an `active' directory is made inaccessible (e.g.,
19586         via chmod a-x) during a traversal.
19587         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
19588         before returning.  Reproduce this failure by
19589         mkdir -p a/b; cd a; chmod a-x . b
19590         Reported by Stavros Passas.
19591
19592 2006-01-25  Jim Meyering  <jim@meyering.net>
19593
19594         * lib/fileblocks.c: Remove more useless parentheses.
19595         * lib/readutmp.h: Likewise.
19596
19597 2006-01-25  Bruno Haible  <bruno@clisp.org>
19598
19599         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
19600         warnings.
19601         Reported by Paul Eggert.
19602
19603 2006-01-25  Bruno Haible  <bruno@clisp.org>
19604
19605         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
19606         rid of a trap command. For Solaris sh.
19607         Reported by Mark D. Baushke <mdb@gnu.org>.
19608
19609 2006-01-24  Simon Josefsson  <jas@extundo.com>
19610
19611         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
19612         Bruno.
19613
19614 2006-01-24  Karl Berry  <karl@gnu.org>
19615
19616         * config/srclist.txt (argp-namefrob.h): sync lost.
19617
19618 2006-01-24  Jim Meyering  <jim@meyering.net>
19619
19620         * modules/openat (Files): Add lib/intprops.h.
19621         From Mark D. Baushke.
19622
19623 2006-01-24  Jim Meyering  <jim@meyering.net>
19624
19625         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
19626         Reported by Mark D. Baushke.
19627
19628 2006-01-24  Jim Meyering  <jim@meyering.net>
19629
19630         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
19631
19632 2006-01-24  Bruno Haible  <bruno@clisp.org>
19633
19634         * modules/strnlen (Maintainer): Change from glibc to all.
19635
19636 2006-01-24  Bruno Haible  <bruno@clisp.org>
19637
19638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
19639         Patch by Paul Eggert.
19640
19641 2006-01-24  Bruno Haible  <bruno@clisp.org>
19642
19643         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
19644         already has it.
19645         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
19646         2005-11-26.
19647
19648         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
19649         'signed char' to avoid problems with the built-in _Bool type.
19650         Reported by Paul Eggert on 2005-11-26.
19651
19652 2006-01-24  Bruno Haible  <bruno@clisp.org>
19653
19654         * gnulib-tool (func_import): Avoid constructing complicated sed
19655         expressions inside backquote.
19656         Report and solution by Mark D. Baushke <mdb@gnu.org>.
19657
19658 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
19659
19660         These changes imported from libc.
19661         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
19662         test and two separate function calls.
19663         * lib/strndup.c (__strndup): Add libc_hidden_def.
19664
19665 2006-01-23  Simon Josefsson  <jas@extundo.com>
19666
19667         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
19668         Remove the test_*_SOURCES variable: automake infers it by default.
19669         * modules/tls-tests: Likewise.
19670
19671 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19672
19673         Work around porting bugs reported by Dieter in
19674         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
19675         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
19676         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
19677         Include "getopt.h" first, to check interface.
19678         (getenv): Declare only if defined HAVE_DECL_GETENV &&
19679         !HAVE_DECL_GETENV.
19680         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
19681         (__strndup): Revert to K&R-style function dfns, the glibc style.
19682         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
19683         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
19684         Include strnlen.h first, to get prototype properly.
19685         (strnlen): Renamed from __strnlen.
19686         Remove weak alias.
19687
19688 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19689
19690         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
19691
19692 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19693
19694         * config/srclist.txt: Adjust to reflect glibc reorganization.
19695         This affects only comments.
19696
19697 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
19698
19699          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
19700          Reported by Bruce Korb <bkorb@gnu.org>.
19701
19702 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19703
19704         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
19705         to pacify gcc -Wswitch-default.
19706
19707 2006-01-22  Bruno Haible  <bruno@clisp.org>
19708
19709         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
19710         temporary buffer for sprintf, take into account the precision also
19711         for 'd', 'i', 'u', 'o', 'x', 'X'.
19712
19713 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
19714
19715         * modules/argp-tests: New module
19716         * tests/test-argp.c: New file
19717         * tests/test-argp-2.sh: New file
19718
19719 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
19720
19721         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
19722         (__argp_base_name): Removed
19723         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
19724         typo.
19725         (__argp_base_name): Provide macro definition or extern declaration
19726         depending on the configuration
19727
19728 2006-01-20  Simon Josefsson  <jas@extundo.com>
19729
19730         * modules/inet_ntop (Depends-on): Depend on sys_socket.
19731
19732 2006-01-20  Simon Josefsson  <jas@extundo.com>
19733
19734         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
19735
19736 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19737
19738         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
19739         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
19740         Suggested by Bruno Haible.
19741
19742 2006-01-20  Karl Berry  <karl@gnu.org>
19743
19744         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
19745         until changes propagate, I guess.
19746
19747 2006-01-19  Simon Josefsson  <jas@extundo.com>
19748
19749         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
19750
19751 2006-01-19  Simon Josefsson  <jas@extundo.com>
19752
19753         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
19754
19755 2006-01-19  Simon Josefsson  <jas@extundo.com>
19756
19757         * gnulib-tool: Set check_PROGRAMS.
19758
19759         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
19760         modules/des-tests, modules/gc-arcfour-tests,
19761         modules/gc-arctwo-tests, modules/gc-des-tests,
19762         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
19763         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
19764         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
19765         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
19766         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
19767         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
19768         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
19769         test_*_SOURCES.
19770
19771 2006-01-18  Simon Josefsson  <jas@extundo.com>
19772
19773         * modules/socklen (Depends-on): Depend on sys_socket.
19774
19775 2006-01-18  Simon Josefsson  <jas@extundo.com>
19776
19777         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
19778         modules/des-tests, modules/gc-arcfour-tests,
19779         modules/gc-arctwo-tests, modules/gc-des-tests,
19780         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
19781         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
19782         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
19783         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
19784         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
19785         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
19786         $(EXEEXT) to automake TESTS variable, for mingw32.
19787
19788 2006-01-17  Simon Josefsson  <jas@extundo.com>
19789
19790         * modules/socklen (Include): Need sys/socket.h.
19791
19792 2006-01-17  Bruno Haible  <bruno@clisp.org>
19793
19794         * modules/ssize_t (Include): Add <sys/types.h>.
19795
19796 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
19797
19798         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
19799         it's not portable and it doesn't work with cross-compiles.
19800         Problem reported by Bruno Haible.  Fix missing-$ typo in
19801         'test "gl_cv_ignore_unused_libraries" ...' that prevented
19802         -zignore from being used with Sun's C compiler.
19803
19804 2006-01-12  Simon Josefsson  <jas@extundo.com>
19805
19806         * lib/base64.c: Fix warning, reported by Bruno Haible
19807         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
19808
19809 2006-01-12  Bruno Haible  <bruno@clisp.org>
19810
19811         * modules/ldd: New file.
19812         * build-aux/ldd.sh.in: New file.
19813         * MODULES.html.sh (Support for building libraries and executables): Add
19814         ldd.
19815
19816 2006-01-12  Bruno Haible  <bruno@clisp.org>
19817
19818         * m4/ldd.m4: New file.
19819
19820 2006-01-12  Bruno Haible  <bruno@clisp.org>
19821
19822         * gnulib-tool (func_import, func_create_testdir): Don't go into an
19823         endless loop while replacing $auxdir with build-aux.
19824
19825 2006-01-11  Simon Josefsson  <jas@extundo.com>
19826
19827         * lib/stdint_.h (SIZE_MAX): Add missing (.
19828
19829 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19830
19831         Sync from coreutils.
19832         * lib/md5.c: Fix commentary typos.
19833         (alignof, UNALIGNED_P): No need for a GCC-specific version.
19834         * lib/md5.h (__attribute__): Remove; unused.
19835         * lib/sha1.c: Fix commentary to match md5 better.
19836         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
19837         so that we don't need to worry about alignment.  All uses changed.
19838         This merges the 2005-10-28 md5 change into sha1.
19839
19840 2006-01-11  Jim Meyering  <jim@meyering.net>
19841
19842         Sync from coreutils.
19843         * lib/md5.c (OP): Fix spacing.
19844
19845 2006-01-11  Bruno Haible  <bruno@clisp.org>
19846
19847         Ensure automatic ordering between gl_LOCK and gl_ARGP.
19848         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
19849         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
19850
19851 2006-01-11  Bruno Haible  <bruno@clisp.org>
19852
19853         Ensure automatic ordering between gl_LOCK and gl_ARGP.
19854         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
19855         the "early" section as well.
19856
19857 2006-01-11  Bruno Haible  <bruno@clisp.org>
19858
19859         Avoid "ar: no archive members specified" error on MacOS X.
19860         * gnulib-tool (func_modules_add_dummy): New function.
19861         (func_import, func_create_testdir): Invoke it.
19862
19863 2006-01-11  Bruno Haible  <bruno@clisp.org>
19864
19865         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
19866         with $auxdir in AC_CONFIG_FILES statements.
19867
19868 2006-01-11  Bruno Haible  <bruno@clisp.org>
19869
19870         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19871         Initialize also noinst_HEADERS to empty.
19872
19873 2006-01-11  Bruno Haible  <bruno@clisp.org>
19874
19875         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
19876         variables.
19877         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
19878         autoreconf.
19879
19880 2006-01-11  Bruno Haible  <bruno@clisp.org>
19881
19882         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
19883         overridable by the user.
19884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19885
19886 2006-01-10  Simon Josefsson  <jas@extundo.com>
19887
19888         * modules/sys_socket: New file.
19889
19890 2006-01-10  Simon Josefsson  <jas@extundo.com>
19891
19892         * m4/sys_socket_h.m4: New file.
19893
19894 2006-01-10  Simon Josefsson  <jas@extundo.com>
19895
19896         * lib/socket_.h: New file.
19897
19898 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19899
19900         * modules/readutmp (Maintainer): Add myself.
19901
19902 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19903
19904         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
19905         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
19906         People who are still concerned with buggy memcmp implementations
19907         can invoke gl_FUNC_MEMCMP themselves.
19908
19909 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19910
19911         * lib/regex_internal.h (BITSET_WORD_BITS):
19912         Work around a bug in 64-bit PGC (before version 6.1-2), where the
19913         preprocessor mishandles large unsigned values as if they were signed.
19914         Problem reported by Claudio Fontana in
19915         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
19916
19917 2006-01-10  Jim Meyering  <jim@meyering.net>
19918
19919         Avoid the double-free (first in fts_read, second in fts_close) that
19920         would occur when an `active' directory is made inaccessible (e.g.,
19921         via chmod a-x) during a traversal.
19922         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
19923         before returning.  Reproduce this failure by
19924         mkdir -p a/b; cd a; chmod a-x . b
19925         Reported by Stavros Passas.
19926
19927         Sync from coreutils.
19928         * lib/sha1.c: Tweak grammar in a comment.
19929
19930 2006-01-10  Jim Meyering  <jim@meyering.net>
19931
19932         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
19933         Patch by Joerg Sonnenberger.
19934
19935 2006-01-10  Bruno Haible  <bruno@clisp.org>
19936
19937         * modules/readutmp: Depend on module free.
19938         * modules/strtok_r: Depend on module restrict.
19939
19940 2006-01-10  Bruno Haible  <bruno@clisp.org>
19941
19942         * modules/gettext (configure.ac): Add an invocation of
19943         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
19944
19945 2006-01-10  Bruno Haible  <bruno@clisp.org>
19946
19947         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
19948         Reported by Werner Lemberg <wl@gnu.org>.
19949
19950 2006-01-10  Bruno Haible  <bruno@clisp.org>
19951
19952         * lib/localcharset.c: Update from GNU gettext.
19953
19954 2006-01-10  Bruno Haible  <bruno@clisp.org>
19955
19956         * lib/argp.h (__const): Remove macro. Use const instead.
19957         * lib/argp-fmtstream.h (__const): Likewise.
19958         * lib/glob_.h (__const): Remove macro.
19959         * lib/glob-libc.h: Use const instead of __const.
19960
19961 2006-01-10  Bruno Haible  <bruno@clisp.org>
19962
19963         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
19964         variable.
19965         Needed to avoid an automake error regarding the 'gettext' module.
19966
19967 2006-01-09  Simon Josefsson  <jas@extundo.com>
19968
19969         * modules/inet_ntop (Depends-on): Add restrict.
19970
19971 2006-01-09  Simon Josefsson  <jas@extundo.com>
19972
19973         * modules/gc-rijndael-tests (License): Put under LGPL.
19974
19975         * modules/gc-des-tests (License): Likewise.
19976
19977         * modules/gc-arcfour-tests (License): Likewise.
19978
19979         * modules/gc-arctwo-tests (License): Likewise.
19980
19981         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
19982
19983         * modules/gc-hmac-sha1-tests (Files): Likewise.
19984
19985         * modules/gc-hmac-md5-tests (License): Likewise.
19986
19987         * modules/gc-sha1-tests (License): Likewise.
19988
19989         * modules/gc-md5-tests (License): Likewise.
19990
19991         * modules/gc-md4-tests (License): Likewise.
19992
19993         * modules/gc-md2-tests (License): Likewise.
19994
19995         * modules/gc-tests (License): Likewise.
19996
19997         * modules/des-tests (License): Likewise.
19998
19999         * modules/md4-tests (License): Likewise.
20000
20001         * modules/md2-tests (License): Likewise.
20002
20003 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20004
20005         Sync from coreutils:
20006
20007         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
20008         * modules/lib-ignore: New file.
20009         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
20010         chdir-safer.m4, lchmod.m4.
20011         * modules/openat: Add mkdirat.c, openat-priv.h.
20012
20013 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20014
20015         Sync from coreutils.
20016         * m4/lib-ignore.m4: New file.
20017         * m4/lchmod.m4: New file.
20018
20019 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20020
20021         Sync from coreutils.
20022         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
20023         for write access: POSIX says that must fail.
20024         * lib/fts.c (diropen): Likewise.
20025         * lib/save-cwd.c (save_cwd): Likewise.
20026         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
20027         well, for minor improvements on hosts that lack O_DIRECTORY.
20028         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
20029         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
20030         Fall back on chown if open failed with EACCES.
20031
20032         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
20033         Report an error at compile-time if only a 1-second nominal clock
20034         resolution is found.
20035
20036         * lib/lchmod.h: New file.
20037         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
20038         (make_dir_parents): Use lchown rather than chown, and
20039         lchmod rather than chmod.
20040
20041         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
20042         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
20043         "proc" reported by n0dalus.
20044
20045         * lib/mountlist.c: Include <limits.h>.
20046         (dev_from_mount_options)
20047         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
20048         New function.  It no longer assumes "dev=" has the System V meaning
20049         on Linux (since it doesn't).  It also parses "dev=" more carefully.
20050         (read_file_system_list)
20051         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
20052         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
20053         dev= in that case.
20054
20055         * lib/posixtm.h (PDS_PRE_2000): New macro.
20056         * lib/posixtm.c (year): Arg is now syntax_bits rather than
20057         allow_century.  All usages changed.  Reject dates outside the range
20058         1969-1999 if PDS_PRE_2000 is used.
20059
20060 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20061
20062         Sync from coreutils.
20063         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
20064         (Time of day items): Mention the possibility of leap seconds.
20065         Problem reported by Dr. David Alan Gilbert.
20066
20067 2006-01-09  Jim Meyering  <jim@meyering.net>
20068
20069         Sync from coreutils.
20070
20071         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
20072
20073         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
20074
20075         * lib/modechange.c (mode_compile): Reject an invalid mode string
20076         that starts with an octal digit.  From Andreas Gruenbacher.
20077
20078         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
20079         and dup to open_safer and dup_safer, respectively.
20080         (openat_permissive): Fix typo in comment.
20081
20082         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
20083         "gettext.h"; either no longer needed or are guaranteed by openat.h.
20084         (_): Remove; no longer needed.
20085         (openat): Renamed from rpl_openat; no need for rpl_openat
20086         since openat.h renames openat for us.
20087         Replace most of the body with a call to openat_permissive,
20088         to avoid duplicate code.
20089         Port to (probably hypothetical) environments were mode_t is
20090         wider than int.
20091         (openat_permissive): Require mode arg, so that we can check
20092         types better.  Put it just after flags.  Change cwd failure
20093         indicator from pointer-to-bool to pointer-to-errno-value.
20094         All callers changed.
20095         Invoke openat_save_fail and/or openat_restore_fail if
20096         cwd_errno is null, so that openat can call us.
20097         (openat_permissive, fdopendir, fstatat, unlinkat):
20098         Simplify errno handling to avoid some duplicate code,
20099         as it's OK to set errno on success.
20100         * lib/openat.h: Revamp code so that function macros depend on
20101         __OPENAT_PREFIX only, not also on AT_FDCWD.
20102         (openat_ro): Remove.  Caller changed to use openat_permissive.
20103         (openat_permissive): Now a macro, if not a function.
20104         (openat_restore_fail, openat_save_fail): Now always functions,
20105         since mkdirat needs them even if __OPENAT_PREFIX is defined.
20106
20107         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
20108         and openat.c.
20109         * lib/mkdirat.c: Include openat-priv.h.
20110         Remove definitions of macros defined therein.
20111         * lib/openat.c: Likewise.
20112
20113         * lib/mkdirat.c (mkdirat): New file and function.
20114         * lib/openat.h (mkdirat): Declare.
20115
20116         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
20117
20118         * lib/openat.h (openat_permissive): Declare.
20119         (openat_ro): Define.
20120
20121         * lib/openat.c (EXPECTED_ERRNO): New macro.
20122         (openat_permissive): New function -- used in remove.c rewrite.
20123         (all functions): Set errno just before returning, only if there
20124         was an actual failure.
20125         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
20126
20127         Emulate openat-family functions using Linux's procfs, if possible.
20128         Idea and some code based on Ulrich Drepper's glibc changes.
20129
20130         * lib/openat.c: (BUILD_PROC_NAME): New macro.
20131         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
20132         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
20133         before falling back on save_cwd and restore_cwd.
20134         (fdopendir, fstatat, unlinkat): Likewise.
20135
20136         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
20137         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
20138
20139         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
20140         as second argument to va_arg.  Otherwise, some versions of gcc
20141         warn that `if this code is reached, the program will abort'.
20142
20143 2006-01-09  Jim Meyering  <jim@meyering.net>
20144
20145         Sync from coreutils.
20146         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
20147         Require openat-priv.h.
20148
20149 2006-01-09  Bruno Haible  <bruno@clisp.org>
20150
20151         * modules/strnlen (Include): Use strnlen.h.
20152
20153 2006-01-09  Bruno Haible  <bruno@clisp.org>
20154
20155         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
20156
20157 2006-01-09  Bruno Haible  <bruno@clisp.org>
20158
20159         * lib/sysexit_.h (EX_OK): New macro.
20160         Suggested by Martin Lambers <marlam@marlam.de>.
20161
20162 2006-01-09  Bruno Haible  <bruno@clisp.org>
20163
20164         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
20165         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
20166
20167 2006-01-09  Bruno Haible  <bruno@clisp.org>
20168
20169         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
20170         numbers.
20171
20172 2006-01-09  Bruno Haible  <bruno@clisp.org>
20173
20174         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
20175         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
20176         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
20177         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
20178
20179 2006-01-09  Bruno Haible  <bruno@clisp.org>
20180
20181         * build-aux/javacomp.sh.in: New file, moved from lib/.
20182         * modules/javacomp-script (Files): Update.
20183         (configure.ac): Add AC_CONFIG_FILES invocation.
20184         (EXTRA_DIST): Remove variable.
20185
20186         * build-aux/javaexec.sh.in: New file, moved from lib/.
20187         * modules/javaexec (Files): Update.
20188         (configure.ac): Add AC_CONFIG_FILES invocation.
20189         (EXTRA_DIST): Remove javaexec.sh.in.
20190
20191         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
20192         * modules/csharpcomp-script (Files): Update.
20193         (configure.ac): Add AC_CONFIG_FILES invocation.
20194         (EXTRA_DIST): Remove variable.
20195
20196         * build-aux/csharpexec.sh.in: New file, moved from lib/.
20197         * modules/csharpexec (Files): Update.
20198         (configure.ac): Add AC_CONFIG_FILES invocation.
20199         (EXTRA_DIST): Remove csharpexec.sh.in.
20200
20201 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
20202
20203         Sync from coreutils.
20204
20205         Add POSIX ACL support
20206         * lib/acl.h (copy_acl, set_acl): Add declarations.
20207         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
20208         systems other than Linux.
20209         (chmod_or_fchmod): New function: use fchmod when possible,
20210         and chmod otherwise.
20211         (file_has_acl): Add a POSIX ACL implementation, with a
20212         Linux-specific subcase.
20213         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
20214         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
20215         acls are unsupported.
20216         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
20217         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
20218         are unsupported.
20219
20220 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
20221
20222         Sync from coreutils.
20223         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
20224
20225 2006-01-07  Bruno Haible  <bruno@clisp.org>
20226
20227         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
20228         gl_EARLY.
20229
20230 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20231
20232         * lib/strftime.c (tzname): Don't declare if it is already #defined.
20233         Problem reported for Mingw by Mark Junker.
20234
20235 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20236
20237         * README: Gnulib normally doesn't generate a tarball.
20238
20239 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20240
20241         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
20242         long int, not int, for nanosecond counts, so that people who are
20243         used to POSIX struct timespec won't be surprised.  Reported by Jim
20244         Meyering.
20245
20246 2005-12-28  Bruno Haible  <bruno@clisp.org>
20247
20248         * build-aux/config.rpath: Update from GNU gettext.
20249
20250 2005-12-16  Jim Meyering  <jim@meyering.net>
20251
20252         * modules/fprintftime: New module.
20253         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
20254
20255 2005-12-16  Jim Meyering  <jim@meyering.net>
20256
20257         * m4/fprintftime.m4: New file.
20258
20259 2005-12-16  Jim Meyering  <jim@meyering.net>
20260
20261         * lib/fprintftime.c, lib/fprintftime.h: New files.
20262
20263 2005-12-15  Simon Josefsson  <jas@extundo.com>
20264
20265         * modules/socklen (configure.ac): Fix M4 macro name, to align with
20266         new m4/socklen.m4.
20267
20268 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
20269
20270         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
20271         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
20272
20273 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
20274
20275         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
20276         * lib/argp-help.c (fill_in_uparams): Check if the constructed
20277         struct uparams is valid. Fall back to the default values if it is
20278         not.
20279
20280 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20281
20282         * modules/argp (Files): Add argp-pin.c
20283         (Depends-on): dirname
20284         (lib_SOURCES): Add argp-pin.c
20285
20286 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20287
20288         * m4/argp.m4:  Check if program_invocation_name and
20289         program_invocation_short_name are declared and define appropriate
20290         macros if they are not.
20291
20292 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20293
20294         * lib/argp-help.c (__argp_base_name): New function
20295         (__argp_short_program_name): Rewrite using __argp_base_name
20296         * lib/argp-namefrob.h: Define program_invocation_name and
20297         program_invocation_short_name if requested
20298         (__argp_base_name): Add prototype
20299         * lib/argp-parse.c (argp_def): Use gettext wrappers
20300         (argp_default_parser): Use __argp_base_name
20301         * lib/argp-pin.c: New file. Defines program_invocation_name and
20302         program_invocation_short_name on systems that lack them.
20303
20304 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20305
20306         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
20307         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
20308         porting problem reported by Georg Schwarz in
20309         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
20310
20311 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20312
20313         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
20314         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
20315         porting problem reported by Georg Schwarz in
20316         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
20317
20318 2005-12-05  Bruno Haible  <bruno@clisp.org>
20319
20320         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
20321         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
20322         Reported by Mark Junker <mjscod@gmx.de>.
20323
20324 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
20325
20326         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
20327         Use implementation from Albert Chin, with some
20328         comments/corrections by Stepan Kasal and myself.
20329
20330 2005-12-02  Bruno Haible  <bruno@clisp.org>
20331
20332         * gnulib-tool (func_import): Accept GPLed build tool modules when
20333         --lgpl is given.
20334         * modules/csharpcomp-script: New file.
20335         * modules/csharpcomp: Depend on it.
20336         * modules/javacomp-script: New file.
20337         * modules/javacomp: Depend on it.
20338         Suggested by Simon Josefsson.
20339
20340 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20341
20342         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
20343         statement, to work around an HP-UX 10.20 compiler bug reported by
20344         Peter O'Gorman.
20345
20346 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20347
20348         * modules/savedir (Depends-on): Add openat.
20349
20350 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20351
20352         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
20353         (uintmax_t) [defined uintmax_t]: Do not declare.
20354         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
20355         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
20356         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
20357         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
20358         sake of portability to weird hosts that C allows (though we don't
20359         know of any practical examples).
20360
20361         * lib/savedir.h (fdsavedir): New decl.
20362         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
20363         contains most of the former guts of savedir.
20364         (savedir): Use savedirstream.
20365         Include "openat.h".
20366
20367 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20368
20369         * modules/obstack (Files): Add m4/ulonglong.m4.
20370         Problem reported by Davide Angelocola.
20371
20372 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20373
20374         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
20375         coreutils no longer futzes with rounding modes.
20376
20377 2005-11-14  Jim Meyering  <jim@meyering.net>
20378
20379         * lib/mkstemp-safer.c: Include <config.h>, required for possible
20380         replacement of mkstemp.
20381
20382 2005-11-10  Simon Josefsson  <jas@extundo.com>
20383
20384         * lib/readline.c: Remove EOL.
20385
20386 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20387
20388         * modules/gethrxtime (Depends-on): Add gettime.
20389
20390 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20391
20392         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
20393         or gettimeofday; no longer needed.
20394
20395 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20396
20397         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
20398         time business.
20399         (gethrxtime) [! (HAVE_NANOUPTIME
20400         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
20401         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
20402         our own approximation.
20403
20404 2005-11-08  Eric Blake  <ebb9@byu.net>
20405
20406         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
20407
20408 2005-11-08  Eric Blake  <ebb9@byu.net>
20409
20410         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
20411
20412 2005-11-04  Bruno Haible  <bruno@clisp.org>
20413
20414         * gnulib-tool: Implement --update mode.
20415
20416 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20417
20418         Fix porting problem reported by Theodoros V. Kalamatianos.
20419         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
20420         Don't assume that futimes failing means we must fail.
20421
20422 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20423
20424         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
20425         variables to suggest the intended function of the PATH_MAX check.
20426
20427 2005-10-30  Kean Johnston  <jkj@sco.com>
20428
20429         Trivial changes to support SCO systems.
20430         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
20431         as PATH_MAX.
20432         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
20433         where __ptr is null when no I/O is pending.
20434
20435 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20436
20437         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
20438         leave errno alone.  Problem reported by Dmitry V. Levin.
20439
20440 2005-10-28  Simon Josefsson  <jas@extundo.com>
20441
20442         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
20443         Test more.
20444
20445         * tests/test-gc-md2.c, tests/test-md2.c: New files.
20446
20447         * modules/md2, modules/md2-tests: New files.
20448
20449 2005-10-28  Simon Josefsson  <jas@extundo.com>
20450
20451         * m4/inet_ntop.m4: More tests.
20452
20453         * m4/gc-md2.m4, md2.m4: New file.
20454
20455 2005-10-28  Simon Josefsson  <jas@extundo.com>
20456
20457         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
20458         "restrict" keywords, as per POSIX.  Protect the function
20459         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
20460         Don't use K&R prototypes.  Check the sprintf return values.
20461         Re-define EAFNOSUPPORT if not present.  Indent.
20462
20463         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
20464         suggested by Bruno Haible <bruno@clisp.org>.
20465
20466         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
20467
20468         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
20469
20470         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
20471         libgcrypt).
20472
20473         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
20474
20475         * lib/md2.h, lib/md2.c: New files.
20476
20477 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
20478
20479         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
20480         errno alone.  Problem reported by Frederic Jolliton.
20481
20482 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
20483
20484         * modules/verify (License): Change from GPL to LGPL.  This is a
20485         tiny module and there are apparently near-equivalents that are
20486         under the BSD license.
20487
20488 2005-10-24  Simon Josefsson  <jas@extundo.com>
20489
20490         * modules/sha1: Relicense to LGPL.
20491
20492 2005-10-24  Simon Josefsson  <jas@extundo.com>
20493
20494         * lib/md4.h: Shrink buffer size, now that we changed the type.
20495
20496 2005-10-23  Simon Josefsson  <jas@extundo.com>
20497
20498         * gnulib-tool (func_import): Fix --tests-base.
20499
20500 2005-10-22  Simon Josefsson  <jas@extundo.com>
20501
20502         * modules/arcfour (Depends-on): Need stdint.
20503
20504 2005-10-22  Simon Josefsson  <jas@extundo.com>
20505
20506         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
20507         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
20508
20509 2005-10-22  Simon Josefsson  <jas@extundo.com>
20510
20511         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
20512         suggested by Bruno Haible <bruno@clisp.org>.
20513
20514 2005-10-22  Simon Josefsson  <jas@extundo.com>
20515
20516         * lib/crc.h: Include stddef.h, for size_t.
20517
20518 2005-10-22  Simon Josefsson  <jas@extundo.com>
20519
20520         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
20521         arcfour_context struct (simplify test vector testing in GNU
20522         Shishi).
20523
20524 2005-10-21  Simon Josefsson  <jas@extundo.com>
20525
20526         * modules/des, modules/des-tests: New files.
20527
20528         * modules/gc-des, modules/gc-des-tests: New files.
20529
20530         * tests/test-des.c, tests/test-gc-des.c: New file.
20531
20532 2005-10-21  Simon Josefsson  <jas@extundo.com>
20533
20534         * modules/arctwo, modules/arctwo-tests: New files.
20535
20536         * tests/test-arctwo.c: New file.
20537
20538         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
20539
20540         * tests/test-gc-arctwo.c: New file.
20541
20542 2005-10-21  Simon Josefsson  <jas@extundo.com>
20543
20544         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
20545         Bruno Haible <bruno@clisp.org>.
20546
20547         * m4/gc-des.m4: New file.
20548
20549 2005-10-21  Simon Josefsson  <jas@extundo.com>
20550
20551         * m4/arctwo.m4: New file.
20552
20553         * m4/gc-arctwo.m4: New file.
20554
20555 2005-10-21  Simon Josefsson  <jas@extundo.com>
20556
20557         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
20558         block.
20559
20560 2005-10-21  Simon Josefsson  <jas@extundo.com>
20561
20562         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
20563         <bruno@clisp.org>.
20564
20565         * lib/hmac-sha1.c (hmac_sha1): Likewise.
20566
20567         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
20568         Bruno Haible <bruno@clisp.org>.
20569
20570         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
20571         <bruno@clisp.org>.
20572
20573 2005-10-21  Simon Josefsson  <jas@extundo.com>
20574
20575         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
20576
20577 2005-10-21  Simon Josefsson  <jas@extundo.com>
20578
20579         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
20580
20581 2005-10-21  Simon Josefsson  <jas@extundo.com>
20582
20583         * lib/des.h, lib/des.c: New files.
20584
20585         * lib/gc-gnulib.c: Support DES.c
20586
20587 2005-10-21  Simon Josefsson  <jas@extundo.com>
20588
20589         * lib/arctwo.h, lib/arctwo.c: New files.
20590
20591         * lib/gc-gnulib.c: Support ARCTWO.
20592
20593 2005-10-21  Simon Josefsson  <jas@extundo.com>
20594
20595         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
20596         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20597
20598 2005-10-21  Simon Josefsson  <jas@extundo.com>
20599
20600         * gnulib-tool (func_import, func_create_testdir): Define automake
20601         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
20602         Makefile.am snippet),
20603         suggested by Bruno Haible <bruno@clisp.org>.
20604
20605         * modules/gc (Makefile.am): Use it.
20606
20607 2005-10-21  Bruno Haible  <bruno@clisp.org>
20608
20609         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
20610         patch.
20611
20612 2005-10-19  Simon Josefsson  <jas@extundo.com>
20613
20614         * tests/test-gc-rijndael.c: New file.
20615
20616         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
20617
20618 2005-10-19  Simon Josefsson  <jas@extundo.com>
20619
20620         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
20621         interface too.
20622
20623 2005-10-19  Simon Josefsson  <jas@extundo.com>
20624
20625         * tests/test-gc-arcfour.c: New file.
20626
20627         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
20628
20629 2005-10-19  Simon Josefsson  <jas@extundo.com>
20630
20631         * modules/gc-md4, modules/gc-md4-tests: New file.
20632
20633         * tests/test-gc-md4.c: New file.
20634
20635 2005-10-19  Simon Josefsson  <jas@extundo.com>
20636
20637         * m4/gc-md4.m4: New file.
20638
20639 2005-10-19  Simon Josefsson  <jas@extundo.com>
20640
20641         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
20642         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
20643         <kasal@ucw.cz>.
20644
20645 2005-10-19  Simon Josefsson  <jas@extundo.com>
20646
20647         * m4/gc-arcfour.m4: New file.
20648
20649         * m4/gc-rijndael.m4: New file.
20650
20651 2005-10-19  Simon Josefsson  <jas@extundo.com>
20652
20653         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
20654
20655 2005-10-19  Simon Josefsson  <jas@extundo.com>
20656
20657         * lib/gc-gnulib.c: Support ARCFOUR.
20658
20659 2005-10-19  Simon Josefsson  <jas@extundo.com>
20660
20661         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
20662         support.
20663
20664         * lib/gc.h: Add ECB enum type.
20665
20666         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
20667
20668 2005-10-18  Simon Josefsson  <jas@extundo.com>
20669
20670         * tests/test-md5.c: New file.
20671
20672         * modules/md5-tests: New file.
20673
20674 2005-10-18  Simon Josefsson  <jas@extundo.com>
20675
20676         * tests/test-md4.c: New file.
20677
20678         * modules/md4, modules/md4-tests: New files.
20679
20680 2005-10-18  Simon Josefsson  <jas@extundo.com>
20681
20682         * m4/md4.m4: New file.
20683
20684 2005-10-18  Simon Josefsson  <jas@extundo.com>
20685
20686         * lib/md4.h, lib/md4.c: New files, based on md5.?.
20687
20688 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
20689
20690         * gnulib-tool (func_create_testdir): Omit the second check whether
20691         BUILT_SOURCES in nonempty.
20692
20693 2005-10-17  Simon Josefsson  <jas@extundo.com>
20694
20695         * tests/test-rijndael.c: New file.
20696
20697 2005-10-17  Simon Josefsson  <jas@extundo.com>
20698
20699         * modules/sha1: Depend on stdint instead of md5.
20700
20701         * modules/md5: Depend on stdint, remove uint32_t.
20702
20703 2005-10-17  Simon Josefsson  <jas@extundo.com>
20704
20705         * modules/gc-sha1-tests: New file.
20706
20707         * tests/test-gc-sha1.c: New file.
20708
20709 2005-10-17  Simon Josefsson  <jas@extundo.com>
20710
20711         * m4/md5.m4: Remove call to uint32_t.m4.
20712
20713 2005-10-17  Simon Josefsson  <jas@extundo.com>
20714
20715         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
20716
20717         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
20718         md5.h.
20719
20720         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
20721
20722         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
20723
20724 2005-10-17  Simon Josefsson  <jas@extundo.com>
20725
20726         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
20727
20728 2005-10-17  Simon Josefsson  <jas@extundo.com>
20729
20730         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
20731
20732 2005-10-17  Simon Josefsson  <jas@extundo.com>
20733
20734         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
20735
20736         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
20737
20738 2005-10-17  Bruno Haible  <bruno@clisp.org>
20739
20740         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
20741         that it can also be used in a test.
20742
20743 2005-10-16  Bruno Haible  <bruno@clisp.org>
20744
20745         * gnulib-tool (func_emit_tests_Makefile_am): Also define
20746         TESTS_ENVIRONMENT, so that individual tests can augment it.
20747
20748         * gnulib-tool (func_create_testdir): Use an intermediate target for
20749         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
20750         macros, like $(ALLOCA_H), which cannot be passed through the command
20751         line.
20752
20753 2005-10-15  Simon Josefsson  <jas@extundo.com>
20754
20755         * modules/rijndael-tests: New file.
20756
20757         * modules/rijndael: New file.
20758
20759 2005-10-15  Simon Josefsson  <jas@extundo.com>
20760
20761         * m4/rijndael.m4: New file.
20762
20763 2005-10-15  Simon Josefsson  <jas@extundo.com>
20764
20765         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
20766
20767         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
20768
20769 2005-10-14  Simon Josefsson  <jas@extundo.com>
20770
20771         * tests/test-arcfour.c: New file.
20772
20773         * modules/arcfour, modules/arcfour-tests: New files.
20774
20775 2005-10-14  Simon Josefsson  <jas@extundo.com>
20776
20777         * m4/arcfour.m4: New file.
20778
20779 2005-10-14  Simon Josefsson  <jas@extundo.com>
20780
20781         * lib/arcfour.h, lib/arcfour.c: New files.
20782
20783 2005-10-14  Roland McGrath  <roland@redhat.com>
20784
20785         Import from libc.  [BZ #1331]
20786         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
20787         macro argument.
20788         Reported by Matej Vela <vela@debian.org>.
20789
20790 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20791
20792         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
20793         include <wchar.h>; no longer needed.
20794
20795 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20796
20797         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
20798
20799 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
20800         and  Ulrich Drepper  <drepper@redhat.com>
20801
20802         Import from libc.
20803         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
20804         instead of inline stream orientation test and two separate
20805         function calls.  Pay no attention to USE_IN_LIBIO.
20806
20807 2005-10-13  Simon Josefsson  <jas@extundo.com>
20808
20809         * modules/gc-hmac-md5-tests: New file.
20810
20811         * tests/test-gc-hmac-sha1.c: New file.
20812
20813         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
20814
20815         * modules/gc-hmac-md5-tests: New file.
20816
20817         * tests/test-gc-md5.c: New file.
20818
20819         * modules/gc-md5-tests: New file.
20820
20821 2005-10-13  Simon Josefsson  <jas@extundo.com>
20822
20823         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
20824         Move memory allocation outside of loop.
20825
20826 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20827
20828         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
20829         intermediate directory is in a read-only file system.  Problem
20830         reported by Eric Blake.
20831
20832 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
20833
20834         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
20835
20836 2005-10-12  Simon Josefsson  <jas@extundo.com>
20837
20838         * tests/test-hmac-sha1.c: New file.
20839
20840         * modules/hmac-sha1-tests: New file.
20841
20842         * modules/hmac-sha1: New file.
20843
20844 2005-10-12  Simon Josefsson  <jas@extundo.com>
20845
20846         * modules/gc-sha1: New file.
20847
20848 2005-10-12  Simon Josefsson  <jas@extundo.com>
20849
20850         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
20851
20852         * tests/test-gc-pbkdf2-sha1.c: New file.
20853
20854 2005-10-12  Simon Josefsson  <jas@extundo.com>
20855
20856         * modules/gc-md5, modules/gc-hmac-md5: New files.
20857
20858         * modules/gc (Files): Remove md5, memxor and hmac files.
20859
20860 2005-10-12  Simon Josefsson  <jas@extundo.com>
20861
20862         * m4/gc-pbkdf2-sha1.m4: New file.
20863
20864         * m4/gc-hmac-sha1.m4: New file.
20865
20866         * m4/gc-sha1: New file.
20867
20868         * m4/hmac-sha1.m4: New file.
20869
20870 2005-10-12  Simon Josefsson  <jas@extundo.com>
20871
20872         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
20873
20874         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
20875
20876 2005-10-12  Simon Josefsson  <jas@extundo.com>
20877
20878         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
20879         suggested by Bruno Haible <bruno@clisp.org>.
20880
20881 2005-10-12  Simon Josefsson  <jas@extundo.com>
20882
20883         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
20884
20885 2005-10-12  Simon Josefsson  <jas@extundo.com>
20886
20887         * lib/gc-pbkdf2-sha1.c: New file.
20888
20889         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
20890
20891 2005-10-12  Simon Josefsson  <jas@extundo.com>
20892
20893         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
20894
20895         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
20896
20897 2005-10-12  Simon Josefsson  <jas@extundo.com>
20898
20899         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
20900         GC_USE_HMAC_MD5, respectively.
20901
20902         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
20903         (gc_md5): Fix typo.
20904
20905         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
20906
20907         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
20908
20909         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
20910
20911 2005-10-12  Bruno Haible  <bruno@clisp.org>
20912
20913         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
20914         Reported by Stepan Kasal <kasal@ucw.cz>.
20915
20916 2005-10-11  Simon Josefsson  <jas@extundo.com>
20917
20918         * tests/test-crc.c: New file.
20919
20920         * modules/crc, modules/crc-tests: New files.
20921
20922 2005-10-11  Simon Josefsson  <jas@extundo.com>
20923
20924         * m4/crc.m4: New file.
20925
20926 2005-10-11  Simon Josefsson  <jas@extundo.com>
20927
20928         * lib/gc.h: Add gc_hash and gc_hash_buffer.
20929
20930         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
20931
20932         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
20933
20934 2005-10-11  Simon Josefsson  <jas@extundo.com>
20935
20936         * lib/crc.h, lib/crc.c: New files.
20937
20938         * lib/gc.h (gc_hash_buffer): Add doc.
20939
20940 2005-10-11  Bruno Haible  <bruno@clisp.org>
20941
20942         * modules/c-strcasestr: New file.
20943         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
20944
20945 2005-10-11  Bruno Haible  <bruno@clisp.org>
20946
20947         * modules/c-strcase: New file.
20948         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
20949
20950 2005-10-11  Bruno Haible  <bruno@clisp.org>
20951
20952         * lib/strcasecmp.c: Include limits.h.
20953         (strcasecmp): Avoid integer overflow on exotic platforms.
20954         * lib/strncasecmp.c: Include limits.h.
20955         (strncasecmp): Avoid integer overflow on exotic platforms.
20956         Reported by Paul Eggert.
20957
20958 2005-10-11  Bruno Haible  <bruno@clisp.org>
20959
20960         * lib/c-strcasestr.h: New file, from GNU gettext.
20961         * lib/c-strcasestr.c: New file, from GNU gettext.
20962
20963 2005-10-11  Bruno Haible  <bruno@clisp.org>
20964
20965         * lib/c-strcase.h: New file, from GNU gettext.
20966         * lib/c-strcasecmp.c: New file, from GNU gettext.
20967         * lib/c-strncasecmp.c: New file, from GNU gettext.
20968
20969 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20970
20971         * modules/mempcpy (License): GPL -> LGPL.
20972         * modules/strchrnul (License): Likewise.
20973         * modules/sysexits (License): Likewise.
20974
20975 2005-10-08  Simon Josefsson  <jas@extundo.com>
20976
20977         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
20978
20979 2005-10-07  Simon Josefsson  <jas@extundo.com>
20980
20981         * m4/memxor.m4: Remove gl_C_RESTRICT call.
20982
20983 2005-10-06  Simon Josefsson  <jas@extundo.com>
20984
20985         * tests/test-hmac-md5.c: New file.
20986
20987         * modules/hmac-md5-tests: New file.
20988
20989         * modules/hmac-md5: New file.
20990
20991 2005-10-06  Simon Josefsson  <jas@extundo.com>
20992
20993         * m4/hmac-md5.m4: New file.
20994
20995         * m4/memxor.m4: Require gl_C_RESTRICT.
20996
20997 2005-10-06  Simon Josefsson  <jas@extundo.com>
20998
20999         * lib/memxor.c (memxor): Avoid casts and warnings.
21000
21001 2005-10-06  Simon Josefsson  <jas@extundo.com>
21002
21003         * lib/hmac-md5.c: New file.
21004
21005         * lib/hmac.h: New file.
21006
21007 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21008
21009         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
21010         promotes to int, not unsigned int, to catch the AIX 5.3
21011         compiler bug.
21012
21013 2005-10-05  Simon Josefsson  <jas@extundo.com>
21014
21015         * modules/memxor: New file.
21016
21017         * modules/iconv (Files): Move config.rpath to havelib, it is used
21018         there.
21019
21020         * modules/havelib (Files): Add config.rpath.
21021
21022 2005-10-05  Simon Josefsson  <jas@extundo.com>
21023
21024         * m4/memxor.m4: New file.
21025
21026 2005-10-05  Simon Josefsson  <jas@extundo.com>
21027
21028         * lib/memxor.c (memxor): Fix compiler error.
21029
21030         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
21031         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
21032
21033         * lib/memxor.h, lib/memxor.c: New files.
21034
21035         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
21036         we assume all systems have it, suggested by Jim Meyering
21037         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
21038         any systems lack sys/socket.h; mingw32 is known to lack it, but we
21039         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
21040         same reasons.
21041
21042 2005-10-05  Simon Josefsson  <jas@extundo.com>
21043
21044         * config/srclist.txt: Add glibc bug 1423 for md5.h.
21045
21046 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21047
21048         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
21049         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
21050         needed, since the source code now assumes these .h files.
21051
21052 2005-10-05  Derek Price  <derek@ximbiot.com>
21053
21054         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
21055
21056 2005-10-05  Bruno Haible  <bruno@clisp.org>
21057
21058         * modules/stdint (License): Change to LGPL.
21059
21060 2005-10-04  Simon Josefsson  <jas@extundo.com>
21061
21062         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
21063         D. Baushke" <mdb@gnu.org>.
21064
21065 2005-10-04  Bruno Haible  <bruno@clisp.org>
21066
21067         * lib/verify.h (verify_true): Provide alternative definition for C++.
21068
21069 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21070
21071         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
21072         (SSIZE_MAX): New macro, if not already defined.
21073         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
21074         than 2 GiB.
21075
21076 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21077
21078         Sync from coreutils.
21079         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
21080         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
21081         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
21082         ULLONG_MAX doesn't work with 2.7.2.1.
21083
21084 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21085
21086         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
21087         From Ben Pfaff.
21088
21089         * modules/exclude (Depends-on): Depend on verify.
21090         * modules/strtoimax (Depends-on): Likewise.
21091         * modules/utimecmp (Depends-on): Likewise.
21092
21093 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21094
21095         * lib/exclude.c: Include verify.h.
21096         (verify): Remove.  All callers changed to use verify.h's version.
21097         * lib/strtoimax.c: Likewise.
21098         * lib/utimecmp.c: Likewis.e
21099
21100         Sync from coreutils.
21101         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
21102         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
21103         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
21104         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
21105         bother returning ENOSYS if settimeofday or stime fails; just let
21106         them return whatever errno they want to return.
21107         * lib/utimens.c: Include unistd.h, for dup2.
21108         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
21109         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
21110
21111 2005-10-02  Jim Meyering  <jim@meyering.net>
21112
21113         Sync from coreutils.
21114         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
21115         from glibc-2.2.5 that fails for read-only files.
21116
21117 2005-10-02  Jim Meyering  <jim@meyering.net>
21118
21119         Sync from coreutils.
21120         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
21121         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
21122         `#if HAVE_CONFIG_H'.
21123         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
21124         Remove AT_FDCWD test.
21125         Do not consume the fd unless successful.
21126         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
21127         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
21128         block, so that we don't even try to compile it if settimeofday is
21129         available.  This works around a compilation failure on OSF1 V5.1,
21130         due to stime requiring a `long int*' while tv_sec is `int'.
21131
21132 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
21133
21134         Sync from coreutils.
21135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
21136         against `yes', rather than just testing for nonempty.
21137
21138 2005-10-01  Simon Josefsson  <jas@extundo.com>
21139
21140         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
21141         and Darwin.
21142
21143         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
21144         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
21145         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
21146         freeaddrinfo and gai_strerror are declared by the POSIX headers.
21147         Check if struct addrinfo is declared.
21148
21149 2005-10-01  Simon Josefsson  <jas@extundo.com>
21150
21151         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
21152         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
21153         AI_* and EAI_* definitions.  Protect function declarations.
21154
21155 2005-10-01  Jim Meyering  <jim@meyering.net>
21156
21157         Sync from coreutils.
21158
21159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
21160         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
21161         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
21162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
21163         in the inet and nsl libraries.  Required on Solaris 5.7.
21164
21165 2005-10-01  Jim Meyering  <jim@meyering.net>
21166
21167         Sync from coreutils.
21168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
21169         in the inet and nsl libraries.  Required on Solaris 5.7.
21170
21171 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
21172
21173         * lib/getdelim.c (getdelim): Remove unused variables.
21174
21175 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21176
21177         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
21178         so that the code works even with ancient cpp.  Portability problem
21179         with GCC 2.7.2.1 reported by Thomas M.Ott.
21180
21181 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21182
21183         * modules/regex (Depends-on): Add strcase.
21184
21185         * modules/gethostname (Licence): Change from GPL to LGPL, since
21186         gethostname.c is a trivial implementation of a standard library
21187         function.
21188         * modules/poll (License): Change from GPL to LGPL, since it's
21189         derived from LGPL code.
21190
21191 2005-09-27  Jim Meyering  <jim@meyering.net>
21192
21193         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
21194         HAVE_CONFIG_H.
21195
21196         * lib/intprops.h (signed_type_or_expr__): Define.
21197         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
21198         for unsigned types.
21199
21200 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21201
21202         * lib/verify.h (verify_expr): Remove, replacing with:
21203         (verify_true): New macro that returns true instead of void.
21204         (verify_type__): Remove.
21205         (verify): Use verify_true rather than verify_type__.
21206
21207 2005-09-26  Bruno Haible  <bruno@clisp.org>
21208
21209         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
21210         is necessary.
21211         (lib_SOURCES): Remove mbchar.c.
21212         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
21213         (Files): Add m4/mbrtowc.m4.
21214         * modules/mbiter: Likewise.
21215         * modules/mbuiter: Likewise.
21216
21217 2005-09-26  Bruno Haible  <bruno@clisp.org>
21218
21219         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
21220         compile mbchar.c if they are not both present.
21221         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
21222         * m4/mbiter.m4 (gl_MBITER): Likewise.
21223         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
21224         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
21225         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
21226
21227 2005-09-25  Jim Meyering  <jim@meyering.net>
21228
21229         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
21230         also uses socklen_t.
21231
21232 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21233
21234         * lib/utimens.c (ENOSYS): Define if not already defined.
21235         (futimens): Support having a null PATH if the file descriptor
21236         is nonnegative.
21237
21238         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
21239         Remove.
21240         (__attribute): Define to empty unless GCC 3.1 or later.
21241         This works around a core dump on OpenBSD 3.4, which has GCC
21242         2.95.3, which dumps core when given __attribute__(()).  It also
21243         simplifies other tests, since we really don't want to bother with
21244         worrying about which ancient version of GCC supported what.
21245         Original problem reported by Yoann Vandoorselaere, with part of
21246         the fix suggested by Derek Price.
21247
21248 2005-09-24  Jim Meyering  <jim@meyering.net>
21249
21250         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
21251         so we can once again use a positive bitfield width of 1 -- now we
21252         don't have to explain why we were using a bitfield width of 2.
21253
21254 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
21255
21256         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
21257         and similarly for the other external symbols.  Problem reported
21258         by James Gallager.
21259
21260         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
21261         bug reported by Jim Meyering.
21262
21263         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
21264         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
21265         not needed, since socklen is a prerequisite module.
21266
21267 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
21268
21269         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
21270         Problem reported by Eric Blake.
21271         (getaddrinfo): Initialize se so that it's not garbage.
21272         Redo internal storage allocation so that it doesn't make unportable
21273         assumptions about alignment.
21274         Fix a memory leak.
21275
21276         * lib/utimens.c (futimens): Use futimesat if available.
21277         Prefer it to futimes since it doesn't have the futimes bug.
21278
21279         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
21280         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
21281         Instead, declare a function that returns a pointer to an array,
21282         and use verify_type__ to declare the size of the array.
21283         Problem and germ of a solution reported by Bruno Haible.
21284         (verify_type__): Use 2, not 1, for bitfield size, to avoid
21285         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
21286
21287 2005-09-23  Jim Meyering  <jim@meyering.net>
21288
21289         Sync from coreutils.
21290         Correct build failure (socklen_t not defined) on at least
21291         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
21292         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
21293
21294 2005-09-23  Jim Meyering  <jim@meyering.net>
21295
21296         * modules/getaddrinfo (Depends-on): Add socklen.
21297
21298 2005-09-23  Bruno Haible  <bruno@clisp.org>
21299
21300         * tests/test-verify.c: New file.
21301
21302 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21303
21304         Sync from coreutils.
21305
21306         * modules/argmatch (Depends-on): Add verify.
21307         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
21308         unistd-safer.
21309         * modules/save-cwd (Depends-on): Likewise.
21310
21311         * modules/openat (Files): Add lib/openat-die.c.
21312         (Depends-on): Remove error, exitfail.
21313         Add dirname.
21314
21315         * modules/verify: New file.
21316         * MODULES.html.sh (Diagnostics <assert.h>): New section,
21317         with "verify" module.
21318
21319 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21320
21321         Sync from coreutils.
21322
21323         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
21324         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
21325         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
21326         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
21327         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
21328         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
21329         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
21330         Don't bother checking for string.h, stdlib.h, unistd.h.
21331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
21332         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
21333         module's job.
21334         * m4/jm-macros.m4 (gl_MACROS): Likewise.
21335         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
21336
21337         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
21338         (gl_GETDATE): Use it.
21339
21340         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
21341
21342 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21343
21344         Sync from coreutils.
21345
21346         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
21347         stat-time.h.
21348         * lib/argmatch.h: Include verify.h
21349         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
21350         (ARGMATCH_ASSERT): Remove; unused.
21351         * lib/canonicalize.c: Assume STDC_HEADERS.
21352         * lib/exclude.c: Include "strcase.h".
21353         * lib/regex_internal.h [!defined _LIBC]: Likewise.
21354         * lib/getusershell.c: Include stdio--.h rather than stdio.h
21355         and stdio-safer.h.
21356         (getusershell): Call fopen, not fopen_safer.
21357         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
21358         Do not include unistd-safer.h.
21359         (save_cwd): Don't call fd_safer; no longer needed
21360         now that we include fcntl--.h.
21361
21362         * lib/getdate.y (relative_time): New type.
21363         (RELATIVE_TIME_0): New constant.
21364         (parser_control): Use relative_time instead of doing it ourselves.
21365         (%union): Add new relative_time rel member.
21366         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
21367         Now typeless.
21368         (relunit, relunit_snumber): Now of type rel.
21369         (zone, rel, relunit, get_date): Adjust to above changes.
21370
21371         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
21372         Do not include unistd-safer.h.
21373         (getloadavg): Don't call fd_safer; no longer needed
21374         now that we include fcntl--.h.
21375
21376         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
21377         (make_dir_parents): Treat ENOSYS like EEXIST.
21378
21379         Improve quality of diagnostics on restore_cwd failure.
21380         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
21381         (make_dir_parents): Last arg is now int * (for errno), not bool *.
21382         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
21383         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
21384         each time through the loop.  Do not diagnose restore_cwd failure;
21385         that is the caller's job (and perhaps the caller does not care).
21386
21387         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
21388         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
21389         If the file already exists but is not a directory, don't bother
21390         to try to make its parents.
21391         Close potential file descriptor leak if we can't chdir("/") (!).
21392         Don't always return true if chdir($PWD) fails; return true only
21393         if the requested action was done successfully (except for the
21394         chdir($PWD)).
21395         Don't log final directory unless we actually made it.
21396         Refactor to avoid duplicate code to fix up permissions.
21397         Don't attempt to fix up parent permissions if chdir($PWD) fails.
21398
21399         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
21400         to make it a bit faster and (I hope) clearer.
21401         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
21402         Fix bug in formats like %2N.
21403
21404         * lib/verify.h: New file.
21405
21406 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21407
21408         Sync from coreutils.
21409         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
21410
21411 2005-09-22  Jim Meyering  <jim@meyering.net>
21412
21413         Sync from coreutils.
21414
21415         * m4/lstat.m4 (gl_FUNC_LSTAT):
21416         Use AC_LIBSOURCES to require lstat.c and lstat.h.
21417         Remove obsolete comment.
21418         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
21419         * m4/xstrtod.m4: Likewise.
21420
21421         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
21422
21423 2005-09-22  Jim Meyering  <jim@meyering.net>
21424
21425         Sync from coreutils.
21426
21427         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
21428
21429         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
21430         the .tm_year member, since otherwise gcc-4.0 would now warn about
21431         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
21432
21433         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
21434         order to avoid an unsuppressible warning from gcc on 64-bit systems.
21435
21436         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
21437         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
21438         when run in a time zone for which daylight savings time is in effect
21439         for the starting date.
21440
21441         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
21442         stop us from restricting permissions of just-created absolute-named
21443         directories.
21444         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
21445         to restore initial working directory.
21446         * lib/mkdir-p.c (make_dir_parents): New parameter:
21447         different_working_dir, to tell caller if/when we change the working
21448         directory and are unable to return to the initial one.
21449         * lib/mkdir-p.h (make_dir_parents): Update prototype.
21450         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
21451         `return false'.  This fixes a bug introduced on 2004-07-30.
21452
21453         * lib/openat.c (fdopendir): Be sure to close the supplied
21454         file descriptor before returning.  This makes our replacement
21455         implementation a little closer to Solaris's, where fdopendir
21456         ties the file descriptor to the returned DIR* pointer.
21457         * lib/openat.c (unlinkat): New function.
21458         * lib/openat.h (unlinkat): Add prototype.
21459         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
21460         (openat_restore_fail): Rename from openat_restore_die.
21461         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
21462
21463         Provide an alternative to exiting immediately upon save_cwd or
21464         restore_cwd failure.  Now, an application can arrange e.g.,
21465         to perform a longjump in that case.
21466         * lib/openat.c: Include dirname.h.
21467         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
21468         (rpl_openat, fdopendir, fstatat): Call openat_save_die
21469         and openat_restore_die rather than calling error directly.
21470         Don't include "error.h" or "exitfail.h"; they're no longer needed.
21471
21472         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
21473         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
21474         define.
21475
21476         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
21477         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
21478                             int utc, int nanoseconds);
21479         Background:
21480         date should not have to allocate a megabyte of virtual memory to
21481         handle a format argument like +%1048575T.  When implemented with
21482         strftime, it must allocate such a buffer, use strftime to fill it
21483         in, print it, then free it.
21484         With fprintftime, it simply prints everything and exits.
21485         With no need for memory allocation, that's one fewer way to fail.
21486         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
21487         optional field width, not before, so we accept %9:z, not %:9z.
21488         (my_strftime): Be sure to use L_('x') for literals.
21489
21490         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
21491         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
21492         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
21493         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
21494         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
21495         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
21496         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
21497         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
21498         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
21499         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
21500         * lib/xgethostname.c, lib/xreadlink.c:
21501         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
21502
21503         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
21504         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
21505         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
21506         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
21507         and don't include <sys/file.h>).
21508
21509 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
21510
21511         Sync from coreutils.
21512
21513         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
21514         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
21515         [!LDAV_DONE]: Avoid unused variable warning.
21516
21517 2005-09-21  Bruno Haible  <bruno@clisp.org>
21518
21519         * lib/unicodeio.h (unicode_to_mb): New declaration.
21520
21521 2005-09-20  Derek Price  <derek@ximbiot.com>
21522
21523         * lib/getaddrinfo.c: Don't include <netdb.h> included from
21524         getaddrinfo.h.
21525
21526 2005-09-20  Bruno Haible  <bruno@clisp.org>
21527
21528         * gnulib-tool: Remove trailing slashes from the values specified for
21529         --source-base, --m4-base, --tests-base, --aux-dir.
21530         Suggested by Simon Josefsson <jas@extundo.com>.
21531
21532 2005-09-20  Bruno Haible  <bruno@clisp.org>
21533
21534         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
21535         func_modules_to_filelist, func_import, func_create_testdir): Make all
21536         sorting results locale-independent, so that gnulib-cache.m4 doesn't
21537         change when gnulib-tool is invoked in a different locale.
21538
21539 2005-09-19  Simon Josefsson  <jas@extundo.com>
21540
21541         * m4/socklen.m4: Fix typo.
21542
21543 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21544
21545         Use a consistent style for including <config.h>.
21546         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
21547         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
21548         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
21549         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
21550         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
21551         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
21552         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
21553         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
21554         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
21555         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
21556         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
21557         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
21558         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
21559         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
21560         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
21561         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
21562         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
21563         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
21564         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
21565         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
21566         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
21567         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
21568         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
21569         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
21570         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
21571         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
21572         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
21573         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
21574         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
21575         lib/xstrtoumax.c, lib/yesno.c:
21576         Standardize inclusion of config.h.
21577         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
21578         lib/inttostr.h:  Removed inclusion of config.h from header files.
21579         * lib/inttostr.c:  Adjusted in-tree users.
21580         * lib/timespec.h: Remove superfluous warning to include config.h.
21581         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
21582         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
21583         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
21584         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
21585         config.h with HAVE_CONFIG_H.
21586
21587 2005-09-19  Jim Meyering  <jim@meyering.net>
21588
21589         * modules/pathmax (License): Change to LGPL.
21590
21591 2005-09-19  Derek Price  <derek@ximbiot.com>
21592
21593         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
21594
21595 2005-09-19  Bruno Haible  <bruno@clisp.org>
21596
21597         * gnulib-tool (import): Provide default for --tests-base.
21598
21599 2005-09-19  Bruno Haible  <bruno@clisp.org>
21600
21601         * doc/quote.texi: New file, extracted from gnulib.texi.
21602         * doc/ctime.texi: New file, extracted from gnulib.texi.
21603         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
21604         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
21605         * doc/gnulib.texi: Include them.
21606
21607 2005-09-18  Bruno Haible  <bruno@clisp.org>
21608
21609         Portability fix.
21610         * gnulib-tool (func_readlink): New function.
21611         (func_ln_if_changed): Use it.
21612
21613 2005-09-18  Bruno Haible  <bruno@clisp.org>
21614
21615         * gnulib-tool: Support --with-tests also with --import.
21616         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
21617         (func_import): Use variables $testsbase and $inctests. Emit a
21618         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
21619         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
21620         SUBDIRS += $testsdir.
21621         (func_create_testdir): Update.
21622
21623 2005-09-18  Bruno Haible  <bruno@clisp.org>
21624
21625         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
21626         instead of $dry_run.
21627         (func_cp_if_changed, func_mv_if_changed): Remove functions.
21628         (func_ln_if_changed): Don't handle dry-run here.
21629         (func_import): In dry-run mode, detect more precisely which actions
21630         would be performed, and don't use "...ing" verbs.
21631
21632 2005-09-18  Bruno Haible  <bruno@clisp.org>
21633
21634         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
21635         (func_import): Use join on two temporary files instead of three nested
21636         loops, in order to determine which files are new or old.
21637
21638 2005-09-18  Bruno Haible  <bruno@clisp.org>
21639
21640         * gnulib-tool (func_import): Comment out code that spits out the
21641         new files with --dry-run.
21642
21643 2005-09-18  Bruno Haible  <bruno@clisp.org>
21644
21645         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
21646
21647 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21648
21649         * lib/stat-time.h: New file.
21650         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
21651         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
21652         in a different way.
21653         (timespec_cmp): New function.
21654         * lib/utimecmp.c: Include stat-time.h.
21655         (SYSCALL_RESOLUTION): Depend on whether various struct stat
21656         members exist, not on the obsolescent ST_MTIM_NSEC.
21657         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
21658
21659 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21660
21661         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
21662
21663 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21664
21665         * MODULES.html.sh (File system functions): Add stat-time.
21666         * modules/stat-time: New file.
21667         * modules/timespec (Files): Remove m4/st_mtim.m4; this
21668         is now done in a different way, by the stat-time module.
21669         * modules/utimecmp (Depends-on): Add stat-time.
21670
21671 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21672
21673         * m4/st_mtim.m4: Remove.  Superseded by...
21674         * m4/stat-time.m4: New file.
21675         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
21676         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
21677
21678 2005-09-15  Derek Price  <derek@ximbiot.com>
21679
21680         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
21681
21682 2005-09-15  Derek Price  <derek@ximbiot.com>
21683
21684         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
21685         * lib/regex_internal.c: Ditto, using this...
21686         (__GNUC_PREREQ): ...new macro.
21687         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
21688         using...
21689         (__GNUC_PREREQ): ...this new macro.
21690
21691         * lib/strstr.h: Include string.h. Define strstr as a macro here.
21692
21693 2005-09-15  Derek Price  <derek@ximbiot.com>
21694             Paul Eggert  <eggert@cs.ucla.edu>
21695
21696         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
21697         changes, consolidating in...
21698         * lib/regex_internal.h: ...this file.
21699
21700 2005-09-13  Jim Meyering  <jim@meyering.net>
21701
21702         * lib/canon-host.c: Filter through gnu indent and reword comments
21703         slightly.
21704         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
21705
21706 2005-09-13  Derek Price  <derek@ximbiot.com>
21707
21708         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
21709         failure.
21710         Reported by Jim Meyering  <jim@meyering.net>.
21711
21712 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
21713
21714         * lib/base64.c: Typo.
21715         (base64_encode): Put b64str in initialized data section.
21716
21717 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21718
21719         Merge glibc and coreutils changes into gnulib, plus a few
21720         extra fixes.
21721         * lib/md5.c: Use #error rather than a string.
21722         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
21723         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
21724         (__attribute__): Define to empty for non recent-GCC.
21725         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
21726         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
21727         Renamed from their non-__ counterparts, with new macros replacing
21728         them if not _LIBC.  Add __THROW attribute.
21729         (rol): Remove.
21730         (struct md5_ctx): Align buffer if using GCC.
21731         * lib/sha1.h (struct sha1_ctx): Likewise.
21732         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
21733         The old name was backwards.
21734         (NOTSWAP): Remove; not used.
21735         (rol): New macro, moved here from md5.h.
21736         (sha1_process_block): Remove a FIXME that doesn't make sense.
21737
21738 2005-09-12  Derek Price  <derek@ximbiot.com>
21739
21740         Return usable errors from canon-host.
21741         * lib/canon-host.h: New file.
21742         * lib/canon-host.c (canon_host): Wrap...
21743         (canon_host_r): ...this new function, which now relies exclusively on
21744         getaddrinfo.
21745         (ch_strerror): New function.
21746         (last_cherror): New global.
21747         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
21748         interface.
21749         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
21750         void *.
21751         (freeaddrinfo): Free ai->ai_canonname when set.
21752
21753 2005-09-12  Derek Price  <derek@ximbiot.com>
21754
21755         Make canon-host require getaddrinfo.
21756         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
21757         AC_LIBSOURCE canon-host.h.  Call...
21758         (gl_PREREQ_CANON_HOST): ...this new function, which requires
21759         gl_GETADDRINFO.
21760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
21761
21762 2005-09-12  Derek Price  <derek@ximbiot.com>
21763
21764         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
21765         LGPL.
21766         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
21767
21768 2005-09-12  Derek Price  <derek@ximbiot.com>
21769
21770         * lib/gai_strerror.c: Include config.h when available.  Include
21771         getaddrinfo.h before other headers to test interface.
21772         Reported by Larry Jones <lawrence.jones@ugs.com>.
21773
21774 2005-09-12  Derek Price  <derek@ximbiot.com>
21775             Paul Eggert  <eggert@cs.ucla.edu>
21776
21777         * modules/glob (Files): Add glob-libc.h.
21778
21779 2005-09-12  Derek Price  <derek@ximbiot.com>
21780             Paul Eggert  <eggert@cs.ucla.edu>
21781
21782         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
21783         glob_.h, glob-libc.h.
21784         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
21785
21786 2005-09-12  Derek Price  <derek@ximbiot.com>
21787             Paul Eggert  <eggert@cs.ucla.edu>
21788
21789         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
21790         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
21791         protecting things that should be done only in gnulib contexts.
21792         * lib/glob_.h: New file, containing only the glob things needed for
21793         gnulib.
21794         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
21795         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
21796         (glob, globfree, glob_pattern_p): Now defined simply in terms of
21797         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
21798         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
21799         and to respect the namespace rules better.
21800
21801 2005-09-08  Simon Josefsson  <jas@extundo.com>
21802
21803         * modules/socklen: New file.
21804
21805 2005-09-08  Simon Josefsson  <jas@extundo.com>
21806
21807         * m4/socklen.m4: New file.
21808
21809 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21810
21811         * modules/utimens (Files): Add m4/utimbuf.m4, since
21812         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
21813         Reported by Sergey Poznyakoff.
21814
21815 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21816
21817         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
21818         definitions, since that's the preferred style in glibc.
21819         Fix a minor spacing issue, and update copyright notice to match
21820         glibc's.
21821
21822 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21823
21824         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
21825
21826 2005-09-06  Simon Josefsson  <jas@extundo.com>
21827
21828         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
21829         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
21830
21831 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21832
21833         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
21834         warning.
21835
21836 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21837
21838         * config/srclist.txt: Add glibc bug 1302.
21839
21840 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
21841
21842         Change bitset word type from unsigned int to unsigned long int,
21843         as this has better performance on typical 64-bit hosts.
21844         Port bitset code to hosts with unusual word sizes.
21845         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
21846         (build_collating_symbol):
21847         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
21848         argument is a bitset.  This is merely a style issue, but it makes
21849         it clearer that an entire array is expected.
21850         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
21851         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
21852         Port to the case where bitset_word is not the same as unsigned int.
21853         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
21854         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
21855         Likewise.
21856         * lib/regexec.c (check_dst_limits_calc_pos_1,
21857         check_subexp_matching_top):
21858         (build_trtable, group_nodes_into_DFAstates):
21859         Likewise.
21860         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
21861         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
21862         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
21863         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
21864         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
21865         * lib/regcomp.c (optimize_subexps, lower_subexp):
21866         Work even if bitset_word has holes in its bitwise representation.
21867         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
21868         * lib/regexec.c (check_dst_limits_calc_pos_1,
21869         check_subexp_matching_top):
21870         Likewise.
21871         * lib/regex_internal.c (re_string_reconstruct):
21872         Don't assume UCHAR_MAX == 255.
21873         * lib/regex_internal.h (bitset_set_all): Likewise.
21874         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
21875         All uses changed.
21876         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
21877         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
21878         All uses changed.
21879         (BITSET_WORD_MAX): New macro.
21880         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
21881         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
21882         (bitset_empty, bitset_copy):
21883         Prefer sizeof (bitset) to multiplying it out ourselves.
21884         (bitset_not_merge): Remove; unused.
21885         (bitset_contain): Return bool, not unsigned int with one bit on.
21886         All callers changed.
21887         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
21888         alignment than re_node_set; do this by defining a new internal
21889         type struct dests_alloc and using it to allocate memory.
21890
21891 2005-09-05  Bruno Haible  <bruno@clisp.org>
21892
21893         * gnulib-tool (func_import): Fix comparison in handling of symbolic
21894         links.
21895
21896 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
21897
21898         * modules/size_max (Makefile.am): Add size_max.h
21899
21900 2005-09-04  Derek Price  <derek@ximbiot.com>
21901
21902         * gnulib-tool (func_import): Fix reversed $symbolic logic.
21903
21904 2005-09-03  Simon Josefsson  <jas@extundo.com>
21905
21906         * gnulib-tool: Fix typo.
21907
21908 2005-09-03  Simon Josefsson  <jas@extundo.com>
21909
21910         * config/srclist.txt: Add glibc bug 1293.
21911
21912 2005-09-03  Derek Price  <derek@ximbiot.com>
21913
21914         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
21915         From Larry Jones <lawrence.jones@ugs.com>.
21916
21917 2005-09-02  Simon Josefsson  <jas@extundo.com>
21918
21919         * modules/socklen: New file.
21920
21921 2005-09-02  Simon Josefsson  <jas@extundo.com>
21922
21923         * modules/havelib: New module.
21924
21925         * modules/gettext, modules/iconv, modules/lock, modules/readline:
21926         Use havelib.
21927
21928 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21929
21930         Check for arithmetic overflow when calculating sizes, to prevent
21931         some buffer-overflow issues.  These patches are conservative, in the
21932         sense that when I couldn't determine whether an overflow was possible,
21933         I inserted a run-time check.
21934         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
21935         macros.
21936         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
21937         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
21938         (re_xnrealloc, re_x2nrealloc): New inline functions.
21939         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
21940         parse_bracket_exp):
21941         (build_equiv_class, build_charclass): Check for arithmetic overflow
21942         in size expression calculations.
21943         * lib/regex_internal.c (re_string_realloc_buffers):
21944         (build_wcs_upper_buffer, re_node_set_add_intersect):
21945         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
21946         (re_dfa_add_node, register_state): Likewise.
21947         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
21948         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
21949         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
21950         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
21951
21952 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21953
21954         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
21955         m4/ulonglong.m4.  Problem reported by Martin Lambers.
21956
21957 2005-09-02  Bruno Haible  <bruno@clisp.org>
21958
21959         Support for lib vs. lib64 distinction on biarch platforms.
21960         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
21961         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
21962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
21963
21964 2005-09-02  Bruno Haible  <bruno@clisp.org>
21965
21966         * gnulib-tool (import): In the other first-use case, provide defaults
21967         as well.
21968
21969 2005-09-02  Bruno Haible  <bruno@clisp.org>
21970
21971         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
21972         patches not yet found in the latest gettext release.
21973
21974 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21975
21976         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
21977         to avoid a collision with bits/local_lim.h in glibc.
21978         All uses changed.  Problem reported by Dmitry V. Levin in
21979         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
21980
21981         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
21982         bugs in int versus size_t comparisons.
21983         (re_string_context_at): Fix bug where the code assumed that
21984         Idx is signed.
21985
21986         Use bool where appropriate.
21987         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
21988         All callers changed.
21989         (calc_eclosure_iter): Likewise, for ROOT arg.
21990         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
21991         (build_charclass_op): Likewise, for NON_MATCH arg.
21992         * lib/regex_internal.c (re_string_allocate, re_string_construct):
21993         (re_string_construct_common): Likewise, for ICASE arg.
21994         * lib/regexec.c (re_search_2_stub, re_search_stub):
21995         Likewise, for RET_LEN arg.
21996         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
21997         (set_regs): Likewise, for FL_BACKTRACK arg.
21998         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
21999         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
22000         (calc_eclosure_iter, parse_bracket_exp):
22001         Use bool for internal variables that are booleans.
22002         * lib/regexec.c (re_search_internal, check_matching,
22003         proceed_next_node):
22004         (set_regs, build_sifted_states, sift_states_bkref):
22005         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
22006         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
22007         (find_collation_sequence_value):
22008         Likewise.
22009         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
22010         (re_node_set_compare):
22011         Return bool, not int. All callers changed.
22012         * lib/regexec.c (check_halt_node_context, check_dst_limits):
22013         (build_trtable, check_node_accept): Likewise.
22014         * lib/regex_internal.h: Include stdbool.h.
22015
22016         Fix bugs uncovered when converting to bool.
22017         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
22018         failure instead of charging ahead blindly.
22019         * lib/regex_internal.c (register_state): Likewise.
22020         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
22021         for freeing internal storage.
22022         (group_nodes_into_DFA_states): Use unsigned int, not int, for
22023         bitset pieces used as boolean, to avoid undefined behavior
22024         on hosts that do int overflow checking.
22025
22026 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22027
22028         * config/srclist.txt: Add glibc bugs 1285-1287.
22029
22030 2005-09-01  Jim Meyering  <jim@meyering.net>
22031
22032         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
22033         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
22034         Require gl_STAT_MACROS, too.
22035
22036 2005-09-01  Bruno Haible  <bruno@clisp.org>
22037
22038         * gnulib-tool (import): In the first-use case, provide defaults.
22039
22040 2005-09-01  Bruno Haible  <bruno@clisp.org>
22041
22042         * gnulib-tool (func_import): Remove the .tmp files.
22043
22044 2005-09-01  Bruno Haible  <bruno@clisp.org>
22045
22046         * gnulib-tool (func_import): Fix handling of symbolic links.
22047
22048 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22049
22050         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
22051         old glibc regex code mishandles strings longer than 2**31 bytes.
22052         This patch fixes this when the regex code is used in gnulib
22053         (i.e., outside glibc).
22054
22055         This patch should not affect the use of the regex code inside
22056         glibc.  No doubt this problem also needs to be handled for glibc
22057         as well, but the result will be an incompatible change to the
22058         glibc ABI, and the old ABI will have to be supported too.  That
22059         can be the the subject for another patch.
22060
22061         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
22062         governing whether the rest of this patch is active.  By default,
22063         the macro is disabled and the patch has no effect.
22064         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
22065         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
22066         (struct re_pattern_buffer, re_search, re_search_2, re_match):
22067         (re_match_2, re_set_registers): Use the new types.
22068         * lib/regex_internal.h (Idx, re_hashval_t): New types.
22069         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
22070         New macros.
22071         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
22072         (re_string_context_at, bin_tree_t, re_dfastate_t):
22073         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
22074         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
22075         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
22076         (re_string_char_size_at, re_string_wchar_at):
22077         (re_string_elem_size_at):
22078         Use the new types and macros to port to 64-bit hosts.
22079         Use unsigned types for internal values, so that the code
22080         mostly works even for arrays larger than SSIZE_MAX.
22081         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
22082         (search_duplicated_node, calc_eclosure_iter, fetch_number):
22083         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
22084         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
22085         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
22086         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
22087         (calc_inveclosure, parse_dup_op, build_range_exp):
22088         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
22089         (fetch_number, create_token_tree, mark_opt_subexp):
22090         Likewise.
22091         * lib/regex_internal.c (re_string_construct_common,
22092         create_ci_newstate):
22093         (create_cd_newstate, re_string_allocate, re_string_construct):
22094         (re_string_realloc_buffers, build_wcs_upper_buffer):
22095         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
22096         (re_string_reconstruct, re_string_peek_byte_case):
22097         (re_string_fetch_byte_case, re_string_context_at):
22098         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
22099         (re_node_set_init_copy, re_node_set_add_intersect):
22100         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
22101         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
22102         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
22103         (re_acquire_state, re_acquire_state_context, register_state):
22104         Likewise.
22105         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
22106         search_cur_bkref_entry):
22107         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
22108         (re_search_internal, re_search_2_stub, re_search_stub)
22109         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
22110         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
22111         (update_cur_sifted_state, check_dst_limits):
22112         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
22113         (check_subexp_limits, sift_states_bkref, merge_state_array):
22114         (check_subexp_matching_top, get_subexp, get_subexp_sub):
22115         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
22116         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
22117         (expand_bkref_cache, check_node_accept_bytes):
22118         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
22119         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
22120         (acquire_init_state_context, check_halt_node_context):
22121         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
22122         (sift_states_backward, clean_state_log_if_needed):
22123         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
22124         (find_recover_state, transit_state_sb, transit_state_mb):
22125         (transit_state_bkref, build_trtable, match_ctx_clean):
22126         Likewise.
22127         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
22128         to work around an assumption that REG_MISSING is negative.
22129
22130         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
22131         (seek_collating_symbol_entry) [defined _LIBC]:
22132         (lookup_collation_sequence_value) [defined _LIBC]:
22133         (build_range_exp, build_collating_symbol) [defined _LIBC]:
22134         Use prototypes rather than old-style function definitions.
22135         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
22136         (transit_state_sb) [0]:
22137         (find_collation_sequence_value) [defined _LIBC]: Likewise.
22138
22139         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
22140         rm_eo.
22141
22142         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
22143         (optimize_subexps, lower_subexp):
22144         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
22145         since the signed shift might overflow.  Use 1u<<31 instead.
22146         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
22147         Likewise.
22148         * lib/regexec.c (check_dst_limits_calc_pos_1,
22149         check_subexp_matching_top): Likewise.
22150
22151         * lib/regcomp.c (optimize_subexps, lower_subexp):
22152         Use CHAR_BIT rather than 8, for clarity.
22153         * lib/regexec.c (check_dst_limits_calc_pos_1):
22154         (check_subexp_matching_top): Likewise.
22155         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
22156         have to worry about portability issues when shifting it left.
22157         Remove no-longer-needed test for table_size > 0.
22158         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
22159         in a word, as the resulting behavior is undefined.
22160         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
22161         in one case, a <= should have been an <, and in another case the
22162         whole test was missing.
22163         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
22164         the standard name CHAR_BIT.
22165         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
22166         this is not true on one's complement and signed-magnitude hosts.
22167
22168         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
22169         next_last_offset.
22170         (struct re_dfa_t): Remove unused member states_alloc.
22171         * lib/regcomp.c (init_dfa): Don't initialize unused members.
22172
22173 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22174
22175         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
22176         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
22177         and large-file glibc and in 32-bit large-file Solaris.
22178
22179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22180
22181         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
22182         lengths fit in regoff_t; this isn't true if regoff_t is the same
22183         width as size_t.
22184         * lib/regex.c (re_search_internal): 5th arg is LAST_START
22185         (= START + RANGE) instead of RANGE.  This avoids overflow
22186         problems when regoff_t is the same width as size_t.
22187         All callers changed.
22188         (re_search_2_stub): Check for overflow when adding the
22189         sizes of the two strings.
22190         (re_search_stub): Check for overflow when adding START
22191         to RANGE; if it occurs, substitute the extreme value.
22192
22193 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22194
22195         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
22196
22197 2005-08-31  Jim Meyering  <jim@meyering.net>
22198
22199         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
22200         a pointer-to-const.
22201         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
22202         (register_state): Likewise.
22203         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
22204         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
22205         (group_nodes_into_DFAstates): Likewise.
22206
22207 2005-08-31  Jim Meyering  <jim@meyering.net>
22208
22209         * check-module: Add a FIXME comment.
22210
22211 2005-08-31  Eric Blake  <ebb9@byu.net>
22212
22213         * modules/unistd-safer (Files): Add unistd--.h.
22214         * modules/stdio-safer (Files): Add stdio--.h.
22215
22216 2005-08-31  Derek Price  <derek@ximbiot.com>
22217
22218         * lib/getdelim.c (getdelim): Return EOF on EOF.
22219         Reported by Larry Jones <lawrence.jones@ugs.com>.
22220
22221 2005-08-31  Bruno Haible  <bruno@clisp.org>
22222
22223         Avoid unnecessary diffs in the generated lib/Makefile.am.
22224         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
22225         the generated files.
22226         (func_import): Don't set cmd.
22227
22228 2005-08-31  Bruno Haible  <bruno@clisp.org>
22229
22230         * lib/strstr.c: Include <stddef.h>, for NULL.
22231         * lib/strcasestr.c: Likewise.
22232         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22233
22234 2005-08-31  Bruno Haible  <bruno@clisp.org>
22235
22236         * gnulib-tool: New option --macro-prefix.
22237         (func_import): Use macro_prefix.
22238         (import): Handle option --macro-prefix.
22239
22240 2005-08-31  Bruno Haible  <bruno@clisp.org>
22241
22242         * gnulib-tool (import): Rename most ac_* variables to cached_*.
22243         Also use new variables cached_lgpl, cached_libtool.
22244
22245 2005-08-31  Bruno Haible  <bruno@clisp.org>
22246
22247         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
22248         always instantiating them.
22249
22250 2005-08-31  Bruno Haible  <bruno@clisp.org>
22251
22252         * gnulib-tool (func_import): Read the previous cached settings
22253         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
22254         earlier added by gnulib but are now dropped. Warn when a gnulib file
22255         overwrites a non-gnulib file.
22256
22257 2005-08-31  Bruno Haible  <bruno@clisp.org>
22258
22259         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
22260         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
22261         projects that don't keep autogenerated files in CVS. Put into
22262         actioncmd only the specified modules, not the transitive closure.
22263
22264 2005-08-31  Bruno Haible  <bruno@clisp.org>
22265
22266         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
22267         Create directories that shall be filled.
22268         (import): Don't look for gl_* macros in configure.ac. Recurse across
22269         all directories containing a gnulib-cache.m4 files, if meaningful.
22270
22271 2005-08-31  Bruno Haible  <bruno@clisp.org>
22272
22273         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
22274         (import): Set seen_libtool when we see gl_LIBTOOL.
22275
22276 2005-08-31  Bruno Haible  <bruno@clisp.org>
22277
22278         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
22279         declaration macro definitions from generated gnulib.m4.
22280
22281 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
22282
22283         * lib/iconvme.h: Add prototype for iconv_alloc.
22284
22285 2005-08-29  Simon Josefsson  <jas@extundo.com>
22286
22287         * lib/iconvme.c: Fix errno.
22288
22289 2005-08-29  Bruno Haible  <bruno@clisp.org>
22290
22291         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
22292         that it works when the directory contains spaces.
22293
22294 2005-08-29  Bruno Haible  <bruno@clisp.org>
22295
22296         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
22297
22298 2005-08-29  Bruno Haible  <bruno@clisp.org>
22299
22300         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
22301         Emit more advice.
22302
22303 2005-08-29  Bruno Haible  <bruno@clisp.org>
22304         and Stepan Kasal  <kasal@ucw.cz>
22305
22306         * check-module: If more parameters are given, check each of them
22307         separately; add more exceptions, as noted by Jim Meyering.
22308         (check_module): New procedure.
22309         (%exempt_header): Now contains all exceptions.
22310
22311 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
22312
22313         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
22314
22315 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
22316
22317         * lib/iconvme.c: Split iconv_string into iconv_alloc.
22318
22319 2005-08-28  Bruno Haible  <bruno@clisp.org>
22320
22321         * m4/gnulib-tool.m4: New file.
22322
22323 2005-08-27  Jim Meyering  <jim@meyering.net>
22324
22325         * modules/unistd-safer (Files): Add pipe-safer.c.
22326         * modules/fcntl-safer (Files): Add creat-safer.c.
22327
22328 2005-08-27  Jim Meyering  <jim@meyering.net>
22329
22330         * m4/stdlib-safer.m4: New file.  From coreutils.
22331         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
22332         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
22333         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
22334         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
22335         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
22336
22337 2005-08-27  Jim Meyering  <jim@meyering.net>
22338
22339         * lib/fopen-safer.c: Merge minor changes from coreutils.
22340         * lib/dup-safer.c: Likewise.
22341         * lib/fd-safer.c: Likewise.
22342
22343         Merge from coreutils.
22344         * lib/stdio--.h: New file.
22345         * lib/stdlib--.h: New file.
22346         * lib/mkstemp-safer.c: New file.
22347
22348         GNU tar needs these.
22349         * lib/pipe-safer.c: New file.
22350         * lib/creat-safer.c: New file.
22351         * lib/fcntl--.h (creat): Define to creat_safer.
22352         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
22353         * lib/unistd--.h (pipe): Define to pipe_safer.
22354         * lib/unistd-safer.h: Declare pipe_safer.
22355
22356 2005-08-26  Simon Josefsson  <jas@extundo.com>
22357
22358         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
22359         Haible <bruno@clisp.org>.
22360
22361 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
22362
22363         * lib/regex_internal.h: Remove all references to
22364         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
22365         or better.
22366         (bitset_not, bitset_merge, bitset_not_merge):
22367         (bitset_mask, re_string_allocate, re_string_construct):
22368         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
22369         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
22370         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
22371         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
22372         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
22373         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
22374         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
22375         (re_acquire_state_context):
22376         Remove unnecessary forward decls.
22377         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
22378         Put __attribute at function definition,
22379         now that the function decl has been removed.
22380         * lib/regex_internal.c (re_string_peek_byte_case):
22381         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
22382         Likewise.
22383
22384 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
22385
22386         * m4/regex.m4: Add AC_PREREQ(2.50).
22387         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
22388
22389 2005-08-25  Simon Josefsson  <jas@extundo.com>
22390
22391         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
22392         __fsetlocking.
22393
22394 2005-08-25  Simon Josefsson  <jas@extundo.com>
22395
22396         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
22397         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
22398         GLIBC specific code.
22399
22400 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22401
22402         Make regex safe for g++.  This fixes one real bug (an "err"
22403         that should have been "*err").  g++ problem reported by
22404         Sam Steingold.
22405         * lib/regex_internal.h (re_calloc): New macro, consistent with
22406         re_malloc etc.  All callers of calloc changed to use re_calloc.
22407         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
22408         not int.  All callers changed.
22409         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
22410         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
22411         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
22412         (find_recover_state): Change "err" to "*err"; this fixes what
22413         appears to be a real bug.
22414         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
22415         versus int.
22416
22417 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22418
22419         * modules/regex (Depends-on): Add malloc, since the code
22420         assumes that !malloc(0) means failure.
22421
22422 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22423
22424         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
22425
22426         alloca modernization/simplification for regex.
22427         * lib/regex.c: Remove portability cruft for alloca.  This no longer
22428         needs to be at the start of the file, and can be moved into
22429         regex_internal.h and simplified.
22430         * lib/regex_internal.h: Include <alloca.h>.
22431         (__libc_use_alloca) [!defined _LIBC]: New macro.
22432         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
22433         now works outside glibc.
22434
22435 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22436
22437         * config/srclist.txt: Add glibc bugs 1241, 1245.
22438
22439 2005-08-25  Jim Meyering  <jim@meyering.net>
22440
22441         * lib/open-safer.c: Include <config.h>.
22442         Otherwise, we'd lose LARGEFILE support in any file using
22443         e.g. "fcntl--.h"
22444
22445 2005-08-25  Bruno Haible  <bruno@clisp.org>
22446
22447         * m4/minmax.m4: Require autoconf 2.52.
22448         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
22449         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
22450         alternatives of translit over the alphabet.
22451         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
22452
22453 2005-08-24  Simon Josefsson  <jas@extundo.com>
22454
22455         * tests/test-getpass.c: New file.
22456
22457 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22458
22459         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
22460         for GNU regex features.
22461
22462 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22463
22464         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
22465         * lib/regex.h (regerror): Likewise.
22466
22467         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
22468         requires this.  (The code never needed it.)
22469
22470         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
22471         All uses of recently-renamed identifiers changed to use the new,
22472         POSIX-compliant names.  The code will build and run just fine
22473         without these changes, but it's better to eat our own dog food
22474         and use the standard-conforming names.
22475
22476         * lib/regex.h: Fix a multitude of POSIX name space violations.
22477         These changes have an effect only for programs that define
22478         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
22479         do not change anything for programs compiled in the normal way.
22480         Also, there is no effect on the ABI.
22481
22482         (_REGEX_SOURCE): New macro.
22483         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
22484         defined and _GNU_SOURCE is not; this fixes a name space violation.
22485
22486         Rename the following macros to obey POSIX requirements.
22487         The old names are still visible as macros if _REGEX_SOURCE is defined.
22488         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
22489         RE_BACKSLASH_ESCAPE_IN_LISTS.
22490         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
22491         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
22492         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
22493         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
22494         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
22495         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
22496         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
22497         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
22498         (REG_INTERVALS): renamed from RE_INTERVALS.
22499         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
22500         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
22501         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
22502         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
22503         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
22504         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
22505         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
22506         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
22507         RE_UNMATCHED_RIGHT_PAREN_ORD.
22508         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
22509         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
22510         (REG_DEBUG): renamed from RE_DEBUG.
22511         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
22512         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
22513         unusual, since we can't clash with the POSIX REG_ICASE.
22514         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
22515         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
22516         (REG_NO_SUB): renamed from RE_NO_SUB.
22517         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
22518         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
22519         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
22520         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
22521         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
22522         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
22523         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
22524         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
22525         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
22526         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
22527         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
22528         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
22529         RE_SYNTAX_POSIX_MINIMAL_BASIC.
22530         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
22531         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
22532         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
22533         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
22534         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
22535         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
22536         (REG_FIXED): Renamed from REGS_FIXED.
22537         (REG_NREGS): Renamed from RE_NREGS.
22538
22539         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
22540         of other REG_* macros, since POSIX says the user is allowed to
22541         #undef these macros selectively.
22542
22543         (reg_errcode_t): Update comment stating what other tables need
22544         to be consistent.
22545
22546         Rename the following enum values to obey POSIX requirements.
22547         The old names are still visible as macros.
22548         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
22549         is not defined, since GNU is supposed to be a superset of POSIX as
22550         much as possible, and since we want reg_errcode_t to be a signed
22551         type for implementation consistency.
22552         (_REG_NOERROR): Renamed from REG_NOERROR.
22553         (_REG_NOMATCH): Renamed from REG_NOMATCH.
22554         (_REG_BADPAT): Renamed from REG_BADPAT.
22555         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
22556         (_REG_ECTYPE): Renamed from REG_ECTYPE.
22557         (_REG_EESCAPE): Renamed from REG_EESCAPE.
22558         (_REG_ESUBREG): Renamed from REG_ESUBREG.
22559         (_REG_EBRACK): Renamed from REG_EBRACK.
22560         (_REG_EPAREN): Renamed from REG_EPAREN.
22561         (_REG_EBRACE): Renamed from REG_EBRACE.
22562         (_REG_BADBR): Renamed from REG_BADBR.
22563         (_REG_ERANGE): Renamed from REG_ERANGE.
22564         (_REG_ESPACE): Renamed from REG_ESPACE.
22565         (_REG_BADRPT): Renamed from REG_BADRPT.
22566         (_REG_EEND): Renamed from REG_EEND.
22567         (_REG_ESIZE): Renamed from REG_ESIZE.
22568         (_REG_ERPAREN): Renamed from REG_ERPAREN.
22569         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
22570         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
22571         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
22572         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
22573
22574         (_REG_RE_NAME, _REG_RM_NAME): New macros.
22575         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
22576         changed.  But support the old name if the new one is not defined
22577         and if _REGEX_SOURCE.
22578
22579         Change the following member names in struct re_pattern_buffer.
22580         The old names are still supported if !_REGEX_SOURCE.
22581         The new names are always supported, regardless of _REGEX_SOURCE.
22582         (re_buffer): Renamed from buffer.
22583         (re_allocated): Renamed from allocated.
22584         (re_used): Renamed from used.
22585         (re_syntax): Renamed from syntax.
22586         (re_fastmap): Renamed from fastmap.
22587         (re_translate): Renamed from translate.
22588         (re_can_be_null): Renamed from can_be_null.
22589         (re_regs_allocated): Renamed from regs_allocated.
22590         (re_fastmap_accurate): Renamed from fastmap_accurate.
22591         (re_no_sub): Renamed from no_sub.
22592         (re_not_bol): Renamed from not_bol.
22593         (re_not_eol): Renamed from not_eol.
22594         (re_newline_anchor): Renamed from newline_anchor.
22595
22596         Change the following member names in struct re_registers.
22597         The old names are still supported if !_REGEX_SOURCE.
22598         The new names are always supported, regardless of _REGEX_SOURCE.
22599         (rm_num_regs): Renamed from num_regs.
22600         (rm_start): Renamed from start.
22601         (rm_end): Renamed from end.
22602
22603         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
22604         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
22605         Prepend __ to parameter names.
22606
22607         Undo yesterday's changes.
22608
22609 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22610
22611         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
22612         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
22613         lib/regex.c.
22614
22615 2005-08-24  Jim Meyering  <jim@meyering.net>
22616
22617         Sync from coreutils.
22618         * m4/fcntl-safer.m4: New file.
22619
22620         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
22621         and object files for this module.
22622
22623 2005-08-24  Jim Meyering  <jim@meyering.net>
22624
22625         Sync from coreutils.
22626         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
22627
22628 2005-08-24  Jim Meyering  <jim@meyering.net>
22629
22630         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
22631         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
22632
22633 2005-08-24  Jim Meyering  <jim@meyering.net>
22634
22635         * modules/fcntl-safer: New module.
22636         * modules/fts (Depends-on): Add fcntl-safer.
22637         * MODULES.html.sh (File descriptor based Input/Output):
22638         Add fcntl-safer.
22639
22640 2005-08-24  Bruno Haible  <bruno@clisp.org>
22641
22642         Support for unit test modules.
22643         * modules/README: Mention tests modules.
22644         * modules/TEMPLATE-TESTS: New file.
22645         * gnulib-tool: New options --extract-tests-module, --with-tests and
22646         --tests-base (unused for the moment).
22647         (testsbase, inctests): New variables.
22648         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
22649         (func_verify_module): Exclude TEMPLATE-TESTS.
22650         (func_verify_nontests_module, func_verify_tests_module): New functions.
22651         (func_get_dependencies): Add implicit dependency for tests modules.
22652         (func_get_tests_module): New function.
22653         (func_modules_transitive_closure): When --with-tests was specified,
22654         include the unit tests as well, unless explicitly avoided.
22655         (func_emit_lib_Makefile_am): Ignore the tests modules here.
22656         (func_emit_tests_Makefile_am): New function.
22657         (func_create_testdir): When --with-tests was specified, emit a
22658         tests/ directory.
22659         * MODULES.html.sh (Future developments): Update.
22660
22661 2005-08-24  Bruno Haible  <bruno@clisp.org>
22662
22663         * modules/tls-tests: New file.
22664         * tests/test-tls.c: New file, from GNU gettext.
22665
22666 2005-08-24  Bruno Haible  <bruno@clisp.org>
22667
22668         * modules/lock-tests: New file.
22669         * tests/test-lock.c: New file, from GNU gettext.
22670
22671 2005-08-24  Bruno Haible  <bruno@clisp.org>
22672
22673         * lib/lock.h: Add multiple inclusion guard.
22674         * lib/tls.h: Add multiple inclusion guard.
22675
22676 2005-08-24  Bruno Haible  <bruno@clisp.org>
22677
22678         * gnulib-tool: Add support for the --aux-dir option to
22679         --create-testdir, --create-megatestdir, --test, --megatest.
22680         (func_create_testdir, func_create_megatestdir): Optionally emit a
22681         AC_CONFIG_AUX_DIR directive.
22682         (create-testdir, create-megatestdir, test, megatest): Provide a
22683         default value for $auxdir.
22684
22685 2005-08-24  Bruno Haible  <bruno@clisp.org>
22686
22687         * gnulib-tool (import): Use compound statement instead of subshell
22688         where possible.
22689
22690 2005-08-24  Bruno Haible  <bruno@clisp.org>
22691
22692         * gnulib-tool (import): Change --aux-dir default to "build-aux".
22693
22694 2005-08-24  Bruno Haible  <bruno@clisp.org>
22695
22696         * gnulib-tool (func_version): Update.
22697
22698 2005-08-24  Bruno Haible  <bruno@clisp.org>
22699
22700         * gnulib-tool (func_import, func_create_testdir,
22701         func_create_megatestdir): Quote all autoconf macro arguments.
22702
22703 2005-08-24  Bruno Haible  <bruno@clisp.org>
22704
22705         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
22706         option --force, because --force causes the aclocal.m4 of each
22707         subdirectory to be newer than the corresponding config.h.in.
22708
22709 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22710
22711         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
22712         All contents moved to gl_REGEX.
22713         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
22714         assume that it does.
22715
22716 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22717
22718         * lib/regex.h (REG_NOSYS)
22719         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
22720         Define, since POSIX requires it as of 2001.
22721         (_REG_ENOSYS)
22722         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
22723         New private symbol, used to keep the enum signed in all cases.
22724         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
22725         Youngman in
22726         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
22727
22728         * lib/regex_internal.c (re_string_skip_chars, register_state):
22729         (calc_state_hash):
22730         Remove forward decls; no longer needed now that we use prototypes.
22731         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
22732         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
22733         (clean_state_log_if_needed): Likewise.
22734
22735 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22736
22737         * config/srclist.txt: Add glibc bugs 1231-1233.
22738
22739 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22740
22741         Fix problems reported by Sam Steingold in
22742         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
22743         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
22744         assumed that reg_errcode_t is a signed type, which is not
22745         necessarily true if _XOPEN_SOURCE is not defined.
22746         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
22747         since some compilers warn about it otherwise.
22748
22749 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22750
22751         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
22752         (init_word_char, create_initial_state, duplicate_node_closure):
22753         (fetch_token, peek_token_bracket, build_range_exp):
22754         (build_collating_symbol): Remove forward decls; no longer needed
22755         now that we use prototypes.
22756
22757         * lib/regcomp.c:
22758         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
22759         (re_compile_fastmap_iter, regcomp, regerror, regfree):
22760         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
22761         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
22762         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
22763         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
22764         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
22765         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
22766         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
22767         (build_range_exp, build_collating_symbol, parse_bracket_exp):
22768         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
22769         (build_charclass, build_charclass_op, fetch_number, create_tree):
22770         (create_token_tree, mark_opt_subexp, duplicate_tree):
22771         Use prototypes rather than old-style definitions.
22772
22773         * lib/regex_internal.c:
22774         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
22775         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
22776         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
22777         (re_string_reconstruct, re_string_peek_byte_case):
22778         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
22779         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
22780         (re_node_set_init_copy, re_node_set_add_intersect):
22781         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
22782         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
22783         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
22784         (re_acquire_state, re_acquire_state_context, register_state):
22785         (create_ci_newstate, create_cd_newstate, free_state):
22786         Likewise.
22787         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
22788         re_search_2):
22789         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
22790         (re_search_internal, prune_impossible_nodes):
22791         (acquire_init_state_context, check_matching, static):
22792         (check_halt_node_context, check_halt_state_context, proceed_next_node):
22793         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
22794         (update_regs, sift_states_backward, build_sifted_states):
22795         (clean_state_log_if_needed, merge_state_array):
22796         (update_cur_sifted_state, add_epsilon_src_nodes):
22797         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
22798         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
22799         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
22800         (find_recover_state, check_subexp_matching_top, transit_state_mb):
22801         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
22802         (check_arrival, check_arrival_add_next_nodes):
22803         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
22804         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
22805         (check_node_accept_bytes, check_node_accept, extend_buffers):
22806         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
22807         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
22808         (sift_ctx_init):
22809         Likewise.
22810
22811         * lib/regex_internal.h:
22812         (re_string_allocate, re_string_construct, re_string_reconstruct):
22813         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
22814         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
22815         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
22816         (re_string_context_at, re_string_peek_byte_case):
22817         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
22818         is defined, since we now use prototypes always.
22819
22820         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
22821         C89 or better.  All uses removed.
22822
22823 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22824
22825         * config/srclist.txt: Add glibc bugs 1220-1227.
22826
22827 2005-08-20  Jim Meyering  <jim@meyering.net>
22828
22829         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
22830         of unused local, dfa.
22831
22832 2005-08-20  Bruno Haible  <bruno@clisp.org>
22833
22834         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
22835
22836 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22837
22838         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
22839         (re_node_set_insert_last, re_dfa_add_node):
22840         Rename local variables to avoid GCC shadowing warnings.
22841
22842 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22843
22844         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
22845         [defined lint]: Suppress bogus uninitialized-variable warnings.
22846
22847         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
22848         and let the caller return REG_ESPACE if out of space.  This
22849         removes an uninitialied-variable warning with GCC 4.0.1, and also
22850         avoids taking the address of a local variable.  All callers
22851         changed.
22852
22853 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22854
22855         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
22856         $LIBCSRC/posix/regexec.c.
22857         Add glibc bug 1217 for regcomp.c.
22858
22859 2005-08-19  Jim Meyering  <jim@meyering.net>
22860
22861         * lib/regexec.c (proceed_next_node): Redo local variables to
22862         avoid GCC shadowing warnings.
22863
22864 2005-08-18  Bruno Haible  <bruno@clisp.org>
22865
22866         * lib/strstr.c (strstr): Fix return value in multibyte case.
22867         * lib/strcasestr.c (strcasestr): Likewise.
22868
22869 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22870
22871         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
22872
22873 2005-08-17  Jim Meyering  <jim@meyering.net>
22874
22875         Make the %s format (seconds since the epoch) work for a negative
22876         number and when used with a zero-padded field width, e.g. %015s.
22877
22878         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
22879         label so that it precedes the code to set `digits'.  Otherwise,
22880         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
22881         print `00-22'.  Now, it prints `-0022', as it should.
22882
22883 2005-08-17  Bruno Haible  <bruno@clisp.org>
22884
22885         * modules/strstr (Files): Add m4/mbrtowc.m4.
22886         (Depends-on): Add mbuiter.
22887
22888 2005-08-17  Bruno Haible  <bruno@clisp.org>
22889
22890         * modules/strcasestr: New file.
22891         * MODULES.html.sh (String handling, based on ANSI C 89): Add
22892         strcasestr.
22893
22894 2005-08-17  Bruno Haible  <bruno@clisp.org>
22895
22896         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
22897
22898 2005-08-17  Bruno Haible  <bruno@clisp.org>
22899
22900         * modules/mbuiter: New file.
22901         * MODULES.html.sh (Extended multibyte and wide character utilities):
22902         Add mbuiter.
22903
22904 2005-08-17  Bruno Haible  <bruno@clisp.org>
22905
22906         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
22907         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
22908
22909 2005-08-17  Bruno Haible  <bruno@clisp.org>
22910
22911         * m4/strcasestr.m4: New file.
22912
22913 2005-08-17  Bruno Haible  <bruno@clisp.org>
22914
22915         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
22916         * lib/strstr.c: Completely rewritten, with multibyte locale support.
22917
22918 2005-08-17  Bruno Haible  <bruno@clisp.org>
22919
22920         * lib/strcasestr.h: New file.
22921         * lib/strcasestr.c: New file.
22922
22923 2005-08-17  Bruno Haible  <bruno@clisp.org>
22924
22925         * lib/strcasecmp.c: Use mbuiter.h.
22926
22927 2005-08-17  Bruno Haible  <bruno@clisp.org>
22928
22929         * lib/mbuiter.h: New file.
22930
22931 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22932
22933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
22934         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
22935         and gl_GETOPT are both invoked via different paths (as happens
22936         with GNU tar CVS because it uses both argp and getopt), the former
22937         wins.
22938
22939 2005-08-16  Bruno Haible  <bruno@clisp.org>
22940
22941         * modules/tls: New file.
22942         * MODULES.html.sh (Multithreading): Add tls.
22943
22944 2005-08-16  Bruno Haible  <bruno@clisp.org>
22945
22946         * modules/strnlen1: New file.
22947         * MODULES.html.sh (String handling): Add strnlen1.
22948
22949 2005-08-16  Bruno Haible  <bruno@clisp.org>
22950
22951         * modules/strcase (Files): Add m4/mbrtowc.m4.
22952         (Depends-on): Add strnlen1, mbchar.
22953
22954 2005-08-16  Bruno Haible  <bruno@clisp.org>
22955
22956         * modules/mbiter: New file.
22957         * MODULES.html.sh (Extended multibyte and wide character utilities):
22958         Add mbiter.
22959
22960 2005-08-16  Bruno Haible  <bruno@clisp.org>
22961
22962         * modules/mbfile: New file.
22963         * MODULES.html.sh (Extended multibyte and wide character utilities):
22964         Add mbfile.
22965
22966 2005-08-16  Bruno Haible  <bruno@clisp.org>
22967
22968         * modules/mbchar: New file.
22969         * MODULES.html.sh (Extended multibyte and wide character utilities):
22970         New section.
22971
22972 2005-08-16  Bruno Haible  <bruno@clisp.org>
22973
22974         * m4/tls.m4: New file, from GNU gettext.
22975
22976 2005-08-16  Bruno Haible  <bruno@clisp.org>
22977
22978         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
22979         always.
22980         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
22981
22982 2005-08-16  Bruno Haible  <bruno@clisp.org>
22983
22984         * m4/mbiter.m4: New file.
22985
22986 2005-08-16  Bruno Haible  <bruno@clisp.org>
22987
22988         * m4/mbfile.m4: New file.
22989
22990 2005-08-16  Bruno Haible  <bruno@clisp.org>
22991
22992         * m4/mbchar.m4: New file.
22993
22994 2005-08-16  Bruno Haible  <bruno@clisp.org>
22995
22996         * lib/tls.h: New file, from GNU gettext.
22997         * lib/tls.c: New file, from GNU gettext.
22998
22999 2005-08-16  Bruno Haible  <bruno@clisp.org>
23000
23001         * lib/strnlen1.h: New file.
23002         * lib/strnlen1.c: New file.
23003
23004 2005-08-16  Bruno Haible  <bruno@clisp.org>
23005
23006         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
23007         (mbi_init): Update.
23008         (mbi_avail, mbi_advance): Let the iteration end before the terminating
23009         NUL byte, not after it.
23010
23011 2005-08-16  Bruno Haible  <bruno@clisp.org>
23012
23013         * lib/strcase.h (strcasecmp): Add note in comments.
23014         * lib/strncasecmp.c: Use code from strcasecmp.c.
23015         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
23016         (strcasecmp): Work correctly in multibyte locales.
23017
23018 2005-08-16  Bruno Haible  <bruno@clisp.org>
23019
23020         * lib/mbiter.h: New file.
23021
23022 2005-08-16  Bruno Haible  <bruno@clisp.org>
23023
23024         * lib/mbfile.h: New file.
23025
23026 2005-08-16  Bruno Haible  <bruno@clisp.org>
23027
23028         * lib/mbchar.h: New file.
23029         * lib/mbchar.c: New file.
23030
23031 2005-08-16  Bruno Haible  <bruno@clisp.org>
23032
23033         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
23034         the valid ones. Makes the comparison operations transitive:
23035         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
23036         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
23037
23038 2005-08-15  Simon Josefsson  <jas@extundo.com>
23039
23040         * modules/ssize_t (License): Change to 'unlimited'.
23041
23042         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
23043
23044 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23045
23046         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
23047         Add comments for each pending glibc patch.
23048
23049 2005-08-15  Bruno Haible  <bruno@clisp.org>
23050
23051         * lib/regex.h (__restrict_arr): Don't define to __restrict if
23052         __cplusplus is defined.
23053
23054 2005-08-14  Jim Meyering  <jim@meyering.net>
23055
23056         Sync from coreutils.
23057
23058         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
23059         Use the hash-table-based cycle-detection code not just when
23060         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
23061         Reported by James Youngman in
23062         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
23063         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
23064         FTS_TIGHT_CYCLE_CHECK.
23065         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
23066         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
23067         once again.
23068         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
23069         * lib/fts.c (fd_safer): Remove decl.
23070         Include fcntl--.h rather than unistd-safer.h
23071         (fts_safe_changedir): Don't call fd_safer; no longer needed
23072         now that we include fcntl--.h.
23073
23074 2005-08-12  Simon Josefsson  <jas@extundo.com>
23075
23076         * modules/getndelim2: Use ssize_t module.
23077         * modules/getnline: Likewise.
23078         * modules/safe-read: Likewise.
23079         * modules/xreadlink: Likewise.
23080
23081         * modules/ssize_t: New file.
23082
23083 2005-08-12  Simon Josefsson  <jas@extundo.com>
23084
23085         * m4/readline.m4: Look for termcap, curses or ncurses if required.
23086
23087 2005-08-12  Simon Josefsson  <jas@extundo.com>
23088
23089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23090         ssize_t.
23091
23092 2005-08-12  Simon Josefsson  <jas@extundo.com>
23093
23094         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
23095         readline, getdelim and check_version.
23096         (Support for systems lacking ISO C 99: Sizes of integer types):
23097         Add size_max.
23098
23099 2005-08-12  Bruno Haible  <bruno@clisp.org>
23100
23101         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
23102
23103 2005-08-11  Simon Josefsson  <jas@extundo.com>
23104
23105         * modules/readline: New file.
23106
23107         * modules/strnlen (Files): Add strnlen.h.
23108
23109 2005-08-11  Simon Josefsson  <jas@extundo.com>
23110
23111         * m4/readline.m4: New file.
23112
23113 2005-08-11  Simon Josefsson  <jas@extundo.com>
23114
23115         * lib/readline.h, readline.c: New file.
23116
23117 2005-08-11  Simon Josefsson  <jas@extundo.com>
23118
23119         * doc/gnulib.texi (Initial import, Finishing touches): Mention
23120         gl_AVOID.
23121
23122 2005-08-11  Bruno Haible  <bruno@clisp.org>
23123
23124         * lib/strnlen.h (strnlen): Change parameter name to match comment.
23125
23126 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
23127
23128         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
23129
23130 2005-08-10  Simon Josefsson  <jas@extundo.com>
23131
23132         * tests/test-iconvme.c: New file.
23133
23134 2005-08-10  Simon Josefsson  <jas@extundo.com>
23135
23136         * m4/strnlen.m4: New file.
23137
23138         * m4/strndup.m4: Don't check for strnlen declaration, done in
23139         strnlen.m4.
23140
23141 2005-08-10  Simon Josefsson  <jas@extundo.com>
23142
23143         * lib/strndup.c: Use strnlen.h.
23144
23145         * lib/strnlen.h: New file.
23146
23147 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23148
23149         * README: Typos.
23150
23151 2005-08-02  Simon Josefsson  <jas@extundo.com>
23152
23153         * modules/readline: New file.
23154
23155 2005-08-02  Simon Josefsson  <jas@extundo.com>
23156
23157         * modules/getdelim: New file.
23158
23159         * modules/getline: Rewrite, don't use getndelim2.
23160
23161 2005-08-02  Simon Josefsson  <jas@extundo.com>
23162
23163         * m4/getline.m4: Separate out getdelim stuff into separate module.
23164
23165         * m4/getdelim.m4: New file.
23166
23167 2005-08-02  Simon Josefsson  <jas@extundo.com>
23168
23169         * lib/getline.h, getline.c: Rewrite.
23170
23171         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
23172
23173 2005-07-31  Bruno Haible  <bruno@clisp.org>
23174
23175         * lib/lock.h (gl_lock_initializer): New macro.
23176         (gl_lock_define_initialized): Use it.
23177         (gl_rwlock_initializer): New macro.
23178         (gl_rwlock_define_initialized): Use it.
23179         (gl_recursive_lock_initializer): New macro.
23180         (gl_recursive_lock_define_initialized): Use it.
23181
23182 2005-07-30  Karl Berry  <karl@gnu.org>
23183
23184         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
23185         Report from Ben Pfaff, regarding getopt.
23186
23187 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
23188
23189         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
23190         normal way.
23191         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
23192         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
23193         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
23194         (gl_GETOPT): Use the new macros.  Most of the implementation
23195         is moved to the new macros.  This is for programs like Emacs
23196         that don't want all the functionality of gl_GETOPT.
23197
23198 2005-07-26  Bruno Haible  <bruno@clisp.org>
23199
23200         * m4/lock.m4: Update from GNU gettext.
23201
23202 2005-07-26  Bruno Haible  <bruno@clisp.org>
23203
23204         * lib/lock.h: Update from GNU gettext.
23205         * lib/lock.c: Update from GNU gettext.
23206
23207 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
23208
23209         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
23210         obsolescent AC_TRY_RUN.  Include the default includes files, for
23211         'exit'.
23212
23213 2005-07-24  Bruno Haible  <bruno@clisp.org>
23214
23215         * modules/visibility: New file.
23216         * MODULES.html.sh (Misc): Add visibility.
23217
23218 2005-07-24  Bruno Haible  <bruno@clisp.org>
23219
23220         * m4/visibility.m4: New file.
23221
23222 2005-07-24  Bruno Haible  <bruno@clisp.org>
23223
23224         * doc/visibility.texi: New file.
23225
23226 2005-07-22  Bruno Haible  <bruno@clisp.org>
23227
23228         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
23229         $(ALLOCA_H), redundant through BUILT_SOURCES.
23230         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
23231         redundant through BUILT_SOURCES.
23232         * modules/byteswap (Makefile.am): Remove explicit dependency on
23233         $(BYTESWAP_H), redundant through BUILT_SOURCES.
23234         * modules/fnmatch (Makefile.am): Remove explicit dependency on
23235         $(FNMATCH_H), redundant through BUILT_SOURCES.
23236         * modules/getopt (Makefile.am): Remove explicit dependency on
23237         $(GETOPT_H), redundant through BUILT_SOURCES.
23238         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
23239         redundant through BUILT_SOURCES.
23240         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
23241         redundant through BUILT_SOURCES.
23242         * modules/stdbool (Makefile.am): Remove explicit dependency on
23243         $(STDBOOL_H), redundant through BUILT_SOURCES.
23244         * modules/stdint (Makefile.am): Remove explicit dependency on
23245         $(STDINT_H), redundant through BUILT_SOURCES.
23246         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
23247         Remove explicit dependency on $(SYSEXITS_H).
23248         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
23249
23250 2005-07-18  Simon Josefsson  <jas@extundo.com>
23251
23252         * lib/check-version.c (check_version): Accept identical versions too.
23253
23254 2005-07-18  Bruno Haible  <bruno@clisp.org>
23255
23256         * modules/lock: New file.
23257         * MODULES.html.sh (Multithreading): New section.
23258
23259 2005-07-18  Bruno Haible  <bruno@clisp.org>
23260
23261         * m4/lock.m4: New file, from GNU gettext.
23262
23263 2005-07-18  Bruno Haible  <bruno@clisp.org>
23264
23265         * lib/lock.h: New file, from GNU gettext.
23266         * lib/lock.c: New file, from GNU gettext.
23267
23268 2005-07-18  Bruno Haible  <bruno@clisp.org>
23269
23270         * lib/lock.h (gl_once_t): New type.
23271         (gl_once_define, gl_once): New macros.
23272         * lib/lock.c (fresh_once): New variable.
23273         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
23274         functions.
23275
23276 2005-07-16  Simon Josefsson  <jas@extundo.com>
23277
23278         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
23279         workaround, suggested by Bruno.
23280
23281 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23282
23283         * modules/xalloc (Depends-on): Add xalloc-die.
23284         * modules/xvasprintf (Depends-on): Add xalloc-die.
23285
23286 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23287
23288         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
23289         with a minor change.
23290
23291 2005-07-15  Bruno Haible  <bruno@clisp.org>
23292
23293         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
23294         When using lib/poll.c, define poll as rpl_poll.
23295
23296 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
23297
23298         * modules/argp (Depends-on): Remove unlocked-io.
23299
23300 2005-07-14  Derek Price  <derek@ximbiot.com>
23301
23302         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
23303         for glob symlink bug.
23304
23305 2005-07-14  Bruno Haible  <bruno@clisp.org>
23306
23307         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
23308         Instead, test for *_unlocked function declarations directly.
23309
23310 2005-07-11  Simon Josefsson  <jas@extundo.com>
23311
23312         * modules/size_max: New file.
23313
23314         * modules/xsize: Depend on size_max module for size_max.m4.
23315
23316 2005-07-11  Simon Josefsson  <jas@extundo.com>
23317
23318         * lib/size_max.h: New file.
23319
23320 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
23321
23322         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
23323         copyright symbol and the year.
23324         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
23325         (version_etc_va): Use parameterized copyright notice.
23326         Reword to conform to the current GNU coding standards.
23327
23328 2005-07-11  Karl Berry  <karl@gnu.org>
23329
23330         * doc/gnulib.texi (Quoting): new node.
23331         (Initial import): more info, from Patrice.
23332
23333 2005-07-11  Bruno Haible  <bruno@clisp.org>
23334
23335         * gnulib-tool (func_usage): Document option --avoid.
23336         (Command line options): Handle --avoid.
23337         (func_acceptable): New function.
23338         (func_modules_transitive_closure): Use it.
23339
23340 2005-07-11  Bruno Haible  <bruno@clisp.org>
23341
23342         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
23343         Reported by Jim Meyering.
23344
23345 2005-07-10  Bruno Haible  <bruno@clisp.org>
23346
23347         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
23348         Needed when size_t is smaller than 'unsigned int'.
23349         Reported by Paul Eggert.
23350
23351 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23352
23353         * modules/argp (Depends-on): Add unlocked-io
23354
23355 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23356
23357         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
23358         block of defines.
23359
23360 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23361
23362         * config/srclist.txt: Comment out regcomp.c, since we have a porting
23363         fix now.
23364
23365 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
23366         and Paul Eggert  <eggert@cs.ucla.edu>
23367
23368         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
23369         in wint_t, not wchar_t.  Remove now-unnecessary cast.
23370
23371 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23372
23373         * modules/regex (Files): Add lib/regex_internal.c,
23374         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
23375         (Depends-on): Add extensions.
23376         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
23377
23378 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23379
23380         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
23381         pathconf.
23382         * m4/same.m4 (gl_SAME): Likewise.
23383         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
23384
23385         * m4/regex.m4: Adjust to new libc regex implementation.
23386         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
23387         all the .c and .h parts of (the new) regex.
23388         Quote the m4 stuff better.
23389         Check for RE_ICASE bug of old gnulib.
23390         Check for REG_STARTEND of recent libc.
23391         Rename local variables from jm_* to gl_*.
23392         Quote operand of "test -f".
23393         Say "recent enough" version of libc, not "version 2".
23394         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
23395         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
23396         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
23397         Remove check for btowc, isascii.
23398         Require AM_LANGINFO_CODESET.
23399
23400 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23401
23402         * lib/regex.c, regex.h: Sync from libc.
23403         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
23404         * lib/regexec.c:
23405         New files, synced from libc, except that regex_internal.h
23406         currently has a small porting fix.
23407
23408 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23409
23410         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
23411         regex_internal.c, regexec.c.
23412         Add regex_internal.h too, but as a comment, since the libc version
23413         is currently broken in gnulib mode.
23414
23415 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23416
23417         Support programs like Emacs that use gnulib but not gettext.
23418         * MODULES.html.sh (Internationalization functions): Add gettext-h.
23419         * modules/gettext-h: New file.
23420         * modules/gettext (Files): Remove lib/gettext.h.
23421         (Depends-on): Add gettext-h.
23422         (Makefile.am): Remove lib_SOURCES.
23423         * modules/argmatch, modules/c-stack, modules/closeout:
23424         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
23425         * modules/execute, modules/file-type, modules/getaddrinfo:
23426         * modules/getopt, modules/human, modules/javacomp:
23427         * modules/javaexec, modules/mkdir-p, modules/obstack:
23428         * modules/openat, modules/pagealign_alloc, modules/pipe:
23429         * modules/quotearg, modules/regex, modules/rpmatch:
23430         * modules/unicodeio, modules/userspec, modules/version-etc:
23431         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
23432         * modules/xsetenv:
23433         Depend on gettext-h, not gettext.
23434
23435 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23436
23437         * gnulib-tool (func_import): Add support for 'public domain' license.
23438         * modules/alloca, modules/atexit, modules/memmove:
23439         Now public domain, not GPL.
23440         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
23441         * modules/realloc, modules/strerror, modules/strtod:
23442         Now LGPL, not GPL.
23443
23444 2005-07-05  Bruno Haible  <bruno@clisp.org>
23445
23446         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
23447         autoconf CVS. Needed for mingw.
23448
23449 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23450
23451         Remove the dependency of the strftime module on the tzset module.
23452         * modules/strftime (Depends-on): Remove dependency on tzset.
23453
23454 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23455
23456         Remove the dependency of the strftime module on the tzset module.
23457         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
23458         gl_FUNC_TZSET_CLOBBER.
23459
23460 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23461
23462         Remove the dependency of the strftime module on the tzset module.
23463         * lib/strftime.c (my_strftime)
23464         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
23465         Copy the input structure, to work around some of the bug with
23466         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
23467         Solaris releases, you should also use the tzset module, but we won't
23468         require it as a dependency any more since we don't want LGPLed code
23469         to depend on GPLed code.
23470
23471 2005-07-02  Jim Meyering  <jim@meyering.net>
23472
23473         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
23474         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
23475         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
23476         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
23477
23478 2005-07-02  Jim Meyering  <jim@meyering.net>
23479
23480         * lib/backupfile.c (backup_args): Change a `0' to NULL.
23481
23482 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23483
23484         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
23485         declares only 'struct timespec;' (!).
23486
23487 2005-07-01  Jim Meyering  <jim@meyering.net>
23488
23489         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
23490         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
23491         * lib/save-cwd.c, tempname.c:
23492         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
23493         and don't include <sys/file.h>).
23494
23495 2005-06-29  Jim Meyering  <jim@meyering.net>
23496
23497         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
23498         type name.  Use the variable name instead.
23499         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
23500         Likewise.
23501
23502 2005-06-28  Simon Josefsson  <jas@extundo.com>
23503
23504         * modules/check-version (Files): Add check-version.m4.
23505
23506 2005-06-28  Simon Josefsson  <jas@extundo.com>
23507
23508         * m4/check-version.m4: New file, suggested by Jim Meyering
23509         <jim@meyering.net>.
23510
23511 2005-06-28  Simon Josefsson  <jas@extundo.com>
23512
23513         * lib/check-version.h, lib/check-version.c: New files.
23514
23515 2005-06-28  Simon Josefsson  <jas@extundo.com>
23516
23517         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
23518         collision with global variable.  Better indentation.  Don't
23519         increment buffer pointer beyond buffer end.  Based on comments
23520         from Paul Eggert <eggert@cs.ucla.edu>.
23521
23522         * lib/base64.h: Indent.
23523
23524 2005-06-28  Simon Josefsson  <jas@extundo.com>
23525
23526         * doc/gnulib.texi (Library version handling): New section.
23527
23528 2005-06-28  Jim Meyering  <jim@meyering.net>
23529
23530         * check-module (find_included_lib_files): Hard-code another
23531         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
23532         but modules/fts-lgpl (correctly) does not list those files.
23533
23534         * modules/canonicalize (Files): Add lib/pathmax.h.
23535
23536 2005-06-25  Simon Josefsson  <jas@extundo.com>
23537
23538         * modules/check-version: New file.
23539
23540 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23541
23542         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
23543         initializer of struct addrinfo, as an indication that we don't
23544         care how many members the structure has.
23545
23546 2005-06-24  Derek Price  <derek@ximbiot.com>
23547         and Bruno Haible  <bruno@clisp.org>
23548
23549         Remove stat module & update lstat.
23550         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
23551         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23552         * m4/stat.m4: Remove this file.
23553
23554 2005-06-24  Derek Price  <derek@ximbiot.com>
23555         and Bruno Haible  <bruno@clisp.org>
23556
23557         Remove stat module & update lstat.
23558         * lib/stat.c: Remove this file...
23559         (slash_aware_lstat): ...moving this content and its support...
23560         * lib/lstat.c (rpl_lstat): ...into here.
23561         * lib/lstat.h: New file.
23562
23563 2005-06-24  Derek Price  <derek@ximbiot.com>
23564         and Bruno Haible  <bruno@clisp.org>
23565
23566         Remove stat module & update lstat.
23567         * config/srclist.txt (libc sources): Remove stat.
23568
23569 2005-06-24  Derek Price  <derek@ximbiot.com>
23570         and Bruno Haible  <bruno@clisp.org>
23571
23572         Remove stat module & update lstat.
23573         * MODULES.html.sh (stat): Remove.
23574         * MODULES.html: Regenerated.
23575         * modules/lstat (Description): Correct function name.
23576         (Files): Add "lstat.h".
23577         (Depends-on): Remove stat, add xalloc, stat-macros.
23578         * modules/stat: Remove this file.
23579         (Include): Add "lstat.h", remove <sys/stat.h>.
23580
23581 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23582
23583         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
23584         (ranged_convert): Don't save conversion in a temporary struct.
23585         This causes a warning with GCC 4.0.0, and anyway in the typical
23586         case it's not worth the extra 100 bytes or so of code.
23587         (ranged_convert, __mktime_internal): When calling a function via a
23588         pointer P, use P () rather than (*P) (), as we now assume C89 or
23589         better.
23590
23591 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23592
23593         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
23594         "who -r" failed to give output.  Problem reported by Tim Waugh.
23595
23596         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
23597         (xcalloc): Use it to avoid needless tests.
23598         Problem reported by Jim Meyering.
23599
23600 2005-06-20  Derek Price  <derek@ximbiot.com>
23601
23602         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
23603         unnecessary for Autoconfs > 2.59c.
23604
23605 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23606
23607         * lib/argp.h (__option_is_short): Check upper limit of
23608         __key. Isprint() requires its argument to have the value
23609         of an unsigned char or EOF.
23610
23611 2005-06-16  Jim Meyering  <jim@meyering.net>
23612
23613         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
23614         when either N or S is zero.
23615
23616 2005-06-16  Derek Price  <derek@ximbiot.com>
23617
23618         * m4/bison.m4: Declare YACC & YFLAGS precious.
23619
23620 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
23621
23622         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
23623         multibyte string or pattern, fall back on unibyte matching.
23624         Problem reported by James Youngman.
23625
23626 2005-06-08  Bruno Haible  <bruno@clisp.org>
23627
23628         * modules/csharpcomp: New file.
23629         * MODULES.html.sh (C#): Add csharpcomp.
23630
23631 2005-06-08  Bruno Haible  <bruno@clisp.org>
23632
23633         * m4/csharpcomp.m4: New file, from GNU gettext.
23634
23635 2005-06-08  Bruno Haible  <bruno@clisp.org>
23636
23637         * lib/csharpcomp.h: New file, from GNU gettext.
23638         * lib/csharpcomp.c: New file, from GNU gettext.
23639         * lib/csharpcomp.sh.in: New file, from GNU gettext.
23640
23641 2005-06-08  Bruno Haible  <bruno@clisp.org>
23642
23643         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
23644         warning on mingw.
23645
23646 2005-06-07  Derek Price  <derek@ximbiot.com>
23647
23648         Sync from CVS.
23649         * lib/glob_.h: Indent nested #ifdef.
23650
23651 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
23652
23653         Sync from coreutils.
23654         Use "file name" when talking about file names, instead of "filename"
23655         or "path", as per the GNU coding standards.
23656         * lib/mkdir-p.c: Renamed from makepath.c.
23657         (make_dir_parents): Renamed from make_path.  All callers changed.
23658         * lib/mkdir-p.h: Likewise.  All includers changed.
23659         * lib/filenamecat.c: Renamed from path-concat.c.
23660         (file_name_concat): Renamed from path_concat.  All callers changed.
23661         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
23662         * lib/filenamecat.h: Likewise.  All includers changed.
23663         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
23664         in comments or local variable names.
23665         * lib/basename.c: Likewise.
23666         * lib/canonicalize.c, canonicalize.h: Likewise.
23667         * lib/dirname.c, dirname.h: Likewise.
23668         * lib/euidaccess.c: Likewise.
23669         * lib/exclude.c: Likewise
23670         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
23671         * lib/fsusage.c, fsuage.h: Likewise.
23672         * lib/fts.c, fts_.h: Likewise.
23673         * lib/getcwd.c: Likewise.
23674         * lib/getloadavg.c: Likewise.
23675         * lib/mkstemp.c: Likewise.
23676         * lib/mountlist.c, mountlist.h: Likewise.
23677         * lib/openat.c, openat.h: Likewise.
23678         * lib/readlink-stub.c: Likewise.
23679         * lib/readutmp.c, readutmp.h: Likewise.
23680         * lib/rename.c: Likewise.
23681         * lib/rmdir.c: Likewise.
23682         * lib/same.c: Likewise.
23683         * lib/savedir.c: Likewise.
23684         * lib/stripslash.c: Likewise.
23685         * lib/tempname.c: Likewise.
23686         * lib/xreadlink.c: Likewise.
23687         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
23688         All uses changed.
23689         * lib/exclude.h: Likewise.
23690
23691         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
23692         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
23693         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
23694         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
23695         * lib/pathmax.h: Include <limits.h> unconditionally, since other
23696         files have been getting away with it for years (MORE/BSD 4.3
23697         is extinct now).
23698         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
23699         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
23700
23701         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
23702         Define to 256, not 255, as per modern POSIX.
23703
23704 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
23705
23706         Sync from coreutils.
23707         Use "file name" when talking about file names, instead of "filename"
23708         or "path", as per the GNU coding standards.
23709         * MODULES.html.sh: mkdir-p renamed from makepath.
23710         filenamecat renamed from path-concat.
23711         * modules/filenamecat: Renamed from modules/path-concat.
23712         (Files): filenamecat.h and filenamecat.c renamed from
23713         path-concat.h and path-concat.c.
23714         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
23715         (Include): filenamecat.h, not path-concat.h.
23716         * modules/mkdir-p: Renamed from modules/makepath.
23717         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
23718         makepath.c.
23719         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
23720         (Include): mkdir-p.h, not makepath.h.
23721
23722 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
23723
23724         Sync from coreutils.
23725         * m4/mkdir-p.m4: Renamed from makepath.m4.
23726         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
23727         Rename files from makepath.c to mkdir-p.c, and from
23728         makepath.h to mkdir-p.h.
23729         * m4/filenamecat.m4: Renamed from path-concat.m4.
23730         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
23731         Rename files from path-concat.c to filenamecat.c,
23732         and from path-concat.h to filenamecat.h.
23733         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
23734         "file name" in local variables or comments.
23735         * m4/rename.m4: Likewise.
23736
23737 2005-06-01  Bruno Haible  <bruno@clisp.org>
23738
23739         * modules/csharpexec: New file.
23740         * MODULES.html.sh (C#): New section.
23741
23742 2005-06-01  Bruno Haible  <bruno@clisp.org>
23743
23744         * m4/csharp.m4: New file, from GNU gettext.
23745         * m4/csharpexec.m4: New file, from GNU gettext.
23746
23747 2005-06-01  Bruno Haible  <bruno@clisp.org>
23748
23749         * lib/csharpexec.h: New file, from GNU gettext.
23750         * lib/csharpexec.c: New file, from GNU gettext.
23751         * lib/csharpexec.sh.in: New file, from GNU gettext.
23752
23753 2005-05-31  Derek Price  <derek@ximbiot.com>
23754             Paul Eggert  <eggert@cs.ucla.edu>
23755
23756         Sync from cvs.
23757         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
23758
23759 2005-05-31  Derek Price  <derek@ximbiot.com>
23760             Paul Eggert  <eggert@cs.ucla.edu>
23761
23762         Sync from cvs.
23763         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
23764
23765 2005-05-29  Derek Price  <derek@ximbiot.com>
23766
23767         * config/srclist.txt (glob_.h, glob.c): Add these files.
23768
23769 2005-05-29  Derek Price  <derek@ximbiot.com>
23770
23771         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
23772         * modules/glob: New file.
23773         * modules/getlogin_r: Add link to POSIX spec in description.
23774
23775 2005-05-29  Derek Price  <derek@ximbiot.com>
23776             Paul Eggert  <eggert@cs.ucla.edu>
23777
23778         * m4/glob.m4: New file.
23779
23780 2005-05-29  Derek Price  <derek@ximbiot.com>
23781             Paul Eggert  <eggert@cs.ucla.edu>
23782
23783         * lib/glob_.h, lib/glob.c: New files.
23784
23785 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
23786
23787         * modules/fts (Files): Remove m4/inttypes-pri.m4.
23788         * modules/fts-lgpl (Depends-on): Remove gettext.
23789
23790 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
23791
23792         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
23793         and don't require gt_INTTYPES_PRI.
23794
23795 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
23796
23797         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
23798
23799         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
23800         the configuration hassle isn't worth it.
23801         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
23802         (LONGEST_MODIFIER, PRIuMAX): Remove.
23803
23804 2005-05-27  Bruno Haible  <bruno@clisp.org>
23805
23806         * lib/getlogin_r.h: Remove second include of <stddef.h>.
23807
23808 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
23809
23810         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
23811         _POSIX_PTHREAD_SEMANTICS for Solaris.
23812
23813 2005-05-25  Derek Price  <derek@ximbiot.com>
23814
23815         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
23816
23817 2005-05-25  Derek Price  <derek@ximbiot.com>
23818             Paul Eggert  <eggert@cs.ucla.edu>
23819
23820         * modules/getlogin_r, m4/getlogin_r.m4: New files.
23821         * lib/getlogin_r.c, getlogin_r.h: New files.
23822
23823 2005-05-25  Bruno Haible  <bruno@clisp.org>
23824             Derek Price  <derek@ximbiot.com>
23825
23826         * lib/getlogin_r.h: Simplify API documentation.
23827
23828 2005-05-23  Derek Price  <derek@ximbiot.com>
23829
23830         * modules/minmax (Files): Add m4/minmax.m4.
23831         (configure.ac): Add gl_MINMAX.
23832
23833 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23834
23835         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
23836         so that unistd-safer.h (GPL'ed code) need not be included.
23837
23838 2005-05-22  Bruno Haible  <bruno@clisp.org>
23839
23840         * m4/minmax.m4: New file.
23841         Based on a patch by Derek Price <derek@ximbiot.com>.
23842
23843 2005-05-22  Bruno Haible  <bruno@clisp.org>
23844
23845         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
23846         (INT64_MIN): Fix definition.
23847         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
23848
23849         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
23850         NEED_SIGNED_INT_TYPES.
23851
23852         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
23853         HAVE_SYSTEM_INTTYPES.
23854
23855 2005-05-22  Bruno Haible  <bruno@clisp.org>
23856
23857         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
23858         Also include <sys/param.h> if it defines MIN, MAX.
23859         Based on a patch by Derek Price <derek@ximbiot.com>.
23860
23861 2005-05-21  Jim Meyering  <jim@meyering.net>
23862
23863         * modules/fts (Files): Add m4/inttypes-pri.m4.
23864         (Depends-on): Add lstat and remove gettext.  Alphabetize.
23865
23866 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
23867
23868         New fts module.
23869         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
23870         (setup_dir, free_dir): New functions.
23871         (enter_dir, leave_dir): Define trivial
23872         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
23873         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
23874         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
23875         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
23876         Move to fts-cycle.c.
23877         (fts_open): Use setup_dir.
23878         (fts_close): Use free_dir.
23879         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
23880         This adds a label and some gotos, but the alternatives were messier.
23881         Check for memory allocation failure when entering a dir.
23882         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
23883         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
23884         (FTS): New member fts_cycle, that is a union that contains the
23885         old active_dir_ht and cycle_state.  All uses changed to mention
23886         fts_cycle.ht and fts_cycle.state.
23887         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
23888         fts.c, with the following changes:
23889         (setup_dir, free_dir): New functions.
23890         (enter_dir): Now returns bool.  Return true if successful, false
23891         if memory exhausted.  All callers changed.
23892         Do not bother partly cleaning up on
23893         memory allocation failure; that is free_dir's job.
23894         However, free ad if hash_insert fails, to avoid memory leak.
23895         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
23896         fts->fts_options to see which union member to use.
23897
23898 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
23899
23900         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
23901         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
23902
23903 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
23904
23905         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
23906
23907 2005-05-20  Jim Meyering  <jim@meyering.net>
23908
23909         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
23910         Now a macro, to pacify GCC.
23911
23912 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
23913
23914         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
23915         of -1.
23916
23917 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
23918
23919         * lib/chown.c (rpl_chown): Return -1 on failure.
23920
23921 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
23922
23923         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
23924         Don't check for stddef.h.
23925         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
23926         don't use its results.
23927         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
23928         since we include them unconditionally.  Don't require
23929         AM_STDBOOL_H, since stdbool is a prerequisite.
23930         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
23931         since we assume C89 or better.
23932         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
23933         as we don't use their results.
23934         Don't check for fchdir, memmove, memset, strrchr, as we use
23935         them unconditionally.
23936         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
23937         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
23938
23939 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
23940
23941         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
23942         Include <stddef.h> unconditionally, since we assume C89 now.
23943         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
23944         * lib/fts.c: Include fts_.h first, to check interface.
23945         Do not include intprops.h; no longer needed.
23946         Include cycle-check.h and hash.h, since fts_.h no longer does.
23947         Remove unnecessary casts of closedir to void.
23948         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
23949         decide whether to decrement nlinks.
23950         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
23951         (FTS): Use struct hash_table * instead of Hash_table, so that
23952         we no longer need to include hash.h here.
23953
23954 2005-05-18  Jim Meyering  <jim@meyering.net>
23955
23956         * modules/dirfd (License): Change to LGPL.  Most of the code
23957         is already in the public domain.
23958
23959 2005-05-18  Jim Meyering  <jim@meyering.net>
23960
23961         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
23962         Reported by Yoann Vandoorselaere.
23963
23964 2005-05-17  Jim Meyering  <jim@meyering.net>
23965
23966         * m4/fts.m4: New file, from coreutils.
23967
23968 2005-05-17  Jim Meyering  <jim@meyering.net>
23969
23970         * lib/fts.c, lib/fts_.h: New files, from coreutils.
23971
23972 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23973
23974         Sync from coreutils.
23975         * m4/unlinkdir.m4: New file.
23976
23977 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23978
23979         Sync from coreutils.
23980         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
23981         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
23982         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
23983         White space changes only.
23984         * lib/makepath.c (make_path): Port to hosts where leading "//" is
23985         special.
23986         * lib/yesno.c: Include getline.h, not ctype.h.
23987         (yesno): Don't remove leading white space; POSIX doesn't allow it.
23988         Use getline to remove arbitrary restriction on response length.
23989
23990 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23991
23992         * config/srclist-update: Spell out "Street" in FSF postal
23993         mail address; this is the style the FSF seems to prefer.
23994
23995         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
23996         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
23997         this updates FSF postal mail address.
23998
23999         Sync from coreutils.
24000         * modules/unlinkdir: New file.
24001         * modules/yesno (Depends-on): Add getline.
24002         * MODULES.html.sh (File system functions): Add unlinkdir.
24003
24004 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24005
24006         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
24007         lib/strsep.h:
24008         Change the initial comment to refer to GPL, not LGPL.
24009         gnulib-tool will change it to LGPL as needed.
24010
24011         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
24012         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
24013         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
24014         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
24015         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
24016         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
24017         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
24018         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
24019         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
24020         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
24021         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
24022         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
24023         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
24024         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
24025         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
24026         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
24027         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
24028         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
24029         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
24030         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
24031         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
24032         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
24033         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
24034         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
24035         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
24036         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
24037         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
24038         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
24039         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
24040         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
24041         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
24042         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
24043         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
24044         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
24045         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
24046         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
24047         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
24048         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
24049         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
24050         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
24051         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
24052         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
24053         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
24054         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
24055         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
24056         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
24057         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
24058         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
24059         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
24060         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
24061         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
24062         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
24063         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
24064         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
24065         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
24066         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
24067         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
24068         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
24069         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
24070         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
24071         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
24072         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
24073         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
24074         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
24075         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
24076         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
24077         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
24078         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
24079         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
24080         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
24081         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
24082         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
24083         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
24084         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
24085         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
24086         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
24087         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
24088         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
24089         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
24090         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
24091         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
24092         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
24093         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
24094         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
24095         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
24096         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
24097         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
24098         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
24099         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
24100         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
24101         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
24102         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
24103         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
24104         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
24105         lib/yesno.c, lib/yesno.h:
24106         Update FSF postal mail address.
24107
24108 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24109
24110         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
24111         tests/test-memmem.c, tests/test-stpncpy.c:
24112         Update FSF postal mail address.
24113
24114 2005-05-13  Bruno Haible  <bruno@clisp.org>
24115
24116         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
24117         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
24118         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
24119         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
24120         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
24121         Add support for 64-bit integers in the MSVC compiler.
24122
24123 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24124
24125         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
24126
24127 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
24128
24129         * gnulib-tool (func_import): Sort and uniquify recommended includes.
24130
24131 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24132
24133         * doc/getdate.texi (General date syntax): Don't say that date
24134         date --iso-8601=ns generates acceptable dates; it doesn't yet.
24135         Problem reported by Nic Ferrier.
24136
24137 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24138
24139         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
24140         specified in ai_socktype. Fix invalid ai_protocol
24141         check. ai_protocol is usually set to 0 or depending on
24142         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
24143         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
24144         ai_socktype / ai_protocol in the returned addrinfo structure.
24145
24146 2005-05-10  Simon Josefsson  <jas@extundo.com>
24147
24148         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
24149         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24150
24151 2005-05-10  Karl Berry  <karl@gnu.org>
24152
24153         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
24154         (from http://www.gnu.org/licenses).
24155         * doc/COPYING.LIB: also rename to COPYING.LESSER.
24156         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
24157         fdl.texi suffices.
24158
24159 2005-05-10  Karl Berry  <karl@gnu.org>
24160
24161         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
24162         (COPYING.DOC): remove.
24163
24164         * config/srclist-update: new FSF address.
24165
24166 2005-05-10  Derek Price  <derek@ximbiot.com>
24167
24168         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
24169         possible.
24170
24171 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24172             Bruno Haible  <bruno@clisp.org>
24173
24174         * modules/inet_ntop: New file.
24175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24176         inet_ntop.
24177
24178 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24179             Bruno Haible  <bruno@clisp.org>
24180
24181         * m4/inet_ntop.m4: New file.
24182
24183 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24184             Bruno Haible  <bruno@clisp.org>
24185
24186         * lib/inet_ntop.h: New file.
24187         * lib/inet_ntop.c: New file, from glibc with modifications.
24188
24189 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
24190
24191         * modules/time_r (License): Change to LGPL.
24192         * modules/extensions (License): Change to LGPL.  Actually,
24193         the license is more permissive than that, but currently gnulib-tool
24194         doesn't know how to handle more-permissive licenses.
24195
24196         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
24197         Problem reported by Dave Love.
24198
24199 2005-05-08  Jim Meyering  <jim@meyering.net>
24200
24201         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
24202         blank.
24203
24204 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
24205
24206         * modules/argmatch (Depends-on): Add stdbool.
24207         * modules/backupfile (Depends-on): Likewise.
24208         * modules/chdir-long (Depends-on): Likewise.
24209         * modules/closeout (Depends-on): Likewise.
24210         * modules/cycle-check (Depends-on): Likewise.
24211         * modules/dirname (Depends-on): Likewise.
24212         * modules/fnmatch (Depends-on): Likewise.
24213         * modules/fsusage (Depends-on): Likewise.
24214         * modules/fwriteerror (Depends-on): Likewise.
24215         * modules/getcwd (Depends-on): Likewise.
24216         * modules/getloadavg (Depends-on): Likewise.
24217         * modules/hard-locale (Depends-on): Likewise.
24218         * modules/makepath (Depends-on): Likewise.
24219         * modules/mountlist (Depends-on): Likewise.
24220         * modules/nanosleep (Depends-on): Likewise.
24221         * modules/posixtm (Depends-on): Likewise.
24222         * modules/quotearg (Depends-on): Likewise.
24223         * modules/readtokens (Depends-on): Likewise.
24224         * modules/readtokens0 (Depends-on): Likewise.
24225         * modules/readutmp (Depends-on): Likewise.
24226         * modules/save-cwd (Depends-on): Likewise.
24227         * modules/strftime (Depends-on): Likewise.
24228         * modules/userspec (Depends-on): Likewise.
24229         * modules/utimecmp (Depends-on): Likewise.
24230         * modules/xgetcwd (Depends-on): Likewise.
24231         * modules/xnanosleep (Depends-on): Likewise.
24232         * modules/xstrtod (Depends-on): Likewise.
24233         * modules/yesno (Depends-on): Likewise.
24234
24235 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24236
24237         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
24238         needless checks.
24239
24240 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24241
24242         Merge from coreutils.  Among other things,
24243         add bulletproofing for cases where stdin, stdout, or stderr are closed.
24244         * lib/fd-safer.c: New file.
24245         * lib/fcntl-safer.h, open-safer.c: Remove.
24246         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
24247         * lib/dup-safer.c: Include unistd-safer.h first.
24248         Don't include errno.h.
24249         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
24250         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
24251         * lib/file-type.c: Rely on file-type.h change.
24252         * lib/getloadavg.c: Include unistd-safer.h.
24253         (getloadavg): Use safer open.
24254         * lib/getusershell.c: Include "stdio-safer.h".
24255         (getusershell): Use safer fopen.
24256         * lib/long-options.c (long_options): Use NULL rather than 0.
24257         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
24258         'free'.
24259         * lib/modechange.c: Likewise.
24260         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
24261         (MODE_DONE): New constant.
24262         (struct mode_change): Remove 'next' member.
24263         (make_node_op_equals): New function; like the old one of the
24264         same name, except it allocates an array.
24265         (mode_compile, mode_create_from_ref): Use it.
24266         (mode_compile): Allocate result as an array, not a linked list.
24267         Parse octal string ourself, so that we catch mistakes like "+0".
24268         (mode_adjust): Arg is an array, not a linked list.
24269         * lib/modechange.c: Include stat-macros.h, xalloc.h.
24270         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
24271         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
24272         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
24273         Remove.  This is now stat-macros.h's job.
24274         (talloc): Remove.  All callers replaced by xalloc, so that
24275         our invokers don't have to worry about reporting memory failures.
24276         (make_node_op_equals): Remove.
24277         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
24278         New constants.
24279         (struct mode_change): Moved here from modechange.h.
24280         (mode_append_entry): Remove.
24281         (mode_compile): Remove MASKED_OPS arg, since it encouraged
24282         apps to have incorrect behavior.  Use simpler algorithm for head
24283         and tail.  Don't futz with umask; that's now the job of mode_adjust.
24284         Detect more invalid usages rather than having somewhat-random behavior.
24285         Don't insert an "a=" action, as that leads to incorrect behavior.
24286         (mode_compile, mode_create_from_ref): Return NULL on error instead
24287         of an enum, since now there's only one way to have an error.  All
24288         callers changed.
24289         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
24290         at the correct time.  Simplify calculation of "+u" and its ilk.
24291         Don't mishandle "+X".
24292         (mode_free): Remove "register" and localize decls.
24293         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
24294         (struct mode_change): Move to modechange.c; callers don't
24295         need to see this stuff.
24296         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
24297         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
24298         (mode_change, mode_adjust): Reflect the new signatures noted above.
24299         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
24300         that might redefine system include files.
24301         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
24302         (my_usleep): Use NULL rather than (void *) 0.
24303         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
24304         Use siginterrupt to specify that system calls should be interrupted.
24305         (rpl_nanosleep): Move initialization of suspended closer to call of
24306         my_usleep.
24307         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
24308         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
24309         (desirable_utmp_entry): New function.
24310         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
24311         using x2nrealloc, to simplify logic.
24312         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
24313         size calculation.  Do not assume utmp file is a regular file.
24314         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
24315         (READ_UTMP_CHECK_PIDS): New constant.
24316         * lib/save-cwd.c: Include unistd-safer.h.
24317         (save_cwd): Use fd_safer.
24318         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
24319         [!_LIBC] Include "stat-macros.h" instead.
24320         * lib/unistd-safer.h (fd_safer): New decl.
24321
24322 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24323
24324         * modules/getloadavg (Depends-on): Add unistd-safer.
24325         * modules/getusershell (Depends-on): Add stdio-safer.
24326         * modules/lstat (Depends-on): Remove xalloc.
24327         * modules/mkstemp (Depends-on): Add stat-macros.
24328         * modules/modechange (Depends-on): Remove xstrtol.
24329         Add stat-macros, xalloc.
24330         * modules/save-cwd (Depends-on): Add unistd-safer.
24331         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
24332         * modules/unistd-safer (Files): Add lib/fd-safer.c
24333         (Makefile.am): Remove lib_SOURCES.
24334
24335         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
24336         Remove fcntl-safer; unistd-safer supersedes it.
24337
24338 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24339
24340         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
24341         AC_HEADER_STAT.
24342         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
24343         (gl_PREREQ_CHOWN): Remove.
24344         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
24345         it.  Don't require AC_HEADER_STAT.
24346         (gl_PREREQ_LSTAT): Remove.
24347         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
24348         Don't require AC_HEADER_STAT.
24349         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
24350         (gl_PREREQ_RMDIR): Remove.
24351         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
24352         mention stat-macros.h or AC_HEADER_STAT, since we'll make
24353         the stat-macros module a prerequisite.
24354         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
24355         * m4/filemode.m4 (gl_FILEMODE): Likewise.
24356         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
24357         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
24358         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
24359         variable names.
24360         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
24361         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
24362         variable prefixes.
24363         * m4/fcntl-safer.m4: Remove.
24364         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
24365         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
24366         Invoke gl_PREREQ_FD_SAFER.
24367         (gl_PREREQ_FD_SAFER): New macro.
24368         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
24369         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
24370         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
24371         Remove duplicate call to AC_LIBOBJ(readutmp).
24372         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
24373
24374         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
24375         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
24376
24377 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24378
24379         * MODULES.html.sh (Misc): Add byteswap.
24380
24381 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
24382
24383         * modules/getcwd (Depends-on): Add extensions.
24384         * modules/openat (Depends-on): Likewise.
24385
24386 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
24387
24388         * modules/byteswap: New file.
24389
24390 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
24391
24392         * m4/byteswap.m4: New file.
24393
24394 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
24395
24396         * lib/byteswap_.h: New file.
24397
24398 2005-04-25  Karl Berry  <karl@gnu.org>
24399
24400         * m4/gettext.m4: Update from GNU gettext 0.14.4.
24401
24402 2005-04-25  Albert Chin  <china@thewrittenword.com>
24403
24404         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
24405         Toolkit C bug.
24406
24407 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
24408
24409         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
24410         (func_ln_if_changed) Remove forcibly for no error message
24411         in case file does not exist.
24412
24413 2005-04-19  Simon Josefsson  <jas@extundo.com>
24414
24415         * gnulib-tool (Options): Make --symlink mean --symbolic.
24416
24417 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
24418
24419         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
24420
24421 2005-04-16  Simon Josefsson  <jas@extundo.com>
24422
24423         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
24424
24425 2005-04-15  Simon Josefsson  <jas@extundo.com>
24426
24427         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
24428
24429 2005-04-15  Simon Josefsson  <jas@extundo.com>
24430
24431         * gnulib-tool: Rename --symlink to --symbolic.
24432
24433 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
24434
24435         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
24436         symbolic links to files instead of copying/moving.  Add --aux-dir,
24437         specifying directory relative --dir where auxiliary build tools
24438         are placed.
24439
24440 2005-04-14  Bruno Haible  <bruno@clisp.org>
24441
24442         * modules/allocsa (License): Change to LGPL.
24443         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24444
24445 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24446
24447         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
24448         that "UTC +1 second" continues to work.  Problem reported
24449         by Dmitry V. Levin.
24450         (relunit_snumber): New rule.
24451         (relunit): Use it.
24452
24453 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24454
24455         * lib/getdate.y (universal_time_zone_table): New constant.
24456         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
24457         universal_time_zone_table.
24458         (lookup_zone): Prefer universal_time_zone_table to
24459         local_time_zone_table, so that "GMT" time stamps are allowed in
24460         London during the summer.  Problem reported by Ian Abbott.
24461
24462 2005-04-12  Jim Meyering  <jim@meyering.net>
24463
24464         * lib/human.c (humblock): Set *options even when returning due to
24465         xstrtoumax conversion failure.  Thanks to a used-uninitialized
24466         warning from gcc-4.
24467
24468 2005-04-09  Jim Meyering  <jim@meyering.net>
24469
24470         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
24471         -Wuninitialized: initialize tm0.tm_year.
24472
24473 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
24474
24475         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
24476         count, since there's no maximum.  All uses changed.
24477         Add member dsts_seen.
24478         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
24479         not being INT_MAX.
24480         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
24481         Use pc_rels_seen to decide whther a date is absolute.
24482
24483         * lib/getdate.y (number): Don't overwrite year.
24484         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
24485         check.
24486
24487 2005-04-02  Simon Josefsson  <jas@extundo.com>
24488
24489         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
24490         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
24491
24492 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
24493
24494         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
24495         where no absolute path name can be longer than PATH_MAX.
24496
24497 2005-03-27  Jim Meyering  <jim@meyering.net>
24498
24499         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
24500
24501 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
24502
24503         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
24504         "one's complement" -> "ones' complement" in comment, as per Knuth.
24505         "value of type" -> "type or expression" in comment.
24506         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
24507
24508 2005-03-26  Jim Meyering  <jim@meyering.net>
24509
24510         Comment nits.
24511         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
24512         Correct typos: s/or/of/.
24513
24514 2005-03-26  Jim Meyering  <jim@meyering.net>
24515
24516         * modules/check-include-files: Move to ../ and rename to...
24517         * check-module: ...this.
24518
24519 2005-03-25  Jim Meyering  <jim@meyering.net>
24520
24521         * modules/xvasprintf (Files): Add xalloc.h.
24522
24523 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
24524
24525         * modules/gettext (Files): config/config.rpath ->
24526         build-aux/config.rpath
24527         * modules/iconv (Files): Likewise.
24528         Problem reported by Oskar Liljeblad.
24529
24530 2005-03-23  Jim Meyering  <jim@meyering.net>
24531
24532         * modules/check-include-files: New script to check for
24533         missing dependencies, multiple includes, etc.
24534
24535         * modules/c-strtold (Depends-on): Add xalloc.
24536         * modules/c-strtod (Depends-on): Add xalloc.
24537         * modules/hash (Depends-on): Add xalloc.
24538         (Files): Remove lib/xalloc.h.
24539
24540         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
24541         * modules/userspec (Files): Add lib/inttostr.h.
24542
24543 2005-03-23  Jim Meyering  <jim@meyering.net>
24544
24545         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
24546
24547 2005-03-22  Jim Meyering  <jim@meyering.net>
24548
24549         * modules/stat-macros: New module.
24550         * modules/canonicalize, modules/euidaccess, modules/file-type,
24551         * modules/filemode, modules/lchown, modules/makepath,
24552         * modules/rmdir, modules/stat: Depend on new stat-macros module
24553         rather than listing lib/stat-macros.h manually.
24554         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
24555
24556 2005-03-22  Jim Meyering  <jim@meyering.net>
24557
24558         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
24559
24560 2005-03-22  Bruno Haible  <bruno@clisp.org>
24561
24562         * config/srclist.txt: Replace target directory 'config' with
24563         'build-aux'.
24564         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
24565         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
24566         ../build-aux/.
24567
24568 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24569
24570         * modules/chdir-long (Depends-on): Add mempcpy.
24571
24572         * modules/acl, modules/backupfile, modules/c-strtod,
24573         modules/c-strtold, modules/canon-host, modules/canonicalize,
24574         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
24575         modules/exclude, modules/exitfail, modules/file-type,
24576         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
24577         modules/getdate, modules/getline, modules/getpagesize,
24578         modules/getpass, modules/getugroups, modules/group-member,
24579         modules/hard-locale, modules/hash, modules/human, modules/idcache,
24580         modules/inttostr, modules/long-options, modules/makepath,
24581         modules/md5, modules/memcasecmp, modules/memcoll,
24582         modules/modechange, modules/mountlist, modules/path-concat,
24583         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
24584         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
24585         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
24586         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
24587         modules/strftime, modules/strndup, modules/strverscmp,
24588         modules/timespec, modules/unlocked-io, modules/userspec,
24589         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
24590         modules/yesno:
24591         Remove lib_SOURCES line from Makefile.am section, as this is now
24592         done automatically by the corresponding Autoconf macro.
24593
24594 2005-03-21  Jim Meyering  <jim@meyering.net>
24595
24596         Changes imported from coreutils.
24597
24598         * lib/cycle-check.c: Don't include xalloc.h.
24599
24600         * lib/path-concat.c: Don't include assert.h.
24601         (path_concat): Remove assertion that would have triggered
24602         for ABASE starting with more than one slash.
24603         Reported by Andreas Schwab.
24604
24605         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
24606         properly when ABASE is an absolute file name.
24607         Correct the description of this function.
24608         Include <assert.h>.
24609         Add an assertion and a test driver.
24610         This fixes a bug introduced on 2004-07-02.
24611         Andreas Schwab reported the resulting failure of cp --parents:
24612         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
24613
24614 2005-03-21  Jim Meyering  <jim@meyering.net>
24615
24616         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
24617         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
24618
24619 2005-03-21  Jim Meyering  <jim@meyering.net>
24620         and  Paul Eggert  <eggert@cs.ucla.edu>
24621
24622         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
24623         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
24624         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
24625         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
24626         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
24627         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
24628         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
24629         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
24630         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
24631         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
24632         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
24633         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
24634         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
24635         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
24636         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
24637         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
24638         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
24639         for these modules.
24640
24641 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24642
24643         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
24644         (which shouldn't happen), generate nothing instead of returning 0
24645         immediately, so that nstrftime (NULL, ...) doesn't return 0.
24646
24647 2005-03-16  Bruno Haible  <bruno@clisp.org>
24648
24649         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
24650         HAVE_LONGLONG_64BIT.
24651
24652 2005-03-16  Bruno Haible  <bruno@clisp.org>
24653
24654         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
24655         HAVE_LONGLONG_64BIT.
24656
24657 2005-03-16  Bruno Haible  <bruno@clisp.org>
24658
24659         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
24660         HAVE_LONGLONG_64BIT.
24661
24662 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24663
24664         * lib/strftime.c (my_strftime): Prepend space to format so that we can
24665         reliably distinguish strftime failure from empty output on POSIX
24666         hosts.
24667
24668 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24669
24670         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
24671         (iconv_string): Don't guess a size-zero buffer, as that might cause
24672         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
24673         result would be 'too large', where 'too large' is (heuristically)
24674         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
24675         overflow concerns.  This will prevent some unwanted malloc failures
24676         when the inputs are very large.
24677
24678 2005-03-15  Karl Berry  <karl@gnu.org>
24679
24680         * config/srclist.txt (config.rpath): from gettext.
24681         * config/config.rpath: update.
24682
24683 2005-03-15  Bruno Haible  <bruno@clisp.org>
24684
24685         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
24686         to 'negate'.
24687
24688         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
24689         variable.
24690
24691         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
24692         results.
24693
24694 2005-03-14  Simon Josefsson  <jas@extundo.com>
24695
24696         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
24697         <fx@gnu.org>.
24698
24699 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24700
24701         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
24702         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
24703         intprops.h.
24704         * lib/strtol.c: Likewise.
24705
24706 2005-03-14  Jim Meyering  <jim@meyering.net>
24707
24708         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
24709         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
24710         to be nonzero so that we (and caller) can detect the difference
24711         between a valid zero-length expansion and an error return, even
24712         when the underlying strftime fails before writing anything into
24713         that location.
24714
24715 2005-03-14  Bruno Haible  <bruno@clisp.org>
24716
24717         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
24718         Update from GNU gettext 0.14.3.
24719
24720 2005-03-10  Jim Meyering  <jim@meyering.net>
24721
24722         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
24723
24724 2005-03-10  Jim Meyering  <jim@meyering.net>
24725
24726         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
24727         so that this module works on systems without fchdir.
24728
24729 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
24730
24731         Factor int-properties macros into a single file, except for
24732         glibc-related files.
24733         * lib/intprops.h: New file.
24734         * lib/getloadavg.c: Include it instead of limits.h.
24735         (INT_STRLEN_BOUND): Remove.
24736         * lib/human.c: Include intprops.h.
24737         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
24738         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
24739         302/1000.
24740         * lib/inttostr.h: Include intprops.h instead of limits.h.
24741         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
24742         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
24743         for consistency with intprops.h.
24744         (time_t_is_integer, twos_complement_arithmetic): Use them.
24745         * lib/sig2str.h: Include <signal.h>, intprops.h.
24746         (INT_STRLEN_BOUND): Remove.
24747         * lib/strftime.c (TYPE_SIGNED): Remove.
24748         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
24749         * lib/strtol.c: Adjust comments to match intprops.h.
24750         * lib/userspec.c: Include intprops.h.
24751         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
24752         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
24753         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
24754         instead of rolling our own expressions.
24755         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
24756
24757         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
24758         instead of int.
24759         (my_strftime): Do not mishandle years close to INT_MAX, by doing
24760         the right thing even if adding 1900 would overflow.  Similarly
24761         for tm_mon + 1 and tm_yday + 1.
24762         Make %Y always equivalent to %C%y, and similarly for %G and %g.
24763         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
24764         (DO_SIGNED_NUMBER): New macro.
24765         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
24766
24767 2005-03-07  Bruno Haible  <bruno@clisp.org>
24768
24769         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
24770
24771 2005-03-07  Bruno Haible  <bruno@clisp.org>
24772
24773         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
24774
24775 2005-03-04  Derek R. Price  <derek@ximbiot.com>
24776
24777         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
24778         (func_import): Only replace files via --import when they have actually
24779         changed.
24780
24781 2005-03-03  Derek R. Price  <derek@ximbiot.com>
24782
24783         * m4/mmap-anon.m4: New file.
24784         * m4/pagealign_alloc.m4: New file.
24785
24786 2005-03-03  Derek R. Price  <derek@ximbiot.com>
24787             Bruno Haible  <bruno@clisp.org>
24788
24789         * modules/pagealign_alloc: New file.
24790         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
24791
24792 2005-03-03  Derek R. Price  <derek@ximbiot.com>
24793             Bruno Haible  <bruno@clisp.org>
24794
24795         * lib/pagealign_alloc.h: New file.
24796         * lib/pagealign_alloc.c: New file.
24797
24798 2005-03-03  Bruno Haible  <bruno@clisp.org>
24799
24800         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
24801         Use an all-permissive copyright notice, recommended by RMS.
24802
24803 2005-03-02  Bruno Haible  <bruno@clisp.org>
24804
24805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
24806         of AIX, the replacement has to be done only after <string.h> is
24807         included, therefore not in config.h. stpncpy.h does the replacement,
24808         and stpncpy.c uses it.
24809
24810 2005-03-02  Bruno Haible  <bruno@clisp.org>
24811
24812         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
24813         stpncpy.c uses it.
24814
24815 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
24816
24817         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
24818         The workaround isn't strictly needed for POSIX conformance, and
24819         it's too much of a pain to configure and maintain.  We'll ask
24820         people to fix their kernels instead.
24821         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
24822         (NANOSLEEP_BUG_WORKAROUND): Remove.
24823         (xnanosleep): Remove the workaround.
24824
24825 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
24826
24827         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
24828         Reported by Derek Price.
24829         (Include): Add "timespec.h".
24830
24831         * modules/xnanosleep (Depends-on): Remove gethrxtime.
24832
24833 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
24834
24835         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
24836         to detect nanosleep bug.
24837
24838 2005-03-01  Bruno Haible  <bruno@clisp.org>
24839
24840         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
24841
24842 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
24843
24844         * modules/gethrxtime: New file.
24845         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
24846         (Depends-on): Add gethrxtime.
24847         (configure.ac): Add gl_XNANOSLEEP.
24848         (Makefile.am): Remove lib_SOURCES line.
24849
24850 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24851
24852         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
24853         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
24854
24855 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24856
24857         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
24858         * lib/timespec.h (gettime): Return void, since it always
24859         succeeds now.  All uses changed.
24860         * lib/gettime.c (gettime) Likewise.
24861         [HAVE_NANOTIME]: Prefer nanotime.
24862         Assume gettimeofday succeeds, as POSIX requires.
24863         Assime time () succeeds, since other code already does.
24864         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
24865         (timespec_subtract): Remove.
24866         (NANOSLEEP_BUG_WORKAROUND): New constant.
24867         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
24868         things considerably.  Use it only on GNU/Linux hosts, since the
24869         workaround shouldn't be needed elsewhere.
24870
24871 2005-02-24  Bruno Haible  <bruno@clisp.org>
24872
24873         * modules/gettext (Files): Add m4/glibc2.m4.
24874
24875 2005-02-24  Bruno Haible  <bruno@clisp.org>
24876
24877         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
24878         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
24879         * m4/progtest.m4:
24880         Update from GNU gettext 0.14.2.
24881         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
24882
24883 2005-02-24  Bruno Haible  <bruno@clisp.org>
24884
24885         * lib/localcharset.c: Update from GNU gettext 0.14.2.
24886         * lib/config.charset: Update from GNU gettext 0.14.2.
24887
24888 2005-02-24  Bruno Haible  <bruno@clisp.org>
24889
24890         * lib/gettext.h: Update from GNU gettext 0.14.2.
24891
24892 2005-02-23  Simon Josefsson  <jas@extundo.com>
24893
24894         * m4/iconvme.m4: New file.
24895
24896 2005-02-23  Jim Meyering  <jim@meyering.net>
24897
24898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
24899         change.
24900         Thanks to Bruno Haible for catching it.
24901
24902 2005-02-22  Simon Josefsson  <jas@extundo.com>
24903
24904         * modules/iconvme: New file.
24905
24906         * MODULES.html.sh: Add iconvme.
24907
24908 2005-02-22  Simon Josefsson  <jas@extundo.com>
24909
24910         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
24911
24912 2005-02-22  Simon Josefsson  <jas@extundo.com>
24913
24914         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
24915
24916 2005-02-22  Jim Meyering  <jim@meyering.net>
24917
24918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
24919         s/ifndef/ifdef/.
24920
24921 2005-02-20  Neil Conway  <neilc@samurai.com>
24922
24923         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
24924         returned by OSX/Darwin if the specified buffer is not large
24925         enough for the hostname.
24926
24927 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24928
24929         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
24930         pass it to _help, otherwise the latter coredumps trying to
24931         dereference state.root_argp.
24932
24933 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24934
24935         * modules/chdir-long (Depends-on): Add memrchr.
24936         * modules/memrchr (Files): Add lib/memrchr.h.
24937         (Include): "memrchr.h".
24938
24939 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24940
24941         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
24942
24943 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24944
24945         * lib/memrchr.h: New file.
24946         * lib/chdir-long.c: Include it.
24947         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
24948         Don't bother including stddef.h.
24949
24950 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
24951
24952         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
24953         inclusion.
24954         Include <sys/types.h>, for dev_t.
24955         (ME_DUMMY, ME_REMOTE): Move from here....
24956         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
24957         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
24958         Dmitry V. Levin.
24959         Include mountlist.h first, to test the interface.
24960
24961 2005-01-29  Bruno Haible  <bruno@clisp.org>
24962
24963         * lib/progname.c (program_name): Initialize.
24964         Needed when linking statically on MacOS X.
24965
24966 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24967
24968         Sync from coreutils.
24969         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
24970         (Depends-on): Add c-strtod.
24971         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
24972
24973 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24974
24975         Sync from coreutils.
24976         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
24977
24978         Remove files that are specific to coreutils.
24979         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
24980
24981 2005-01-28  Bruno Haible  <bruno@clisp.org>
24982
24983         * modules/javacomp: New file.
24984         * MODULES.html.sh (Java): Add javacomp.
24985
24986 2005-01-28  Bruno Haible  <bruno@clisp.org>
24987
24988         * m4/javacomp.m4: New file, from GNU gettext.
24989
24990 2005-01-28  Bruno Haible  <bruno@clisp.org>
24991
24992         * lib/javacomp.sh.in: New file, from GNU gettext.
24993         * lib/javacomp.h: New file, from GNU gettext.
24994         * lib/javacomp.c: New file, from GNU gettext.
24995
24996 2005-01-26  Simon Josefsson  <jas@extundo.com>
24997
24998         * lib/gai_strerror.c: Use GPL in header.
24999
25000 2005-01-26  Bruno Haible  <bruno@clisp.org>
25001
25002         * modules/javaexec: New file.
25003         * MODULES.html.sh (Java): Add javaexec.
25004
25005 2005-01-26  Bruno Haible  <bruno@clisp.org>
25006
25007         * m4/javaexec.m4: New file, from GNU gettext.
25008
25009 2005-01-26  Bruno Haible  <bruno@clisp.org>
25010
25011         * lib/javaexec.sh.in: New file, from GNU gettext.
25012         * lib/javaexec.h: New file, from GNU gettext.
25013         * lib/javaexec.c: New file, from GNU gettext.
25014
25015 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25016
25017         * modules/lchown (Depends-on): Remove lchown.h
25018
25019 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25020
25021         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
25022         must be defined if the header file was not found, in order
25023         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
25024
25025 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25026
25027         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
25028         initializers for struct pentry_state.
25029         (__argp_error): Check return value of __asprintf
25030         (__argp_failure): Translate error message
25031
25032         * lib/argp-parse.c: Removed braces around the expansion of N_()
25033
25034 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25035
25036         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
25037         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
25038         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
25039         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
25040         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
25041         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
25042         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
25043         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
25044         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
25045         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
25046         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
25047         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
25048         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
25049         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
25050         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
25051         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
25052         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
25053         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
25054         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
25055         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
25056         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
25057         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
25058         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
25059         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
25060         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
25061         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
25062         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
25063         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
25064         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
25065         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
25066         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
25067         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
25068         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
25069         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
25070         xstrtol.m4, xstrtoumax.m4, yesno.m4:
25071         Use an all-permissive copyright notice, recommended by RMS.
25072
25073 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25074
25075         * modules/chdir-long (Depends-on): Remove mempcpy.
25076
25077 2005-01-21  Jim Meyering  <jim@meyering.net>
25078
25079         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
25080         same value as for Solaris 9.
25081
25082         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
25083         component length.  This included changing the parameter to be
25084         of type `char *' rather than `char const *'.
25085         * lib/chdir-long.h (chdir_long): Update prototype.
25086
25087         * lib/openat.c (fdopendir, fstatat): New functions.
25088         * lib/openat.h: Include headers required for use of DIR and struct
25089         stat.
25090         [AT_SYMLINK_NOFOLLOW]: Define.
25091         (fdopendir, fstatat): Add prototypes.
25092
25093 2005-01-21  Bruno Haible  <bruno@clisp.org>
25094
25095         * modules/classpath: New file.
25096         * MODULES.html.sh (Java): Add classpath.
25097
25098 2005-01-21  Bruno Haible  <bruno@clisp.org>
25099
25100         * lib/classpath.h: New file, from GNU gettext.
25101         * lib/classpath.c: New file, from GNU gettext.
25102
25103 2005-01-20  Simon Josefsson  <jas@extundo.com>
25104
25105         * modules/version-etc-fsf: New file.
25106
25107 2005-01-20  Simon Josefsson  <jas@extundo.com>
25108
25109         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
25110         * lib/version-etc.c: Remove version_etc_copyright.
25111         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
25112         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
25113
25114 2005-01-20  Simon Josefsson  <jas@extundo.com>
25115
25116         * lib/base64.h (isbase64): Add.
25117
25118         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
25119         using a unsigned prototype, don't inline.
25120         (base64_decode): Use it.
25121
25122 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25123
25124         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
25125         it.
25126
25127 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25128
25129         * lib/save-cwd.c (save_cwd): Remove code to support the case
25130         where fchdir is missing or flaky.
25131
25132 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25133
25134         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
25135
25136 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25137
25138         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
25139         AC_LIBSOURCES now does this.
25140         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
25141         with new ullong_max module.
25142
25143 2005-01-19  Bruno Haible  <bruno@clisp.org>
25144
25145         * modules/sh-quote: New file.
25146         * MODULES.html.sh (Executing programs): Add sh-quote.
25147
25148 2005-01-19  Bruno Haible  <bruno@clisp.org>
25149
25150         * lib/sh-quote.h: New file, from GNU gettext.
25151         * lib/sh-quote.c: New file, from GNU gettext.
25152
25153 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25154
25155         Merge from coreutils.
25156         * m4/ullong_max.m4: New file.
25157         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
25158         (gl_MACROS): Assume localeconv exists.
25159
25160 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25161
25162         Merge changes from coreutils, as described below in several
25163         changelogs dated today.
25164
25165         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
25166         (O_DIRECTORY): Remove; not needed here, since "." must be
25167         a directory.  All uses removed.
25168         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
25169         universal on Suns, and we also need to test for IRIX.
25170         Revamp code to use 'if' rather than '#if'.
25171         Avoid unnecessary comparison of cwd->desc to 0.
25172
25173         * lib/utimens.c (futimens): Robustify the previous patch, by checking
25174         for known valid error numbers rather than observed invalid ones.
25175
25176 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25177
25178         * modules/ullong_max: New file.
25179
25180         * modules/chdir-long, modules/openat: New files.
25181         * modules/save-cwd (Depends-on): Depend on chdir-long.
25182         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
25183
25184 2005-01-18  Jim Meyering  <jim@meyering.net>
25185
25186         Merge from coreutils.
25187         * m4/chdir-long.m4, m4/openat.m4: New files.
25188         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
25189         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
25190         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
25191         is sane and DOES follow symlinks.  Besides, testing 20 different
25192         systems found no broken chown implementations.
25193         Prompted by a change in rsync's copy of this macro.
25194         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
25195
25196         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
25197
25198         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
25199         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
25200         NULL-means-set-to-current-time semantics.
25201         Remove temporary file immediately, rather than waiting
25202         for configure's at-exit trap code to do it.
25203
25204 2005-01-18  Jim Meyering  <jim@meyering.net>
25205
25206         * lib/version-etc.c (version_etc_copyright): Update copyright date.
25207
25208         * lib/utimens.c (futimens): Account for the fact that futimes
25209         can also fail with errno == ENOSYS or errno == ENOENT.
25210         Patch from Dmitry V. Levin.
25211
25212         Change the name of the robust chdir function from chdir to chdir_long.
25213         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
25214         (restore_cwd): Use chdir_long, not chdir.
25215         * lib/chdir-long.c: Renamed from chdir.c.
25216         * lib/chdir-long.h: Renamed from chdir.h.
25217         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
25218         Hurd.
25219
25220 2005-01-18  Bruno Haible  <bruno@clisp.org>
25221
25222         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
25223         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
25224         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
25225         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
25226         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
25227         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
25228         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
25229         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
25230         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
25231         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
25232         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
25233         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
25234         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
25235         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
25236         Use an all-permissive copyright notice, recommended by RMS.
25237
25238 2005-01-18  Bob Proulx  <bob@proulx.com>
25239
25240         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
25241         simplify offsetof() macro construct to avoid compile failure with
25242         native HP-UX 11.0 ANSI C compiler.
25243
25244 2005-01-17  Bruno Haible  <bruno@clisp.org>
25245
25246         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
25247         redundant because stpncpy.m4 takes care of it.
25248
25249 2005-01-17  Bruno Haible  <bruno@clisp.org>
25250
25251         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
25252
25253 2005-01-17  Bruno Haible  <bruno@clisp.org>
25254
25255         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
25256         used.
25257
25258 2005-01-17  Bruno Haible  <bruno@clisp.org>
25259
25260         * lib/fwriteerror.h (fwriteerror): Change specification to include
25261         fclose.
25262         * lib/fwriteerror.c: Include <stdbool.h>.
25263         (fwriteerror): At the end, close the file stream. Record whether
25264         stdout was already closed.
25265
25266 2005-01-17  Bruno Haible  <bruno@clisp.org>
25267
25268         * lib/execute.c (environ): Declare if needed.
25269         * lib/pipe.c (environ): Likewise.
25270         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
25271
25272 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25273
25274         * modules/argp: Depend on vsnprintf
25275
25276 2005-01-10  Jim Meyering  <jim@meyering.net>
25277
25278         * modules/closeout (Depends-on): Add atexit.
25279
25280 2005-01-06  Bruno Haible  <bruno@clisp.org>
25281
25282         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
25283
25284 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25285
25286         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
25287         definitions to be after all include files, to avoid collisions.
25288         Problem reported by Bob Proulx.
25289
25290 2005-01-04  Jim Meyering  <jim@meyering.net>
25291
25292         Changes imported from coreutils.
25293         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
25294         as the mkstemp template, use a temporary directory and an
25295         8.3-friendly template to avoid trouble on systems like DJGPP.
25296         Reported by Juan M. Guerrero via Stepan Kasal.
25297         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
25298         close. Remove the temporary directory right away, rather than waiting
25299         for configure's at-exit trap code to do it.
25300         Suggestion from Stepan Kasal.
25301
25302 2005-01-01  Simon Josefsson  <jas@extundo.com>
25303
25304         * gnulib-tool: Print #include directives when --import'ing.
25305
25306 2004-12-28  Simon Josefsson  <jas@extundo.com>
25307
25308         * tests/test-base64.c: Include required header files.  Remove
25309         unused variables.
25310
25311 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25312
25313         * modules/error (Depends-on): Remove gettext.
25314
25315 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25316
25317         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
25318         not needed.  This removes a dependency on the gettext module.
25319         [defined _LIBC]: Do not include <libintl.h>; not needed.
25320
25321 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
25322
25323         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
25324         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
25325
25326 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
25327
25328         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
25329         HAVE_DECL_STRTOLD.
25330
25331 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25332
25333         * modules/getdate (Depends-on): Remove alloca-opt.
25334
25335 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25336
25337         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
25338
25339 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25340
25341         * lib/argp-parse.c: Include <stddef.h>.
25342         (alignof, alignto): New macros.
25343         (parser_init): Don't assume that void * is aligned sufficiently
25344         for struct option.
25345
25346         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
25347         need to extend the stack.
25348         (YYINITDEPTH): New macro, so that the initial stack isn't overly
25349         large.
25350
25351 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25352
25353         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
25354
25355 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25356
25357         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
25358         (2004-10-24) change.  Apparently this was a false alarm.
25359
25360         * modules/getdate: Depend on alloca-opt, not alloca.
25361
25362 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25363
25364         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
25365         Remove now-obsolete comment about AIX.
25366         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
25367         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
25368         (YYMAXDEPTH): New macro.
25369
25370 2004-12-18  Simon Josefsson  <jas@extundo.com>
25371
25372         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
25373
25374 2004-12-18  Bruno Haible  <bruno@clisp.org>
25375
25376         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
25377
25378 2004-12-18  Bruno Haible  <bruno@clisp.org>
25379
25380         * lib/fatal-signal.c (fatal_signals): Make non-const.
25381         (init_fatal_signals): New function.
25382         (uninstall_handlers, install_handlers): Ignore signals that were set to
25383         SIG_IGN.
25384         (at_fatal_signal): Call init_fatal_signals.
25385         (init_fatal_signal_set): Likewise. Ignore signals that were set to
25386         SIG_IGN.
25387         Reported by Paul Eggert.
25388
25389 2004-12-18  Bruno Haible  <bruno@clisp.org>
25390
25391         * doc/alloca.texi: New file.
25392         * doc/alloca-opt.texi: New file.
25393
25394 2004-12-17  Jim Meyering  <jim@meyering.net>
25395
25396         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
25397         Otherwise, install-sh could exit with improper exit status when
25398         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
25399
25400 2004-12-16  Simon Josefsson  <jas@extundo.com>
25401
25402         * tests/test-base64.c: Add license.
25403
25404 2004-12-15  Stepan Kasal  <address@hidden>
25405
25406         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
25407
25408 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
25409
25410         * modules/getcwd (Files): Add m4/d-ino.m4.
25411         Suggested by Mark D. Baushke.
25412
25413 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
25414
25415         * lib/getdate.y (textint): New member "negative".
25416         (time_zone_hhmm): New function.
25417         Expect 14 shift-reduce conflicts, not 13.
25418         (o_colon_minutes): New rule.
25419         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
25420         (yylex): Set the "negative" member of signed numbers.
25421
25422 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
25423
25424         * doc/getdate.texi (Time of day items, Time zone items):
25425         Describe new formats +00:00, UTC+00:00.
25426
25427 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
25428
25429         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
25430         spurious "-l"s.  Problem reported by Stepan Kasal.
25431
25432 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
25433
25434         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
25435         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
25436
25437 2004-12-04  Simon Josefsson  <jas@extundo.com>
25438
25439         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
25440         Vandoorselaere <yoann@prelude-ids.org>.
25441
25442 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
25443
25444         Changes imported from coreutils.
25445         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
25446         exist.
25447         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
25448
25449 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
25450
25451         Changes imported from coreutils.
25452         * lib/hard-locale.c: Assume <locale.h> exists.
25453         Include "strdup.h".
25454         (GLIBC_VERSION): New macro.
25455         (hard_locale): Assume setlocale exists.
25456         Rewrite to avoid #ifdef.
25457         Use strdup rather than malloc + strcpy.
25458         * lib/human.c: Assume <locale.h> exists.
25459         (human_readable): Assume localeconv exists.
25460
25461 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
25462
25463         * modules/hard-locale (Depends-on): Add strdup.
25464
25465 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
25466
25467         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
25468         convert T2, not T.  (Imported from libc.)
25469
25470 2004-11-30  Simon Josefsson  <jas@extundo.com>
25471
25472         * modules/restrict (License): Change to LGPL.
25473
25474 2004-11-30  Simon Josefsson  <jas@extundo.com>
25475
25476         * m4/restrict.m4: Add copyright and copying conditions.
25477
25478 2004-11-30  Simon Josefsson  <jas@extundo.com>
25479
25480         * m4/base64.m4: New file.
25481
25482 2004-11-30  Simon Josefsson  <jas@extundo.com>
25483
25484         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
25485         base64.
25486
25487         * tests/test-base64.c: New file.
25488
25489         * modules/base64: New file.
25490
25491 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
25492
25493         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
25494         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
25495
25496         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
25497
25498 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
25499
25500         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
25501         (__getcwd.c): Don't restore errno; glibc doesn't.
25502         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
25503         first, falling back to our code only if its results look suspicious.
25504         Ensure that the resulting buffer is only as large as necessary.
25505
25506         * lib/readutmp.c: Include readutmp.h first.
25507         Include <errno.h>, since readutmp.h no longer does that.
25508         * lib/readutmp.h: Don't include <errno.h>,
25509         <sys/param.h>, <time.h>; not needed to establish interface.
25510         (errno): Remove decl.
25511         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
25512         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
25513         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
25514
25515 2004-11-28  Simon Josefsson  <jas@extundo.com>
25516
25517         * lib/base64.h, base64.c: New file.
25518
25519 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
25520
25521         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
25522
25523 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25524
25525         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
25526         (Depends-on): Remove pathmax, same.  Add mempcpy.
25527         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
25528         (Makefile.am): Append getcwd.h to lib_SOURCES.
25529         (Include): Add getcwd.h.
25530         (Maintainer): Change from Jim Meyering to "all, glibc",
25531         since getdate now uses intended-for-glibc code.
25532         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
25533         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
25534
25535 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25536
25537         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
25538         HP's ANSI C compiler.
25539         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
25540         Declaring int functions causes warnings on some modern systems and
25541         shouldn't be needed to compile on ancient ones.
25542         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
25543         defined.
25544
25545         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
25546         with the following changes.
25547         (__set_errno): Parenthesize properly.
25548         Include <stdbool.h>.
25549         (MIN, MAX, MATCHING_INO): New macros.
25550         (__getcwd): Define with prototype, not K&R form.
25551         Use heuristics to allocate default buffer on stack if possible.
25552         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
25553         behavior, and to avoid the PATH_MAX limit when computing
25554         ../../../../...
25555         Use MATCHING_INO to compare inode number to file.
25556         Check for arithmetic overflow in size calculations.
25557         Fix bug in reallocation of dot array that caused getcwd to fail
25558         on directories nested deeper than 75.
25559         Be more careful about saving errno on error.
25560         Do not use realloc; use only free+malloc, as this is a bit
25561         more flexible and avoids a needless copy operation.
25562         Do not inspect st_dev and st_ino for symbolic links; POSIX
25563         doesn't specify the latter.
25564         Check for closedir errors.
25565         Avoid needless casts.
25566         Use "#ifdef weak_alias" around weak_alias, to be like other
25567         glibc code.
25568         The following changes to getcwd.c have effect only when used in
25569         gnulib; they have no effect inside glibc proper.
25570         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
25571         as alloca isn't used.
25572         (alloca, __alloca): Likewise.
25573         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
25574         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
25575         unconditionally, as gnulib assumes C89 or better.
25576         Do not include <sys/param.h>.
25577         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
25578         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
25579         better.
25580         (NULL) [!defined NULL]: Remove; we assume C89 or better.
25581         Include <dirent.h> in a way that is compatible with modern Autoconf.
25582         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
25583         New macros, if not already defined.
25584         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
25585         Use "_LIBC", not "defined _LIBC", for consistency.
25586         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
25587         a mempcpy module.
25588         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
25589         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
25590         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
25591         credit only to Jim Meyering and adjust the copyright dates.
25592         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
25593         <stdlib.h>, <unistd.h>, "pathmax.h".
25594         Instead, include "xgetcwd.h" (first) and "getcwd.h".
25595         (INITIAL_BUFFER_SIZE): Remove.
25596         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
25597
25598 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25599
25600         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
25601         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
25602         Use the _ONCE methods, for efficiency.
25603         Check for fcntl.h.  In test program, include <errno.h>
25604         and <fcntl.h> if available.  Remove old K&R cruft from
25605         test program.  Check for common errors in GNU/Linux,
25606         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
25607         don't do AC_LIBOBJ, as that's getcwd.m4's job.
25608         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
25609         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
25610         name accordingly.
25611         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
25612         accommodate new getcwd.c.
25613         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
25614         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
25615         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
25616         that's all we need now.
25617
25618 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25619
25620         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
25621         argp-parse.c depends on getopt internals, that means we should
25622         always use our getopt, to be on the safe side.
25623         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
25624         order not to spoil the result of an eventual previous invocation
25625         of gl_GETOPT_SUBSTITUTE.
25626
25627 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25628
25629         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
25630         redefinition warnings. To avoid them, include the defines
25631         in `#if !defined __need_getopt ... #endif'. The only place
25632         where __getopt_argv_const is used is in definitions
25633         of getopt_long and getopt_long_only below, which are as well
25634         protected by `#ifndef __need_getopt'.
25635         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
25636         __need_getopt after including <stdio.h> and <unistd.h> These
25637         headers might have defined it.
25638
25639 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
25640
25641         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
25642
25643 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
25644
25645         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
25646         (futimens): New function, which uses futimes if available.
25647         (futimens, utimens): Support timespec==NULL, with same semantics
25648         as utime and utimens.
25649         * lib/utimens.h (futimens): New decl.
25650
25651 2004-11-23  Jim Meyering  <jim@meyering.net>
25652
25653         * lib/getopt_.h: Remove trailing blanks.
25654
25655 2004-11-23  Jim Meyering  <jim@meyering.net>
25656
25657         * lib/__fpending.c: Add comment.
25658
25659 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
25660
25661         * modules/canonicalize (Depends-on): Add xreadlink.
25662         Problem reported by James Youngman.
25663
25664 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25665
25666         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
25667         New macros.
25668         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
25669         optopt): Use them instead of invoking ## directly; otherwise, the
25670         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
25671
25672 2004-11-19  Bruno Haible  <bruno@clisp.org>
25673
25674         * lib/strtok_r.c: Move comments from here...
25675         * lib/strtok_r.h: ... to here.
25676
25677 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25678
25679         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
25680         implementations that mishandle size_t overflow.
25681
25682 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25683
25684         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
25685         might fail.  Problem reported by Yoann Vandoorselaere.
25686         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
25687         implementations that mishandle size_t overflow.
25688
25689 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25690
25691         * modules/canon-host (Depends-on): Add strdup.
25692
25693 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25694
25695         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
25696
25697 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25698
25699         * lib/canon-host.c: Include "strdup.h".
25700         (canon_host): Use getaddrinfo if available, so that IPv6 works.
25701         Use strdup instead of malloc/strcpy to duplicate strings.
25702
25703         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
25704         (human_space_before_unit): New constant.
25705         * lib/human.c (human_readable): Support it.
25706
25707         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
25708         (xgetcwd): Set errno correctly when failing.
25709         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
25710         the failure is actually due to a PATH_MAX problem.
25711
25712         Further getopt changes to make it more likely that glibc will
25713         buy the changes back.
25714         * lib/getopt.c (POSIXLY_CORRECT): New constant.
25715         (getopt): Use it, so to preserve glibc semantic
25716         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
25717         when compiling for libc.
25718         * lib/getopt_.h (__getopt_argv_const): Bring it back.
25719         (getopt_long, getopt_long_only): Use it.
25720
25721         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
25722         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
25723         (getopt): Argv is now char * const *, as per standard.
25724         (_getopt_internal_r, _getopt_internal): Argv is now char **,
25725         not char *__getopt_argv_const *.
25726         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
25727         _getopt_long_only_r): Likewise.
25728         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
25729         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
25730         _getopt_long_r, _getopt_long_only_r): Likewise.
25731         * lib/getopt_.h (__getopt_argv_const): Remove.
25732         (getopt): Argv is now char * const *, as per standard.
25733
25734         * lib/getdate.y (tORDINAL): New token.
25735         (day, relunit): Allow it for relative times.
25736         (relative_time_table): Use tORDINAL for ordinals.
25737
25738 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25739
25740         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
25741         Document that "second" isn't allowed as an ordinal number.
25742
25743 2004-11-16  Jim Meyering  <jim@meyering.net>
25744
25745         * modules/closeout (Depends-on): Add fpending.
25746
25747 2004-11-15  Jim Meyering  <jim@meyering.net>
25748
25749         * lib/closeout.c: Include "__fpending.h" once again.
25750         Include <stdbool.h>.
25751         (close_stdout): Don't fail just because stdout was closed initially,
25752         since some programs don't write to stdout in the normal course of
25753         operation (other than --version and --help), and we don't want this
25754         function to make e.g. `touch file >&-' fail.
25755         But do fail if it was closed and someone has tried to write to it.
25756         E.g., `printf foo >&-' must fail.
25757
25758 2004-11-13  Jim Meyering  <jim@meyering.net>
25759
25760         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
25761
25762 2004-11-12  Simon Josefsson  <jas@extundo.com>
25763
25764         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
25765         small doc fix is still pending.
25766
25767 2004-11-11  Simon Josefsson  <jas@extundo.com>
25768
25769         * modules/strtok_r: New file.
25770
25771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25772         strtok_r.
25773
25774 2004-11-11  Simon Josefsson  <jas@extundo.com>
25775
25776         * m4/strtok_r.m4: New file.
25777
25778         * m4/getopt.m4: Replace opterr.
25779
25780 2004-11-11  Simon Josefsson  <jas@extundo.com>
25781
25782         * lib/strtok_r.h, strtok_r.c: New file.
25783
25784 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25785
25786         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
25787         of replacing opterr, getopt, etc.  This should handle the
25788         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
25789
25790 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25791
25792         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
25793         we can stop lying to compilers about the constness of argv when we
25794         are compiled outside glibc.
25795         (getopt, getopt_long, getopt_long_only): Use it.
25796         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
25797         _getopt_internal, getopt): Likewise.
25798         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
25799         _getopt_long_only_r): Likewise.
25800         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
25801         _getopt_long_r, _getopt_long_only_r): Likewise.
25802
25803         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
25804         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
25805         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
25806         the other external symbols.
25807         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
25808         declaration, since the above renaming now works around collisions.
25809
25810 2004-11-11  Jim Meyering  <jim@meyering.net>
25811
25812         * lib/linebreak.c: Remove trailing blanks.
25813         * lib/alloca_.h: Likewise.
25814         * lib/acosl.c: Likewise.
25815         * lib/euidaccess.c: Likewise.
25816         * lib/allocsa.h: Likewise.
25817
25818 2004-11-10  Simon Josefsson  <jas@extundo.com>
25819
25820         * m4/getaddrinfo.m4: New file.
25821
25822 2004-11-10  Simon Josefsson  <jas@extundo.com>
25823
25824         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
25825
25826 2004-11-10  Simon Josefsson  <jas@extundo.com>
25827
25828         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25829         getaddrinfo.
25830
25831         * modules/getaddrinfo: New file.
25832
25833 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25834
25835         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
25836
25837 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25838
25839         * lib/mktime.c (SHR): New macro, which is a portable
25840         substitute for >> that should work even on Crays.
25841         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
25842         Problem reported by Mark D. Baushke in
25843         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
25844         * lib/getdate.y (SHR): Likewise.
25845         (tm_diff): Use it.
25846         * lib/strftime.c (SHR): Likewise.
25847         (tm_diff): Use it.
25848         * lib/quotearg.c (struct quoting_options): Use unsigned int for
25849         quote_these_too, so that right shifts are well defined.  All uses
25850         changed.
25851
25852 2004-11-10  Jim Meyering  <jim@meyering.net>
25853
25854         Ensure that no close failure goes unreported.
25855         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
25856         return early when it seems there's nothing to flush.
25857         Don't include __fpending.h.
25858
25859 2004-11-10  Jim Meyering  <jim@meyering.net>
25860
25861         * modules/closeout (Depends-on): Remove fpending.
25862
25863 2004-11-10  Jim Meyering  <jim@meyering.net>
25864
25865         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
25866
25867 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25868
25869         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
25870         gl_FUNC_STRFTIME.
25871         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
25872         and AC_REQUIRE when possible, to avoid duplicate checks.
25873         Check for <wchar.h>.
25874
25875 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25876
25877         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
25878
25879 2004-11-09  Bruno Haible  <bruno@clisp.org>
25880
25881         * m4/sockpfaf.m4: New file.
25882
25883 2004-11-05  Bruno Haible  <bruno@clisp.org>
25884
25885         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
25886         Reported by Mark D. Baushke <mdb@cvshome.org>.
25887
25888 2004-11-04  Bruno Haible  <bruno@clisp.org>
25889
25890         2004-09-11  Bruno Haible  <bruno@clisp.org>
25891                 * allocsa.valgrind: New file.
25892         2004-02-06  Bruno Haible  <bruno@clisp.org>
25893                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
25894                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
25895                 Reported by Christopher Seip <chris.seip@hp.com>.
25896
25897 2004-11-04  Bruno Haible  <bruno@clisp.org>
25898
25899         * modules/allocsa (Files): Add lib/allocsa.valgrind.
25900         (Makefile.am): Distribute it.
25901
25902 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
25903
25904         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
25905         with errno == ERANGE if the buffer is too small.
25906         Problem reported by Mark D. Baushke.
25907
25908 2004-11-03  Albert Chin  <china@thewrittenword.com>
25909             Paul Eggert  <eggert@cs.ucla.edu>
25910
25911         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
25912         equivalent, substitute $ac_type for equivalent type rather than
25913         blindly using uint32_t *always* which won't work if uint32_t is not
25914         available.  Define _UINT32_T to work around typedef of uint32_t if
25915         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
25916         2.5.1.
25917
25918 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25919
25920         * m4/jm-macros.m4: Sync from coreutils.
25921         (gl_MACROS): Check for mbrlen, for pathchk.
25922         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
25923
25924 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25925
25926         * lib/xreadlink.c (MAXSIZE): New macro.
25927         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
25928         size does not exceed MAXSIZE.  Avoid cast.
25929         As suggested by Mark D. Baushke in
25930         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
25931         if readlink fails with buffer size just under MAXSIZE, try again
25932         with MAXSIZE.
25933
25934 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25935
25936         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
25937
25938 2004-11-02  Derek R. Price  <derek@ximbiot.com>
25939         and  Paul Eggert  <eggert@cs.ucla.edu>
25940
25941         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
25942         (get_date): Overparenthesize to avoid GCC warning.
25943
25944 2004-11-02  Bruno Haible  <bruno@clisp.org>
25945
25946         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
25947         returns void.
25948
25949 2004-11-02  Bruno Haible  <bruno@clisp.org>
25950
25951         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
25952         function returns void.
25953
25954 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25955
25956         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
25957         fflush_unlocked, flockfile, funlockfile, funlockfile,
25958         fputs_unlocked, putc_unlocked.
25959
25960 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25961
25962         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
25963         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
25964         already declared.
25965
25966 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
25967
25968         * modules/getdate (Files): Add doc/getdate.texi.
25969         (Depends-on): Add setenv, xalloc.
25970
25971 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
25972
25973         * lib/getdate.y: Add support for TZ="foo" within a date string.
25974         Fix some bugs near time_t boundaries.  Reject dates with
25975         out-of-range components, e.g., "Sept 31".
25976         Include <stdlib.h>, "setenv.h", "xalloc.h".
25977         (ISDIGIT_LOCALE): Remove; unused.
25978         Note that the TZ and time functions used here are not reentrant.
25979         (mktime_ok, get_tz): New functions.
25980         (TZBUFSIZE): New constant.
25981         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
25982         This requires that we sometimes generate our own TZ="XXX..." setting.
25983
25984 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
25985
25986         * doc/getdate.texi: New file, from coreutils with modifications for
25987         the new TZ parsing.
25988
25989 2004-10-27  Derek R. Price  <derek@ximbiot.com>
25990
25991         * lib/mktime.c (not_equal_tm): Remove redundant check.
25992
25993 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
25994
25995         * modules/regex (lib_SOURCES): Add regex.c.
25996         Reported by James Youngman in
25997         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
25998
25999 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26000
26001         * lib/getdate.y: Use Bison 1.875 features, and some minor
26002         code cleanups.  This change does not affect semantics.
26003         Don't include <stdlib.h>; no longer needed.
26004         Don't include unlocked-io.h; only the "#if TEST" code uses
26005         stdio, and performance isn't crucial there.
26006         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
26007         Bison 1.875 features as described below.
26008         All uses of "PC." replaced by "pc->".
26009         (YYSTYPE): Add a forward declaration.
26010         (yylex, yyerror): Use full prototypes in forward decls.
26011         Use "%pure-parser" rather than obsolescent "%pure_parser".
26012         Use %parse-param and %lex-param instead of obsolescent
26013         YYPARSE_PARAM and YYLEX_PARAM.
26014         (meridian_table, month_and_day_table, time_units_table,
26015         relative_time_table, time_zone_table, military_table,
26016         lookup_zone, lookup_word, get_date):
26017         Use NULL instead of 0 where appropriate.
26018         (to_hour): Avoid abort (), to avoid a dependency on
26019         stdlib.h.
26020         (yyerror, yylex): Now accepts parser_control * arg.
26021         (main) [TEST]: Use '\0' rather than 0 for char.
26022
26023 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26024
26025         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
26026
26027 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26028
26029         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
26030         It's now the caller's responsibility to handle the case where
26031         !HAVE_GETPAGESIZE && !defined getpagesize.
26032
26033         * lib/mktime.c (leapyear): Arg is long int, not int.
26034
26035 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26036
26037         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
26038
26039 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
26040
26041         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
26042         missing.  Problem reported by James Youngman.
26043
26044 2004-10-16  Simon Josefsson  <jas@extundo.com>
26045
26046         * gnulib-tool: Fix comments.  Fix parse problem.
26047         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
26048
26049 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
26050
26051         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
26052         implementation of getopt_long.  Problem reported by Alexander Taler in:
26053         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
26054
26055 2004-10-15  Bruno Haible  <bruno@clisp.org>
26056
26057         * gnulib-tool: Untabify. Initialize supplied_libname.
26058         (func_usage): More homogenous output.
26059         (func_modules_transitive_closure, func_modules_to_filelist,
26060         func_emit_lib_Makefile_am): New functions.
26061         (func_import): New function, extracted from big case statement. Use
26062         func_get_license, func_modules_transitive_closure,
26063         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
26064         opt_lgpl. Don't use test -a, as it's not portable.
26065         (func_create_testdir): Use func_modules_transitive_closure,
26066         func_modules_to_filelist, func_emit_lib_Makefile_am.
26067
26068 2004-10-15  Bruno Haible  <bruno@clisp.org>
26069
26070         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
26071
26072 2004-10-15  Bruno Haible  <bruno@clisp.org>
26073
26074         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
26075         the portions belonging to each module.
26076         Suggested by Derek Robert Price <derek@ximbiot.com>.
26077
26078 2004-10-12  Simon Josefsson  <jas@extundo.com>
26079
26080         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
26081         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
26082         to real functions.
26083
26084 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26085
26086         * modules/vsnprintf: New file.
26087
26088 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26089
26090         * m4/vsnprintf.m4: New file.
26091
26092 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26093
26094         * lib/vsnprintf.h: New file.
26095         * lib/vsnprintf.c: New file.
26096
26097 2004-10-11  Bruno Haible  <bruno@clisp.org>
26098
26099         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
26100         vsnprintf.
26101
26102 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26103
26104         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
26105
26106 2004-10-07  Bruno Haible  <bruno@clisp.org>
26107
26108         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
26109         fits into the provided buffer.
26110
26111 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26112
26113         * lib/diacrit.c, diacrit.h: Add GPL notice.
26114
26115         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
26116         notice.
26117         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
26118         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
26119         This avoids a potential constant-folding bug.
26120
26121 2004-10-05  Bruno Haible  <bruno@clisp.org>
26122
26123         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
26124         for the declaration of strsep.
26125
26126 2004-10-05  Bruno Haible  <bruno@clisp.org>
26127
26128         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
26129
26130 2004-10-04  Simon Josefsson  <jas@extundo.com>
26131
26132         * modules/memmem: New file.
26133         * tests/test-memmem.c: New file.
26134         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
26135
26136 2004-10-04  Simon Josefsson  <jas@extundo.com>
26137
26138         * m4/memmem.m4: New file.
26139
26140 2004-10-04  Simon Josefsson  <jas@extundo.com>
26141
26142         * lib/memmem.h: New file.
26143         * lib/memmem.c: New file, taken from glibc.
26144
26145 2004-10-04  Simon Josefsson  <jas@extundo.com>
26146
26147         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
26148         '#ifdef USE_UNLOCKED_IO'.
26149
26150 2004-10-04  Simon Josefsson  <jas@extundo.com>
26151
26152         * config/srclist.txt: Add memmem from glibc.
26153
26154 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26155
26156         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
26157
26158         * modules/argmatch, modules/argp, modules/closeout, modules/error,
26159         modules/exclude, modules/getdate, modules/getline,
26160         modules/getndelim2, modules/getpass, modules/getpass-gnu,
26161         modules/getusershell, modules/linebuffer, modules/md5,
26162         modules/mountlist, modules/posixtm, modules/readtokens,
26163         modules/readutmp, modules/regex, modules/sha1,
26164         modules/version-etc, modules/yesno:
26165         Remove dependency on unlocked-io.
26166
26167 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26168
26169         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
26170
26171         * m4/unlocked-io.m4: Add copyright notice.
26172         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
26173
26174 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26175
26176         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
26177         * lib/xmalloc.c (xmemdup): Likewise.
26178         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
26179         XFREE): Remove these long-obsolescent macros.
26180         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
26181         * lib/xstrdup.c: Remove.
26182
26183         * lib/regex.c (re_comp): Cast gettext return value to char *,
26184         Problem reported by Martin Neitzel via Mark D. Baushke.
26185
26186 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26187
26188         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
26189         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
26190         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
26191         regex.c, sha1.c, version-etc.c, yesno.c:
26192         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
26193         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
26194         the includer's responsibility.
26195
26196         Sync from coreutils.
26197
26198         * lib/modechange.c (mode_compile): Don't decrement a pointer that
26199         points to the start of a string, as the C Standard says the
26200         resulting behavior is undefined.
26201
26202         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
26203         simple -> simple_backups, numbered_existing ->
26204         numbered_existing_backups, numbered -> numbered_backups
26205         to avoid shadowing problems.  All uses changed.
26206         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
26207         * lib/backupfile.c (check_extension, numbered_backup):
26208         Rename locals to avoid shadowing 'basename'.
26209         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
26210         once.
26211
26212         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
26213         * lib/.cvsignore: Add getopt.h.
26214
26215 2004-10-04  Bruno Haible  <bruno@clisp.org>
26216
26217         * modules/README: New file.
26218         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
26219         not a module.
26220
26221 2004-10-02  Jim Meyering  <jim@meyering.net>
26222
26223         * lib/dirfd.h, getpagesize.h: Add copyright notice.
26224
26225 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26226
26227         * modules/strsep: New file.
26228
26229 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26230
26231         * m4/strsep.m4: New file.
26232
26233 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26234
26235         * lib/strsep.h: New file.
26236         * lib/strsep.c: New file.
26237
26238 2004-10-01  Simon Josefsson  <jas@extundo.com>
26239
26240         * lib/snprintf.c (snprintf): Handle size==0.
26241
26242 2004-10-01  Simon Josefsson  <jas@extundo.com>
26243             Bruno Haible  <bruno@clisp.org>
26244
26245         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
26246         (snprintf): Declare 'args'.
26247
26248 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
26249
26250         * lib/snprintf.c: Remove comments as to why each header is needed.
26251
26252 2004-10-01  Bruno Haible  <bruno@clisp.org>
26253
26254         * MODULES.html.sh: Add strsep.
26255
26256 2004-09-30  Simon Josefsson  <jas@extundo.com>
26257
26258         * modules/snprintf: New file.
26259
26260 2004-09-30  Simon Josefsson  <jas@extundo.com>
26261
26262         * m4/snprintf.m4: New file.
26263
26264 2004-09-30  Simon Josefsson  <jas@extundo.com>
26265
26266         * lib/snprintf.h, lib/snprintf.c: New files.
26267
26268 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26269
26270         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
26271         (hol_entry_help): Never translate an empty string.
26272         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
26273         * lib/argp.h (OPTION_NO_TRANS): New option.
26274
26275 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
26276
26277         * modules/argp (Maintainer): Replace Simon Josefsson
26278         by Sergey Poznyakoff.
26279
26280 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
26281
26282         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
26283         changes merged back into glibc.
26284
26285 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
26286
26287         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
26288
26289 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
26290
26291         * lib/xvasprintf.c: Include xalloc.h.
26292         (xvasprintf): Use xalloc_die, not xmalloc_die.
26293
26294 2004-09-29  Bruno Haible  <bruno@clisp.org>
26295
26296         * modules/alloca-opt: New file, derived from modules/alloca.
26297         * modules/allocsa: Depend on alloca-opt instead of alloca.
26298         * modules/setenv: Likewise.
26299         * modules/vasnprintf: Likewise.
26300         * MODULES.html.sh: Add alloca-opt.
26301
26302 2004-09-28  Simon Josefsson  <jas@extundo.com>
26303
26304         * gnulib-tool: New parameter --lgpl, to asseert that modules are
26305         LGPL, and to replace license template from GPL to LGPL.
26306
26307 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
26308
26309         * modules/dummy: Change license to LGPL.
26310
26311 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
26312
26313         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
26314
26315 2004-09-24  Simon Josefsson  <jas@extundo.com>
26316
26317         * modules/minmax (License): Change from GPL to LGPL.
26318
26319 2004-09-23  Simon Josefsson  <jas@extundo.com>
26320
26321         * gnulib-tool (--import): Typo.
26322
26323 2004-09-23  Simon Josefsson  <jas@extundo.com>
26324
26325         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
26326
26327 2004-09-22  Bruno Haible  <bruno@clisp.org>
26328
26329         * modules/*: Add 'License' field.
26330         * gnulib-tool: Accept --extract-license option.
26331         (func_get_license): New function.
26332
26333 2004-09-21  Bruno Haible  <bruno@clisp.org>
26334
26335         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
26336         Reported by Simon Josefsson.
26337
26338 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26339
26340         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
26341         gl_AC_TYPE_LONG_LONG.
26342
26343 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26344
26345         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
26346
26347 2004-09-18  Simon Josefsson  <jas@extundo.com>
26348         and  Paul Eggert  <eggert@cs.ucla.edu>
26349
26350         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
26351         calls with autoreconf.  Define GL_LIB.
26352
26353 2004-09-14  Karl Berry  <karl@gnu.org>
26354
26355         * config/srclist.txt: unsync setenv.c, sigh.
26356
26357 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26358
26359         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
26360         Problem reported by Bruno Haible in:
26361         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
26362
26363 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26364
26365         * config/srclist.txt: Comment out argp-pvh.c.
26366
26367 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26368
26369         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
26370         in case some system header has #define'd it.  Problem reported by
26371         Soeren D. Schulze in
26372         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
26373
26374 2004-09-09  Karl Berry  <karl@gnu.org>
26375
26376         * regex.[ch]: delete from the root.  These were supposed to be
26377                 synced with emacs cvs, but this has not happened for about
26378                 a year, and anyway nothing else uses emacs regex.[ch].
26379                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
26380                 lib/regex[.ch] is untouched.
26381
26382 2004-09-09  Bruno Haible  <bruno@clisp.org>
26383
26384         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
26385
26386 2004-09-09  Bruno Haible  <bruno@clisp.org>
26387
26388         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
26389         modifications.
26390         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
26391
26392 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
26393
26394         * modules/xvasprintf: New file.
26395         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
26396
26397 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
26398
26399         * lib/xvasprintf.h: New file.
26400         * lib/xvasprintf.c: New file.
26401         * lib/xasprintf.c: New file.
26402
26403 2004-09-08  Bruno Haible  <bruno@clisp.org>
26404
26405         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
26406
26407 2004-09-08  Bruno Haible  <bruno@clisp.org>
26408
26409         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
26410         length is > INT_MAX.
26411         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
26412         more.
26413
26414 2004-09-08  Bruno Haible  <bruno@clisp.org>
26415
26416         * lib/stdint_.h: New file, taken from GNU clisp.
26417
26418 2004-09-08  Bruno Haible  <bruno@clisp.org>
26419             Oskar Liljeblad  <oskar@osk.mine.nu>
26420
26421         * modules/stdint: New file.
26422         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
26423
26424 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26425
26426         Import from coreutils.
26427         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
26428         strings on unbounded length.  alloca's performance benefits aren't
26429         that important here.
26430         (V_STRDUP): Remove.
26431         (parse_with_separator): New function, with most of the internals
26432         of the old parse_user_spec.  Allow user to omit both user and group,
26433         for compatibility with FreeBSD.
26434         Clone only the user name, not the entire spec.
26435         Do not set *uid, *gid unless entirely successful.
26436         Avoid memory leak in some failing cases.
26437         Fix regression for USER.GROUP reported by Dmitry V. Levin in
26438         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
26439         (parse_user_spec): Rewrite to use parse_with_separator.
26440
26441 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26442
26443         * modules/userspec: Don't depend on alloca.
26444
26445 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26446
26447         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
26448
26449 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26450
26451         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
26452         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
26453         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
26454
26455 2004-08-16  Simon Josefsson  <jas@extundo.com>
26456
26457         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
26458         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
26459         Add --dry-run for --import.
26460         Let user provided command line parameters override configure.ac
26461         settings.
26462
26463 2004-08-12  Simon Josefsson  <jas@extundo.com>
26464
26465         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
26466         as discussed with Paul Eggert in threads rooted at
26467         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
26468         and
26469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
26470         Before, the test was empty, and relied on ELIDE_CODE in source
26471         code.)
26472         (gl_PREREQ_GETOPT): New macro.
26473         (gl_GETOPT): Use them.
26474
26475 2004-08-12  Simon Josefsson  <jas@extundo.com>
26476
26477         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
26478         * lib/getopt_.h: Renamed from getopt.h.
26479
26480 2004-08-12  Simon Josefsson  <jas@extundo.com>
26481
26482         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
26483         Change default library name from libfoo to libgnu.
26484         Now, if you have a configure.ac that says:
26485                 gl_SOURCE_BASE(gl)
26486                 gl_M4_BASE(gl/m4)
26487                 gl_MODULES(error getopt etcetera)
26488                 gl_INIT
26489         you can import all you need by running:
26490                 ../gnulib/gnulib-tool --import
26491
26492         * modules/getopt (Files): Rename getopt.h to getopt_.h.
26493         (Makefile.am): Rewrite, use logic from argz.
26494         (Include): Use <getopt.h> instead of "getopt.h".
26495
26496 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
26497
26498         * modules/argp (Files): Add m4/unlocked-io.m4.
26499         (Depends-on): Add extensions.
26500
26501 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
26502
26503         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
26504         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
26505         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
26506         Check for program_invocation_name, program_invocation_short_name,
26507         flockfile, funlockfile, features.h, _getopt_long_only_r.
26508
26509 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
26510
26511         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
26512         its complicated substitute.
26513         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
26514         and program_invocation_name.
26515         (__argp_basename) [!_LIBC]: Remove; the only use was
26516         replaced by its body.
26517         (__argp_short_program_name): Change condition from
26518         !defined __argp_short_program_name to
26519         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
26520         to match argp-namefrob.h.
26521         (__argp_failure): Don't assume strerror_r returns char *.
26522         * lib/argp-parse.c (N_): Define unconditionally.
26523         (argp_default_options): Fill out initializers with 0 to avoid
26524         gcc warnings.
26525
26526 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
26527
26528         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
26529         getopt1.c.
26530
26531 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26532
26533         Merge from coreutils.
26534
26535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
26536
26537         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
26538         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
26539
26540 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26541
26542         Merge from coreutils.
26543
26544         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
26545         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
26546         for Reliant Unix 5.43.
26547
26548         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
26549         (union fooround): Use uintmax_t, not long int.
26550         The rest is a merge from libc:
26551         [defined _LIBC]: Include <shlib-compat.h>.
26552         (_obstack) [defined _LIBC]: Remove after 2.3.4.
26553
26554         * lib/settime.c (settime): Recode to avoid warning with
26555         Sun Forte C 6U2.
26556
26557         * lib/strverscmp.c: Convert to UTF-8.
26558
26559 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26560
26561         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
26562         m4/uintmax_t.m4.
26563
26564 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
26565
26566         * modules/xalloc-die: New file.
26567         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
26568
26569         * modules/md5 (Files): Add m4/uint32_t.m4.
26570         * modules/sha1: Renamed from modules/sha.
26571         (Files):
26572         Rename lib/sha.h to lib/sha1.h.
26573         Rename lib/sha.c to lib/sha1.c.
26574         Rename m4/sha.m4 to m4/sha1.m4.
26575         (lib_SOURCES): Likewise.
26576         (configure.ac): Rename gl_SHA to gl_SHA1.
26577         (Include): sha.h -> sha1.h.
26578
26579 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
26580
26581         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
26582         * m4/sha1.m4: Renamed from sha.m4.
26583         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
26584
26585 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
26586
26587         * lib/obstack.h (obstack_empty_p):
26588         Don't assume that chunk->contents is suitably aligned.
26589         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
26590         Likewise. Problem reported by Benno in
26591         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
26592
26593         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
26594         readable.  This could be improved further but it'd take some work.
26595
26596 2004-08-08  Simon Josefsson  <jas@extundo.com>
26597
26598         * modules/xgethostname (Depends-on): Remove exit and error (not
26599         used).
26600
26601         * modules/getpass-gnu: Add getpass.h.
26602         (Depends-on): Add stdbool.
26603         * modules/getpass: Add getpass.h.
26604
26605 2004-08-08  Simon Josefsson  <jas@extundo.com>
26606
26607         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
26608         Check getpass declaration.
26609
26610 2004-08-08  Simon Josefsson  <jas@extundo.com>
26611
26612         * lib/xgethostname.c: Don't include error.h (not used).
26613
26614         * lib/getpass.h: Add.
26615         * lib/getpass.c: Include getpass.h first.
26616
26617 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
26618
26619         * lib/xalloc-die.c: New file.
26620         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
26621         All uses removed.
26622         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
26623         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
26624         xalloc-die.c.
26625         (_, N_, xalloc_die): Move to xalloc-die.c.
26626         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
26627         so that we needn't mess with xalloc_msg_memory_exhausted.
26628
26629         * lib/sha1.h: Renamed from sha.h.
26630         (SHA1_H): Renamed from _SHA_H.
26631         (sha1_ctx): Renamed from sha_ctx.
26632         (sha1_init_ctx): Renamed from sha_init_ctx.
26633         (sha1_process_block): Renamed from sha_process_block.
26634         (sha1_process_bytes): Renamed from sha_process_bytes.
26635         (sha1_finish_ctx): Renamed from sha_finish_ctx.
26636         (sha1_read_ctx): Renamed from sha_read_ctx.
26637         (sha1_stream): Renamed from sha_stream.
26638         (sha1_buffer): Renamed from sha_buffer.
26639         * lib/sha1.c: Likewise; renamed from sha.c.
26640         Do not include <sys/types.h>.
26641         Include <stddef.h> rather than <stdlib.h>.
26642
26643 2004-08-08  Bruno Haible  <bruno@clisp.org>
26644
26645         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
26646         FILESYSTEM_PREFIX_LEN.
26647         * lib/progreloc.c: Likewise.
26648         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
26649
26650 2004-08-06  Simon Josefsson  <jas@extundo.com>
26651
26652         * modules/progname (Depends-on): Don't depend on stdbool.
26653
26654 2004-08-06  Simon Josefsson  <jas@extundo.com>
26655
26656         * modules/getsubopt: New file.
26657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26658         getsubopt.
26659
26660 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
26661
26662         More merge from coreutils.
26663
26664         * m4/utimens.m4, m4/utimecmp.m4: New files.
26665         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
26666         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
26667         prereq.m4, sha.m4: Import changes from coreutils.
26668
26669 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
26670
26671         More merge from coreutils.
26672         * modules/raise, modules/readtokens0, modules/utimens:
26673         * modules/utimecmp, module/xnanosleep: New files.
26674         * modules/strftime: Add lib/strftime.h.
26675         Change include from <time.h> to "strftime.h".
26676         * modules/yesno: Add lib/yesno.h.
26677         * modules/backupfile: Remove lib/addext.c.
26678         * modules/euidaccess: Add stat-macros.h.
26679         * modules/canonicalize, modules/euidaccess,
26680         modules/filemode, modules/lchown, modules/makepath,
26681         modules/rmdir, modules/stat: Likewise.
26682
26683 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
26684
26685         Merge from tar.
26686         * lib/argp-help.c (make_hol, hol_append): Don't assume that
26687         SIZE_MAX is a valid preprocessor constant.
26688         (__argp_basename): Change from "#ifndef _LIBC"
26689         to "#ifndef __argp_short_program_name", so that
26690         we don't compile these functions for tar.
26691
26692         More merges from coreutils.
26693         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
26694         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
26695         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
26696         * lib/addext.c: Remove; no longer needed.
26697         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
26698         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
26699         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
26700         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
26701         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
26702         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
26703         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
26704         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
26705         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
26706         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
26707         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
26708         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
26709         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
26710         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
26711         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
26712         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
26713         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
26714         Import changes from coreutils.
26715
26716 2004-08-05  Simon Josefsson  <jas@extundo.com>
26717
26718         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
26719
26720 2004-08-05  Simon Josefsson  <jas@extundo.com>
26721
26722         * m4/getsubopt.m4: New file.
26723
26724 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
26725
26726         Merge from coreutils.
26727
26728         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
26729         * m4/getcwd-path-max.m4: New files.
26730
26731         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
26732         FILESYSTEM_PREFIX_LEN ->
26733         FILE_SYSTEM_PREFIX_LEN.
26734         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
26735         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
26736         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
26737         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
26738
26739         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
26740         prerequisite modules now handle the DOS stuff.
26741         Don't check for unistd.h.
26742
26743 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
26744
26745         Merge from coreutils.
26746
26747         * lib/.gdb-history: Remove; this doesn't belong here.
26748
26749         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
26750         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
26751         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
26752         * lib/getcwd.c: New files.
26753
26754         * lib/dirname.h: Include <stdbool.h>.
26755         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
26756         for consistency with POSIX terminology.  All uses changed.
26757         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
26758         (strip_trailing_slashes): Use bool for booleans.
26759         * lib/stripslash.c (strip_trailing_slashes): Likewise.
26760
26761         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
26762         sometimes returns a positive errno value even when it succeeds.
26763         (print_errno_message) [!LIBC]: Fall back on strerror if
26764         __strerror_r fails.
26765
26766         * lib/path-concat.c (mempcpy): Don't define if a system header defines
26767         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
26768         (longest_relative_suffix): New function.
26769         (path_concat): Use it.  Assume first argument is not NULL.
26770         Port to DOS.  Omit redundant separators.
26771         Report an error instead of returning NULL.
26772         Use mempcpy instead of memcpy.
26773         (xpath_concat): Remove: not declared or used.
26774
26775         * lib/same.h: Include <stdbool.h>
26776         (same_name): Return bool, not int.
26777         * lib/same.c (same_name): Likewise.
26778         (errno): Don't declare; we assume C89 or better now.
26779
26780         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
26781         if not already defined.
26782
26783         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
26784         * lib/dup-safer.c (errno): Likewise.
26785
26786 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
26787
26788         Merge from coreutils.
26789         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
26790         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
26791         * modules/path-concat: Don't depend on strdup.
26792
26793 2004-08-03  Simon Josefsson  <jas@extundo.com>
26794
26795         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
26796         * lib/progname.h: Don't include stdbool.h.
26797
26798 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
26799
26800         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
26801         * MODULES.html.sh (func_all_modules): Remove fatal.
26802
26803 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
26804
26805         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
26806
26807 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
26808
26809         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
26810         working.
26811
26812 2004-08-02  Simon Josefsson  <jas@extundo.com>
26813
26814         * lib/getsubopt.h: New file, with comments from Bruno Haible.
26815         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
26816         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
26817
26818 2004-08-01  Simon Josefsson  <jas@extundo.com>
26819
26820         * lib/xgetdomainname.c: Include stdlib.h, for free().
26821
26822 2004-07-19  Bruno Haible  <bruno@clisp.org>
26823
26824         * MODULES.html.sh (func_all_modules): Add dummy.
26825
26826 2004-07-16  Simon Josefsson  <jas@extundo.com>
26827
26828         * modules/dummy: New file.
26829
26830 2004-07-16  Simon Josefsson  <jas@extundo.com>
26831
26832         * lib/dummy.c: New file.
26833
26834 2004-07-16  Bruno Haible  <bruno@clisp.org>
26835
26836         * lib/backupfile.h: Add extern "C" for C++.
26837         * lib/closeout.h: Likewise.
26838         * lib/copy-file.h: Likewise.
26839         * lib/findprog.h: Likewise.
26840         * lib/full-write.h: Likewise.
26841         * lib/pathname.h: Likewise.
26842         * lib/progname.h: Likewise.
26843         * lib/stpcpy.h: Likewise.
26844         * lib/stpncpy.h: Likewise.
26845         * lib/strcase.h: Likewise.
26846         * lib/strstr.h: Likewise.
26847         * lib/xalloc.h: Likewise.
26848
26849         * lib/mbswidth.h: Add extern "C" for C++.
26850         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
26851
26852 2004-07-13  Robert Millan  <robertmh@gnu.org>
26853
26854         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
26855
26856 2004-07-09  Simon Josefsson  <jas@extundo.com>
26857
26858         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
26859         failed without this.)
26860
26861 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26862
26863         * modules/chown (Files): Add lib/fchown-stub.c, since
26864         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
26865
26866 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26867
26868         * lib/fchown-stub.c: New file.
26869
26870 2004-06-24  Jim Meyering  <jim@meyering.net>
26871
26872         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
26873
26874 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26875
26876         * modules/argz: Omit "#include".
26877
26878         * MODULES.html.sh (func_all_modules): Add calloc, to match
26879         2004-06-01 addition of calloc module.
26880
26881 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26882
26883         * m4/argz.m4: New file, which is autoupdated from libtool.
26884
26885 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26886
26887         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
26888         libtool.
26889
26890 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26891
26892         * config/srclist-update: Don't insist on "USA." before the
26893         close-comment, as libtool omits the period and puts the */ on a
26894         separate line.
26895         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
26896         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
26897
26898 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
26899
26900         * modules/argz: New file.
26901         * MODULES.html.sh (func_all_modules): Add argz.
26902
26903 2004-06-12  Jim Meyering  <jim@meyering.net>
26904         and  Paul Eggert  <eggert@cs.ucla.edu>
26905
26906         * modules/hash (Files): Add lib/xalloc.h.
26907         * modules/pipe (Depends-on): Add wait-process.
26908         * modules/stat (Depends-on): Add xalloc.
26909         * modules/userspec (Files): Add lib/userspec.h.
26910         * modules/xstrto
26911
26912         Upgrade from gettext-0.13.
26913         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
26914         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
26915         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
26916
26917 2004-06-10  Jim Meyering  <jim@meyering.net>
26918
26919         * lib/calloc.c: New file.
26920
26921 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26922
26923         * lib/getdate.y (yylex): Allow space between sign and number.
26924         Problem reported by Dan Jacobson.
26925
26926 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
26927
26928         Merge from coreutils CVS.
26929
26930         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
26931         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
26932         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
26933         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
26934         xstrtol.m4: Fix copyright date and/or serial number.
26935
26936         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
26937         See if we need an fchown replacement.
26938         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
26939         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
26940         and use the replacement function if we detect either defect.
26941
26942         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
26943         gl_UTIMECMP.
26944
26945 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
26946         and  Jim Meyering  <jim@meyering.net>
26947
26948         Merge from coreutils CVS.
26949
26950         * lib/stat-macros.h: New file, with contents from file-type.h
26951         and coreutils' system.h.
26952         * lib/file-type.c: Include "stat-macros.h".
26953         * lib/file-type.h (file_type): Move all macro definitions to new file,
26954         stat-macros.h.
26955
26956         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
26957         Wrap old code with this conditional.
26958         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
26959         function that does not dereference symlinks.
26960         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
26961
26962         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
26963         dependency problems.
26964         (xreadlink): Accept new arg SIZE, for efficiency.
26965         All decls and uses changed.
26966         * lib/xreadlink.h: Include <stddef.h>, for size_t.
26967
26968         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
26969         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
26970
26971         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
26972         sysexits.h.
26973
26974 2004-06-01  Jim Meyering  <jim@meyering.net>
26975
26976         * m4/calloc.m4: New file.
26977
26978 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
26979
26980         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
26981         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
26982         Also, fix a typo in a diagnostic.
26983
26984 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
26985
26986         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
26987         or AC_FUNC_REALLOC.
26988
26989 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
26990
26991         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
26992         macros to be defined.
26993         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
26994         the allocator returns NULL because the requested size is zero.
26995
26996 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26997
26998         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
26999         var.  Add comment explaining why libc still defines it.  This
27000         merges the following patch from glibc:
27001         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
27002
27003 2004-05-20  Andreas Schwab  <schwab@suse.de>
27004
27005         * m4/free.m4: Replace free if it not known to work, not the other
27006         way round.
27007
27008 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27009
27010         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
27011         present in glibc since revision 1.1 of this file.
27012         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
27013         obstack_alignment_mask, obstack_alloc, obstack_base,
27014         obstack_blank, obstack_blank_fast, obstack_chunk_size,
27015         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
27016         obstack_grow0, obstack_init, obstack_int_grow,
27017         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
27018         obstack_next_free, obstack_object_size, obstack_ptr_grow,
27019         obstack_ptr_grow_fast, obstack_room): Remove declarations of
27020         nonexistent functions.
27021
27022 2004-05-18  Karl Berry  <karl@gnu.org>
27023
27024         * config/srclist.txt: break link for vasnprintf.c.
27025
27026 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27027
27028         Port obstack to the AS/400, where pointers are 16 bytes wide and
27029         you cannot cast an integer to a valid pointer.  This patch is
27030         currently waiting to be integrated into glibc; see
27031         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
27032
27033         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
27034         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
27035         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
27036         (struct obstack): temp member is now a union of a pointer and
27037         an integer, instead of an integer.  All integer uses changed.
27038         This does not affect the physical layout of struct obstack,
27039         except on hosts (like the AS/400) where the size or alignment of
27040         void * is greater than that of ptrdiff_t.
27041         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
27042         __STDC__)]: Store temporary in pointer member of union, not
27043         integer member.
27044         * lib/obstack.c: Include <stddef.h>, for offsetof.
27045         (struct fooalign): Remove; it doesn't need a name.
27046         (union fooround): Change double to long double, and add void *.
27047         (DEFAULT_ALIGNMENT): Use offsetof to compute.
27048         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
27049         not a macro.  Hence the values are always int; so remove all
27050         casts-to-int in uses.
27051
27052 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27053
27054         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
27055         we can get this patch merged into glibc.
27056
27057 2004-05-17  Derek R. Price  <derek@ximbiot.com>
27058             Paul Eggert  <eggert@cs.ucla.edu>
27059
27060         * m4/argp: Depend on alloca.
27061
27062 2004-05-17  Derek R. Price  <derek@ximbiot.com>
27063             Paul Eggert  <eggert@cs.ucla.edu>
27064
27065         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
27066         freecoding.
27067
27068 2004-05-17  Bruno Haible  <bruno@clisp.org>
27069
27070         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
27071         precision that consists of a '.' followed by an empty digit string.
27072         Patch by Tor Lillqvist <tml@iki.fi>.
27073
27074 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
27075
27076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
27077         for backward compatibility with older code.  We need our own
27078         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
27079         it under some other name, and our alloca.h will define it.
27080
27081 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
27082             Derek Price  <derek@ximbiot.com>
27083
27084         * lib/alloca.c: Include <alloca.h>, to get our interface.
27085         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
27086         include <alloca.h> first.  Use C89 prototype for alloca; this
27087         requires including <stddef.h> for size_t.  Use extern "C" if C++.
27088         Use #elif for simplicity, since we can assume C89 now.
27089         Don't try to source the system alloca.h since it will not be found
27090         and to prevent recursively including its replacement.
27091         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
27092         * lib/regex.c: Likewise.
27093
27094 2004-05-16  Derek Price  <derek@ximbiot.com>
27095             Paul Eggert  <eggert@cs.ucla.edu>
27096
27097         getline cleanup.  This changes the getndelim2 API: both order of
27098         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
27099         no delimiter).
27100
27101         * lib/getline.c: Don't include stddef.h or stdio.h, since our
27102         interface does that.
27103         (getline): Always use getdelim, so that we don't have two
27104         copies of this code.
27105         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
27106         if available.
27107         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
27108         (GETNDELIM2_MAXIMUM): New macro.
27109         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
27110         instead of the old practice of delim2==0.  All callers changed.
27111         Return -1 on overflow, instead of returning junk.
27112         Do not set *linesize unless allocation succeeds.
27113         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
27114         that we include sys/types.h.
27115         * lib/getnline.h: Likewise.
27116         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
27117         (getndelim2): Reorder arguments.
27118         * lib/getnline.c (getnline, getndelim):
27119         Don't discard the NMAX argument.
27120         (getnline): Invoke getndelim, to avoid code duplication.
27121         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
27122         of (size_t) -1 by callers of the getnline family.
27123
27124 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
27125
27126         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
27127         Check for gettimeofday.
27128         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
27129         Check for settimeofday, stime.
27130
27131 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
27132
27133         * lib/nanosleep.c (suspended): Change its type from int to
27134         sig_atomic_t volatile.
27135         (first_call): Make it private to rpl_nanosleep, and have it
27136         be zero initially as that's a bit faster.
27137         (my_usleep): Round up fractional times instead of truncating them,
27138         as this is the usual meaning for 'sleep'.
27139
27140         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
27141         doesn't work.
27142         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
27143         (ENOSYS): Define if not defined.
27144         (settime): Fall back on stime if it exists and settimeofday fails.
27145         But don't bother with fallbacks if a method fails with errno == EPERM.
27146
27147 2004-05-11  Jim Meyering  <jim@meyering.net>
27148
27149         Prior to this change, the save_cwd caller required read access to the
27150         current directory on most systems (ones with the fchdir function).
27151
27152         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
27153         fails, try write-only, and finally, resort to using xgetcwd.
27154
27155 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
27156
27157         * lib/obstack.c, obstack.h: Import changes from libc.
27158
27159 2004-04-28  Bruno Haible  <bruno@clisp.org>
27160
27161         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
27162         also implicitly appends .exe to executables.
27163         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
27164         accepts Windows pathnames.
27165         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
27166         Treat Cygwin like Windows, since it now accepts Windows pathnames.
27167         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
27168         Treat Cygwin like Windows, since it now accepts Windows pathnames.
27169         Reported by Derek Robert Price <derek@ximbiot.com>.
27170
27171 2004-04-21  Karl Berry  <karl@gnu.org>
27172
27173         * config/srclist.txt (localcharset.c): break sync.
27174
27175 2004-04-20  Paul Eggert  <eggert@twinsun.com>
27176
27177         * m4/host-os.m4: Add a copyright notice.
27178
27179 2004-04-20  Jim Meyering  <jim@meyering.net>
27180
27181         Change UTILS_ to gl_ in AC_DEFINE'd names.
27182         Change utils_- and jm_-prefixed variables, too.
27183         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
27184         UTILS_FUNC_MKDIR_TRAILING_SLASH.
27185         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
27186
27187         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
27188         Don't emit trailing blanks.
27189         Also rename jm_-prefixed variables to have gl_ prefix.
27190
27191         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
27192         Also rename jm_-prefixed variables to have gl_ prefix.
27193
27194         * m4/jm-macros.m4: Reflect the renamings.
27195         * m4/prereq.m4: Likewise.
27196
27197 2004-04-20  Jim Meyering  <jim@meyering.net>
27198
27199         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
27200         memory.
27201
27202 2004-04-20  Jim Meyering  <jim@meyering.net>
27203             Bruno Haible  <bruno@clisp.org>
27204
27205         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
27206         memory when realloc fails.
27207
27208 2004-04-19  Jim Meyering  <jim@meyering.net>
27209
27210         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
27211         now that readutmp.c may call `free (0)'.
27212
27213 2004-04-19  Bruno Haible  <bruno@clisp.org>
27214
27215         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
27216         * m4/inttypes_h.m4: Likewise.
27217         * m4/stdint_h.m4: Likewise.
27218         * m4/intmax_t.m4: Likewise.
27219         * m4/uintmax_t.m4: Likewise.
27220
27221 2004-04-18  Jim Meyering  <jim@meyering.net>
27222
27223         * m4/prereq.m4: Don't forbid jm_ prefix.
27224
27225         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
27226         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
27227         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
27228         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
27229         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
27230         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
27231         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
27232         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
27233         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
27234         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
27235         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
27236         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
27237         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
27238         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
27239         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
27240         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
27241         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
27242         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
27243         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
27244
27245 2004-04-18  Jim Meyering  <jim@meyering.net>
27246
27247         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
27248         failure, don't leak memory and do call END_UTMP_ENT.
27249
27250 2004-04-16  Jim Meyering  <jim@meyering.net>
27251
27252         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
27253         coreutils' stat program.
27254         (gl_PREREQ): Don't require jm_PREREQ_STAT.
27255
27256 2004-04-11  Paul Eggert  <eggert@twinsun.com>
27257
27258         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
27259         C89.
27260         (CHAR_BIT): Remove, since we assume C89.
27261         Include <stdint.h> if available, as per current Autoconf CVS advice.
27262
27263 2004-03-31  Jim Meyering  <jim@meyering.net>
27264
27265         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
27266         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
27267         * m4/xalloc.m4: Likewise.
27268
27269 2004-03-30  Paul Eggert  <eggert@twinsun.com>
27270
27271         Merge from coreutils.
27272
27273         * m4/inttostr.m4: New file.
27274         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
27275         Require AM_STDBOOL_H and gl_TIMESPEC instead.
27276         Require gl_CLOCK_TIME.
27277         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
27278
27279 2004-03-30  Paul Eggert  <eggert@twinsun.com>
27280
27281         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
27282         not bool, to be more consistent with Unix conventions.
27283         Suggested by Bruno Haible.
27284
27285         Merge from coreutils.
27286
27287         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
27288         * lib/umaxtostr.c: New files.
27289
27290         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
27291         the usual <time.h> dance.
27292         (get_date): Change signature to support fractional time stamps.
27293         All callers changed.
27294         * lib/getdate.y: Include "getdate.h" first, as we can now
27295         assume C89 and don't need to worry about 'const'.
27296         Similarly, include "unlocked-io.h" near start, not in middle.
27297         Include <limits.h>.
27298         (textint.value): Use long int rather than int.
27299         (textint.digits): Use size_t rather than int.
27300         (BILLION, LOG10_BILLION): New constants.
27301         (parser_control): New member rel_ns.  Members day_ordinal,
27302         time_zone, month, day, hour, minutes, rel_year, rel_month,
27303         rel_day, rel_hour, rel_minutes, rel_seconds
27304         are now long int, not int.  Member seconds is now struct timespec,
27305         not int.  New member timespec_seen.  Members dates_seen, days_seen,
27306         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
27307         not int.
27308         (%union.intval): Now long int, not int.
27309         New member timespec.
27310         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
27311         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
27312         (spec): Now is a timespec or an item list.
27313         (timespec, items): New nonterminals.
27314         (time, rel, relunit, number, get_date):
27315         Add support for fractional seconds.
27316         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
27317         (gmtime, localtime, mktime): Remove decls; not needed with C89.
27318         (to_hour): First arg is now long int, not int.
27319         (to_year): Returns long int, not int.
27320         Don't treat year -70 like 70.
27321         (tm_diff): Returns long int, not int.
27322         (lookup_word): Use bool instead of int when appropriate.
27323         (yylex): Use size_t for count, not int.
27324         Detect overflow when parsing large integer constants.
27325         Add support for fractions.
27326         (get_date): Make pointers 'const' if possible.
27327         Use more-portable code to detect integer overflow.
27328         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
27329         Don't use ctime; it's not reliable if the year has >4 digits.
27330
27331         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
27332         This is for compatibility with BSD.
27333
27334         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
27335         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
27336         From coreutils' system.h.
27337
27338         * lib/userspec.c: Don't include "posixver.h".
27339         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
27340         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
27341         compatible extension.  Simplify code by removing a boolean int
27342         that was always nonzero if a string was nonnull.
27343
27344 2004-03-30  Jim Meyering  <jim@meyering.net>
27345
27346         Merge from coreutils.
27347
27348         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
27349         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
27350         on some systems one must include <grp.h> before it.
27351         Reported by Christian Krackowizer.
27352
27353 2004-03-30  Jim Meyering  <jim@meyering.net>
27354
27355         Merge from coreutils.
27356
27357         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
27358
27359         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
27360         an empty input stream.
27361
27362         * lib/readtokens.c: Include <stdbool.h>.
27363         (readtoken): Use `size_t' rather than int/long.
27364         All callers adjusted.
27365         Use `bool' rather than `int' where appropriate.
27366         Use memset rather than an explicit loop.
27367         Use x2nrealloc rather than xrealloc.
27368         Allow the use of `\0' as a delimiter.
27369         (readtokens): Likewise.
27370         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
27371
27372 2004-03-30  Jim Meyering  <jim@meyering.net>
27373
27374         * m4/realloc.m4: Remove file, since now it does no more than
27375         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
27376         the `configure.ac' section of module/realloc.
27377         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
27378
27379 2004-03-30  Bruno Haible  <bruno@clisp.org>
27380
27381         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
27382         nonnull.
27383
27384 2004-03-29  Paul Eggert  <eggert@twinsun.com>
27385
27386         Merge changes to getloadavg.c from coreutils and Emacs.
27387
27388         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
27389         Define to an expression, not to the empty string.
27390         Include cloexec.h and xalloc.h.
27391         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
27392         Use set_cloexec_flag rather than rolling our own.
27393         * lib/cloexec.c, lib/cloexec.h: New files.
27394
27395 2004-03-29  Paul Eggert  <eggert@twinsun.com>
27396
27397         * m4/cloexec.m4: New file.
27398
27399 2004-03-18  Paul Eggert  <eggert@twinsun.com>
27400
27401         * lib/getopt.h: Sync with libc CVS.
27402
27403 2004-03-18  Paul Eggert  <eggert@twinsun.com>
27404             Bruno Haible  <bruno@clisp.org>
27405
27406         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
27407         mbswidth.
27408
27409 2004-03-18  Paul Eggert  <eggert@twinsun.com>
27410             Bruno Haible  <bruno@clisp.org>
27411
27412         * lib/mbswidth.h: Include <wchar.h> only if
27413         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
27414         <wchar.h>.
27415         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
27416
27417 2004-03-09  Paul Eggert  <eggert@twinsun.com>
27418
27419         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
27420         Sync with libc CVS.
27421         * lib/getopt_int.h: New file, also synced from libc.
27422
27423 2004-03-09  Paul Eggert  <eggert@twinsun.com>
27424
27425         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
27426         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
27427         Bring back getopt.c, getopt.h, getopt1.c.
27428
27429 2004-03-07  Paul Eggert  <eggert@twinsun.com>
27430
27431         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
27432         All uses changed.  Check for sa_sigaction member; this fixes
27433         a bug first reported by Jason Andrade in
27434         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
27435
27436 2004-03-07  Paul Eggert  <eggert@twinsun.com>
27437
27438         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
27439         '#if' expressions.  Unlike the code it replaces, it does not
27440         depend on (defined _SC_PAGESIZE).  However, it does depend on
27441         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
27442         first reported by Jason Andrade in
27443         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
27444
27445 2004-02-25  Simon Josefsson  <jas@extundo.com>
27446
27447         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
27448
27449 2004-02-25  Simon Josefsson  <jas@extundo.com>
27450
27451         * lib/strdup.h: New file.
27452         * lib/strdup.c: Include it.
27453         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
27454         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
27455
27456 2004-02-23  Karl Berry  <karl@gnu.org>
27457
27458         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
27459         (from fencepost.gnu.org:/gd/gnuorg).
27460
27461 2004-02-23  Karl Berry  <karl@gnu.org>
27462
27463         * config/srclistvars.sh (GNUORG) [karl]: redefine.
27464         * config/srclist.txt: add maintain/standards documents.
27465
27466 2004-02-18  Bruno Haible  <bruno@clisp.org>
27467
27468         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
27469         Reported by Derek Robert Price <derek@ximbiot.com>.
27470
27471 2004-02-16  Karl Berry  <karl@gnu.org>
27472
27473         * config/mkinstalldirs, install-sh: update from automake.
27474
27475 2004-02-06  Karl Berry  <karl@gnu.org>
27476
27477         * m4/po.m4: update from gettext 0.14.1.
27478
27479 2004-02-06  Karl Berry  <karl@gnu.org>
27480
27481         * lib/config.charset: update from gettext 0.14.1.
27482
27483 2004-02-05  Paul Eggert  <eggert@twinsun.com>
27484
27485         Add comments and code, prompted by suggestions from Bruno Haible
27486         for sh-quote.
27487         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
27488         describing the enum quoting_style values.
27489         * lib/quotearg.c (quotearg_alloc): New function.
27490         (quotearg_buffer_restyled): Treat lone { and } as special.
27491         Treat = as special.  Work around bug with older shells
27492         that "see" a '\' that is really the 2nd byte of a multibyte char.
27493         Quote empty string with shell_quoting_style.
27494
27495 2004-02-03  Bruno Haible  <bruno@clisp.org>
27496
27497         * m4/pipe.m4: New file, from GNU gettext.
27498
27499 2004-02-03  Bruno Haible  <bruno@clisp.org>
27500
27501         * lib/pipe.h: New file, from GNU gettext.
27502         * lib/pipe.c: New file, from GNU gettext.
27503
27504 2004-01-27  Bruno Haible  <bruno@clisp.org>
27505
27506         * m4/execute.m4: New file, from GNU gettext.
27507
27508 2004-01-27  Bruno Haible  <bruno@clisp.org>
27509
27510         * lib/execute.h: New file, from GNU gettext.
27511         * lib/execute.c: New file, from GNU gettext.
27512         * lib/w32spawn.h: New file, from GNU gettext.
27513
27514 2004-01-24  Paul Eggert  <eggert@twinsun.com>
27515
27516         Merge from diffutils.
27517
27518         * lib/file-type.c (file_type): Add typed memory objects.
27519         * lib/file-type.h (S_TYPEISTMO): New macro.
27520
27521         * lib/c-stack.h (c_stack_action): Remove argv argument.
27522         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
27523         (die): Don't calculate message unless segv_action returns.
27524         (get_stack_location, min_address_from_argv, max_address_from_argv,
27525         volatile stack_base, volatile_stack_size): Remove.
27526         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
27527         that every segmentation violation is a stack overflow.  (Ouch!)
27528         See Debian bug 136249 (still outstanding) for more info about why
27529         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
27530
27531 2004-01-24  Paul Eggert  <eggert@twinsun.com>
27532
27533         Exit-status fix from coreutils.
27534
27535         Use exit_failure consistently in place of EXIT_FAILURE,
27536         so that program exit statuses are consistent on failure.
27537
27538         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
27539         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
27540         * lib/argmatch.h: Comment fix to match the above.
27541         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
27542         Now a macro referring to exit_failure, instead of a separate
27543         variable.  Include "exitfail.h" to get it.
27544         * lib/xstrtol.h: Include "exitfail.h".
27545         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
27546
27547         * lib/long-options.c (parse_long_options): Use prototype
27548         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
27549         for clarity.
27550
27551 2004-01-21  Jim Meyering  <jim@meyering.net>
27552
27553         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
27554         so as not to conflict with a different-sized __mktime_internal
27555         function in GNU libc.
27556         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
27557         Problem building statically-linked `ls' reported by Michael Brunnbauer.
27558
27559 2004-01-20  Karl Berry  <karl@gnu.org>
27560
27561         * config/config.guess: update from config.
27562
27563         * config/srclistvars.sh: GNUWWWLICENSES for karl.
27564
27565 2004-01-20  Bruno Haible  <bruno@clisp.org>
27566
27567         Safer stack allocation.
27568         * lib/setenv.c: Include allocsa.h.
27569         (alloca): Remove fallback definition.
27570         (freea): Remove macro.
27571         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
27572         instead of freea.
27573
27574 2004-01-20  Bruno Haible  <bruno@clisp.org>
27575
27576         * m4/eealloc.m4: New file, from GNU gettext.
27577
27578 2004-01-20  Bruno Haible  <bruno@clisp.org>
27579
27580         * m4/allocsa.m4: New file, from GNU gettext.
27581
27582 2004-01-20  Bruno Haible  <bruno@clisp.org>
27583
27584         * lib/xallocsa.h: New file, from GNU gettext.
27585         * lib/xallocsa.c: New file, from GNU gettext.
27586
27587 2004-01-20  Bruno Haible  <bruno@clisp.org>
27588
27589         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
27590
27591 2004-01-20  Bruno Haible  <bruno@clisp.org>
27592
27593         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
27594         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
27595         specially.
27596
27597 2004-01-20  Bruno Haible  <bruno@clisp.org>
27598
27599         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
27600         patch.
27601
27602 2004-01-20  Bruno Haible  <bruno@clisp.org>
27603
27604         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
27605
27606 2004-01-20  Bruno Haible  <bruno@clisp.org>
27607
27608         * lib/eealloc.h: New file.
27609
27610 2004-01-20  Bruno Haible  <bruno@clisp.org>
27611
27612         * lib/binary-io.h: Avoid warnings on Cygwin.
27613
27614 2004-01-20  Bruno Haible  <bruno@clisp.org>
27615
27616         * lib/allocsa.h: New file, from GNU gettext.
27617         * lib/allocsa.c: New file, from GNU gettext.
27618
27619 2004-01-18  Karl Berry  <karl@gnu.org>
27620
27621         * doc/gpl.texi, doc/lgpl.texi: new files.
27622
27623 2004-01-18  Karl Berry  <karl@gnu.org>
27624
27625         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
27626         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
27627
27628 2004-01-15  Paul Eggert  <eggert@twinsun.com>
27629
27630         Merge from coreutils.
27631
27632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
27633         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
27634         (gl_DEFAULT_POSIX2_VERSION): Move
27635         the documentation from 'configure' into 'config.hin',
27636         so that 'configure --help' isn't burdened by it and
27637         we don't have to worry about its formatting there.
27638         Reword the documentation so that it's more succinct
27639         and can be run together into a single paragraph.
27640         * m4/same.m4 (gl_SAME): Check for pathconf.
27641
27642 2004-01-15  Paul Eggert  <eggert@twinsun.com>
27643
27644         Merge from coreutils.
27645
27646         * lib/posixver.c: Include posixver.h.
27647
27648         * lib/same.c: Include <stdbool.h>, <limits.h>.
27649         (_POSIX_NAME_MAX): Define if not defined.
27650         (MIN): New macro.
27651         (same_name): If file names are silently truncated, report
27652         that the file names are the same if they are the same after
27653         the silent truncation.
27654
27655         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
27656         conversion function.
27657         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
27658         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
27659         longer needed.
27660
27661 2004-01-15  Jim Meyering  <jim@meyering.net>
27662
27663         Merge from coreutils.
27664
27665         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
27666         if no library is required.
27667         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
27668         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
27669         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
27670         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
27671         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
27672         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
27673         value, $ac_cv_search_crypt, if it's "none required".
27674         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
27675         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
27676         not gl_FUNC_GETLOADAVG.
27677         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
27678         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
27679
27680 2004-01-15  Jim Meyering  <jim@meyering.net>
27681
27682         Merge from coreutils.
27683
27684         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
27685         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
27686         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
27687
27688         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
27689         optional configure-time default.
27690
27691         * lib/version-etc.c (version_etc_copyright): Update copyright date.
27692
27693         * lib/xreadlink.c (xreadlink): Correct outdated comment.
27694
27695 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
27696
27697         Merge from coreutils.
27698
27699         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
27700         value, $ac_cv_search_nanosleep, if it's "none required".
27701
27702 2004-01-14  Paul Eggert  <eggert@twinsun.com>
27703
27704         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
27705         with like-named macro in fnmatch.c.
27706         (EXT): Use an internal constant instead.
27707
27708         Merge fnmatch patches from glibc.
27709         * lib/fnmatch.c (mbsinit): Remove define.
27710         Add libc_hidden_ver (__fnmatch, fnmatch).
27711         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
27712         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
27713
27714 2004-01-14  Karl Berry  <karl@gnu.org>
27715
27716         * config/install-sh: update from automake.
27717
27718 2004-01-13  Karl Berry  <karl@gnu.org>
27719
27720         * config/install-sh: update from automake.
27721
27722 2004-01-09  Karl Berry  <karl@gnu.org>
27723
27724         * config/install-sh: update from automake.
27725
27726 2004-01-05  Karl Berry  <karl@gnu.org>
27727
27728         * config/config.{sub,guess}: update from config.
27729
27730 2003-12-31  Karl Berry  <karl@gnu.org>
27731
27732         * config/depcomp: update from automake.
27733
27734 2003-12-14  Karl Berry  <karl@gnu.org>
27735
27736         * lib/config.charset: update from gettext-runtime.
27737
27738 2003-12-03  Paul Eggert  <eggert@twinsun.com>
27739
27740         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
27741         Bug reported by Alfred M. Szmidt.
27742
27743 2003-12-03  Bruno Haible  <bruno@clisp.org>
27744
27745         * m4/gettext.m4: Upgrade from gettext-0.13.
27746         * m4/po.m4: Upgrade from gettext-0.13.
27747         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
27748         * m4/intmax.m4: New file, from gettext-0.13.
27749         * m4/printf-posix.m4: New file, from gettext-0.13.
27750
27751 2003-11-29  Karl Berry  <karl@gnu.org>
27752
27753         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
27754
27755 2003-11-25  Paul Eggert  <eggert@twinsun.com>
27756             Bruno Haible  <bruno@clisp.org>
27757
27758         * lib/printf-parse.h: Don't include sys/types.h.
27759         (ARG_NONE): New macro.
27760         (char_directive): Change type of *arg_index fields to size_t.
27761         * lib/printf-parse.c: Don't include sys/types.h.
27762         (SSIZE_MAX): Remove macro.
27763         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
27764         Remove unnecessary overflow check.
27765         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
27766         fields.
27767
27768 2003-11-25  Bruno Haible  <bruno@clisp.org>
27769
27770         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
27771
27772 2003-11-25  Bruno Haible  <bruno@clisp.org>
27773
27774         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
27775         gt_TYPE_SSIZE_T.
27776
27777 2003-11-24  Paul Eggert  <eggert@twinsun.com>
27778
27779         * modules/alloca: Remove dependency on xalloc.
27780
27781 2003-11-24  Paul Eggert  <eggert@twinsun.com>
27782
27783         * lib/alloca.c: Remove dependency on xalloc module.
27784         (xalloc_die): Remove.
27785         (memory_full) [!defined emacs]: New macro.
27786         [!defined emacs]: Don't include xalloc.h.
27787         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
27788         address arithmetic overflows.  Change datatypes a bit to avoid
27789         unnecessary casts.
27790
27791 2003-11-22  Jim Meyering  <jim@meyering.net>
27792
27793         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
27794         s/size/size_t/.
27795
27796 2003-11-21  Karl Berry  <karl@gnu.org>
27797
27798         * config/config.{sub,guess}: update from config.
27799
27800 2003-11-18  Karl Berry  <karl@gnu.org>
27801
27802         * config/config.{sub,guess}: update from config.
27803
27804         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
27805
27806 2003-11-17  Paul Eggert  <eggert@twinsun.com>
27807
27808         * README: Mention that S+T cannot overflow if S is the size of
27809         an existing object and T is sufficiently small.
27810
27811 2003-11-17  Jim Meyering  <jim@meyering.net>
27812
27813         On systems without utime and without a utimes function capable of
27814         dealing with a NULL struct utimbuf* argument, this utime replacement
27815         could -- in unusual circumstances -- leak a file descriptor.
27816         * lib/utime.c: Include <unistd.h> and <errno.h>.
27817         (utime_null): Be sure to close `fd' and to preserve errno.
27818         Reported by Geoff Collyer via Arnold Robbins.
27819
27820 2003-11-17  Bruno Haible  <bruno@clisp.org>
27821
27822         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
27823         (Depends-on): Add xsize.
27824
27825 2003-11-17  Bruno Haible  <bruno@clisp.org>
27826
27827         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
27828
27829 2003-11-17  Bruno Haible  <bruno@clisp.org>
27830
27831         * lib/vasnprintf.c (alloca): Remove fallback definition.
27832         (freea): Remove definition.
27833         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
27834         Reported by Paul Eggert.
27835
27836 2003-11-16  Paul Eggert  <eggert@twinsun.com>
27837             Bruno Haible  <bruno@clisp.org>
27838
27839         Protect against address arithmetic overflow.
27840         * lib/printf-args.h: Include stddef.h.
27841         (arguments): Change type of field 'count' to size_t.
27842         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
27843         'unsigned int' where appropriate.
27844         * lib/printf-parse.h: Include sys/types.h.
27845         (char_directive): Change type of *arg_index fields to ssize_t.
27846         (char_directives): Change type of fields 'count', max_*_length to
27847         size_t.
27848         * lib/printf-parse.c: Include sys/types.h and xsize.h.
27849         (SSIZE_MAX): Define fallback value.
27850         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
27851         instead of 'int' where appropriate. Check a_allocated, d_allocated
27852         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
27853         * lib/vasnprintf.c: Include xsize.h.
27854         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
27855         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
27856         overflow. Avoid wraparound when converting a width or precision from
27857         decimal to binary.
27858
27859 2003-11-16  Bruno Haible  <bruno@clisp.org>
27860
27861         Update from GNU gettext.
27862         * lib/printf-parse.c: Generalize to it can be compiled for wide
27863         strings.
27864         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
27865         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
27866         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
27867         SNPRINTF): New macros.
27868         Don't include <alloca.h> if the file is used inside libintl.
27869         (local_wcslen): New function, for Solaris 2.5.1.
27870         (VASNPRINTF): Use it instead of wcslen.
27871
27872 2003-11-16  Bruno Haible  <bruno@clisp.org>
27873
27874         * lib/xsize.h (xmax): New function.
27875         (xsum, xsum3, xsum4): Declare as "pure" functions.
27876
27877 2003-11-12  Paul Eggert  <eggert@twinsun.com>
27878
27879         * modules/xalloc (Files): Undo latest change, since xalloc.h
27880         no longer needs SIZE_MAX or PTRDIFF_MAX.
27881
27882 2003-11-12  Paul Eggert  <eggert@twinsun.com>
27883
27884         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
27885         gl_PTRDIFF_MAX.
27886
27887 2003-11-12  Paul Eggert  <eggert@twinsun.com>
27888
27889         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
27890         "return", to pacify some unknown compiler.  Problem reported
27891         by Joerg Schilling.
27892
27893 2003-11-12  Paul Eggert  <eggert@twinsun.com>
27894
27895         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
27896         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
27897         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
27898         heuristic is just as accurate as far as we know, and it removes a
27899         dependency on size_max.m4 and ptrdiff_max.m4.
27900
27901 2003-11-11  Bruno Haible  <bruno@clisp.org>
27902
27903         * modules/xsize (Files): Add m4/size_max.m4.
27904         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
27905
27906 2003-11-11  Bruno Haible  <bruno@clisp.org>
27907
27908         * m4/size_max.m4: New file.
27909         * m4/ptrdiff_max.m4: New file.
27910         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
27911         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
27912         (gl_XALLOC): Invoke it.
27913
27914 2003-11-11  Bruno Haible  <bruno@clisp.org>
27915
27916         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
27917         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
27918         defined.
27919
27920 2003-11-10  Paul Eggert  <eggert@twinsun.com>
27921
27922         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
27923         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
27924         rejected some allocations of exactly SIZE_MAX - 2 bytes.
27925         From Bruno Haible.
27926         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
27927         not (size_t) -1, since it's defined here.
27928
27929 2003-11-09  Karl Berry  <karl@gnu.org>
27930
27931         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
27932
27933 2003-11-06  Paul Eggert  <eggert@twinsun.com>
27934
27935         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
27936         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
27937         Reject sizes of exactly SIZE_MAX bytes.
27938         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
27939         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
27940
27941 2003-11-05  Bruno Haible  <bruno@clisp.org>
27942
27943         * lib/xsize.h: Include limits.h, to avoid a possible collision with
27944         SIZE_MAX defined in <limits.h> on Solaris.
27945
27946 2003-11-04  Jim Meyering  <jim@meyering.net>
27947
27948         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
27949         variable names, rather than @VAR@.
27950         * modules/poll: Likewise.
27951
27952 2003-11-04  Bruno Haible  <bruno@clisp.org>
27953
27954         * modules/xsize: New file.
27955         * modules/linebreak: Depend on xsize.
27956         * MODULES.html.sh (func_all_modules): Add xsize.
27957
27958 2003-11-04  Bruno Haible  <bruno@clisp.org>
27959
27960         * m4/xsize.m4: New file.
27961
27962 2003-11-04  Bruno Haible  <bruno@clisp.org>
27963
27964         * lib/xsize.h: New file.
27965         * lib/linebreak.c: Include xsize.h.
27966         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
27967         argument for overflow.
27968         Suggested by Paul Eggert.
27969
27970 2003-11-03  Karl Berry  <karl@gnu.org>
27971
27972         * config/config.{guess,sub}: update from config.
27973
27974 2003-11-03  Jim Meyering  <jim@meyering.net>
27975
27976         * modules/userspec (lib_SOURCES): Add userspec.h.
27977         (Include): Add "userspec.h".
27978         Improve description.
27979
27980 2003-11-03  Jim Meyering  <jim@meyering.net>
27981
27982         * lib/userspec.c: Include "userspec.h".
27983         * lib/userspec.h: New file.
27984
27985 2003-11-03  Bruno Haible  <bruno@clisp.org>
27986
27987         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
27988
27989 2003-11-03  Bruno Haible  <bruno@clisp.org>
27990
27991         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
27992         available, to avoid (extremely rare) race condition.
27993         Suggested by Paul Eggert.
27994
27995 2003-11-02  Karl Berry  <karl@gnu.org>
27996
27997         * config/srclist.txt (vasprintf.c): sync broken, sigh.
27998
27999 2003-10-31  Paul Eggert  <eggert@twinsun.com>
28000
28001         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
28002         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
28003         (read_filesystem_list): Set and use me_type_malloced.
28004         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
28005         whatever the type happens to be), for brevity and consistency.
28006         Check for size calculation overflow on Alphas running OSF/1.
28007
28008 2003-10-31  Jim Meyering  <jim@meyering.net>
28009
28010         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
28011
28012         * lib/linebuffer.c: Include <string.h> for declaration of memset.
28013
28014 2003-10-30  Paul Eggert  <eggert@twinsun.com>
28015             Bruno Haible  <bruno@clisp.org>
28016
28017         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
28018         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
28019
28020 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28021
28022         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
28023         netbsd*-gnu*.  Suggested by Robert Millan.
28024
28025 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28026
28027         * modules/group-member: Depend on stdbool.
28028
28029 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28030
28031         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
28032
28033 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28034
28035         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
28036         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
28037         after the 'gnu' in these cases.  This fixes some bugs in the
28038         previous change, and is based on suggestions by Robert Millan.
28039
28040 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28041
28042         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
28043         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
28044         no longer needed.
28045         * lib/quotearg.c (quotearg_n_options): Use it.
28046         * lib/group-member.c: Include <stdbool.h>.
28047         (free_group_info): Arg is now const *; don't free arg.
28048         (get_group_info): Now returns bool and accepts struct group_info *,
28049         rather than returning a malloc'ed struct group_info *.
28050         All uses changed.  Check for overflow in internal size calculation.
28051
28052         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
28053         rather than xmalloc/xrealloc.
28054         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
28055         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
28056         conformance bug: the old code used a pointer after freeing the
28057         storage that it addressed.
28058         * lib/hash.c (hash_initialize): Simplify the code by using
28059         xalloc_oversized rather than doing it by hand.
28060         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
28061         the buffer preserved.  Use free and xmalloc instead.
28062         * lib/quotearg.c (quotearg_n_options): Likewise.
28063         Use a simpler test for size overflow.  Don't use xalloc_oversized
28064         because unsigned int might be wider than size_t (!); this suggests
28065         that we should switch from unsigned int to size_t for slot numbers.
28066
28067 2003-10-28  Paul Eggert  <eggert@twinsun.com>
28068
28069         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
28070         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
28071         NetBSD kernels.  Requested by Richard Stallman.
28072
28073 2003-10-27  Paul Eggert  <eggert@twinsun.com>
28074
28075         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
28076         to allocate the returned structure.  Do not allocate a subarray,
28077         as x2nrealloc will do that.
28078         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
28079         instead of xnrealloc.
28080         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
28081
28082 2003-10-27  Bruno Haible  <bruno@clisp.org>
28083
28084         * lib/stdbool_.h: Better support for BeOS.
28085
28086 2003-10-26  Paul Eggert  <eggert@twinsun.com>
28087
28088         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
28089         now uses inline.
28090
28091 2003-10-26  Paul Eggert  <eggert@twinsun.com>
28092
28093         * lib/xalloc.h (xalloc_oversized): New static inline function, for
28094         callers that want to do their own size-overflow checking.  Include
28095         <stdbool.h>, since xalloc_oversized returns bool.
28096         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
28097         to use xalloc_oversized.
28098
28099         Add two functions x2realloc, x2nrealloc, for programs that grow
28100         arrays dynamically by doubling their sizes.
28101         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
28102         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
28103         New functions.
28104
28105         Port to C99 semantics for 'inline' of external functions.
28106         Bug reported by Bruno Haible.
28107         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
28108         with the old contents of xnmalloc.
28109         (xnmalloc, xmalloc): Use it.
28110         (xnrealloc_inline): New static inline function,
28111         with the old contents of xnrealloc.
28112         (xnrealloc, xrealloc): Use it.
28113
28114         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
28115         that.
28116
28117 2003-10-26  Karl Berry  <karl@gnu.org>
28118
28119         * config/srclist.txt (COPYING.DOC): no longer available from
28120         /gd/gnuorg; don't know where the ultimate source is.
28121
28122 2003-10-25  Paul Eggert  <eggert@twinsun.com>
28123
28124         Fix several address-calculation bugs in the hash modules,
28125         plus some minor code cleanup.
28126
28127         * lib/hash.h: Include <stdbool.h>, for bool.
28128         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
28129         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
28130         hash_get_n_entries, hash_get_max_bucket_length,
28131         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
28132         hash_rehash): Use size_t rather than unsigned.
28133         * lib/hash.c (struct hash_table, hash_get_n_buckets,
28134         hash_get_n_buckets_used, hash_get_n_entries,
28135         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
28136         hash_get_entries, hash_do_for_each, hash_string, is_prime,
28137         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
28138         Likewise.
28139         (SIZE_MAX): Define if not defined.
28140         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
28141         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
28142         hash_print):
28143         Use const * when possible.
28144         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
28145         (check_tuning): Fix bug: if tuning parameters were very close to
28146         0 or 1, rounding errors could have caused subscript violations.
28147         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
28148         (hash_initialize): Add 'fail:' label
28149         to free table and return NULL, and use it to simplify code.
28150         Use calloc rather than clearing the storage ourself.
28151         (hash_initialize, hash_rehash): Check for arithmetic overflow in
28152         buffer size calculations.
28153         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
28154         Include <stddef.h>, for size_t.
28155         * lib/hash-pjw.c (hash_pjw): Likewise.
28156         Switch to method described by Bruno Haible.
28157         Include <limits.h>, for CHAR_BIT.
28158         (SIZE_BITS): New macro.
28159
28160 2003-10-23  Paul Eggert  <eggert@twinsun.com>
28161
28162         * m4/getline.m4 (AM_FUNC_GETLINE):
28163         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
28164         hosts.  Problem reported by Derek Robert Price in
28165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
28166         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
28167         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
28168
28169 2003-10-21  Paul Eggert  <eggert@twinsun.com>
28170
28171         * lib/getndelim2.c (getndelim2): When size calculation overflows,
28172         ceiling the allocation at NMAX bytes rather than silently
28173         discarding input bytes before NMAX is reached.  This makes
28174         a difference only if NMAX exceeds SIZE_MAX / 2.
28175
28176         * lib/obstack.c: Merge from glibc.
28177         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
28178         Add libc_hidden_def (_obstack_newchunk).
28179         (_obstack_free) [! defined _LIBC]: Remove.
28180         [defined _LIBC]: Make a strong alias from obstack_free, rather than
28181         a clone of the function body.
28182         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
28183         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
28184
28185         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
28186         glibc.
28187         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
28188         arg to memcpy.
28189
28190         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
28191         (obstack_ptr_grow_fast, obstack_int_grow_fast):
28192         Don't use lvalue casts, as GCC plans to remove support for them
28193         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
28194         was also present in the non-GCC version, indicating that this
28195         code had always been buggy and had never been widely used.
28196         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
28197         Use the fast variant of each macro, rather than copying the
28198         definiens of the fast variant; that way, we'll be more likely to
28199         catch future bugs in the fast variants.
28200
28201 2003-10-20  Bruno Haible  <bruno@clisp.org>
28202
28203         * modules/wait-process: New file.
28204         * MODULES.html.sh (func_all_modules): Add wait-process.
28205
28206 2003-10-20  Bruno Haible  <bruno@clisp.org>
28207
28208         * m4/wait-process.m4: New file.
28209
28210 2003-10-20  Bruno Haible  <bruno@clisp.org>
28211
28212         * lib/wait-process.h: New file, from GNU gettext.
28213         * lib/wait-process.c: New file, from GNU gettext.
28214
28215 2003-10-19  Jim Meyering  <jim@meyering.net>
28216
28217         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
28218         HPUX 10.20.
28219
28220 2003-10-18  Karl Berry  <karl@gnu.org>
28221
28222         * config/config.guess: update from config.
28223
28224 2003-10-16  Paul Eggert  <eggert@twinsun.com>
28225
28226         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
28227         (getgroups): First arg is int, not size_t.
28228         Don't let 'free' mangle errno.
28229
28230 2003-10-16  Paul Eggert  <eggert@twinsun.com>
28231
28232         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
28233
28234 2003-10-16  Karl Berry  <karl@gnu.org>
28235
28236         * config/config.{guess,sub}: update from config.
28237
28238 2003-10-16  Jim Meyering  <jim@meyering.net>
28239
28240         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
28241         memcpy.
28242
28243 2003-10-15  Paul Eggert  <eggert@twinsun.com>
28244
28245         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
28246         (SIZE_MAX): Remove.
28247         (new_exclude, add_exclude_file): Initial size no longer needs to
28248         be a power of 2.
28249         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
28250         our own address arithmetic overflow checking.
28251
28252         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
28253         (fnmatch): Do not alloca more than 2000 wide characters;
28254         instead, use malloc for large buffers.
28255         Check for address arithmetic overflow, and return -1
28256         with errno set to ENOMEM in that case.
28257         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
28258         (NEW_PATTERN): Do not alloca more than 8000 bytes;
28259         instead, return -1.  Check for address arithmetic overflow.
28260
28261 2003-10-14  Paul Eggert  <eggert@twinsun.com>
28262
28263         Handle invalid suffixes and overflow independently, so that
28264         callers can treat them independently as needed.  Fix some bugs in
28265         suffix handling, e.g., "100k@" was not diagnosed as an invalid
28266         suffix for a human-readable blocksize.  The major caller-visible
28267         change is the addition of a new
28268         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
28269         that both overflow and suffix chars were found.
28270
28271         * lib/human.c (humblock): Don't check separately for invalid suffix
28272         char; that is xstrtoumax's job (now that its bug is fixed).
28273         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
28274         INTMAX_MAX]: New macros.
28275         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
28276         TYPE_MAXIMUM): New macros.
28277         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
28278         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
28279         if overflow occurs, as it's what __strtol does and it's more useful
28280         in practice.
28281         (__xstrtol): If __strtol reports some error other than ERANGE,
28282         reflect it to the caller as LONGINT_INVALID.  If it reports
28283         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
28284         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
28285         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
28286         value.
28287         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
28288         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
28289         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
28290         [defined UINTMAX_MAX]: New macros.
28291
28292 2003-10-14  Bruno Haible  <bruno@clisp.org>
28293
28294         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
28295
28296 2003-10-14  Bruno Haible  <bruno@clisp.org>
28297
28298         * m4/sig_atomic_t: New file, from GNU gettext.
28299         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
28300
28301 2003-10-14  Bruno Haible  <bruno@clisp.org>
28302
28303         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
28304         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
28305         Also use volatile where needed.
28306
28307 2003-10-12  Paul Eggert  <eggert@twinsun.com>
28308
28309         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
28310         Change maintainer from Bruno Haible to 'all'.
28311
28312 2003-10-12  Paul Eggert  <eggert@twinsun.com>
28313
28314         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
28315
28316 2003-10-12  Paul Eggert  <eggert@twinsun.com>
28317
28318         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
28319         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
28320         and define in terms of the other primitives.
28321         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
28322         (SIZE_MAX): Define if not already defined.
28323         (array_size_overflow): New function.
28324         (xalloc_die): Abort instead of exiting if 'error' returns.
28325         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
28326         (xmalloc, xrealloc): Use them.
28327         (xcalloc): Check for address arithmetic overflow.
28328         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
28329         a bit faster than strcpy.
28330
28331 2003-10-10  Simon Josefsson  <jas@extundo.com>
28332
28333         * modules/argp (Depends-on): Add restrict and strcase.
28334
28335 2003-10-10  Simon Josefsson  <jas@extundo.com>
28336
28337         * m4/argp.m4: Add AC_C_INLINE.
28338
28339 2003-10-08  Paul Eggert  <eggert@twinsun.com>
28340
28341         Merge getpass from libc, plus a few fixes.
28342
28343         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
28344         Include <stdbool.h>.
28345         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
28346         __fsetlocking to empty.
28347         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
28348         do include <bits/libc-lock.h>.
28349         Do not include <fcntl.h>; not needed.
28350         [_LIBC]: Include <wchar.h>.
28351         (NOTCANCEL_MODE): New macro.
28352         (flockfile, funlockfile) [_LIBC]: New macros.
28353         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
28354         [!_LIBC]: New macros.
28355         (call_fclose): New function.
28356         (getpass): Use it.  Save tty stream separately; this simplifies the
28357         code and makes it more reliable if stdin happens to equal stdout.
28358         Invoke __fsetlocking on tty.
28359         Handle thread cancellation if needed.
28360         Namespace cleanup (use __tcgetattr, __getline).
28361         Use bool for Booleans.
28362         [USE_IN_LIBIO]: Handle wide streams.
28363         [!_LIBC]: Unconditionally do the fseek, since we don't know what
28364         stream might go where.
28365
28366         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
28367         doesn't have to include <stdio.h> before us.
28368         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
28369         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
28370         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
28371         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
28372         if not declared, so that we can use getpass.c code from libc without
28373         rewriting it.
28374         (flockfile, ftrylockfile, funlockfile): New macros.
28375
28376 2003-10-08  Paul Eggert  <eggert@twinsun.com>
28377
28378         * modules/getpass: Depend on stdbool.
28379
28380 2003-10-08  Paul Eggert  <eggert@twinsun.com>
28381
28382         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
28383
28384 2003-10-07  Karl Berry  <karl@gnu.org>
28385
28386         * config/config.{guess,sub}: update from config.
28387
28388 2003-10-06  Jim Meyering  <jim@meyering.net>
28389             Bruno Haible  <bruno@clisp.org>
28390
28391         This lets translators provide better translations for the
28392         "Written by ..." part of --version output.
28393         * lib/version-etc.h: Include stdarg.h.
28394         (version_etc_copyright): Declare as readonly.
28395         (version_etc): Make this function variadic with a NULL-terminated list
28396         of author name strings.
28397         (version_etc_va): New declaration.
28398         * lib/version-etc.c: Include stdarg.h, stdlib.h.
28399         (version_etc_copyright): Declare as readonly.
28400         (version_etc_va): New function. Provide a different translatable string
28401         for each possible number of authors < 10. Abbreviate when there are 10
28402         authors or more.
28403         (version_etc): Make this function variadic. Call version_etc_va.
28404         Suggestion from Gary V. Vaughan.
28405
28406         * lib/long-options.h (parse_long_options): Change prototype: the
28407         authors string is moved to the end and becomes variadic.
28408         * lib/long-options.c: Include stdarg.h.
28409         (parse_long_options): Make this function variadic, too.
28410         Call version_etc_va, not version_etc.
28411
28412 2003-10-06  Bruno Haible  <bruno@clisp.org>
28413
28414         * modules/version-etc-2: Remove file.
28415         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
28416
28417 2003-10-06  Bruno Haible  <bruno@clisp.org>
28418
28419         * modules/fatal-signal: New file.
28420         * MODULES.html.sh (func_all_modules): Add fatal-signal.
28421
28422 2003-10-06  Bruno Haible  <bruno@clisp.org>
28423
28424         * m4/fatal-signal.m4: New file.
28425         * m4/signalblocking.m4: New file, from GNU gettext.
28426
28427 2003-10-06  Bruno Haible  <bruno@clisp.org>
28428
28429         * lib/version-etc-2.h: Remove file.
28430         * lib/version-etc-2.c: Remove file.
28431
28432 2003-10-06  Bruno Haible  <bruno@clisp.org>
28433
28434         * lib/fatal-signal.h: New file, from GNU gettext.
28435         * lib/fatal-signal.c: New file, from GNU gettext.
28436
28437 2003-10-05  Paul Eggert  <eggert@twinsun.com>
28438
28439         * README: Rework advice for preventing empty .o files.
28440         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
28441         not <sys/types.h>.
28442
28443 2003-10-04  Karl Berry  <karl@gnu.org>
28444
28445         * lib/argp*: update from libc.
28446
28447 2003-10-04  Karl Berry  <karl@gnu.org>
28448
28449         * config/config.{guess,sub}: update from config.
28450
28451 2003-10-02  Bruno Haible  <bruno@clisp.org>
28452
28453         * modules/lchown (Include): Add lchown.h.
28454         * modules/time_r (Include): Use "..." syntax.
28455         * modules/xgetdomainname (Include): Add xgetdomainname.h.
28456
28457 2003-10-01  Simon Josefsson  <jas@extundo.com>
28458
28459         * MODULES.html.sh (func_all_modules): Move gethostname from section
28460         'based on' to section 'lacking' POSIX:2001.
28461
28462 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
28463
28464         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
28465         to output mode on the same stream.
28466
28467 2003-09-29  Paul Eggert  <eggert@twinsun.com>
28468
28469         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
28470         Fix arg typo in previous patch.
28471
28472 2003-09-28  Jim Meyering  <jim@meyering.net>
28473
28474         * lib/error.c: Correct cpp indentation.
28475
28476 2003-09-27  Paul Eggert  <eggert@twinsun.com>
28477
28478         * modules/free: New file.
28479
28480 2003-09-27  Paul Eggert  <eggert@twinsun.com>
28481
28482         * m4/free.m4: New file.
28483
28484 2003-09-27  Paul Eggert  <eggert@twinsun.com>
28485
28486         * lib/minmax.h (MIN, MAX)
28487         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
28488         Omit the special code that used __typeof__, since we worry that
28489         it could be more trouble than it's worth.  See:
28490         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
28491         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
28492
28493         * lib/free.c: New file.
28494
28495 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
28496
28497         Trivial fixes to Makefile.am parts of module listings.
28498         * modules/strstr: Append strstr.h to lib_SOURCES.
28499         * modules/strcase: Likewise, for strcase.h.
28500
28501 2003-09-27  Karl Berry  <karl@gnu.org>
28502
28503         * config/mkinstalldirs: update from automake.
28504
28505 2003-09-26  Paul Eggert  <eggert@twinsun.com>
28506
28507         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
28508         (error_tail): Do not loop, reallocating temporary buffer, since
28509         the output cannot contain more wide characters than the input
28510         contains bytes, the size must be big enough already.  This avoids
28511         one potential size overflow calculation.  Check for size overflow
28512         when calculating temporary buffer size.  Free temporary buffer
28513         when done, if it was allocated with malloc; this plugs a memory
28514         leak.  Remove casts from void * to pointers, that are no longer
28515         needed now that we're assuming C89 or better.
28516
28517         Merge error changes from glibc.
28518
28519         * lib/error.c, error.h: Update copyright notice header to match glibc.
28520         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
28521         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
28522         Disable cancellation while printing error.
28523         * lib/error.h: Prepend __ to parameter names.
28524
28525 2003-09-26  Jim Meyering  <jim@meyering.net>
28526
28527         * lib/error.c (error_tail): Move some declarations
28528         into inner scope where the local variables are used.
28529
28530 2003-09-26  Bruno Haible  <bruno@clisp.org>
28531
28532         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
28533         stpncpy().
28534         Don't define stpncpy through config.h; it's now done through stpncpy.h.
28535
28536 2003-09-26  Bruno Haible  <bruno@clisp.org>
28537
28538         * lib/stpncpy.h (gnu_stpncpy): New declaration.
28539         (stpncpy): Define as alias for gnu_stpncpy.
28540         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
28541
28542 2003-09-25  Simon Josefsson  <jas@extundo.com>
28543
28544         * lib/xgetdomainname.h: New file.
28545         * lib/xgetdomainname.c: New file.
28546
28547 2003-09-25  Simon Josefsson  <jas@extundo.com>
28548             Bruno Haible  <bruno@clisp.org>
28549
28550         * modules/getdomainname: New file.
28551         * modules/xgetdomainname: New file.
28552         * MODULES.html.sh (func_all_modules): Add getdomainname,
28553         xgetdomainname.
28554
28555 2003-09-25  Simon Josefsson  <jas@extundo.com>
28556             Bruno Haible  <bruno@clisp.org>
28557
28558         * m4/getdomainname.m4: New file.
28559
28560 2003-09-25  Simon Josefsson  <jas@extundo.com>
28561             Bruno Haible  <bruno@clisp.org>
28562
28563         * lib/getdomainname.h: New file.
28564         * lib/getdomainname.c: New file.
28565
28566 2003-09-25  Karl Berry  <karl@gnu.org>
28567
28568         * lib/argp-fmtstream.c, argp-help.c: update from libc.
28569
28570 2003-09-25  Karl Berry  <karl@gnu.org>
28571
28572         * config/install-sh: update from automake.
28573
28574 2003-09-25  Bruno Haible  <bruno@clisp.org>
28575
28576         * modules/version-etc-2: New file, from modules/version-etc with
28577         modifications.
28578         * MODULES.html.sh (func_all_modules): Add version-etc-2.
28579
28580 2003-09-25  Bruno Haible  <bruno@clisp.org>
28581
28582         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
28583         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
28584
28585 2003-09-24  Simon Josefsson  <jas@extundo.com>
28586
28587         * modules/xgethostname: Add xgethostname.h.
28588
28589 2003-09-24  Paul Eggert  <eggert@twinsun.com>
28590
28591         * lib/linebuffer.c (freebuffer): Don't free the argument, just
28592         the buffer associated with the argument.  Bug reported by
28593         Simon Josefsson.
28594
28595 2003-09-24  Paul Eggert  <eggert@twinsun.com>
28596
28597         * README: Document assumptions that 'int' is at least 32 bits
28598         wide, that integer arithmetic is 2's complement without overflow,
28599         that there are no holes in integer values, that adding sizes of
28600         two nonoverlapping objects can't overflow, and that all-bits-zero
28601         yields scalar zero.  Fix spelling and capitalization typos.
28602
28603 2003-09-19  Karl Berry  <karl@gnu.org>
28604
28605         * lib/argp.h: update from libc.
28606
28607 2003-09-17  Paul Eggert  <eggert@twinsun.com>
28608
28609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
28610         to avoid spurious warnings like "AC_RUN_IFELSE was called before
28611         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
28612
28613 2003-09-17  Paul Eggert  <eggert@twinsun.com>
28614
28615         * gnulib-tool: Use "test -h", not "test -L", for portability
28616         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
28617         (tags_regexp): Remove, since \| doesn't conform to POSIX.
28618         (sed_extract_prog): Issue s commands one-by-one, rather than
28619         using \| in one s command.
28620
28621 2003-09-16  Paul Eggert  <eggert@twinsun.com>
28622
28623         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
28624         input error, instead of returning NULL the next time we are called
28625         (and therefore losing track of errno).
28626
28627 2003-09-16  Bruno Haible  <bruno@clisp.org>
28628
28629         * gnulib-tool (func_create_testdir): Warn about duplicated
28630         dependencies.
28631
28632 2003-09-15  Paul Eggert  <eggert@twinsun.com>
28633
28634         * modules/argmatch, modules/fatal, modules/obstack,
28635         modules/xalloc, modules/xgethostname: Sort dependencies by
28636         importance, not alphabetically.
28637
28638 2003-09-15  Paul Eggert  <eggert@twinsun.com>
28639
28640         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
28641         fails, so that the caller gets the proper errno.
28642
28643         * lib/readutmp.c (read_utmp): Likewise.
28644         Check for fstat error.  Close stream and free storage
28645         when failing.
28646
28647 2003-09-14  Karl Berry  <karl@gnu.org>
28648
28649         * config/srclist.txt (strdup.c): disable for c89 changes.
28650
28651 2003-09-14  Jim Meyering  <jim@meyering.net>
28652
28653         * lib/getloadavg.c: Correct cpp indentation.
28654         * lib/strdup.c: Likewise.
28655         * lib/vasnprintf.c: Likewise.
28656
28657 2003-09-14  Bruno Haible  <bruno@clisp.org>
28658
28659         * modules/fwriteerror: New file.
28660         * MODULES.html.sh (func_all_modules): Add fwriteerror.
28661
28662 2003-09-14  Bruno Haible  <bruno@clisp.org>
28663
28664         * lib/fwriteerror.h: New file.
28665         * lib/fwriteerror.c: New file.
28666
28667 2003-09-12  Paul Eggert  <eggert@twinsun.com>
28668
28669         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
28670         modules/xgethostname, modules/xalloc: Depend on exit.
28671
28672 2003-09-12  Paul Eggert  <eggert@twinsun.com>
28673
28674         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
28675
28676         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
28677         and AC_MINIX, too, so that their extensions are available.
28678
28679         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
28680         This macro has been superseded by gl_BACKUPFILE.
28681
28682         More patches to assume C89 or better.
28683
28684         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
28685
28686         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
28687         unconditionally.
28688         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
28689         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
28690         Include <string.h>, <stdlib.h> unconditionally.
28691         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
28692         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
28693         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
28694         headers or for string.h.
28695         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
28696         or strtoul.
28697
28698         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
28699         headers.
28700         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
28701         * m4/userspec.m4 (gl_USERSPEC): Likewise.
28702         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
28703         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
28704         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
28705         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
28706         memcpy, memset.
28707         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
28708         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
28709         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
28710         strtol.
28711         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
28712         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
28713         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
28714         strtoul.
28715
28716 2003-09-12  Paul Eggert  <eggert@twinsun.com>
28717
28718         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
28719         * lib/obstack.c [!defined _LIBC]: Likewise.
28720         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
28721         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
28722         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
28723
28724         More changes to assume C89 or better.
28725
28726         * lib/error.c (error_tail): Assume vprintf.
28727
28728         * lib/argmatch.c (getenv): Remove decl.
28729         * lib/progreloc.c (get_full_program_name): Define via prototype.
28730         * lib/setenv.c (clearenv): Likewise.
28731         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
28732         needed.
28733         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
28734         (malloc, memcpy): Remove decls.
28735         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
28736         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
28737         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
28738         (memcpy): Remove macro.
28739         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
28740         (__P): Remove.  All uses removed.
28741         (PTR): Remove.  All uses changed to void *.
28742         (CHAR_BIT, NULL): Remove.
28743         (spaces, zeros, memset_space, memset_zero)
28744         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
28745         Remove.
28746         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
28747         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
28748         Define with prototype.
28749         Remove now-unnecessary prototype decl.
28750         (extra_args_spec): Assume ANSI C.  All uses changed.
28751         (extra_args_spec_iso): Remove.
28752         (my_strftime, emacs_strftimeu): Define via prototype.
28753         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
28754         unconditionally.
28755         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
28756         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
28757         (strtoul, strtol): Remove decls.
28758         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
28759         LONG_MAX): Remove.
28760         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
28761         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
28762         (LOCALE_PARAM_PROTO): New macro.
28763         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
28764         (INTERNAL (strtol), strtol): Define with a prototype.
28765         (PARAMS): Remove.  All uses removed.
28766         * lib/tempname.c: Include <string.h> unconditionally.
28767         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
28768         * lib/xgethostname.c (main): Define with a prototype.
28769         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
28770         Include <stdlib.h> unconditionally.
28771         (calloc, malloc, realloc, free): Remove decls.
28772         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
28773         Include <stdlib.h> unconditionally.  Sort include file names.
28774         (strtod): Remove.
28775         (xstrtod): Define with a prototype.
28776         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
28777         (strtol, strtoul): Remove decls.
28778
28779 2003-09-11  Paul Eggert  <eggert@twinsun.com>
28780
28781         More patches to assume C89 or better.
28782         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
28783         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
28784         string.h, memchr, STDC_HEADERS.
28785
28786 2003-09-11  Paul Eggert  <eggert@twinsun.com>
28787
28788         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
28789         Include <stdlib.h>, <string.h> unconditionally.
28790         Remove now-unnecessary cast to char *.
28791         * lib/strnlen.c: Include <string.h> unconditionally.
28792         * lib/yesno.c (yesno): Define with a prototype.
28793
28794 2003-09-11  Bruno Haible  <bruno@clisp.org>
28795
28796         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
28797
28798 2003-09-10  Jim Meyering  <jim@meyering.net>
28799
28800         * lib/error.c: Correct indentation of cpp directives.
28801
28802 2003-09-10  Bruno Haible  <bruno@clisp.org>
28803
28804         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
28805         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
28806         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
28807         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
28808         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
28809         <stdlib.h> and <string.h> checks.
28810         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
28811         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
28812
28813 2003-09-10  Bruno Haible  <bruno@clisp.org>
28814
28815         * lib/strcspn.c: Include <string.h> unconditionally.
28816         * lib/strpbrk.c: Include <string.h> unconditionally.
28817         * lib/strstr.c: Include <string.h> unconditionally.
28818         * lib/unicodeio.c: Include <string.h> unconditionally.
28819         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
28820         * lib/unsetenv.c: Likewise.
28821         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
28822         * lib/yesno.c: Include <stdlib.h> unconditionally.
28823         (rpmatch): Add prototype.
28824
28825 2003-09-09  Paul Eggert  <eggert@twinsun.com>
28826
28827         More patches to assume C89 or better.
28828         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
28829         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
28830         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
28831         or for string.h.
28832         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
28833         stdlib.h.
28834         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
28835         C headers.
28836         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
28837         string.h.
28838         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
28839         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
28840         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
28841         or for string.h.
28842         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
28843         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
28844         C headers.
28845         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
28846         memcpy.
28847         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
28848         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
28849         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
28850         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
28851         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
28852         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
28853         string.h, free.
28854         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
28855         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
28856         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
28857         C headers, or for string.h.
28858         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
28859         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
28860         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
28861         headers, memory.h, stdlib.h, string.h, strings.h.
28862         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
28863         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
28864         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
28865         strchr.
28866         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
28867         headers, memory.h, string.h.
28868         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
28869         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
28870         free.
28871         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
28872         headers.
28873         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
28874         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
28875         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
28876         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
28877         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
28878
28879 2003-09-09  Paul Eggert  <eggert@twinsun.com>
28880
28881         More K&R removal.
28882
28883         * lib/acosl.c (main): Use a prototype.
28884         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
28885         tanl.c: Likewise.
28886
28887         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
28888
28889         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
28890         (getopt, etopt_long, getopt_long_only, _getopt_internal)
28891         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
28892         with a prototype.
28893         * lib/getopt.c (const): Remove macro.
28894         Include <string.h> unconditionally.
28895         (my_index): Remove; all uses changed to strchr.
28896         (strlen): Remove decl.
28897         (exchange): Remove forward decl; no longer needed.
28898         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
28899         Define with prototype.
28900         * lib/getopt1.c (const): Remove macro.
28901         (getopt_long, getopt_long_only, main): Define with prototype.
28902
28903         * lib/getugroups.c: Include <string.h> unconditionally.
28904
28905         * lib/getusershell.c: Include <stdlib.h> unconditionally.
28906         (getusershell, setusershell, endusershell, readname, main):
28907         Define with prototypes.
28908
28909         * lib/group-member.c: Include group-member.h first.
28910         Include <stdlib.h> unconditionally.
28911
28912         * lib/hard-locale.c: Include hard-locale.h first.
28913         Include <stdlib.h>, <string.h> unconditionally.
28914
28915         * lib/hash.c (free, malloc): Remove decls.
28916         Include <stdlib.h> unconditionally.
28917
28918         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
28919         (getenv): Do not declare.
28920
28921         * lib/idcache.c: Include <string.h> unconditionally.
28922
28923         * lib/long-options.c: Include long-options.h first, to test interface.
28924         Include <stdlib.h> unconditionally.
28925
28926         * lib/makepath.c: Include makepath.h first, to test interface.
28927         Include <stdlib.h> and <string.h> unconditionally.
28928
28929         * lib/linebuffer.c: Include <stdlib.h>.
28930         (free): Remove decl.
28931
28932         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
28933         stddef.h. rpl_malloc returns void *, not char *.
28934         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
28935         prototype.
28936
28937         * lib/md5.h: Include <limits.h> unconditionally.
28938         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
28939         (__P): Remove; all uses removed.
28940         * lib/md5.c: Include "md5.h" first.
28941         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
28942         md5_buffer, md5_process_bytes, md5_process_block):
28943         Define with prototypes.
28944         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
28945         * lib/sha.c: Include "sha.h" first.
28946         Include <stdlib.h>, <string.h> unconditionally.
28947
28948         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
28949         * lib/memcmp.c (__ptr_t): Likewise.
28950         * lib/memrchr.c (__ptr_t): Likewise.
28951         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
28952         Include <string.h> unconditionally.
28953         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
28954         * lib/memchr.c: Include <stdlib.h> unconditionally.
28955         * lib/memchr.c (LONG_MAX): Remove.
28956         * lib/memrchr.c (LONG_MAX): Likewise.
28957         * lib/memchr.c (__memchr): Define via a prototype.
28958         * lib/memrchr.c (__memrchr): Likewise.
28959         * lib/memcmp.c (__P): Remove, and remove all uses.
28960         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
28961         Remove forward decls; no longer needed.
28962         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
28963         Use types required by C89 in prototype.
28964
28965         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
28966         * lib/savedir.c: Likewise.
28967         * lib/mkdir.c (free): Remove decl.
28968         * lib/rmdir.c (rmdir): Define with a prototype.
28969         * lib/savedir.c: Include savedir.h first, to test interface.
28970
28971         * lib/mktime.c (STDC_HEADERS): Remove.
28972         Include <stdlib.h>, <string.h> unconditionally.
28973
28974         * lib/modechange.c: Include <stdlib.h> unconditionally.
28975         (malloc): Remove decl.
28976
28977         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
28978         (free): Remove decl.
28979
28980         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
28981         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
28982         (This type really should be intptr_t, but that's a C99ism.)
28983         (_obstack_memcpy): Remove: all uses changed to memcpy.
28984         Include <string.h> unconditionally.
28985         (struct obstack): Assume __STDC__ for types of members
28986         chunkfun, freefun, extra_arg.
28987         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
28988         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
28989         obstack_begin, obstack_specify_allocation,
28990         obstack_specify_allocation_with_arg, obstack_chunkfun,
28991         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
28992         Remove unprototyped decls and the macros that use them.
28993         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
28994         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
28995         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
28996         (defined __STDC__ && __STDC__)]:
28997         Remove nonprototyped code.
28998         Include <stdlib.h> unconditionally.
28999         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
29000         _obstack_allocated_p, _obstack_free, obstack_free,
29001         _obstack_memory_used, print_and_abort):
29002         Define using prototypes.
29003         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
29004         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
29005         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
29006         obstack_next_free, obstack_object_size, obstack_room) [0]:
29007         Remove unused, unprototyped code.
29008
29009         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
29010
29011         * lib/physmem.c (physmem_total, physmem_available, main): Define
29012         with prototypes.
29013
29014         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
29015         (main): Define with a prototype.
29016
29017         * lib/posixver.c (getenv): Remove decl.
29018
29019         * lib/putenv.c (malloc): Returns void *, not char *.
29020         Include <string.h> unconditionally.
29021         (strchr, memcpy, NULL): Do not define.
29022
29023         * lib/readtokens.c: Include readtokens.h first, to test interface.
29024         Include <stdlib.h>, <string.h> unconditionally.
29025         (init_tokenbuffer): Define with a prototype.
29026
29027         * lib/regex.c (PARAMS): Remove.  All uses removed.
29028         All uses of _RE_ARGS removed, too.
29029         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
29030         unconditionally.
29031         (bzero): Assume memset exists.
29032         (memcmp, memcpy, NULL): Remove.
29033         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
29034         char, or assignments to local vars of type signed char.
29035         (init_syntax_once, PREFIX(extract_number_and_incr),
29036         PREFIX(print_partial_compiled_pattern),
29037         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
29038         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
29039         PREFIX(regex_grow_registers), PREFIX(regex_compile),
29040         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
29041         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
29042         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
29043         wcs_compile_range, byte_compile_range, truncate_wchar,
29044         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
29045         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
29046         count_mbs_length, wcs_re_match_2_internal,
29047         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
29048         PREFIX(alt_match_null_string_p),
29049         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
29050         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
29051         regfree, PREFIX(extract_number)): Define with prototype.  Remove
29052         now-unnecessary declaration, if any.
29053         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
29054         regcomp, regexec):
29055         Remove now-unnecessary casts among pointer types.
29056         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
29057
29058         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
29059         (free): Remove decl.
29060
29061         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
29062
29063         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
29064         (free): Remove decl.
29065
29066         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
29067         * lib/xgetcwd.c: Likewise.
29068
29069         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
29070         (free): Remove decl.
29071
29072         * lib/strchrnul.c (strchrnul): Define with a prototype.
29073         Fix bug: c_in was not converted to char before searching.
29074
29075         The following changes are not K&R related:
29076
29077         * lib/group-member.h: Include <sys/types.h>, so that this file is
29078         self-contained.
29079         * lib/makepath.h: Likewise.
29080
29081         * lib/getusershell.c (readname, default_index, line_size, readname):
29082         Use size_t, not int, for sizes.
29083         (readname): If the size overflows, report an error instead of
29084         looping forever.
29085
29086 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29087
29088         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
29089         libc.
29090
29091 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29092
29093         * README: New section: portability guidelines.
29094
29095 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
29096
29097         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
29098         C89 spec.
29099
29100 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
29101
29102         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
29103
29104 2003-09-08  Paul Eggert  <eggert@twinsun.com>
29105
29106         Assume C89 or better; remove K&R cruft.
29107         A few of these changes were first proposed by Derek Robert Price
29108         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
29109
29110         * lib/addext.c: Include <string.h> unconditionally.
29111         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
29112         Don't declare getenv or malloc.
29113
29114         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
29115         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
29116         (NULL): Remove.
29117         (find_stack_direction, alloca): Use prototypes.
29118
29119         * lib/atexit.c (atexit): Define using a prototype.
29120
29121         * lib/basename.c, dirname.c, stripslash.c:
29122         Include <string.h> unconditionally.
29123
29124         * lib/bcopy.c: Include <stddef.h>.
29125         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
29126
29127         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
29128
29129         * lib/error.h (error, error_at_line, error_print_progname)
29130         [! (defined (__STDC__) && __STDC__)]: Remove decls.
29131         * lib/error.c: Include error.h first, to check interface.
29132         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
29133         (VA_START): Remove; all uses changeed to va_start.
29134         (exit, strerror): Remove decls.
29135         (error_print_progname): Prototype uncondionally.
29136         Don't include <errno.h>; no longer needed.
29137         (private_strerror): Remove.
29138         (error_tail): Always define.
29139         (error, error_at_line): Assume C89 or better; always use prototypes.
29140         * lib/fatal.c: Include "fatal.h" first, to test interface.
29141         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
29142         (VA_START): Remove; all uses changed to va_start.
29143         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
29144         this case.
29145         (exit): Remove decl.
29146         (fatal): Prototype unconditionally.  Assume va_start works.
29147         Abort at end, to pacify gcc.
29148
29149         * lib/euidaccess.c (main): Define with a prototype.
29150
29151         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
29152
29153         * lib/exitfail.c: Include <stdlib.h> unconditionally.
29154
29155         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
29156         prototypes.
29157         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
29158         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
29159         (getenv): Remove decl.
29160         (fnmatch): Define using a prototype.
29161         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
29162         (FCT): Define using a prototype.
29163
29164         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
29165
29166         * lib/gethostname.c: Include <stddef.h>.
29167         (gethostname): Define with prototype.  Length is size_t, not int.
29168
29169 2003-09-08  Paul Eggert  <eggert@twinsun.com>
29170
29171         Assume C89 or better; remove K&R cruft.
29172         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
29173         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
29174         string.h, getenv, malloc.
29175         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
29176         headers.
29177         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
29178         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
29179         do not check for strerror.
29180         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
29181         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
29182         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
29183         do not check for doprnt or vprintf.
29184         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
29185         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
29186
29187 2003-09-08  Paul Eggert  <eggert@twinsun.com>
29188
29189         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
29190         getversion.c should have been removed then, but was accidentally
29191         preserved.
29192
29193         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
29194         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
29195
29196 2003-09-08  Karl Berry  <karl@gnu.org>
29197
29198         * config/config.sub, config.guess, srclistvars.sh: update from savannah
29199                 config, forget about prep.
29200
29201         * config/depcomp, missing: update from automake.
29202
29203 2003-09-07  Paul Eggert  <eggert@twinsun.com>
29204
29205         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
29206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
29207
29208 2003-09-07  Paul Eggert  <eggert@twinsun.com>
29209
29210         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
29211         copy_tm_result.  Bug reported by Simon Josefsson in
29212         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
29213
29214 2003-09-06  Paul Eggert  <eggert@twinsun.com>
29215
29216         * m4/time_r.m4: New file.
29217         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
29218         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
29219         is. Check for timegm declaration.
29220         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
29221         Do not check for gmtime_r.
29222         Replace mktime if __mktime_internal does not exist and if mktime
29223         hasn't been replaced already.
29224
29225 2003-09-06  Paul Eggert  <eggert@twinsun.com>
29226
29227         * lib/time_r.c, lib/time_r.h: New files.
29228
29229         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
29230         __localtime_r.
29231         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
29232         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
29233
29234         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
29235         __gmtime_r.
29236         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
29237         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
29238         Include <time_r.h>.
29239
29240         * lib/timegm.c: Switch to glibc implementation, with the following
29241         changes:
29242         [defined HAVE_CONFIG_H]: Include <config.h>.
29243         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
29244         (__mktime_internal) [!defined _LIBC]: New decl.
29245         (__gmtime_r) [!defined _LIBC]: New macro and function.
29246         (timegm): Use a prototype, since gnulib assumes C89.
29247         Do not bother declaring tmp to be const, as it's not really usefu.
29248         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
29249         (timegm): Declare only if HAVE_DECL_TIMEGM.
29250
29251 2003-09-06  Paul Eggert  <eggert@twinsun.com>
29252
29253         * MODULES.html.sh (func_all_modules): Add time_r.
29254         * modules/time_r: New file.
29255         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
29256         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
29257
29258 2003-09-03  Paul Eggert  <eggert@twinsun.com>
29259
29260         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
29261         Bug reported by Lute Kamstra in
29262         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
29263
29264         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
29265         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
29266         course with correspondingly smaller numbers for tomorrow and
29267         yesterday.  From Tadayoshi Funaba.  Originally installed into
29268         sh-utils on 1999-08-07, but the patch got lost (I guess during the
29269         coreutils merge?).
29270
29271 2003-08-31  Simon Josefsson  <jas@extundo.com>
29272
29273         * modules/timegm: New file.
29274         * MODULES.html.sh (func_all_modules): Add timegm.
29275
29276 2003-08-31  Simon Josefsson  <jas@extundo.com>
29277
29278         * m4/timegm.m4: New file.
29279
29280 2003-08-31  Simon Josefsson  <jas@extundo.com>
29281
29282         * lib/timegm.h: New file.
29283         * lib/timegm.c: New file.  Based on
29284         wget-1.8.2/src/http.c:mktime_from_utc.
29285
29286 2003-08-31  Karl Berry  <karl@gnu.org>
29287
29288         * lib/argp.h: update from libc.
29289
29290 2003-08-28  Bruno Haible  <bruno@clisp.org>
29291
29292         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
29293         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
29294         followed by '#define fnmatch fnmatch_posix' gives an error.
29295
29296 2003-08-28  Bruno Haible  <bruno@clisp.org>
29297
29298         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
29299         warning on QNX, which defines O_BINARY to 000000.
29300
29301 2003-08-27  Jim Meyering  <jim@meyering.net>
29302
29303         * m4/mkstemp.m4: Require that the system mkstemp be able to create
29304         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
29305         would fail after 32.  Reported by Danny Levinson.  Details here:
29306         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
29307
29308 2003-08-24  Bruno Haible  <bruno@clisp.org>
29309
29310         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
29311         MSVC7 <stdio.h> is included later.
29312
29313 2003-08-22  Simon Josefsson  <jas@extundo.com>
29314
29315         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
29316
29317 2003-08-20  Karl Berry  <karl@gnu.org>
29318
29319         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
29320
29321 2003-08-20  Bruno Haible  <bruno@clisp.org>
29322
29323         * modules/progname: New file.
29324         * MODULES.html.sh (func_all_modules): Add progname.
29325
29326 2003-08-20  Bruno Haible  <bruno@clisp.org>
29327
29328         * lib/progname.h: New file, from GNU gettext.
29329         * lib/progname.c: New file, from GNU gettext.
29330         * lib/progreloc.c: New file, from GNU gettext.
29331
29332 2003-08-19  Jim Meyering  <jim@meyering.net>
29333
29334         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
29335         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
29336
29337 2003-08-19  Bruno Haible  <bruno@clisp.org>
29338
29339         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
29340         more.
29341
29342 2003-08-19  Bruno Haible  <bruno@clisp.org>
29343
29344         * lib/xstrdup.c: Assume <string.h> exists.
29345
29346 2003-08-18  Paul Eggert  <eggert@twinsun.com>
29347
29348         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
29349         in makefile rules.
29350
29351 2003-08-18  Jim Meyering  <jim@meyering.net>
29352
29353         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
29354         * m4/lib-ld.m4: Likewise.
29355
29356 2003-08-18  Jim Meyering  <jim@meyering.net>
29357
29358         * lib/setenv.h: Indent nested cpp directive.
29359         * lib/vasnprintf.c: Remove trailing blanks.
29360
29361 2003-08-17  Simon Josefsson  <jas@extundo.com>
29362
29363         * modules/xstrndup: New file.
29364         * MODULES.html.sh (func_all_modules): Add xstrndup.
29365
29366 2003-08-17  Simon Josefsson  <jas@extundo.com>
29367
29368         * modules/argp: Fix autoconf macro name. Add more dependencies.
29369
29370 2003-08-17  Simon Josefsson  <jas@extundo.com>
29371
29372         * m4/xstrndup.m4: New file.
29373
29374 2003-08-17  Simon Josefsson  <jas@extundo.com>
29375
29376         * m4/argp.m4: New file.
29377
29378 2003-08-17  Simon Josefsson  <jas@extundo.com>
29379             Bruno Haible  <bruno@clisp.org>
29380
29381         * lib/xstrndup.h: New file.
29382         * lib/xstrndup.c: New file.
29383
29384 2003-08-17  Bruno Haible  <bruno@clisp.org>
29385
29386         * modules/strndup (Files, Include): Add lib/strndup.h.
29387
29388 2003-08-17  Bruno Haible  <bruno@clisp.org>
29389
29390         * modules/euidaccess (Files): Add lib/euidaccess.h.
29391
29392 2003-08-17  Bruno Haible  <bruno@clisp.org>
29393
29394         * lib/strndup.h: New file.
29395
29396 2003-08-17  Bruno Haible  <bruno@clisp.org>
29397
29398         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
29399         like AC_GNU_SOURCE.
29400         * modules/extensions (configure.ac): Comment out the invocation of
29401         gl_USE_SYSTEM_EXTENSIONS.
29402
29403 2003-08-16  Paul Eggert  <eggert@twinsun.com>
29404
29405         Merges from coreutils, etc.
29406         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
29407         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
29408         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
29409         fixing a typo.
29410         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
29411         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
29412
29413 2003-08-16  Paul Eggert  <eggert@twinsun.com>
29414
29415         Document merge from coreutils.
29416         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
29417         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
29418         * modules/utime: Add m4/utimes-null.m4.
29419
29420 2003-08-16  Paul Eggert  <eggert@twinsun.com>
29421
29422         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
29423         space, undoing this 2003-08-12 change:
29424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
29425
29426 2003-08-16  Paul Eggert  <eggert@twinsun.com>
29427
29428         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
29429         strtoul.c from libc, undoing this 2003-08-12 change:
29430         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
29431
29432 2003-08-16  Jim Meyering  <jim@meyering.net>
29433
29434         Merges from coreutils.
29435         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
29436         prefix.  Adjust cache variables similarly.  Create 500 rather than
29437         just 300 files, to exercise bug on Darwin6.5, too.
29438         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
29439         $missing_dir.
29440         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
29441         AM_SYS_POSIX_TERMIOS.
29442         Reported by mkc@mathdogs.com.
29443         Also change use of $am_cv_sys_posix_termios
29444         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
29445         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
29446         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
29447         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
29448         in /proc/mounts until it finds one with matching device number.  This
29449         is unnecessary when the FILE argument *is* a mount point.  No stat call
29450         is necessary in that case.  So, disable the statvfs-testing code on
29451         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
29452         as RedHat bug# 84846.
29453         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
29454         to 1MB, so as not to render systems with no stack size limit (e.g.,
29455         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
29456         Include <unistd.h>.  On some systems,
29457         it is required for the definition of _SC_PAGESIZE.
29458
29459 2003-08-16  Jim Meyering  <jim@meyering.net>
29460
29461         Merge from coreutils.
29462         * lib/xstrtoimax.c: #else #if -> #elif.
29463         * lib/xstrtoumax.c: Likewise.
29464
29465 2003-08-16  Jim Meyering  <jim@meyering.net>
29466
29467         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
29468         * m4/utimes.m4: Removed.
29469         * m4/utimes-null.m4: Renamed from utimes.m4.
29470
29471         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
29472         to 1MB, so as not to render systems with no stack size limit (e.g.,
29473         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
29474         Include <unistd.h>.  On some systems,
29475         it is required for the definition of _SC_PAGESIZE.
29476
29477 2003-08-16  Jim Meyering  <jim@meyering.net>
29478         and Paul Eggert  <eggert@cs.ucla.edu>
29479
29480         Merges from coreutils, etc.
29481
29482         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
29483         using the latest version from cvs.  This avoids problems with #line
29484         directives using a vendor (Sun) compiler.
29485         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
29486         Don't set GETGROUPS_LIB here; now it's
29487         done via getgroups.m4's wrapper function.
29488         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
29489         rather than just in sh-util/configure.in, so that the
29490         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
29491         same.
29492         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
29493         AC_FUNC_GETLOADAVG where to find getloadavg.c.
29494         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
29495         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
29496         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
29497         Remove code that is now done by the newly-required macros.
29498         Append $(EXEEXT) to DF_PROG.
29499         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
29500         Do not invoke or require the following here,
29501         since prereq.m4 or some gnulib .m4 now does this for us:
29502         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
29503         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
29504         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
29505         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
29506         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
29507         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
29508         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
29509         AC_FUNC_OBSTACK.
29510         Do not replace the following functions, as this is now the job
29511         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
29512         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
29513         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
29514         atexit getpass, strdup, getpagesize.
29515         Replace 'raise'.
29516         Do not check for the following functions, as this is now the job
29517         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
29518         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
29519         setregid.
29520         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
29521         Check for sys/sysctl.h.
29522         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
29523         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
29524         of checking for ssize_t ourselves.
29525
29526         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
29527         Require every macro that gnulib/modules/* suggests for us.
29528         (jm_PREREQ_ADDEXT): New macro.
29529         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
29530         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
29531
29532         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
29533         (gl_PHYSMEM): Use it.
29534         Also check for `table' function.
29535         Check for new headers and functions.
29536         Add check for sys/sysmp.h.
29537         With suggestions from Kaveh Ghazi.
29538         Ignore headers that are present but cannot be compiled.  This
29539         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
29540         C 5.4.
29541
29542 2003-08-15  Paul Eggert  <eggert@twinsun.com>
29543
29544         Document merge from coreutils.
29545         * modules/userspec: Depend on posixver.
29546         * modules/strftime: Depend on tzset.
29547
29548 2003-08-15  Paul Eggert  <eggert@twinsun.com>
29549
29550         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
29551         rather than tab, after '#' in shell-script copyright notices.
29552         Suggested by Bruno Haible.
29553
29554 2003-08-15  Paul Eggert  <eggert@twinsun.com>
29555
29556         * config/srclist-update: Use three spaces, rather than tab, after '#'
29557         in shell-script copyright notices.  Suggested by Bruno Haible.
29558         Remove unnecessary parenthesization in regular expression.
29559
29560 2003-08-15  Jim Meyering  <jim@meyering.net>
29561
29562         Merge from coreutils.
29563         * lib/xgethostname.c: Include <stdlib.h>.
29564         (xghostname): Don't exit for anything other than memory-related
29565         failure; just return NULL.
29566         * lib/userspec.c: Include "posixver.h".
29567         (parse_user_spec): Accept `.' as a separator only
29568         in pre-POSIX-200112 mode.
29569         * lib/strtoimax.c: Use #elif rather than #else #if.
29570         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
29571         Remove function, now that we can rely on a working tzset function.
29572         [!_LIBC]: Ensure that the required autoconf test has been run.
29573         [!defined _NL_CURRENT && HAVE_STRFTIME]:
29574         Use underlying_strftime for %r.
29575         * lib/sha.c: Merge in some clean-up and optimization changes from
29576         glibc.
29577         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
29578         Ensure that it is a multiple of 64.
29579         Rearrange loop exit tests so as to avoid performing an
29580         additional fread after encountering an error or EOF.
29581         * lib/realloc.c: Update copyright date.
29582
29583 2003-08-15  Jim Meyering  <jim@meyering.net>
29584         and Paul Eggert  <eggert@twinsun.com>
29585
29586         Merge from coreutils.
29587         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
29588         member but strut utmpx does not.  Needed for AIX 4.3.3.
29589         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
29590
29591 2003-08-15  Jim Meyering  <jim@meyering.net>
29592         and Paul Eggert  <eggert@cs.ucla.edu>
29593
29594         Merges from coreutils, etc.
29595         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
29596         Require gl_FUNC_TZSET_CLOBBER.
29597         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
29598         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
29599         members.
29600
29601 2003-08-14  Paul Eggert  <eggert@twinsun.com>
29602
29603         Help the merge from coreutils.
29604         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
29605         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
29606         * m4/tzset.m4: Use it too.
29607
29608 2003-08-14  Paul Eggert  <eggert@twinsun.com>
29609
29610         * modules/tzset: New file.
29611
29612 2003-08-14  Jim Meyering  <jim@meyering.net>
29613
29614         Merges from coreutils.
29615         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
29616         variable names, rather than @FNMATCH_H@.
29617         * modules/alloca: Likewise for $(ALLOCA_H).
29618
29619         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
29620         the three copies of the literal target, `fnmatch.h'.
29621         * modules/alloca (alloca.h): Likewise.
29622
29623 2003-08-14  Jim Meyering  <jim@meyering.net>
29624
29625         Merge from coreutils.
29626         * m4/tzset.m4: New file.
29627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
29628         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
29629         otherwise, AIX 5.1 systems would end up using the latter.
29630         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
29631         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
29632         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
29633         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
29634
29635 2003-08-14  Jim Meyering  <jim@meyering.net>
29636
29637         Merge from coreutils.
29638         * lib/obstack.h: Whitespace changes.
29639         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
29640         and xcalloc return values.
29641         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
29642         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
29643         hang on OSF/1 5.1 for DIR on both local and remote file systems.
29644         Reported by (and fix confirmed by) Nelson H. F. Beebe.
29645         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
29646         error from mntctl.
29647         Use mntctl's return value to drive the entry-processing loop, since
29648         we can't rely on the value of the vmt_length member in the last
29649         entry.  On some systems doing so could result in exhausting
29650         virtual memory.  Based in part on a patch from Mike Jetzer.
29651
29652 2003-08-14  Jim Meyering  <jim@meyering.net>
29653         and Paul Eggert  <eggert@twinsun.com>
29654
29655         Merges from coreutils, plus other fixes.
29656         * lib/physmem.c: Merge in portability changes from gcc/libiberty
29657         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
29658         for credits and details.  Thanks to Kaveh Ghazi for helping
29659         to keep these files in sync.
29660         (ARRAY_SIZE): Define it.
29661         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
29662         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
29663         (memcasecmp): Don't assume size_t fits in unsigned int.
29664         Remove casts and duplicate code.
29665         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
29666         (memcpy): Remove definition.
29667         Merge in some clean-up and optimization changes from glibc.
29668         [BLOCKSIZE]: Move definition to top of file.
29669         Ensure that it is a multiple of 64.
29670         Rearrange loop exit tests so as to avoid performing an
29671         additional fread after encountering an error or EOF.
29672         * lib/md5.h (md5_uintptr): Define.
29673         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
29674         return to the initial working directory.  Preserve errno
29675         for caller.
29676         * lib/idcache.c: Include "xalloc.h".
29677         (xmalloc, xrealloc): Remove decls.
29678         (getuser): Remove casts no longer required in C89.
29679         * lib/human.c: Include stdio.h, for sprintf.
29680         * lib/group-member.c: Include "xalloc.h".
29681         (xmalloc, xrealloc): Remove decls.
29682         (get_group_info): Remove casts no longer required in C89.
29683         * lib/getusershell.c (readname): Remove casts no longer required in
29684         C89.
29685         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
29686         * lib/getline.c: Whitespace fix, from coreutils.
29687
29688 2003-08-13  Paul Eggert  <eggert@twinsun.com>
29689
29690         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
29691         Check for isascii.
29692
29693         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
29694         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
29695         Undo previous (whitespace-only) change.
29696
29697 2003-08-13  Paul Eggert  <eggert@twinsun.com>
29698
29699         * lib/exclude.c: Include <ctype.h>
29700         (IN_CTYPE_DOMAIN): New macro.
29701         (is_space): New fn.
29702         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
29703         and empty lines.
29704
29705         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
29706         Undo previous (whitespace-only) change.
29707
29708 2003-08-13  Paul Eggert  <eggert@twinsun.com>
29709
29710         * config/srclist-update: Change update back to the old behavior,
29711         leaving whitespace alone.  Use one 'sed' command rather than a
29712         pipeline.
29713         (fixlicense): Now a variable, not a function.
29714         (remove_trailing_blanks): Remove.
29715         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
29716         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
29717         Undo previous (whitespace-only) change.
29718
29719 2003-08-12  Paul Eggert  <eggert@twinsun.com>
29720
29721         Merge from coreutils.
29722         * modules/euidaccess: Add lib_SOURCES, include for new
29723         file euidaccess.h
29724
29725 2003-08-12  Paul Eggert  <eggert@twinsun.com>
29726
29727         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
29728         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
29729         Normalize leading white space and remove trailing white space.
29730
29731         Merge from coreutils
29732         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
29733
29734         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
29735         0.12.1.  These files are now being upgraded automatically by
29736         ../config/srclist-update.
29737
29738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
29739
29740         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
29741         Normalize leading white space and remove trailing white space.
29742         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
29743         notice, as per ../config/srclist-update.
29744
29745         Merge from coreutils.
29746         * lib/euidaccess.h: New file.
29747         * lib/euidaccess.c: Include it.
29748         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
29749         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
29750         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
29751
29752 2003-08-12  Paul Eggert  <eggert@twinsun.com>
29753
29754         * config/srclist-update: Add copyright notice.
29755         (remove_id_lines, remove_trailing_blanks): New constants.
29756         (fixfile): Use them to normalize spacing a bit in copied files.
29757         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
29758         Normalize leading white space and remove trailing white space.
29759
29760         * config/texinfo.tex: Sync with texinfo.
29761
29762         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
29763         strtoul.c from libc, to merge coreutils whitespace changes.
29764
29765         * config/srclist.txt: Get the following m4 files from gettext:
29766         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
29767         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
29768         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
29769         wint_t.m4.
29770
29771 2003-08-12  Karl Berry  <karl@gnu.org>
29772
29773         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
29774         been made.
29775
29776 2003-08-11  Paul Eggert  <eggert@twinsun.com>
29777
29778         * modules/gnu-source, m4/gnu-source.m4:
29779         Remove; we're assuming Autoconf 2.54 or later now.
29780         Suggested by Bruno Haible.
29781         * MODULES.html.sh (func_all_modules): Remove gnu-source.
29782
29783 2003-08-11  Bruno Haible  <bruno@clisp.org>
29784
29785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
29786
29787 2003-08-11  Bruno Haible  <bruno@clisp.org>
29788
29789         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
29790         (vasnprintf): Use it instead of wcslen.
29791
29792 2003-08-11  Bruno Haible  <bruno@clisp.org>
29793
29794         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
29795         value to ensure that _Bool promotes to int. Use #define for _Bool when
29796         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
29797
29798 2003-08-10  Karl Berry  <karl@gnu.org>
29799
29800         * lib/regex.h: update from libc (whitespace fix).
29801
29802 2003-08-09  Paul Eggert  <eggert@twinsun.com>
29803
29804         Merge some files from coreutils.  These changes were
29805         originally made by Jim Meyering.
29806         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
29807         many older Unixes require this.
29808         * lib/alloca.c (alloca): Remove cast to argument of free;
29809         no longer needed in C89.
29810         * lib/alloca_.h, regex.h: Fix white space to match
29811         what GNU indent does.
29812
29813 2003-08-09  Paul Eggert  <eggert@twinsun.com>
29814
29815         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
29816         apparently Emacs's Unicode mode got confused before my 2003-08-05
29817         checkin.
29818
29819 2003-08-08  Paul Eggert  <eggert@twinsun.com>
29820
29821         * m4/extensions.m4: New file.
29822         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
29823         Require gl_USE_SYSTEM_EXTENSIONS.
29824         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
29825         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
29826
29827 2003-08-08  Paul Eggert  <eggert@twinsun.com>
29828
29829         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
29830         * modules/extensions, modules/gnu-source: New files.
29831         * modules/timespec, modules/unlocked-io: Depend on extensions.
29832
29833 2003-08-07  Paul Eggert  <eggert@twinsun.com>
29834
29835         * modules/restrict: New file.
29836         * MODULES.html.sh (func_all_modules): Add restrict.
29837         * modules/regex: Depend on restrict.
29838
29839 2003-08-07  Paul Eggert  <eggert@twinsun.com>
29840
29841         * m4/restrict.m4: New file.
29842         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
29843
29844 2003-08-07  Bruno Haible  <bruno@clisp.org>
29845
29846         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
29847         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
29848
29849 2003-08-07  Bruno Haible  <bruno@clisp.org>
29850
29851         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
29852         makes the module 'getndelim2' compatible with the module 'getline'.
29853
29854 2003-08-05  Paul Eggert  <eggert@twinsun.com>
29855
29856         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
29857         byte with "\201" to avoid glitches when editing that source file
29858         with multi-gnome-terminal.
29859
29860 2003-08-05  Paul Eggert  <eggert@twinsun.com>
29861
29862         * lib/bumpalloc.h: Remove.
29863
29864 2003-08-05  Paul Eggert  <eggert@twinsun.com>
29865
29866         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
29867         * modules/bumpalloc: Remove.
29868
29869 2003-08-04  Paul Eggert  <eggert@twinsun.com>
29870
29871         * lib/getloadavg.c: Change copyright notice and spacing to conform to
29872         GNU coding style.
29873
29874         Merge from coreutils.
29875         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
29876         1. From glibc.
29877         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
29878         from Karl Berry, implemented by Jim Meyering.
29879         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
29880         from Dmitry V. Levin.
29881         Remove anachronistic cast of xrealloc.
29882         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
29883         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
29884         type. Otherwise, it wouldn't compile with at least /bin/cc on
29885         ymp-cray-unicos9.0.2.X.
29886         Combine two mostly-identical uses of alloca into one.
29887         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
29888
29889 2003-08-04  Dave Love  <d.love@dl.ac.uk>
29890
29891         [From Emacs.]
29892
29893         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
29894         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
29895         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
29896         obsolete NLIST_NAME_UNION.
29897         [__GNU__]: Undef BSD and FSCALE.
29898         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
29899
29900 2003-08-03  Paul Eggert  <eggert@twinsun.com>
29901
29902         * lib/stdbool_.h (_Bool): Make it signed char, instead of
29903         an enum type, so that it's guaranteed to promote to int.  See:
29904         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
29905
29906 2003-08-03  Karl Berry  <karl@gnu.org>
29907
29908         * config/depcomp: update from automake.
29909
29910 2003-07-31  Paul Eggert  <eggert@twinsun.com>
29911
29912         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
29913         (strerror): Don't assume that a printable int fits in 14 bytes.
29914
29915 2003-07-31  Bruno Haible  <bruno@clisp.org>
29916
29917         * modules/getpass-gnu: New file.
29918         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
29919
29920 2003-07-31  Bruno Haible  <bruno@clisp.org>
29921
29922         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
29923
29924 2003-07-24  Karl Berry  <karl@gnu.org>
29925
29926         * config/missing: update from automake.
29927
29928 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
29929             Bruno Haible  <bruno@clisp.org>
29930
29931         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
29932         * lib/getline.c (getline, getdelim): Likewise.
29933         Remove _GNU_SOURCE define; now it's defined in config.h through
29934         m4/getline.m4.
29935
29936 2003-07-23  Karl Berry  <karl@gnu.org>
29937
29938         * config/config.sub: update from prep.
29939
29940 2003-07-22  Paul Eggert  <eggert@twinsun.com>
29941
29942         * modules/xalloc (Depends-on): Add exitfail.
29943         * modules/xmemcoll: Likewise.
29944
29945 2003-07-22  Paul Eggert  <eggert@twinsun.com>
29946
29947         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
29948         over-parenthesization in macros.
29949
29950         Sync with coreutils.
29951
29952         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
29953         required by C99.
29954
29955         Use `exit_failure' for xalloc and xmemcoll instead of their own
29956         private exit-failure variables.
29957         * lib/xalloc.h (xalloc_exit_failure): Remove.
29958         * lib/xmalloc.c: Likewise.  Include exitfail.h.
29959         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
29960         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
29961         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
29962         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
29963
29964 2003-07-20  Jim Meyering  <jim@meyering.net>
29965
29966         * modules/closeout (Depends-on): Add exitfail.
29967         Suggestion from Bruno Haible.
29968
29969 2003-07-19  Karl Berry  <karl@gnu.org>
29970
29971         * config/config.sub: update from prep.
29972
29973 2003-07-18  Paul Eggert  <eggert@twinsun.com>
29974
29975         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
29976         Remove.
29977         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
29978         to test that it can stand by itself.  Include "exitfail.h".
29979         Clients should set exit_failure instead.
29980         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
29981
29982 2003-07-18  Bruno Haible  <bruno@clisp.org>
29983
29984         * modules/getndelim2: New file.
29985         * modules/getline: Share files with module getndelim2.
29986         * modules/getnline: Depend on getndelim2 instead of sharing files with
29987         it. Add getnline.c to lib_SOURCES.
29988         * MODULES.html.sh (func_all_modules): Add getndelim2.
29989
29990 2003-07-18  Bruno Haible  <bruno@clisp.org>
29991
29992         * m4/getndelim2.m4: New file.
29993         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
29994         invoke gl_PREREQ_GETNDELIM2.
29995         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
29996         gl_PREREQ_GETNDELIM2.
29997         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
29998         gl_GETNDELIM2.
29999
30000 2003-07-18  Bruno Haible  <bruno@clisp.org>
30001
30002         * lib/getndelim2.h: New file.
30003         * lib/getndelim2.c: Make into a module of its own. Include config.h,
30004         getndelim2.h.
30005         (getndelim2): Make non-static. Change return type to ssize_t.
30006         * lib/getline.h: Change argument names.
30007         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
30008         * lib/getnline.c: Include getndelim2.h.
30009
30010 2003-07-18  Andreas Schwab  <schwab@suse.de>
30011
30012         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
30013
30014 2003-07-17  Karl Berry  <karl@gnu.org>
30015
30016         * config/config.sub: update from prep.
30017
30018 2003-07-17  Bruno Haible  <bruno@clisp.org>
30019
30020         * modules/getnline: New file.
30021         * modules/getline: Add lib/getndelim2.c to source file list.
30022         * MODULES.html.sh (func_all_modules): Add getnline.
30023
30024 2003-07-17  Bruno Haible  <bruno@clisp.org>
30025
30026         * m4/getnline.m4: New file.
30027
30028 2003-07-17  Bruno Haible  <bruno@clisp.org>
30029
30030         * m4/Makefile.am.in: Remove file.
30031         * m4/Makefile.am: Remove file.
30032         * m4/Makefile.in: Remove file.
30033
30034 2003-07-17  Bruno Haible  <bruno@clisp.org>
30035
30036         * lib/getnline.h: New file.
30037         * lib/getnline.c: New file.
30038         * lib/getndelim2.c: New file, extracted from getline.c.
30039         (getndelim2): Renamed from getdelim2, with added nmax argument.
30040         * lib/getline.c: Include getndelim2.c.
30041         (getdelim2): Moved out to getndelim2.c.
30042         (getline, getdelim): Update.
30043
30044 2003-07-17  Bruno Haible  <bruno@clisp.org>
30045
30046         * lib/Makefile.am: Remove file.
30047         * lib/Makefile.in: Remove file.
30048
30049 2003-07-17  Bruno Haible  <bruno@clisp.org>
30050
30051         * configure.in: Remove file.
30052         * Makefile.in: Remove file.
30053
30054 2003-07-17  Bruno Haible  <bruno@clisp.org>
30055
30056         * MODULES.html.sh: Put the </BODY> right before </HTML>.
30057
30058 2003-07-16  Karl Berry  <karl@gnu.org>
30059
30060         * config/srclist-update: was running fixlicense twice, which caused
30061                 texinfo.tex to be nullified for some reason.  Simplify,
30062                 $gplsrc is no longer needed as far as I can see?
30063
30064 2003-07-16  Jim Meyering  <jim@meyering.net>
30065
30066         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
30067
30068 2003-07-15  Paul Eggert  <eggert@twinsun.com>
30069
30070         * config/srclist.txt: Get the following files from gettext-runtime/intl
30071         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
30072         ref-del.sin.  From Bruno Haible.
30073         * config/srclist-update (fixfile): Change grep pattern again, since the
30074         previous fix didn't work (there was another trailing $).  Use
30075         '[$]' to escape the $s.
30076
30077 2003-07-15  Karl Berry  <karl@gnu.org>
30078
30079         * lib/vasnprintf.c: update from gettext.
30080
30081 2003-07-15  Karl Berry  <karl@gnu.org>
30082
30083         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
30084         gets expanded when surrounded by '$'.
30085
30086 2003-07-15  Jim Meyering  <jim@meyering.net>
30087
30088         * modules/save-cwd: Don't depend on error.  From Derek Price.
30089
30090 2003-07-15  Jim Meyering  <jim@meyering.net>
30091
30092         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
30093
30094 2003-07-14  Simon Josefsson  <jas@extundo.com>
30095
30096         * modules/mempcpy: New file.
30097         * MODULES.html.sh (func_all_modules): Add mempcpy.
30098
30099 2003-07-14  Simon Josefsson  <jas@extundo.com>
30100
30101         * m4/mempcpy.m4: New file.
30102
30103 2003-07-14  Simon Josefsson  <jas@extundo.com>
30104
30105         * lib/mempcpy.h: New file.
30106         * lib/mempcpy.c: New file.
30107
30108 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30109
30110         * modules/getdate, modules/posixtm: Depend on mktime.
30111
30112 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30113
30114         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
30115         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
30116         unicodeio.c, unicodeio.h, unlocked-io.h:
30117         Switch from LGPL to GPL.
30118
30119 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30120
30121         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
30122         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
30123         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
30124         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
30125         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
30126         updated automatically by ../config/srclist-update.  This changes
30127         their license from LPGL to GPL.
30128
30129 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30130
30131         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
30132         assumed to refer to the root of the most recent stable gettext version.
30133         * config/srclistvars.sh: Add defaults for eggert.
30134         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
30135         Match "This program" as well as "The program".  This is needed
30136         for gettext.
30137
30138 2003-07-14  Jim Meyering  <jim@meyering.net>
30139
30140         Don't emit diagnostics.  Let callers do that.
30141         * lib/save-cwd.c: Don't include "error.h".
30142         (save_cwd): Don't call error.  Ensure that errno is valid
30143         when returning nonzero.
30144
30145         * lib/save-cwd.h (restore_cwd): Update prototype.
30146         * lib/save-cwd.c (restore_cwd): Remove two parameters.
30147         Simplify.  Don't call error upon failure.  Let callers do that.
30148         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
30149         when auditing is enabled.  But don't bother updating the #if.
30150
30151 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
30152
30153         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
30154         it breaks C++ compilation.
30155         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
30156
30157 2003-07-10  Simon Josefsson  <jas@extundo.com>
30158
30159         * modules/strchrnul (Makefile.am): Add strchrnul.h.
30160
30161 2003-07-10  Jim Meyering  <jim@meyering.net>
30162
30163         * m4/clock_time.m4: Remove trailing blank.
30164         * m4/intmax_t.m4: Likewise.
30165
30166 2003-07-10  Jim Meyering  <jim@meyering.net>
30167
30168         * lib/vasnprintf.c: Remove trailing blanks.
30169         Make cpp indentation consistent.
30170
30171 2003-07-09  Paul Eggert  <eggert@twinsun.com>
30172
30173         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
30174         posixver.c, strftime.c, strnlen.c, strverscmp.c:
30175         Switch from LGPL to GPL.
30176
30177 2003-07-09  Paul Eggert  <eggert@twinsun.com>
30178
30179         * config/srclist.txt: Sort sublists.  Add
30180         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
30181         that differ from gnulib for one reason or another; we'd like this list
30182         to be smaller but for now let's document what we have.
30183
30184 2003-07-08  Paul Eggert  <eggert@twinsun.com>
30185
30186         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
30187         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
30188         and sweeter "eval x=$x".
30189         * config/srclist.txt: Get lib/argp* from glibc.
30190
30191 2003-07-07  Paul Eggert  <eggert@twinsun.com>
30192
30193         * lib/mktime.c: Fix some boundary cases and remove need for floating
30194         point.
30195
30196         Issue a compile-time diagnostic if time_t is floating point, or if
30197         two's complement arithmetic is not in effect, or if arithmetic
30198         right shift does not propagate the sign.  These assumptions were
30199         all in the original code but they weren't checked.
30200
30201         (TIME_T_MIDPOINT, verify): New macros.
30202         (__isleap): Remove; it has integer overflow problems.
30203         (leapyear): New function, without those problems.
30204         (ydhms_tm_diff): Remove; splitting into two parts.
30205         (ydhms_diff): New function, containing the arithmetic part of
30206         the old ydhms_tm_diff function.  Issue a compile-time
30207         diagnostic if we are not using C99 integer division.
30208         Avoid casts when possible.
30209         (guess_time_tm): New function, containing the checking part of
30210         the old ydhms_tm_diff function.  Return the new value, rather than
30211         the difference between it and the old.  Accept a new argument T
30212         so that *T specifies the old value.  Check for overflow in the result.
30213
30214         (__mktime_internal): Use a time_t offset, not a long int offset.
30215         This undoes the 2003-06-04 change, which is no longer needed now
30216         that we have better overflow checking.
30217         (localtime_offset): Likewise.
30218
30219         (__mktime_internal): Avoid harmful overflow on hosts where time_t
30220         and long are 64-bit but int is only 32-bit.
30221         (ydhms_diff): Use long int to store year1 and yday1.
30222         Issue a compile-time diagnostic if long int is not wide enough.
30223
30224         (__mktime_internal): Use long int to store adjusted year and yday.
30225         Use plain C rather than preprocessor commands, if that doesn't
30226         affect efficiency.
30227         Check for overflow (and try to repair) after each probe
30228         rather than checking only at the very end.  This avoids some bugs
30229         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
30230         does not equal GMT offset at maximum time).
30231         Use integer to check for overflow rather than floating point; this
30232         is more portable to non-IEEE hosts, and is a tad faster.
30233         When we detect that we are oscillating between two values,
30234         don't check whether tm_isdst has the requested value, since
30235         we already know the answer.  When tm_isdst has the wrong value,
30236         use a different heuristic to find the right one, based on the
30237         extreme values actually observed in practice in tz2003a,
30238         rather than the (overly optimistic) "previous 3 calendar quarters".
30239
30240         (not_equal_tm, print_tm, check_result): Use "const T" rather than
30241         "T const" to accommodate glibc style.
30242         (check_result): Use less-confusing report format.  "long" -> "long int.
30243         (main): Likewise.
30244         Don't loop if the iteration overflows time_t.
30245         Allow a negative step in the iteration.
30246
30247 2003-07-06  Karl Berry  <karl@gnu.org>
30248
30249         * config/depcomp: update from automake.
30250         * config/config.sub: update from prep.
30251
30252 2003-07-03  Karl Berry  <karl@gnu.org>
30253
30254         * config/config.guess: update from prep.
30255
30256 2003-07-01  Paul Eggert  <eggert@twinsun.com>
30257
30258         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
30259         xreadlink.c now includes it unconditionally.
30260
30261 2003-07-01  Paul Eggert  <eggert@twinsun.com>
30262
30263         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
30264         having it depend on HAVE_SYS_TYPES_H.
30265
30266 2003-07-01  Bruno Haible  <bruno@clisp.org>
30267
30268         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
30269         <sys/types.h> should be sufficient.
30270         Reported by Paul Eggert.
30271
30272 2003-06-26  Karl Berry  <karl@gnu.org>
30273
30274         * config/depcomp: update from automake.
30275
30276 2003-06-26  Bruno Haible  <bruno@clisp.org>
30277
30278         * modules/human: Depend on module stdbool.
30279
30280 2003-06-25  Bruno Haible  <bruno@clisp.org>
30281
30282         * modules/readlink: New file.
30283         * modules/xreadlink: Depend on it.
30284         * MODULES.html.sh (func_all_modules): Add readlink.
30285
30286 2003-06-25  Bruno Haible  <bruno@clisp.org>
30287
30288         * m4/readlink.m4: New file.
30289
30290 2003-06-25  Bruno Haible  <bruno@clisp.org>
30291
30292         * lib/readlink.c: New file.
30293
30294 2003-06-22  Karl Berry  <karl@gnu.org>
30295
30296         * config/srclist.txt: update mkinstalldirs from automake.
30297         * config/mkinstalldirs: update.
30298
30299 2003-06-22  Bruno Haible  <bruno@clisp.org>
30300
30301         Portability to mingw32.
30302         * m4/ssize_t.m4: New file, from GNU gettext.
30303         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
30304         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
30305
30306 2003-06-22  Bruno Haible  <bruno@clisp.org>
30307
30308         * modules/safe-read: Add m4/ssize_t.m4.
30309         * modules/xreadlink: Add m4/ssize_t.m4.
30310
30311 2003-06-20  Bruno Haible  <bruno@clisp.org>
30312
30313         Assume C89, so PARAMS isn't needed.
30314         * lib/unicodeio.h (PARAMS): Remove.
30315         * lib/unicodeio.c: Don't use PARAMS.
30316
30317 2003-06-18  Karl Berry  <karl@gnu.org>
30318
30319         * config/config.{guess,sub}: update from prep.
30320
30321 2003-06-18  Jim Meyering  <jim@meyering.net>
30322
30323         Merge changes from coreutils.
30324         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
30325         Remove explicit declarations of xmalloc and realloc.
30326         Include xalloc.h.
30327         (read_utmp): Remove anachronistic cast of xmalloc.
30328
30329 2003-06-17  Paul Eggert  <eggert@twinsun.com>
30330
30331         Assume C89, so PARAMS isn't needed.
30332         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
30333         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
30334         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
30335         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
30336         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
30337         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
30338         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
30339         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
30340         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
30341         lib/xstrtod.h, lib/xstrtol.h: Likewise.
30342         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
30343         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
30344         no longer needed. Anyway, config.h should always be included before any
30345         other file.
30346
30347 2003-06-11  Simon Josefsson  <jas@extundo.com>
30348
30349         * modules/sysexits: New file.
30350         * MODULES.html.sh (func_all_modules): Add sysexits.
30351
30352 2003-06-11  Simon Josefsson  <jas@extundo.com>
30353
30354         * lib/sysexit_.h: New file.
30355
30356 2003-06-11  Derek Price  <derek@ximbiot.com>
30357
30358         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
30359         necessary.
30360
30361 2003-06-11  Bruno Haible  <bruno@clisp.org>
30362
30363         * m4/sysexits.m4: New file.
30364
30365 2003-06-10  Simon Josefsson  <jas@extundo.com>
30366
30367         * lib/argp.h: New file, from glibc.
30368         * lib/argp-ba.c: New file, from glibc.
30369         * lib/argp-eexst.c: New file, from glibc.
30370         * lib/argp-fmtstream.c: New file, from glibc.
30371         * lib/argp-fmtstream.h: New file, from glibc.
30372         * lib/argp-fs-xinl.c: New file, from glibc.
30373         * lib/argp-help.c: New file, from glibc.
30374         * lib/argp-namefrob.h: New file, from glibc.
30375         * lib/argp-parse.c: New file, from glibc.
30376         * lib/argp-pv.c: New file, from glibc.
30377         * lib/argp-pvh.c: New file, from glibc.
30378         * lib/argp-xinl.c: New file, from glibc.
30379
30380 2003-06-10  Simon Josefsson  <jas@extundo.com>
30381
30382         * modules/strchrnul: New file.
30383
30384 2003-06-10  Simon Josefsson  <jas@extundo.com>
30385
30386         * modules/argp: New file.
30387
30388 2003-06-10  Simon Josefsson  <jas@extundo.com>
30389
30390         * m4/strchrnul.m4: New file.
30391
30392 2003-06-10  Simon Josefsson  <jas@extundo.com>
30393
30394         * lib/strchrnul.h: New file.
30395         * lib/strchrnul.c: New file.
30396
30397 2003-06-10  Bruno Haible  <bruno@clisp.org>
30398
30399         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
30400
30401 2003-06-07  Karl Berry  <karl@gnu.org>
30402
30403         * config/config.{guess,sub}: update from prep.
30404
30405 2003-06-07  Jim Meyering  <jim@meyering.net>
30406
30407         * modules/strtod: Use $(...) notation, not @...@ for
30408         AC_REPLACE'd variables.
30409         * modules/localcharset: Likewise.
30410
30411 2003-06-07  Jim Meyering  <jim@meyering.net>
30412
30413         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
30414         in place of my name in the copyright comment.
30415         Remove definition and uses of __P.
30416
30417         From coreutils.
30418         * lib/stat.c: Don't declare xmalloc explicitly.
30419         Instead, include "xalloc.h".
30420         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
30421         xrealloc, and xcalloc return values.
30422         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
30423         Improve comment.
30424         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
30425
30426 2003-06-07  Bruno Haible  <bruno@clisp.org>
30427
30428         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
30429         avoid AC_CONFIG_LINKS.
30430         * modules/fnmatch (Makefile.am): Use explicit creation rule for
30431         fnmatch.h, to avoid AC_CONFIG_LINKS.
30432         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
30433
30434 2003-06-07  Bruno Haible  <bruno@clisp.org>
30435
30436         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
30437         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
30438         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
30439         directory.
30440         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
30441         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
30442         directory.
30443
30444 2003-06-06  Jim Meyering  <jim@meyering.net>
30445
30446         Merge from coreutils.
30447         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
30448         Consolidate declarations and initializations of *_base* locals.
30449
30450         Merge from coreutils.
30451         This avoids a core dump on systems without GNU putenv,
30452         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
30453         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
30454         (unsetenv): New static function, from GNU libc.
30455         (rpl_putenv): Use it.
30456
30457         * lib/modechange.c: Remove trailing blanks.
30458
30459         Merge from coreutils.
30460         * lib/fsusage.c: Remove declaration of statfs.
30461         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
30462
30463         * lib/posixtm.c: Include <stdbool.h> unconditionally.
30464
30465 2003-06-06  Jim Meyering  <jim@meyering.net>
30466
30467         * lib/stdbool_.h: Renamed from stdbool.h.in.
30468
30469 2003-06-06  Jim Meyering  <jim@meyering.net>
30470             Bruno Haible  <bruno@clisp.org>
30471
30472         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
30473         Adjust Makefile.am snippet not to redirect directly to target.
30474         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
30475
30476 2003-06-05  Paul Eggert  <eggert@twinsun.com>
30477
30478         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
30479         mismatch, look in future quarters as well as past.  This fixes a
30480         bug when processing fall-backwards gaps immediately after a long
30481         period of daylight-saving time.
30482
30483         * lib/mktime.c: Assume freestanding C89 or better.
30484         (HAVE_LIMITS_H): Remove.  Assume it's 1.
30485         (__P): Remove; not used.
30486         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
30487         (mktime, not_equal_tm, print_tm, check_result,
30488         main): Use prototypes.  Use const * where appropriate.
30489         (main): Fix typo in testing code that uncovered by above changes.
30490         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
30491
30492 2003-06-04  Paul Eggert  <eggert@twinsun.com>
30493
30494         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
30495         locale.h, localeconv.  This merges changes from coreutils.
30496
30497         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
30498         It can be removed after the next Autoconf is released.
30499         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
30500         needed.
30501
30502 2003-06-04  Paul Eggert  <eggert@twinsun.com>
30503
30504         * lib/mktime.c: Fix Debian bug 177940
30505         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
30506         (localtime_offset): Now long int, not time_t, because we want it
30507         to be guaranteed to be signed.  All uses changed.
30508         (__mktime_internal): If overflow would occur when adding offset,
30509         don't add it.
30510
30511         Merge 'human' changes from coreutils.  Rewrite to support
30512         locale-specific notations like thousands separators.
30513         * lib/human.c: Simplify authorship notice.
30514         Include human.h immediately after config.h.
30515         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
30516         <limits.h>: Do not include, since human.h does.
30517         (SIZE_MAX, UINTMAX_MAX): New macros.
30518         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
30519         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
30520         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
30521         (power_letter): Renamed from suffixes.
30522         (generate_suffix_backwards): Remove.
30523         (adjust_value): Now takes int style (because of human.h changes)
30524         and long double value (for greater precision on some platforms).
30525         (group_number): New function.
30526         (human_readable): Use it.  Use integer options, not enum.
30527         Put the options before the sizes in the arg list.
30528         Support all the new options.
30529         The old human_readable function has been removed;
30530         use inttostr.h instead.
30531         (human_readable, default_block_size, humblock):
30532         Use uintmax_t, not int, for block sizes.
30533         (human_readable_inexact, block_size_types): Remove.
30534         (block_size_opts): New constant.
30535         (human_options): Renamed from human_block_size, with new signature
30536         that allows block sizes up to UINTMAX_MAX.  All callers changed.
30537         * lib/human.h: Add copyright and authorship notice.
30538         Include <limits.h> and <stdbool.h> unconditionally.
30539         (PARAMS): Remove.  All uses removed.
30540         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
30541         (enum human_inexact_style): Remove tag; now a nameless enum.
30542         (human_floor, human_ceiling, human_round_to_even): Now have
30543         values 2, 0, 1 rather than -1, 1, 0.
30544         (human_group_digits, human_suppress_point_zero, human_autoscale,
30545         human_base_1024, human_SI, human_B): New constants.
30546         (human_readable_inexact, human_block_size): Remove.
30547         (human_readable): Size args are now uintmax_t, not int.
30548         (human_options): New decl.
30549
30550         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
30551         unnecessary now that we assume C89 or better.  This change
30552         imported from coreutils.
30553
30554         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
30555         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
30556         in the 2003-05-30 sync from glibc.
30557
30558         .h files should stand alone, but we shouldn't include <sys/types.h>
30559         if we can get away with just <stddef.h>.
30560
30561         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
30562         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
30563         rather than <sys/types.h>, as we merely need size_t.
30564         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
30565         to get size_t.
30566         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
30567         Include <stdio.h>, to get FILE.
30568         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
30569         memcasecmp.h has included <stddef.h> and all we need is size_t.
30570         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
30571         our interface, instead of including <sys/types.h>
30572
30573 2003-06-04  Paul Eggert  <eggert@twinsun.com>
30574
30575         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
30576         now, as glibc mktime is buggy on non-glibc systems.
30577
30578 2003-06-03  Karl Berry  <karl@gnu.org>
30579
30580         * config/config.sub: update from prep.
30581
30582 2003-06-02  Paul Eggert  <eggert@twinsun.com>
30583
30584         [from coreutils]
30585         Fix some minor time-related bugs with POSIX time arguments.
30586         Some valid time stamps were being rejected (notably -1, and
30587         time stamps before 1900 on 64-bit hosts).  And some invalid
30588         time stamps were being accepted, e.g. September 31.
30589
30590         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
30591         that we can return (time_t) -1 successfully.
30592         * lib/posixtm.c: Likewise.
30593         [HAVE_STDBOOL_H]: Include <stdbool.h>.
30594         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
30595         (t): Remove static var.
30596         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
30597         of static var.  All uses changed.
30598         (year): Do not reject years before 1900; they can occur with
30599         64-bit time_t.
30600         (posix_time_parse): Do not check for out-of-range components;
30601         that is now the caller's responsibility, since our checks were
30602         only approximations.
30603         (posixtime): Use mktime to check for out-of-range components,
30604         since it knows them exactly.
30605         If mktime returns (time_t) -1, check whether an error actually occurred
30606         by invoking localtime on -1.
30607         (main) [TEST_POSIXTIME]: Check for input data errors, and report
30608         posixtime failures better.
30609         Improve the test data (in comments only).
30610
30611 2003-06-02  Karl Berry  <karl@gnu.org>
30612
30613         * config/mkinstalldirs (version): new variable.
30614         (--version): new option.
30615         (usage): improve message.
30616
30617 2003-05-30  Karl Berry  <karl@gnu.org>
30618
30619         * lib/mktime.c: update from libc.
30620
30621 2003-05-30  Bruno Haible  <bruno@clisp.org>
30622
30623         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
30624         * config/config.rpath: Upgrade to gettext-0.12.1.
30625
30626 2003-05-30  Bruno Haible  <bruno@clisp.org>
30627
30628         * m4/gettext.m4: Upgrade to gettext-0.12.1.
30629         * m4/nls.m4: New file, from gettext-0.12.1.
30630         * m4/po.m4: New file, from gettext-0.12.1.
30631         * m4/progtest.m4: Upgrade to gettext-0.12.1.
30632
30633 2003-05-30  Bruno Haible  <bruno@clisp.org>
30634
30635         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
30636         * lib/localcharset.h: Likewise.
30637         * lib/localcharset.c: Likewise.
30638
30639 2003-05-29  Karl Berry  <karl@gnu.org>
30640
30641         * config/config.rpath: update from gettext.
30642
30643 2003-05-28  Paul Eggert  <eggert@twinsun.com>
30644
30645         Assume the headers required for C89 freestanding compilers.
30646         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
30647         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
30648         * m4/human.m4 (gl_HUMAN): Likewise.
30649         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
30650         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
30651         * m4/userspec.m4 (gl_USERSPEC): Likewise.
30652         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
30653         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
30654         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
30655
30656 2003-05-28  Paul Eggert  <eggert@twinsun.com>
30657
30658         Assume the headers required for C89 freestanding compilers.
30659         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
30660         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
30661         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
30662         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
30663         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
30664         define, since <limits.h> is guaranteed to do that.
30665         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
30666         * lib/exclude.c: Include <stdbool.h> unconditionally.
30667         * lib/tempname.c: Include <stddef.h> unconditionally.
30668         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
30669         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
30670         <stddef.h> does that.
30671         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
30672         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
30673         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
30674         needed.
30675         * lib/xstrtol.c: Likewise.
30676         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
30677         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
30678
30679         * lib/addext.c (addext): Use assignment rather than cast, to avoid
30680         warnings on some platforms.
30681
30682         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
30683         arbitrarily.
30684
30685 2003-05-26  Jim Meyering  <jim@meyering.net>
30686
30687         Merge in a change from coreutils:
30688         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
30689         that is guaranteed to be `no'.  Use `no_such_member' to indicate
30690         that condition, rather than `-1' which is slightly misleading.
30691         Change the name of the cache variable to have the gl_ prefix.
30692         Prompted by a patch from Richard Dawe for DJGPP.
30693
30694 2003-05-24  Karl Berry  <karl@gnu.org>
30695
30696         * config/config.guess: update from prep.
30697
30698 2003-05-22  Karl Berry  <karl@gnu.org>
30699
30700         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
30701
30702 2003-05-20  Karl Berry  <karl@gnu.org>
30703
30704         * config/config.guess: update from prep.
30705
30706 2003-05-18  Karl Berry  <karl@gnu.org>
30707
30708         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
30709         might actually be set by the user.
30710
30711         * config/depcomp, install-sh, mdate-sh: update from automake.
30712
30713 2003-05-17  Bruno Haible  <bruno@clisp.org>
30714
30715         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
30716         invalid expansion for AC_EGREP_CPP.
30717         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
30718         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
30719         Suggested by Akim Demaille <akim@epita.fr> in
30720         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
30721
30722 2003-05-12  Jim Meyering  <jim@meyering.net>
30723
30724         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
30725         the space-padded-by-default conversion specifiers, %e, %k, %l.
30726
30727 2003-05-12  Bruno Haible  <bruno@clisp.org>
30728
30729         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
30730         the string is longer than 4 KB.
30731
30732 2003-05-11  Karl Berry  <karl@gnu.org>
30733
30734         * config/config.{guess,sub}: update from prep.
30735
30736 2003-05-09  Bruno Haible  <bruno@clisp.org>
30737
30738         * modules/error: Add m4/strerror_r.m4 to file list.
30739
30740 2003-05-03  Bruno Haible  <bruno@clisp.org>
30741
30742         Upgrade to Unicode-4.0.
30743         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
30744         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
30745         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
30746         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
30747         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
30748         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
30749         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
30750         Change width of U+E0100..U+E01EF from 1 to 0.
30751
30752 2003-04-25  Jim Meyering  <jim@meyering.net>
30753
30754         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
30755         of type size_t, not int.
30756
30757 2003-04-25  Bruno Haible  <bruno@clisp.org>
30758
30759         * lib/copy-file.c: Include <stddef.h>, for size_t.
30760
30761 2003-04-21  Paul Eggert  <eggert@twinsun.com>
30762
30763         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
30764         code which expansion is under static control.  Patch imported from
30765         Akim Demaille's patch to Bison; see
30766         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
30767
30768 2003-04-14  Bruno Haible  <bruno@clisp.org>
30769
30770         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
30771
30772 2003-04-11  Jim Meyering  <jim@meyering.net>
30773
30774         Merge changes from Coreutils.
30775
30776         2003-03-22  Jim Meyering  <jim@meyering.net>
30777
30778         * lib/strftime.c (widen): Cast alloca return value to proper type.
30779
30780         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
30781
30782         From GNU libc.
30783         * lib/strftime.c (my_strftime): Handle very large width
30784         specifications for numeric values correctly.  Improve checks for
30785         overflow.
30786
30787         2003-01-19  Jim Meyering  <jim@meyering.net>
30788
30789         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
30790         definitions.
30791         (nl_get_alt_digit) [! defined my_strftime]: Define.
30792         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
30793         _nl_get_alt_digit and _nl_get_walt_digit.
30794
30795         * lib/strftime.c (my_strftime): Merge in locale-related changes from
30796         libc. These changes have no effect outside of _LIBC.
30797
30798 2003-04-10  Bruno Haible  <bruno@clisp.org>
30799
30800         * modules/findprog: New file.
30801         * MODULES.html.sh (func_all_modules): Add it.
30802
30803 2003-04-10  Bruno Haible  <bruno@clisp.org>
30804
30805         * m4/findprog.m4: New file.
30806         * m4/eaccess.m4: New file.
30807
30808 2003-04-10  Bruno Haible  <bruno@clisp.org>
30809
30810         * lib/findprog.h: New file, from GNU gettext.
30811         * lib/findprog.c: New file, from GNU gettext.
30812
30813 2003-04-05  Jim Meyering  <jim@meyering.net>
30814
30815         Merge changes from Coreutils.
30816
30817         * lib/exclude.h (PARAMS): Remove definition and uses.
30818         * lib/exclude.c: Remove uses of `PARAMS'.
30819
30820         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
30821         Add test-cases for DOS filenames. Declare program_name.
30822         (main): Set up program_name.  Patch by Rich Dawe.
30823
30824         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
30825         error from mntctl.
30826         Use mntctl's return value to drive the entry-processing loop, since
30827         we can't rely on the value of the vmt_length member in the last
30828         entry.  On some systems doing so could result in exhausting
30829         virtual memory.  Based in part on a patch from Mike Jetzer.
30830
30831 2003-04-04  Bruno Haible  <bruno@clisp.org>
30832
30833         * modules/linebreak: New file.
30834         * MODULES.html.sh (func_all_modules): Add it.
30835
30836 2003-04-04  Bruno Haible  <bruno@clisp.org>
30837
30838         * m4/linebreak.m4: New file.
30839
30840 2003-04-04  Bruno Haible  <bruno@clisp.org>
30841
30842         * lib/linebreak.h: New file, from GNU gettext.
30843         * lib/linebreak.c: New file, from GNU gettext with slight
30844         modifications.
30845         * lib/lbrkprop.h: New file, from GNU gettext.
30846
30847 2003-04-03  Bruno Haible  <bruno@clisp.org>
30848
30849         * modules/utf8-ucs4: New file.
30850         * modules/utf16-ucs4: New file.
30851         * modules/ucs4-utf8: New file.
30852         * modules/ucs4-utf16: New file.
30853         * MODULES.html.sh (func_all_modules): Add them.
30854
30855 2003-04-03  Bruno Haible  <bruno@clisp.org>
30856
30857         * m4/utf-ucs4.m4: New file.
30858         * m4/ucs4-utf.m4: New file.
30859
30860 2003-04-03  Bruno Haible  <bruno@clisp.org>
30861
30862         * lib/utf8-ucs4.h: New file, from GNU gettext.
30863         * lib/utf16-ucs4.h: New file, from GNU gettext.
30864         * lib/ucs4-utf8.h: New file, from GNU gettext.
30865         * lib/ucs4-utf16.h: New file, from GNU gettext.
30866
30867 2003-04-02  Bruno Haible  <bruno@clisp.org>
30868
30869         * modules/binary-io: New file.
30870         * MODULES.html.sh (func_all_modules): Add it.
30871
30872 2003-04-02  Bruno Haible  <bruno@clisp.org>
30873
30874         * lib/binary-io.h: New file, from GNU gettext.
30875
30876 2003-04-01  Bruno Haible  <bruno@clisp.org>
30877
30878         * modules/pathname: New file.
30879         * MODULES.html.sh (func_all_modules): Add it.
30880
30881 2003-04-01  Bruno Haible  <bruno@clisp.org>
30882
30883         * lib/pathname.h: New file, from GNU gettext.
30884         * lib/concatpath.c: New file, from GNU gettext.
30885
30886 2003-03-30  Bruno Haible  <bruno@clisp.org>
30887
30888         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
30889
30890 2003-03-30  Bruno Haible  <bruno@clisp.org>
30891
30892         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
30893         function chown() doesn't exist.
30894
30895 2003-03-28  Bruno Haible  <bruno@clisp.org>
30896
30897         * modules/copy-file: New file.
30898         * MODULES.html.sh (func_all_modules): Add it.
30899
30900 2003-03-28  Bruno Haible  <bruno@clisp.org>
30901
30902         * m4/copy-file.m4: New file.
30903
30904 2003-03-28  Bruno Haible  <bruno@clisp.org>
30905
30906         * lib/copy-file.h: New file, from GNU gettext.
30907         * lib/copy-file.c: New file, from GNU gettext.
30908
30909 2003-03-18  Jim Meyering  <jim@meyering.net>
30910
30911         * lib/quote.c (quote_n): Fix typo in comment.
30912
30913 2003-03-18  Bruno Haible  <bruno@clisp.org>
30914
30915         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
30916         checking.
30917         * m4/onceonly_2_57.m4: Likewise.
30918
30919 2003-03-17  Bruno Haible  <bruno@clisp.org>
30920
30921         * m4/onceonly.m4: Require autoconf 2.54 or newer.
30922         (m4_quote): Remove macro.
30923         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
30924
30925 2003-03-14  Jim Meyering  <jim@meyering.net>
30926
30927         Merge changes from Coreutils.
30928         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
30929         to be const, in order to avoid warnings.
30930         (obstack_room): Likewise.
30931         (obstack_empty_p): Likewise.
30932
30933 2003-03-14  Bruno Haible  <bruno@clisp.org>
30934
30935         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
30936         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
30937
30938 2003-03-13  Paul Eggert  <eggert@twinsun.com>
30939
30940         Merge changes from Bison.
30941         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
30942         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
30943         when compiling Bison 1.875's `bitset bset = obstack_alloc
30944         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
30945         * lib/hash.c: Include <stdbool.h> unconditionally.
30946
30947 2003-03-13  Paul Eggert  <eggert@twinsun.com>
30948
30949         * m4/onceonly.m4 (m4_quote): New macro.
30950         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
30951         Quote AC_FOREACH variable-expansions properly.
30952
30953 2003-03-13  Paul Eggert  <eggert@twinsun.com>
30954
30955         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
30956
30957 2003-03-09  Paul Eggert  <eggert@twinsun.com>
30958
30959         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
30960         Reported by Bruce Becker; see:
30961         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
30962
30963 2003-03-03  Paul Eggert  <eggert@twinsun.com>
30964             Bruno Haible  <bruno@clisp.org>
30965
30966         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
30967         Reported by John Hughes, see
30968         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
30969
30970 2003-02-20  Bruno Haible  <bruno@clisp.org>
30971
30972         * MODULES.html.sh (func_all_modules): Add poll.
30973
30974 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
30975
30976         * modules/poll: New file.
30977
30978 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
30979
30980         * lib/poll_.h: New file.
30981         * lib/poll.c: New file.
30982
30983 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
30984
30985         * m4/poll.m4: New file.
30986
30987 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
30988
30989         * modules/mathl: New file.
30990
30991 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
30992
30993         * lib/mathl.h: New file.
30994         * lib/acosl.c: New file.
30995         * lib/asinl.c: New file.
30996         * lib/atanl.c: New file.
30997         * lib/ceill.c: New file.
30998         * lib/cosl.c: New file.
30999         * lib/expl.c: New file.
31000         * lib/floorl.c: New file.
31001         * lib/frexpl.c: New file.
31002         * lib/ldexpl.c: New file.
31003         * lib/logl.c: New file.
31004         * lib/sincosl.c: New file.
31005         * lib/sinl.c: New file.
31006         * lib/sqrtl.c: New file.
31007         * lib/tanl.c: New file.
31008         * lib/trigl.c: New file.
31009         * lib/trigl.h: New file.
31010
31011 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
31012
31013         * m4/mathl.m4: New file.
31014
31015 2003-02-18  Bruno Haible  <bruno@clisp.org>
31016
31017         * MODULES.html.sh (func_all_modules): Add mathl.
31018
31019 2003-02-17  Bruno Haible  <bruno@clisp.org>
31020
31021         * modules/mkdtemp: New module.
31022         * MODULES.html.sh (func_all_modules): Add it.
31023
31024 2003-02-17  Bruno Haible  <bruno@clisp.org>
31025
31026         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
31027
31028 2003-02-17  Bruno Haible  <bruno@clisp.org>
31029
31030         * lib/mkdtemp.h: New file, from GNU gettext.
31031         * lib/mkdtemp.c: New file, from GNU gettext.
31032
31033 2003-02-02  Jim Meyering  <jim@meyering.net>
31034
31035         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
31036         e.g. glibc-2.2.93.
31037
31038 2003-01-31  Bruno Haible  <bruno@clisp.org>
31039
31040         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
31041         'rpl_rename'.
31042         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
31043         'rpl_strnlen'.
31044         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
31045         'rpl_strtod'.
31046         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
31047         'rpl_utime'.
31048
31049 2003-01-31  Bruno Haible  <bruno@clisp.org>
31050
31051         * lib/rename.c: #undef rename before defining rpl_rename.
31052         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
31053
31054 2003-01-30  Bruno Haible  <bruno@clisp.org>
31055
31056         * modules/vasnprintf, modules/vasprintf: New modules.
31057         * MODULES.html.sh (func_all_modules): Add them.
31058
31059 2003-01-30  Bruno Haible  <bruno@clisp.org>
31060
31061         * m4/signed.m4: New file, from GNU gettext.
31062         * m4/longdouble.m4: New file, from GNU gettext.
31063         * m4/wchar_t.m4: New file, from GNU gettext.
31064         * m4/wint_t.m4: New file, from GNU gettext.
31065         * m4/vasnprintf.m4: New file.
31066         * m4/vasprintf.m4: New file.
31067
31068 2003-01-30  Bruno Haible  <bruno@clisp.org>
31069
31070         * lib/printf-args.h: New file, from GNU gettext.
31071         * lib/printf-args.c: New file, from GNU gettext.
31072         * lib/printf-parse.h: New file, from GNU gettext.
31073         * lib/printf-parse.c: New file, from GNU gettext.
31074         * lib/vasnprintf.h: New file, from GNU gettext.
31075         * lib/vasnprintf.c: New file, from GNU gettext.
31076         * lib/asnprintf.c: New file, from GNU gettext.
31077         * lib/vasprintf.h: New file, from GNU gettext with modifications.
31078         * lib/vasprintf.c: New file, from GNU gettext.
31079         * lib/asprintf.c: New file, from GNU gettext.
31080
31081 2003-01-29  Bruno Haible  <bruno@clisp.org>
31082
31083         * modules/stpncpy: New module.
31084         * MODULES.html.sh (func_all_modules): Add it.
31085
31086 2003-01-29  Bruno Haible  <bruno@clisp.org>
31087
31088         * m4/stpncpy.m4: New file.
31089
31090 2003-01-29  Bruno Haible  <bruno@clisp.org>
31091
31092         * lib/stpncpy.h: New file, from GNU gettext with modifications.
31093         * lib/stpncpy.c: New file, from GNU gettext with modifications.
31094
31095 2003-01-28  Bruno Haible  <bruno@clisp.org>
31096
31097         * modules/c-ctype: New module.
31098         * MODULES.html.sh (func_all_modules): Add it.
31099
31100 2003-01-28  Bruno Haible  <bruno@clisp.org>
31101
31102         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
31103         Paul Eggert.
31104         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
31105         Paul Eggert.
31106
31107 2003-01-27  Bruno Haible  <bruno@clisp.org>
31108
31109         * modules/xsetenv: New module.
31110         * MODULES.html.sh (func_all_modules): Add it.
31111
31112 2003-01-27  Bruno Haible  <bruno@clisp.org>
31113
31114         * lib/xsetenv.h: New file, from GNU gettext.
31115         * lib/xsetenv.c: New file, from GNU gettext.
31116
31117 2003-01-23  Jim Meyering  <jim@meyering.net>
31118
31119         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
31120         from working on systems without dirfd (at least Irix and OSF1/Tru64).
31121
31122 2003-01-23  Bruno Haible  <bruno@clisp.org>
31123
31124         * modules/minmax: New module.
31125         * MODULES.html.sh (func_all_modules): Add it.
31126
31127 2003-01-23  Bruno Haible  <bruno@clisp.org>
31128
31129         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
31130         Eggert.
31131
31132 2003-01-22  Bruno Haible  <bruno@clisp.org>
31133
31134         * modules/exit: New module.
31135         * MODULES.html.sh (func_all_modules): Add it.
31136
31137 2003-01-22  Bruno Haible  <bruno@clisp.org>
31138
31139         * lib/exit.h: New file, from GNU gettext.
31140
31141 2003-01-19  Bruno Haible  <bruno@clisp.org>
31142
31143         * gnulib-tool: Recognize option --extract-maintainer.
31144         (func_get_maintainer): New function.
31145         * modules/*: Add Maintainer entry.
31146
31147 2003-01-16  Jim Meyering  <jim@meyering.net>
31148
31149         * m4/regex.m4: The `regex' struct is both input and output.
31150         Initialize it before each use.  Patch by Tim Waugh.
31151
31152 2003-01-16  Bruno Haible  <bruno@clisp.org>
31153
31154         * MODULES.html.sh: Add a table of contents. Add the module name as
31155         leftmost column. Add hyperlinks.
31156
31157 2003-01-15  Bruno Haible  <bruno@clisp.org>
31158
31159         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
31160
31161 2003-01-15  Bruno Haible  <bruno@clisp.org>
31162
31163         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
31164         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
31165         suffix.
31166
31167 2003-01-15  Bruno Haible  <bruno@clisp.org>
31168
31169         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
31170
31171 2003-01-15  Bruno Haible  <bruno@clisp.org>
31172
31173         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
31174         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
31175
31176 2003-01-14  Jim Meyering  <jim@meyering.net>
31177
31178         * lib/same.c (same_name): Tweak a comment.
31179
31180 2003-01-14  Bruno Haible  <bruno@clisp.org>
31181
31182         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
31183         when a string comparison is sufficient.
31184
31185 2003-01-14  Bruno Haible  <bruno@clisp.org>
31186
31187         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
31188         'unsigned int'.
31189
31190 2003-01-14  Bruno Haible  <bruno@clisp.org>
31191
31192         * lib/hash-pjw.c: Add comment about low quality of this function.
31193
31194 2003-01-13  Bruno Haible  <bruno@clisp.org>
31195
31196         * modules/stpcpy: Distribute lib/stpcpy.h.
31197         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
31198
31199 2003-01-13  Bruno Haible  <bruno@clisp.org>
31200
31201         * modules/*: Add a description.
31202         * modules/strpbrk: Fix Makefile.am snippet.
31203         * modules/strtoimax: Fix dependencies.
31204         * modules/strtoumax: Likewise.
31205
31206 2003-01-13  Bruno Haible  <bruno@clisp.org>
31207
31208         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
31209         * modules/alloca (Makefile.am): All object files depend on alloca.h.
31210         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
31211
31212 2003-01-13  Bruno Haible  <bruno@clisp.org>
31213
31214         * gnulib-tool (func_create_testdir): Store config/* files in the main
31215         directory.
31216         * config.rpath: Move to ...
31217         * config/config.rpath: ... here.
31218         * modules/gettext: Contains config/config.rpath, not config.rpath.
31219         * modules/iconv: Likewise.
31220
31221 2003-01-12  Paul Eggert  <eggert@twinsun.com>
31222
31223         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
31224         to avoid collisions with libcurses and libreadline.
31225
31226         * m4/getstr.m4: Remove.
31227         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
31228
31229 2003-01-12  Paul Eggert  <eggert@twinsun.com>
31230
31231         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
31232         to avoid collisions with libcurses and libreadline.
31233
31234         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
31235         * lib/getstr.h, getstr.c: Remove.
31236         * lib/getline.c: Include "getline.h", to check interface.
31237         Move body of old getstr.c here: this defines MIN_CHUNK and
31238         declares getdelim2, which is renamed from getstr.
31239         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
31240
31241         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
31242         All uses changed.
31243         * lib/linebuffer.h: Likewise.
31244         (readline): Remove backward-compatibility macro.
31245
31246 2003-01-12  Paul Eggert  <eggert@twinsun.com>
31247
31248         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
31249         to avoid collisions with libcurses and libreadline.
31250         * getstr: Remove.
31251         * MODULES.html.sh: Remove getstr.
31252         * modules/getline: Depend on unlocked-io, not getstr.
31253
31254 2003-01-12  Jim Meyering  <jim@meyering.net>
31255
31256         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
31257
31258 2003-01-10  Bruno Haible  <bruno@clisp.org>
31259
31260         * modules/alloca: Change Makefile.am requirements. Simplify Include
31261         requirements. Add lib/alloca_.h to file list.
31262
31263 2003-01-10  Bruno Haible  <bruno@clisp.org>
31264
31265         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
31266
31267 2003-01-10  Bruno Haible  <bruno@clisp.org>
31268
31269         * lib/alloca_.h: New file.
31270         * lib/getdate.y: Unconditionally include alloca.h.
31271         * lib/makepath.c: Likewise.
31272         * lib/setenv.c: Likewise.
31273         * lib/userspec.c: Likewise.
31274
31275 2003-01-09  Karl Berry  <karl@gnu.org>
31276
31277         * MODULES.html.sh: include `dirname $0` in PATH, to find
31278         gnulib-tool.
31279
31280 2003-01-09  Bruno Haible  <bruno@clisp.org>
31281
31282         * modules/stdbool: Change configure.ac, Makefile.am requirements.
31283         Simplify Include requirements. Add lib/stdbool.h.in to file list.
31284
31285 2003-01-09  Bruno Haible  <bruno@clisp.org>
31286
31287         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
31288
31289 2003-01-09  Bruno Haible  <bruno@clisp.org>
31290
31291         * lib/stdbool.h.in: New file.
31292
31293 2003-01-09  Bruno Haible  <bruno@clisp.org>
31294
31295         * gnulib-tool (func_all_modules): Ignore files ending in ~.
31296         * MODULES.html.sh: Likewise.
31297
31298 2003-01-08  Jim Meyering  <jim@meyering.net>
31299
31300         * lib/full-write.c: Undefine and define-away `const' after inclusion
31301         of errno.h, not before.  Suggestion from Bruno Haible.
31302
31303 2003-01-08  Bruno Haible  <bruno@clisp.org>
31304
31305         * modules/full-read: Depend on full-write.
31306
31307 2003-01-08  Bruno Haible  <bruno@clisp.org>
31308
31309         * lib/safe-read.c: Include specification header first, to ensure its
31310         selfcontainedness.
31311         * lib/full-write.c: Likewise.
31312
31313 2003-01-07  Jim Meyering  <jim@meyering.net>
31314
31315         * lib/full-write.c: Rework so that it may serve to define full_read,
31316         too.
31317         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
31318
31319 2003-01-07  Bruno Haible  <bruno@clisp.org>
31320
31321         * lib/strtoimax.c: Include <stdint.h> as an alternative to
31322         <inttypes.h>.
31323         * lib/xstrtol.h: Likewise.
31324         * lib/xstrtoimax.c: Likewise.
31325         * lib/xstrtoumax.c: Likewise.
31326         * lib/human.h: Likewise.
31327
31328         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
31329         on systems that have <inttypes.h> but not <stdint.h>.
31330
31331 2003-01-07  Bruno Haible  <bruno@clisp.org>
31332
31333         * MODULES.html.sh: Add copyright notice.
31334         (missed_files): Omit CVS directory entries.
31335         (func_module): Make it work with sed-3.02.
31336         * MODULES.txt: Remove file.
31337
31338 2003-01-06  Jim Meyering  <jim@meyering.net>
31339
31340         * lib/version-etc.c: Update year in translatable copyright string.
31341
31342 2003-01-03  Karl Berry  <karl@gnu.org>
31343
31344         * config/config.{guess,sub}: update from prep.
31345
31346 2003-01-02  Karl Berry  <karl@gnu.org>
31347
31348         * doc/COPYING.DOC: belatedly updated to 1.2.
31349
31350 2003-01-01  Karl Berry  <karl@gnu.org>
31351
31352         * gnulib-tool (func_verify_module): report module name $module in
31353         error message, not $1.
31354         * gnulib-tool (create-testdir): don't complain if destdir couldn't
31355         be created, only if it doesn't exist.
31356         * gnulib-tool (last_checkin_date): don't expand the $Date here.
31357
31358 2002-12-31  Paul Eggert  <eggert@twinsun.com>
31359
31360         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
31361
31362 2002-12-31  Paul Eggert  <eggert@twinsun.com>
31363
31364         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
31365         memcmp if strcoll doesn't work.
31366
31367 2002-12-31  Bruno Haible  <bruno@clisp.org>
31368
31369         * lib/utime.c (utime_null): No need to call ftruncate if the file was
31370         nonempty.
31371
31372 2002-12-31  Bruno Haible  <bruno@clisp.org>
31373
31374         * lib/memcoll.c (STRCOLL): New macro.
31375         (memcoll): Use it.
31376
31377 2002-12-31  Bruno Haible  <bruno@clisp.org>
31378
31379         * lib/localcharset.h: New file.
31380         * lib/localcharset.c: Include it.
31381         * lib/unicodeio.c: Likewise.
31382
31383 2002-12-31  Bruno Haible  <bruno@clisp.org>
31384
31385         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
31386         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
31387
31388 2002-12-31  Bruno Haible  <bruno@clisp.org>
31389
31390         * lib/getline.h: Include <stddef.h>, for size_t.
31391
31392         * lib/unicodeio.h: Include <stddef.h>, for size_t.
31393         * lib/unicodeio.c: Don't include <stddef.h>.
31394
31395 2002-12-31  Bruno Haible  <bruno@clisp.org>
31396
31397         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
31398         HAVE_TM_ZONE.
31399
31400 2002-12-24  Karl Berry  <karl@gnu.org>
31401
31402         * config/config.guess: update from prep.
31403
31404 2002-12-24  Bruno Haible  <bruno@clisp.org>
31405
31406         General infrasructure.
31407         * m4/README: Rewritten.
31408         * m4/onceonly.m4: New file.
31409         * m4/onceonly_2_57.m4: New file.
31410
31411         Module atexit.
31412         * m4/atexit.m4: New file.
31413
31414         Module strtod.
31415         * m4/strtod.m4: New file.
31416
31417         Module strtol.
31418         * m4/strtol.m4: New file.
31419
31420         Module strtoul.
31421         * m4/strtoul.m4: New file.
31422
31423         Module memchr.
31424         * m4/memchr.m4: New file.
31425
31426         Module memcmp.
31427         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
31428         (jm_FUNC_MEMCMP): Invoke it.
31429
31430         Module memcpy.
31431         * m4/memcpy.m4: New file.
31432
31433         Module memmove.
31434         * m4/memmove.m4: New file.
31435
31436         Module memset.
31437         * m4/memset.m4: New file.
31438
31439         Module strcspn.
31440         * m4/strcspn.m4: New file.
31441
31442         Module strpbrk.
31443         * m4/strpbrk.m4: New file.
31444
31445         Module strstr.
31446         * m4/strstr.m4: New file.
31447
31448         Module strerror.
31449         * m4/strerror.m4: New file.
31450
31451         Module mktime.
31452         * m4/mktime.m4: Renamed from jm-mktime.m4.
31453         (gl_PREREQ_MKTIME): New macro.
31454         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
31455
31456         Module malloc.
31457         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
31458         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
31459         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
31460
31461         Module realloc.
31462         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
31463         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
31464         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
31465
31466         Module strftime.
31467         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
31468         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
31469         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
31470         gl_TM_GMTOFF.
31471         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
31472
31473         Module xalloc.
31474         * m4/xalloc.m4: New file.
31475
31476         Module alloca.
31477         * m4/alloca.m4: New file.
31478
31479         Module putenv.
31480         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
31481         (jm_FUNC_PUTENV): Invoke it.
31482
31483         Module setenv.
31484         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
31485         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
31486         when invoked twice.
31487         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
31488         gt_FUNC_SETENV.
31489
31490         Module memrchr.
31491         * m4/memrchr.m4: New file.
31492
31493         Module stpcpy.
31494         * m4/stpcpy.m4: New file.
31495
31496         Module strcase.
31497         * m4/strcase.m4: New file.
31498
31499         Module strdup.
31500         * m4/strdup.m4: New file.
31501
31502         Module strnlen.
31503         * m4/strnlen.m4: New file.
31504
31505         Module strndup.
31506         * m4/strndup.m4: New file.
31507
31508         Module xstrtod.
31509         * m4/xstrtod.m4: New file.
31510
31511         Module xstrtol.
31512         * m4/xstrtol.m4: New file.
31513
31514         Module getdate.
31515         * m4/getdate.m4: New file.
31516
31517         Module unlocked-io.
31518         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
31519         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
31520         * m4/jm-glibc-io.m4n: Remove file.
31521
31522         Module long-options.
31523         * m4/long-options.m4: New file.
31524
31525         Module md5.
31526         * m4/md5.m4: New file.
31527
31528         Module sha.
31529         * m4/sha.m4: New file.
31530
31531         Module getstr.
31532         * m4/getstr.m4: New file.
31533
31534         Module getline.
31535         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
31536         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
31537         <sys/types.h>, for size_t. Use the function name gnu_getline, not
31538         simply getline. Infoke gl_PREREQ_GETLINE.
31539
31540         Module obstack.
31541         * m4/obstack.m4: New file.
31542
31543         Module hash.
31544         * m4/hash.m4: New file.
31545
31546         Module readtokens.
31547         * m4/readtokens.m4: New file.
31548
31549         Module strverscmp.
31550         * m4/strverscmp.m4: New file.
31551
31552         Module stdbool.
31553         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
31554         OSF/1.
31555
31556         Module strtoll.
31557         * m4/strtoll.m4: New file.
31558
31559         Module strtoull.
31560         * m4/strtoull.m4: New file.
31561
31562         Module strtoimax.
31563         * m4/strtoimax.m4: New file.
31564
31565         Module strtoumax.
31566         * m4/strtoumax.m4: New file.
31567
31568         Module xstrtoimax.
31569         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
31570         jm_AC_PREREQ_XSTRTOIMAX.
31571         Moved the strtol prerequisites to strtol.m4.
31572         Moved the strtoll prerequisites to strtoll.m4.
31573         Moved the strtoimax prerequisites to strtoimax.m4.
31574
31575         Module xstrtoumax.
31576         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
31577         jm_AC_PREREQ_XSTRTOUMAX.
31578         Moved the strtoul prerequisites to strtoul.m4.
31579         Moved the strtoull prerequisites to strtoull.m4.
31580         Moved the strtoumax prerequisites to strtoumax.m4.
31581
31582         Module chown.
31583         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
31584         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
31585
31586         Module dup2.
31587         * m4/dup2.m4: New file.
31588
31589         Module ftruncate.
31590         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
31591         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
31592
31593         Module getgroups.
31594         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
31595         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
31596
31597         Module gettimeofday.
31598         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
31599         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
31600         gl_PREREQ_GETTIMEOFDAY.
31601
31602         Module mkdir.
31603         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
31604         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
31605
31606         Module mkstemp.
31607         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
31608         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
31609         jm_AC_TYPE_UINTMAX_T.
31610         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
31611
31612         Module stat.
31613         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
31614         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
31615
31616         Module lstat.
31617         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
31618         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
31619
31620         Module timespec.
31621         * m4/timespec.m4 (gl_TIMESPEC): New macro.
31622         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
31623         * m4/st_mtim.m4: Indentation.
31624
31625         Module nanosleep.
31626         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
31627         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
31628         gl_PREREQ_NANOSLEEP.
31629
31630         Module regex.
31631         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
31632         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
31633         (gl_REGEX): New macro.
31634
31635         Module rename.
31636         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
31637         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
31638
31639         Module rmdir.
31640         * m4/rmdir.m4: New file.
31641
31642         Module utime.
31643         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
31644         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
31645         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
31646
31647         Module dirname.
31648         * m4/dirname.m4: New file.
31649
31650         Module getopt.
31651         * m4/getopt.m4: New file.
31652
31653         Module unistd-safer.
31654         * m4/unistd-safer.m4: New file.
31655
31656         Module fnmatch.
31657         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
31658         declaration.
31659         (gl_PREREQ_FNMATCH_EXTRA): New macro.
31660         (gl_FUNC_FNMATCH_POSIX): New macro.
31661         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
31662         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
31663         simply fnmatch.
31664
31665         Module exclude.
31666         * m4/exclude.m4: New file.
31667
31668         Module human.
31669         * m4/human.m4: New file.
31670
31671         Module acl.
31672         * m4/acl.m4: Nop.
31673
31674         Module backupfile.
31675         * m4/backupfile.m4: New file.
31676         * m4/d-ino.m4: Indentation.
31677
31678         Module fsusage.
31679         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
31680         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
31681         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
31682
31683         Module dirfd.
31684         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
31685         requirements.
31686
31687         Module euidaccess.
31688         * m4/euidaccess.m4: New file.
31689
31690         Module file-type.
31691         * m4/file-type.m4: New file.
31692
31693         Module fileblocks.
31694         * m4/fileblocks.m4: New file.
31695
31696         Module filemode.
31697         * m4/filemode.m4: New file.
31698
31699         Module isdir.
31700         * m4/isdir.m4: New file.
31701
31702         Module lchown.
31703         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
31704         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
31705
31706         Module makepath.
31707         * m4/makepath.m4: New file.
31708
31709         Module modechange.
31710         * m4/modechange.m4: New file.
31711
31712         Module mountlist.
31713         * m4/mountlist.m4: New file.
31714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
31715         Indentation.
31716
31717         Module path-concat.
31718         * m4/path-concat.m4: New file.
31719
31720         Module pathmax.
31721         * m4/pathmax.m4: New file.
31722
31723         Module same.
31724         * m4/same.m4: New file.
31725
31726         Module save-cwd.
31727         * m4/save-cwd.m4: New file.
31728
31729         Module savedir.
31730         * m4/savedir.m4: New file.
31731
31732         Module xgetcwd.
31733         * m4/xgetcwd.m4: New file.
31734         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
31735
31736         Module xreadlink.
31737         * m4/xreadlink.m4: New file.
31738
31739         Module safe-read.
31740         * m4/safe-read.m4: New file.
31741
31742         Module safe-write.
31743         * m4/safe-write.m4: New file.
31744
31745         Module closeout.
31746         * m4/closeout.m4: New file.
31747
31748         Module stdio-safer.
31749         * m4/stdio-safer.m4: New file.
31750
31751         Module getpass.
31752         * m4/getpass.m4: New file.
31753
31754         Module getugroups.
31755         * m4/getugroups.m4: New file.
31756
31757         Module group-member.
31758         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
31759         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
31760
31761         Module idcache.
31762         * m4/idcache.m4: New file.
31763
31764         Module userspec.
31765         * m4/userspec.m4: New file.
31766
31767         Module gettime.
31768         * m4/clock_time.m4: New file.
31769         * m4/gettime.m4: New file.
31770
31771         Module settime.
31772         * m4/settime.m4: New file.
31773
31774         Module posixtm.
31775         * m4/posixtm.m4: New file.
31776
31777         Module gethostname.
31778         * m4/gethostname.m4: New file.
31779
31780         Module canon-host.
31781         * m4/canon-host.m4: New file.
31782
31783         Module gettext.
31784         * m4/codeset.m4: New file, from gettext-0.11.5.
31785         * m4/gettext.m4: New file, from gettext-0.11.5.
31786         * m4/glibc21.m4: New file, from gettext-0.11.5.
31787         * m4/iconv.m4: New file, from gettext-0.11.5.
31788         * m4/intdiv0.m4: New file, from gettext-0.11.5.
31789         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
31790         * m4/inttypes.m4: New file, from gettext-0.11.5.
31791         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
31792         * m4/isc-posix.m4: New file, from gettext-0.11.5.
31793         * m4/lcmessage.m4: New file, from gettext-0.11.5.
31794         * m4/lib-ld.m4: New file, from gettext-0.11.5.
31795         * m4/lib-link.m4: New file, from gettext-0.11.5.
31796         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
31797         * m4/progtest.m4: New file, from gettext-0.11.5.
31798         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
31799         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
31800         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
31801
31802         Module localcharset.
31803         * m4/localcharset.m4: New file.
31804
31805         Module hard-locale.
31806         * m4/hard-locale.m4: New file.
31807
31808         Module mbswidth.
31809         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
31810         onceonly macros.
31811         * m4/mbrtowc.m4: Add comment.
31812
31813         Module memcasecmp.
31814         * m4/memcasecmp.m4: New file.
31815
31816         Module memcoll.
31817         * m4/memcoll.m4: New file.
31818
31819         Module unicodeio.
31820         * m4/unicodeio.m4: New file.
31821
31822         Module rpmatch.
31823         * m4/rpmatch.m4: New file.
31824
31825         Module yesno.
31826         * m4/yesno.m4: New file.
31827
31828         Module exitfail.
31829         * m4/exitfail.m4: New file.
31830
31831         Module c-stack.
31832         * m4/c-stack.m4 (gl_C_STACK): New macro.
31833         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
31834
31835         Module error.
31836         * m4/error.m4 (gl_ERROR): New macro.
31837         (jm_PREREQ_ERROR): Use onceonly macros.
31838
31839         Module fatal.
31840         * m4/fatal.m4: New file.
31841
31842         Module getloadavg.
31843         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
31844         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
31845
31846         Module getpagesize.
31847         * m4/getpagesize.m4: New file.
31848
31849         Module getusershell.
31850         * m4/getusershell.m4: New file.
31851
31852         Module physmem.
31853         * m4/physmem.m4: New file.
31854
31855         Module posixver.
31856         * m4/posixver.m4: New file.
31857
31858         Module quotearg.
31859         * m4/quotearg.m4: New file.
31860
31861         Module quote.
31862         * m4/quote.m4: New file.
31863
31864         Module readutmp.
31865         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
31866
31867         Module sig2str.
31868         * m4/sig2str.m4: New file.
31869
31870         Other.
31871         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
31872         ulonglong.m4.
31873         * m4/intmax_t.m4: New file.
31874         * m4/d-type.m4: Indentation.
31875         * m4/jm-macros.m4: Update.
31876         * m4/prereq.m4 (jm_PREREQ): Update.
31877         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
31878         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
31879         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
31880         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
31881         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
31882         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
31883         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
31884         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
31885         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
31886         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
31887         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
31888         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
31889         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
31890         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
31891         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
31892         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
31893         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
31894         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
31895         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
31896
31897 2002-12-24  Bruno Haible  <bruno@clisp.org>
31898
31899         * MODULES.txt: Update according to m4/ changes.
31900
31901         Module gettext.
31902         * config.rpath: New file, from gettext-0.11.5.
31903
31904         * modules/*: New module descriptions.
31905         * gnulib-tool: New file.
31906         * MODULES.html.sh: New file.
31907
31908 2002-12-21  Karl Berry  <karl@gnu.org>
31909
31910         * doc/fdl.texi: update to version 1.2.
31911
31912 2002-12-19  Karl Berry  <karl@gnu.org>
31913
31914         * config/config.guess: update from prep.
31915
31916 2002-12-18  Bruno Haible  <bruno@clisp.org>
31917
31918         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
31919         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
31920
31921 2002-12-17  Bruno Haible  <bruno@clisp.org>
31922
31923         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
31924         stdlib.h, string.h.
31925
31926 2002-12-17  Bruno Haible  <bruno@clisp.org>
31927
31928         * lib/canon-host.c (strdup): Remove unused declaration.
31929
31930         * lib/fsusage.c: Include full_read.h.
31931         (get_fs_usage): Use full_read instead of safe_read.
31932
31933         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
31934
31935 2002-12-12  Karl Berry  <karl@gnu.org>
31936
31937         * config/config.guess: update from prep.
31938
31939 2002-12-11  Bruno Haible  <bruno@clisp.org>
31940
31941         * m4/setenv.m4: New file, from gettext-0.11.5.
31942
31943 2002-12-11  Bruno Haible  <bruno@clisp.org>
31944
31945         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
31946         not unsetenv().
31947         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
31948         modifications:
31949
31950         2002-12-11  Bruno Haible  <bruno@clisp.org>
31951
31952                 * setenv.c (alloca): Fall back to malloc.
31953                 (freea): New macro.
31954                 (setenv): Use freea() to free memory allocated with alloca().
31955
31956         2002-11-13  Bruno Haible  <bruno@clisp.org>
31957
31958                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
31959                 function declarations.
31960                 * unsetenv.c (unsetenv): Likewise.
31961
31962         2002-03-04  Bruno Haible  <bruno@clisp.org>
31963
31964                 Portability to AIX 4.3.3.
31965                 * unsetenv.c: New file, extracted from setenv.c.
31966                 * setenv.c: Move the unsetenv() function to unsetenv.c.
31967
31968         2001-12-20  Bruno Haible  <bruno@clisp.org>
31969
31970                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
31971                 use malloc instead. For SunOS 4.
31972
31973         2001-12-11  Bruno Haible  <bruno@clisp.org>
31974
31975                 * setenv.c: Declare alloca.
31976                 (compar_fn_t): New typedef.
31977                 (KNOWN_VALUE, STORE_VALUE): Use it.
31978
31979         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
31980         setenv.h.
31981
31982 2002-12-10  Paul Eggert  <eggert@twinsun.com>
31983
31984         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
31985         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
31986         Choose values that are less likely to collide with system fnmatch
31987         options.
31988         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
31989         defined (e.g., a pure POSIX system).
31990         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
31991         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
31992
31993 2002-12-06  Paul Eggert  <eggert@twinsun.com>
31994
31995         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
31996         a pain in practice to deal with generated m4 files.  This change
31997         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
31998
31999         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
32000         and jm-glibc-io.m4, as they are no longer a special case.
32001         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
32002         kludge and the auto-generation stuff.  Check only whether the
32003         functions are declared, not whether they exist, since older hosts
32004         that don't declare the functions can't use the optimization anyway.
32005
32006 2002-12-06  Jim Meyering  <jim@meyering.net>
32007
32008         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
32009
32010         Merge in changes from libc's misc/error.c, in preparation
32011         for the merge of gnulib's changes back into libc.
32012
32013         * lib/error.c (_): Define only if not already defined.
32014         Move definition to follow all #include directives.
32015         Include unlocked-io.h only if !_LIBC.
32016         [_LIBC]: Include <libio/libioP.h>.
32017         [USE_IN_LIBIO]: Include <libio/iolibio.h>
32018         (fflush): Tweak definition to use INTUSE.
32019         (putc): Define.
32020
32021 2002-12-05  Paul Eggert  <eggert@twinsun.com>
32022
32023         * lib/alloca.c [defined emacs]: Include "lisp.h".
32024         (xalloc_die) [defined emacs]: New macro.
32025         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
32026         [! defined emacs]: Include <xalloc.h>.
32027         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
32028         (pointer): Typedef to POINTER_TYPE *.
32029         (malloc): Remove decl; we now always use xmalloc.
32030         (alloca): Use old-style definition, since Emacs needs this.
32031         Check for arithmetic overflow when computing combined size.
32032
32033 2002-12-04  Paul Eggert  <eggert@twinsun.com>
32034
32035         Do not generate unlocked-io.h automatically, since it's easier to
32036         maintain it by hand.
32037
32038         * lib/unlocked-io.h: New file, from GNU diffutils,
32039         but with proper copyright notice and attribution.
32040         * lib/gen-uio: Remove.
32041         * lib/Makefile.am: Add copyright notice.
32042         (libfetish_a_SOURCES): Add unlocked-io.h.
32043         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
32044         (DISTCLEANFILES, io_functions): Remove macros.
32045         (EXTRA_DIST): Remove gen_uio.
32046         (unlocked-io.h): Remove rule.
32047
32048 2002-12-04  Jim Meyering  <jim@meyering.net>
32049
32050         Reflect the fact that stat.c and lstat.c are no longer generated.
32051         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
32052         (DISTCLEANFILES): Likewise.
32053         (EXTRA_DIST): Likewise.
32054         (all_local): Don't depend on stat.c or lstat.c.
32055         (stat.c, lstat.c): Remove rules.
32056         (EXTRA_DIST): Remove xstat.in.
32057
32058         * lib/xstat.in: Remove file.  Contents moved into stat.c.
32059         * lib/stat.c: New file.  Contents mostly from xstat.in.
32060         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
32061         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
32062
32063         * lib/safe-read.c: Rework so that it may serve to define safe_write,
32064         too.
32065         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
32066
32067 2002-12-03  Jim Meyering  <jim@meyering.net>
32068
32069         * lib/safe-read.c, safe-write.c: Change variable names and comments,
32070         but not semantics, to minimize the differences between these two files.
32071         (safe_read): Change comment to mention SAFE_READ_ERROR.
32072
32073         * lib/safe-read.c (IS_EINTR): Define.
32074         (safe_read): Use IS_EINTR in place of in-function cpp directives.
32075
32076 2002-12-02  Jim Meyering  <jim@meyering.net>
32077
32078         * lib/safe-read.c (EINTR): Define.
32079         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
32080         (INT_MAX): Provide fallback.
32081         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
32082
32083         * lib/safe-read.h (SAFE_READ_ERROR): Define.
32084
32085 2002-12-02  Bruno Haible  <bruno@clisp.org>
32086
32087         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
32088         Define, taken from safe-read.c.
32089         (INT_MAX): Provide fallback.
32090         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
32091         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
32092
32093         * lib/safe-read.c (EINTR): Remove definition.
32094         (safe_read): Don't use EINTR if it is absent.
32095
32096 2002-12-01  Jim Meyering  <jim@meyering.net>
32097
32098         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
32099         zero.
32100         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
32101
32102 2002-11-27  Paul Eggert  <eggert@twinsun.com>
32103
32104         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
32105         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
32106         with `if (! (value < limit)) abort ();', for readability.
32107
32108 2002-11-26  Karl Berry  <karl@gnu.org>
32109
32110         * lib/strdup.c: copy from libc again, with jim's ok.
32111         * lib/.cppi-disable: re-add strdup.c
32112
32113 2002-11-25  Karl Berry  <karl@gnu.org>
32114
32115         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
32116         instead of "strtol.c".
32117
32118 2002-11-25  Karl Berry  <karl@gnu.org>
32119
32120         * config/install-sh: update from automake for variable quoting, $0 in
32121         error msgs, etc.
32122
32123         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
32124         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
32125         entry.
32126
32127 2002-11-25  Jim Meyering  <jim@meyering.net>
32128
32129         * lib/mktime.c: Sync from libc, now that it has the latest fix.
32130
32131 2002-11-24  Karl Berry  <karl@gnu.org>
32132
32133         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
32134         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
32135
32136 2002-11-24  Jim Meyering  <jim@meyering.net>
32137
32138         Update from coreutils:
32139
32140         * lib/mktime.c: Merge in changes from libc.
32141
32142         Avoid a link-time failure on some Linux systems.
32143         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
32144         (otherwise).
32145         (__mon_yday): Declare with the STATIC attribute.
32146         (__mktime_internal): Likewise.
32147         Based on a report from Greg Schafer.
32148
32149 2002-11-23  Jim Meyering  <jim@meyering.net>
32150
32151         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
32152         Use `unsigned', not `int', as type of index.
32153
32154         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
32155
32156         * lib/fsusage.c: Remove unneeded parentheses around operands of
32157         `defined'.
32158
32159 2002-11-22  Paul Eggert  <eggert@twinsun.com>
32160
32161         * lib/quotearg.h: Allow multiple inclusion by surrounding with
32162         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
32163         so that we can be included first.
32164         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
32165         * lib/quotearg.c: Include quotearg.h immediately after config.h.
32166         No need to include stddef.h or sys/types.h any more.
32167         Surround local include files with "", not "<>".
32168         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
32169         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
32170         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
32171         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
32172         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
32173         (ISPRINT): Remove; no longer needed now that we assume C89.
32174
32175         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
32176         Preserve errno.
32177
32178         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
32179         quotearg_char): Use SIZE_MAX rather than
32180         (size_t) -1 when we are talking about "infinity".
32181
32182         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
32183
32184 2002-11-22  Paul Eggert  <eggert@twinsun.com>
32185
32186         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
32187         hint that one should use `if (! x) abort ();' rather than `assert
32188         (x);', and anyway it's one less thing to worry about configuring.
32189         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
32190         hash_rehash, hash_insert): Use abort rather than assert.
32191
32192 2002-11-22  Bruno Haible  <bruno@clisp.org>
32193
32194         * lib/safe-read.h: Assume C89. Add comments.
32195         (safe_read): Change return type to size_t.
32196         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
32197         byte counts > SSIZE_MAX correctly.
32198         * lib/safe-write.h: New file.
32199         * lib/safe-write.c: New file.
32200         * lib/full-read.h: New file.
32201         * lib/full-read.c: New file.
32202         * lib/full-write.h: Assume C89. Add comments.
32203         * lib/full-write.c: Include safe-write.h.
32204         (full_write): Rewritten to use safe_write.
32205         Suggested by Jim Meyering and Paul Eggert.
32206
32207 2002-11-21  Jim Meyering  <jim@meyering.net>
32208
32209         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
32210
32211         Merge in changes from the coreutils.
32212
32213         2002-09-25  Paul Eggert  <eggert@twinsun.com>
32214         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
32215         <stdint.h>.
32216         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
32217         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
32218         int.  Work more efficiently if X is the same width as uintmax_t.
32219         Do not compare X to -1, to avoid bogus compiler warning.
32220         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
32221         Don't assume that f_frsize and f_bsize are the same type.
32222
32223         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
32224         warning on FreeBSD.
32225
32226         * lib/makepath.c (make_path): Restore umask *before* creating the final
32227         component.
32228         (make_path): Minor reformatting.
32229
32230         * lib/xmalloc.c: Adjust to work with new autoconf macros,
32231         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
32232         HAVE_MALLOC/HAVE_REALLOC.
32233
32234         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
32235         dummy ones.  At least on GNU/Linux systems, `auto' means something
32236         else.
32237         From Michael Stone.
32238
32239 2002-11-21  Bruno Haible  <bruno@clisp.org>
32240
32241         Remove case insensitive option matching.
32242         * lib/argmatch.h (argcasematch): Remove declaration.
32243         (ARGCASEMATCH): Remove macro.
32244         (__xargmatch_internal): Remove case_sensitive argument.
32245         (XARGMATCH): Update.
32246         (XARGCASEMATCH): Remove macro.
32247         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
32248         case_sensitive argument.
32249         (argcasematch): Remove function.
32250         (__xargmatch_internal): Remove case_sensitive argument.
32251         (main): Use XARGMATCH instead of XARGCASEMATCH.
32252
32253         * lib/xmalloc.c: Change compile-time error message. Add comment about
32254         required autoconf version.
32255
32256 2002-11-20  Paul Eggert  <eggert@twinsun.com>
32257
32258         Merge argmatch cleanups from Bison.  Assume C89.
32259
32260         * lib/argmatch.c: Include config.h here, not in argmatch.h.
32261         Include stdlib.h, for EXIT_FAILURE.
32262         Always include <string.h>, since we assume C89.
32263         (EXIT_FAILURE): Remove pre-C89 bug workaround.
32264         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
32265         Include <stddef.h> instead, since it's all we need for size_t.
32266         (PARAMS): Remove.  All uses removed.
32267         (ARRAY_CARDINALITY): Do not bother to #undef.
32268         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
32269         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
32270         Remove unnecessary parentheses.
32271         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
32272         Insert necessary parentheses.
32273         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
32274         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
32275
32276 2002-11-19  Bruno Haible  <bruno@clisp.org>
32277
32278         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
32279         * lib/mbswidth.h: Include <stddef.h>, for size_t.
32280
32281         * lib/mbswidth.h (PARAMS): Remove macro.
32282         (mbswidth, mbsnwidth): Use ANSI C function declarations.
32283         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
32284
32285         * lib/gcd.h (PARAMS): Remove macro.
32286         (gcd): Use ANSI C function declarations.
32287         * lib/gcd.c (gcd): Likewise.
32288
32289 2002-11-15  Bruno Haible  <bruno@clisp.org>
32290
32291         * lib/strcspn.c: Include <stddef.h>.
32292         (strcspn): Use ANSI C function declaration. Change return type to
32293         size_t. Use NULL.
32294         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
32295         (strpbrk): Use NULL.
32296         * lib/strpbrk.h (PARAMS): Remove macro.
32297         (strpbrk): Use ANSI C function declaration.
32298         * lib/strstr.c: Don't include <sys/types.h>.
32299         * lib/strstr.h (PARAMS): Remove macro.
32300         (strstr): Use ANSI C function declarations.
32301
32302 2002-11-14  Karl Berry  <karl@gnu.org>
32303
32304         * config/mkinstalldirs: `do' on separate line, instead of
32305         `for var; do'.
32306
32307 2002-11-06  Bruno Haible  <bruno@clisp.org>
32308
32309         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
32310         * lib/gcd.c (gcd): Likewise.
32311
32312 2002-11-05  Bruno Haible  <bruno@clisp.org>
32313
32314         * lib/gcd.h: New file, from gettext-0.11.5.
32315         * lib/gcd.c: New file, from gettext-0.11.5.
32316
32317 2002-11-05  Bruno Haible  <bruno@clisp.org>
32318
32319         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
32320         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
32321         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
32322         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
32323
32324         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
32325         <libintl.h>.
32326         * lib/makepath.c: Include gettext.h instead of <locale.h> and
32327         <libintl.h>.
32328
32329         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
32330         * lib/human.c: Include gettext.h instead of <libintl.h>.
32331         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
32332         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
32333         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
32334         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
32335         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
32336         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
32337         (textdomain): Remove definition.
32338         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
32339
32340         * lib/long-options.c: Remove include of <libintl.h> and definition of
32341         _.
32342         * lib/same.c: Remove include of <libintl.h> and definition of _.
32343
32344 2002-11-04  Owen Taylor  <otaylor@redhat.com>
32345
32346         * lib/config.charset: A few additions for Solaris.
32347
32348 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
32349
32350         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
32351         * lib/localcharset.c (locale_charset): Declare as extern "C".
32352
32353 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
32354
32355         * lib/config.charset: msdos in uk_UA uses CP1125.
32356
32357 2002-11-04  Bruno Haible  <bruno@clisp.org>
32358
32359         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
32360         * lib/strcase.h: New file, from GNU gettext-0.11.5.
32361         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
32362         * lib/strstr.h: New file, from GNU gettext-0.11.5.
32363         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
32364
32365 2002-11-04  Bruno Haible  <bruno@clisp.org>
32366
32367         * lib/localcharset.c (locale_charset): Don't return an empty string.
32368
32369 2002-11-04  Bruno Haible  <bruno@clisp.org>
32370
32371         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
32372         aliases.
32373
32374 2002-11-04  Bruno Haible  <bruno@clisp.org>
32375
32376         * lib/config.charset: Update for newest glibc. Add canonical names
32377         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
32378
32379 2002-11-04  Bruno Haible  <bruno@clisp.org>
32380
32381         * lib/config.charset: Add support for NetBSD.
32382
32383 2002-11-04  Bruno Haible  <bruno@clisp.org>
32384
32385         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
32386
32387 2002-11-01  Bruno Haible  <bruno@clisp.org>
32388
32389         * configure.in: Add AC_CONFIG_AUX_DIR call.
32390         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
32391         test/Makefile.
32392         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
32393
32394 2002-09-28  Karl Berry  <karl@gnu.org>
32395
32396         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
32397         installed automake until the next release, since changes have been
32398         made.
32399
32400 2002-09-25  Karl Berry  <karl@gnu.org>
32401
32402         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
32403         * lib/getopt*: copy from libc/posix.
32404         * lib/gettext.h: copy from gettext.
32405         * lib/.cppi-disable: add strdup.c, gettext.h.
32406
32407 2002-09-25  Karl Berry  <karl@gnu.org>
32408
32409         * config/srclist.txt: enable gettext.h check.
32410         * config/config.{guess,sub}: update from prep.
32411         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
32412                 from automake 1.6.3.
32413         See srclist*.
32414
32415 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
32416
32417         * regex.c (PATFETCH): Remove the translating fetch.
32418         (PATFETCH_RAW): Rename to PATFETCH.
32419         (set_image_of_range): New fun.
32420         (SET_RANGE_TABLE_WORK_AREA): Use it.
32421         (regex_compile): Don't translate the pattern chars so eagerly.
32422         Only do it when inserting an `exactn' bytecode or when handling
32423         a char-range.
32424         (mutually_exclusive_p): Avoid empty statement.
32425
32426 2002-07-06  Jim Meyering  <meyering@lucent.com>
32427
32428         * m4/README: Don't mention Makefile.am.in.
32429         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
32430
32431 2002-07-01  Jim Meyering  <meyering@lucent.com>
32432
32433         * lib/c-stack.c: Include sys/time.h.
32434         From Volker Borchert.
32435
32436 2002-06-26  Paul Eggert  <eggert@twinsun.com>
32437
32438         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
32439
32440 2002-06-26  Paul Eggert  <eggert@twinsun.com>
32441
32442         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
32443         New macro.  Use it uniformly instead of
32444         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
32445         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
32446         reported by Vin Shelton.
32447
32448 2002-06-22  Paul Eggert  <eggert@twinsun.com>
32449
32450         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
32451         Do not assume SA_SIGINFO behavior.
32452         Bug reported by Jim Meyering on NetBSD 1.5.2.
32453
32454 2002-06-22  Jim Meyering  <meyering@lucent.com>
32455
32456         * m4/c-stack.m4: New file, from diffutils-2.8.2.
32457         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
32458
32459         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
32460         now that configure.ac uses AC_GNU_SOURCE.
32461         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
32462         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
32463
32464         Update to latest tools.  Suggestions from Paul Eggert.
32465         * m4/stdbool.m4: New file, from diffutils-2.8.2.
32466         * m4/gnu-source.m4: Update from diffutils-2.8.2.
32467         * m4/fnmatch.m4: Likewise.
32468         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
32469         to AC_HEADER_STDBOOL
32470
32471 2002-06-22  Jim Meyering  <meyering@lucent.com>
32472
32473         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
32474         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
32475
32476 2002-06-22  Jim Meyering  <meyering@lucent.com>
32477
32478         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
32479
32480         * lib/exitfail.c, exitfail.h: Likewise.
32481         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
32482
32483         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
32484         of fnmatch.h.
32485         (EXTRA_DIST): Add fnmatch_loop.c.
32486         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
32487
32488         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
32489         * lib/fnmatch.c: Update from diffutils-2.8.2.
32490         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
32491         * lib/fnmatch.h: Remove file.
32492
32493 2002-06-21  Jim Meyering  <meyering@lucent.com>
32494
32495         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
32496         * m4/mbrtowc.m4: Likewise.
32497
32498         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
32499         * m4/mbswidth.m4: Reflect name change:
32500         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
32501         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
32502
32503         * m4/lib-link.m4: Update from gettext-0.11.2.
32504         * m4/gettext.m4: Likewise.
32505
32506         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
32507         From Alfred M. Szmidt.
32508
32509 2002-06-18  Paul Eggert  <eggert@twinsun.com>
32510
32511         * lib/file-type.h: Report an error if neither S_ISREG nor
32512         S_IFREG is defined, instead of using a test specific to glibc
32513         2.2.  This should be safe, since POSIX requires S_ISREG and
32514         Unix Version 7 had S_IFREG.  We don't need to check for
32515         <sys/types.h> since we don't use any symbols that it defines.
32516
32517 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
32518
32519         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
32520         $@-t, so that each temporary file name is unique and valid in the first
32521         8 characters, for operation under DOS.
32522
32523 2002-06-15  Paul Eggert  <eggert@twinsun.com>
32524
32525         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
32526
32527 2002-06-15  Jim Meyering  <meyering@lucent.com>
32528
32529         Work even with DJGPP 2.03, which lacks support for symlinks.
32530         From Richard Dawe.
32531         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
32532         is defined.
32533         * lib/lchown.c (S_ISLNK): Likewise.
32534
32535 2002-06-15  Jim Meyering  <meyering@lucent.com>
32536
32537         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
32538         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
32539         have been included before this file.
32540
32541 2002-06-14  Jim Meyering  <meyering@lucent.com>
32542
32543         * lib/file-type.h: Use the version from diffutils-2.8.2.
32544         * lib/file-type.c: Likewise.
32545
32546 2002-06-07  Jim Meyering  <meyering@lucent.com>
32547
32548         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
32549         They're needed at least for NetBSD 1.5.2.
32550         ($statxfs_includes): Include those same headers.
32551         ($statxfs_includes): Include sys/vfs.h if available.
32552         ($statxfs_includes): Likewise for sys/statvfs.h.
32553         Check for the following members in both structs statfs and statvfs:
32554         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
32555
32556 2002-06-01  Jim Meyering  <meyering@lucent.com>
32557
32558         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
32559         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
32560
32561 2002-05-28  Jim Meyering  <meyering@lucent.com>
32562
32563         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
32564         Reported by Volker Borchert.
32565
32566 2002-05-27  Jim Meyering  <meyering@lucent.com>
32567
32568         Fix a problem seen only on nonconforming systems whereby ls.c's
32569         use of localtime, and then of gettimeofday would cause trouble:
32570         the localtime call used to initialize rpl_gettimeofday's save
32571         mechanism would clobber ls's current local time information so
32572         that in any long listing the first file would always be listed
32573         with date 1970-01-01.  Analysis by Volker Borchert.
32574
32575         * lib/gettimeofday.c (localtime): Undefine.
32576         (rpl_localtime): New function.
32577
32578 2002-05-27  Jim Meyering  <meyering@lucent.com>
32579
32580         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
32581         localtime.
32582
32583         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
32584         use the replacement function; it wouldn't resolve at link time.
32585         Reported by Volker Borchert.
32586
32587 2002-05-22  Jim Meyering  <meyering@lucent.com>
32588
32589         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
32590         file-type.h.
32591         * lib/file-type.h: New file.
32592         * lib/file-type.c (file_type): New file/function.  Extracted from
32593         diffutils.
32594
32595 2002-04-30  Jim Meyering  <meyering@lucent.com>
32596
32597         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
32598
32599 2002-04-29  Paul Eggert  <eggert@twinsun.com>
32600
32601         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
32602
32603 2002-04-29  Paul Eggert  <eggert@twinsun.com>
32604
32605         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
32606         Do not check for alloca.h (no longer used) or stdbool.h (was never
32607         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
32608
32609 2002-04-29  Paul Eggert  <eggert@twinsun.com>
32610
32611         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
32612
32613 2002-04-29  Jim Meyering  <meyering@lucent.com>
32614
32615         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
32616         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
32617         Use AC_FUNC_STRNLEN here instead.
32618
32619         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
32620         With autoconf-2.53a, it's part of AC_PROG_CC.
32621
32622 2002-04-28  Paul Eggert  <eggert@twinsun.com>
32623
32624         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
32625         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
32626
32627 2002-04-28  Paul Eggert  <eggert@twinsun.com>
32628
32629         * lib/sig2str.h, lib/sig2str.c: New files.
32630         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
32631
32632 2002-04-28  Paul Eggert  <eggert@twinsun.com>
32633
32634         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
32635         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
32636         of 127, since 64 is the largest conceivable number for ancient
32637         nonstandard hosts.
32638         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
32639
32640 2002-04-28  Jim Meyering  <meyering@lucent.com>
32641
32642         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
32643
32644 2002-04-24  Jim Meyering  <meyering@lucent.com>
32645
32646         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
32647         (jm_PREREQ): Use it.
32648
32649         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
32650         mach/mach.h fcntl.h.
32651         Check for this function: setlocale.
32652
32653 2002-04-24  Jim Meyering  <meyering@lucent.com>
32654
32655         * lib/gettext.h: New file, from Gettext.
32656         * lib/Makefile.am (INCLUDES): Remove -I../intl.
32657         (libfetish_a_SOURCES): Add gettext.h.
32658
32659 2002-04-16  Jim Meyering  <meyering@lucent.com>
32660
32661         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
32662         ut_pid, ut_id, ut_exit.
32663
32664 2002-04-16  Jim Meyering  <meyering@lucent.com>
32665
32666         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
32667         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
32668         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
32669
32670 2002-04-12  Jim Meyering  <meyering@lucent.com>
32671
32672         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
32673         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
32674         existence of the getmntinfo function.  Needed for Darwin 5.3.
32675
32676         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
32677         This is necessary at least on Darwin 5.3.
32678
32679         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
32680         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
32681         strnlen.o in the library, and that makes some versions of ranlib
32682         object.
32683
32684 2002-04-12  Jim Meyering  <meyering@lucent.com>
32685
32686         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
32687
32688 2002-04-09  Jim Meyering  <meyering@lucent.com>
32689
32690         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
32691         to be more precise.  Rather than saying we're checking whether the
32692         function `works', say what we're testing.
32693         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
32694         Reported by Bruno Haible.
32695
32696 2002-03-10  Jim Meyering  <meyering@lucent.com>
32697
32698         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
32699         Suggestion from Santiago Vila.
32700
32701 2002-03-08  Jim Meyering  <meyering@lucent.com>
32702
32703         * lib/rename.c: Mention that this wrapper is needed also on
32704         mips-dec-ultrix4.4 systems.
32705
32706 2002-03-02  Jim Meyering  <meyering@lucent.com>
32707
32708         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
32709         not HAVE_CLOCK_SETTIME.
32710
32711 2002-02-27  Paul Eggert  <eggert@twinsun.com>
32712
32713         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
32714         Check for clock_settime.
32715
32716 2002-02-27  Paul Eggert  <eggert@twinsun.com>
32717
32718         * lib/nanosleep.h: Rename to....
32719         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
32720
32721         * lib/gettime.c: New file.
32722         * lib/settime.c: New file.
32723         * lib/stime.c: Remove.
32724
32725         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
32726         timespec.h.  Remove nanosleep.h.
32727
32728 2002-02-25  Paul Eggert  <eggert@twinsun.com>
32729
32730         * m4/acl.m4: New file.
32731         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
32732         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
32733
32734 2002-02-25  Paul Eggert  <eggert@twinsun.com>
32735
32736         * lib/acl.c, lib/acl.h: New files.
32737         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
32738
32739 2002-02-24  Jim Meyering  <meyering@lucent.com>
32740
32741         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
32742         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
32743         cause trouble.  Reported by Nelson Beebe.
32744
32745 2002-02-23  Paul Eggert  <eggert@twinsun.com>
32746
32747         * lib/path-concat.c (xpath_concat): Reorder code to pacify
32748         compilers that don't know that xalloc_die never returns.
32749
32750 2002-02-20  Jim Meyering  <meyering@lucent.com>
32751
32752         * lib/getdate.c: Regenerate using bison-1.33.
32753
32754 2002-02-17  Jim Meyering  <meyering@lucent.com>
32755
32756         * config/config.guess (main): Don't use `head -1'; it's no longer
32757         portable. Use `sed 1q' instead.
32758
32759 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
32760
32761         * m4/codeset.m4: Upgrade to gettext-0.11.
32762         * m4/gettext.m4: Upgrade to gettext-0.11.
32763         * m4/glibc21.m4: Upgrade to gettext-0.11.
32764         * m4/iconv.m4: Upgrade to gettext-0.11.
32765         * m4/isc-posix.m4: Upgrade to gettext-0.11.
32766         * m4/lcmessage.m4: Upgrade to gettext-0.11.
32767         * m4/lib-ld.m4: New file, from gettext-0.11.
32768         * m4/lib-link.m4: New file, from gettext-0.11.
32769         * m4/lib-prefix.m4: New file, from gettext-0.11.
32770         * m4/progtest.m4: Upgrade to gettext-0.11.
32771
32772 2002-02-15  Paul Eggert  <eggert@twinsun.com>
32773
32774         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
32775         (jm_PREREQ): Use it.
32776
32777 2002-02-15  Paul Eggert  <eggert@twinsun.com>
32778
32779         * lib/posixver.c, lib/posixver.h: New files.
32780         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
32781
32782 2002-02-02  Paul Eggert  <eggert@twinsun.com>
32783             Bruno Haible  <bruno@clisp.org>
32784
32785         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
32786         (fwrite_success_callback): New declaration.
32787         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
32788         print_unicode_char. Call failure callback instead of error.
32789         (fwrite_success_callback): New function.
32790         (exit_failure_callback): New function.
32791         (fallback_failure_callback): New function.
32792         (print_unicode_char): Call unicode_to_mb.
32793
32794 2002-01-26  Jim Meyering  <meyering@lucent.com>
32795
32796         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
32797         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
32798
32799 2002-01-26  Jim Meyering  <meyering@lucent.com>
32800
32801         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
32802
32803 2002-01-22  Paul Eggert  <eggert@twinsun.com>
32804
32805         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
32806
32807 2002-01-22  Jim Meyering  <meyering@lucent.com>
32808
32809         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
32810         Otherwise, some versions of automake would omit the rule that makes
32811         Makefile from Makefile.in.
32812
32813 2002-01-21  Paul Eggert  <eggert@twinsun.com>
32814
32815         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
32816         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
32817         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
32818         (memcoll): Set errno to zero if there is no error.
32819
32820         * lib/quotearg.c (quotearg_buffer_restyled):
32821         Fix bug with quoting buffers containing NUL when backslashing escapes.
32822         This bug was exposed by the other changes in this patch.
32823         (quotearg_n_options): New arg ARGSIZE.
32824         All callers changed.
32825         (quoting_options_from_style): New function.
32826         (quotearg_n_style): Use it.
32827         (quotearg_n_style_mem): New function.
32828
32829         * lib/quotearg.h (quotearg_n_style_mem): New function.
32830
32831 2002-01-19  Jim Meyering  <meyering@lucent.com>
32832
32833         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
32834         Remove useless quotes: DF_PROG="df".
32835         * m4/strnlen.m4: New file.
32836
32837 2002-01-16  Paul Eggert  <eggert@twinsun.com>
32838
32839         * lib/backupfile.c (ISDIGIT): Comment fix.
32840         * lib/getdate.y (ISDIGIT): Likewise.
32841         * lib/posixtm.c (ISDIGIT, year): Likewise.
32842         * lib/strverscmp.c (ISDIGIT): Likewise.
32843         * lib/userspec.c (ISDIGIT): Likewise.
32844
32845 2002-01-16  Jim Meyering  <meyering@lucent.com>
32846
32847         * lib/getdate.y: Add three semicolons, each just before a closing
32848         brace. Bison (as of version 1.31) no longer papers over that mistake.
32849
32850 2002-01-05  Jim Meyering  <meyering@lucent.com>
32851
32852         * lib/version-etc.c (version_etc_copyright): Update copyright year.
32853
32854 2001-12-19  Paul Eggert  <eggert@twinsun.com>
32855
32856         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
32857         not silently exit merely because the output buffer happens to
32858         have nothing pending.
32859
32860 2001-12-18  Paul Eggert  <eggert@twinsun.com>
32861
32862         See the big note in ../ChangeLog.
32863         * lib/human.c (suffixes): Prefer K to k for 1024.
32864         (generate_suffix_backwards): New function.
32865         (human_readable_inexact): Use it.
32866         * lib/xstrtol.c (__xstrtol): If there is no number but there
32867         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
32868         Accept 'K' as well as 'k'.
32869
32870 2001-12-15  Jim Meyering  <meyering@lucent.com>
32871
32872         * lib/regex.h (__restrict_arr): Update from libc.
32873
32874         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
32875         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
32876         (STREQ): Define.
32877
32878 2001-12-14  Jim Meyering  <meyering@lucent.com>
32879
32880         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
32881         Suggestion from Bruno Haible.
32882
32883 2001-12-10  Jim Meyering  <meyering@lucent.com>
32884
32885         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
32886         xrealloc, Instead, include "xalloc.h".
32887         (initbuffer): Don't cast xmalloc return value to char*.
32888         (readline): Reword comment.
32889         Don't cast xrealloc return value to char*
32890         Return NULL, not 0.
32891
32892 2001-12-09  Jim Meyering  <meyering@lucent.com>
32893
32894         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
32895         about `signed and unsigned type in conditional expression'.
32896         * lib/posixtm.c (posix_time_parse): Likewise.
32897
32898         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
32899
32900         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
32901         to avoid a pedantic warning.
32902
32903         * lib/getstr.c: Don't include assert.h.
32904         (getstr): Remove warning-evoking assertions.
32905         Return -1 if offset parameter is out of bounds.
32906         Change the type of a local from int to size_t.
32907
32908         * lib/strftime.c (my_strftime_localtime_r): Include this function
32909         definition in the `#if ! HAVE_TM_GMTOFF' block.
32910
32911         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
32912         Include xalloc.h instead.
32913
32914 2001-12-02  Jim Meyering  <meyering@lucent.com>
32915
32916         * lib/tempname.c: Don't declare getenv, thus reverting the change of
32917         2001-11-18.  It's no longer necessary, now that stdlib.h is always
32918         included.
32919
32920         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
32921         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
32922
32923 2001-11-30  Akim Demaille  <akim@epita.fr>
32924
32925         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
32926         before being defined.
32927
32928 2001-11-27  Paul Eggert  <eggert@twinsun.com>
32929
32930         * lib/quotearg.h (quotearg_n, quotearg_n_style):
32931         First arg is int, not unsigned.
32932         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
32933         (SIZE_MAX, UINT_MAX): New macros.
32934         (quotearg_n_options): Abort if N is negative.
32935         Avoid overflow check on hosts where size_t is 64 bits and int
32936         is 32 bits, as overflow is impossible there.
32937         Fix off-by-one typo that caused unnecessary reallocation.
32938
32939 2001-11-27  Jim Meyering  <meyering@lucent.com>
32940
32941         * lib/tempname.c: Merge with version from libc.
32942         * lib/regex.c: Likewise.
32943
32944         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
32945         systems for which STDC_HEADERS is 0, it was not included, resulting in
32946         a warning about an integer-to-pointer conversion problem with getenv.
32947         Reported by Volker Borchert.
32948
32949 2001-11-26  Jim Meyering  <meyering@lucent.com>
32950
32951         * lib/gtod.h: Remove file.
32952         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
32953         * lib/gettimeofday.c: Don't include gtod.h.
32954         (GTOD_init): Remove function.
32955         (rpl_gettimeofday): Do its job here instead, rather than aborting.
32956         Suggestion from Volker Borchert.
32957
32958 2001-11-23  Jim Meyering  <meyering@lucent.com>
32959
32960         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
32961         it.
32962         * lib/hash.c (struct hash_table): Define it here instead.
32963
32964 2001-11-22  Jim Meyering  <meyering@lucent.com>
32965
32966         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
32967
32968 2001-11-20  Jim Meyering  <meyering@lucent.com>
32969
32970         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
32971         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
32972
32973 2001-11-19  Jim Meyering  <meyering@lucent.com>
32974
32975         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
32976         directory.  Use "conftestXXXXXX" as the template.
32977         Suggestion from Paul Eggert.
32978
32979         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
32980         immediately, so the test doesn't mistakenly hit the max-open-files
32981         limit.
32982
32983 2001-11-18  Paul Eggert  <eggert@twinsun.com>
32984
32985         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
32986         (TEMPORARIES): New macro.
32987         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
32988         removes an artificial limitation (e.g. HP-UX 10.20, where
32989         TMP_MAX is 17576).
32990
32991 2001-11-18  Jim Meyering  <meyering@lucent.com>
32992
32993         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
32994
32995 2001-11-18  Jim Meyering  <meyering@lucent.com>
32996
32997         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
32998         on SunOS 4.
32999
33000         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
33001         files will be created before anything else.
33002
33003 2001-11-17  Paul Eggert  <eggert@twinsun.com>
33004
33005         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
33006         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
33007
33008 2001-11-17  Jim Meyering  <meyering@lucent.com>
33009
33010         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
33011         Prompted by a report from Bob Proulx.
33012
33013         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
33014         Instead, require UTILS_FUNC_MKSTEMP.
33015
33016 2001-11-17  Jim Meyering  <meyering@lucent.com>
33017
33018         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
33019         Now, that's done as part of AC_FUNC_STRTOD.
33020
33021 2001-11-17  Jim Meyering  <meyering@lucent.com>
33022
33023         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
33024         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
33025         rather than group writable.  Patch by Juan F. Codagnone.
33026
33027         * lib/readtokens.c: Remove explicit declarations of xmalloc and
33028         xrealloc, Instead, include "xalloc.h".
33029
33030         * lib/mountlist.c: Include unlocked-io.h after all system headers.
33031         Remove explicit declarations of xmalloc, xrealloc,
33032         and xstrdup.  Instead, include "xalloc.h".
33033
33034         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
33035         unlocked-io.h.
33036         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
33037         Likewise.
33038         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
33039
33040         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
33041         Reported by Padraig Brady.
33042
33043         * lib/mkstemp.c: #undef mkstemp.
33044         Include config.h.
33045         (rpl_mkstemp): Rename from mkstemp.
33046         Protoize.
33047
33048 2001-11-16  Jim Meyering  <meyering@lucent.com>
33049
33050         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
33051         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
33052         determine the amount of total physical memory, use pstat_getstatic.
33053         HPUX-11 doesn't define _SC_PHYS_PAGES.
33054         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
33055         If sysconf couldn't be used to determine the amount of available
33056         physical memory, use both pstat_getstatic and pstat_getdynamic.
33057         Based on a patch from Bob Proulx.
33058
33059 2001-11-10  Jim Meyering  <meyering@lucent.com>
33060
33061         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
33062         (jm_PREREQ): Use it.
33063
33064 2001-11-09  Jim Meyering  <meyering@lucent.com>
33065
33066         * m4/jm-macros.m4: Require autoconf-2.52f.
33067         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
33068         Use these AC_-prefixed names, not the AM_-prefixed ones.
33069
33070         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
33071
33072 2001-11-05  Jim Meyering  <meyering@lucent.com>
33073
33074         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
33075
33076 2001-11-04  Jim Meyering  <meyering@lucent.com>
33077
33078         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
33079         $DEFS.
33080
33081 2001-11-03  Jim Meyering  <meyering@lucent.com>
33082
33083         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
33084         of AC_DEFUN.
33085
33086         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
33087         know the name of the variable in the macro definition.
33088
33089 2001-11-03  Jim Meyering  <meyering@lucent.com>
33090
33091         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
33092         in argmatch_to_argument call.
33093
33094         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
33095         argument.
33096
33097         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
33098         e.g., a fault due to an attempt to free a NULL pointer.
33099
33100 2001-11-01  Jim Meyering  <meyering@lucent.com>
33101
33102         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
33103         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
33104
33105 2001-11-01  Jim Meyering  <meyering@lucent.com>
33106
33107         * lib/dirfd.c, lib/dirfd.h: New files.
33108         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
33109
33110         * lib/hash.c (hash_print) [TESTING]: Clean up.
33111
33112 2001-10-22  Paul Eggert  <eggert@twinsun.com>
33113
33114         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
33115         to avoid a warning if -Wall.
33116
33117 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
33118
33119         * README: New file
33120         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
33121         (per RMS's instructions, this is now the canonical source)
33122         * lgpl/, gpl/: New directories.
33123
33124 2001-10-21  Paul Eggert  <eggert@twinsun.com>
33125
33126         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
33127
33128 2001-10-21  Jim Meyering  <meyering@lucent.com>
33129
33130         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
33131         this code would end up calling gettext even in packages built
33132         with --disable-nls.
33133         * lib/getopt.c (_): Likewise.
33134         * lib/regex.c (_): Likewise.
33135
33136 2001-10-20  Paul Eggert  <eggert@twinsun.com>
33137
33138         * m4/error.m4 (jm_PREREQ_ERROR):
33139         Do not invoke AC_CHECK_FUNCS with strerror_r, as
33140         AC_FUNC_STRERROR_R does that.
33141         Check for strerror declaration.
33142
33143         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
33144         are supposed to have them these days.
33145         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
33146         Merge changes from latest Autoconf CVS.
33147         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
33148         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
33149         POSIX decided to standardize on the int flavor of strerror_r.
33150
33151 2001-10-20  Paul Eggert  <eggert@twinsun.com>
33152
33153         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
33154         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
33155         Use strerror_r that is only a macro, even if it is not a function.
33156         (strerror): Check for HAVE_DECL_STRERROR before declaring.
33157         (private_strerror): Use prototypes, not old-style function definition.
33158         (print_errno_message): New function.
33159         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
33160         char*-flavored one.
33161         (error_tail, error, error_at_line): Use it.
33162
33163 2001-10-11  Jim Meyering  <meyering@lucent.com>
33164
33165         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
33166         and quote_n (1, ... to avoid clobbering a buffer.
33167
33168 2001-10-05  Jim Meyering  <meyering@lucent.com>
33169
33170         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
33171         hash-pjw.h.
33172         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
33173         * lib/hash-pjw.h: New file.
33174
33175 2001-09-30  Jim Meyering  <meyering@lucent.com>
33176
33177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
33178         `struct fsstat' has the `f_fstypename' member.
33179         Use that to define FS_TYPE, which is now used to make
33180         the getfsstat link test tighter.
33181
33182 2001-09-30  Jim Meyering  <meyering@lucent.com>
33183
33184         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
33185         Include <sys/ucred.h>, for Apple Darwin.
33186         Include sys/mount.h and sys/fs_types.h only if available.
33187         (FS_TYPE): Define.
33188         (read_filesystem_list): Use FS_TYPE.
33189
33190 2001-09-29  Paul Eggert  <eggert@twinsun.com>
33191
33192         * lib/exclude.c (excluded_filename): 0 -> false, since it's
33193         a boolean context.
33194
33195 2001-09-29  Jim Meyering  <meyering@lucent.com>
33196
33197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
33198         [one-argument getmntent function]): Include stdio.h before mntent.h.
33199         SunOS 4.1.x needs it for the declaration of `FILE'.
33200         Patch by Volker Borchert.
33201
33202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
33203         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
33204         sys/fs_types.h, and make the link-test for getfsstat guard #include
33205         directives with appropriate #if HAVE_*_H tests so that we can
33206         detect getfsstat on Apple Darwin1.3.7 systems.
33207         Reported by Nelson Beebe.
33208         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
33209
33210 2001-09-28  Paul Eggert  <eggert@twinsun.com>
33211
33212         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
33213         #defines strtoimax.  Also treat the other strto* functions
33214         like strtoimax.
33215
33216         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
33217         Check for strtoul and strtoumax,
33218         as those declarations are made even in the signed case.
33219         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
33220         Likewise, for strtol and strtoimax.
33221
33222 2001-09-28  Paul Eggert  <eggert@twinsun.com>
33223
33224         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
33225         #defines strtoimax.  Also treat the other strto* functions
33226         like strtoimax.
33227
33228         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
33229         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
33230         (strtoimax, strtoumax): Do not declare if already defined as a macro.
33231
33232 2001-09-26  Jim Meyering  <meyering@lucent.com>
33233
33234         Most macros in unlocked-io.h had the wrong number of arguments.
33235         * lib/gen-uio: New script.
33236         (USE_UNLOCKED_IO): Define to 1 if not already defined.
33237         * lib/unlocked-io.hin: Remove file.
33238         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
33239         rather than trying to embed it here.
33240         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
33241         Reported by Padraig Brady.
33242
33243 2001-09-25  Volker Borchert  <bt@teknon.de>
33244
33245         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
33246         `result'.
33247
33248 2001-09-24  Jim Meyering  <meyering@lucent.com>
33249
33250         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
33251
33252 2001-09-23  Jim Meyering  <meyering@lucent.com>
33253
33254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
33255         instead of the mere test for existence of mntent.h.  The latter
33256         would get a false-positive on AIX 3.4 systems.
33257         In the outer getmntent if-block, don't die if neither of the getmntent
33258         tests succeeds.  Instead, just fall through and continue with the
33259         remaining tests.
33260
33261 2001-09-23  Jim Meyering  <meyering@lucent.com>
33262
33263         * lib/mountlist.c: Remove useless parentheses in #if directives.
33264         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
33265         the deprecated MOUNTED symbol is no longer defined in mntent.h.
33266
33267 2001-09-22  Jim Meyering  <meyering@lucent.com>
33268
33269         * m4/gettext.m4: New file.  From gettext.
33270         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
33271         * m4/progtest.m4: Likewise
33272         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
33273         * m4/glibc21.m4: Likewise.
33274
33275         * m4/libintl.m4: Remove.  No longer used.
33276
33277 2001-09-22  Jim Meyering  <meyering@lucent.com>
33278
33279         * lib/localcharset.c: Update from latest gettext.
33280         * lib/config.charset: Likewise.
33281
33282 2001-09-20  Jim Meyering  <meyering@lucent.com>
33283
33284         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
33285         strtoimax.
33286         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
33287         strtoumax.
33288
33289 2001-09-20  Jim Meyering  <meyering@lucent.com>
33290
33291         * lib/xstrtol.c (strtoimax): Guard declaration with
33292         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
33293         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
33294         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
33295         (strtoumax): Likewise, for completeness (it wasn't necessary).
33296
33297 2001-09-17  Paul Eggert  <eggert@twinsun.com>
33298
33299         * lib/strtoimax.c (HAVE_LONG_LONG):
33300         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
33301         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
33302         to work around bug in IBM C compiler.
33303
33304 2001-09-17  Jim Meyering  <meyering@lucent.com>
33305
33306         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
33307         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
33308         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
33309         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
33310         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
33311         whenever the right hand side need not be expanded by the shell.
33312
33313 2001-09-16  Paul Eggert  <eggert@twinsun.com>
33314
33315         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
33316         library.  It's not correct, as some older glibcs are buggy.
33317         fnmatch wasn't fixed until glibc 2.2.
33318
33319         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
33320         special shell magic here.
33321
33322 2001-09-16  Jim Meyering  <meyering@lucent.com>
33323
33324         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
33325         * m4/jm-macros.m4: Require it.
33326
33327 2001-09-16  Jim Meyering  <meyering@lucent.com>
33328
33329         * lib/mkdir.c: New file.
33330
33331 2001-09-15  Jim Meyering  <meyering@lucent.com>
33332
33333         * m4/jm-macros.m4: Check for help2man.
33334
33335 2001-09-11  Jim Meyering  <meyering@lucent.com>
33336
33337         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
33338         The body, by Paul Eggert, was moved here from configure.in.
33339         * m4/jm-macros.m4: Require UTILS_HOST_OS.
33340
33341 2001-09-04  Paul Eggert  <eggert@twinsun.com>
33342
33343         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
33344         (jm_PREREQ): Use it.
33345
33346 2001-09-04  Paul Eggert  <eggert@twinsun.com>
33347
33348         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
33349         Use ssize_t, not int, to store result of readlink.
33350         Check for ssize_t overflow as well as size_t overflow,
33351         as POSIX says the result of readlink is implementation-defined
33352         when ssize_t overflows.
33353         Remove unnecessary cast to char*.
33354         Use free+malloc instead of realloc, as the storage doesn't need
33355         to be preserved and it's clearer and can be more efficient that way.
33356         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
33357         * lib/xreadlink.h (xreadlink): Update prototype.
33358
33359 2001-09-04  Paul Eggert  <eggert@twinsun.com>
33360
33361         * lib/xgetcwd.c: Revert some of the previous change; intead,
33362         fix the HAVE_GETCWD_NULL code to behave more like the
33363         !HAVE_GETCWD_NULL code used to.
33364
33365         Include "xalloc.h".
33366         (xgetcwd): Do not return NULL when memory is exhausted; instead,
33367         invoke xalloc_die.
33368
33369 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33370
33371         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
33372         sys/param.h, as pathmax.h includes them.
33373
33374 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33375
33376         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
33377         (jm_PREREQ_XGETCWD): New macro.
33378
33379         * m4/getcwd.m4: New file.
33380
33381 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33382
33383         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
33384         like the HAVE_GETCWD_NULL code.
33385         Include pathmax.h if not HAVE_GETCWD.
33386         Do not include xalloc.h.
33387         (INITIAL_BUFFER_SIZE): New symbol.
33388         Do not use xmalloc / xrealloc, since the caller is responsible for
33389         handling errors.  Preserve errno around `free' during failure.
33390         Do not overrun buffer when using getwd.
33391
33392 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33393
33394         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
33395         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
33396         getcwd (NULL, 0).
33397
33398 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33399
33400         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
33401         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
33402         spotted by Jim Meyering.
33403
33404 2001-09-03  Jim Meyering  <meyering@lucent.com>
33405
33406         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
33407         failure.
33408
33409 2001-09-02  Jim Meyering  <meyering@lucent.com>
33410
33411         * lib/error.c: Update from GNU libc.
33412
33413 2001-09-01  Jim Meyering  <meyering@lucent.com>
33414
33415         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
33416         Used by df.
33417
33418 2001-09-01  Jim Meyering  <meyering@lucent.com>
33419
33420         * lib/xreadlink.c: New file.
33421         * lib/xreadlink.h: New file.
33422         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
33423         xreadlink.h.
33424
33425         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
33426         doesn't conflict with sparc Solaris 7's definition in
33427         /usr/include/sys/int_types.h.
33428
33429         * lib/exclude.c: Use `""', not `<>' to #include non-system header
33430         files.
33431         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
33432         and strncasecmp as r-values.  Unixware didn't have declarations.
33433
33434 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33435
33436         * lib/xstrtol.h: Add copyright notice.
33437         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
33438         LONGINT_INVALID_SUFFIX_CHAR.
33439
33440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33441
33442         * lib/xstrtol.c (strtoimax): New decl.
33443
33444 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33445
33446         * lib/xgetcwd.c: Don't include pathmax.h.
33447         Include stdlib.h and unistd.h if available.
33448         Include xalloc.h.
33449         (xmalloc, xstrdup, free): Remove decls.
33450         (xgetcwd): Don't assume sizes fit in unsigned.
33451         Check for overflow when computing sizes.
33452         Simplify reallocation code.
33453
33454 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33455
33456         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
33457         a directory's st_size can have an arbitrary value, so the old
33458         usage could waste an arbitrary amount of memory.  All uses
33459         changed.
33460         * lib/savedir.h: Update prototype.
33461
33462 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33463
33464         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
33465
33466         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
33467         old strtoimax.c.
33468
33469         Also, make the following further changes to make this file's
33470         configuration more similar to that of strtol.c:
33471         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
33472         (strtoumax, uintmax_t, strtoull, strtol): Remove.
33473         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
33474         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
33475         changed to signed values.
33476
33477         And make the following changes as well:
33478         Fix copyright notice, as 1999 was missing.
33479         (verify): New macro.
33480         (strtoimax): Check sizes at compile-time, not run-time.
33481         Prefer strtol to strtoll if both work.
33482         (main): Remove; it was not that useful and was a pain to maintain.
33483
33484         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
33485
33486 2001-08-31  Jim Meyering  <meyering@lucent.com>
33487
33488         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
33489         Use an initial, malloc'd, buffer of length 128 rather than
33490         a statically allocated one of length 1024.
33491
33492 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33493
33494         Simplify code, partly by assuming autoconf 2.52 semantics.
33495
33496         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
33497
33498         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
33499         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
33500         All uses removed.
33501         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
33502         Move AC_REQUIRE to next-to-top level, to avoid confusion.
33503         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
33504         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
33505         jm_AC_HEADER_INTTYPES_H.
33506         * m4/jm-macros.m4 (jm_MACROS): Likewise.
33507
33508         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
33509
33510         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
33511         Quote first arg of AC_DEFUN.
33512         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
33513         since they are needed to parse the include file even if we need
33514         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
33515         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
33516         but with opposite signedness.
33517
33518 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33519
33520         Merge 'exclude' changes from tar 1.13.22.
33521         This fixes one or two unlikely storage allocation overflow bugs,
33522         but doesn't change user-visible behavior otherwise.
33523
33524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33525
33526         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
33527         (jm_PREREQ_EXCLUDE): New macro.
33528
33529 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33530
33531         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
33532         tm to be declared.
33533
33534 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33535
33536         * lib/hash.c: Remove '2001' from copyright notice.
33537
33538 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33539
33540         * lib/full-write.h: New file.
33541         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
33542         * lib/full-write.c: Correct credits, as cccp.c no longer
33543         exists and anyway it was so heavily changed from the old cccp
33544         code as to be unrecognizable.  Include full-write.h.
33545         (full_write) Return size_t, with short writes meaning failure.
33546         All callers changed.  This fixes a bug with large buffers
33547         on 64-bit hosts.
33548         * lib/utime.c: Include full-write.h.
33549
33550 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33551
33552         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
33553         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
33554         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
33555         Include if available.
33556         (<xalloc.h>): Include
33557         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
33558         (verify): New macro.  Use it to verify that EXCLUDE macros do not
33559         collide with FNM macros.
33560         (struct patopts): New struct.
33561         (struct exclude): Use it, as exclude patterns now come with options.
33562         (new_exclude): Support above changes.
33563         (new_exclude, add_exclude_file):
33564         Initial size must now be a power of two to simplify overflow checking.
33565         (free_exclude, fnmatch_no_wildcards): New function.
33566         (excluded_filename): No longer requires options arg, as the options
33567         are determined by add_exclude.  Now returns bool, not int.
33568         (excluded_filename, add_exclude):
33569         Add support for the fancy new exclusion options.
33570         (add_exclude, add_exclude_file): Now takes int options arg.
33571         Check for arithmetic overflow when computing sizes.
33572         (add_exclude_file): xrealloc might modify errno, so don't
33573         realloc until after errno might be used.
33574
33575         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
33576         New macros.
33577         (free_exclude): New decl.
33578         (add_exclude, add_exclude_file): Now takes int options arg.
33579         (excluded_filename): No longer requires options arg, as the options
33580         are determined by add_exclude.  Now returns bool, not int.
33581
33582 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33583
33584         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
33585
33586 2001-08-27  Jim Meyering  <meyering@lucent.com>
33587
33588         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
33589
33590         * lib/version-etc.c (N_): Remove definition.
33591         Revert most of last change.
33592         Instead, simply don't mark the `Copyright...' string for translation.
33593         Based on advice from Paul Eggert.
33594
33595         * lib/strtoxmax.c: Tweak comment.
33596
33597 2001-08-26  Jim Meyering  <meyering@lucent.com>
33598
33599         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
33600
33601         * m4/xstrtoimax.m4: New file.
33602         * m4/xstrtoumax.m4: Add comments explaining why we
33603         AC_REPLACE_FUNCS(strtol).
33604
33605 2001-08-26  Jim Meyering  <meyering@lucent.com>
33606
33607         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
33608         of copyright with `%s' so translators don't get an untranslated
33609         message in 2002.
33610         (COPYRIGHT_YEAR): Define.
33611         (version_etc): Use fprintf rather than fputs.
33612         Suggestion from Ulrich Drepper.
33613
33614         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
33615
33616         * lib/strtoll.c: New file, from GNU libc.
33617         * lib/xstrtoimax.c: New file.
33618
33619         * lib/xstrtol.h: Add xstrtoimax.
33620         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
33621         * lib/strtoimax.c: New file.  Likewise, but first define
33622         STRTOUXMAX_SIGNED.
33623
33624         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
33625         ...
33626         * lib/strtoxmax.c: ... then renamed to this.
33627
33628 2001-08-18  Paul Eggert  <eggert@twinsun.com>
33629
33630         * m4/inttypes.m4: Add AC_PREREQ(2.13).
33631         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
33632         (jm_AC_TYPE_INTMAX_T): New macro.
33633         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
33634
33635         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
33636
33637         * m4/longlong.m4: Renamed from ulonglong.m4.
33638         * m4/inttypes.m4: Renamed from inttypes_h.m4.
33639         * m4/uintmax_t.m4: Removed.
33640
33641 2001-08-13  Paul Eggert  <eggert@twinsun.com>
33642
33643         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
33644         Port to Solaris 8, where 'sed' requires a space after the 'r'
33645         command, and where sh dislikes "$/".  Clean up the spacing a bit.
33646         Redirect output to $tmp just once.
33647
33648 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
33649
33650         * lib/addext.c (<errno.h>): Include.
33651         (errno): Declare if not defined.
33652         (addext): Work correctly when pathconf returns -1 and leaves
33653         errno alone because there is no limit.  Also, work even if
33654         pathconf returns a value greater than SIZE_MAX.
33655
33656 2001-08-12  Jim Meyering  <meyering@lucent.com>
33657
33658         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
33659         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
33660         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
33661         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
33662         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
33663         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
33664         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
33665         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
33666         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
33667         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
33668         utime.m4, utimes.m4, xstrtoumax.m4:
33669         Quote the first argument in each use of AC_DEFUN.
33670
33671 2001-08-12  Jim Meyering  <meyering@lucent.com>
33672
33673         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
33674         Simply `return getcwd (NULL, 0);'.
33675         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
33676         Use 1300 as initial value for length, not PATH_MAX.
33677
33678         * lib/pathmax.h: Clean up cpp syntax.
33679
33680 2001-08-12  Jim Meyering  <meyering@lucent.com>
33681
33682         * lib/gettimeofday.c: New file.
33683         * lib/gtod.h: New file.
33684         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
33685
33686 2001-08-05  Jim Meyering  <meyering@lucent.com>
33687
33688         * m4/jm-macros.m4: Require autoconf-2.52.
33689
33690 2001-08-04  Jim Meyering  <meyering@lucent.com>
33691
33692         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
33693         stmt, to get in sync with glibc.
33694
33695 2001-08-03  Paul Eggert  <eggert@twinsun.com>
33696
33697         The following changes are from gettext 0.10.39 as maintained by
33698         Bruno Haible.
33699
33700         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
33701         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
33702         with inverted sense.  All uses changed.
33703
33704         * lib/mbswidth.c: Don't include <limits.h>.
33705         Include <stdlib.h> and <string.h> unconditionally.
33706         (iswcntrl, mbsinit, ISCNTRL): New macros.
33707         (mbsnwidth): Use K&R style function declarations.
33708         Don't bother checking for MB_LEN_MAX == 1, since the compiler
33709         can optimize it when MB_CUR_MAX == 1.
33710         The width of control characters is zero, not 1.
33711
33712 2001-08-03  Paul Eggert  <eggert@twinsun.com>
33713
33714         The following changes are from gettext 0.10.39 as maintained by
33715         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
33716
33717         * m4/codeset.m4: Upgrade to serial AM1.
33718         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
33719         all uses changed.  Quote first arg of AC_DEFUN.
33720         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
33721
33722         * m4/iconv.m4: Upgrade to serial AM2.
33723         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
33724         Add --with-libconv-prefix.
33725         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
33726         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
33727         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
33728         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
33729         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
33730
33731         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
33732         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
33733         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
33734         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
33735         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
33736         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
33737         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33738         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
33739         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
33740
33741         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
33742         string.h any more.
33743
33744         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
33745         not the default value.
33746
33747         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
33748         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
33749         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
33750         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
33751         Also check for iswcntrl, used for wcwidth fallback.
33752         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
33753         to Autoconf 2.13.
33754
33755 2001-08-03  Jim Meyering  <meyering@lucent.com>
33756
33757         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
33758         as it was in the original.  Reported by Paul Eggert.
33759
33760 2001-07-16  Jim Meyering  <meyering@lucent.com>
33761
33762         * m4/gettimeofday.m4: New file.
33763         Prompted by a report from Bernhard Baehr.
33764
33765 2001-07-15  Jim Meyering  <meyering@lucent.com>
33766
33767         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
33768         stuff. Now it's in ../Makefile.cfg.
33769
33770 2001-07-15  Jim Meyering  <meyering@lucent.com>
33771
33772         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
33773         (BUILT_SOURCES): Add unlocked-io.h.
33774         (io_functions): Define.
33775         (unlocked-io.h): New rule.
33776         (DISTCLEANFILES): Add unlocked-io.h.
33777         (all-local): Depend on unlocked-io.h, to ensure it is created.
33778
33779         * lib/unlocked-io.hin: New file
33780
33781         * lib/regex.c: Update from glibc.
33782
33783 2001-07-05  Jim Meyering  <meyering@lucent.com>
33784
33785         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
33786         recommendation.
33787         (libfetish_a_SOURCES): Put all .h files here instead.
33788         Remove a thus-exposed (better checks in automake) duplicate and
33789         two unnecessary .h files.
33790
33791 2001-07-04  Jim Meyering  <meyering@lucent.com>
33792
33793         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
33794         that generates jm-glibc-io.m4 so that it doesn't trigger any make
33795         distcheck failure.
33796
33797 2001-07-02  Jim Meyering  <meyering@lucent.com>
33798
33799         The following changes were prompted by suggestions from Bruno Haible.
33800
33801         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
33802         is now generated.
33803         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
33804         definition of EXTRA_DIST.
33805         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
33806         ensure that the generated file is created/updated whenever the list
33807         of $(unlocked_functions) is changed.
33808         (jm-glibc-io.m4): New rule.
33809         (unlocked-io.h): New rule -- currently unused.
33810
33811 2001-06-24  Jim Meyering  <meyering@lucent.com>
33812
33813         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
33814         unmatched right bracket, rather than kludging it with an extra,
33815         falsely-matching quote in a comment.  Patch by Akim Demaille.
33816
33817 2001-06-11  Jim Meyering  <meyering@lucent.com>
33818
33819         * lib/regex.c: Update from GNU libc.
33820
33821 2001-05-27  Jim Meyering  <meyering@lucent.com>
33822
33823         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
33824         Check for ut_type in struct utmp.
33825
33826 2001-05-27  Jim Meyering  <meyering@lucent.com>
33827
33828         * lib/readutmp.h (UT_TYPE): Define.
33829
33830 2001-05-24  Jim Meyering  <meyering@lucent.com>
33831
33832         * lib/argmatch.c: Include "quote.h".
33833         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
33834         quote function.  Reported by Göran Uddeborg.
33835
33836 2001-05-22  Jim Meyering  <meyering@lucent.com>
33837
33838         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
33839         now that we use the package-supplied version unconditionally.
33840         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
33841
33842 2001-05-21  Jim Meyering  <meyering@lucent.com>
33843
33844         * m4/regex.m4: Change a couple backticks to single quotes to avoid
33845         shell syntax errors.
33846
33847 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
33848
33849         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
33850
33851 2001-05-20  Paul Eggert  <eggert@twinsun.com>
33852
33853         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
33854         Don't bother to check library strftime, since
33855         we'll be using our own my_strftime function anyway.
33856         Define my_strftime instead of strftime.
33857
33858 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
33859
33860         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
33861         which is not yet declared.
33862
33863 2001-05-15  Jim Meyering  <meyering@lucent.com>
33864
33865         * m4/regex.m4: Use proper quoting so brackets appear in the test
33866         program.
33867         Reported by, and with help from, Bruno Haible.
33868
33869 2001-05-13  Jim Meyering  <meyering@lucent.com>
33870
33871         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
33872         undefined.
33873
33874 2001-05-11  Paul Eggert  <eggert@twinsun.com>
33875
33876         dirname code cleanup.  base_name now behaves more compatibly
33877         with POSIX basename when given file names that have trailing
33878         slashes, and similarly for dir_name.  Add new primitives
33879         base_len and dir_len.  Put the directory-name-related decls
33880         into dirname.h.
33881
33882         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
33883         * lib/backupfile.c (base_name): Likewise.
33884         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
33885         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
33886         * lib/makepath.c (strip_trailing_slashes): Likewise.
33887         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
33888         ISSLASH): Likewise.
33889         * lib/rename.c (strip_trailing_slashes): Likewise.
33890         * lib/same.c (base_name): Likewise.
33891         * lib/stripslash.c (ISSLASH): Likewise.
33892
33893         * lib/addext.c: Include <dirname.h> after size_t is defined.
33894         * lib/backupfile.c: Likewise.
33895
33896         * lib/addext.c (addext): Use base_len to trim redundant
33897         trailing slashes instead of doing it ourselves.
33898         But do not trim the last slash if it is not redundant.
33899
33900         * lib/backupfile.c (find_backup_file_name,
33901         max_backup_version): Use base_len instead of rolling it ourselves.
33902         Handle the case of "" and (on DOS) "C:" correctly.
33903
33904         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
33905         needed. Include <string.h>, <dirname.h>.
33906         (base_name): Allow file names ending in slashes, other than names
33907         that are all slashes.  In this case, return the basename followed
33908         by the slashes.  This is more general, and can be used in places
33909         where the original base_name purposely had an assertion failure.
33910         (base_len): New function.
33911
33912         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
33913         Do not include <assert.h>; no longer needed.
33914         Include xalloc.h.
33915         (memrchr): Remove decl.
33916         (dir_name_r): Remove.
33917         (dir_len): Renamed from dirlen.  All callers changed.
33918         Rewrite in terms of base_name, for simplicity and consistency.
33919         (dir_name): Never return NULL.  All callers changed.
33920         Do not include <stdlib.h> in test program; no longer needed.
33921         return 0; is fine for test program.
33922
33923         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
33924         New macros.
33925         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
33926
33927         * lib/path-concat.c (path_concat): Use base_len to compute
33928         base length, not strlen; this means we cannot rely on memcpy
33929         to null-terminate.
33930
33931         * lib/same.c (STREQ): Remove.
33932         (same_name): Handle the case where the basename ends in trailing '/'.
33933
33934         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
33935         a slash was stripped.  Do not strip the last slash after a
33936         file system prefix.
33937
33938 2001-05-11  Paul Eggert  <eggert@twinsun.com>
33939
33940         * lib/Makefile.am (libfetish_a_SOURCES):
33941         Add strftime.c, since we now compile it on all hosts.
33942
33943         * lib/strftime.c (my_strftime):
33944         Define to nstrftime if emacs, but only if my_strftime is not defined.
33945         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
33946         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
33947         Add one more extra argument: a nanoseconds value.
33948         All uses changed.
33949         (ns): New macro.
33950         (my_strftime function): Add %N format.
33951         (emacs_strftimeu): Renamed from emacs_strftime,
33952         with extra ut argument.
33953
33954 2001-05-09  Paul Eggert  <eggert@twinsun.com>
33955
33956         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
33957
33958 2001-04-21  Jim Meyering  <meyering@lucent.com>
33959
33960         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
33961         doesn't interfere.
33962
33963 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
33964
33965         * m4/ftruncate.m4: Check for chsize.
33966         Link with ftruncate.o unconditionally if ftruncate is missing.
33967         This was required when cross-compiling to i586-mingw32msvc.
33968
33969 2001-04-08  Jim Meyering  <meyering@lucent.com>
33970
33971         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
33972         recomputed; that's necessary when the offset spans a DST transition.
33973         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
33974
33975 2001-04-02  Jim Meyering  <meyering@lucent.com>
33976
33977         * lib/regex.h, regex.c: Update from GNU libc.
33978
33979 2001-03-24  Jim Meyering  <meyering@lucent.com>
33980
33981         * m4/jm-macros.m4: Require autoconf-2.49d.
33982
33983 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
33984
33985         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
33986
33987 2001-03-19  Paul Eggert  <eggert@twinsun.com>
33988
33989         * lib/version-etc.c (version_etc_copyright): Update to 2001.
33990
33991 2001-03-17  Jim Meyering  <meyering@lucent.com>
33992
33993         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
33994         now that the version in autoconf is equivalent.
33995         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
33996
33997         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
33998         Suggestion from Akim Demaille.
33999
34000         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
34001         (jm_PREREQ_TEMPNAME): New function.
34002
34003 2001-03-16  Paul Eggert  <eggert@twinsun.com>
34004
34005         * lib/tempname.c (uint64_t): Define to uintmax_t if
34006         not defined, and if UINT64_MAX is not defined.
34007         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
34008         Reported by John David Anglin.
34009
34010 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
34011
34012         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
34013         resolve alias if codeset is empty.
34014         * lib/config.charset (BeOS): Use wildcard syntax.
34015
34016 2001-03-13  Jim Meyering  <meyering@lucent.com>
34017
34018         * lib/path-concat.c (path_concat)
34019         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
34020         concatenating e.g., `C:' and `foo'.
34021         From Bruno Haible.
34022
34023 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
34024
34025         * lib/localcharset.c (locale_charset): Don't use
34026         setlocale(LC_CTYPE,NULL). Don't return NULL.
34027         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
34028
34029 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
34030
34031         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
34032         support for DOS/DJGPP.
34033
34034 2001-03-01  Paul Eggert  <eggert@twinsun.com>
34035
34036         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
34037         lacks mkstemp.  Compile our own tempname.c if we compile our own
34038         mkstemp.c, as mkstemp relies on tempname.
34039
34040 2001-03-01  Jim Meyering  <meyering@lucent.com>
34041
34042         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
34043         AH_VERBATIM really does output its argument verbatim.
34044
34045 2001-02-28  Paul Eggert  <eggert@twinsun.com>
34046
34047         * lib/Makefile.am (libfetish_a_SOURCES):
34048         Add dup-safer.c, fopen-safer.c.
34049         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
34050
34051         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
34052         * lib/unistd-safer.h: New files.
34053
34054 2001-02-25  Paul Eggert  <eggert@twinsun.com>
34055
34056         The mkstemp replacement is taken from glibc 2.2.2, with some
34057         portability fixes for use outside glibc, as follows:
34058
34059         * lib/tempname.c (struct_stat64): New macro.
34060         (direxists, __gen_tempname): Use it.
34061         This avoids a portability problem with Solaris 8.
34062
34063         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
34064         (<stddef.h>, <stdint.h>, <string.h>):
34065         Include only if STDC_HEADERS || _LIBC.
34066         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
34067         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
34068         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
34069         (__set_errno): Define this macro if <errno.h> doesn't.
34070         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
34071         Define these macros if <stdio.h> doesn't.
34072         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
34073         Define these macros if <sys/stat.h>
34074         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
34075         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
34076         __xstat64): Define if not _LIBC.
34077         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
34078         (__gen_tempname): Invoke gettimeofday only if
34079         HAVE_GETTIMEOFDAY || _LIBC;
34080         otherwise, fall back on plain "time".
34081         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
34082
34083         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
34084
34085         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
34086
34087 2001-02-18  Paul Eggert  <eggert@twinsun.com>
34088
34089         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
34090
34091 2001-02-17  Paul Eggert  <eggert@twinsun.com>
34092
34093         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
34094         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
34095         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
34096         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
34097
34098 2001-02-17  Paul Eggert  <eggert@twinsun.com>
34099
34100         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
34101         Remove workaround macros for hosts that have mbrtowc but not
34102         mbstate_t, as we now insist on proper declarations for both
34103         before using mbrtowc.
34104
34105 2001-02-17  Jim Meyering  <meyering@lucent.com>
34106
34107         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
34108         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
34109         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
34110         UnixWare 7.1.1.
34111
34112         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
34113         rather than AC_CACHE_VAL.
34114
34115 2001-02-17  Jim Meyering  <meyering@lucent.com>
34116
34117         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
34118         around included file name.
34119
34120         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
34121
34122         * lib/strftime.c: Update from GNU libc (the only changes were to
34123         comments).
34124
34125 2001-02-17  Jim Meyering  <meyering@lucent.com>
34126
34127         * lib/regex.c: Update from libc.
34128
34129 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
34130
34131         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
34132         clash.
34133
34134 2001-02-16  Paul Eggert  <eggert@twinsun.com>
34135
34136         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
34137         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
34138         Reported by Mark Hounschell via Paul Eggert.
34139
34140 2001-02-07  Jim Meyering  <meyering@lucent.com>
34141
34142         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
34143
34144 2001-02-05  Jim Meyering  <meyering@lucent.com>
34145
34146         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
34147         it includes the patch required for `large file' support with at least
34148         HP-UX's 10.20 /bin/cc.
34149
34150 2001-02-03  Jim Meyering  <meyering@lucent.com>
34151
34152         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
34153         AS_IF, now that it works once again (mysteriously).
34154         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
34155
34156 2001-01-30  Jim Meyering  <meyering@lucent.com>
34157
34158         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
34159         * m4/chown.m4: Rename conftestchown to conftest.chown.
34160         * m4/rename.m4: s/conftestdir/conftest.d1/ and
34161         s/conftestdir2/conftest.d2/.
34162         * m4/utimes.m4: s/conftestdata/conftest.data/
34163         Inspired by Pavel Roskin's change in autoconf.
34164
34165 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
34166
34167         * lib/config.charset: Update for FreeBSD 4.2.
34168
34169 2001-01-27  Jim Meyering  <meyering@lucent.com>
34170
34171         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
34172         a use of AS_IF.
34173         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
34174
34175 2001-01-26  Jim Meyering  <meyering@lucent.com>
34176
34177         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
34178         quotearg.c includes it.
34179
34180 2001-01-26  Jim Meyering  <meyering@lucent.com>
34181
34182         * lib/quotearg.c: Include stddef.h.
34183         * lib/quote.c: Include stddef.h.
34184         Reported by Axel Kittenberger.
34185
34186         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
34187         line in double quotes so that it evokes a better diagnostic.
34188         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
34189         Reported by Axel Kittenberger.
34190
34191 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
34192
34193         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
34194         as if it was a `charset'.
34195
34196 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
34197
34198         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
34199         has const.
34200
34201 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
34202
34203         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
34204         to avoid a warning.  Add back 'const' to inptr.
34205
34206 2001-01-20  Jim Meyering  <meyering@lucent.com>
34207
34208         Be sure that headers are checked before used in code compiled
34209         for the type checks.
34210         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
34211         In place of that, invoke jm_CHECK_ALL_TYPES.
34212         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
34213         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
34214         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
34215         The check for ssize_t was mistakenly run before the test for unistd.h.
34216
34217         The configure-time check for stdbool.h was missing.
34218         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
34219         (jm_PREREQ_HASH): New function.
34220
34221 2001-01-17  Jim Meyering  <meyering@lucent.com>
34222
34223         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
34224         for autoconf-2.49c.
34225         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
34226
34227 2001-01-16  Jim Meyering  <meyering@lucent.com>
34228
34229         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
34230         From Bruno Haible.
34231
34232 2001-01-14  Jim Meyering  <meyering@lucent.com>
34233
34234         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
34235         foo and bar.  Create conftestdir/ in the script, not in the C code.
34236         Remove directories in the script, not in the C code.
34237         Remove conftestdir{,2} before trying to create the directory.
34238         Make the entire configure script fail if the mkdir fails.
34239
34240 2001-01-14  Jim Meyering  <meyering@lucent.com>
34241
34242         * lib/rename.c: New file.  From Volker Borchert.
34243         Include stdlib.h, string.h or strings.h, and xalloc.h.
34244         Use strip_trailing_slashes rather than open-coding it.
34245
34246 2001-01-03  Paul Eggert  <eggert@twinsun.com>
34247
34248         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
34249
34250 2001-01-03  Jim Meyering  <meyering@lucent.com>
34251
34252         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
34253         of local `inptr' to avoid warning with some system declarations of
34254         iconv.
34255
34256 2001-01-02  Volker Borchert  <bt@teknon.de>
34257
34258         * m4/rename.m4: New file.
34259         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
34260
34261 2001-01-01  Jim Meyering  <meyering@lucent.com>
34262
34263         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
34264         even on systems with utmpx.h.  It's necessary for the declaration of
34265         utmp's ut_user member.  Reported by Andreas Jaeger.
34266
34267         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
34268         available. They are required for the declarations of getgrgid and
34269         getpwuid resp.
34270         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
34271         Reported by Andreas Jaeger.
34272
34273 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
34274
34275         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
34276         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
34277         so `make install' also works in VPATH builds.
34278
34279 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
34280
34281         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
34282         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
34283         can be used in subdirectories.
34284
34285 2000-12-29  Paul Eggert  <eggert@twinsun.com>
34286
34287         * lib/modechange.c: Do not assume that mode_t uses the
34288         traditional octal encoding.  E.g. "chmod 1 FOO" should set
34289         the other-execute bit of FOO even if S_IXOTH != 1.
34290
34291         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
34292         WOTH, XOTH, ALLM): New macros.
34293         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
34294          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
34295         Use them.
34296         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
34297         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
34298         (mode_compile):
34299         No need to use uintmax_t; unsigned long is long enough.
34300         Don't bother to get suffix since we don't use it.
34301
34302 2000-12-26  Jim Meyering  <meyering@lucent.com>
34303
34304         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
34305         better with autoheader.
34306
34307 2000-12-24  Jim Meyering  <meyering@lucent.com>
34308
34309         * lib/hash.c (is_prime): Return explicit boolean values.
34310         (hash_get_first): Return NULL to appease Irix5.6's 89.
34311         Reported by Nelson Beebe.
34312
34313 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
34314
34315         * lib/localcharset.c (locale_charset): Add support for Win32.
34316
34317 2000-12-18  Paul Eggert  <eggert@twinsun.com>
34318
34319         * lib/physmem.h, lib/physmem.c: New files.
34320
34321         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
34322         (noinst_HEADERS): Add physmem.h.
34323
34324         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
34325         't' for compatibility with Solaris 8 sort.
34326
34327 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
34328
34329         * lib/config.charset: Add support for BeOS.
34330
34331 2000-12-17  Jim Meyering  <meyering@lucent.com>
34332
34333         * m4/dos.m4 (jm_AC_DOS): New file and macro.
34334         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
34335
34336 2000-12-16  Jim Meyering  <meyering@lucent.com>
34337
34338         This bug had a serious impact on chown: `chown N:M FILE' (for integer
34339         N and M) would have treated it like `chown N:N FILE'.
34340
34341         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
34342
34343 2000-12-16  Jim Meyering  <meyering@lucent.com>
34344
34345         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
34346         SHELLS_FILE to a file name that's useful on djgpp systems.
34347         Include stdlib.h.
34348         (ADDITIONAL_DEFAULT_SHELLS): Define.
34349         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
34350         Based mostly on a patch from Prashant TR.
34351
34352 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
34353
34354         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
34355         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
34356         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
34357
34358 2000-12-08  Andreas Schwab  <schwab@suse.de>
34359
34360         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
34361         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
34362
34363 2000-12-07  Jim Meyering  <meyering@lucent.com>
34364
34365         * lib/stripslash.c (ISSLASH): Define.
34366         (strip_trailing_slashes): Use ISSLASH rather than comparing against
34367         `/'.
34368         From Prashant TR.
34369
34370         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
34371         (dir_name_r): Declare this function as static.
34372         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
34373         manifest itself on a name containing a mix of slashes and
34374         backslashes.
34375         Make this function work with names starting with a DOS-style
34376         drive letter and colon prefix.
34377         (dir_name): Append `.' if necessary.
34378         Based mostly on patches from Prashant TR and Eli Zaretskii.
34379
34380         * lib/dirname.h (dir_name_r): Remove prototype.
34381
34382 2000-12-06  Paul Eggert  <eggert@twinsun.com>
34383
34384         * m4/off_t-format.m4: Remove this file.
34385         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
34386
34387 2000-12-06  Jim Meyering  <meyering@lucent.com>
34388
34389         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
34390         replacement strtoull, we may well need the replacement strtoul, too.
34391         Check for declarations of strtoul and strtoull.
34392         Check for strtol.  Mainly as a cue to cause automake to include
34393         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
34394         Check for limits.h -- strtol.c needs it.
34395
34396 2000-12-05  Jim Meyering  <meyering@lucent.com>
34397
34398         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
34399
34400 2000-12-04  Jim Meyering  <meyering@lucent.com>
34401
34402         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
34403         Also include memory.h, stdlib.h, unistd.h if appropriate.
34404         Reported by Andreas Jaeger (conflicting declaration of malloc).
34405
34406 2000-12-02  Jim Meyering  <meyering@lucent.com>
34407
34408         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
34409         * m4/jm-macros.m4 (jm_MACROS): require it.
34410
34411 2000-12-02  Jim Meyering  <meyering@lucent.com>
34412
34413         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
34414
34415 2000-12-01  Paul Eggert  <eggert@twinsun.com>
34416
34417         * lib/memrchr.c: Include <config.h> before any system include file.
34418
34419 2000-11-30  Jim Meyering  <meyering@lucent.com>
34420
34421         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
34422
34423 2000-11-30  Jim Meyering  <meyering@lucent.com>
34424
34425         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
34426
34427 2000-11-29  Paul Eggert  <eggert@twinsun.com>
34428
34429         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
34430
34431 2000-11-26  Jim Meyering  <meyering@lucent.com>
34432
34433         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
34434
34435 2000-11-22  Paul Eggert  <eggert@twinsun.com>
34436
34437         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
34438         size of (size_t) -1; it's not portable.
34439
34440 2000-11-17  Jim Meyering  <meyering@lucent.com>
34441
34442         * lib/strstr.c: Update from GNU libc.
34443
34444 2000-11-17  Akim Demaille  <akim@epita.fr>
34445
34446         * lib/obstack.h: Formatting changes.
34447         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
34448         prevent type checking.
34449         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
34450         cast the value to (void *): assigning a `foo *' to a `void *'
34451         variable is valid.
34452         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
34453
34454 2000-11-16  Jim Meyering  <meyering@lucent.com>
34455
34456         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
34457
34458 2000-11-11  Jim Meyering  <meyering@lucent.com>
34459
34460         * lib/error.c: Add a couple #includes, merging from GNU libc version.
34461
34462 2000-11-10  Jim Meyering  <meyering@lucent.com>
34463
34464         * lib/obstack.h: Update from GNU libc.
34465         * lib/obstack.c: Likewise.
34466
34467 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
34468
34469         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
34470
34471 2000-11-06  Paul Eggert  <eggert@twinsun.com>
34472
34473         * lib/getusershell.c (setusershell): Use rewind rather than
34474         fseek/fseeko, to avoid configuration hassles with fseeko.
34475         Don't bother opening SHELLS_FILE if shellstream is NULL;
34476         it's not necessary.
34477
34478 2000-11-05  Jim Meyering  <meyering@lucent.com>
34479
34480         * lib/makepath.h (make_dir): Declare.
34481         * lib/makepath.c (make_dir): Remove `static' attribute.
34482         Tweak a comment.
34483
34484 2000-11-04  Jim Meyering  <meyering@lucent.com>
34485
34486         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
34487
34488 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
34489
34490         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
34491         last one in a bucket, advance to the next bucket.
34492
34493 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
34494
34495         * lib/fnmatch.c: Do not comment out all the code if we are using
34496         the GNU C library, because in some cases we are replacing buggy
34497         code in the GNU C library itself.
34498
34499 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
34500
34501         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
34502         (regex_compile): Catch bogus \(\1\).
34503
34504 2000-10-30  Paul Eggert  <eggert@twinsun.com>
34505
34506         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
34507         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
34508         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
34509
34510 2000-10-30  Paul Eggert  <eggert@twinsun.com>
34511
34512         * lib/error.h, getline.h, modechange.h:
34513         Remove "2000" from Copyright line, as the file hasn't been
34514         changed this year other than in the copyright notice.
34515
34516         * lib/xalloc.h: Add "2000" to Copyright line, as this file
34517         was changed this year.
34518
34519 2000-10-29  Jim Meyering  <meyering@lucent.com>
34520
34521         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
34522         renaming.
34523         * m4/ls-mntd-fs.m4: Likewise
34524
34525 2000-10-29  Jim Meyering  <meyering@lucent.com>
34526
34527         * lib/xstat.in: Fix grammar in comment.
34528
34529 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
34530
34531         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
34532         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
34533         doesn't define __restrict_arr.
34534
34535 2000-10-28  Jim Meyering  <meyering@lucent.com>
34536
34537         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
34538         (jm_PREREQ_MEMCHR): New function.
34539
34540 2000-10-28  Jim Meyering  <meyering@lucent.com>
34541
34542         * lib/memchr.c: Update from libc.
34543         Adjust for portability:
34544         [HAVE_STDLIB_H]: Include stdlib.h.
34545         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
34546         Undef __memchr, too.
34547         [!weak_alias]: Define __memchr to memchr.
34548
34549         * lib/regex.c: Update from libc.
34550         * lib/regex.h: Likewise.
34551         * lib/getopt1.c: Likewise.
34552         * lib/memcmp.c: Likewise.
34553
34554         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
34555         Avoid using fseek, when possible -- it's broken by design.
34556         Patch by Ulrich Drepper.
34557
34558 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
34559
34560         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
34561         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
34562         Giving in to popular pressure to shut up the compiler with casts.
34563
34564 2000-10-26  Jim Meyering  <meyering@lucent.com>
34565
34566         * lib/strftime.c: Update from libc.
34567
34568 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
34569
34570         * regex.c: More `unsigned char' -> `re_char' changes.
34571         Also change several `int' into `re_wchar_t'.
34572         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
34573         (PUSH_FAILURE_POINTER): Don't cast any more.
34574         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
34575         We want GCC to complain, since this piece of code makes
34576         re_match non-reentrant, which *should* be fixed.
34577         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
34578         (EXTEND_BUFFER): Use RETALLOC.
34579         (SET_LIST_BIT): Don't cast.
34580         (re_wchar_t): New type.
34581         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
34582         that those two functions will always properly return.
34583         (IMMEDIATE_QUIT_CHECK): Cast to void.
34584         (analyse_first): Use recursion rather than an explicit stack.
34585         (re_compile_fastmap): Can't fail anymore.
34586         (re_search_2): Don't check re_compile_fastmap for failure.
34587         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
34588         Now also sets the new value (passed in a new argument).
34589         (re_match_2_internal): Use it.
34590         Also, use a new var `reg' of type size_t when looping through regs
34591         rather than reuse the inappropriate `mcnt'.
34592
34593 2000-10-25  Jim Meyering  <meyering@lucent.com>
34594
34595         * lib/obstack.c: Update from libc.
34596
34597 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
34598
34599         * regex.c (regex_compile): Change the way of handling a range from
34600         a char less than 256 to a char not less than 256.
34601
34602 2000-10-24  Andrew Innes  <andrewi@gnu.org>
34603
34604         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
34605         NT-Emacs only.
34606         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
34607         so that re_search functions only quit when callers expect them to.
34608
34609 2000-10-23  Jim Meyering  <meyering@lucent.com>
34610
34611         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
34612         wrong.  That set_locale call must not have any side effects.
34613         From Paul Eggert.
34614
34615 2000-10-22  Jim Meyering  <meyering@lucent.com>
34616
34617         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
34618         [CYCLIC]: Remove now-unused definition.
34619
34620         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
34621         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
34622         Suggestion from Ulrich Drepper.
34623
34624 2000-10-21  Jim Meyering  <meyering@lucent.com>
34625
34626         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
34627         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
34628         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
34629
34630 2000-10-21  Jim Meyering  <meyering@lucent.com>
34631
34632         * lib/dirname.c (memrchr): Declare if necessary.
34633         (dir_name): Remove the restriction that there be no
34634         trailing slashes.  Now, this code skips past them, effectively
34635         ignoring them.
34636         [TEST_DIRNAME] (main): New unit tests.
34637
34638         * lib/memrchr.c: New file from GNU libc.
34639         Undef __memrchr, too.
34640         [!weak_alias]: Define __memrchr to memrchr.
34641         Guard weak_alias use with `#ifdef weak_alias'.
34642
34643 2000-10-21  Jim Meyering  <meyering@lucent.com>
34644
34645         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
34646         (dir_name): Use dir_name_r.
34647         * lib/dirname.h (dir_name_r): Declare it.
34648
34649 2000-10-17  Jim Meyering  <meyering@lucent.com>
34650
34651         * lib/quote.h (PARAMS): Define and use.
34652         Reported by Akim Demaille.
34653
34654         * lib/getopt.c: Update from libc.
34655
34656 2000-10-16  Jim Meyering  <meyering@lucent.com>
34657
34658         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
34659         setlocale.
34660         From Jan Fedak.
34661
34662 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
34663
34664         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
34665
34666 2000-09-25  Jim Meyering  <meyering@lucent.com>
34667
34668         * lib/md5.h (rol): Define (from GnuPG).
34669
34670         * lib/sha.c: Give credit (GnuPG) where due.
34671         (M): Use rol rather than open-coding it.
34672         Add a FIXME comment.
34673
34674 2000-09-21  Jim Meyering  <meyering@lucent.com>
34675
34676         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
34677         Reported by Michael Stone.
34678
34679 2000-09-20  Jim Meyering  <meyering@lucent.com>
34680
34681         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
34682         (noinst_HEADERS): Add sha.h.
34683         Based on code from Scott G. Miller and from GnuPG.
34684
34685 2000-09-18  Jim Meyering  <meyering@lucent.com>
34686
34687         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
34688         LIBS. Otherwise, everyone ends up linking with -lelf for some
34689         configurations.
34690         Reported by Mike Stone.
34691
34692 2000-09-15  Jim Meyering  <meyering@lucent.com>
34693
34694         * lib/regex.c: Update from libc.
34695
34696 2000-09-10  Jim Meyering  <meyering@lucent.com>
34697
34698         * lib/getopt.c (_getopt_internal): Update from glibc.
34699
34700 2000-09-09  Jim Meyering  <meyering@lucent.com>
34701
34702         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
34703         think it should be used as a general replacement for isascii.
34704         * lib/fnmatch.c: Likewise.
34705         * lib/mbswidth.c: Likewise
34706         * lib/regex.c: Likewise.
34707
34708         Don't use atoi.
34709         * lib/userspec.c: Include sys/param.h and limits.h.
34710         Include xstrtol.h.
34711         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
34712         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
34713         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
34714         UID, GID.  Check range.
34715
34716 2000-09-06  Jim Meyering  <meyering@lucent.com>
34717
34718         * lib/getopt.c (_getopt_internal): Update from glibc.
34719
34720 2000-08-30  Jim Meyering  <meyering@lucent.com>
34721
34722         * lib/strftime.c: Merge in changes from GNU libc.
34723
34724 2000-08-26  Jim Meyering  <meyering@lucent.com>
34725
34726         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
34727         * m4/fpending.m4: New file.
34728
34729 2000-08-26  Jim Meyering  <meyering@lucent.com>
34730
34731         * lib/closeout.c: Include "__fpending.h".
34732         (close_stdout_status): Return right away if there's nothing to flush.
34733
34734         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
34735         * lib/__fpending.c: New file.
34736         * lib/__fpending.h: New file.
34737
34738 2000-08-20  Jim Meyering  <meyering@lucent.com>
34739
34740         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
34741         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
34742         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
34743
34744 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
34745
34746         Improve fileutils installation on systems where running
34747         programs (like install) can't be unlinked.
34748         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
34749         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
34750
34751 2000-08-07  Paul Eggert  <eggert@twinsun.com>
34752
34753         Standardize on "memory exhausted" instead of "Memory exhausted"
34754         or "virtual memory exhausted".
34755         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
34756         "virtual memory exhausted".
34757         * lib/same.c (same_name): Invoke xalloc_die instead of printing
34758         our own message.
34759         * lib/userspec.c (parse_user_spec): Likewise.
34760         * lib/bumpalloc.h: comment fix
34761         * lib/same.c, userspec.c: Include xalloc.h.
34762
34763         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
34764         not char *const and pointing to a constant array.
34765         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
34766         (xrealloc): Comment fix.
34767
34768         * lib/userspec.c (parse_user_spec):
34769         Don't translate a message until just before returning,
34770         to avoid unnecessary translation.
34771
34772 2000-08-07  Jim Meyering  <meyering@lucent.com>
34773
34774         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
34775         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
34776         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
34777         getgroups.c, gethostname.c, getopt.h, group-member.c,
34778         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
34779         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
34780         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
34781         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
34782         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
34783         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
34784         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
34785         yesno.c: Back out Copyright date changes for each file with no change
34786         this year.  This eases coordination with other programs using the same
34787         source code modules.  From Paul Eggert.
34788
34789 2000-08-06  Paul Eggert  <eggert@twinsun.com>
34790
34791         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
34792         not char, for compatibility with glibc 2.1.3 strftime.c.
34793
34794 2000-08-03  Greg McGary  <greg@mcgary.org>
34795
34796         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
34797         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
34798         (EXTEND_BUFFER): Use them.
34799
34800 2000-08-01  Jim Meyering  <meyering@lucent.com>
34801
34802         * lib/dirname.c (ISSLASH): Define.
34803         (BACKSLASH_IS_PATH_SEPARATOR): Define.
34804         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
34805         both `\' and `/' may be use as path separators.
34806         Based on a patch from Prashant TR.
34807
34808 2000-07-31  Paul Eggert  <eggert@twinsun.com>
34809
34810         * lib/quotearg.c (quotearg_n_options): Don't make the initial
34811         slot vector a constant, since it might get modified.
34812
34813 2000-07-31  Jim Meyering  <meyering@lucent.com>
34814
34815         * lib/xmalloc.c: Use `virtual memory exhausted', not
34816         `Memory exhausted'.
34817         * lib/obstack.c (print_and_abort): Likewise.
34818
34819 2000-07-30  Paul Eggert  <eggert@twinsun.com>
34820
34821         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
34822         buffer, so that the caller can always quote one small
34823         component of a "memory exhausted" message in slot 0.
34824         From a suggestion by Jim Meyering.
34825
34826 2000-07-30  Jim Meyering  <meyering@lucent.com>
34827
34828         * lib/makepath.c (make_path): Quote the other instance, too.
34829
34830         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
34831         (STATIC_BUF_SIZE): Define.
34832         (quotearg_n_options): Use only statically allocated storage when
34833         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
34834         than STATIC_BUF_SIZE.
34835
34836 2000-07-29  Jim Meyering  <meyering@lucent.com>
34837
34838         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
34839         * lib/dirname.c (dir_name): Likewise.
34840
34841         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
34842         `/'.
34843
34844         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
34845         (dir_name): Assert that there are no trailing slashes.
34846
34847 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
34848
34849         * lib/mbswidth.h (mbswidth): Add a flags argument.
34850         (mbswidth): New declaration.
34851         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
34852         * lib/mbswidth.c (mbswidth): Add a flags argument.
34853         (mbsnwidth): New function.
34854
34855 2000-07-24  Jim Meyering  <meyering@lucent.com>
34856
34857         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
34858
34859 2000-07-23  Paul Eggert  <eggert@twinsun.com>
34860
34861         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
34862
34863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
34864
34865         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
34866         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
34867         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
34868         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
34869         invoke multibyte primitives.
34870
34871 2000-07-23  Paul Eggert  <eggert@twinsun.com>
34872
34873         * lib/quotearg.c:
34874         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
34875         so that mbstate_t is always defined.
34876
34877         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
34878         be 1 in at least one GCC installation, and this configuration
34879         error is likely to be common.  Ignoring MB_LEN_MAX hurts
34880         performance on hosts that have mbrtowc but have only unibyte
34881         locales, but I assume these hosts are rare.
34882
34883 2000-07-23  Paul Eggert  <eggert@twinsun.com>
34884
34885         * lib/mbswidth.c (_XOPEN_SOURCE):
34886         Don't define; this causes problems on Solaris 7.
34887         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
34888
34889 2000-07-23  Jim Meyering  <meyering@lucent.com>
34890
34891         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
34892         too: getgrgid, getpwuid, getuid.
34893
34894 2000-07-23  Jim Meyering  <meyering@lucent.com>
34895
34896         * lib/basename.c (base_name): Add an assertion.
34897
34898 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
34899
34900         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
34901         shadow its mbsinit function.
34902
34903 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
34904
34905         * lib/mbswidth.h: New file.
34906         * lib/mbswidth.c: New file.
34907         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
34908         (noinst_HEADERS): Add mbswidth.h.
34909
34910 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
34911
34912         * lib/config.charset: Add support for FreeBSD. Improve support for
34913         HP-UX and IRIX 6.
34914
34915 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
34916
34917         * m4/mbswidth.m4: New file.
34918         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
34919
34920 2000-07-15  Jim Meyering  <meyering@lucent.com>
34921
34922         * lib/makepath.c: Include quote.h.
34923         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
34924         corresponding argument in a `quote (...)' call.
34925         Give better diagnostics.
34926
34927         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
34928         (noinst_HEADERS): Add quote.h.
34929
34930         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
34931         from tar's src/misc.c.
34932         * lib/quote.h: New file.  Prototypes for same.
34933
34934 2000-07-14  Paul Eggert  <eggert@twinsun.com>
34935
34936         From a suggestion by Bruno Haible.
34937         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
34938         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
34939         to decide whether to define the BeOS workaround macro;
34940         this adjusts to the change to AC_MBSTATE_T.
34941
34942 2000-07-14  Jim Meyering  <meyering@lucent.com>
34943
34944         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
34945         jm_AC_TYPE_UINTMAX_T.
34946
34947 2000-07-13  Paul Eggert  <eggert@twinsun.com>
34948
34949         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
34950
34951         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
34952         quotearg_buffer_restyled): Add support for
34953         clocale_quoting_style.  Undo previous change to
34954         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
34955         and "{RIGHT QUOTATION MARK}" msgids.
34956
34957 2000-07-10  Paul Eggert  <eggert@twinsun.com>
34958
34959         From a suggestion by Bruno Haible.
34960         * m4/mbstate_t.m4 (AC_MBSTATE_T):
34961         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
34962         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
34963         and mbstate_t, to a single-part test that simply defines mbstate_t.
34964         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
34965         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
34966
34967 2000-07-10  Jim Meyering  <meyering@lucent.com>
34968
34969         * m4/strerror_r.m4: Mirror the correction made in autoconf.
34970
34971         * m4/gnu-source.m4: Output to confdefs.h directly.
34972         Suggestion from Akim Demaille.
34973
34974 2000-07-09  Paul Eggert  <eggert@twinsun.com>
34975
34976         The old behavior of quoting `like this' doesn't look good with
34977         newer, ISO-style fonts.  See:
34978         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
34979
34980         Instead, quote "like this" by default.  Let the translator
34981         tailor the locale-specific quoting behavior by providing
34982         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
34983
34984         * lib/quotearg.c (N_): New macro.
34985         (gettext_default): New function.
34986         (quotearg_buffer_restyled): Use
34987         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
34988         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
34989
34990 2000-07-09  Jim Meyering  <meyering@lucent.com>
34991
34992         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
34993         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
34994
34995         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
34996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
34997
34998 2000-07-09  Jim Meyering  <meyering@lucent.com>
34999
35000         * lib/Most files: Update copyright dates to include 2000.
35001
35002 2000-07-08  Jim Meyering  <meyering@lucent.com>
35003
35004         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
35005         if not defined.
35006         (xgethostname): Remove now-unnecessary #ifdef.
35007         Move declaration of `err' into loop where it's used.
35008
35009 2000-07-05  Paul Eggert  <eggert@twinsun.com>
35010         and Bruno Haible  <haible@clisp.cons.org>
35011
35012         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
35013         only if the test for an object-type mbstate_t fails.  This
35014         prevents us from mistakenly reporting that mbstate_t is a
35015         system object type after we "#define mbstate_t int" to work
35016         around its lack.
35017
35018 2000-07-05  Paul Eggert  <eggert@twinsun.com>
35019         and Bruno Haible  <haible@clisp.cons.org>
35020
35021         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
35022
35023 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
35024
35025         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
35026         to strerror_r.
35027         Include <ctype.h> for use of isalpha.
35028
35029 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
35030
35031         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
35032         by allocating a larger buffer. Test the gethostname return value for
35033         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
35034         returns an error and ENAMETOOLONG isn't defined.
35035
35036 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
35037
35038         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
35039         dimension.
35040
35041 2000-07-04  Jim Meyering  <meyering@lucent.com>
35042
35043         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
35044         of the deprecated AC_CHECKING.
35045
35046 2000-07-04  Jim Meyering  <meyering@lucent.com>
35047
35048         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
35049         Reported by Bruno Haible.
35050
35051 2000-07-04  Jim Meyering  <meyering@lucent.com>
35052
35053         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
35054         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
35055         lacks mbrtowc.
35056
35057 2000-07-03  Paul Eggert  <eggert@twinsun.com>
35058
35059         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
35060         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
35061
35062 2000-07-03  Paul Eggert  <eggert@twinsun.com>
35063         and Bruno Haible  <haible@clisp.cons.org>
35064
35065         * lib/quotearg.c (mbrtowc):
35066         Assign to *pwc, and return 1 only if result is nonzero.
35067         (iswprint): Use ISPRINT when substituting our own mbrtowc.
35068
35069 2000-07-03  Jim Meyering  <meyering@lucent.com>
35070
35071         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
35072
35073 2000-07-03  Jim Meyering  <meyering@lucent.com>
35074
35075         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
35076         This is necessary to get a definition of e.g., UTMP_FILE on
35077         HP-UX 10.20.
35078         From Bob Proulx.
35079
35080 2000-07-02  Jim Meyering  <meyering@lucent.com>
35081
35082         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
35083
35084         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
35085         AC_LIBOBJ(function_name).
35086         * m4/chown.m4: Likewise.
35087         * m4/fnmatch.m4: Likewise.
35088         * m4/ftruncate.m4: Likewise.
35089         * m4/getgroups.m4: Likewise.
35090         * m4/getline.m4: Likewise.
35091         * m4/group-member.m4: Likewise.
35092         * m4/jm-macros.m4: Likewise.
35093         * m4/lstat.m4: Likewise.
35094         * m4/malloc.m4: Likewise.
35095         * m4/memcmp.m4: Likewise.
35096         * m4/nanosleep.m4: Likewise.
35097         * m4/putenv.m4: Likewise.
35098         * m4/realloc.m4: Likewise.
35099         * m4/regex.m4: Likewise.
35100         * m4/stat.m4: Likewise.
35101         * m4/strftime.m4: Likewise.
35102
35103 2000-07-02  Jim Meyering  <meyering@lucent.com>
35104
35105         * lib/quotearg.c (mbstate_t): Don't define here.
35106
35107 2000-07-02  Jim Meyering  <meyering@lucent.com>
35108
35109         * lib/nanosleep.c (SIGCONT): Define if not already defined.
35110
35111 2000-07-01  Jim Meyering  <meyering@lucent.com>
35112
35113         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
35114
35115 2000-07-01  Jim Meyering  <meyering@lucent.com>
35116
35117         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
35118         problem.
35119
35120 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
35121
35122         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
35123         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
35124
35125 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
35126
35127         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
35128         per change in ../m4/ls-mntd-fs.m4.
35129         (read_filesystem_list): Ignore symbolic links.
35130
35131 2000-06-29  Jim Meyering  <meyering@lucent.com>
35132
35133         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
35134         for declaration of strcmp.
35135
35136         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
35137
35138         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
35139         Avoid warning by casting result to `char *' to remove `const'.
35140
35141 2000-06-28  Jim Meyering  <meyering@lucent.com>
35142
35143         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
35144         included by quotearg.c, for which we perform this test.  From
35145         Bruno Haible.
35146
35147 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
35148
35149         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
35150         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
35151         <utmpx.h> exists, put readutmp.o into LIBOBJS.
35152
35153 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
35154
35155         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
35156
35157 2000-06-26  Paul Eggert  <eggert@twinsun.com>
35158
35159         savedir now sets errno on failure and invokes xmalloc to get memory.
35160         Fix a couple of other minor bugs while we're at it.
35161
35162         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
35163         (NAMLEN): Remove macro.
35164         (malloc, realloc): Remove decls.
35165         (stpcpy): Likewise.
35166         ("xalloc.h"): Include.
35167         (NAME_SIZE_DEFAULT): New macro.
35168         (savedir): Use xmalloc / xrealloc to allocate memory.
35169         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
35170         Skip "" directory entries.
35171         Use strlen to calculate directory entry length, since the old method
35172         is rarely used these days and isn't worth supporting.
35173         Don't use a pointer after freeing it.
35174         Check for integer overflow when calculating allocation size.
35175         Use memcpy to copy entries, instead of stpcpy.
35176         Set errno properly when returning NULL.
35177         Check for readdir error.
35178
35179 2000-06-26  Jim Meyering  <meyering@lucent.com>
35180
35181         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
35182
35183 2000-06-25  Jim Meyering  <meyering@lucent.com>
35184
35185         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
35186         Linux header bug when _XOPEN_SOURCE is defined to 500.
35187
35188 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
35189
35190         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
35191         deficiency.
35192
35193 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
35194
35195         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
35196         Include xalloc.h.
35197         Don't include <stdlib.h>.  Don't declare malloc, realloc.
35198
35199 2000-06-24  Jim Meyering  <meyering@lucent.com>
35200
35201         * m4/strerror_r.m4: Revive this file -- to try out an experimental
35202         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
35203         for which strerror does return char*, but which lacks a conveniently
35204         accessible declaration of the function.  If the compile-test says
35205         strerror_r doesn't work, then resort to a `run'-test that works on
35206         BeOS and segfaults on DEC Unix.
35207
35208 2000-06-24  Jim Meyering  <meyering@lucent.com>
35209
35210         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
35211
35212 2000-06-23  Paul Eggert  <eggert@twinsun.com>
35213
35214         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
35215         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
35216
35217 2000-06-23  Paul Eggert  <eggert@twinsun.com>
35218
35219         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
35220         (mbrtowc, mbstate_t): Define substitutes if
35221         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
35222         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
35223         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
35224
35225 2000-06-23  Jim Meyering  <meyering@lucent.com>
35226
35227         * m4/afs.m4: Add missing AC_MSG_RESULT.
35228         Reported by Bruno Haible.
35229
35230         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
35231         Suggestion from Bruno Haible.
35232
35233 2000-06-23  Jim Meyering  <meyering@lucent.com>
35234
35235         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
35236
35237 2000-06-21  Jim Meyering  <meyering@lucent.com>
35238
35239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
35240
35241 2000-06-21  Jim Meyering  <meyering@lucent.com>
35242
35243         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
35244         (noinst_HEADERS): Add getstr.h.
35245
35246         * lib/getline.c (getstr): Move into a separate file.
35247         * lib/getstr.c (getstr): New file, extracted from getline.c, with
35248         the following changes: new parameter, delim2; both delim[12]
35249         parameters have type `int', not `char'.  The latter would lose
35250         with 8-bit delimiters.
35251         * lib/getstr.h: New file.
35252
35253 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
35254
35255         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
35256         than 1024, return a memory chunk of least possible size, instead
35257         of size PATH_MAX + 2. In the loop, increment the size proportionally.
35258         Use free/xmalloc instead of xrealloc to avoid copying for very long
35259         paths.
35260
35261 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
35262
35263         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
35264         the empty string.
35265
35266 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
35267
35268         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
35269         address, not strdup.  Include <stdlib.h> and don't declare free().
35270
35271 2000-06-19  Jim Meyering  <meyering@lucent.com>
35272
35273         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
35274
35275 2000-06-18  Jim Meyering  <meyering@lucent.com>
35276
35277         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
35278
35279         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
35280         `checking whether...' message to be consistent with that of the
35281         lstat test.
35282
35283 2000-06-18  Jim Meyering  <meyering@lucent.com>
35284
35285         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
35286         Besides, these days every porting target provides a mkdir function.
35287
35288         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
35289         needed. (this snippet comes from src/system.h).
35290
35291 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
35292
35293         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
35294
35295 2000-06-15  Paul Eggert  <eggert@twinsun.com>
35296
35297         * lib/human.c (adjust_value): New function.
35298         (human_readable_inexact): Apply rounding style even when
35299         printing approximate values.
35300
35301 2000-06-14  Paul Eggert  <eggert@twinsun.com>
35302
35303         * lib/human.c (human_readable_inexact): Allow an input block
35304         size that is not a multiple of the output block size, and vice versa.
35305         Reported by Piergiorgio Sartor.
35306
35307 2000-06-14  Paul Eggert  <eggert@twinsun.com>
35308
35309         * lib/getdate.y (get_date): Apply relative times after time
35310         zone indicator, not before.  Reported by Todd A. Jacobs.
35311
35312 2000-06-13  Jim Meyering  <meyering@lucent.com>
35313
35314         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
35315
35316         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
35317
35318 2000-06-12  Paul Eggert  <eggert@twinsun.com>
35319
35320         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
35321
35322 2000-06-12  Jim Meyering  <meyering@lucent.com>
35323
35324         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
35325         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
35326         optional argument.
35327         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
35328         the optional argument, `lib'.
35329
35330 2000-06-08  Jim Meyering  <meyering@lucent.com>
35331
35332         * m4/largefile.m4: Remove file (now that it's part of autoconf).
35333
35334 2000-06-04  Paul Eggert  <eggert@twinsun.com>
35335
35336         Rewrite largefile configuration so that we don't need to run
35337         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
35338         AC_CANONICAL_HOST in configure.in -- jmm]
35339
35340         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
35341         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
35342         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
35343         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
35344         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
35345         All uses changed.
35346         Instead of inspecting the output of getconf, try to compile the
35347         test program without and with the macro definition.
35348         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
35349         for getconf.  Instead, check for the needed flags by compiling
35350         test programs.
35351
35352 2000-06-04  Paul Eggert  <eggert@twinsun.com>
35353
35354         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
35355
35356 2000-06-04  Jim Meyering  <meyering@lucent.com>
35357
35358         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
35359         SunOS 4.1.4 for which gid_t is an unsigned type.
35360
35361 2000-06-03  Jim Meyering  <meyering@lucent.com>
35362
35363         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
35364         now that autoconf requires that.
35365
35366         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
35367         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
35368         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
35369
35370 2000-06-03  Jim Meyering  <meyering@lucent.com>
35371
35372         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
35373
35374 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
35375
35376         * m4/glibc21.m4: New file.
35377         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
35378
35379 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
35380
35381         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
35382         newer, don't install charset.alias.
35383         * lib/config.charset: Change the Linux/glibc rules so they become empty
35384         on glibc-2.1 or newer.
35385
35386 2000-06-02  Jim Meyering  <meyering@lucent.com>
35387
35388         * lib/mountlist.c: Back out last change.  Instead, do this...
35389         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
35390         me_dummy member using the same `ignore'-testing code.
35391         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
35392         fs_type strings.
35393         From Mark D. Roth.
35394
35395 2000-05-29  Jim Meyering  <meyering@lucent.com>
35396
35397         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
35398         mounts with the `ignore' attribute.  Based on a patch from
35399         Mark D. Roth.
35400
35401 2000-05-28  Jim Meyering  <meyering@lucent.com>
35402
35403         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
35404         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35405         * m4/stat.m4: Likewise.
35406         * m4/lstat.m4: Likewise.
35407         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
35408
35409         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
35410         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
35411
35412 2000-05-26  Jim Meyering  <meyering@lucent.com>
35413
35414         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
35415
35416 2000-05-24  Jim Meyering  <meyering@lucent.com>
35417
35418         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
35419         autoconf requires that.
35420         * m4/lib-check.m4: Likewise.
35421         * m4/jm-macros.m4: Likewise.
35422         * m4/strftime.m4: Likewise.
35423
35424         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
35425         AC_CHECK_DECLS, now that autoconf requires that.
35426
35427 2000-05-22  Jim Meyering  <meyering@lucent.com>
35428
35429         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35430         * m4/lstat.m4: Likewise.
35431
35432 2000-05-22  Jim Meyering  <meyering@lucent.com>
35433
35434         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
35435
35436 2000-05-20  Jim Meyering  <meyering@lucent.com>
35437
35438         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
35439         (jm_PREREQ): Use it.
35440
35441 2000-05-18  Jim Meyering  <meyering@lucent.com>
35442
35443         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
35444         back, too, since it may have been modified by allocate_entry.
35445         (hash_delete): Rewrite to use neither the assignment operator
35446         nor the comma operator in an if-expression.
35447
35448 2000-05-15  Paul Eggert  <eggert@twinsun.com>
35449
35450         * lib/closeout.c:
35451         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
35452         Remove; no longer needed.
35453         "quotearg.h": Add include.
35454         (file_name): Do not bother to explicitly initialize to NULL; it's less
35455         efficient on some hosts.
35456         (close_stdout_status): Remove test as to whether stdout was already
35457         closed; it breaks for the case "echo x | sort >&-".
35458         Quote file name colons.
35459         Do not assume that _("write error") lacks format strings.
35460
35461 2000-05-15  Jim Meyering  <meyering@lucent.com>
35462
35463         * lib/version-etc.c (version_etc_copyright): Update the copyright
35464         string used in all --version output.
35465
35466 2000-05-14  Jim Meyering  <meyering@lucent.com>
35467
35468         * lib/closeout.c (close_stdout_set_file_name): New function.
35469         (close_stdout_status): Use new file-scoped global.
35470         Return right away if fstat says the stdout file descriptor is invalid.
35471         * lib/closeout.h (close_stdout_set_file_name): Declare.
35472
35473 2000-05-10  Jim Meyering  <meyering@lucent.com>
35474
35475         * lib/closeout.c [default_exit_status]: New file-scoped variable.
35476         (close_stdout_set_status): New function.
35477         * lib/closeout.h (close_stdout_set_status): Declare.
35478
35479 2000-05-09  Jim Meyering  <meyering@lucent.com>
35480
35481         * m4/gettext.m4: Rename this...
35482         * m4/libintl.m4: ...to this.
35483
35484 2000-05-08  Jim Meyering  <meyering@lucent.com>
35485
35486         * lib/long-options.c: Don't include closeout.h.
35487         (parse_long_options): Don't call close_stdout for --version.
35488
35489 2000-05-06  Paul Eggert  <eggert@twinsun.com>
35490
35491         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
35492         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
35493         2.1.3 bug.  This avoids a clash when files like regex.c define
35494         _GNU_SOURCE.
35495
35496 2000-05-06  Jim Meyering  <meyering@lucent.com>
35497
35498         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
35499         (AC_REPLACE_FUNCS): Add strnlen.
35500
35501         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
35502         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
35503
35504         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
35505         AC_SEARCH_LIBS call for nanosleep.
35506         (LIB_NANOSLEEP): Set and AC_SUBST.
35507
35508 2000-05-06  Jim Meyering  <meyering@lucent.com>
35509
35510         * lib/strnlen.c: Undefine __strnlen and strnlen.
35511         [!weak_alias]: Define __strnlen to strnlen.
35512
35513         * lib/atexit.c: New file, from libiberty.
35514
35515 2000-05-06  Jim Meyering  <meyering@lucent.com>
35516
35517         * lib/closeout.c (close_stdout_status): Also check for errors on the
35518         stderr stream.
35519
35520 2000-05-05  Jim Meyering  <meyering@lucent.com>
35521
35522         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
35523         AC_SEARCH_LIBS call for clock_gettime.
35524         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
35525
35526         * m4/search-libs.m4: Update from autoconf.
35527
35528         su doesn't work on Solaris 2.6.
35529         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
35530         <shadow.h>.  Reported by Dragos Harabor.
35531
35532 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
35533
35534         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
35535         memcpy instead of xmalloc, xrealloc, path_concat.
35536         (locale_charset): Treat empty environment variables as absent.
35537         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
35538
35539 2000-05-04  Jim Meyering  <meyering@lucent.com>
35540
35541         * lib/getopt.c: Update from glibc.
35542         * lib/obstack.c: Likewise.
35543         * lib/obstack.h: Likewise.
35544         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
35545         file
35546
35547         * lib/regex.h: Likewise.
35548         * lib/strndup.c: Likewise.
35549         * lib/strnlen.c: New file, from glibc.
35550
35551 2000-05-03  Jim Meyering  <meyering@lucent.com>
35552
35553         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
35554
35555 2000-05-02  Paul Eggert  <eggert@twinsun.com>
35556
35557         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
35558         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
35559         compile-time test, rather than inspecting host and OS, to
35560         decide whether to define _LARGEFILE_SOURCE.
35561
35562 2000-05-01  Jim Meyering  <meyering@lucent.com>
35563
35564         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
35565
35566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
35567         Based on a patch from Bruno Haible.
35568
35569 2000-05-01  Jim Meyering  <meyering@lucent.com>
35570
35571         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
35572
35573 2000-04-29  Jim Meyering  <meyering@lucent.com>
35574
35575         * lib/path-concat.c: Declare strdup only if it's not defined.
35576         * lib/canon-host.c: Likewise.
35577
35578 2000-04-28  Jim Meyering  <meyering@lucent.com>
35579
35580         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
35581         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
35582         is included first, then limits.h is included by locale.h by libintl.h.
35583         From John David Anglin.
35584
35585 2000-04-25  Jim Meyering  <meyering@lucent.com>
35586
35587         * lib/makepath.c (S_IRWXUGO): Define.
35588         (make_path): Always perform explicit chmod if MODE specifies any
35589         of the `special' permission bits.  Prompted by a bug report against
35590         install from Mate Wierdl and Joost van Baal.
35591
35592 2000-04-18  Jim Meyering  <meyering@lucent.com>
35593
35594         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
35595         (jm_PREREQ): Use it.
35596
35597 2000-04-18  Jim Meyering  <meyering@lucent.com>
35598
35599         * lib/README: New file.
35600
35601         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
35602         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
35603
35604 2000-04-17  Jim Meyering  <meyering@lucent.com>
35605
35606         Get it right :-)
35607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
35608         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
35609         Suggestion from Akim Demaille.
35610
35611 2000-04-17  Jim Meyering  <meyering@lucent.com>
35612
35613         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
35614         the definition of it to rpl_strftime also defined-away the system's
35615         declaration.
35616
35617 2000-04-15  Jim Meyering  <meyering@lucent.com>
35618
35619         Use `C' to denote so-called `contiguous' files, the same way
35620         that tar does.
35621         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
35622         (ftypelet): Use S_ISCTG.
35623         From Michael Deutschmann.
35624
35625 2000-04-14  Jim Meyering  <meyering@lucent.com>
35626
35627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
35628         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
35629         clobbered.
35630
35631 2000-04-14  Jim Meyering  <meyering@lucent.com>
35632
35633         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
35634
35635 2000-04-13  Jim Meyering  <meyering@lucent.com>
35636
35637         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
35638         AH_VERBATIM to insert required #ifndef into config.h.in.
35639         Suggestion from Akim Demaille.
35640
35641 2000-04-12  Jim Meyering  <meyering@lucent.com>
35642
35643         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
35644         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
35645         Christian Krackowizer.
35646
35647         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
35648         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
35649         (AC_SYS_LARGEFILE): Require.
35650         (AM_C_PROTOTYPES): Require.
35651
35652 2000-04-08  Jim Meyering  <meyering@lucent.com>
35653
35654         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
35655         names don't conflict.  Reported by Eli Zaretskii.
35656
35657 2000-04-07  Jim Meyering  <meyering@lucent.com>
35658
35659         * lib/putenv.c: Move inclusion of errno.h so it follows that of
35660         sys/types.h, to work around system header problems on AIX 3.2.5.
35661         From Bruno Haible.
35662
35663 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
35664
35665         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
35666         bug.  Deal with the different error behavior of Irix iconv.
35667
35668 2000-04-05  Paul Eggert  <eggert@twinsun.com>
35669
35670         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
35671         IRIX if the installer said otherwise.
35672
35673 2000-04-05  Jim Meyering  <meyering@lucent.com>
35674
35675         Portability tweaks required for ultrix4.3.
35676         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
35677         (jm_CHECK_DECLS): Add getutent to the list of functions.
35678         (_jm_DECL_HEADERS): Add utmpx.h.
35679         From John David Anglin.
35680
35681         * m4/strftime.m4: Back out the 2000-04-02 change.
35682         Instead of that change, simply undefine putenv in the test program.
35683
35684 2000-04-05  Jim Meyering  <meyering@lucent.com>
35685
35686         Portability tweaks required for ultrix4.3.
35687         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
35688         getutent.
35689         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
35690         * lib/canon-host.c: Declare strdup.
35691         * lib/path-concat.c: Likewise.
35692         From John David Anglin.
35693
35694 2000-04-04  Jim Meyering  <meyering@lucent.com>
35695
35696         Be more DOS 8.3-friendly.
35697         * lib/ref-add.sin: Renamed from ref-add.sed.in.
35698         * lib/ref-del.sin: Renamed from ref-del.sed.in.
35699         * lib/Makefile.am: Reflect renaming.
35700         Reported by Eli Zaretskii.
35701
35702         Use a temporary file name that won't clash with `charset.alias'
35703         in the DOS 8.3 name space.
35704         * lib/Makefile.am (charset_tmp): Define.
35705         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
35706         (uninstall-local): Likewise.
35707         Reported by Eli Zaretskii.
35708
35709 2000-04-03  Jim Meyering  <meyering@lucent.com>
35710
35711         * m4/gettext.m4: Fix typo in comment.
35712
35713         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
35714         textutils/configure.in).  Suggestion from Paul Eggert.
35715         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
35716
35717 2000-04-02  Paul Eggert  <eggert@twinsun.com>
35718
35719         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
35720         variable in the shell rather than using putenv, which isn't
35721         portable.  This avoids the configure-time inter-test dependency
35722         on the potentially-renamed putenv function.
35723
35724 2000-03-30  Paul Eggert  <eggert@twinsun.com>
35725
35726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
35727         before checking struct stat.st_blksize, so that
35728         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
35729
35730 2000-03-29  Paul Eggert  <eggert@twinsun.com>
35731
35732         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
35733         since strftime.c uses HAVE_STRFTIME to decide whether to use
35734         the underlying strftime.
35735
35736 2000-03-29  Paul Eggert  <eggert@twinsun.com>
35737
35738         * lib/time/strftime.c (my_strftime): Make sure we call the system
35739         strftime, not ourselves, when invoking the underlying strftime.
35740
35741 2000-03-24  Jim Meyering  <meyering@lucent.com>
35742
35743         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
35744         (charset_alias): Define.
35745         (install-exec-local): Factor out common code.
35746         (uninstall-local): Split lines longer than 80.
35747         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
35748         (SUFFIXES): Define.
35749         (.sed.in.sed): New rule.  Don't redirect directly to $@.
35750         (CLEANFILES): Add ref-add.sed and ref-del.sed.
35751
35752 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
35753
35754         * lib/config.charset: Output a line containing "Packages using this
35755         file".
35756         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
35757         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
35758         ref-del.sed): New rules.
35759
35760 2000-03-17  Jim Meyering  <meyering@lucent.com>
35761
35762         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
35763         Otherwise, include <strings.h>
35764
35765 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
35766
35767         * lib/unicodeio.c (utf8_wctomb): New function.
35768         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
35769         format instead of in UCS-4 with platform dependent endianness.
35770
35771 2000-03-10  Jim Meyering  <meyering@lucent.com>
35772
35773         * m4/lib-check.m4: Look for getspnam in -lgen, too.
35774         From Marco Franzen.
35775
35776 2000-03-07  Paul Eggert  <eggert@twinsun.com>
35777
35778         * lib/savedir.c (savedir): Work even if directory size is
35779         negative; this can happen with some screwy NFS configurations.
35780
35781 2000-03-06  Jim Meyering  <meyering@lucent.com>
35782
35783         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
35784         if it's NULL (because we ran out of memory).  From Bruno Haible.
35785
35786 2000-03-05  Jim Meyering  <meyering@lucent.com>
35787
35788         * lib/localcharset.c ("path-concat.h"): Include.
35789         (get_charset_aliases): Use path_concat instead of ANSI string
35790         concatenation.
35791
35792         * lib/unicodeio.h (PARAMS): Define.
35793         Use it to guard prototype.
35794
35795 2000-03-04  Jim Meyering  <meyering@lucent.com>
35796
35797         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
35798         for lib/localcharset.c.
35799
35800 2000-03-04  Jim Meyering  <meyering@lucent.com>
35801
35802         * lib/Makefile.am (install-exec-local): Create $(libdir) before
35803         installing into it.
35804         (uninstall-local): Uncomment this rule so `make distcheck' works
35805         once again.
35806
35807         * lib/unicodeio.c (<errno.h>): Include it.
35808         (errno): Declare if not defined.
35809
35810         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
35811
35812         * lib/config.charset: New version, incorporating remarks from a linux
35813         i18n mailing list.  From Bruno Haible.
35814
35815 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
35816
35817         * m4/codeset.m4: New file.
35818         * m4/iconv.m4: New file.
35819         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
35820
35821 2000-03-03  Jim Meyering  <meyering@lucent.com>
35822
35823         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
35824
35825 2000-03-02  Jim Meyering  <meyering@lucent.com>
35826
35827         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
35828         the messages come out on separate lines.
35829
35830         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
35831         rather than jm_CHECK_DECLARATIONS.
35832         * m4/decl.m4: Remove now-unused file.
35833
35834         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
35835         geteuid.
35836
35837 2000-03-02  Jim Meyering  <meyering@lucent.com>
35838
35839         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
35840
35841 2000-03-01  Jim Meyering  <meyering@lucent.com>
35842
35843         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
35844         * lib/unicodeio.c: Likewise.
35845
35846 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
35847
35848         * lib/config.charset: New file.
35849         * lib/localcharset.c: New file.
35850         * lib/unicodeio.h, lib/unicodeio.c: New files.
35851         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
35852         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
35853         (noinst_HEADERS): Add unicodeio.h.
35854         (all-local, install-exec-local, charset.alias): New targets.
35855
35856 2000-02-28  Paul Eggert  <eggert@twinsun.com>
35857
35858         * lib/quotearg.c (ALERT_CHAR): New macro.
35859         (quotearg_buffer_restyled): Use it.
35860
35861 2000-02-27  Jim Meyering  <meyering@lucent.com>
35862
35863         * m4/check-decl.m4: Add getenv to the list.
35864
35865 2000-02-27  Jim Meyering  <meyering@lucent.com>
35866
35867         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
35868         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
35869
35870         * lib/backupfile.c: Guard inclusion of stdlib.h with
35871         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
35872         Declare malloc if needed.
35873
35874         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
35875         `#ifndef HAVE_DECL..'
35876         now that autoconf always defines the HAVE_DECL_ symbols.
35877         * lib/human.c: Likewise.
35878         * lib/same.c: Likewise.
35879         * lib/strtoumax.c: Likewise.
35880
35881         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
35882         declaration check was not run.
35883         * lib/hash.c: Likewise.
35884         * lib/human.c: Likewise.
35885         * lib/same.c: Likewise.
35886         * lib/strtoumax.c: Likewise.
35887
35888         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
35889         `.', then first look up the entire `.'-containing string as a login
35890         name.
35891
35892 2000-02-23  Jim Meyering  <meyering@lucent.com>
35893
35894         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
35895         in place of my hack.
35896
35897 2000-02-18  Paul Eggert  <eggert@twinsun.com>
35898
35899         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
35900         (textint): New typedef.
35901         (parser_control): Member year changed from int to textint.
35902         All uses changed.
35903         (YYSTYPE): Removed; replaced by %union with int and textint members.
35904         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
35905         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
35906         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
35907         (tSNUMBER, tUNUMBER): Now of type <textintval>.
35908         (date, number, to_year): Use width of number in digits, not its value,
35909         to determine whether it's a 2-digit year, or a 2-digit time.
35910         (yylex): Store number of digits of numeric tokens.
35911         Reported by John Kendall.
35912
35913         (parser_control): Changed from struct parser_control to typedef (for
35914         consistency).  All uses changed.
35915
35916         (tID): Removed; not used.
35917         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
35918
35919 2000-02-14  Paul Eggert  <eggert@twinsun.com>
35920
35921         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
35922         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
35923
35924 2000-02-12  Jim Meyering  <meyering@lucent.com>
35925
35926         * lib/userspec.c (ISDIGIT): Define it.
35927         (isdigit): Remove definition.
35928         (is_number): Use ISDIGIT, not isdigit.
35929         <libintl.h>: Include.
35930         (_ and N_): Define.
35931         (parse_user_spec): Mark translatable strings.
35932
35933 2000-02-10  Jim Meyering  <meyering@lucent.com>
35934
35935         With these changes, nanosleep.[ch] are finally enough like the other
35936         lib/* replacement files to compile on a few more losing systems.
35937
35938         * lib/nanosleep.h: Don't include config.h.
35939         Remove prototype from declaration of nanosleep.
35940         (PARAMS): Remove now-unneeded definition.
35941         * lib/nanosleep.c: #undef nanosleep.
35942         (rpl_nanosleep): Rename from nanosleep.
35943
35944 2000-02-10  Jim Meyering  <meyering@lucent.com>
35945
35946         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
35947         gnu_nanosleep to rpl_nanosleep.
35948
35949 2000-02-09  Jim Meyering  <meyering@lucent.com>
35950
35951         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
35952         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
35953
35954 2000-02-08  Akim Demaille  <akim@epita.fr>
35955
35956         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
35957         `[' and `]' and remove uses of `changequote'.
35958         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
35959         (AC_SYS_LARGEFILE): Likewise.
35960         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35961         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
35962         of changequote.
35963         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
35964         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
35965         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
35966         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
35967
35968 2000-02-05  Jim Meyering  <meyering@lucent.com>
35969
35970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
35971         Remove explicit use of AC_HEADER_TIME.  It is required by
35972         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
35973         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
35974         in autoconf whereby the expansion of the latter ended up preceding
35975         the expansion of its prerequisite, AC_HEADER_TIME.
35976         Reported by Volker Borchert.
35977
35978 2000-02-03  Jim Meyering  <meyering@lucent.com>
35979
35980         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
35981
35982 2000-02-03  Jim Meyering  <meyering@lucent.com>
35983
35984         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
35985         rather than with `#if HAVE_UTMPNAME'.
35986
35987 2000-02-02  Jim Meyering  <meyering@lucent.com>
35988
35989         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
35990         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
35991         Reported by Eli Zaretskii.
35992
35993 2000-02-01  Jim Meyering  <meyering@lucent.com>
35994
35995         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
35996
35997 2000-01-31  Jim Meyering  <meyering@lucent.com>
35998
35999         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
36000         functions.  Add the time.h and sys/time.h headers along with the
36001         AC_REQUIRE'ment of AC_HEADER_TIME.
36002
36003 2000-01-31  Jim Meyering  <meyering@lucent.com>
36004
36005         * lib/nanosleep.h (nanosleep): Guard declaration with
36006         `#if ! HAVE_DECL_NANOSLEEP'.
36007         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
36008         the declaration in that vendor's sys/timers.h.
36009         Reported by Christian Krackowizer.
36010
36011         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
36012         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
36013         (ISPRINT): Likewise.
36014         Reported by Tom Tromey.
36015
36016 2000-01-30  Jim Meyering  <meyering@lucent.com>
36017
36018         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
36019
36020         * m4/prereq.m4 (utmp_includes): Define.
36021         Check for ut_user and ut_name members in both struct utmpx
36022         and struct utmp.
36023
36024 2000-01-30  Jim Meyering  <meyering@lucent.com>
36025
36026         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
36027         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
36028         header files where only utmpx.ut_user is declared.
36029
36030         * lib/readutmp.h (UT_USER): Define.
36031
36032 2000-01-29  Jim Meyering  <meyering@lucent.com>
36033
36034         * m4/lib-check.m4: New file containing library-related checks from
36035         fileutils and sh-utils (textutils had none).
36036
36037 2000-01-28  Jim Meyering  <meyering@lucent.com>
36038
36039         * m4/perl.m4: Change format of warning message to look more like that
36040         from the missing script.  Suggestion from François Pinard.
36041
36042 2000-01-25  Jim Meyering  <meyering@lucent.com>
36043
36044         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
36045         well as time.h in the compile check.
36046         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
36047         Fix typo in cross-compiling case: s/yes/no/.
36048
36049 2000-01-23  Jim Meyering  <meyering@lucent.com>
36050
36051         * m4/jm-macros.m4: Move df-related tests here from
36052         fileutils/configure.in
36053
36054         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
36055         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
36056
36057         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
36058         s/space/ac_fsusage_space/.
36059         (jm_FILE_SYSTEM_USAGE): Take two parameters.
36060
36061         * m4/ftruncate.m4: New file (derived from part of
36062         fileutils/configure.in).
36063         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
36064         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
36065
36066         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
36067         AC_SUBST these here, rather than just in sh-util/configure.in, so
36068         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
36069         all the same.
36070         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
36071         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
36072         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
36073         (AC_SUBST(POW_LIBM)): Likewise.
36074         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
36075
36076 2000-01-23  Jim Meyering  <meyering@lucent.com>
36077
36078         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
36079         obstack.c.
36080
36081 2000-01-22  Jim Meyering  <meyering@lucent.com>
36082
36083         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
36084
36085         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
36086
36087         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
36088         configure.in
36089         (AC_CHECK_HEADERS): Likewise for sh-utils.
36090         (AC_CHECK_HEADERS): Likewise for textutils.
36091         Merge the three lists of headers.
36092
36093         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
36094         from fileutils' configure.in.
36095
36096         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
36097         code. Moved tests into their own function (_jm_DECL_HEADERS) in
36098         check-decl.m4.
36099
36100         * m4/check-decl.m4: Use #if rather than #ifdef.
36101         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
36102         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
36103         (_jm_DECL_HEADERS): Define new function.
36104         (jm_CHECK_DECLARATIONS): Require it.
36105
36106 2000-01-22  Jim Meyering  <meyering@lucent.com>
36107
36108         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
36109         [! HAVE_DECL_STRTOULL]: Declare strtoull.
36110         Required for some AIX systems.  Reported by Christian Krackowizer.
36111         [TESTING] (main): New function.
36112
36113         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
36114         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
36115         letters.
36116
36117         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
36118         iswprint.
36119
36120         * lib/strverscmp.c (ISDIGIT): Define.
36121         (strverscmp): Use ISDIGIT, not isdigit.
36122
36123 2000-01-19  Jim Meyering  <meyering@lucent.com>
36124
36125         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
36126         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
36127         defines `struct timespec' in <sys/time.h>
36128
36129         * m4/c-bs-a.m4: Remove uses of changequote altogether.
36130         Thanks to Akim for explaining.
36131
36132 2000-01-17  Paul Eggert  <eggert@twinsun.com>
36133
36134         * lib/nanosleep.c (nanosleep):
36135         Don't use SA_INTERRUPT to decide whether to call sigaction, as
36136         POSIX.1 doesn't require SA_INTERRUPT and some systems
36137         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
36138         it's been part of POSIX.1 since day 1 (in 1988).
36139
36140 2000-01-17  Jim Meyering  <meyering@lucent.com>
36141
36142         * lib/interlock: Remove unused file.  Reported by François Pinard.
36143
36144 2000-01-16  Paul Eggert  <eggert@twinsun.com>
36145
36146         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
36147         alert, backslash, formfeed, and vertical tab unnecessarily in
36148         shell quoting style.
36149
36150 2000-01-16  Jim Meyering  <meyering@lucent.com>
36151
36152         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
36153         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
36154         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
36155         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
36156
36157 2000-01-16  Jim Meyering  <meyering@lucent.com>
36158
36159         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
36160         because the latter didn't work.
36161
36162 2000-01-15  Jim Meyering  <meyering@lucent.com>
36163
36164         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
36165         (AC_REPLACE_FUNCS): Add memcpy and memset.
36166         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
36167         Add strpbrk.
36168         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
36169
36170 2000-01-12  Jim Meyering  <meyering@lucent.com>
36171
36172         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
36173         (jm_PREREQ): Use it.
36174         (jm_PREREQ_READUTMP): New macro.
36175         (jm_PREREQ): Use it.
36176
36177 2000-01-11  Paul Eggert  <eggert@twinsun.com>
36178
36179         Quote multibyte characters correctly.
36180         * m4/c-bs-a.m4: New file.
36181         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
36182         (jm_PREREQ): Use it.
36183
36184 2000-01-11  Paul Eggert  <eggert@twinsun.com>
36185
36186         * m4/uintmax_t.m4: Port to autoconf 2.13.
36187
36188 2000-01-08  Jim Meyering  <meyering@ascend.com>
36189
36190         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
36191         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
36192
36193 2000-01-04  Jim Meyering  <meyering@ascend.com>
36194
36195         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
36196         jm_STRUCT_DIRENT_D_TYPE.
36197         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
36198         jm_STRUCT_DIRENT_D_INO.
36199         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
36200         jm_STRUCT_UTIMBUF.
36201         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
36202         renamings.
36203         * m4/utime.m4: Likewise.
36204
36205         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
36206         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
36207
36208 2000-01-03  Paul Eggert  <eggert@twinsun.com>
36209
36210         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
36211         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
36212
36213 2000-01-02  Jim Meyering  <meyering@ascend.com>
36214
36215         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
36216         remember if this is necessary.
36217
36218 1999-12-26  Jim Meyering  <meyering@ascend.com>
36219
36220         * m4/jm-macros.m4: Use it here.
36221         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
36222
36223 1999-12-23  Jim Meyering  <meyering@ascend.com>
36224
36225         * m4/jm-macros.m4: Check for clock_gettime (moved from
36226         fileutils/configure.in)
36227         Check for gettimeofday.
36228
36229 1999-12-20  Jim Meyering  <meyering@ascend.com>
36230
36231         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
36232         autoconf-2.14a-1999-12-20.
36233
36234 1999-12-19  Jim Meyering  <meyering@ascend.com>
36235
36236         * m4/lstat-slash.m4: New file.
36237         * m4/jm-macros.m4: Use the new macro:
36238         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36239
36240 1999-12-07  Jim Meyering  <meyering@ascend.com>
36241
36242         * m4/perl.m4: Require that File::Compare be available, too.
36243         Too many systems seem to lack it.
36244
36245         * m4/strftime.m4: Add checks for most of the cpp macros tested in
36246         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
36247
36248 1999-11-18  Paul Eggert  <eggert@twinsun.com>
36249
36250         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
36251         problem with the QNX 4.25 shell, which doesn't propagate exit
36252         status of failed commands inside shell assignments.
36253
36254 1999-11-17  Jim Meyering  <meyering@ascend.com>
36255
36256         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
36257
36258 1999-11-07  Jim Meyering  <meyering@ascend.com>
36259
36260         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
36261
36262 1999-11-06  Jim Meyering  <meyering@ascend.com>
36263
36264         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
36265         * m4/jm-macros.m4 (jm_MACROS): Use it here.
36266
36267 1999-11-05  Jim Meyering  <meyering@ascend.com>
36268
36269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
36270         configure.in of textutils, fileutils, and sh-utils into this one
36271         (shared between those packages) file.
36272         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
36273         AC_STRUCT_ST_BLKSIZE.
36274
36275 1999-11-03  Jim Meyering  <meyering@ascend.com>
36276
36277         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
36278         of AC_CHECK_TYPE checks includes unistd.h.
36279         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
36280         Suggestion from Akim Demaille.
36281
36282 1999-10-30  Jim Meyering  <meyering@ascend.com>
36283
36284         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
36285         m4-quoted string.
36286         * m4/ls-mntd-fs.m4: Likewise.
36287         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
36288         * m4/jm-winsz1.m4: Likewise.
36289
36290         * m4/const.m4: Remove file, since the fix made it into the experimental
36291         version of autoconf.
36292         * m4/mktime.m4: Likewise.
36293
36294         * m4/check-type.m4: Remove file, now that the latest version of
36295         AC_CHECK_TYPE takes a third arg to specify additional #includes.
36296
36297         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
36298         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
36299         AC_CHECK_TYPE.
36300
36301 1999-10-04  Jim Meyering  <meyering@ascend.com>
36302
36303         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
36304
36305 1999-09-22  Paul Eggert  <eggert@twinsun.com>
36306
36307         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
36308         2.95.1 bug with HP-UX 10.20.
36309
36310 1999-09-17  Jim Meyering  <meyering@ascend.com>
36311
36312         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
36313         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
36314         due to missing strdup (against sh-utils-2.0).
36315
36316 1999-08-29  Jim Meyering  <meyering@ascend.com>
36317
36318         * m4/jm-macros.m4: Require jm_BISON.
36319         * m4/bison.m4: New file.
36320
36321 1999-08-17  Paul Eggert  <eggert@twinsun.com>
36322
36323         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
36324         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
36325
36326 1999-08-05  Jim Meyering  <meyering@ascend.com>
36327
36328         * m4/getline.m4: Rename test file from conftestdata to conftest.data
36329         to avoid conflicts with `conftest' on 8+3 filesystems.
36330         Suggestion from Eli Zaretskii.
36331
36332 1999-08-04  Jim Meyering  <meyering@ascend.com>
36333
36334         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
36335         fileutils and sh-utils (textutils's getline test was inadequate).
36336         (AM_FUNC_GETLINE): Run this test.
36337         (AC_CHECK_FUNCS): Check for getdelim.
36338         Reported by Bob Proulx.
36339
36340 1999-08-02  Jim Meyering  <meyering@ascend.com>
36341
36342         * m4/jm-macros.m4: Add a comment.
36343
36344 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36345
36346         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
36347         <inttypes.h> defines strtoumax as a macro (and not as a
36348         function).
36349
36350 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36351
36352         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
36353         that we can shift, multiply and divide unsigned long long
36354         values; Ultrix cc can't do it.
36355
36356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36357
36358         * m4/mktime.m4: New file, which is a preview of what should appear
36359         in the next public autoconf release.
36360
36361 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36362
36363         * m4/lfs.m4: Remove this file.
36364         * m4/largefile.m4: New file.  It contains the old contents of
36365         lfs.m4, except that all names with prefix AC_LFS have been
36366         changed to use the prefix AC_SYS_LARGEFILE instead, to be
36367         compatible with future autoconf versions.  Also, some minor m4
36368         quoting problems have been fixed.
36369
36370 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36371
36372         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
36373         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
36374         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
36375         and simplify the shell code.
36376
36377 1999-08-01  Jim Meyering  <meyering@ascend.com>
36378
36379         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
36380         m4.
36381
36382 1999-07-20  Jim Meyering  <meyering@ascend.com>
36383
36384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
36385
36386 1999-07-15  Jim Meyering  <meyering@ascend.com>
36387
36388         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
36389
36390 1999-05-22  Jim Meyering  <meyering@ascend.com>
36391
36392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
36393
36394 1999-05-20  Jim Meyering  <meyering@ascend.com>
36395
36396         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
36397         Add a colon after each `then' in case $4 is empty.
36398
36399 1999-05-16  Jim Meyering  <meyering@ascend.com>
36400
36401         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
36402
36403 1999-05-10  Jim Meyering  <meyering@ascend.com>
36404
36405         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
36406
36407         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
36408         AC_FUNC_MKTIME.
36409
36410 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
36411
36412         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
36413
36414 1999-05-04  Paul Eggert  <eggert@twinsun.com>
36415
36416         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
36417         not CPPFLAGS, so that linking works correctly in IRIX.
36418
36419 1999-04-30  Paul Eggert  <eggert@twinsun.com>
36420
36421         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
36422
36423 1999-04-20  Paul Eggert  <eggert@twinsun.com>
36424
36425         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
36426         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
36427         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
36428         jm_AC_TYPE_UNSIGNED_LONG_LONG.
36429         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
36430
36431         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
36432
36433 1999-04-20  Jim Meyering  <meyering@ascend.com>
36434
36435         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
36436         AC_REPLACE xstroull if necessary.  From Paul Eggert.
36437         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
36438
36439 1999-04-18  Jim Meyering  <meyering@ascend.com>
36440
36441         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
36442         * m4/jm-macros.m4: Use it.
36443
36444 1999-04-06  Jim Meyering  <meyering@ascend.com>
36445
36446         * m4/strftime.m4: Remove test for %f.
36447
36448 1999-03-29  Jim Meyering  <meyering@ascend.com>
36449
36450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
36451         superset of the AC_TYPE_* checks in the textutils, fileutils,
36452         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
36453         AC_TYPE_PID_T.
36454
36455 1999-03-28  Jim Meyering  <meyering@ascend.com>
36456
36457         * m4/jm-macros.m4: Define GNU_PACKAGE here.
36458         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
36459         replaced e.g., in the *.sh files of the sh-utils.
36460
36461 1999-03-20  Jim Meyering  <meyering@ascend.com>
36462
36463         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
36464         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
36465         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
36466
36467 1999-03-19  Jim Meyering  <meyering@ascend.com>
36468
36469         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
36470
36471 1999-03-12  Jim Meyering  <meyering@ascend.com>
36472
36473         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
36474
36475 1999-03-07  Jim Meyering  <meyering@ascend.com>
36476
36477         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
36478         declared.
36479
36480 1999-02-17  Jim Meyering  <meyering@ascend.com>
36481
36482         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
36483         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
36484
36485 1999-02-07  Jim Meyering  <meyering@ascend.com>
36486
36487         * m4/group-member.m4: New file -- extracted from sh-utils'
36488         configure.in.
36489
36490         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
36491         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
36492
36493 1999-02-06  Jim Meyering  <meyering@ascend.com>
36494
36495         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
36496         * m4/fnmatch.m4: Likewise.
36497         * m4/getgroups.m4: Likewise.
36498         * m4/lstat.m4: Likewise.
36499         * m4/malloc.m4: Likewise.
36500         * m4/putenv.m4: Likewise.
36501         * m4/realloc.m4: Likewise.
36502         * m4/regex.m4: Likewise.
36503         * m4/stat.m4: Likewise.
36504         * m4/strftime.m4: Likewise.
36505         Suggestion from Alain Magloire.
36506
36507         * m4/chown.m4: Use `.$ac_objext', not `.o'.
36508         * m4/fnmatch.m4: Likewise.
36509         * m4/getgroups.m4: Likewise.
36510         * m4/getline.m4: Likewise.
36511         * m4/lstat.m4: Likewise.
36512         * m4/malloc.m4: Likewise.
36513         * m4/memcmp.m4: Likewise.
36514         * m4/putenv.m4: Likewise.
36515         * m4/realloc.m4: Likewise.
36516         * m4/regex.m4: Likewise.
36517         * m4/stat.m4: Likewise.
36518         * m4/strftime.m4: Likewise.
36519         Suggestion from Alain Magloire.
36520
36521         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
36522         an argument.
36523
36524         * m4/regex.m4: Add a run-time Test for proper operation of
36525         re_compile_pattern.
36526
36527 1999-01-31  Jim Meyering  <meyering@ascend.com>
36528
36529         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
36530
36531 1999-01-30  Jim Meyering  <meyering@ascend.com>
36532
36533         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
36534
36535         * m4/jm-mktime.m4: Make this a wrapper around the official
36536         AM_FUNC_MKTIME rather than my private copy, now that the official one
36537         is up to date.
36538         * m4/mktime.m4: Remove file.
36539
36540         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
36541         * m4/uptime.m4: Likewise.
36542         * m4/uintmax_t.m4: Likewise.
36543
36544 1999-01-28  Jim Meyering  <meyering@ascend.com>
36545
36546         * m4/jm-macros.m4: Use jm_AFS.
36547         * m4/afs.m4: New file (from fileutils' configure.in).
36548
36549         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
36550         * m4/chown.m4: Likewise.
36551         * m4/d-ino.m4: Likewise.
36552         * m4/d-type.m4: Likewise.
36553         * m4/fnmatch.m4: Likewise.
36554         * m4/getgroups.m4: Likewise.
36555         * m4/gettext.m4: Likewise.
36556         * m4/jm-mktime.m4: Likewise.
36557         * m4/jm-winsz2.m4: Likewise.
36558         * m4/lcmessage.m4: Likewise.
36559         * m4/ls-mntd-fs.m4: Likewise.
36560         * m4/malloc.m4: Likewise.
36561         * m4/memcmp.m4: Likewise.
36562         * m4/putenv.m4: Likewise.
36563         * m4/realloc.m4: Likewise.
36564         * m4/st_mtim.m4: Likewise.
36565         * m4/strftime.m4: Likewise.
36566
36567 1999-01-16  Jim Meyering  <meyering@ascend.com>
36568
36569         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
36570         (ARGMATCH_DIE_DECL): Define.
36571
36572 1999-01-12  Jim Meyering  <meyering@ascend.com>
36573
36574         * m4/Makefile.am.in: Rewrite to avoid using fmt.
36575         Reported by Lars Hecking.
36576
36577 1999-01-10  Jim Meyering  <meyering@ascend.com>
36578
36579         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
36580         gross kludge.
36581         * m4/inttypes_h.m4: Likewise.
36582         * m4/lstat.m4: Likewise.
36583         * m4/malloc.m4: Likewise.
36584         * m4/readdir.m4: Likewise.
36585         * m4/realloc.m4: Likewise.
36586         * m4/st_dm_mode.m4: Likewise.
36587         * m4/stat.m4: Likewise.
36588         * m4/utimbuf.m4: Likewise.
36589         * m4/utimes.m4: Likewise.
36590
36591         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
36592         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
36593         comments in config.h.in are meaningful.
36594
36595         * m4/jm-macros.m4: Require autoconf-2.13 here.
36596
36597         * m4/regex.m4: By default, don't use the included regex.c on systems
36598         with glibc 2.  Suggestion from Uli Drepper.
36599
36600 1999-01-02  Jim Meyering  <meyering@ascend.com>
36601
36602         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
36603
36604 1998-12-18  Jim Meyering  <meyering@ascend.com>
36605
36606         * m4/Makefile.am.in (Makefile.am): Simplify rule.
36607         Based on a suggestion from Lars Hecking.
36608
36609 1998-11-16  Paul Eggert  <eggert@twinsun.com>
36610
36611         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
36612
36613 1998-11-16  Jim Meyering  <meyering@ascend.com>
36614
36615         * m4/lfs.m4: Double-quote the `uname...` expression.
36616
36617 1998-11-14  Jim Meyering  <meyering@ascend.com>
36618
36619         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
36620         * m4/stat.m4: Likewise.
36621
36622 1998-11-03  Jim Meyering  <meyering@ascend.com>
36623
36624         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
36625         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
36626
36627 1998-10-18  Jim Meyering  <meyering@ascend.com>
36628
36629         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
36630
36631 1998-10-17  Jim Meyering  <meyering@ascend.com>
36632
36633         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
36634         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
36635         calls for those previously hard-coded headers.  Instead, take a new
36636         parameter.
36637         (jm_CHECK_DECLARATIONS): Reflect interface change.
36638         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
36639         (jm_CHECK_DECL_LOCALTIME_R): New macro.
36640
36641         * m4/mktime.m4: Test for spring-forward gap before long-running test.
36642
36643 1998-10-14  Jim Meyering  <meyering@ascend.com>
36644
36645         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
36646         instead of "TZ=America/Vancouver".  From Paul Eggert.
36647
36648 1998-10-11  Jim Meyering  <meyering@ascend.com>
36649
36650         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
36651         This adds a test for a recently added compatibility fix for mktime.c.
36652         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
36653
36654 1998-09-27  Jim Meyering  <meyering@ascend.com>
36655
36656         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
36657
36658         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
36659         ../configure.in, including a change from Gordon Matzigkeit to allow
36660         cross-compiling for the Hurd.
36661
36662         * m4/glibc.m4: New file/macro to test for the GNU C Library
36663         versions 1 and 2.  From Gordon Matzigkeit.
36664         Indent.
36665
36666 1998-09-21  Jim Meyering  <meyering@ascend.com>
36667
36668         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
36669
36670 1998-08-18  Paul Eggert  <eggert@twinsun.com>
36671
36672         Port nanosecond-resolution times to UnixWare 2.1.2 and
36673         pedantic Solaris 2.6.
36674
36675         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
36676         AC_STRUCT_ST_MTIM.
36677         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
36678         Generate name of ns member, instead of just 1 or undef.
36679         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
36680
36681 1998-08-15  Jim Meyering  <meyering@ascend.com>
36682
36683         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
36684         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
36685         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
36686         instead of jm_TYPE_SSIZE_T.
36687
36688 1998-08-12  Jim Meyering  <meyering@ascend.com>
36689
36690         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
36691
36692 1998-08-02  Jim Meyering  <meyering@ascend.com>
36693
36694         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
36695         in acconfig.h manually.
36696
36697 1998-07-31  Paul Eggert  <eggert@twinsun.com>
36698
36699         * m4/st_mtim.m4: New file.
36700
36701 1998-07-28  Jim Meyering  <meyering@ascend.com>
36702
36703         * m4/utimes.m4: Undef stat.
36704
36705 1998-07-25  Jim Meyering  <meyering@ascend.com>
36706
36707         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
36708         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
36709
36710 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
36711
36712         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
36713         uid and gid actually remain unchanged.
36714
36715 1998-07-07  Jim Meyering  <meyering@ascend.com>
36716
36717         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
36718
36719 1998-07-04  Jim Meyering  <meyering@ascend.com>
36720
36721         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
36722         to prove that this macro can be used in packages without regex.c.
36723
36724 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
36725
36726         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
36727         is to be used.
36728
36729 1998-07-03  Jim Meyering  <meyering@ascend.com>
36730
36731         * m4/gettext.m4: Add -lintl if it's found to be necessary.
36732
36733         * m4/gettext.m4: New file -- from gettext-0.10.35.
36734         * m4/lcmessage.m4: Likewise.
36735         * m4/progtest.m4: Likewise.
36736
36737         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
36738         * m4/jm-macros.m4: Require the new macro.
36739
36740 1998-06-29  Jim Meyering  <meyering@ascend.com>
36741
36742         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
36743         for the definition of NGROUPS (used in a system header included
36744         by sys/mount.h).
36745
36746 1998-06-28  Jim Meyering  <meyering@ascend.com>
36747
36748         * m4/ls-mntd-fs.m4: New file.
36749         * m4/fstypename.m4: New file.
36750
36751         * m4/jm-macros.m4: Require the new macro.
36752         * m4/jm-glibc-io.m4: New file.
36753
36754 1998-05-19  Jim Meyering  <meyering@ascend.com>
36755
36756         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
36757         * m4/lchown.m4: New file.
36758
36759         * m4/Makefile.am.in: New file.
36760         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
36761
36762 1998-05-14  Jim Meyering  <meyering@ascend.com>
36763
36764         * m4/Makefile.am (EXTRA_DIST): Add them.
36765         * m4/jm-macros.m4: New file.
36766         * m4/utimbuf.m4: New file.
36767
36768 1998-05-12  Jim Meyering  <meyering@ascend.com>
36769
36770         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
36771
36772 1998-05-11  Jim Meyering  <meyering@ascend.com>
36773
36774         * m4/isc-posix.m4: New file.
36775
36776 1998-05-10  Jim Meyering  <meyering@ascend.com>
36777
36778         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
36779
36780 1998-05-09  Jim Meyering  <meyering@ascend.com>
36781
36782         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
36783         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
36784         with automake.
36785
36786         * m4/ssize_t.m4: New file.
36787         * m4/mktime.m4: Remove file -- the new automake has this now.
36788
36789 1998-04-26  Jim Meyering  <meyering@ascend.com>
36790
36791         * m4/assert.m4: New file.
36792         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
36793
36794 1998-04-05  Jim Meyering  <meyering@ascend.com>
36795
36796         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
36797         (jm_PREREQ): Use it here.
36798
36799 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
36800
36801         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
36802         in acconfig.h.
36803
36804 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
36805
36806         * m4/prereq.m4: New file.
36807         * m4/error.m4: New file.
36808         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
36809
36810 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
36811
36812         * m4/getline.m4: Don't set am_cv_func_working_getline before the
36813         cache-check for the same variable -- that defeated the purpose of
36814         the test; the test program was never run.  This was a problem only
36815         on systems with losing getline functions -- HP-UX 10.20 is one.
36816         Reported by Bjorn Helgaas.
36817
36818 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
36819
36820         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
36821
36822 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
36823
36824         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
36825
36826         * m4/const.m4: New file.  Use an initializer in this declaration
36827         typedef int charset[2]; const charset x;
36828         Reported by Bob Glickstein.
36829
36830 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
36831
36832         * m4/chown.m4: Fix reversed types on -1 args to chown.
36833         From Kaveh Ghazi.
36834
36835 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
36836
36837         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
36838         Add lseek and memchr.
36839
36840         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
36841         T.E.Dickey <dickey@clark.net> said that some older preprocessors
36842         have a 20-character limit on names.
36843
36844 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
36845
36846         * m4/inttypes_h.m4: New file.
36847         * m4/uintmax_t.m4: New file.
36848         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
36849
36850 Copyright (C) 1997-2007 Free Software Foundation, Inc.
36851 Copying and distribution of this file, with or without modification,
36852 are permitted provided the copyright notice and this notice are preserved.