54c459804c5a8176c0fe6e6203d3b35d60d23874
[gnulib.git] / ChangeLog
1 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2
3         include_next: do not check for standard headers like stddef.h
4
5         I found this problem when modifying Emacs to use gnulib.
6         I noticed that it added HAVE_STDDEF_H to config.h, even though
7         gnulib always assumes <stddef.h> exists as per README and this
8         symbol is unnecessary.
9         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12         faster for headers like stddef.h that are known to exist.
13         (gl_CHECK_NEXT_HEADERS): Use it.
14         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15         rather than gl_CHECK_NEXT_HEADERS.
16         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18
19 2011-01-18  Eric Blake  <eblake@redhat.com>
20
21         ansi-c++-opt: skip C++ dependency style if C++ is unused
22         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23         tests when we know C++ compilation is not desired.
24         Reported by Scott McCreary.
25
26 2011-01-18  Bruno Haible  <bruno@clisp.org>
27
28         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
29         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
30         (main): Perform test also when getrlimit and setrlimit don't exist or
31         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
32         limiting the address space size using setrlimit, compare the address
33         space size before and after the the test.
34         * tests/test-dprintf-posix2.c: Likewise.
35         * tests/test-fprintf-posix3.sh: Update skip messages.
36         * tests/test-dprintf-posix2.sh: Likewise.
37         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
38         * modules/dprintf-posix-tests (Depends-on): Likewise.
39         Reported by Bruce Korb <bkorb@gnu.org> and
40         Gary V. Vaughan <gary@gnu.org>.
41
42 2011-01-18  Bruno Haible  <bruno@clisp.org>
43
44         get-rusage-as: Improvement for Cygwin.
45         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
46         areas that are merely reserved.
47
48 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49
50         strftime: remove dependencies on multibyte modules
51
52         strftime depended on mbrlen, mbsinit, and wchar, but these modules
53         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
54         only if __osf__ is defined, and I suspect OSF doesn't need these
55         other modules.  If my guess is wrong, we'll need to come up with a
56         variant of strftime that doesn't need the multibyte modules.
57
58         I discovered this problem when attempting modify Emacs to use the
59         strftime module.  With the previous gnulib, this caused Emacs to
60         need 31 new files, ranging from lib/config.charset to
61         m4/wint_t.m4.  This was overkill and I expect would be offputting
62         to the Emacs maintainers.  After this change, only 6 new files are
63         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
64         stdbool.m4, and tm_gmtoff.m4.
65
66         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
67         Suggested by Bruno Haible in
68         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
69         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
70         and do not check for wchar.h.
71         * modules/strftime (Files): Remove m4/mbstate_t.m4.
72         (Depends-on): Remove mbrlen, mbsinit, wchar.
73
74 2011-01-18  Bruno Haible  <bruno@clisp.org>
75
76         Tests for module 'get-rusage-as'.
77         * modules/get-rusage-as-tests: New file.
78         * tests/test-get-rusage-as.c: New file.
79
80         New module 'get-rusage-as'.
81         * modules/get-rusage-as: New file.
82         * lib/resource-ext.h: New file.
83         * lib/get-rusage-as.c: New file.
84
85 2011-01-17  Eric Blake  <eblake@redhat.com>
86
87         sigaction: relax license from LGPLv3+ to LGPLv2+
88         * modules/sigaction (License): Relax to LGPLv2+.
89
90 2011-01-14  Bruno Haible  <bruno@clisp.org>
91
92         filemode: Make function declarations usable in C++ mode.
93         * lib/filemode.h: Enclose function declarations in extern "C" block.
94         Reported by John W. Eaton <jwe@gnu.org>.
95
96 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
97
98         save-cwd: no longer include "xgetcwd.h"
99         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
100         This avoids a compilation failure in projects that use save-cwd
101         without also using the xgetcwd module.
102
103 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
104
105         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
106         This is so that a program like Emacs, which needs only dtoastr,
107         does not have to bother with distributing and compiling ftoastr
108         and ldtoastr.
109         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
110         * modules/dtoastr, modules/ldtoastr: New files.
111         * modules/ftoastr: Now works just for 'float'.
112         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
113         (Makefile.am): Remove ftoastr.h (not needed and no effect),
114         dtoastr.c, ldtoastr.c.
115
116 2011-01-11  Jim Meyering  <meyering@redhat.com>
117
118         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
119         There is no need to work around the lack of the fchdir function,
120         since gnulib can now provide a replacement when required.
121         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
122         * modules/save-cwd (Depends-on): Add fchdir.
123
124 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
125
126         openat, save-cwd: avoid xmalloc
127
128         This removes a direct (but undocumented) dependency of openat on
129         xalloc, along with an indirect dependency via save-cwd.  It also
130         removes a dependency of save-cwd on xgetcwd, and thereby
131         indirectly on xalloc.  This change causes the openat substitute
132         to fall back on save_cwd when memory is tight, and for save_cwd to
133         fail instead of dying when memory is tight, but that's good enough.
134
135         * lib/openat-proc.c: Include stdlib.h (for malloc), not
136         xalloc.h (for xmalloc).
137         (openat_proc_name): Use malloc, not xmalloc.
138         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
139         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
140
141         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
142         This avoids heap allocation for file names whose lengths are in
143         the range 512..1023, with the upper bound increasing to at most
144         4031 depending on the platform's PATH_MAX.  (We do not want
145         pathmax.h here as it might supply a non-constant PATH_MAX.)
146         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
147         Perhaps they should be moved to malloca.h?
148         (OPENAT_BUFFER_SIZE): Use them.
149
150 2011-01-10  Bruno Haible  <bruno@clisp.org>
151
152         doc: Update users.txt.
153         * users.txt: Add recutils.
154
155 2011-01-09  Karl Berry  <karl@gnu.org>
156
157         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
158
159         * doc/configmake.texi: New file.
160         * doc/gnulib.texi: Include it.
161         * modules/configmake: Move documentation from here.
162
163 2011-01-09  Bruno Haible  <bruno@clisp.org>
164
165         Update to Unicode 6.0.0.
166         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
167         (get_lbp): Update for Unicode 6.0.0.
168         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
169         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
170         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
171         U+11001, U+11038..U+11046. Remove U+06DE.
172         (uc_width): Fix bounds of planes.
173         * tests/uniwidth/test-uc_width2.sh: Same updates as in
174         lib/uniwidth/width.c.
175         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
176         trailing whitespace removed.
177         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
178         without comments, but with the original copyright notice.
179         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
180         * lib/unicase/ignorable.h: Likewise.
181         * lib/unicase/tocasefold.h: Likewise.
182         * lib/unicase/tolower.h: Likewise.
183         * lib/unicase/totitle.h: Likewise.
184         * lib/unicase/toupper.h: Likewise.
185         * lib/unictype/bidi_of.h: Likewise.
186         * lib/unictype/blocks.h: Likewise.
187         * lib/unictype/categ_C.h: Likewise.
188         * lib/unictype/categ_Cn.h: Likewise.
189         * lib/unictype/categ_L.h: Likewise.
190         * lib/unictype/categ_Ll.h: Likewise.
191         * lib/unictype/categ_Lm.h: Likewise.
192         * lib/unictype/categ_Lo.h: Likewise.
193         * lib/unictype/categ_Lu.h: Likewise.
194         * lib/unictype/categ_M.h: Likewise.
195         * lib/unictype/categ_Mc.h: Likewise.
196         * lib/unictype/categ_Me.h: Likewise.
197         * lib/unictype/categ_Mn.h: Likewise.
198         * lib/unictype/categ_N.h: Likewise.
199         * lib/unictype/categ_Nd.h: Likewise.
200         * lib/unictype/categ_No.h: Likewise.
201         * lib/unictype/categ_P.h: Likewise.
202         * lib/unictype/categ_Po.h: Likewise.
203         * lib/unictype/categ_S.h: Likewise.
204         * lib/unictype/categ_Sc.h: Likewise.
205         * lib/unictype/categ_Sk.h: Likewise.
206         * lib/unictype/categ_Sm.h: Likewise.
207         * lib/unictype/categ_So.h: Likewise.
208         * lib/unictype/categ_of.h: Likewise.
209         * lib/unictype/combining.h: Likewise.
210         * lib/unictype/ctype_alnum.h: Likewise.
211         * lib/unictype/ctype_alpha.h: Likewise.
212         * lib/unictype/ctype_graph.h: Likewise.
213         * lib/unictype/ctype_lower.h: Likewise.
214         * lib/unictype/ctype_print.h: Likewise.
215         * lib/unictype/ctype_punct.h: Likewise.
216         * lib/unictype/ctype_upper.h: Likewise.
217         * lib/unictype/decdigit.h: Likewise.
218         * lib/unictype/digit.h: Likewise.
219         * lib/unictype/numeric.h: Likewise.
220         * lib/unictype/pr_alphabetic.h: Likewise.
221         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
222         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
223         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
224         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
225         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
226         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
227         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
228         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
229         * lib/unictype/pr_case_ignorable.h: Likewise.
230         * lib/unictype/pr_cased.h: Likewise.
231         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
232         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
233         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
234         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
235         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
236         * lib/unictype/pr_combining.h: Likewise.
237         * lib/unictype/pr_composite.h: Likewise.
238         * lib/unictype/pr_currency_symbol.h: Likewise.
239         * lib/unictype/pr_decimal_digit.h: Likewise.
240         * lib/unictype/pr_deprecated.h: Likewise.
241         * lib/unictype/pr_format_control.h: Likewise.
242         * lib/unictype/pr_grapheme_base.h: Likewise.
243         * lib/unictype/pr_grapheme_extend.h: Likewise.
244         * lib/unictype/pr_grapheme_link.h: Likewise.
245         * lib/unictype/pr_id_continue.h: Likewise.
246         * lib/unictype/pr_id_start.h: Likewise.
247         * lib/unictype/pr_ideographic.h: Likewise.
248         * lib/unictype/pr_lowercase.h: Likewise.
249         * lib/unictype/pr_math.h: Likewise.
250         * lib/unictype/pr_numeric.h: Likewise.
251         * lib/unictype/pr_other_alphabetic.h: Likewise.
252         * lib/unictype/pr_other_id_continue.h: Likewise.
253         * lib/unictype/pr_other_math.h: Likewise.
254         * lib/unictype/pr_punctuation.h: Likewise.
255         * lib/unictype/pr_sentence_terminal.h: Likewise.
256         * lib/unictype/pr_terminal_punctuation.h: Likewise.
257         * lib/unictype/pr_unassigned_code_value.h: Likewise.
258         * lib/unictype/pr_unified_ideograph.h: Likewise.
259         * lib/unictype/pr_uppercase.h: Likewise.
260         * lib/unictype/pr_xid_continue.h: Likewise.
261         * lib/unictype/pr_xid_start.h: Likewise.
262         * lib/unictype/scripts.h: Likewise.
263         * lib/unictype/scripts_byname.gperf: Likewise.
264         * lib/unictype/sy_java_ident.h: Likewise.
265         * lib/unigbrk/gbrkprop.h: Likewise.
266         * lib/unilbrk/lbrkprop1.h: Likewise.
267         * lib/unilbrk/lbrkprop2.h: Likewise.
268         * lib/uninorm/decomposition-table2.h: Likewise.
269         * lib/uniwbrk/wbrkprop.h: Likewise.
270         * tests/unicase/test-cased.c: Likewise.
271         * tests/unicase/test-ignorable.c: Likewise.
272         * tests/unicase/test-uc_tolower.c: Likewise.
273         * tests/unicase/test-uc_totitle.c: Likewise.
274         * tests/unicase/test-uc_toupper.c: Likewise.
275         * tests/unictype/test-categ_C.c: Likewise.
276         * tests/unictype/test-categ_Cn.c: Likewise.
277         * tests/unictype/test-categ_L.c: Likewise.
278         * tests/unictype/test-categ_Ll.c: Likewise.
279         * tests/unictype/test-categ_Lm.c: Likewise.
280         * tests/unictype/test-categ_Lo.c: Likewise.
281         * tests/unictype/test-categ_Lu.c: Likewise.
282         * tests/unictype/test-categ_M.c: Likewise.
283         * tests/unictype/test-categ_Mc.c: Likewise.
284         * tests/unictype/test-categ_Me.c: Likewise.
285         * tests/unictype/test-categ_Mn.c: Likewise.
286         * tests/unictype/test-categ_N.c: Likewise.
287         * tests/unictype/test-categ_Nd.c: Likewise.
288         * tests/unictype/test-categ_No.c: Likewise.
289         * tests/unictype/test-categ_P.c: Likewise.
290         * tests/unictype/test-categ_Po.c: Likewise.
291         * tests/unictype/test-categ_S.c: Likewise.
292         * tests/unictype/test-categ_Sc.c: Likewise.
293         * tests/unictype/test-categ_Sk.c: Likewise.
294         * tests/unictype/test-categ_Sm.c: Likewise.
295         * tests/unictype/test-categ_So.c: Likewise.
296         * tests/unictype/test-ctype_alnum.c: Likewise.
297         * tests/unictype/test-ctype_alpha.c: Likewise.
298         * tests/unictype/test-ctype_graph.c: Likewise.
299         * tests/unictype/test-ctype_lower.c: Likewise.
300         * tests/unictype/test-ctype_print.c: Likewise.
301         * tests/unictype/test-ctype_punct.c: Likewise.
302         * tests/unictype/test-ctype_upper.c: Likewise.
303         * tests/unictype/test-decdigit.h: Likewise.
304         * tests/unictype/test-digit.h: Likewise.
305         * tests/unictype/test-numeric.h: Likewise.
306         * tests/unictype/test-pr_alphabetic.c: Likewise.
307         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
308         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
309         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
310         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
311         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
312         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
313         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
314         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
315         * tests/unictype/test-pr_case_ignorable.c: Likewise.
316         * tests/unictype/test-pr_cased.c: Likewise.
317         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
318         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
319         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
320         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
321         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
322         * tests/unictype/test-pr_combining.c: Likewise.
323         * tests/unictype/test-pr_composite.c: Likewise.
324         * tests/unictype/test-pr_currency_symbol.c: Likewise.
325         * tests/unictype/test-pr_decimal_digit.c: Likewise.
326         * tests/unictype/test-pr_deprecated.c: Likewise.
327         * tests/unictype/test-pr_format_control.c: Likewise.
328         * tests/unictype/test-pr_grapheme_base.c: Likewise.
329         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
330         * tests/unictype/test-pr_grapheme_link.c: Likewise.
331         * tests/unictype/test-pr_id_continue.c: Likewise.
332         * tests/unictype/test-pr_id_start.c: Likewise.
333         * tests/unictype/test-pr_ideographic.c: Likewise.
334         * tests/unictype/test-pr_lowercase.c: Likewise.
335         * tests/unictype/test-pr_math.c: Likewise.
336         * tests/unictype/test-pr_numeric.c: Likewise.
337         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
338         * tests/unictype/test-pr_other_id_continue.c: Likewise.
339         * tests/unictype/test-pr_other_math.c: Likewise.
340         * tests/unictype/test-pr_punctuation.c: Likewise.
341         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
342         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
343         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
344         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
345         * tests/unictype/test-pr_uppercase.c: Likewise.
346         * tests/unictype/test-pr_xid_continue.c: Likewise.
347         * tests/unictype/test-pr_xid_start.c: Likewise.
348         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
349         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
350         changes.
351         * lib/unictype/categ_Cc.h: Likewise.
352         * lib/unictype/categ_Cf.h: Likewise.
353         * lib/unictype/categ_Co.h: Likewise.
354         * lib/unictype/categ_Cs.h: Likewise.
355         * lib/unictype/categ_Lt.h: Likewise.
356         * lib/unictype/categ_Nl.h: Likewise.
357         * lib/unictype/categ_Pc.h: Likewise.
358         * lib/unictype/categ_Pd.h: Likewise.
359         * lib/unictype/categ_Pe.h: Likewise.
360         * lib/unictype/categ_Pf.h: Likewise.
361         * lib/unictype/categ_Pi.h: Likewise.
362         * lib/unictype/categ_Ps.h: Likewise.
363         * lib/unictype/categ_Z.h: Likewise.
364         * lib/unictype/categ_Zl.h: Likewise.
365         * lib/unictype/categ_Zp.h: Likewise.
366         * lib/unictype/categ_Zs.h: Likewise.
367         * lib/unictype/ctype_blank.h: Likewise.
368         * lib/unictype/ctype_cntrl.h: Likewise.
369         * lib/unictype/ctype_digit.h: Likewise.
370         * lib/unictype/ctype_space.h: Likewise.
371         * lib/unictype/ctype_xdigit.h: Likewise.
372         * lib/unictype/mirror.h: Likewise.
373         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
374         * lib/unictype/pr_bidi_block_separator.h: Likewise.
375         * lib/unictype/pr_bidi_common_separator.h: Likewise.
376         * lib/unictype/pr_bidi_control.h: Likewise.
377         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
378         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
379         * lib/unictype/pr_bidi_european_digit.h: Likewise.
380         * lib/unictype/pr_bidi_pdf.h: Likewise.
381         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
382         * lib/unictype/pr_bidi_whitespace.h: Likewise.
383         * lib/unictype/pr_dash.h: Likewise.
384         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
385         * lib/unictype/pr_diacritic.h: Likewise.
386         * lib/unictype/pr_extender.h: Likewise.
387         * lib/unictype/pr_hex_digit.h: Likewise.
388         * lib/unictype/pr_hyphen.h: Likewise.
389         * lib/unictype/pr_ids_binary_operator.h: Likewise.
390         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
391         * lib/unictype/pr_ignorable_control.h: Likewise.
392         * lib/unictype/pr_iso_control.h: Likewise.
393         * lib/unictype/pr_join_control.h: Likewise.
394         * lib/unictype/pr_left_of_pair.h: Likewise.
395         * lib/unictype/pr_line_separator.h: Likewise.
396         * lib/unictype/pr_logical_order_exception.h: Likewise.
397         * lib/unictype/pr_non_break.h: Likewise.
398         * lib/unictype/pr_not_a_character.h: Likewise.
399         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
400         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
401         * lib/unictype/pr_other_id_start.h: Likewise.
402         * lib/unictype/pr_other_lowercase.h: Likewise.
403         * lib/unictype/pr_other_uppercase.h: Likewise.
404         * lib/unictype/pr_paired_punctuation.h: Likewise.
405         * lib/unictype/pr_paragraph_separator.h: Likewise.
406         * lib/unictype/pr_pattern_syntax.h: Likewise.
407         * lib/unictype/pr_pattern_white_space.h: Likewise.
408         * lib/unictype/pr_private_use.h: Likewise.
409         * lib/unictype/pr_quotation_mark.h: Likewise.
410         * lib/unictype/pr_radical.h: Likewise.
411         * lib/unictype/pr_soft_dotted.h: Likewise.
412         * lib/unictype/pr_space.h: Likewise.
413         * lib/unictype/pr_titlecase.h: Likewise.
414         * lib/unictype/pr_variation_selector.h: Likewise.
415         * lib/unictype/pr_white_space.h: Likewise.
416         * lib/unictype/pr_zero_width.h: Likewise.
417         * lib/unictype/sy_c_ident.h: Likewise.
418         * lib/unictype/sy_c_whitespace.h: Likewise.
419         * lib/unictype/sy_java_whitespace.h: Likewise.
420         * lib/uninorm/composition-table.gperf: Likewise.
421         * lib/uninorm/decomposition-table1.h: Likewise.
422         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
423         LB8.
424         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
425         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
426         * modules/unictype/*: Bump version number of expected libunistring
427         version.
428
429 2011-01-09  Bruno Haible  <bruno@clisp.org>
430
431         Update to Unicode 5.2.0.
432         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
433         trailing whitespace removed.
434
435 2011-01-09  Bruno Haible  <bruno@clisp.org>
436
437         New Unicode character properties, from Unicode 5.2.0.
438         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
439         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
440         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
441         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
442         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
443         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
444         uc_is_property_cased, uc_is_property_case_ignorable,
445         uc_is_property_changes_when_lowercased,
446         uc_is_property_changes_when_uppercased,
447         uc_is_property_changes_when_titlecased,
448         uc_is_property_changes_when_casefolded,
449         uc_is_property_changes_when_casemapped): New declarations.
450         * lib/unictype/pr_byname.gperf: Add the new properties.
451         * modules/unictype/property-byname (Depends-on): Depend on the new
452         properties modules.
453         * modules/unictype/property-all (Depends-on): Likewise.
454         * MODULES.html.sh (Unicode string functions): Add
455         unictype/property-case-ignorable, unictype/property-cased,
456         unictype/property-changes-when-casefolded,
457         unictype/property-changes-when-casemapped,
458         unictype/property-changes-when-lowercased,
459         unictype/property-changes-when-titlecased,
460         unictype/property-changes-when-uppercased.
461
462         New module 'unictype/property-changes-when-casemapped'.
463         * modules/unictype/property-changes-when-casemapped: New file.
464         * lib/unictype/pr_changes_when_casemapped.c: New file.
465         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
466         generated by gen-uni-tables.
467         * modules/unictype/property-changes-when-casemapped-tests: New file.
468         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
469         automatically generated by gen-uni-tables.
470
471         New module 'unictype/property-changes-when-casefolded'.
472         * modules/unictype/property-changes-when-casefolded: New file.
473         * lib/unictype/pr_changes_when_casefolded.c: New file.
474         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
475         generated by gen-uni-tables.
476         * modules/unictype/property-changes-when-casefolded-tests: New file.
477         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
478         automatically generated by gen-uni-tables.
479
480         New module 'unictype/property-changes-when-titlecased'.
481         * modules/unictype/property-changes-when-titlecased: New file.
482         * lib/unictype/pr_changes_when_titlecased.c: New file.
483         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
484         generated by gen-uni-tables.
485         * modules/unictype/property-changes-when-titlecased-tests: New file.
486         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
487         automatically generated by gen-uni-tables.
488
489         New module 'unictype/property-changes-when-uppercased'.
490         * modules/unictype/property-changes-when-uppercased: New file.
491         * lib/unictype/pr_changes_when_uppercased.c: New file.
492         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
493         generated by gen-uni-tables.
494         * modules/unictype/property-changes-when-uppercased-tests: New file.
495         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
496         automatically generated by gen-uni-tables.
497
498         New module 'unictype/property-changes-when-lowercased'.
499         * modules/unictype/property-changes-when-lowercased: New file.
500         * lib/unictype/pr_changes_when_lowercased.c: New file.
501         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
502         generated by gen-uni-tables.
503         * modules/unictype/property-changes-when-lowercased-tests: New file.
504         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
505         automatically generated by gen-uni-tables.
506
507         New module 'unictype/property-case-ignorable'.
508         * modules/unictype/property-case-ignorable: New file.
509         * lib/unictype/pr_case_ignorable.c: New file.
510         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
511         by gen-uni-tables.
512         * modules/unictype/property-case-ignorable-tests: New file.
513         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
514         generated by gen-uni-tables.
515
516         New module 'unictype/property-cased'.
517         * modules/unictype/property-cased: New file.
518         * lib/unictype/pr_cased.c: New file.
519         * lib/unictype/pr_cased.h: New file, automatically generated by
520         gen-uni-tables.
521         * modules/unictype/property-cased-tests: New file.
522         * tests/unictype/test-pr_cased.c: New file, automatically generated by
523         gen-uni-tables.
524
525 2011-01-09  Bruno Haible  <bruno@clisp.org>
526
527         Update to Unicode 5.2.0.
528         * lib/gen-uni-tables.c (output_predicate, output_category,
529         output_combclass, output_bidi_category, output_decimal_digit_test,
530         output_decimal_digit, output_digit_test, output_digit,
531         output_numeric_test, output_numeric, output_mirror, output_scripts,
532         output_scripts_byname, output_blocks, output_ident_category): Fix
533         comment header.
534         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
535         get_wbp.
536         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
537         items.
538         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
539         Changes_When_Lowercased, Changes_When_Uppercased,
540         Changes_When_Titlecased, Changes_When_Casefolded,
541         Changes_When_Casemapped.
542         (is_property_alphabetic, is_property_default_ignorable_code_point):
543         Update for Unicode 5.2.0.
544         (is_property_cased, is_property_case_ignorable,
545         is_property_changes_when_lowercased,
546         is_property_changes_when_uppercased,
547         is_property_changes_when_titlecased,
548         is_property_changes_when_casefolded,
549         is_property_changes_when_casemapped): New functions.
550         (output_properties): Output also the properties cased, case_ignorable,
551         changes_when_lowercased, changes_when_uppercased,
552         changes_when_titlecased, changes_when_casefolded,
553         changes_when_casemapped.
554         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
555         Unicode TR#11 revision 17 -> 19.
556         (LBP_CP): New enumeration value.
557         (LBP_*): Adjust values accordingly.
558         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
559         TR#14 revision 22 -> 24.
560         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
561         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
562         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
563         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
564         is_WBP_MIDLETTER.
565         (output_composition_tables): Allow for 24 bits instead of 16 bits in
566         the code1 and code2 of each composition rule.
567         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
568         * lib/unicase/ignorable.h: Likewise.
569         * lib/unicase/tocasefold.h: Likewise.
570         * lib/unicase/tolower.h: Likewise.
571         * lib/unicase/totitle.h: Likewise.
572         * lib/unicase/toupper.h: Likewise.
573         * lib/unictype/bidi_of.h: Likewise.
574         * lib/unictype/blocks.h: Likewise.
575         * lib/unictype/categ_C.h: Likewise.
576         * lib/unictype/categ_Cf.h: Likewise.
577         * lib/unictype/categ_Cn.h: Likewise.
578         * lib/unictype/categ_L.h: Likewise.
579         * lib/unictype/categ_Ll.h: Likewise.
580         * lib/unictype/categ_Lm.h: Likewise.
581         * lib/unictype/categ_Lo.h: Likewise.
582         * lib/unictype/categ_Lu.h: Likewise.
583         * lib/unictype/categ_M.h: Likewise.
584         * lib/unictype/categ_Mc.h: Likewise.
585         * lib/unictype/categ_Mn.h: Likewise.
586         * lib/unictype/categ_N.h: Likewise.
587         * lib/unictype/categ_Nd.h: Likewise.
588         * lib/unictype/categ_Nl.h: Likewise.
589         * lib/unictype/categ_No.h: Likewise.
590         * lib/unictype/categ_P.h: Likewise.
591         * lib/unictype/categ_Pd.h: Likewise.
592         * lib/unictype/categ_Po.h: Likewise.
593         * lib/unictype/categ_S.h: Likewise.
594         * lib/unictype/categ_Sc.h: Likewise.
595         * lib/unictype/categ_So.h: Likewise.
596         * lib/unictype/categ_of.h: Likewise.
597         * lib/unictype/combining.h: Likewise.
598         * lib/unictype/ctype_alnum.h: Likewise.
599         * lib/unictype/ctype_alpha.h: Likewise.
600         * lib/unictype/ctype_graph.h: Likewise.
601         * lib/unictype/ctype_lower.h: Likewise.
602         * lib/unictype/ctype_print.h: Likewise.
603         * lib/unictype/ctype_punct.h: Likewise.
604         * lib/unictype/ctype_upper.h: Likewise.
605         * lib/unictype/decdigit.h: Likewise.
606         * lib/unictype/digit.h: Likewise.
607         * lib/unictype/numeric.h: Likewise.
608         * lib/unictype/pr_alphabetic.h: Likewise.
609         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
610         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
611         * lib/unictype/pr_bidi_european_digit.h: Likewise.
612         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
613         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
614         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
615         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
616         * lib/unictype/pr_combining.h: Likewise.
617         * lib/unictype/pr_composite.h: Likewise.
618         * lib/unictype/pr_currency_symbol.h: Likewise.
619         * lib/unictype/pr_dash.h: Likewise.
620         * lib/unictype/pr_decimal_digit.h: Likewise.
621         * lib/unictype/pr_deprecated.h: Likewise.
622         * lib/unictype/pr_diacritic.h: Likewise.
623         * lib/unictype/pr_extender.h: Likewise.
624         * lib/unictype/pr_grapheme_base.h: Likewise.
625         * lib/unictype/pr_grapheme_extend.h: Likewise.
626         * lib/unictype/pr_grapheme_link.h: Likewise.
627         * lib/unictype/pr_id_continue.h: Likewise.
628         * lib/unictype/pr_id_start.h: Likewise.
629         * lib/unictype/pr_ideographic.h: Likewise.
630         * lib/unictype/pr_ignorable_control.h: Likewise.
631         * lib/unictype/pr_logical_order_exception.h: Likewise.
632         * lib/unictype/pr_lowercase.h: Likewise.
633         * lib/unictype/pr_numeric.h: Likewise.
634         * lib/unictype/pr_other_alphabetic.h: Likewise.
635         * lib/unictype/pr_punctuation.h: Likewise.
636         * lib/unictype/pr_sentence_terminal.h: Likewise.
637         * lib/unictype/pr_terminal_punctuation.h: Likewise.
638         * lib/unictype/pr_unassigned_code_value.h: Likewise.
639         * lib/unictype/pr_unified_ideograph.h: Likewise.
640         * lib/unictype/pr_uppercase.h: Likewise.
641         * lib/unictype/pr_xid_continue.h: Likewise.
642         * lib/unictype/pr_xid_start.h: Likewise.
643         * lib/unictype/pr_zero_width.h: Likewise.
644         * lib/unictype/scripts.h: Likewise.
645         * lib/unictype/scripts_byname.gperf: Likewise.
646         * lib/unictype/sy_java_ident.h: Likewise.
647         * lib/unigbrk/gbrkprop.h: Likewise.
648         * lib/unilbrk/lbrkprop1.h: Likewise.
649         * lib/unilbrk/lbrkprop2.h: Likewise.
650         * lib/unilbrk/lbrktables.h: Likewise.
651         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
652         LBP_CP. Implement rule LB30.
653         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
654         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
655         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
656         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
657         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
658         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
659         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
660         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
661         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
662         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
663         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
664         bits instead of 16 bits in the code1 and code2 of each composition
665         rule.
666         (uc_composition): Update for Unicode 5.2.0.
667         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
668         * lib/uninorm/decomposition-table2.h: Likewise.
669         * lib/uniwbrk/wbrkprop.h: Likewise.
670         * tests/unicase/test-cased.c: Likewise.
671         * tests/unicase/test-ignorable.c: Likewise.
672         * tests/unicase/test-uc_tolower.c: Likewise.
673         * tests/unicase/test-uc_totitle.c: Likewise.
674         * tests/unicase/test-uc_toupper.c: Likewise.
675         * tests/unictype/test-categ_C.c: Likewise.
676         * tests/unictype/test-categ_Cf.c: Likewise.
677         * tests/unictype/test-categ_Cn.c: Likewise.
678         * tests/unictype/test-categ_L.c: Likewise.
679         * tests/unictype/test-categ_Ll.c: Likewise.
680         * tests/unictype/test-categ_Lm.c: Likewise.
681         * tests/unictype/test-categ_Lo.c: Likewise.
682         * tests/unictype/test-categ_Lu.c: Likewise.
683         * tests/unictype/test-categ_M.c: Likewise.
684         * tests/unictype/test-categ_Mc.c: Likewise.
685         * tests/unictype/test-categ_Mn.c: Likewise.
686         * tests/unictype/test-categ_N.c: Likewise.
687         * tests/unictype/test-categ_Nd.c: Likewise.
688         * tests/unictype/test-categ_Nl.c: Likewise.
689         * tests/unictype/test-categ_No.c: Likewise.
690         * tests/unictype/test-categ_P.c: Likewise.
691         * tests/unictype/test-categ_Pd.c: Likewise.
692         * tests/unictype/test-categ_Po.c: Likewise.
693         * tests/unictype/test-categ_S.c: Likewise.
694         * tests/unictype/test-categ_Sc.c: Likewise.
695         * tests/unictype/test-categ_So.c: Likewise.
696         * tests/unictype/test-ctype_alnum.c: Likewise.
697         * tests/unictype/test-ctype_alpha.c: Likewise.
698         * tests/unictype/test-ctype_graph.c: Likewise.
699         * tests/unictype/test-ctype_lower.c: Likewise.
700         * tests/unictype/test-ctype_print.c: Likewise.
701         * tests/unictype/test-ctype_punct.c: Likewise.
702         * tests/unictype/test-ctype_upper.c: Likewise.
703         * tests/unictype/test-decdigit.h: Likewise.
704         * tests/unictype/test-digit.h: Likewise.
705         * tests/unictype/test-numeric.h: Likewise.
706         * tests/unictype/test-pr_alphabetic.c: Likewise.
707         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
708         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
709         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
710         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
711         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
712         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
713         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
714         * tests/unictype/test-pr_combining.c: Likewise.
715         * tests/unictype/test-pr_composite.c: Likewise.
716         * tests/unictype/test-pr_currency_symbol.c: Likewise.
717         * tests/unictype/test-pr_dash.c: Likewise.
718         * tests/unictype/test-pr_decimal_digit.c: Likewise.
719         * tests/unictype/test-pr_deprecated.c: Likewise.
720         * tests/unictype/test-pr_diacritic.c: Likewise.
721         * tests/unictype/test-pr_extender.c: Likewise.
722         * tests/unictype/test-pr_grapheme_base.c: Likewise.
723         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
724         * tests/unictype/test-pr_grapheme_link.c: Likewise.
725         * tests/unictype/test-pr_id_continue.c: Likewise.
726         * tests/unictype/test-pr_id_start.c: Likewise.
727         * tests/unictype/test-pr_ideographic.c: Likewise.
728         * tests/unictype/test-pr_ignorable_control.c: Likewise.
729         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
730         * tests/unictype/test-pr_lowercase.c: Likewise.
731         * tests/unictype/test-pr_numeric.c: Likewise.
732         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
733         * tests/unictype/test-pr_punctuation.c: Likewise.
734         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
735         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
736         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
737         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
738         * tests/unictype/test-pr_uppercase.c: Likewise.
739         * tests/unictype/test-pr_xid_continue.c: Likewise.
740         * tests/unictype/test-pr_xid_start.c: Likewise.
741         * tests/unictype/test-pr_zero_width.c: Likewise.
742         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
743         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
744         changed behaviour: line breaking is now disallowed between a letter
745         or '=' and '('.
746         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
747         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
748         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
749         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
750         * tests/uniwidth/test-uc_width2.sh: Same updates as in
751         lib/uniwidth/width.c.
752         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
753         without comments, but with the original copyright notice.
754         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
755         changes.
756         * lib/unictype/categ_Cc.h: Likewise.
757         * lib/unictype/categ_Co.h: Likewise.
758         * lib/unictype/categ_Cs.h: Likewise.
759         * lib/unictype/categ_Lt.h: Likewise.
760         * lib/unictype/categ_Me.h: Likewise.
761         * lib/unictype/categ_Pc.h: Likewise.
762         * lib/unictype/categ_Pe.h: Likewise.
763         * lib/unictype/categ_Pf.h: Likewise.
764         * lib/unictype/categ_Pi.h: Likewise.
765         * lib/unictype/categ_Ps.h: Likewise.
766         * lib/unictype/categ_Sk.h: Likewise.
767         * lib/unictype/categ_Sm.h: Likewise.
768         * lib/unictype/categ_Z.h: Likewise.
769         * lib/unictype/categ_Zl.h: Likewise.
770         * lib/unictype/categ_Zp.h: Likewise.
771         * lib/unictype/categ_Zs.h: Likewise.
772         * lib/unictype/ctype_blank.h: Likewise.
773         * lib/unictype/ctype_cntrl.h: Likewise.
774         * lib/unictype/ctype_digit.h: Likewise.
775         * lib/unictype/ctype_space.h: Likewise.
776         * lib/unictype/ctype_xdigit.h: Likewise.
777         * lib/unictype/mirror.h: Likewise.
778         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
779         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
780         * lib/unictype/pr_bidi_block_separator.h: Likewise.
781         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
782         * lib/unictype/pr_bidi_common_separator.h: Likewise.
783         * lib/unictype/pr_bidi_control.h: Likewise.
784         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
785         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
786         * lib/unictype/pr_bidi_pdf.h: Likewise.
787         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
788         * lib/unictype/pr_bidi_whitespace.h: Likewise.
789         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
790         * lib/unictype/pr_format_control.h: Likewise.
791         * lib/unictype/pr_hex_digit.h: Likewise.
792         * lib/unictype/pr_hyphen.h: Likewise.
793         * lib/unictype/pr_ids_binary_operator.h: Likewise.
794         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
795         * lib/unictype/pr_iso_control.h: Likewise.
796         * lib/unictype/pr_join_control.h: Likewise.
797         * lib/unictype/pr_left_of_pair.h: Likewise.
798         * lib/unictype/pr_line_separator.h: Likewise.
799         * lib/unictype/pr_math.h: Likewise.
800         * lib/unictype/pr_non_break.h: Likewise.
801         * lib/unictype/pr_not_a_character.h: Likewise.
802         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
803         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
804         * lib/unictype/pr_other_id_continue.h: Likewise.
805         * lib/unictype/pr_other_id_start.h: Likewise.
806         * lib/unictype/pr_other_lowercase.h: Likewise.
807         * lib/unictype/pr_other_math.h: Likewise.
808         * lib/unictype/pr_other_uppercase.h: Likewise.
809         * lib/unictype/pr_paired_punctuation.h: Likewise.
810         * lib/unictype/pr_paragraph_separator.h: Likewise.
811         * lib/unictype/pr_pattern_syntax.h: Likewise.
812         * lib/unictype/pr_pattern_white_space.h: Likewise.
813         * lib/unictype/pr_private_use.h: Likewise.
814         * lib/unictype/pr_quotation_mark.h: Likewise.
815         * lib/unictype/pr_radical.h: Likewise.
816         * lib/unictype/pr_soft_dotted.h: Likewise.
817         * lib/unictype/pr_space.h: Likewise.
818         * lib/unictype/pr_titlecase.h: Likewise.
819         * lib/unictype/pr_variation_selector.h: Likewise.
820         * lib/unictype/pr_white_space.h: Likewise.
821         * lib/unictype/sy_c_ident.h: Likewise.
822         * lib/unictype/sy_c_whitespace.h: Likewise.
823         * lib/unictype/sy_java_whitespace.h: Likewise.
824         * modules/uni*/*: Bump version number of expected libunistring version.
825         Reported by Simon Josefsson.
826
827 2011-01-09  Karl Heuer  <kwzh@gnu.org>
828
829         useless-if-before-free: fix typo in --help and make the internal,
830         automatic version date update process work once again.
831         --help output contained a NUL character instead of the
832         backslash-zero that was intended.  Also, the "must lie within
833         the first 8 lines" line is on line 9, and hence not getting
834         automatically updated.
835         * build-aux/useless-if-before-free: Fix the former by adding a
836         backslash, and the latter by condensing the three lines of what-it-does
837         to a single line, leaving one line of slack for the future.
838
839 2011-01-09  Bruno Haible  <bruno@clisp.org>
840
841         uniwidth/width: Fix width of U+1D173..U+1D17A.
842         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
843         symbolic_width, output_width_property_test): New functions.
844         (main): Invoke output_nonspacing_property, output_width_property_test.
845         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
846         U+1D173..U+1D17A.
847         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
848         1.
849         * modules/uniwidth/*: Bump version number of expected libunistring
850         version.
851         * modules/unilbrk/*: Likewise.
852
853 2011-01-08  Bruno Haible  <bruno@clisp.org>
854
855         uninorm tests: Preserve copyright of Unicode data file.
856         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
857         Mention modifications.
858
859 2011-01-08  Bruno Haible  <bruno@clisp.org>
860
861         gen-uni-tables: Prepare for Unicode 5.2.0.
862         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
863         (debug_output_lbp, output_lbp): Update.
864
865 2011-01-08  Bruno Haible  <bruno@clisp.org>
866
867         unilbrk: Clarify gen-uni-tables.c code.
868         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
869         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
870         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
871
872 2011-01-07  Bruno Haible  <bruno@clisp.org>
873
874         strtod: Restore errno when successfully parsing Infinity or NaN.
875         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
876         restore the original errno.
877
878 2011-01-07  Bruno Haible  <bruno@clisp.org>
879
880         remove test: Avoid failure on HP-UX 11.
881         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
882
883 2011-01-07  Bruno Haible  <bruno@clisp.org>
884
885         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
886         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
887         error code.
888
889 2011-01-07  Pádraig Brady <P@draigBrady.com>
890
891         ignore-value: fixup comments, and add Eric Blake
892         as an author since he rewrote the macros.
893         * lib/ignore-value.h (ignore_value):  State that
894         we now support aggregates.  Also specify exactly
895         when the GCC warn_unused_result feature was added.
896
897 2011-01-06  Eric Blake  <eblake@redhat.com>
898
899         ignore-value: support aggregate types
900         * lib/ignore-value.h (ignore_value): Provide separate gcc
901         definition.
902         * modules/ignore-value-tests: New test module.
903         * tests/test-ignore-value.c: New test.
904
905         maint.mk: improve sc_prohibit_strcmp regex
906         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
907         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
908         definition of STRNEQ.
909
910         signal: work around Haiku issue with SIGBUS
911         * lib/siglist.h: Add comment.
912         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
913         strsignal's favoring of SIGSEGV.
914         * tests/test-signal.c (main): Avoid test failure.
915         * doc/posix-headers/signal.texi (signal.h): Document the issue.
916         Reported by Scott McCreary.
917
918         maint.mk: add pre-release check to ensure submodule commits are public
919         * top/maint.mk (public-submodule-commit): New rule.
920         (submodule-checks): New variable.
921         (alpha beta stable): Depend on the variable.
922
923 2011-01-05  Pádraig Brady <P@draigBrady.com>
924         and Jim Meyering  <meyering@redhat.com>
925
926         ignore-value: make ignore_value more generic; deprecate ignore_ptr
927         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
928         (ATTRIBUTE_DEPRECATED): Define.
929         (_ignore_case): New function.
930         (ignore_value): New macro, to replace the old function.
931         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
932         * modules/ignore-value (Depends-on): Add stdint.
933
934 2011-01-04  Eric Blake  <eblake@redhat.com>
935
936         doc: regenerate INSTALL
937         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
938         @firstparagraphindent support, now that autoconf dropped it.
939         (INSTALL_PRELUDE): Reinstate old macro.
940         * doc/install.texi: Resync from autoconf.
941         * doc/INSTALL: Reflect recent autoconf update.
942         * doc/INSTALL.ISO: Likewise.
943         * doc/INSTALL.UTF-8: Likewise.
944         Reported by Karl Berry.
945
946 2011-01-04  Bruce Korb  <address@hidden>
947
948         git-version-gen: avoid a sub-shell
949         * build-aux/git-version-gen: Redirect stderr in `...` via
950         "exec 2>...", rather than via an added sub-shell.
951
952 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
953
954         git-version-gen: use (...) rather than sh -c '...'
955         * build-aux/git-version-gen: Rather than hard-coding a shell's name
956         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
957
958 2011-01-03  Jim Meyering  <meyering@redhat.com>
959
960         git-version-gen: convert leading TABs to spaces
961         * build-aux/git-version-gen: Expand leading TABs.
962
963         git-version-gen: handle failed "git rev-list"
964         * build-aux/git-version-gen: Rather than leaking a "fatal" error
965         from git and proceeding as if it had succeeded but printed no SHA1
966         checksums, suppress the diagnostic and handle the failure.
967         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
968
969         git-version-gen: include command name in one more diagnostic
970         * build-aux/git-version-gen: When the required .tarball-version file
971         was missing or unreadable, you might see the diagnostic from "cat",
972         but no trace of the name of the invoking script.  Now, you still see
973         the diagnostic from cat, but also get one from "git-version-gen: ".
974         Inspired by a patch from Bruce Korb.
975
976         update-copyright: adjust test to match changed code
977         * tests/test-update-copyright.sh: Change test's expected output
978         to match new actual output.
979
980 2011-01-02  Bruno Haible  <bruno@clisp.org>
981
982         getlogin_r: Avoid test failure on HP-UX 11.
983         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
984         ERANGE when the second argument is zero.
985         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
986         portability problem.
987
988 2011-01-02  Bruce Korb  <bkorb@gnu.org>
989
990         * build-aux/update-copyright: doc Simon's changes
991
992 2011-01-02  Simon Josefsson  <simon@josefsson.org>
993
994         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
995         environment variable.
996
997 2011-01-02  Bruno Haible  <bruno@clisp.org>
998
999         unigbrk: Avoid gcc warnings.
1000         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1001         unused variable.
1002         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1003         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1004         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1005         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1006         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1007         Change type of first argument to 'const char *'.
1008         (main): Remove unused variable.
1009         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1010         type of first argument to 'const char *'.
1011         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1012         Likewise.
1013         (main): Change type of variable 's'.
1014         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1015         to 'int'.
1016
1017 2011-01-02  Bruno Haible  <bruno@clisp.org>
1018
1019         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1020         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1021         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1022         bug.
1023         * lib/pwrite.c: Undo 2010-12-31 patch.
1024         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1025
1026 2011-01-02  Bruno Haible  <bruno@clisp.org>
1027
1028         pread: Fix test whether it works.
1029         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1030
1031 2011-01-02  Bruno Haible  <bruno@clisp.org>
1032
1033         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1034         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1035         ends in "6". Don't require a specific month name. Try also the locale
1036         names found on HP-UX 11 and Solaris 7.
1037
1038 2011-01-02  Bruno Haible  <bruno@clisp.org>
1039
1040         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1041         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1042         C linkage.
1043         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1044
1045 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1046
1047         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1048         for consistency, since the "cluster" term is not used elsewhere.
1049         * lib/unigbrk.in.h: Update name.
1050         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1051         * lib/unigbrk/u16-grapheme-next.c: Update name.
1052         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1053         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1054         * lib/unigbrk/u32-grapheme-next.c: Update name.
1055         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1056         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1057         * lib/unigbrk/u8-grapheme-next.c: Update name.
1058         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1059         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1060         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1061         Suggested by Bruno Haible.
1062
1063 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1064
1065         Remove module 'u8-grapheme-len' as too redundant with
1066         'u8-grapheme-next'.
1067         * modules/unigbrk/u8-grapheme-len: Delete file.
1068         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1069         * lib/unigbrk.in.h: Remove prototype for deleted function.
1070         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1071         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1072
1073         Remove module 'u16-grapheme-len' as too redundant with
1074         'u16-grapheme-next'.
1075         * modules/unigbrk/u16-grapheme-len: Delete file.
1076         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1077         * lib/unigbrk.in.h: Remove prototype for deleted function.
1078         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1079         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1080
1081         Remove module 'u32-grapheme-len' as too redundant with
1082         'u32-grapheme-next'.
1083         * modules/unigbrk/u32-grapheme-len: Delete file.
1084         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1085         * lib/unigbrk.in.h: Remove prototype for deleted function.
1086         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1087         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1088
1089         Suggested by Bruno Haible.
1090
1091 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1092
1093         * unigbrk.in.h: Fix typo: "ben" => "been".
1094         Reported by Bruno Haible.
1095
1096 2011-01-01  Jim Meyering  <meyering@redhat.com>
1097
1098         maint: update almost all copyright ranges to include 2011
1099         Run the new "make update-copyright" rule.
1100
1101 2011-01-01  Jim Meyering  <meyering@redhat.com>
1102
1103         maint: update-copyright: exempt doc/INSTALL*
1104         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1105         since they are generated.  Suggested by Bruno Haible.
1106
1107 2011-01-01  Jim Meyering  <meyering@redhat.com>
1108
1109         maint: refine the update-copyright rule
1110         * Makefile (update-copyright): Also exclude any file that includes
1111         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1112         code that merely generates the comment.
1113
1114 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1115
1116         New module 'u8-grapheme-len'.
1117         * modules/unigbrk/u8-grapheme-len: New file.
1118         * modules/unigbrk/u8-grapheme-len-tests: New file.
1119         * lib/unigbrk.in.h: Add prototype for new function.
1120         * lib/unigbrk/u8-grapheme-len.c: New file.
1121         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1122
1123         New module 'u16-grapheme-len'.
1124         * modules/unigbrk/u16-grapheme-len: New file.
1125         * modules/unigbrk/u16-grapheme-len-tests: New file.
1126         * lib/unigbrk.in.h: Add prototype for new function.
1127         * lib/unigbrk/u16-grapheme-len.c: New file.
1128         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1129
1130         New module 'u32-grapheme-len'.
1131         * modules/unigbrk/u32-grapheme-len: New file.
1132         * modules/unigbrk/u32-grapheme-len-tests: New file.
1133         * lib/unigbrk.in.h: Add prototype for new function.
1134         * lib/unigbrk/u32-grapheme-len.c: New file.
1135         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1136
1137         New module 'u8-grapheme-next'.
1138         * modules/unigbrk/u8-grapheme-next: New file.
1139         * modules/unigbrk/u8-grapheme-next-tests: New file.
1140         * lib/unigbrk.in.h: Add prototype for new function.
1141         * lib/unigbrk/u8-grapheme-next.c: New file.
1142         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1143
1144         New module 'u16-grapheme-next'.
1145         * modules/unigbrk/u16-grapheme-next: New file.
1146         * modules/unigbrk/u16-grapheme-next-tests: New file.
1147         * lib/unigbrk.in.h: Add prototype for new function.
1148         * lib/unigbrk/u16-grapheme-next.c: New file.
1149         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1150
1151         New module 'u32-grapheme-next'.
1152         * modules/unigbrk/u32-grapheme-next: New file.
1153         * modules/unigbrk/u32-grapheme-next-tests: New file.
1154         * lib/unigbrk.in.h: Add prototype for new function.
1155         * lib/unigbrk/u32-grapheme-next.c: New file.
1156         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1157
1158         New module 'u8-grapheme-prev'.
1159         * modules/unigbrk/u8-grapheme-prev: New file.
1160         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1161         * lib/unigbrk.in.h: Add prototype for new function.
1162         * lib/unigbrk/u8-grapheme-prev.c: New file.
1163         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1164
1165         New module 'u16-grapheme-prev'.
1166         * modules/unigbrk/u16-grapheme-prev: New file.
1167         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1168         * lib/unigbrk.in.h: Add prototype for new function.
1169         * lib/unigbrk/u16-grapheme-prev.c: New file.
1170         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1171
1172         New module 'u32-grapheme-prev'.
1173         * modules/unigbrk/u32-grapheme-prev: New file.
1174         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1175         * lib/unigbrk.in.h: Add prototype for new function.
1176         * lib/unigbrk/u32-grapheme-prev.c: New file.
1177         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1178
1179         New module 'u8-grapheme-breaks'.
1180         * modules/unigbrk/u8-grapheme-breaks: New file.
1181         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1182         * lib/unigbrk.in.h: Add prototype for new function.
1183         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1184         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1185
1186         New module 'u16-grapheme-breaks'.
1187         * modules/unigbrk/u16-grapheme-breaks: New file.
1188         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1189         * lib/unigbrk.in.h: Add prototype for new function.
1190         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1191         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1192
1193         New module 'u32-grapheme-breaks'.
1194         * modules/unigbrk/u32-grapheme-breaks: New file.
1195         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1196         * lib/unigbrk.in.h: Add prototype for new function.
1197         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1198         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1199
1200         New module 'ulc-grapheme-breaks'.
1201         * modules/unigbrk/ulc-grapheme-breaks: New file.
1202         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1203         * m4/locale-ar.m4: New file.
1204         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1205         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1206         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1207
1208 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1209
1210         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1211         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1212         modified how this file was generated before I initially submitted
1213         the module, but failed to regenerate it.  This meant that several
1214         of the level2 entries were wrong.
1215         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1216         Remove the division-by-2 that is folded into the table now that
1217         gbrkprop.h has been regenerated properly.  Now -1 entries are
1218         handled correctly.
1219
1220         New module 'unigbrk/uc-gbrk-prop-tests'.
1221         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1222         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1223         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1224         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1225
1226 2011-01-01  Bruno Haible  <bruno@clisp.org>
1227
1228         Avoid use of hexadecimal escapes.
1229         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1230         instead of hexadecimal escapes.
1231
1232 2011-01-01  Jim Meyering  <meyering@redhat.com>
1233
1234         maint: new rule to update copyright year ranges
1235         * Makefile (update-copyright): New rule.
1236
1237         maint: indent with TABs in Makefile
1238         * Makefile: Expand leading sequences of spaces to TABs
1239
1240         version-etc: update the copyright year it reports
1241         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1242
1243 2010-12-31  Bruno Haible  <bruno@clisp.org>
1244
1245         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1246         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1247         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1248         zero.
1249
1250 2010-12-31  Bruno Haible  <bruno@clisp.org>
1251
1252         pwrite: Work around HP-UX 11.11 bug.
1253         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1254         works and set REPLACE_PWRITE if not.
1255         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1256         function.
1257         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1258
1259 2010-12-31  Bruno Haible  <bruno@clisp.org>
1260
1261         pread: Work around HP-UX 11 bugs.
1262         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1263         and set REPLACE_PREAD if not.
1264         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1265
1266 2010-12-31  Eric Blake  <eblake@redhat.com>
1267
1268         nl_langinfo: fix YESEXPR on Irix 6.5
1269         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1270         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1271         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1272         it.
1273
1274 2010-12-31  Bruno Haible  <bruno@clisp.org>
1275
1276         iconv: Document HP-UX 11 bug.
1277         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1278
1279 2010-12-31  Bruno Haible  <bruno@clisp.org>
1280
1281         ldexpl: Fix link error on HP-UX 11.
1282         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1283         LDEXPL_LIBM, using $ISNANL_LIBM.
1284
1285 2010-12-31  Eric Blake  <eblake@redhat.com>
1286
1287         ftello: avoid compilation failure with SunStudio c89
1288         * lib/ftello.c (ftello): Use lseek, not llseek.
1289
1290         tests: avoid failing coreutils tests on cygwin
1291         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1292         (create_exe_shims_): Return 0 when skipping.
1293
1294 2010-12-31  Bruno Haible  <bruno@clisp.org>
1295
1296         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1297         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1298
1299 2010-12-31  Bruno Haible  <bruno@clisp.org>
1300
1301         waitpid: Fix link error in C++ mode.
1302         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1303
1304 2010-12-31  Bruno Haible  <bruno@clisp.org>
1305
1306         isnan: Use GCC built-ins when possible.
1307         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1308         __builtin_isnan.
1309         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1310         (isnan): Define using GCC built-ins for GCC >= 4.0.
1311
1312 2010-12-31  Bruno Haible  <bruno@clisp.org>
1313
1314         isnand: Fix mistake.
1315         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1316         __builtin_isnand.
1317
1318 2010-12-31  Bruno Haible  <bruno@clisp.org>
1319
1320         open: Avoid C++ error on HP-UX 11.
1321         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1322
1323 2010-12-31  Bruno Haible  <bruno@clisp.org>
1324
1325         time_r: Add missing declarations on HP-UX 11.
1326         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1327         instead of HAVE_LOCALTIME_R.
1328         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1329         HAVE_LOCALTIME_R always.
1330         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1331         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1332         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1333         HAVE_LOCALTIME_R.
1334         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1335         * doc/posix-functions/localtime_r.texi: Likewise.
1336
1337 2010-12-29  Eric Blake  <eblake@redhat.com>
1338
1339         mountlist: tweak previous commit
1340         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1341         Reported by Paul Eggert.
1342
1343         mountlist: fix local drive detection on cygwin
1344         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1345         that works for cygwin.
1346
1347 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1348
1349         ftoastr, snprintf: ftoastr + snprintf module
1350         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1351         since the snprintf module now should be good enough here.
1352         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1353         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1354         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1355         GNULIB_SNPRINTF only for the test directory, and the latter
1356         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1357         seems to suffice by itself.
1358
1359 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1360
1361         alloca: one step towards thread-safety
1362         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1363         need for a static variable.  All callers changed.  This does not
1364         make the alloca replacement thread-safe, but it's one step.
1365
1366         tests: minor indenting change
1367         * tests/init.sh: Sync from coreutils housekeeping patch
1368         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1369         to keep lines within 80 columns.
1370
1371 2010-12-28  Jim Meyering  <meyering@redhat.com>
1372
1373         regex: don't infloop on persistent failing calloc
1374         * lib/regexec.c (build_trtable): Return failure indication upon
1375         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1376         In glibc, this was fixed for version 2.13:
1377         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1378
1379 2010-12-28  Bruno Haible  <bruno@clisp.org>
1380             Paul Eggert <eggert@cs.ucla.edu>
1381
1382         linkat: Make implementation robust against system behaviour variations.
1383         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1384         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1385         way, and to -2 if it needs a generic runtime test.
1386         * lib/linkat.c (solaris_optimized_link_immediate,
1387         solaris_optimized_link_follow): New functions.
1388         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1389         (check_same_link): Use it.
1390
1391 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1392
1393         New module 'unigbrk/base'.
1394         * modules/unigbrk/base: New file.
1395         * lib/unigbrk.in.h: New file.
1396
1397         New module 'unigbrk/uc-gbrk-prop'.
1398         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1399         * modules/unigbrk/uc-gbrk-prop: New file.
1400         * lib/unigbrk/gbrkprop.h: New file.
1401         * lib/unigbrk/uc-gbrk-prop.c: New file.
1402
1403         New module 'unigbrk/uc-is-grapheme-break'.
1404         * modules/unigbrk/uc-is-grapheme-break: New file.
1405         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1406         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1407         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1408         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1409         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1410
1411         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1412
1413 2010-12-27  Bruno Haible  <bruno@clisp.org>
1414
1415         linkat test: Avoid failure on Solaris 11 2010-11.
1416         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1417
1418 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1419
1420         utimens: work around glibc rounding bug on more platforms
1421         * lib/utimens.c (fdutimens): Work around rounding bug even if
1422         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1423         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1424
1425 2010-12-27  Bruno Haible  <bruno@clisp.org>
1426
1427         select tests: Improve comments.
1428         * tests/test-select.c (do_select): Add comments.
1429
1430 2010-12-27  Bruno Haible  <bruno@clisp.org>
1431
1432         select tests: Safer way of handling timeout.
1433         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1434         at every invocation.
1435
1436 2010-12-27  Bruno Haible  <bruno@clisp.org>
1437
1438         select tests: Use 'bool' where appropriate.
1439         * tests/test-select.c (connect_to_socket): Change argument type to
1440         'bool'.
1441
1442 2010-12-27  Bruno Haible  <bruno@clisp.org>
1443
1444         select tests: Use existing modules.
1445         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1446         (configure.ac): Don't test for unistd.h.
1447         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1448         declared in <unistd.h>.
1449
1450 2010-12-27  Bruno Haible  <bruno@clisp.org>
1451
1452         mbrtowc: Work around a Solaris 7 bug.
1453         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1454         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1455         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1456         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1457         MBRTOWC_NULL_ARG1_BUG.
1458         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1459         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1460         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1461         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1462
1463 2010-12-27  Jim Meyering  <meyering@redhat.com>
1464
1465         read-file.c: tweak syntax
1466         * lib/read-file.c (fread_file): Remove space after "*" in function
1467         definitions.
1468
1469 2010-12-27  Bruno Haible  <bruno@clisp.org>
1470
1471         times test: Avoid gcc warnings on OSF/1.
1472         * tests/test-times.c (main): Cast printf arguments from clock_t to
1473         'long int'.
1474
1475 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1476
1477         utimens: work around glibc rounding bug on older Linux kernels
1478         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
1479         on Linux with a glibc whose utimes might not work, then work
1480         around a longstanding glibc bug involving rounding rather than
1481         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
1482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1483
1484 2010-12-26  Bruno Haible  <bruno@clisp.org>
1485
1486         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
1487         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
1488         _GL_CXXALIAS_SYS.
1489         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1490
1491 2010-12-26  Bruno Haible  <bruno@clisp.org>
1492
1493         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
1494         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
1495         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1496         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
1497         looking for the declaration.
1498         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
1499         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
1500         problem.
1501         * doc/posix-functions/inet_pton.texi: Likewise.
1502
1503 2010-12-26  Bruno Haible  <bruno@clisp.org>
1504
1505         arpa_inet: Use the common idioms with C++ support.
1506         * lib/arpa_inet.in.h: Include c++defs.h.
1507         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1508         support.
1509         * modules/arpa_inet (Depends-on): Add c++defs.
1510         (Makefile.am): Substitute the contents of c++defs.h.
1511         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1512         * modules/arpa_inet-c++-tests: New file.
1513         * tests/test-arpa_inet-c++.cc: New file.
1514
1515 2010-12-25  Bruno Haible  <bruno@clisp.org>
1516
1517         Fix more C++ link errors on Solaris 8.
1518         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1519         $(LIB_EACCESS).
1520         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1521         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1522         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1523         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1524         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1525
1526 2010-12-25  Bruno Haible  <bruno@clisp.org>
1527
1528         printf-posix: Fix link error when a non-GCC compiler is used.
1529         * lib/stdio.in.h (printf): When not using GCC, override printf
1530         correctly.
1531         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1532
1533 2010-12-25  Bruno Haible  <bruno@clisp.org>
1534
1535         strerror_r-posix: Update doc.
1536         * doc/posix-functions/strerror_r.texi: Update doc about the return
1537         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1538
1539 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1540
1541         utimens: simplify the logic of the previous change
1542         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1543         This should not affect whether the test succeeds or fails.
1544
1545         utimens: configure better on hosts with NFS clock skew
1546         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1547         uses the clock of the local host.  It might use the clock of the
1548         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1549         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1550
1551 2010-12-25  Bruno Haible  <bruno@clisp.org>
1552
1553         ptsname test: Avoid failure on Solaris.
1554         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
1555         open a pseudo-terminal; don't use BSD-style ptys.
1556         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
1557
1558 2010-12-25  Bruno Haible  <bruno@clisp.org>
1559
1560         ptsname: Avoid ERANGE failure on some systems.
1561         * lib/ptsname.c (buffer): Increase size.
1562
1563 2010-12-25  Bruno Haible  <bruno@clisp.org>
1564
1565         rename, renameat: Avoid test failures at NFS mounted locations.
1566         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
1567         so that subsequent mkdir calls succeed.
1568
1569 2010-12-25  Bruno Haible  <bruno@clisp.org>
1570
1571         iswblank: Fix C++ link error on Solaris 8.
1572         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
1573         _GL_FUNCDECL_SYS.
1574
1575 2010-12-25  Bruno Haible  <bruno@clisp.org>
1576
1577         unistd: Fix C++ link error on Solaris 8.
1578         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
1579
1580 2010-12-25  Bruno Haible  <bruno@clisp.org>
1581
1582         readlink doc: Mention an old glibc bug.
1583         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
1584
1585 2010-12-25  Bruno Haible  <bruno@clisp.org>
1586
1587         fcntl-h: Fix for use of C++ on glibc systems.
1588         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1589         also on glibc systems in C++ mode.
1590         Reported by Gary V. Vaughan <gary@gnu.org>.
1591
1592 2010-12-25  Bruno Haible  <bruno@clisp.org>
1593
1594         roundl-ieee: Make it work on OSF/1 5.1 with cc.
1595         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
1596
1597 2010-12-25  Bruno Haible  <bruno@clisp.org>
1598
1599         truncl-ieee: Make it work on OSF/1 5.1 with cc.
1600         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
1601         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
1602         test whether truncl works according to ISO C 99 with IEC 60559.
1603         * m4/truncl-ieee.m4: New file.
1604         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
1605         m4/signbit.m4.
1606         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
1607
1608 2010-12-25  Bruno Haible  <bruno@clisp.org>
1609
1610         ceill-ieee: Make it work on OSF/1 5.1 with cc.
1611         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
1612         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
1613         test whether ceill works according to ISO C 99 with IEC 60559.
1614         * m4/ceill-ieee.m4: New file.
1615         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
1616         m4/signbit.m4.
1617         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
1618
1619 2010-12-25  Bruno Haible  <bruno@clisp.org>
1620
1621         Ensure all prerequisites of <wchar.h> are included.
1622         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
1623         before <wchar.h>.
1624         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1625         gl_MBRLEN_NUL_RETVAL): Likewise.
1626         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1627         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
1628         AC_FUNC_MBRTOWC): Likewise.
1629         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1630         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1631         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1632         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1633         Likewise.
1634         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1635         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
1636         (gl_WCHAR_H): Improve comments.
1637         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1638
1639 2010-12-25  Bruno Haible  <bruno@clisp.org>
1640
1641         strtok_r: Fix C syntax error in autoconf macro.
1642         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
1643         characters in test program.
1644
1645 2010-12-24  Bruno Haible  <bruno@clisp.org>
1646
1647         ceil, trunc, round: Fix gcc warnings.
1648         * lib/ceil.c (MIN): Undefine before redefining.
1649         * lib/trunc.c (MIN): Likewise.
1650         * lib/round.c (MIN): Likewise.
1651         Include <math.h> first.
1652
1653 2010-12-24  Bruno Haible  <bruno@clisp.org>
1654
1655         select tests: Avoid failures on OSF/1 5.1.
1656         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
1657         failure of closing the last socket; it may fail with ECONNRESET.
1658
1659 2010-12-24  Eric Blake  <eblake@redhat.com>
1660
1661         stdint: avoid HP-UX 10.20 preprocessor bug
1662         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
1663         than #if.
1664         * tests/test-floor2.c (main): Likewise.
1665         Reported by Peter O'Gorman.
1666
1667         pipe: make obsoletion transition easier
1668         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
1669         * modules/pipe (Files): Include revived file.
1670         (Include): Drop reference, to mirror getdate's behavior.
1671
1672 2010-12-24  Bruno Haible  <bruno@clisp.org>
1673
1674         sys_socket: Hide mismatch of declarations on NonStop Kernel.
1675         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
1676         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
1677         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1678
1679 2010-12-24  Bruno Haible  <bruno@clisp.org>
1680
1681         gethostname: Ensure declaration on NonStop Kernel.
1682         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
1683         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1684
1685 2010-12-24  Bruno Haible  <bruno@clisp.org>
1686
1687         sys_select: Ensure all necessary types on NonStop Kernel.
1688         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
1689         include <sys/time.h>.
1690         * doc/posix-headers/sys_select.texi: Mention that it's missing on
1691         NonStop Kernel.
1692         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1693
1694 2010-12-24  Bruno Haible  <bruno@clisp.org>
1695
1696         sys_select: Remove unneeded include.
1697         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
1698         have <sys/select.h>.
1699
1700 2010-12-24  Bruno Haible  <bruno@clisp.org>
1701
1702         gethostname: Provide a fallback for HOST_NAME_MAX.
1703         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
1704         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
1705         instead.
1706         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1707
1708 2010-12-24  Bruno Haible  <bruno@clisp.org>
1709
1710         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
1711         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
1712         (SA_RESTART): Likewise.
1713         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1714
1715 2010-12-24  Bruno Haible  <bruno@clisp.org>
1716
1717         signal: Define NSIG.
1718         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
1719         * tests/test-signal.c (nsig): New variable.
1720         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1721
1722 2010-12-24  Bruno Haible  <bruno@clisp.org>
1723
1724         rename, renameat: Avoid test failures on OSF/1 5.1.
1725         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
1726         alternative error codes.
1727         * tests/test-renameat.c (main): Likewise.
1728
1729 2010-12-24  Bruno Haible  <bruno@clisp.org>
1730
1731         *printf: Detect large precisions bug on Solaris 10/SPARC.
1732         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
1733         by Paul Eggert.
1734         * tests/test-snprintf-posix.h (test_function): Add this test code here
1735         too.
1736         * tests/test-sprintf-posix.h (test_function): Likewise.
1737         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1738         * tests/test-vasprintf-posix.c (test_function): Likewise.
1739         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
1740         around by gnulib.
1741         * doc/posix-functions/printf.texi: Likewise.
1742         * doc/posix-functions/snprintf.texi: Likewise.
1743         * doc/posix-functions/sprintf.texi: Likewise.
1744         * doc/posix-functions/vfprintf.texi: Likewise.
1745         * doc/posix-functions/vprintf.texi: Likewise.
1746         * doc/posix-functions/vsnprintf.texi: Likewise.
1747         * doc/posix-functions/vsprintf.texi: Likewise.
1748         * doc/posix-functions/dprintf.texi: Undo last commit.
1749         * doc/posix-functions/vdprintf.texi: Likewise.
1750
1751 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1752
1753         tests: port test-fdutimensat.c to Solaris 8
1754         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
1755         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
1756         On Solaris 8, it fails with errno == ENOSYS, because there is no
1757         futimens (so it can't use the fd), and there is no lutimens (so it
1758         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
1759
1760         vsnprintf: make more consistent with snprintf; doc fixes
1761
1762         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
1763         the byte count return problem was promoted from the snprintf-posix
1764         to the snprintf module.
1765         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1766         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
1767         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
1768         * tests/test-snprintf.c (main): Check the byte count returned.
1769         * tests/test-vsnprintf.c (main): Likewise.
1770
1771 2010-12-23  Eric Blake  <eblake@redhat.com>
1772
1773         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
1774         * modules/sigpipe (License): Relax license.
1775
1776 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1777
1778         doc: document Solaris printf bug with large float precisions
1779         * doc/posix-functions/dprintf.texi (dprintf):
1780         * doc/posix-functions/fprintf.texi (fprintf):
1781         * doc/posix-functions/printf.texi (printf):
1782         * doc/posix-functions/snprintf.texi (snprintf):
1783         * doc/posix-functions/sprintf.texi (sprintf):
1784         * doc/posix-functions/vdprintf.texi (vdprintf):
1785         * doc/posix-functions/vfprintf.texi (vfprintf):
1786         * doc/posix-functions/vprintf.texi (vprintf):
1787         * doc/posix-functions/vsnprintf.texi (vsnprintf):
1788         * doc/posix-functions/vsprintf.texi (vsprintf):
1789         Mention that these functions mishandle large floating point
1790         precisions on Solaris 10.  The same bug is also present in Solaris
1791         8, and I assume earlier.  This causes "cd gnulib-tests; make
1792         check" to fail on Solaris 8 (and I assume, later) when building
1793         the latest coreutils, in test-vasprintf-posix's call to
1794         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
1795         the wide flavors (e.g., wprintf) so this patch just updates the
1796         documentation for the narrow ones.
1797
1798         test-posixtm.c: add two tests
1799         * tests/test-posixtm.c: Add two tests, to highlight the
1800         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
1801         around this bug; this is merely to document it.
1802
1803 2010-12-22  Bruno Haible  <bruno@clisp.org>
1804
1805         getlogin_r: Work around portability problem on OSF/1.
1806         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
1807         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
1808         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
1809         test for a truncated result.
1810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
1811         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
1812         * modules/getlogin_r (Depends-on): Add memchr.
1813         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
1814
1815 2010-12-22  Bruno Haible  <bruno@clisp.org>
1816
1817         ptsname: Avoid test failure on OSF/1 5.1.
1818         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
1819         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
1820         (same_slave): New function.
1821         (main): Use it to compare ptsname's result with the expected file name.
1822
1823 2010-12-22  Bruno Haible  <bruno@clisp.org>
1824
1825         Port extended stdio modules to HP NonStop Kernel.
1826         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
1827         macros.
1828         * lib/fbufmode.c: Update comments.
1829         * lib/fflush.c: Likewise.
1830         * lib/fpurge.c: Likewise.
1831         * lib/freadable.c: Likewise.
1832         * lib/freadahead.c: Likewise.
1833         * lib/freading.c: Likewise.
1834         * lib/freadptr.c: Likewise.
1835         * lib/freadseek.c: Likewise.
1836         * lib/fseeko.c: Likewise.
1837         * lib/fseterr.c: Likewise.
1838         * lib/fwritable.c: Likewise.
1839         * lib/fwriting.c: Likewise.
1840         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1841
1842 2010-12-22  Bruno Haible  <bruno@clisp.org>
1843
1844         ttyname_r: Work around bug on OSF/1 5.1.
1845         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
1846         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
1847         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
1848         present.
1849         * lib/ttyname_r.c (ttyname_r): Update comments.
1850
1851 2010-12-22  Bruno Haible  <bruno@clisp.org>
1852
1853         round: Implement result sign according to IEEE 754.
1854         * lib/round.c (MIN, MINUS_ZERO): New macros.
1855         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
1856         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
1857         * tests/test-round-ieee.c (main): Likewise.
1858         * tests/test-roundl-ieee.c (main): Likewise.
1859
1860         trunc: Implement result sign according to IEEE 754.
1861         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
1862         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
1863         * tests/test-trunc2.c: Include minus-zero.h.
1864         (MINUS_ZERO): New macro.
1865         (trunc_reference): Keep in sync with lib/trunc.c.
1866         * tests/test-truncf2.c: Include minus-zero.h.
1867         (MINUS_ZERO): New macro.
1868         (truncf_reference): Keep in sync with lib/trunc.c.
1869         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
1870         * tests/test-trunc-ieee.c (main): Likewise.
1871         * tests/test-truncl-ieee.c (main): Likewise.
1872
1873         ceil: Implement result sign according to IEEE 754.
1874         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
1875         (FUNC): Return -0.0 for -1 < x < 0.
1876         * tests/test-ceil2.c: Include minus-zero.h.
1877         (MINUS_ZERO): New macro.
1878         (ceil_reference): Keep in sync with lib/ceil.c.
1879         * tests/test-ceilf2.c: Include minus-zero.h.
1880         (MINUS_ZERO): New macro.
1881         (ceilf_reference): Keep in sync with lib/ceil.c.
1882         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
1883         * tests/test-ceil-ieee.c (main): Likewise.
1884         * tests/test-ceill-ieee.c (main): Likewise.
1885
1886         floor: Implement result sign according to IEEE 754.
1887         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
1888         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
1889         * tests/test-floorf2.c (floorf_reference): Likewise.
1890         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
1891         * tests/test-floor-ieee.c (main): Likewise.
1892         * tests/test-floorl-ieee.c (main): Likewise.
1893
1894 2010-12-22  Bruno Haible  <bruno@clisp.org>
1895
1896         getaddrinfo: Update doc.
1897         * doc/posix-functions/gai_strerror.texi: Return type is also different
1898         on AIX and HP-UX.
1899
1900 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1901
1902         getaddrinfo, inet_ntop: Update doc for Solaris.
1903         * doc/posix-functions/gai_strerror.texi: Return type is also an
1904         issue on Solaris 9 and earlier.
1905         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
1906         on Solaris 10 and earlier.
1907
1908 2010-12-21  Bruno Haible  <bruno@clisp.org>
1909
1910         New module 'roundl-ieee'.
1911         * modules/roundl-ieee: New file.
1912         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
1913         test whether roundl works according to ISO C 99 with IEC 60559.
1914         * m4/roundl-ieee.m4: New file.
1915         * modules/roundl-ieee-tests: New file.
1916         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
1917         * tests/test-roundl.c (main): Remove signbit tests.
1918         * modules/roundl-tests (Depends-on): Remove signbit.
1919         * doc/posix-functions/roundl.texi: Mention the new module.
1920
1921 2010-12-21  Bruno Haible  <bruno@clisp.org>
1922
1923         New module 'truncl-ieee'.
1924         * modules/truncl-ieee: New file.
1925         * modules/truncl-ieee-tests: New file.
1926         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
1927         * tests/test-truncl.c (main): Remove signbit tests.
1928         * modules/truncl-tests (Depends-on): Remove signbit.
1929         * doc/posix-functions/truncl.texi: Mention the new module.
1930
1931 2010-12-21  Bruno Haible  <bruno@clisp.org>
1932
1933         New module 'ceill-ieee'.
1934         * modules/ceill-ieee: New file.
1935         * modules/ceill-ieee-tests: New file.
1936         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
1937         * tests/test-ceill.c (main): Remove signbit tests.
1938         * modules/ceill-tests (Depends-on): Remove signbit.
1939         * doc/posix-functions/ceill.texi: Mention the new module.
1940
1941 2010-12-21  Bruno Haible  <bruno@clisp.org>
1942
1943         New module 'floorl-ieee'.
1944         * modules/floorl-ieee: New file.
1945         * modules/floorl-ieee-tests: New file.
1946         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
1947         * tests/test-floorl.c (main): Remove signbit tests.
1948         * modules/floorl-tests (Depends-on): Remove signbit.
1949         * doc/posix-functions/floorl.texi: Mention the new module.
1950
1951 2010-12-21  Bruno Haible  <bruno@clisp.org>
1952
1953         New module 'round-ieee'.
1954         * modules/round-ieee: New file.
1955         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
1956         whether round works according to ISO C 99 with IEC 60559.
1957         * m4/round-ieee.m4: New file.
1958         * modules/round-ieee-tests: New file.
1959         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
1960         * tests/test-round1.c (main): Remove signbit tests.
1961         * modules/round-tests (Depends-on): Remove 'signbit'.
1962         * doc/posix-functions/round.texi: Mention the new module.
1963
1964 2010-12-21  Bruno Haible  <bruno@clisp.org>
1965
1966         New module 'trunc-ieee'.
1967         * modules/trunc-ieee: New file.
1968         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
1969         whether trunc works according to ISO C 99 with IEC 60559.
1970         * m4/trunc-ieee.m4: New file.
1971         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
1972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
1973         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
1974         * modules/trunc-ieee-tests: New file.
1975         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
1976         * tests/test-trunc1.c (main): Remove signbit tests.
1977         * modules/trunc-tests (Depends-on): Remove 'signbit'.
1978         * doc/posix-functions/trunc.texi: Mention the new module.
1979
1980 2010-12-21  Bruno Haible  <bruno@clisp.org>
1981
1982         New module 'ceil-ieee'.
1983         * modules/ceil-ieee: New file.
1984         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
1985         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
1986         ISO C 99 with IEC 60559.
1987         * m4/ceil-ieee.m4: New file.
1988         * modules/ceil (Files): Add lib/ceil.c.
1989         (Depends-on): Add 'float'.
1990         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1991         * lib/math.in.h (ceil): New declaration.
1992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
1993         REPLACE_CEIL.
1994         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
1995         * modules/ceil-ieee-tests: New file.
1996         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
1997         * tests/test-math-c++.cc: Check the signature of 'ceil'.
1998         * doc/posix-functions/ceil.texi: Mention the new module.
1999
2000 2010-12-21  Bruno Haible  <bruno@clisp.org>
2001
2002         New module 'floor-ieee'.
2003         * modules/floor-ieee: New file.
2004         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2005         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2006         ISO C 99 with IEC 60559.
2007         * m4/floor-ieee.m4: New file.
2008         * modules/floor (Files): Add lib/floor.c.
2009         (Depends-on): Add 'float'.
2010         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2011         * lib/math.in.h (floor): New declaration.
2012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2013         REPLACE_FLOOR.
2014         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2015         * modules/floor-ieee-tests: New file.
2016         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2017         * tests/test-math-c++.cc: Check the signature of 'floor'.
2018         * doc/posix-functions/floor.texi: Mention the new module.
2019
2020 2010-12-21  Bruno Haible  <bruno@clisp.org>
2021
2022         New module 'roundf-ieee'.
2023         * modules/roundf-ieee: New file.
2024         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2025         test whether roundf works according to ISO C 99 with IEC 60559.
2026         * m4/roundf-ieee.m4: New file.
2027         * modules/roundf-ieee-tests: New file.
2028         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2029         * tests/test-roundf1.c (main): Remove signbit tests.
2030         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2031         * doc/posix-functions/roundf.texi: Mention the new module.
2032
2033 2010-12-21  Bruno Haible  <bruno@clisp.org>
2034
2035         New module 'truncf-ieee'.
2036         * modules/truncf-ieee: New file.
2037         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2038         test whether truncf works according to ISO C 99 with IEC 60559.
2039         * m4/truncf-ieee.m4: New file.
2040         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2042         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2043         * modules/truncf-ieee-tests: New file.
2044         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2045         * tests/test-truncf1.c (main): Remove signbit tests.
2046         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2047         * doc/posix-functions/truncf.texi: Mention the new module.
2048
2049 2010-12-21  Bruno Haible  <bruno@clisp.org>
2050
2051         New module 'ceilf-ieee'.
2052         * modules/ceilf-ieee: New file.
2053         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2054         test whether ceilf works according to ISO C 99 with IEC 60559.
2055         * m4/ceilf-ieee.m4: New file.
2056         * modules/ceilf-ieee-tests: New file.
2057         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2058         * tests/test-ceilf1.c (main): Remove signbit tests.
2059         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2060         * doc/posix-functions/ceilf.texi: Mention the new module.
2061
2062 2010-12-21  Bruno Haible  <bruno@clisp.org>
2063
2064         New module 'floorf-ieee'.
2065         * modules/floorf-ieee: New file.
2066         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2067         test whether floorf works according to ISO C 99 with IEC 60559.
2068         * m4/floorf-ieee.m4: New file.
2069         * modules/floorf-ieee-tests: New file.
2070         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2071         * tests/test-floorf1.c (main): Remove signbit tests.
2072         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2073         * doc/posix-functions/floorf.texi: Mention the new module.
2074
2075 2010-12-21  Bruno Haible  <bruno@clisp.org>
2076
2077         Support for minus zero in autoconf macros.
2078         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2079         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2080         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2081         * tests/minus-zero.h: Update comments.
2082
2083 2010-12-21  Bruno Haible  <bruno@clisp.org>
2084
2085         Tests for module 'ceil'.
2086         * modules/ceil-tests: New file.
2087         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2088         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2089
2090 2010-12-21  Bruno Haible  <bruno@clisp.org>
2091
2092         Tests for module 'floor'.
2093         * modules/floor-tests: New file.
2094         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2095         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2096
2097 2010-12-21  Bruno Haible  <bruno@clisp.org>
2098
2099         math: Fix indentation.
2100         * lib/math.in.h (floorf): Fix indentation.
2101
2102 2010-12-21  Bruno Haible  <bruno@clisp.org>
2103
2104         Fix cross-compilation guesses on Solaris.
2105         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2106         not match "solaris2.10".
2107         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2108         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2109         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2110
2111 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2112
2113         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2114         This fixes a problem observed with the latest coreutils snapshot
2115         that caused a test to fail on Solaris 8.  src/csplit.c's call
2116         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2117         earlier, instead of returning the number of bytes that would have
2118         been generated; this causes csplit to incorrectly report memory
2119         exhaustion.
2120         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2121         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2122         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2123         comments to match.
2124         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2125         Fix typo in matching older versions of Solaris: "solaris2.10"
2126         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2127         only for guessing while cross-compiling.
2128         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2129
2130 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2131
2132         ftoastr: fix comment again
2133         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2134         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2135         Also, simplify example a bit by using flags = 0.
2136
2137 2010-12-20  Bruno Haible  <bruno@clisp.org>
2138
2139         round*, trunc*: Update documentation regarding glibc.
2140         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2141         * doc/posix-functions/round.texi: Likewise.
2142         * doc/posix-functions/roundl.texi: Likewise.
2143         * doc/posix-functions/truncf.texi: Likewise.
2144         * doc/posix-functions/trunc.texi: Likewise.
2145         * doc/posix-functions/truncl.texi: Likewise.
2146
2147 2010-12-20  Bruno Haible  <bruno@clisp.org>
2148
2149         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2150         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2151         * doc/posix-functions/round.texi: Likewise.
2152         * doc/posix-functions/roundl.texi: Likewise.
2153
2154 2010-12-20  Bruno Haible  <bruno@clisp.org>
2155
2156         ttyname_r: Add missing declaration on HP-UX 11.
2157         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2158         HAVE_TTYNAME_R.
2159         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2160         declared. Set HAVE_TTYNAME_R always.
2161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2162         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2163         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2164         HAVE_TTYNAME_R.
2165         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2166
2167 2010-12-20  Bruno Haible  <bruno@clisp.org>
2168
2169         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2170         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2171         * doc/posix-functions/getlogin_r.texi: Likewise.
2172         * tests/test-getlogin.c: Include <errno.h>.
2173         (main): Avoid test failure on HP-UX 11.11.
2174         * tests/test-getlogin_r.c (main): Likewise.
2175
2176 2010-12-20  Bruno Haible  <bruno@clisp.org>
2177
2178         getlogin_r: Add missing declaration on HP-UX 11.
2179         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2180         declared also when it exists as a function.
2181         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2182
2183 2010-12-20  Bruno Haible  <bruno@clisp.org>
2184
2185         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2186         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2187         through wcrtomb.
2188
2189 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2190
2191         ftoastr: fix comment
2192         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2193         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2194
2195 2010-12-19  Bruno Haible  <bruno@clisp.org>
2196
2197         isnan: Ensure it is a macro.
2198         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2199         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2200         Solaris.
2201
2202 2010-12-19  Bruno Haible  <bruno@clisp.org>
2203
2204         ldexpl test: Fix link error on OSF/1 5.1.
2205         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2206
2207 2010-12-19  Bruno Haible  <bruno@clisp.org>
2208
2209         wctype: Make it work in C++ mode on OSF/1 5.1.
2210         * lib/wctype.in.h (iswblank): Declare but not define here.
2211         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2212         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2213         * modules/wctype (Files): Add lib/iswblank.c.
2214
2215 2010-12-19  Bruno Haible  <bruno@clisp.org>
2216
2217         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2218         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2219         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2220
2221 2010-12-19  Bruno Haible  <bruno@clisp.org>
2222
2223         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2225         _POSIX_PII_SOCKET.
2226         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2227         * doc/posix-functions/recvfrom.texi: Likewise.
2228         * doc/posix-functions/send.texi: Likewise.
2229         * doc/posix-functions/sendto.texi: Likewise.
2230
2231 2010-12-19  Bruno Haible  <bruno@clisp.org>
2232
2233         tcgetsid: Add missing declaration on OSF/1 5.1.
2234         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2235         HAVE_TCGETSID.
2236         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2237         Don't set HAVE_TCGETSID.
2238         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2239         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2240         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2241         HAVE_TCGETSID.
2242         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2243
2244 2010-12-19  Bruno Haible  <bruno@clisp.org>
2245
2246         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2247         * lib/stdio.in.h: During the include_next statement, let recursive
2248         includes of this file include only the system header file.
2249
2250 2010-12-19  Bruno Haible  <bruno@clisp.org>
2251
2252         iconv_open: Fix regression from 2010-12-04.
2253         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2254         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2255
2256 2010-12-19  Bruno Haible  <bruno@clisp.org>
2257
2258         stdbool test: Avoid a gcc warning.
2259         * tests/test-stdbool.c (main): Fail if e1 is false.
2260         Reported by Jim Meyering.
2261
2262 2010-12-19  Jim Meyering  <meyering@redhat.com>
2263
2264         setenv: restore to working order
2265         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2266         mistakenly removed.
2267         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2268         HAVE_SETENV.
2269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2270         HAVE_SETENV.
2271
2272 2010-12-19  Bruno Haible  <bruno@clisp.org>
2273
2274         Document some different function declarations on OSF/1 5.1.
2275         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2276         * doc/posix-functions/inet_ntop.texi: Likewise.
2277         * doc/posix-functions/gethostname.texi: Likewise.
2278         * lib/unistd.in.h (gethostname): Update comment.
2279
2280 2010-12-19  Bruno Haible  <bruno@clisp.org>
2281
2282         doc: Mention vasprintf-posix module.
2283         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2284         the 'vasprintf-posix' module.
2285         * doc/glibc-functions/vasprintf.texi: Likewise.
2286
2287 2010-12-19  Bruno Haible  <bruno@clisp.org>
2288
2289         unsetenv: Add missing declaration on OSF/1 5.1.
2290         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2291         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2292         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2294         not HAVE_UNSETENV.
2295         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2296         HAVE_UNSETENV.
2297         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2298
2299 2010-12-19  Bruno Haible  <bruno@clisp.org>
2300
2301         setenv: Add missing declaration on OSF/1 5.1.
2302         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2303         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2304         declared. Don't set HAVE_SETENV.
2305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2306         not HAVE_SETENV.
2307         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2308         HAVE_SETENV.
2309         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2310
2311 2010-12-19  Bruno Haible  <bruno@clisp.org>
2312
2313         nl_langinfo tests: Avoid gcc warning.
2314         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2315
2316 2010-12-19  Bruno Haible  <bruno@clisp.org>
2317
2318         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2319         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2320         _GL_CXXALIAS_SYS.
2321
2322 2010-12-19  Bruno Haible  <bruno@clisp.org>
2323
2324         stdbool: Relax test.
2325         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2326         address to 'bool' work in static initializer, for compilers other than
2327         GCC.
2328
2329 2010-12-19  Bruno Haible  <bruno@clisp.org>
2330
2331         ftello: Add missing declaration on OSF/1 5.1.
2332         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2333         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2335         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2336         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2337
2338 2010-12-19  Bruno Haible  <bruno@clisp.org>
2339
2340         fseeko: Add missing declaration on OSF/1 5.1.
2341         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2342         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2344         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2345         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2346
2347 2010-12-19  Bruno Haible  <bruno@clisp.org>
2348
2349         fchdir: Add missing declaration on OSF/1 5.1.
2350         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2353         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2354         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2355
2356 2010-12-19  Bruno Haible  <bruno@clisp.org>
2357
2358         relocatable-prog-wrapper: Separate from relocatable-prog.
2359         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2360         uninstall-relocwrapper rule here.
2361         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2362         Reported by Ian Beckwith <ianb@erislabs.net>.
2363
2364 2010-12-19  Bruno Haible  <bruno@clisp.org>
2365
2366         unistr/u8-mbsnlen: Add missing dependency.
2367         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2368         Reported by Ian Beckwith <ianb@erislabs.net>.
2369
2370 2010-12-19  Bruno Haible  <bruno@clisp.org>
2371
2372         iconv: Make it possible again to use this module without 'iconv-h'.
2373         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2374         if it is not defined.
2375         Reported by Ian Beckwith <ianb@erislabs.net>.
2376
2377 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2378
2379         acl: port to Solaris 8 when copying from tmpfs to ufs
2380         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2381         error number.  Problem observed on Solaris 8 with latest
2382         coreutils, with "mv A B", where A is on a tmpfs file system and B
2383         is on a ufs file system.  This caused coreutils' mv/part-symlink
2384         test to fail.
2385
2386         tests: set fail=0 at start
2387         * tests/init.sh (setup_): Move fail=0 initialization here ...
2388         (mktempd_): ... from here, so that tests can rely on fail being
2389         set to 0 initially.  This fixes a problem in coreutils; see:
2390         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2391
2392 2010-12-18  Bruno Haible  <bruno@clisp.org>
2393
2394         memmem-simple: Stylistic changes.
2395         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2396         Fix preprocessor directive indentation.
2397
2398 2010-12-15  Pádraig Brady <P@draigBrady.com>
2399
2400         memmem, memmem-simple: reorganize and expand empty needle check
2401         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2402         functional checks to memmem-simple so that one has a fully functional
2403         memmem by using just this module.
2404         Restrict the performance only check to the memmem module.
2405         Also expand the empty needle check to ensure the correct
2406         pointer is returned, not just a non NULL pointer.
2407         * doc/glibc-functions/memmem.texi: Rearrange the portability
2408         documentation to correlate with the rearranged checks.
2409         Clarify exactly how the memmem and memmem-simple modules
2410         relate to each other.
2411
2412 2010-12-15  Pádraig Brady <P@draigBrady.com>
2413             Bruno Haible  <bruno@clisp.org>
2414
2415         Improve cross-compilation guesses for uClibc.
2416         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2417         that uClibc does not have the glibc bug.
2418         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2419         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2420
2421 2010-12-14  Eric Blake  <eblake@redhat.com>
2422
2423         configmake: provide fallbacks for oldest supported autotools
2424         * m4/configmake.m4: New file.
2425         * modules/configmake (Files): Ship it.
2426         (configure.ac): Use it to guarantee fallbacks.
2427
2428 2010-12-13  Pádraig Brady <P@draigBrady.com>
2429
2430         read-file: Improve handling of large files
2431         * lib/read-file.c (fread_file): Minimize realloc()s
2432         for regular files, and better manage sizes around SIZE_MAX.
2433
2434 2010-12-13  Eric Blake  <eblake@redhat.com>
2435
2436         cloexec, fcntl: relax license
2437         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2438         consent from all contributors.
2439         * modules/fcntl (License): Likewise.
2440
2441 2010-12-10  Bruno Haible  <bruno@clisp.org>
2442
2443         Tests for module 'pipe-posix'.
2444         * modules/pipe-posix-tests: New file.
2445         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2446
2447 2010-12-10  Bruno Haible  <bruno@clisp.org>
2448
2449         pipe-posix: Make it work in C++ mode.
2450         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2451         (pipe): Use common idiom, not a macro definition.
2452         * lib/pipe.c: New file.
2453         * m4/pipe.m4: New file.
2454         * modules/pipe-posix (Description): Enhance.
2455         (Files): Add lib/pipe.c, m4/pipe.m4.
2456         (configure.ac): Invoke gl_FUNC_PIPE.
2457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2458         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2459         * tests/test-unistd-c++.cc: Check the signature of pipe.
2460
2461 2010-12-10  Bruno Haible  <bruno@clisp.org>
2462
2463         Rename module 'pipe' to 'spawn-pipe'.
2464         * modules/spawn-pipe: New file, renamed from modules/pipe.
2465         (Files, configure.ac, Makefile.am): Update.
2466         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2467         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2468         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2469         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2470         "spawn-pipe.h" instead of "pipe.h".
2471         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2472         to gl_SPAWN_PIPE.
2473         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2474         (Files, Makefile.am): Update.
2475         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2476         Update.
2477         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
2478         Include "spawn-pipe.h" instead of "pipe.h".
2479         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
2480         * lib/javacomp.c: Likewise.
2481         * lib/javaversion.c: Likewise.
2482         * lib/pipe-filter-gi.c: Likewise.
2483         * lib/pipe-filter-ii.c: Likewise.
2484         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
2485         * modules/javacomp (Depends-on): Likewise.
2486         * modules/javaversion (Depends-on): Likewise.
2487         * modules/pipe-filter-gi (Depends-on): Likewise.
2488         * modules/pipe-filter-ii (Depends-on): Likewise.
2489         * MODULES.html.sh (Executing programs): Update.
2490         * NEWS: Mention the change.
2491
2492 2010-12-10  Eric Blake  <eblake@redhat.com>
2493
2494         pipe-posix: new module
2495         * modules/pipe-posix: New file.
2496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
2497         (gl_UNISTD_H): Check for declaration.
2498         * modules/unistd (Makefile.am): Substitute it.
2499         * lib/unistd.in.h (pipe): Provide it for mingw.
2500         * doc/posix-functions/pipe.texi (pipe): Update documentation.
2501         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
2502
2503 2010-12-07  Bruno Haible  <bruno@clisp.org>
2504
2505         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2506         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2507         u8_strcmp_gnu.
2508         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2509
2510 2010-12-06  Bruno Haible  <bruno@clisp.org>
2511
2512         Update internal documentation.
2513         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2514
2515 2010-12-04  Bruno Haible  <bruno@clisp.org>
2516
2517         Put more information about failed tests into the test return codes.
2518         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2519         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2520         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2521         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2522         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2523         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2524         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2525         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2526         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2527         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2528         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2529         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2530         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2531         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2532         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2533         returns a bit mask.
2534         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2535         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2536         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2537         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2538         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2539         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2540         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2542         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2543         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2544         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2545         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2546         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2547         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2548         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2549         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2550         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
2551         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
2552         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2553         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
2554         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2555         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2556         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2557         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2558         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2559         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2560         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2561         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2562         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2563         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
2564         gl_PRINTF_PRECISION): Likewise.
2565         * m4/regex.m4 (gl_REGEX): Likewise.
2566         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2567         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2568         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
2569         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2570         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2571         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2572         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2573         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
2574         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2575         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2576         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2577         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2578         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2579         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2580         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2581         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2582         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2583         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2585         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
2586         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
2587         enumerated value.
2588         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
2589
2590 2010-12-04  Bruno Haible  <bruno@clisp.org>
2591
2592         Update for Solaris 11 2010-11.
2593         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
2594         Express, released in November 2010.
2595
2596 2010-12-04  Bruno Haible  <bruno@clisp.org>
2597
2598         nproc: Relax license.
2599         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
2600         and Paul Eggert.
2601         Requested by Ludovic Courtès <ludo@gnu.org>.
2602
2603 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2604
2605         utimecmp: fine-grained src to nearby coarse-grained dest
2606
2607         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
2608         and the source is on a file system with higher-resolution time
2609         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
2610         not work, and the time stamps are close together, the algorithm to
2611         determine the exact resolution from the read-back mtime was buggy:
2612         it had a "!=" where it should have had an "==".  This bug has been
2613         in the code ever since it was introduced to gnulib.
2614         Problem reported by Dan Jacobson in
2615         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
2616
2617 2010-11-30  Bruno Haible  <bruno@clisp.org>
2618
2619         strerror_r-posix: Fix autoconf test.
2620         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
2621
2622 2010-11-28  Bruno Haible  <bruno@clisp.org>
2623             Paul Eggert  <eggert@cs.ucla.edu>
2624
2625         Tests for module 'getdomainname'.
2626         * modules/getdomainname-tests: New file.
2627         * tests/test-getdomainname.c: New file, based on
2628         tests/test-gethostname.c.
2629
2630 2010-11-28  Bruno Haible  <bruno@clisp.org>
2631             Paul Eggert  <eggert@cs.ucla.edu>
2632
2633         getdomainname: Use the system function when possible.
2634         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
2635         (getdomainname): Replace if needed. Provide the declaration if it is
2636         missing. Don't use _GL_CXXALIAS_SYS_CAST.
2637         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
2638         (getdomainname): When the system has getdomainname, call the system
2639         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
2640         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
2641         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
2642         found in libnsl. Look for the declaration also in <netdb.h>. Replace
2643         the function if its second argument is of type 'int' or if it is found
2644         in libnsl.
2645         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
2646         <sys/systeminfo.h> and sysinfo().
2647         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
2648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2649         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
2650         HAVE_GETDOMAINNAME.
2651         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
2652         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
2653         * doc/glibc-functions/getdomainname.texi: Document the problems with
2654         the getdomainname declaration.
2655
2656 2010-11-28  Bruno Haible  <bruno@clisp.org>
2657
2658         sys_socket: Ensure ss_family field on AIX.
2659         * lib/sys_socket.in.h (ss_family): New macro definition.
2660         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
2661         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
2662         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2663         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2664         * modules/sys_socket (Makefile.am): Substitute
2665         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2666         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
2667
2668 2010-11-27  Bruno Haible  <bruno@clisp.org>
2669
2670         readline: Improve configure output.
2671         * m4/readline.m4 (gl_FUNC_READLINE): Make the
2672         "checking for readline..." result understandable.
2673
2674 2010-11-27  Bruno Haible  <bruno@clisp.org>
2675
2676         *printf-posix: Detect a bug on Solaris 10/x86.
2677         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
2678         for floating-point output.
2679         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
2680         directive.
2681         * tests/test-snprintf-posix.h (test_function): Likewise.
2682         * tests/test-sprintf-posix.h (test_function): Likewise.
2683         * tests/test-vasprintf-posix.c (test_function): Likewise.
2684         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
2685         * doc/posix-functions/printf.texi: Likewise.
2686         * doc/posix-functions/snprintf.texi: Likewise.
2687         * doc/posix-functions/sprintf.texi: Likewise.
2688         * doc/posix-functions/vfprintf.texi: Likewise.
2689         * doc/posix-functions/vprintf.texi: Likewise.
2690         * doc/posix-functions/vsnprintf.texi: Likewise.
2691         * doc/posix-functions/vsprintf.texi: Likewise.
2692         * doc/glibc-functions/obstack_printf.texi: Likewise.
2693         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2694
2695 2010-11-27  Bruno Haible  <bruno@clisp.org>
2696
2697         Fix link error when module libunistring-optional is in use.
2698         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
2699         * modules/striconveha-tests (Makefile.am): Likewise.
2700
2701 2010-11-27  Bruno Haible  <bruno@clisp.org>
2702
2703         regex: Mention link dependencies.
2704         * modules/regex (Link): New section.
2705         * modules/rpmatch (Link): Likewise.
2706         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
2707
2708 2010-11-27  Bruno Haible  <bruno@clisp.org>
2709
2710         ftoastr: Fix compilation error on Solaris.
2711         * lib/ftoastr.c: Include <config.h>.
2712
2713 2010-11-27  Bruno Haible  <bruno@clisp.org>
2714
2715         getloadavg: Update documentation.
2716         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
2717
2718 2010-11-27  Bruno Haible  <bruno@clisp.org>
2719
2720         sys_socket: Fix test whether the functions are declared.
2721         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
2722         not <sys/select.h>.
2723
2724 2010-11-27  Bruno Haible  <bruno@clisp.org>
2725
2726         getpass: Make sure to get system declaration on some platforms.
2727         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
2728         gl_USE_SYSTEM_EXTENSIONS.
2729         * modules/getpass (Depends-on): Add extensions.
2730
2731 2010-11-26  Bruno Haible  <bruno@clisp.org>
2732
2733         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
2734         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
2735         'iconv' module is present.
2736         (ICONV_CONST): New macro.
2737         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
2738         ICONV_CONST.
2739         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
2740         set ICONV_CONST.
2741         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
2742         here.
2743         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
2744         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
2745         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
2746         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
2747         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
2748         present.
2749
2750 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
2751
2752         ftoastr: comment fix
2753         * lib/ftoastr.c: "little" -> "little or no" in comment
2754
2755 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2756
2757         stdint: port to GCC 4.3 + OSX + Octave
2758         On this platform, stdint.h is buggy and defines int64_t to long
2759         long int.  The replacement defined it to long int, causing
2760         problems with C++ style name mangling.  Instead, trust the system
2761         definition if INT64_MAX is defined, and likewise for the unsigned
2762         variant.   Problem reported by Jarno Rajahalme in
2763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
2764         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
2765         and don't mess with int64_t and INT64_MAX in this case.
2766         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
2767
2768 2010-11-24  Bruno Haible  <bruno@clisp.org>
2769
2770         doc: Corrections regarding MacOS X 10.4 and 10.5.
2771         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
2772         MacOS X.
2773         Reported by Simon Josefsson.
2774
2775 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
2776
2777         Uninstall ".bin" files installed by relocwrapper.
2778         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
2779         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
2780         unless it is already there.
2781
2782 2010-11-21  Bruno Haible  <bruno@clisp.org>
2783
2784         Update for NetBSD 5.0.
2785         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2786         NetBSD; the test fails on NetBSD 5.0.
2787         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2788         about NetBSD.
2789
2790 2010-11-21  Bruno Haible  <bruno@clisp.org>
2791
2792         Update for HP-UX 11.23 and HP-UX 11.31.
2793         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
2794         HP-UX.
2795
2796 2010-11-21  Bruno Haible  <bruno@clisp.org>
2797
2798         Update for MacOS X 10.5.
2799         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2800         MacOS X; the test fails on MacOS X 10.5.8.
2801         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2802         about MacOS X.
2803
2804 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
2805
2806         bootstrap: add bootstrap_sync option.
2807         See discussion at
2808         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
2809         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
2810         * build-aux/bootstrap: Accept --bootstrap-sync to update
2811         bootstrap if it is not identical to the local gnulib's
2812         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
2813         enable this by default.  Accept --no-bootstrap-sync to disable
2814         it.
2815
2816 2010-11-20  Bruno Haible  <bruno@clisp.org>
2817
2818         Ensure that <features.h> is included before __GLIBC__ is tested.
2819         * lib/printf-parse.h: Include <features.h>.
2820         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
2821         Reported by Mike Frysinger <vapier@gentoo.org>.
2822
2823         Ensure that <features.h> is included before __GLIBC__ is tested.
2824         * lib/wchar.in.h: Include <features.h>.
2825         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
2826         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
2827         Reported by Mike Frysinger <vapier@gentoo.org>.
2828
2829         Ensure that <features.h> is included before __GLIBC__ is tested.
2830         * lib/arpa_inet.in.h: Include <features.h>.
2831         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
2832         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
2833         Reported by Mike Frysinger <vapier@gentoo.org>.
2834
2835         Ensure that <features.h> is included before __GLIBC__ is tested.
2836         * build-aux/link-warning.h: Include <features.h>.
2837         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
2838         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
2839         Reported by Mike Frysinger <vapier@gentoo.org>.
2840
2841         Ensure that <features.h> is included before __GLIBC__ is tested.
2842         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
2843         Reported by Mike Frysinger <vapier@gentoo.org>.
2844
2845 2010-11-20  Bruno Haible  <bruno@clisp.org>
2846
2847         memmem: Fix autoconf test.
2848         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
2849
2850 2010-11-20  Bruno Haible  <bruno@clisp.org>
2851
2852         Port to uClibc.
2853         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
2854         * lib/fcntl.in.h: Likewise.
2855         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
2856         * lib/mbrtowc.c (mbrtowc): Likewise.
2857         * lib/relocatable.c (find_shared_library_fullname): Likewise.
2858         * lib/strerror_r.c: Likewise.
2859         * lib/unistr/u8-strnlen.c: Likewise.
2860         * lib/vasnprintf.c (decimal_point_char): Likewise.
2861         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2862         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2863         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2864         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
2865         * tests/test-sigaction.c (handler, main): Likewise.
2866         * lib/freading.h: Treat uClibc like a non-glibc platform.
2867         * lib/freading.c: Likewise.
2868         * lib/gettext.h: Likewise.
2869         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
2870         Likewise.
2871         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
2872         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2873         * lib/propername.c (proper_name_utf8): Likewise.
2874         * lib/spawn.in.h: Likewise.
2875         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
2876         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
2877         mem_cd_iconveh_internal): Likewise.
2878         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
2879         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2880         strstr, strcasestr): Likewise.
2881         * lib/unicodeio.c (unicode_to_mb): Likewise.
2882         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
2883         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
2884         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
2885         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
2886         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
2887         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
2888         * lib/unistr/u8-stpncpy.c: Likewise.
2889         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2890         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
2891         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2892         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2893         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
2894         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
2895         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
2896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
2897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2898         Likewise.
2899         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2900         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2901         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2903         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2904         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2905         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2906         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2907         * tests/test-getopt.h (OPTIND_MIN): Likewise.
2908         * tests/test-striconveha.c (main): Likewise.
2909         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2910         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
2911         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
2912         * doc/posix-functions/getline.texi: Likewise.
2913         Reported by Mike Frysinger <vapier@gentoo.org>.
2914
2915 2010-11-20  Bruno Haible  <bruno@clisp.org>
2916
2917         nproc: Fix condition.
2918         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
2919         HAVE_PTHREAD_AFFINITY_NP.
2920
2921 2010-11-20  Bruno Haible  <bruno@clisp.org>
2922
2923         Fix a comment.
2924         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
2925
2926 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
2927
2928         ftoastr: don't assume snprintf
2929         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
2930         Implement a subset of snprintf here, by using sprintf safely.
2931         * modules/ftoastr (Depends-on): Remove snprintf.
2932
2933 2010-11-19  Jim Meyering  <meyering@redhat.com>
2934
2935         test-rename.h: fix compilation failure
2936         * tests/test-rename.h (test_rename): Add omitted "}".
2937
2938 2010-11-17  Jim Meyering  <meyering@redhat.com>
2939
2940         maint.mk: add a URL discussing the no-@acronym policy
2941         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
2942
2943 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2944
2945         ftoastr: depend on snprintf, improve comments
2946         * lib/ftoastr.c: Also mention Loitsch's draft.
2947         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
2948         needed in the current implementation, but it might simplify
2949         speeding up the code later.
2950         * modules/ftoastr: Depend on snprintf; this improves portability.
2951         Suggested by Bruno Haible in the same email.
2952
2953         ftoastr: port to hosts lacking strtof and strtold
2954         Problem reported by Bruno Haible in
2955         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
2956         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
2957         environment and strtold (and presumably strtof) are not available.
2958         * modules/ftoastr (Files): Add m4/c-strtod.m4.
2959         (configure.ac): Require gl_C99_STRTOLD.
2960
2961 2010-11-18  Bruno Haible  <bruno@clisp.org>
2962
2963         c-strtold: Avoid link error on AIX 7.
2964         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
2965         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
2966         (gl_C_STRTOLD): Test whether strtold_l exists.
2967         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2968
2969 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2970
2971         intprops: new macro INT_BITS_STRLEN_BOUND
2972         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
2973         ftoastr.h.  This exposes an internal of intprops.h that was formerly
2974         not exposed.  Also, it uses a slightly tighter bound than before;
2975         though this makes no practical difference, we might as well be as
2976         tight as we easily can.
2977
2978         ftoastr: new module, for lossless conversion of floats to short strings
2979         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
2980         * modules/ftoastr: New files.
2981
2982 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2983
2984         bootstrap: port to Solaris sed
2985         * build-aux/bootstrap (get_version): Port to Solaris sed.
2986         See Ralf Wildenhues's note in
2987         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
2988
2989 2010-11-14  Jim Meyering  <meyering@redhat.com>
2990
2991         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
2992         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
2993         and move definition closer to sole use.
2994
2995 2010-11-13  Jim Meyering  <meyering@redhat.com>
2996
2997         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
2998         Now we require at least autoconf-2.59, which means the work-around
2999         is no longer needed.
3000         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3001         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3002         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3003         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3004         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3005
3006 2010-11-13  Bruno Haible  <bruno@clisp.org>
3007
3008         rename, renameat: Avoid test failures at NFS mounted locations.
3009         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3010         functions.
3011         (test_rename): Use assert_nonexistent.
3012         * tests/test-rename.c: Include <dirent.h>.
3013         * tests/test-renameat.c: Likewise.
3014         Reported by Gary V. Vaughan <gary@gnu.org>.
3015
3016         rename, renameat: Document Linux bug with NFS
3017         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3018         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3019         * doc/posix-functions/renameat.texi: Likewise.
3020         Suggested by Eric Blake.
3021
3022 2010-11-13  Bruno Haible  <bruno@clisp.org>
3023
3024         rename test: Add comments.
3025         * tests/test-rename.h (test_rename): Add structure and comments.
3026
3027 2010-11-13  Eric Blake  <eblake@redhat.com>
3028
3029         maintainer-makefile: cover a few more files
3030         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3031         scripts generated within C files, for libvirt.
3032
3033 2010-11-13  Bruno Haible  <bruno@clisp.org>
3034
3035         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3036         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3037         character, return the number of bytes that belong together, not always
3038         1.
3039         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3040         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3041         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3042         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3043         number of bytes of an invalid character.
3044         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3045         (main): Invoke it.
3046         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3047         results.
3048         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3049         malformed byte sequences.
3050         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3051         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3052         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3053         Reported by Ben Pfaff and Paolo Bonzini.
3054
3055 2010-11-13  Bruno Haible  <bruno@clisp.org>
3056
3057         openat: Work around glibc bug with fchownat() and empty file names.
3058         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3059         (gl_FUNC_FCHOWNAT): Invoke it.
3060         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3061         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3062         Reported by Gary V. Vaughan <gary@gnu.org>.
3063
3064 2010-11-13  Bruno Haible  <bruno@clisp.org>
3065
3066         openat: Ensure autoconf macro ordering.
3067         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3068         gl_USE_SYSTEM_EXTENSIONS.
3069         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3070
3071 2010-11-13  Bruno Haible  <bruno@clisp.org>
3072
3073         Update comments.
3074         * lib/unistr/u8-check.c: Update file name in comments.
3075         * lib/unistr/u8-mblen.c: Likewise.
3076         * lib/unistr/u8-prev.c: Likewise.
3077         * lib/unistr/u8-strmblen.c: Likewise.
3078         * lib/unistr/u8-strmbtouc.c: Likewise.
3079
3080 2010-11-13  Jim Meyering  <meyering@redhat.com>
3081
3082         tests: avoid test failure on Solaris 10 due to lack of PATH export
3083         * tests/test-update-copyright.sh: Don't forget to export PATH.
3084
3085         init.sh: ensure that IFS is defined, just in case...
3086         * tests/init.sh (setup_): Ensure that IFS is defined,
3087         so that saving and restoring it works as expected.  This
3088         appears to be useful at least for an old version of dash
3089         from a long time ago (RH 6).  See here for details:
3090         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3091
3092         maint.mk: tighten "test a == b" check
3093         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3094         test to files that contain something like #!/bin/sh.
3095         Without this, coreutils would get two false positives in
3096         the comments of C source files.
3097
3098 2010-11-12  Eric Blake  <eblake@redhat.com>
3099
3100         bootstrap: fix typo in previous attempt
3101         * build-aux/bootstrap (buildreq): Correct the grouping.
3102         Reported by Paul Eggert.
3103
3104         maintainer-makefile: prohibit test x == x
3105         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3106         Based on a report by Matthias Bolte.
3107
3108         bootstrap: allow FreeBSD gzip
3109         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3110         which has no '.' and goes to stderr.
3111         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3112         Reported by Matthias Bolte.
3113
3114         maintainer-makefile: check for i18n setup
3115         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3116         will likely work.
3117
3118 2010-11-12  Bruno Haible  <bruno@clisp.org>
3119
3120         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3121         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3122         * lib/nanosleep.c (nanosleep): Likewise.
3123
3124 2010-11-11  Bruno Haible  <bruno@clisp.org>
3125
3126         fcntl-h: Fix for use of C++ on glibc systems.
3127         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3128         also on glibc systems in C++ mode.
3129         Reported by Gary V. Vaughan <gary@gnu.org>.
3130
3131 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3132
3133         mknod: avoid false failure with dash
3134         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3135
3136 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3137
3138         unlink: Fix "is it should" typo in diagnostic.
3139         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3140         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3141
3142 2010-11-11  Bruno Haible  <bruno@clisp.org>
3143
3144         Tests for module 'strerror_r-posix'.
3145         * modules/strerror_r-posix-tests: New file.
3146         * tests/test-strerror_r.c: New file.
3147         * tests/test-string-c++.cc: Check the signature of strerror_r.
3148
3149         New module 'strerror_r-posix'.
3150         * lib/string.in.h (strerror_r): New declaration.
3151         * lib/strerror_r.c: New file.
3152         * m4/strerror_r.m4: New file.
3153         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3154         of strerror_r.
3155         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3156         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3157         * modules/strerror_r-posix: New file.
3158         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3159         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3160         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3161         portability problems.
3162
3163 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3164
3165         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3166         line is also considered for output. Quoted function name in shell
3167         command, so temporary files for functions like MyClass::operator()
3168         are removed correctly without errors.
3169
3170 2010-11-09  Bruno Haible  <bruno@clisp.org>
3171
3172         * doc/posix-functions/strerror.texi: List more failing platforms.
3173
3174         * doc/posix-functions/strerror.texi: Add a comment.
3175
3176 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3177
3178         fdopendir: fix bug on MacOS X when low on file descriptors
3179
3180         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3181         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3182         All callers changed.
3183         (fdopendir): Invoke save_cwd at the top level, not after using
3184         multiple dup() calls to use up file descriptors.  Then retry
3185         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3186         less than the maximum number of open file descriptors, because
3187         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3188         on Mac OS X 10.6.4 for tar 1.24
3189         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3190         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3191         and for tar 1.25
3192         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3193
3194 2010-11-07  Bruno Haible  <bruno@clisp.org>
3195
3196         vasnprintf: Support I flag on glibc systems.
3197         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3198         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3199         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3200         snprintf function.
3201         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3202         glibc systems.
3203         * tests/test-vasnprintf-posix3.c: New file.
3204         * modules/vasnprintf-posix-tests (Files): Add it.
3205         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3206
3207 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3208
3209         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3210         * MODULES.html.sh: For compiler warnings, use name
3211         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3212
3213 2010-11-05  Eric Blake  <eblake@redhat.com>
3214
3215         ceil, floor: avoid spurious failure with icc
3216         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3217         [denormals-as-zero] when optimizing without -mieee-fp option.
3218         * tests/test-floorf2.c (floorf_reference): Likewise.
3219         * tests/test-ceilf1.c (dummy): New function.
3220         (main): Use it to outsmart icc's optimization.
3221         * tests/test-floorf1.c (dummy, main): Likewise.
3222
3223         tests: require working signbit
3224         * modules/ceilf-tests (Depends-on): Add signbit.
3225         * modules/ceill-tests (Depends-on): Likewise.
3226         * modules/floorf-tests (Depends-on): Likewise.
3227         * modules/floorl-tests (Depends-on): Likewise.
3228         * modules/round-tests (Depends-on): Likewise.
3229         * modules/roundf-tests (Depends-on): Likewise.
3230         * modules/roundl-tests (Depends-on): Likewise.
3231         * modules/trunc-tests (Depends-on): Likewise.
3232         * modules/truncf-tests (Depends-on): Likewise.
3233         * modules/truncl-tests (Depends-on): Likewise.
3234
3235         strtod: work around icc bug
3236         * lib/strtod.c (minus_zero): Define to working value.
3237         (strtod): Use it to avoid icc bug.
3238
3239         copysign: enhance tests
3240         * modules/copysign-tests (Files): Add minus-zero.h.
3241         * tests/test-copysign.c (main): Also test zeros.
3242
3243 2010-11-04  Eric Blake  <eblake@redhat.com>
3244
3245         ceil, floor, round, trunc: enhance tests of -0
3246         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3247         * tests/test-ceill.c (main): Likewise.
3248         * tests/test-floorf1.c (main): Likewise.
3249         * tests/test-floorl.c (main): Likewise.
3250         * tests/test-round1.c (main): Likewise.
3251         * tests/test-roundf1.c (main): Likewise.
3252         * tests/test-roundl.c (main): Likewise.
3253         * tests/test-trunc1.c (main): Likewise.
3254         * tests/test-truncf1.c (main): Likewise.
3255         * tests/test-truncl.c (main): Likewise.
3256
3257 2010-11-04  Eric Blake  <eblake@redhat.com>
3258
3259         frexp, tests: work around ICC bug with -zero
3260         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3261         works with more compilers.
3262         * tests/minus-zero.h: New file.
3263         * modules/ceilf-tests (Files): Include it.
3264         * modules/ceill-tests (Files): Likewise.
3265         * modules/floorf-tests (Files): Likewise.
3266         * modules/floorl-tests (Files): Likewise.
3267         * modules/frexp-nolibm-tests (Files): Likewise.
3268         * modules/frexp-tests (Files): Likewise.
3269         * modules/frexpl-nolibm-tests (Files): Likewise.
3270         * modules/frexpl-tests (Files): Likewise.
3271         * modules/isnan-tests (Files): Likewise.
3272         * modules/isnand-nolibm-tests (Files): Likewise.
3273         * modules/isnand-tests (Files): Likewise.
3274         * modules/isnanf-nolibm-tests (Files): Likewise.
3275         * modules/isnanf-tests (Files): Likewise.
3276         * modules/isnanl-nolibm-tests (Files): Likewise.
3277         * modules/isnanl-tests (Files): Likewise.
3278         * modules/round-tests (Files): Likewise.
3279         * modules/roundf-tests (Files): Likewise.
3280         * modules/roundl-tests (Files): Likewise.
3281         * modules/ldexpl-tests (Files): Likewise.
3282         * modules/signbit-tests (Files): Likewise.
3283         * modules/snprintf-posix-tests (Files): Likewise.
3284         * modules/sprintf-posix-tests (Files): Likewise.
3285         * modules/strtod-tests (Files): Likewise.
3286         * modules/trunc-tests (Files): Likewise.
3287         * modules/truncf-tests (Files): Likewise.
3288         * modules/truncl-tests (Files): Likewise.
3289         * modules/vsnprintf-posix-tests (Files): Likewise.
3290         * modules/vsprintf-posix-tests (Files): Likewise.
3291         * modules/vasnprintf-posix-tests (Files): Likewise.
3292         * modules/vasprintf-posix-tests (Files): Likewise.
3293         * tests/test-ceilf1.c (main): Use it.
3294         * tests/test-ceill.c (main): Likewise.
3295         * tests/test-floorf1.c (main): Likewise.
3296         * tests/test-floorl.c (main): Likewise.
3297         * tests/test-frexp.c (main): Likewise.
3298         * tests/test-frexpl.c (main): Likewise.
3299         * tests/test-isnan.c (main): Likewise.
3300         * tests/test-isnand.h (main): Likewise.
3301         * tests/test-isnanf.h (main): Likewise.
3302         * tests/test-isnanl.h (main): Likewise.
3303         * tests/test-ldexpl.c (main): Likewise.
3304         * tests/test-round.c (main): Likewise.
3305         * tests/test-roundf.c (main): Likewise.
3306         * tests/test-roundl.c (main): Likewise.
3307         * tests/test-signbit.c (test_signbitf, test_signbitd)
3308         (test_signbitl): Likewise.
3309         * tests/test-snprintf-posix.h (test_function): Likewise.
3310         * tests/test-sprintf-posix.h (test_function): Likewise.
3311         * tests/test-strtod.c (main): Likewise.
3312         * tests/test-trunc1.c (main): Likewise.
3313         * tests/test-truncf1.c (main): Likewise.
3314         * tests/test-truncl.c (main): Likewise.
3315
3316         isnanl: work around icc bug
3317         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3318
3319 2010-11-03  Eric Blake  <eblake@redhat.com>
3320
3321         tests: fix compiler warnings
3322         * tests/test-getopt.h (test_getopt): Fix condition.
3323         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3324         * tests/test-pipe2.c (main): Likewise.
3325         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3326
3327         utimens: fix broken m4 test
3328         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3329
3330 2010-10-28  Bruno Haible  <bruno@clisp.org>
3331
3332         posix_spawn*, getdtablesize: Relax license.
3333         * modules/posix_spawn (License): Change to LGPLv2+.
3334         * modules/posix_spawnp (License): Likewise.
3335         * modules/posix_spawn-internal (License): Likewise.
3336         * modules/posix_spawnattr_init (License): Likewise.
3337         * modules/posix_spawnattr_getflags (License): Likewise.
3338         * modules/posix_spawnattr_setflags (License): Likewise.
3339         * modules/posix_spawnattr_getpgroup (License): Likewise.
3340         * modules/posix_spawnattr_setpgroup (License): Likewise.
3341         * modules/posix_spawnattr_getschedparam (License): Likewise.
3342         * modules/posix_spawnattr_setschedparam (License): Likewise.
3343         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3344         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3345         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3346         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3347         * modules/posix_spawnattr_getsigmask (License): Likewise.
3348         * modules/posix_spawnattr_setsigmask (License): Likewise.
3349         * modules/posix_spawnattr_destroy (License): Likewise.
3350         * modules/posix_spawn_file_actions_init (License): Likewise.
3351         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3352         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3353         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3354         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3355         * modules/getdtablesize (License): Likewise.
3356         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3357
3358 2010-10-26  Bruno Haible  <bruno@clisp.org>
3359
3360         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3361         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3362         Cygwin and mingw.
3363         Suggested by Eric Blake.
3364
3365 2010-10-26  Bruno Haible  <bruno@clisp.org>
3366
3367         stdio: Work around compilation error due to renameat() on Solaris 10.
3368         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3369         * lib/renameat.c: Don't include <unistd.h> here.
3370         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3371         Reported by Paul Eggert and Eric Blake.
3372
3373 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3374
3375         renameat: port to Solaris 10, which declares renameat in unistd.h
3376
3377         * lib/renameat.c: Include unistd.h before stdio.h, because
3378         Solaris 10 declares renameat in unistd.h.  Problem encountered
3379         when building GNU tar 1.24 on Solaris 10.
3380
3381 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3382
3383         fdopendir: fix C89 compilation
3384         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3385         compilers.
3386
3387 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3388
3389         inttostr: simplify by removing unnecessary redundancy
3390         * lib/anytostr.c: Don't include verify.h.
3391         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3392         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3393         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3394         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3395         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3396         Likewise.
3397         * modules/inttostr (Depends-on): Remove 'verify'.
3398
3399 2010-10-23  Bruno Haible  <bruno@clisp.org>
3400
3401         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3402         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3403         Reported by Eric Blake.
3404
3405 2010-10-23  Bruno Haible  <bruno@clisp.org>
3406
3407         Tests: Fix LOCALE_JA on MirBSD 10.
3408         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3409         to an UTF-8 locale.
3410         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3411         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3412         Reported by Eric Blake.
3413
3414 2010-10-21  Bruno Haible  <bruno@clisp.org>
3415
3416         nl_langinfo test: Avoid test failure on NetBSD 5.
3417         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3418         Reported by Eric Blake.
3419
3420 2010-10-21  Eric Blake  <eblake@redhat.com>
3421
3422         c-stack: work around libsigsegv 2.8 bug
3423         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3424         overflow on at least PowerPC64.
3425
3426 2010-10-17  Bruno Haible  <bruno@clisp.org>
3427
3428         userspec: Drop redundant file.
3429         * modules/userspec (Files): Remove lib/inttostr.h.
3430
3431 2010-10-17  Bruno Haible  <bruno@clisp.org>
3432
3433         nl_langinfo tests: Silence some warnings.
3434         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3435         Reported by Jim Meyering.
3436
3437 2010-10-17  Bruno Haible  <bruno@clisp.org>
3438
3439         Make use of GCC's attribute __alloc_size__.
3440         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3441         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3442         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3443         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3444         __alloc_size__.
3445         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3446         Suggested by Jim Meyering.
3447
3448 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3449
3450         bootstrap: anchor .gitignore entries.
3451         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3452         with...
3453         (insert_vc_ignore): ... this new function, which prepends `/' to
3454         all .gitignore entries before passing them to
3455         insert_sorted_if_absent.
3456
3457 2010-10-16  Bruno Haible  <bruno@clisp.org>
3458
3459         nextafter: Fix configure check.
3460         * modules/nextafter (configure.ac): Correct expected prototype.
3461
3462 2010-10-16  Bruno Haible  <bruno@clisp.org>
3463
3464         termios: Update documentation.
3465         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3466
3467 2010-10-16  Bruno Haible  <bruno@clisp.org>
3468
3469         tests: Make them compile with TinyCC.
3470         * tests/test-strstr.c (main): Remove parentheses around array
3471         initializer.
3472
3473 2010-10-15  Eric Blake  <eblake@redhat.com>
3474
3475         ignore-value: make header idempotent
3476         * lib/ignore-value.h: Add double-inclusion guards.
3477         Reported by Stefan Berger.
3478
3479 2010-10-15  Jim Meyering  <meyering@redhat.com>
3480
3481         GNUmakefile: handle "stable" target, not "major"
3482         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
3483         lists in maint.mk and announce-gen.  Without this, "make stable"
3484         would fail to ensure that $(VERSION) is up to date.
3485
3486 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
3487
3488         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
3489         & co.
3490
3491 2010-10-14  Bruno Haible  <bruno@clisp.org>
3492
3493         vasnprintf: Don't set errno to 0.
3494         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
3495         block that sets it to 0.
3496         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3497
3498 2010-10-14  Bruno Haible  <bruno@clisp.org>
3499
3500         socketlib: Fix.
3501         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
3502         gl_PREREQ_SYS_H_WINSOCK2.
3503         Reported by Ian Beckwith <ianb@erislabs.net>.
3504
3505 2010-10-13  Jim Meyering  <meyering@redhat.com>
3506
3507         test-select-stdin.c: avoid warn_unused_result warnings
3508         * tests/test-select-stdin.c: Include "macros.h".
3509         ASSERT that read and fflush succeed.
3510
3511 2010-10-13  Jim Meyering  <meyering@redhat.com>
3512
3513         git-version-gen: do require git-VC'd files in cwd
3514         * build-aux/git-version-gen: Reject a git version string
3515         if there are no commits associated with the current directory.
3516         This avoids an unlikely false-positive (unrelated dir whose parent
3517         repository also contains a tag matching v*), as pointed out
3518         by Giuseppe Scrivano in
3519         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3520
3521 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3522
3523         argv-iter: omit nonconforming declaration
3524         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3525         enum arg_iter_err declaration, which doesn't conform to C99.
3526         Solaris 10 cc warns about this.
3527
3528 2010-10-13  Eric Blake  <eblake@redhat.com>
3529
3530         termios: fix compilation on mingw
3531         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3532         (gl_TERMIOS_H): Adjust it on mingw.
3533         * modules/termios (Makefile.am): Substitute new key.
3534         * lib/termios.in.h (includes): Make include_next conditional.
3535         * doc/posix-headers/termios.texi (termios.h): Update
3536         documentation.
3537         Reported by Daniel P. Berrange.
3538
3539 2010-10-13  Jim Meyering  <meyering@redhat.com>
3540
3541         git-version-gen: don't require that .git/ be in the current dir
3542         * build-aux/git-version-gen: Adjust this script so that it works
3543         when run from any working directory beneath the top-level .git/-
3544         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3545         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3546
3547         test-select: avoid warn_unused_result warnings
3548         * tests/test-select.c: Include "macros.h".
3549         ASSERT that each call to read, write, and pipe succeeds.
3550         While not technically required, also check each "close".
3551         * modules/select-tests (Files): Add tests/macros.h.
3552
3553         test-symlinkat: remove declaration of unused local
3554         * tests/test-symlinkat.c (main): Remove unused local, "buf".
3555
3556         test-inttostr: avoid shadowing warnings
3557         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
3558         and use malloc rather than the stack for the same reason as
3559         mentioned in the comment justifying the other allocation.
3560
3561 2010-10-11  Bruno Haible  <bruno@clisp.org>
3562
3563         stdlib: Allow multiple gnulib generated replacements to coexist.
3564         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
3565         Reported by Sam Steingold <sds@gnu.org>.
3566
3567 2010-10-11  Jim Meyering  <meyering@redhat.com>
3568
3569         fix a documentation typo
3570         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
3571
3572 2010-10-11  Eric Blake  <eblake@redhat.com>
3573
3574         futimens: work around Solaris 11 bug
3575         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
3576         * tests/test-futimens.h (test_futimens): Enhance, rather than
3577         weaken test.
3578         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3579
3580 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3581
3582         Indentation.
3583         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
3584         higher-level operators more to the left.
3585
3586 2010-10-11  Jim Meyering  <meyering@redhat.com>
3587
3588         test-futimens: avoid unwarranted test failure on Solaris 5.11
3589         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
3590         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
3591         because it tries to dereference the NULL name argument.
3592
3593 2010-10-11  Bruno Haible  <bruno@clisp.org>
3594
3595         Indentation.
3596         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
3597         indentation.
3598
3599 2010-10-11  Jim Meyering  <meyering@redhat.com>
3600
3601         spawn.in.h: make indentation consistent with parentheses
3602         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
3603         Make indentation consistent with parentheses.
3604
3605 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
3606
3607         Fix mismatched parens in previous commit
3608         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
3609         parens.
3610
3611 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3612
3613         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
3614
3615         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
3616         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
3617         * lib/malloca.c: Include "verify.h".
3618         (verify1): Remove, replacing with a verify call.
3619         * lib/relocwrapper.c (verify1): Likewise.
3620         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
3621         Likewise.
3622         * modules/malloca (Depends-on): Add 'verify'.
3623         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
3624         * modules/vasnprintf (Depends-on): Add 'verify'.
3625         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3626         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3627         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3628         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3629         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3630         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3631         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3632
3633         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
3634
3635         Formerly the style was sometimes 2*X - 1, because the C standard
3636         was wrongly thought to disallow ?: in integral constant expressions.
3637         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
3638         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
3639         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3640         * lib/stdint.in.h (_verify_intmax_size): Likewise.
3641         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
3642         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
3643         verify that time_t cannot be floating.
3644
3645 2010-10-08  Eric Blake  <eblake@redhat.com>
3646
3647         time: enforce recent POSIX ruling that time_t is integral
3648         * lib/time.in.h (__time_t_must_be_integral): Detect any
3649         problematic systems, allowing the rest of gnulib to assume POSIX.
3650
3651 2010-10-08  Jim Meyering  <meyering@redhat.com>
3652
3653         fdopendir: fix a bug on systems lacking openat and /proc support
3654         OpenBSD 4.7 is one such system.  The most noticeable effect was
3655         failure of any application making nontrivial use of fts: rm, du,
3656         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
3657           ./rm: traversal failed: `a': Bad file descriptor
3658         Debugging that, you see that even though FD 6 was closed just
3659         prior to the opendir call in fd_clone_opendir, its resulting
3660         dir->dd_fd was 8, rather than the expected value of 6:
3661
3662         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
3663         93                close (fd);
3664         (gdb) n
3665         94                dir = fd_clone_opendir (dupfd);
3666         (gdb) n
3667         95                saved_errno = errno;
3668         (gdb) p dir->dd_fd
3669         $11 = 8
3670
3671         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
3672         The problem is that on OpenBSD, fd_clone_opendir has to resort
3673         to using the old-style save/restore CWD mechanism, due to its
3674         lack of openat/proc support, and *that* would steal the FD (6)
3675         that opendir was supposed to use.
3676
3677         The fix is to squirrel away the desired FD so that save_cwd uses a
3678         different one, and then free the dest FD right before calling opendir.
3679         That guarantees opendir will use the required file descriptor.
3680
3681         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
3682
3683 2010-10-08  Bruno Haible  <bruno@clisp.org>
3684
3685         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
3686         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
3687
3688 2010-10-08  Bruno Haible  <bruno@clisp.org>
3689
3690         nanosleep: Make replacement POSIX compliant.
3691         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
3692         is out of range.
3693         Reported by Jim Meyering.
3694
3695 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3696
3697         bootstrap: add hook for altering gnulib.mk, for Bison
3698         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
3699         the Bison bootstrapping process can rewrite file names and variables
3700         in this file before later parts of 'bootstrap' use the file.
3701         Bison wants to include lib/gnulib.mk from the top-level makefile,
3702         so it needs the file names in this file to be relative to the top
3703         level, not relative to lib; plus it needs variable names to be
3704         rewritten.
3705         (slurp): Use the new function.
3706
3707         bootstrap: reformat for readability
3708         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
3709
3710 2010-10-08  Eric Blake  <eblake@redhat.com>
3711
3712         docs: update cygwin progress
3713         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
3714         1.7.7.
3715         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
3716         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
3717         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
3718         * doc/posix-functions/carg.texi (carg): Likewise.
3719         * doc/posix-functions/cargf.texi (cargf): Likewise.
3720         * doc/posix-functions/casin.texi (casin): Likewise.
3721         * doc/posix-functions/casinf.texi (casinf): Likewise.
3722         * doc/posix-functions/casinh.texi (casinh): Likewise.
3723         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
3724         * doc/posix-functions/catan.texi (catan): Likewise.
3725         * doc/posix-functions/catanf.texi (catanf): Likewise.
3726         * doc/posix-functions/catanh.texi (catanh): Likewise.
3727         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
3728         * doc/posix-functions/ccos.texi (ccos): Likewise.
3729         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
3730         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
3731         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
3732         * doc/posix-functions/cexp.texi (cexp): Likewise.
3733         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
3734         * doc/posix-functions/cimag.texi (cimag): Likewise.
3735         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
3736         * doc/posix-functions/clog.texi (clog): Likewise.
3737         * doc/posix-functions/clogf.texi (clogf): Likewise.
3738         * doc/posix-functions/conj.texi (conj): Likewise.
3739         * doc/posix-functions/conjf.texi (conjf): Likewise.
3740         * doc/posix-functions/cpow.texi (cpow): Likewise.
3741         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
3742         * doc/posix-functions/cproj.texi (cproj): Likewise.
3743         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
3744         * doc/posix-functions/creal.texi (creal): Likewise.
3745         * doc/posix-functions/crealf.texi (crealf): Likewise.
3746         * doc/posix-functions/csin.texi (csin): Likewise.
3747         * doc/posix-functions/csinf.texi (csinf): Likewise.
3748         * doc/posix-functions/csinh.texi (csinh): Likewise.
3749         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
3750         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
3751         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
3752         * doc/posix-functions/ctan.texi (ctan): Likewise.
3753         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
3754         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
3755         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
3756         * doc/posix-headers/complex.texi (complex.h): Likewise.
3757
3758 2010-10-07  Jim Meyering  <meyering@redhat.com>
3759
3760         parse-datetime: avoid compilation failure on OpenBSD 4.7
3761         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
3762         This works around a compilation failure on OpenBSD 4.7:
3763         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
3764
3765 2010-10-07  Eric Blake  <eblake@redhat.com>
3766
3767         docs: update cygwin progress
3768         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
3769         1.7.6.
3770         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
3771         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
3772         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
3773         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
3774         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
3775         Likewise.
3776         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
3777         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
3778         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
3779         Likewise.
3780         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
3781         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
3782         Likewise.
3783         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
3784         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
3785         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
3786         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
3787         Likewise.
3788         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
3789         Likewise.
3790         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
3791
3792         docs: update parse-datetime history
3793         * doc/parse-datetime.texi (Authors of parse_datetime): Better
3794         documentation of this function's history and alternatives.
3795
3796         cygwin: use more robust version check
3797         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
3798         exclude an eventual cygwin 1.9.1.
3799         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3801         (gl_FUNC_STRCASESTR): Likewise.
3802         Reported by Bruno Haible.
3803
3804 2010-10-06  Bruno Haible  <bruno@clisp.org>
3805
3806         string, sys_select: Avoid #including large headers unless necessary.
3807         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
3808         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
3809         OSF/1, BeOS, Haiku.
3810         Reported by Jim Meyering.
3811
3812 2010-10-05  Eric Blake  <eblake@redhat.com>
3813
3814         memmem, strstr, strcasestr: fix bug with long periodic needle
3815         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
3816         periodic needle having false positive.
3817         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
3818         and cygwin 1.7.7.
3819         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
3820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3821         (gl_FUNC_STRCASESTR): Likewise.
3822         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3823         * tests/test-memmem.c (main): Expose the bug.
3824         * tests/test-strcasestr.c (main): Likewise.
3825         * tests/test-strstr.c (main): Likewise.
3826         * tests/test-c-strcasestr.c (main): Likewise.
3827         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
3828         * doc/posix-functions/strstr.texi (strstr): Likewise.
3829         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3830         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
3831
3832 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3833
3834         parse-datetime: do some more renaming
3835         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
3836         parse_datetime, not get_date.  Mention the renaming.
3837         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
3838         in comments.
3839         * m4/bison.m4: Likewise.
3840
3841 2010-10-05  Eric Blake  <eblake@redhat.com>
3842
3843         parse-datetime: better name than get_date
3844         * NEWS: Reword the deprecation notice.
3845         * modules/get_date: Rename to modules/parse-datetime.
3846         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
3847         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
3848         * lib/get_date.y: Rename to lib/parse-datetime.y.
3849         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
3850         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
3851         * doc/getdate.texi: Provide fallback wrapper.
3852         * lib/getdate.h: Move guts, and wrap...
3853         * lib/parse-datetime.h: ...new file.
3854         * lib/parse-datetime.y (get_date): Rename...
3855         (parse_datetime): ...to this.
3856         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
3857         (gl_PARSE_DATETIME): ...to this.
3858         * doc/posix-functions/getdate.texi (get_date): Provide fallback
3859         documentation.
3860         * modules/getdate (Files): Provide fallback docs and header.
3861         (Notice, Depends-on): Update references.
3862         * tests/test-parse-datetime.c: Likewise.
3863         * DEPENDENCIES: Likewise.
3864         * MODULES.html.sh (Date and time <time.h>): Likewise.
3865         * doc/parse-datetime.texi (Date input formats)
3866         (Authors of parse_datetime): Likewise.
3867         * modules/parse-datetime (Files, configure.ac, Makefile.am)
3868         (Include): Likewise.
3869         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
3870         * gnulib-tool: Likewise.
3871         * m4/bison.m4 (gl_BISON): Likewise.
3872         Suggested by Bruno Haible.
3873
3874 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3875
3876         more ports to Solaris tr, which needs [] around ranges
3877         * gnulib-tool: Solaris tr needs [] around ranges.
3878         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3879         * tests/test-pipe-filter-gi1.c (main): Likewise.
3880         * tests/test-pipe-filter-ii1.c (main): Likewise.
3881
3882 2010-10-05  Eric Blake  <eblake@redhat.com>
3883
3884         bootstrap: fix Solaris regression
3885         * build-aux/bootstrap (check_versions): Solaris tr still needs []
3886         around ranges.
3887         Reported by Pádraig Brady.
3888
3889         bootstrap: work with pkg-config
3890         * build-aux/bootstrap (check_versions): Also transliterate - in
3891         prerequisite name.
3892         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
3893         prerequisites that were already found, to avoid confusion.
3894         Reported by Justin Clift.
3895
3896         faccessat: remove unused wrappers
3897         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
3898         presence of these wrappers dragged in -lgen on Solaris.
3899         Reported by Clemens Brogi; fix suggested by Paul Eggert.
3900
3901 2010-10-05  Jim Meyering  <meyering@redhat.com>
3902
3903         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
3904         * Makefile (sc_pragma_columns): New syntax-check rule.
3905
3906 2010-10-04  Bruno Haible  <bruno@clisp.org>
3907
3908         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
3909         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
3910         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
3911         Reported by Bruce Korb and Eric Blake.
3912
3913 2010-10-04  Bruno Haible  <bruno@clisp.org>
3914
3915         threadlib: Make option --with-libpth-prefix work.
3916         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
3917         use $LIBPTH, not just -lpth.
3918
3919 2010-10-04  Bruno Haible  <bruno@clisp.org>
3920
3921         Avoid line length limitation from HP NonStop system header files.
3922         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
3923         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
3924         * lib/ctype.in.h: Likewise.
3925         * lib/dirent.in.h: Likewise.
3926         * lib/errno.in.h: Likewise.
3927         * lib/fcntl.in.h: Likewise.
3928         * lib/float.in.h: Likewise.
3929         * lib/getopt.in.h: Likewise.
3930         * lib/iconv.in.h: Likewise.
3931         * lib/inttypes.in.h: Likewise.
3932         * lib/langinfo.in.h: Likewise.
3933         * lib/locale.in.h: Likewise.
3934         * lib/math.in.h: Likewise.
3935         * lib/netdb.in.h: Likewise.
3936         * lib/netinet_in.in.h: Likewise.
3937         * lib/poll.in.h: Likewise.
3938         * lib/pthread.in.h: Likewise.
3939         * lib/pty.in.h: Likewise.
3940         * lib/sched.in.h: Likewise.
3941         * lib/se-selinux.in.h: Likewise.
3942         * lib/search.in.h: Likewise.
3943         * lib/signal.in.h: Likewise.
3944         * lib/spawn.in.h: Likewise.
3945         * lib/stdarg.in.h: Likewise.
3946         * lib/stddef.in.h: Likewise.
3947         * lib/stdint.in.h: Likewise.
3948         * lib/stdio.in.h: Likewise.
3949         * lib/stdlib.in.h: Likewise.
3950         * lib/string.in.h: Likewise.
3951         * lib/strings.in.h: Likewise.
3952         * lib/sys_file.in.h: Likewise.
3953         * lib/sys_ioctl.in.h: Likewise.
3954         * lib/sys_select.in.h: Likewise.
3955         * lib/sys_socket.in.h: Likewise.
3956         * lib/sys_stat.in.h: Likewise.
3957         * lib/sys_time.in.h: Likewise.
3958         * lib/sys_times.in.h: Likewise.
3959         * lib/sys_utsname.in.h: Likewise.
3960         * lib/sys_wait.in.h: Likewise.
3961         * lib/sysexits.in.h: Likewise.
3962         * lib/termios.in.h: Likewise.
3963         * lib/time.in.h: Likewise.
3964         * lib/unistd.in.h: Likewise.
3965         * lib/wchar.in.h: Likewise.
3966         * lib/wctype.in.h: Likewise.
3967         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
3968         * modules/ctype (Makefile.am): Likewise.
3969         * modules/dirent (Makefile.am): Likewise.
3970         * modules/errno (Makefile.am): Likewise.
3971         * modules/fcntl-h (Makefile.am): Likewise.
3972         * modules/float (Makefile.am): Likewise.
3973         * modules/getopt-posix (Makefile.am): Likewise.
3974         * modules/iconv-h (Makefile.am): Likewise.
3975         * modules/inttypes (Makefile.am): Likewise.
3976         * modules/langinfo (Makefile.am): Likewise.
3977         * modules/locale (Makefile.am): Likewise.
3978         * modules/math (Makefile.am): Likewise.
3979         * modules/netdb (Makefile.am): Likewise.
3980         * modules/netinet_in (Makefile.am): Likewise.
3981         * modules/poll-h (Makefile.am): Likewise.
3982         * modules/pthread (Makefile.am): Likewise.
3983         * modules/pty (Makefile.am): Likewise.
3984         * modules/sched (Makefile.am): Likewise.
3985         * modules/search (Makefile.am): Likewise.
3986         * modules/selinux-h (Makefile.am): Likewise.
3987         * modules/signal (Makefile.am): Likewise.
3988         * modules/spawn (Makefile.am): Likewise.
3989         * modules/stdarg (Makefile.am): Likewise.
3990         * modules/stddef (Makefile.am): Likewise.
3991         * modules/stdint (Makefile.am): Likewise.
3992         * modules/stdio (Makefile.am): Likewise.
3993         * modules/stdlib (Makefile.am): Likewise.
3994         * modules/string (Makefile.am): Likewise.
3995         * modules/strings (Makefile.am): Likewise.
3996         * modules/sys_file (Makefile.am): Likewise.
3997         * modules/sys_ioctl (Makefile.am): Likewise.
3998         * modules/sys_select (Makefile.am): Likewise.
3999         * modules/sys_socket (Makefile.am): Likewise.
4000         * modules/sys_stat (Makefile.am): Likewise.
4001         * modules/sys_time (Makefile.am): Likewise.
4002         * modules/sys_times (Makefile.am): Likewise.
4003         * modules/sys_utsname (Makefile.am): Likewise.
4004         * modules/sys_wait (Makefile.am): Likewise.
4005         * modules/sysexits (Makefile.am): Likewise.
4006         * modules/termios (Makefile.am): Likewise.
4007         * modules/time (Makefile.am): Likewise.
4008         * modules/unistd (Makefile.am): Likewise.
4009         * modules/wchar (Makefile.am): Likewise.
4010         * modules/wctype (Makefile.am): Likewise.
4011
4012 2010-10-04  Bruno Haible  <bruno@clisp.org>
4013
4014         read-file tests: Avoid a test failure on NonStop Kernel.
4015         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4016         a regular file.
4017         Reported by Joachim Schmitz <schmitz@hp.com>.
4018
4019 2010-10-03  Bruno Haible  <bruno@clisp.org>
4020
4021         gnulib-tool: Fixes for --create-testdir with --libtool.
4022         * gnulib-tool (func_get_automake_snippet): Don't augment
4023         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4024         an executable.
4025         (func_create_testdir): Handle module 'alloca' like func_import.
4026         Reported by Bruce Korb <bruce.korb@gmail.com>.
4027
4028 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4029
4030         Avoid some lines longer than 80 characters.
4031         * lib/stdint.in.h: Break long comment lines.
4032         * lib/math.in.h: Likewise.
4033         (_GL_NUM_UINT_WORDS): New macro, for readability.
4034         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4035         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4036         * lib/stdlib.in.h: Likewise.
4037         * lib/spawn.in.h: Likewise.
4038         * lib/sys_socket.in.h: Update an URL.
4039         * lib/sys_stat.in.h: Break long line.
4040
4041 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4042
4043         Improve pmccabe2html.
4044         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4045         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4046         when the sources change. Remove the line in the HTML about "Used
4047         ranges" (which implied that there might be other unused ranges),
4048         rename "Resume" to "Summary" (easier to understand for more users).
4049         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4050         styles, and some unnecessary blank lines.
4051
4052 2010-10-03  Bruno Haible  <bruno@clisp.org>
4053             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4054
4055         acl: Add support for ACLs on NonStop Kernel.
4056         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4057         Check whether the function aclsort() exists.
4058         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4059         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4060         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4061         (acl_nontrivial [HAVE_ACLSORT]: New function.
4062         (file_has_acl): Implement for NonStop Kernel.
4063         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4064         (qset_acl): Implement for NonStop Kernel.
4065         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4066         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4067         (main): Implement for NonStop Kernel.
4068         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4069         Kernel. Handle this flavor.
4070         * tests/test-set-mode-acl.sh: Likewise.
4071         * tests/test-copy-acl.sh: Likewise.
4072         * tests/test-copy-file.sh: Likewise.
4073
4074 2010-10-03  Bruno Haible  <bruno@clisp.org>
4075
4076         Info about ACLs on NonStop Kernel.
4077         * doc/acl-resources.txt: Add info about NonStop Kernel.
4078         References by Joachim Schmitz <schmitz@hp.com>.
4079
4080 2010-10-02  Bruno Haible  <bruno@clisp.org>
4081
4082         Define missing EDQUOT on NonStop Kernel.
4083         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4084         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4085         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4086         missing.
4087         * doc/posix-headers/errno.texi: Mention the NSK bug.
4088         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4089         Reported by Joachim Schmitz <schmitz@hp.com>.
4090
4091 2010-10-02  Bruno Haible  <bruno@clisp.org>
4092
4093         Update doc for POSIX:2008.
4094         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4095         Update URL of POSIX specification.
4096
4097 2010-10-02  Bruno Haible  <bruno@clisp.org>
4098
4099         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4100         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4101         from gnulib, not from Automake.
4102
4103 2010-10-02  Bruno Haible  <bruno@clisp.org>
4104
4105         New module 'system-posix'.
4106         * modules/system-posix: New file.
4107         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4108         module is present.
4109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4110         GNULIB_SYSTEM_POSIX.
4111         * modules/stdlib (Depends-on): Remove sys_wait.
4112         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4113         * doc/posix-functions/system.texi: Mention the new module.
4114         * doc/posix-headers/stdlib.texi: Likewise.
4115         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4116         define test_sys_wait_macros to a no-op.
4117         Reported by Sam Steingold <sds@gnu.org>.
4118
4119 2010-09-30  Bruno Haible  <bruno@clisp.org>
4120
4121         More renaming from 'getdate' to 'get_date'.
4122         * doc/get_date.texi: Renamed from doc/getdate.texi.
4123         * modules/get_date (Files): Update.
4124         * MODULES.html.sh (Date and time <time.h>): Update.
4125         * DEPENDENCIES: Update.
4126         * gnulib-tool: Update comment.
4127         * m4/bison.m4 (gl_BISON): Likewise.
4128         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4129
4130 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4131
4132         bootstrap: support ACLOCAL_FLAGS during aclocal
4133         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4134         can add additional -I dir for third-party .m4 files.
4135
4136 2010-09-30  Eric Blake  <eblake@redhat.com>
4137
4138         bootstrap: use glibtoolize on MacOS
4139         * build-aux/bootstrap (check_versions): Convert libtool into
4140         libtoolize.
4141         (tool search): Move libtool check earlier, and look for
4142         glibtoolize for MacOS.
4143         (gnulib_tool_options): Auto-add --libtool when appropriate.
4144         Reported by Justin Clift.
4145
4146         poll: fix typo that broke test on MacOS
4147         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4148         Reported by Justin Clift.
4149
4150         getdate: rename to get_date
4151         Note: getdate.h is not renamed, to minimize client impact.
4152         * modules/getdate: Mark obsolete.  Move old contents...
4153         * modules/get_date: ...to new module name.
4154         * modules/getdate-tests: Move...
4155         * modules/get_date-tests: ...here.
4156         * m4/getdate.m4: Move...
4157         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4158         * lib/getdate.y: Move...
4159         * lib/get_date.y: ...here.
4160         * tests/test-getdate.c: Move...
4161         * tests/test-get_date.c: ...here.
4162         * doc/posix-functions/getdate.texi (getdate): Update name.
4163         * NEWS: Mention the change.
4164
4165 2010-09-29  Bruno Haible  <bruno@clisp.org>
4166
4167         Separate the module 'waitpid' from the module 'sys_wait'.
4168         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4169         present.
4170         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4171         gl_MODULE_INDICATOR_FOR_TESTS.
4172         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4173         * modules/sys_wait (Depends-on): Remove waitpid.
4174         (Makefile.am): Substitute GNULIB_WAITPID.
4175         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4176         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4177         signature only if the 'waitpid' module is present.
4178         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4179         * NEWS: Mention the change.
4180         * modules/grantpt (Depends-on): Add waitpid.
4181         * modules/wait-process (Depends-on): Likewise.
4182
4183 2010-09-29  Bruno Haible  <bruno@clisp.org>
4184
4185         More tests for module 'sys_wait'.
4186         * modules/sys_wait-c++-tests: New file.
4187         * tests/test-sys_wait-c++.cc: New file.
4188         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4189         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4190
4191 2010-09-29  Bruno Haible  <bruno@clisp.org>
4192
4193         New module 'waitpid'.
4194         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4195         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4196         Don't include <process.h>.
4197         (waitpid): Declare only, using modern idiom.
4198         * m4/waitpid.m4: New file.
4199         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4200         * modules/waitpid: New file.
4201         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4202         (Makefile.am): Update.
4203         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4204
4205 2010-09-28  Bruno Haible  <bruno@clisp.org>
4206
4207         poll: Assume ANSI C.
4208         * lib/poll.c (poll): Use an ANSI C declaration.
4209
4210 2010-09-28  Bruno Haible  <bruno@clisp.org>
4211
4212         poll-h: Create poll.h on all platforms.
4213         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4214         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4215         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4216         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4217         (gl_REPLACE_POLL_H): Don't set POLL_H.
4218         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4219         * modules/poll-h (Depends-on): Add include_next.
4220         (Makefile.am): Create poll.h unconditionally. Substitute also
4221         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4222
4223 2010-09-28  Bruno Haible  <bruno@clisp.org>
4224
4225         Tests for module 'poll-h'.
4226         * modules/poll-h-c++-tests: New file.
4227         * tests/test-poll-h-c++.cc: New file.
4228
4229         Tests for module 'poll-h'.
4230         * modules/poll-h-tests: New file.
4231         * tests/test-poll-h.c: New file.
4232
4233 2010-09-28  Bruno Haible  <bruno@clisp.org>
4234
4235         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4236         * modules/poll-h (Depends-on): Add 'extensions'.
4237
4238 2010-09-28  Bruno Haible  <bruno@clisp.org>
4239
4240         New module 'poll-h'.
4241         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4242         (poll): Use modern idiom.
4243         * modules/poll-h: New file.
4244         * modules/poll (Files): Remove lib/poll.in.h.
4245         (Depends-on): Add poll-h.
4246         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4247         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4248         * m4/poll_h.m4: New file.
4249         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4250         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4251         and invoke gl_REPLACE_POLL_H.
4252         * lib/poll.c: Use common idiom.
4253         * tests/test-poll.c: Likewise.
4254         * doc/posix-headers/poll.texi: Mention the poll-h module.
4255         Suggested by Eric Blake.
4256
4257 2010-09-26  Bruno Haible  <bruno@clisp.org>
4258
4259         sys_wait: Implement WSTOPSIG.
4260         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4261         Reported by Simon Josefsson.
4262
4263 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4264
4265         stdlib, sys_wait: Avoid compilation error on mingw.
4266         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4267
4268 2010-09-26  Bruno Haible  <bruno@clisp.org>
4269
4270         stdlib tests: Avoid code duplication.
4271         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4272         * modules/sys_wait-tests (Files): Likewise.
4273         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4274         * tests/test-stdlib.c: Include test-sys_wait.h.
4275         (main): Invoke test_sys_wait_macros.
4276         * tests/test-sys_wait.c: Include test-sys_wait.h.
4277         (main): Invoke test_sys_wait_macros.
4278
4279 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4280
4281         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4282         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4283         sure Windows sockets are working before calling getaddrinfo.
4284         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4285         * doc/gnulib.texi (Windows sockets): Fix typo.
4286
4287 2010-09-25  Bruno Haible  <bruno@clisp.org>
4288
4289         Tests for module 'regex-quote'.
4290         * modules/regex-quote-tests: New file.
4291         * tests/test-regex-quote.c: New file.
4292
4293         New module 'regex-quote'.
4294         * lib/regex-quote.h: New file.
4295         * lib/regex-quote.c: New file.
4296         * modules/regex-quote: New file.
4297         Suggested by Reuben Thomas <rrt@sc3d.org>.
4298
4299 2010-09-24  Bruno Haible  <bruno@clisp.org>
4300
4301         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4302         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4303
4304 2010-09-23  Bruno Haible  <bruno@clisp.org>
4305
4306         setenv: Relax license.
4307         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4308         Blake.
4309         Requested by Eric Blake.
4310
4311 2010-09-22  Bruno Haible  <bruno@clisp.org>
4312
4313         termios: Relax license.
4314         * modules/termios (License): Change to LGPLv2+.
4315         Requested by Eric Blake.
4316
4317 2010-09-22  Bruno Haible  <bruno@clisp.org>
4318
4319         threadlib: Allow the package to change the default to 'no'.
4320         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4321         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4322         Reported by Paul Eggert.
4323
4324 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4325             Bruno Haible  <bruno@clisp.org>
4326
4327         Fix endless loop in mbmemcasecoll.
4328         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4329         byte.
4330         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4331
4332 2010-09-22  Bruno Haible  <bruno@clisp.org>
4333
4334         Tests for module 'memcoll'.
4335         * modules/memcoll-tests: New file.
4336         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4337
4338         memcoll, xmemcoll: Clarify size vs. length.
4339         * modules/memcoll.c (memcoll0): Clarify specification.
4340         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4341         passed to collate_error.
4342
4343 2010-09-22  Bruno Haible  <bruno@clisp.org>
4344
4345         Tests for module 'memcasecmp'.
4346         * modules/memcasecmp-tests: New file.
4347         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4348
4349 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4350
4351         * lib/pthread.in.h: Add split double-inclusion guard, and include
4352         system <pthread.h> if there is one.  Use @@-style as in other
4353         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4354         pthread.h doesn't.
4355         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4356         (pthread_mutexattr_settype, pthread_mutex_trylock):
4357         New static inline functions, if there's no system <pthread.h>.
4358         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4359         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4360         Approximate with mutexes if the system lacks spinlocks, as in
4361         MacOS.
4362         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4363         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4364         @@-style.  Check for spinlocks separately.
4365         (gl_PTHREAD_DEFAULTS): New macro.
4366         * modules/pthread: Redo to use a more typical style for in.h files.
4367
4368 2010-09-21  Eric Blake  <eblake@redhat.com>
4369
4370         net_if: enhance tests
4371         * tests/test-net_if.c (main): Move signature checks earlier.
4372         Print failures to stderr.
4373         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4374         Document the bug that we do not yet fix.
4375
4376 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4377
4378         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4379         about gnulib, not GSS.
4380
4381 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4382
4383         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4384         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4385         for Emacs.
4386         * build-aux/pmccabe2html: Make Makefile.am example code more
4387         cut-and-paste friendly.
4388
4389 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4390
4391         * tests/test-net_if.c: New file.
4392         * modules/net_if-tests: New file.
4393
4394 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4395
4396         pthread: add pthread_spin_destroy
4397         * lib/pthread.in.h (pthread_spin_destroy): New function.
4398
4399 2010-09-19  Bruno Haible  <bruno@clisp.org>
4400
4401         gnulib-tool: Fix --help output.
4402         * gnulib-tool (func_usage): Fix help message.
4403         Reported by Reuben Thomas <rrt@sc3d.org>.
4404
4405 2010-09-18  Jim Meyering  <meyering@redhat.com>
4406
4407         maint.mk: avoid unexpanded \n in two diagnostics
4408         * top/maint.mk (sc_prohibit_always_true_header_tests):
4409         Don't use a literal \n in a halt=... assignment.  It would not be
4410         expanded, and the two \n bytes would appear in the diagnostic output
4411         rather than the desired newline.  Use halt=$$(printf ... instead.
4412         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4413
4414 2010-09-18  Bruno Haible  <bruno@clisp.org>
4415
4416         netinet_in: Doc tweak.
4417         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4418         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4419
4420 2010-09-18  Jim Meyering  <meyering@redhat.com>
4421
4422         init.sh: correct an outdated comment
4423         * tests/init.sh (create_exe_shims_):  s/function/alias/
4424
4425         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4426         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4427         a file named "*.exe" is removed between the glob expansion and the
4428         processing of that oddly named file.
4429
4430 2010-09-17  Eric Blake  <eblake@redhat.com>
4431
4432         mirbsd: add some more support
4433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4434         in BSD family.
4435         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4436         devices as OpenBSD.
4437         * m4/host-os.m4 (mirbsd): Add MirBSD.
4438
4439         tests: fix unportable assumption on sys/wait.h
4440         * tests/test-sys_wait.c (main): Relax test.
4441         * tests/test-stdlib.c (main): Likewise.
4442
4443         init.sh: accomodate directory with no .exes
4444         * tests/init.sh: Accomodate directory containing only scripts.
4445
4446         tests: avoid compiler warning
4447         * tests/test-stdlib.c (main): Use the variable.
4448
4449         fdutimens, fdutimensat: update signature, again
4450         * lib/utimens.h (gl_futimens): Delete, and move signature...
4451         (fdutimens): ...here.
4452         (fdutimensat): Rearrange signature.
4453         (lutimensat): Rename variable for clarity.
4454         * lib/fdutimensat.c (fdutimensat): Update signature.
4455         * lib/utimens.c (fdutimens): Likewise.
4456         (gl_futimens): Delete.
4457         (utimens, lutimens): Update callers.
4458         * lib/futimens.c (futimens): Likewise.
4459         * tests/test-fdutimensat.c: Likewise.
4460         * tests/test-utimens.c: Likewise.
4461         * tests/test-futimens.h: Update comment.
4462         * NEWS: Mention this.
4463         Suggested by Paul Eggert.
4464
4465 2010-09-17  Bruno Haible  <bruno@clisp.org>
4466
4467         Take over the maintenance of some older macros from Autoconf.
4468         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4469         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4470         GNU Autoconf.
4471         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4472         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4473
4474 2010-09-17  Eric Blake  <eblake@redhat.com>
4475
4476         fdutimensat: drop atflag validation
4477         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
4478         with valid fd, to close a race scenario where futimens is
4479         unsupported and FILE was replaced by a symlink.
4480         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
4481         accordingly.
4482         Suggested by Paul Eggert.
4483
4484 2010-09-16  Bruno Haible  <bruno@clisp.org>
4485
4486         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
4487         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
4488
4489 2010-09-16  Bruno Haible  <bruno@clisp.org>
4490
4491         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
4492         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
4493         login_tty exists.
4494         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4495
4496 2010-09-16  Bruno Haible  <bruno@clisp.org>
4497
4498         login_tty: Make the replacement code work on BSD systems.
4499         * lib/login_tty.c: Include <sys/ioctl.h>.
4500         (login_tty): Use ioctl TIOCSCTTY when available.
4501         * modules/login_tty (Depends-on): Add sys_ioctl.
4502         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4503
4504 2010-09-16  Bruno Haible  <bruno@clisp.org>
4505
4506         login_tty: Stricter unit test.
4507         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4508         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4509         and tcgetsid() after login_tty.
4510         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4511
4512 2010-09-16  Bruno Haible  <bruno@clisp.org>
4513
4514         New module 'tcgetsid'.
4515         * lib/tcgetsid.c: New file.
4516         * m4/tcgetsid.m4: New file.
4517         * modules/tcgetsid: New file.
4518         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4519         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4520         GNULIB_TCGETSID, HAVE_TCGETSID.
4521         * lib/termios.in.h: Include <sys/types.h>.
4522         (tcgetsid): New declaration.
4523         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4524         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4525         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4526         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4527
4528 2010-09-16  Bruno Haible  <bruno@clisp.org>
4529
4530         Tests for module 'termios'.
4531         * modules/termios-c++-tests: New file.
4532         * modules/termios-tests: New file.
4533         * tests/test-termios-c++.cc: New file.
4534         * tests/test-termios.c: New file.
4535
4536         New module 'termios'.
4537         * modules/termios: New file.
4538         * lib/termios.in.h: New file.
4539         * m4/termios_h.m4: New file.
4540         * doc/posix-headers/termios.texi: Mention the new module.
4541
4542 2010-09-16  Eric Blake  <eblake@redhat.com>
4543
4544         fdutimensat: add an atflag parameter
4545         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4546         * lib/utimens.h (fdutimensat): Update prototype.
4547         * tests/test-fdutimensat.c: Adjust test to match.
4548         * NEWS: Document the change.
4549         Suggested by Paul Eggert.
4550
4551 2010-09-16  Bruno Haible  <bruno@clisp.org>
4552
4553         Fix typos in comments.
4554         * lib/striconveh.h: Fix typo in comment.
4555         * lib/login_tty.c (login_tty): Likewise.
4556
4557 2010-09-15  Bruno Haible  <bruno@clisp.org>
4558
4559         stdlib: clarify MirBSD WEXITSTATUS bug
4560         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
4561         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4562
4563 2010-09-15  Eric Blake  <eblake@redhat.com>
4564
4565         stdlib: work around MirBSD WEXITSTATUS bug
4566         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
4567         * modules/stdlib (Depends-on): Add sys_wait.
4568         * tests/test-sys_wait.c (main): Enhance test.
4569         * tests/test-stdlib.c (main): Likewise.
4570         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
4571
4572         docs: mention MacOS issue with WEXITSTATUS(constant)
4573         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
4574         issue.
4575         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4576
4577         strnlen: add tests
4578         * modules/strnlen-tests: New file.
4579         * tests/test-strnlen.c: Likewise.
4580
4581 2010-09-14  Bruno Haible  <bruno@clisp.org>
4582
4583         unistr/base: Avoid link errors when module 'libunistring' is also used.
4584         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
4585         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
4586         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
4587         Declare also when HAVE_LIBUNISTRING is set.
4588         Reported by Pádraig Brady <P@draigbrady.com>.
4589
4590 2010-09-14  Eric Blake  <eblake@redhat.com>
4591
4592         test-rawmemchr: make more robust
4593         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
4594         (Depends-on, configure.ac): Add needed prerequisites to use it.
4595         * modules/memchr-tests (Files, Depends-on, configure.ac):
4596         Likewise, to avoid implicit reliance on memchr module prereqs.
4597         * tests/test-memchr.c (main): Ensure proper masking.
4598         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
4599         reads.
4600
4601         memchr: detect glibc Alpha bug
4602         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
4603         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
4604         Alpha.
4605         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
4606         * tests/test-memchr.c (main): Enhance test.
4607         Reported by Nelson H. F. Beebe.
4608
4609 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4610
4611         fts, getcwd, glob: audit for dirfd returning -1
4612         * lib/fts.c (opendir): Remove #define; no longer used.
4613         (opendirat): New arg PDIR_FD.  All callers changed.
4614         (fts_build, _opendir2): Use new opendirat to avoid the need for
4615         dirfd, or for checking whether dirfd returns a negative value.
4616         Don't use opendir; always use openat followed by fdopendir.
4617         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
4618         it.
4619         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
4620         returns -1 here.
4621         * modules/fts (Depends-on): Remove dirfd.
4622         * modules/getcwd (Depends-on): Likewise.
4623
4624 2010-09-13  Eric Blake  <eblake@redhat.com>
4625
4626         float: fix broken MirBSD header
4627         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
4628         * doc/posix-headers/float.texi (float.h): Document it.
4629
4630 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4631
4632         fts: use O_NOFOLLOW to avoid race condition when opening a directory
4633         * lib/fts.c (opendirat): New arg extra_flags.
4634         (__opendir2): Use it to avoid following symlinks when opening
4635         a directory, if symlinks are not supposed to be followed.  See
4636         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
4637
4638         fdopendir: preserve argument fd before returning
4639         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
4640         (fdopendir_with_dup, fd_clone_opendir): New static functions.
4641         (fdopendir): Use them, arranging for FD to be open to the same
4642         directory that it was when it started.  (It might be temporarily
4643         closed while fdopendir is running, so this not thread- or
4644         signal-safe.)  Be careful to do the right thing even when file
4645         descriptors are scarce and dup fails with errno == EMFILE.  See
4646         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
4647
4648 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
4649
4650         regex: Pass the system regex if its only problem is 32-bit regoff_t.
4651         * NEWS: Document change.
4652         * m4/regex.m4: Disable test for regoff_t size.
4653
4654 2010-09-13  Jim Meyering  <meyering@redhat.com>
4655
4656         fts: don't operate on an invalid file descriptor after failed dup
4657         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
4658         negative file descriptor.
4659
4660 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4661
4662         savedir: add streamsavedir, deprecate fdsavedir
4663         * NEWS: Mention deprecation of fdsavedir.
4664         * lib/savedir.c (streamsavedir): New extern function, whose name
4665         ends in "savedir" to be consistent with the others.  This differs
4666         from savedirstream in that it doesn't close its argument.  The
4667         next version of GNU tar will use this instead of fdsavedir, to
4668         avoid some race conditions and conserve file descriptors.
4669         (savedirstream): Reimplement as a wrapper around streamsavedir.
4670         (fdsavedir): Add a comment deprecating this function.  As far as
4671         I know, only GNU tar used it, and GNU tar doesn't need it any more.
4672         * lib/savedir.h (streamsavedir): New decl.
4673         (fdsavedir): Add a comment deprecating this.
4674
4675 2010-09-10  Bruno Haible  <bruno@clisp.org>
4676
4677         langinfo: Fix last commit.
4678         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
4679         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
4680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4681
4682 2010-09-10  Bruno Haible  <bruno@clisp.org>
4683
4684         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
4685         * lib/progreloc.c (O_EXEC): Define fallback.
4686
4687 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4688
4689         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
4690         * NEWS: Document recent changes to fcntl-h.
4691         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
4692         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
4693         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
4694         Similarly for O_SEARCH; this last was already true, but not documented.
4695         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
4696         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
4697         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
4698         Likewise.
4699         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
4700         is zero, not whether it is defined.
4701         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
4702         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
4703         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
4704
4705 2010-09-10  Bruno Haible  <bruno@clisp.org>
4706
4707         langinfo, nl_langinfo: Fix for IRIX 5.3.
4708         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
4709         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
4710         HAVE_LANGINFO_YESEXPR.
4711         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
4712         HAVE_LANGINFO_YESEXPR.
4713         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
4714         HAVE_LANGINFO_T_FMT_AMPM is 0.
4715         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
4716         HAVE_LANGINFO_YESEXPR is 0.
4717         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
4718         NOEXPR.
4719         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
4720         * doc/posix-functions/nl_langinfo.texi: Likewise.
4721         Reported by Eric Blake.
4722
4723 2010-09-10  Bruno Haible  <bruno@clisp.org>
4724
4725         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
4726         * doc/glibc-functions/login_tty.texi: Mention the include file problem
4727         on FreeBSD 8.0 and OpenBSD 4.6.
4728         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
4729         * m4/pty_h.m4 (gl_PTY_H): Likewise.
4730         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
4731         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
4732         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
4733         ac_includes_default.
4734         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4735
4736 2010-09-09  Eric Blake  <eblake@redhat.com>
4737
4738         strsignal: work around NetBSD bug
4739         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
4740         * lib/string.in.h (includes): Likewise.
4741         * doc/posix-functions/strsignal.texi (strsignal): Document the
4742         bug.
4743         Reported by Nelson H. F. Beebe.
4744
4745         gnulib-tool: work with NetBSD /bin/sh
4746         * gnulib-tool (func_cache_var, func_cache_lookup_module)
4747         (func_get_description, func_get_comment, func_get_status)
4748         (func_get_notice, func_get_applicability, func_get_filelist)
4749         (func_get_dependencies, func_get_autoconf_early_snippet)
4750         (func_get_autoconf_snippet, func_get_automake_snippet)
4751         (func_get_include_directive, func_get_link_directive)
4752         (func_get_license, func_get_maintainer, func_import): Avoid
4753         shell syntax errors from parsing syntax extensions.
4754
4755 2010-09-09  Bruno Haible  <bruno@clisp.org>
4756
4757         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4758         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
4759         a reliable way to determine whether the 'alias' command works.
4760
4761 2010-09-08  Jim Meyering  <meyering@redhat.com>
4762
4763         init.sh: penalize a set-x-impaired shell; don't disqualify it
4764         * tests/init.sh: Too many shells corrupt application stderr when
4765         you set -x, so we can't afford to disqualify them, since at least
4766         on Irix-6.5, that would disqualify all bourne shells.
4767         Instead, use a two-pass approach.
4768         On the first pass, try to find a shell that meets the stricter
4769         condition that set -x does not corrupt stderr.
4770         If no shell meets the stricter condition, retest each candidate
4771         shell, but without that extra condition.  Finally, when
4772         VERBOSE=yes is requested and set -x might cause trouble, simply
4773         issue a warning and refrain from enabling debug output.
4774
4775 2010-09-08  Eric Blake  <eblake@redhat.com>
4776
4777         unsetenv: fix OpenBSD bug
4778         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
4779         * doc/posix-functions/unsetenv.texi (unsetenv): Update
4780         documentation.
4781         Reported by Jim Meyering.
4782
4783         strtod: work around IRIX 6.5 bug
4784         * lib/strtod.c (strtod): Reparse number on shorter string if
4785         exponent parse was invalid.
4786         * tests/test-strtod.c (main): Add check for "0x1p 2".
4787         Reported by Tom G. Christensen.
4788
4789         getopt: optimize previous patch
4790         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
4791         empty variable.  Speed up awk script.
4792         Reported by Paolo Bonzini.
4793
4794 2010-09-08  Jim Meyering  <meyering@redhat.com>
4795
4796         test.sh: disqualify shells for which set -x corrupts stderr
4797         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
4798         and OpenBSD 4.7.  They make it so with "set -x", environment settings
4799         appear in stderr output.  For example, this command:
4800             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
4801         prints "P=1" on those two systems:
4802
4803 2010-09-08  Bruno Haible  <bruno@clisp.org>
4804
4805         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4806         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
4807         commands, because some shells ignore redirections when there is an
4808         error in the command lookup.
4809         Reported by Eric Blake.
4810
4811 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
4812
4813         * lib/regex.h: Fix a mention of `regex_compile' (should be
4814         `re_compile_pattern').
4815         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
4816         (re_set_registers): Correct name of parameter in comment.
4817
4818         * doc/regex.texi: Add documentation for missing syntax flags.
4819         Remove commented-out documentation of defunct syntax option
4820         RE_NO_EMPTY_ALTS.
4821         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
4822         Add documentation of re_set_registers.
4823         Document trick to re-use a pattern buffer by setting fastmap manually.
4824         Update documentation of struct re_pattern_buffer per public members.
4825         Uncomment documentation of equivalence class operators and
4826         collating symbol operators, since they are now implemented,
4827         Explain leftmost-longest matching in relation to alternatives.
4828         Tidy documentation of substring matching.
4829         Remove POSIX documentation, which is done better in
4830         glibc, and refer the reader there. Keep BSD API documentation, as
4831         that is not readily available elsewhere.
4832
4833 2010-09-07  Eric Blake  <eblake@redhat.com>
4834
4835         getopt: handle POSIXLY_CORRECT set but not exported
4836         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
4837         export state of POSIXLY_CORRECT, due to bash set -o posix.
4838         Reported by Dustin J. Mitchell.
4839
4840 2010-09-05  Bruno Haible  <bruno@clisp.org>
4841
4842         gnulib-tool: Highlight the changed options.
4843         * gnulib-tool (func_usage): Display the --import, --add-import,
4844         --remove-import explanations in bold font.
4845
4846 2010-09-06  Karl Berry  <karl@gnu.org>
4847
4848         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
4849
4850 2010-09-05  Bruno Haible  <bruno@clisp.org>
4851
4852         uniwidth/width: Update comment.
4853         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
4854         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
4855
4856 2010-09-05  Bruno Haible  <bruno@clisp.org>
4857
4858         isinf, isnan: Relax license.
4859         * modules/isinf (License): Change from GPL to LGPL, with consent from
4860         Ben Pfaff.
4861         * modules/isnan (License): Likewise.
4862         Requested by Ludovic Courtès.
4863
4864 2010-09-04  Bruno Haible  <bruno@clisp.org>
4865
4866         gnulib-tool: Help migration from --import to --add-import or --update.
4867         * gnulib-tool: Emit a verbose error message when --import is used
4868         without any module name.
4869
4870 2010-09-04  Bruno Haible  <bruno@clisp.org>
4871
4872         Update doc about gnulib-tool.
4873         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
4874         'gnulib-tool --update' in more detail.
4875         Reported by Eric Blake.
4876
4877 2010-09-04  Bruno Haible  <bruno@clisp.org>
4878
4879         gnulib-tool: Change --import. New options --add/remove-import.
4880         * gnulib-tool: New options --add-import, --remove-import.
4881         (func_usage): Document them.
4882         (have_associative): Define always.
4883         (func_import): In import mode, don't merge the specified settings with
4884         the cached settings. Implement remove-import mode.
4885         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
4886         Explain when to use them versus --import.
4887         (Simple update): Use --add-import instead of --import.
4888         * NEWS: Mention the change.
4889
4890 2010-09-04  Bruno Haible  <bruno@clisp.org>
4891
4892         * doc/gnulib-tool.texi (Initial import): Update paragraph about
4893         separate gnulib.mk.
4894
4895 2010-09-04  Bruno Haible  <bruno@clisp.org>
4896
4897         gnulib-tool: Don't talk about CVS any more.
4898         * gnulib-tool (func_usage, func_import): Write "version control"
4899         instead of CVS.
4900
4901 2010-09-04  Jim Meyering  <meyering@redhat.com>
4902
4903         maint.mk: avoid obscure sc_copyright_check failure in coreutils
4904         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
4905         false positives (whose names may be ill-chosen) when searching
4906         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
4907         would cause a false-positive.
4908
4909         avoid coreutils "make distcheck" failure
4910         Coreutils tests with an absolute build directory name that contains
4911         a space.  Not quoting this directory name caused a failure.
4912         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
4913         * tests/test-vc-list-files-cvs.sh: Likewise.
4914
4915 2010-09-04  Bruno Haible  <bruno@clisp.org>
4916
4917         gnulib-tool: Avoid error when run in a package without Makefile.am.
4918         * gnulib-tool: When collecting the m4dirs in a package that does not
4919         have a Makefile.am, eliminate those directories that contain no
4920         gnulib-cache.m4. Fix expression that counts these directories.
4921
4922 2010-09-04  Bruno Haible  <bruno@clisp.org>
4923
4924         update-copyright test: Improve output when perl is missing or too old.
4925         * tests/test-update-copyright.sh: Move test of Perl version down after
4926         the test whether Perl exists. Provide an explanation relating Perl's
4927         error message to Automake's SKIP: message.
4928
4929 2010-09-04  Bruno Haible  <bruno@clisp.org>
4930
4931         Don't augment PATH in TESTS_ENVIRONMENT.
4932         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
4933         set abs_aux_dir instead of augmenting PATH.
4934         * modules/vc-list-files-tests (Makefile.am): Likewise.
4935         * tests/test-update-copyright.sh: Augment PATH here.
4936         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
4937         path_prepend_.
4938         * tests/test-vc-list-files-git.sh: Likewise.
4939
4940 2010-09-04  Jim Meyering  <meyering@redhat.com>
4941
4942         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
4943         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
4944
4945 2010-09-04  Bruno Haible  <bruno@clisp.org>
4946
4947         strdup: Fix compilation error in C++ mode.
4948         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
4949         the macro.
4950
4951 2010-09-04  Bruno Haible  <bruno@clisp.org>
4952
4953         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
4954         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
4955         macro into a function.
4956         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4957
4958 2010-09-04  Bruno Haible  <bruno@clisp.org>
4959
4960         Set PATH_SEPARATOR the same way autoconf does.
4961         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
4962         the value of PATH_SEPARATOR the same way autoconf-generated configure
4963         scripts do.
4964         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
4965         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
4966
4967 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4968
4969         Set PATH_SEPARATOR the same way autoconf does.
4970         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
4971         the same way autoconf-generated configure scripts do.
4972         * posix-modules: Likewise.
4973
4974 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
4975
4976         hash: fix safe_hasher const typo
4977         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
4978         const; otherwise, there is a type error later.
4979
4980 2010-09-02  Jim Meyering  <meyering@redhat.com>
4981
4982         test-update-copyright.sh: require perl 5.8.0
4983         * tests/test-update-copyright.sh: Require 5.8.0,
4984         which Tom G. Christensen has confirmed is adequate,
4985         while 5.6.1 is not.
4986
4987 2010-09-02  Eric Blake  <eblake@redhat.com>
4988
4989         tests: init.sh improvements for re-exec'ing with zsh
4990         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
4991         -vx through shell re-exec.
4992         Reported by Tom G. Christensen.
4993
4994         wctype: fix typo in previous commit
4995         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
4996         Reported by Ludovic Courtès.
4997
4998 2010-09-02  Jim Meyering  <meyering@redhat.com>
4999
5000         test-update-copyright.sh: skip test if Perl is too old
5001         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5002         Reported by Tom G. Christensen.
5003
5004 2010-09-02  Bruno Haible  <bruno@clisp.org>
5005
5006         wctype: Avoid compilation error on IRIX 6.5.30.
5007         * lib/wctype.in.h (iswblank): Declare with a replacement if
5008         REPLACE_ISWBLANK is set.
5009         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5010         declared. Set REPLACE_ISWBLANK.
5011         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5012         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5013         * doc/posix-headers/wctype.texi: Likewise.
5014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5015
5016 2010-09-01  Bruno Haible  <bruno@clisp.org>
5017
5018         New module 'socketlib'.
5019         * modules/socketlib: New file.
5020         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5021         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5022         * modules/sockets (Depends-on): Add socketlib.
5023         Suggested by Sam Steingold <sds@gnu.org>.
5024
5025 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5026
5027         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5028
5029         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5030         when one needs search access to a directory but not read access.
5031         On systems where it is available, it works in some cases where
5032         O_RDONLY does not, namely on directories that are searchable but
5033         not readable, and which need only to be searchable.  If O_SEARCH
5034         is not available, fall back to the traditional method of using
5035         O_RDONLY.
5036
5037         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5038         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5039         when opening a directory that needs only to be searchable.
5040         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5041         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5042         * lib/openat-proc.c (openat_proc_name): Likewise.
5043         * lib/openat.c (openat_needs_fchdir): Likewise.
5044         * lib/save-cwd.c (save_cwd): Likewise.
5045         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5046
5047 2010-08-28  Bruno Haible  <bruno@clisp.org>
5048
5049         New module 'host-cpu-c-abi'.
5050         * modules/host-cpu-c-abi: New file.
5051         * m4/host-cpu-c-abi.m4: New file, based on part of
5052         clisp/src/m4/general.m4.
5053         Requested by Sam Steingold <sds@gnu.org>.
5054
5055 2010-08-31  Eric Blake  <eblake@redhat.com>
5056         and Jim Meyering  <meyering@redhat.com>
5057
5058         hash: factor, and guard against misbehaving hasher function
5059         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5060         of table->hasher's return value.  Also protect against a hash value
5061         so large that adding it to table->bucket results in a NULL pointer.
5062         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5063         Use it in place of open-coded check-and-abort.
5064
5065 2010-08-30  Bruno Haible  <bruno@clisp.org>
5066
5067         hash: silence spurious clang warning
5068         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5069         Reported by Eric Blake.
5070
5071 2010-08-30  Eric Blake  <eblake@redhat.com>
5072
5073         strstr, memmem, strcasestr: avoid leaked shell message
5074         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5075         FreeBSD.
5076         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5078
5079         tests: silence clang warning
5080         * tests/test-malloca.c (do_allocation): Avoid dead store.
5081
5082 2010-08-29  Bruno Haible  <bruno@clisp.org>
5083
5084         gettext: Fix recent mistake.
5085         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5086
5087 2010-08-29  Bruno Haible  <bruno@clisp.org>
5088
5089         selinux-h: Offer a --without-selinux option.
5090         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5091         --without-selinux was specified, skip all tests and define
5092         HAVE_SELINUX_SELINUX_H to 0.
5093         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5094         set LIB_SELINUX to empty.
5095         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5096         gl_LIBSELINUX. If --without-selinux was specified, replace
5097         selinux/context.h.
5098         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5099
5100 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5101             Bruno Haible  <bruno@clisp.org>
5102
5103         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5104         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5105         of HAVE_REALLOC.
5106         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5107         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5108         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5109         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5110
5111 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5112             Bruno Haible  <bruno@clisp.org>
5113
5114         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5115         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5116         HAVE_CALLOC.
5117         * lib/xmalloc.c: Update accordingly.
5118         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5119         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5120         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5121
5122 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5123             Bruno Haible  <bruno@clisp.org>
5124
5125         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5126         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5127         HAVE_MALLOC.
5128         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5129         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5130         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5131
5132 2010-08-29  Bruno Haible  <bruno@clisp.org>
5133
5134         Update modules list.
5135         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5136         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5137         (String handling <string.h>): Add astrxfrm.
5138         (File system functions): Add readlinkat.
5139
5140 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5141
5142         Tests for module 'realloc-gnu'.
5143         * modules/realloc-gnu-tests: New file.
5144         * tests/test-realloc-gnu.c: New file.
5145
5146         Tests for module 'calloc-gnu'.
5147         * modules/calloc-gnu-tests: New file.
5148         * tests/test-calloc-gnu.c: New file.
5149
5150         Tests for module 'malloc-gnu'.
5151         * modules/malloc-gnu-tests: New file.
5152         * tests/test-malloc-gnu.c: New file.
5153
5154 2010-08-28  Bruno Haible  <bruno@clisp.org>
5155
5156         Rename module 'realloc' -> 'realloc-gnu'.
5157         * modules/realloc-gnu: New file, copied from modules/realloc.
5158         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5159         obsolete.
5160         * modules/mgetgroups (Depends-on): Update.
5161         * doc/posix-functions/realloc.texi: Update.
5162         * NEWS: Mention the change.
5163
5164         Rename module 'calloc' -> 'calloc-gnu'.
5165         * modules/calloc-gnu: New file, copied from modules/calloc.
5166         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5167         obsolete.
5168         * doc/posix-functions/calloc.texi: Update.
5169         * NEWS: Mention the change.
5170
5171         Rename module 'malloc' -> 'malloc-gnu'.
5172         * modules/malloc-gnu: New file, copied from modules/malloc.
5173         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5174         obsolete.
5175         * modules/argp (Depends-on): Update.
5176         * modules/regex (Depends-on): Update.
5177         * doc/posix-functions/malloc.texi: Update.
5178         * NEWS: Mention the change.
5179
5180 2010-08-28  Eric Blake  <eblake@redhat.com>
5181
5182         pread, pwrite: add missing dependency
5183         * modules/pread (Depends-on): Add extensions.
5184         * modules/pwrite (Depends-on): Likewise.
5185
5186 2010-08-28  Bruno Haible  <bruno@clisp.org>
5187
5188         unistr/u*-strchr: Fix tests dependencies.
5189         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5190         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5191         Reported by Ian Beckwith <ianb@erislabs.net>.
5192
5193 2010-08-28  Bruno Haible  <bruno@clisp.org>
5194
5195         read-file: Don't occupy too much unused memory.
5196         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5197
5198 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5199             Eric Blake  <eblake@redhat.com>
5200             Bruno Haible  <bruno@clisp.org>
5201
5202         read-file: Avoid memory reallocations with regular files.
5203         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5204         (fread_file): With regular files, use the remaining length as the
5205         initial buffer size.  Check against overflow.
5206         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5207         sys_stat.
5208
5209 2010-08-28  Bruno Haible  <bruno@clisp.org>
5210
5211         ftello: Relax license.
5212         * modules/ftello (License): Relax to LGPLv2+.
5213         Reported by Eric Blake.
5214
5215 2010-08-28  Bruno Haible  <bruno@clisp.org>
5216
5217         Avoid relocwrapper link errors due to gnulib replacement functions.
5218         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5219         function.
5220         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5221
5222 2010-08-28  Bruno Haible  <bruno@clisp.org>
5223
5224         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5225         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5226         defined.
5227         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5228         Suggested by Eric Blake.
5229
5230 2010-08-28  Bruno Haible  <bruno@clisp.org>
5231
5232         sys_socket, netdb: Ensure socklen_t gets defined.
5233         * modules/sys_socket (Depends-on): Add socklen.
5234         * modules/netdb (Depends-on): Likewise.
5235         * modules/getaddrinfo (Depends-on): Remove socklen.
5236         * modules/getsockopt (Depends-on): Likewise.
5237         * modules/setsockopt (Depends-on): Likewise.
5238         * tests/test-sys_socket.c: Check that socklen_t is defined.
5239         * tests/test-netdb.c: Likewise.
5240         * m4/socklen.m4: Update comments.
5241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5242
5243 2010-08-27  Eric Blake  <eblake@redhat.com>
5244
5245         login_tty: add missing dependency
5246         * modules/login_tty (Depends-on): Add pty.
5247
5248 2010-08-26  Eric Blake  <eblake@redhat.com>
5249
5250         lib-symbol-versions: fix m4 quoting
5251         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5252         format for AC_LINK_IFELSE.
5253
5254         glob: fix compile test
5255         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5256
5257         btowc: fix missing file
5258         * modules/btowc (Files): Also ship locale-fr.m4.
5259
5260         lseek: fix link test
5261         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5262         AC_LINK_IFELSE.
5263
5264         include_next: silence autoconf 2.68 warning
5265         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5266         AC_COMPILE_IFELSE as special.
5267         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5268         autoconf < 2.68.
5269
5270         acl: fix compilation test
5271         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5272         AC_COMPILE_IFELSE.
5273
5274 2010-08-26  Bruno Haible  <bruno@clisp.org>
5275
5276         Modernize AC_TRY_RUN invocations.
5277         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5278         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5279         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5280         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5281         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5282         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5284         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5285         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5286         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5287         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5288         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5289         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5290         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5291         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5292         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5293         gl_MBRLEN_NUL_RETVAL): Likewise.
5294         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5295         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5296         Likewise.
5297         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5298         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5299         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5300         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5301         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5302         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5303         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5304         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5305         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5306         Likewise.
5307         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5308         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5309         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5310         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5311         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5312         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5313         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5314         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5315         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5317
5318 2010-08-26  Bruno Haible  <bruno@clisp.org>
5319
5320         Modernize AC_TRY_LINK invocations.
5321         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5322         AC_TRY_LINK.
5323         * m4/argp.m4 (gl_ARGP): Likewise.
5324         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5325         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5326         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5327         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5328         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5329         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5330         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5331         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5332         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5333         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5334         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5335         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5336         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5337         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5338         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5339         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5340         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5341         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5342         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5343         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5344         Likewise.
5345         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5346         Likewise.
5347         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5348         Likewise.
5349         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5350         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5351         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5352         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5353         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5354         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5355         * m4/servent.m4 (gl_SERVENT): Likewise.
5356         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5357         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5358         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5359         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5360         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5361         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5362         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5363         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5364         * modules/tsearch-tests (configure.ac): Likewise.
5365
5366 2010-08-26  Bruno Haible  <bruno@clisp.org>
5367
5368         Modernize AC_TRY_COMPILE invocations.
5369         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5370         AC_TRY_COMPILE.
5371         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5372         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5373         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5374         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5375         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5376         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5377         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5378         * m4/lock.m4 (gl_LOCK): Likewise.
5379         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5380         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5381         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5382         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5383         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5384         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5385         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5386         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5387         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5388         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5389         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5390         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5391         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5392         extraneous semicolon.
5393
5394 2010-08-26  Jim Meyering  <meyering@redhat.com>
5395
5396         stat-time: relax license LGPL
5397         * modules/stat-time (License): Change from GPL to LGPL,
5398         with consent from all contributors, for use in libguile.
5399         Requested by Ludovic Courtès.
5400
5401 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5402
5403         poll: return immediately on POLLHUP.
5404         * lib/poll.c (poll): Always set timeout before wait_timeout is
5405         computed.
5406
5407 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5408
5409         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5410         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5411         rmdir ("dir/.//"), unlinkat.
5412
5413 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5414
5415         stdbool: avoid spurious failure with modern xlc
5416         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5417
5418 2010-08-24  Bruno Haible  <bruno@clisp.org>
5419
5420         getloadavg: simplify code
5421         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5422         gl_have_func. Update comments.
5423
5424 2010-08-24  Eric Blake  <eblake@redhat.com>
5425
5426         getloadavg: don't define SVR4 on cygwin
5427         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5428         only define SVR4 when -lkvm is required.
5429         Reported by Yaakov Selkowitz.
5430
5431 2010-08-24  Bruno Haible  <bruno@clisp.org>
5432
5433         priv-set: fix comment
5434         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5435
5436 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5437
5438         priv-set: fix comments
5439         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5440         to match code, as suggested by David Bartley in:
5441         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5442
5443 2010-08-23  Eric Blake  <eblake@redhat.com>
5444
5445         stdbool: avoid rejecting clang
5446         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5447         * tests/test-stdbool.c: Enable more tests if using the system
5448         <stdbool.h> instead of the gnulib replacement.
5449         (main): Move xlc bug test to a runtime test for all compilers.
5450         Reported by Anders Kaseorg.
5451
5452         argz: fix shell quoting issue
5453         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5454         Reported by Charles Wilson.
5455
5456 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5457             Erik Faye-Lund <kusmabite@gmail.com>
5458
5459         poll, select: handle ERROR_BROKEN_PIPE.
5460         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5461         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5462         * lib/select.c (win32_compute_revents): Do not mark a pipe
5463         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5464
5465 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5466
5467         fts: allow compilation with C++
5468         * lib/fts_.h: Specify extern "C" linkage with C++.
5469
5470 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5471
5472         Fix gnulib-tool sed script de-commentation for AIX sed.
5473         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5474         sed.
5475
5476 2010-08-17  Eric Blake  <eblake@redhat.com>
5477
5478         test-stddef: test for (some) offsetof bugs
5479         * tests/test-stddef.c: Enhance test to ensure correct type of
5480         offsetof.
5481         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
5482         that we are not fixing at this time.
5483
5484 2010-08-15  Bruno Haible  <bruno@clisp.org>
5485
5486         stpncpy: Allow stpncpy to be defined as a macro.
5487         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
5488         if it's already correctly declared.
5489         * lib/string.in.h (stpncpy): Undefine before redefining.
5490         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
5491
5492 2010-08-14  Bruno Haible  <bruno@clisp.org>
5493
5494         Rename module 'memxfrm' to 'amemxfrm'.
5495         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
5496         (amemxfrm): Renamed from memxfrm.
5497         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
5498         (amemxfrm): Renamed from memxfrm.
5499         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
5500         * NEWS: Mention the change.
5501         * MODULES.html.sh (String handling <string.h>): Update.
5502         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
5503         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5504         * lib/unicase/u16-casexfrm.c: Likewise.
5505         * lib/unicase/u32-casexfrm.c: Likewise.
5506         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5507         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5508         * lib/uninorm/u16-normxfrm.c: Likewise.
5509         * lib/uninorm/u32-normxfrm.c: Likewise.
5510         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5511         memxfrm.
5512         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5513         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5514         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5515         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5516         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5517         Suggested by Paul Eggert.
5518
5519 2010-08-14  Bruno Haible  <bruno@clisp.org>
5520
5521         Tests for module 'astrxfrm'.
5522         * modules/astrxfrm-tests: New file.
5523         * tests/test-astrxfrm.c: New file.
5524
5525         New module 'astrxfrm'.
5526         * lib/astrxfrm.h: New file.
5527         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5528         * modules/astrxfrm: New file.
5529
5530 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5531
5532         regex: Tweak doc.
5533         * doc/regex.texi (Overview): Don't mention regex.c.
5534         (GNU Regular Expression Compiling): Likewise.
5535         (Match-end-of-line Operator): Mention 'not_eol'.
5536
5537 2010-08-14  Brian Gough  <bjg@gnu.org>
5538             Bruno Haible  <bruno@clisp.org>
5539
5540         git-merge-changelog: add doc relating to use with bzr and hg.
5541         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5542
5543 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5544
5545         pthread: fix pthread.h creation for srcdir != builddir
5546         * modules/pthread (Makefile.am): Fix the rule to work also in a
5547         non-srcdir build.
5548
5549 2010-08-13  Karl Berry  <karl@gnu.org>
5550
5551         * doc/regex.texi (Predefined Syntaxes): @smallexample.
5552         * doc/posix-*/*: force line break before @url of POSIX
5553         specifications.
5554         Suggested by Werner Lemberg.
5555
5556 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5557
5558         strtod: fix const diagnostic
5559         * lib/strtod.c (strtod): Don't assign const char * to char *,
5560         as this elicits a warning from GCC when warnings are enabled.
5561
5562 2010-08-10  Pádraig Brady <P@draigbrady.com>
5563         and Eric Blake  <eblake@redhat.com>
5564
5565         copy-acl: ignore ENOTSUP on HP-UX
5566         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
5567         so that it is available for HP-UX.
5568         * lib/copy-acl.c (qcopy_acl): Use it.
5569         Reported by Patrick M. Callahan.
5570
5571 2010-08-10  Eric Blake  <eblake@redhat.com>
5572
5573         open, chown: relax license
5574         * modules/open (License): Change to LGPLv2+, with consent by all
5575         authors, for use in augeas.
5576         * modules/chown (License): Likewise.
5577         * modules/lchown (Likewise): Likewise.
5578         Requested by Adam Stokes.
5579
5580 2010-08-09  Karl Berry  <karl@gnu.org>
5581
5582         * build-aux/ar-lib: new file, import from Automake.
5583         * config/srclist.txt: autocheck for updates.
5584
5585 2010-08-09  Eric Blake  <eblake@redhat.com>
5586
5587         readlinkat: adjust client modules
5588         * modules/areadlinkat (Depends-on): Use readlinkat, not
5589         symlinkat.
5590         * modules/areadlinkat-with-size (Depends-on): Likewise.
5591
5592         mknod: be more vocal about danger of running tests as root
5593         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
5594         root, since that is just asking for problems.
5595         Suggested by Bruno Haible, based on a report by Rainer Tammer.
5596
5597         readlinkat: split into its own module
5598         * modules/symlinkat: Split readlinkat...
5599         * modules/readlinkat: ...into separate module.
5600         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
5601         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
5602         * lib/symlinkat.c (readlinkat): Move...
5603         * lib/readlinkat.c: ...into new file.
5604         * modules/symlinkat-tests: Split readlinkat test...
5605         * modules/readlinkat-tests: ...into separate module.
5606         * tests/test-symlinkat.c: Split...
5607         * tests/test-readlinkat.c: ...into new file.
5608         * NEWS: Document the split.
5609         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5610         * lib/unistd.in.h (readlinkat): Likewise.
5611         Suggested by Bruno Haible.
5612
5613 2010-08-08  Bruno Haible  <bruno@clisp.org>
5614
5615         memxfrm: Speed up.
5616         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
5617         that usually only one call to strxfrm is necessary for each string
5618         part.
5619         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5620
5621 2010-08-07  Karl Berry  <karl@gnu.org>
5622
5623         * doc/posix-headers/limits.texi,
5624         * doc/posix-functions/malloc.texi,
5625         * doc/posix-functions/strsignal.texi: missing @item.
5626         * doc/ld-version-script.texi: spurious leading i.
5627         * doc/regex.texi (Interval Operators): no commas inside @var.
5628
5629 2010-08-01  Bruno Haible  <bruno@clisp.org>
5630
5631         Integrate the regex documentation.
5632         * doc/gnulib.texi: Define 'cn' index.
5633         (Regular expressions): New a chapter that includes regex.texi and
5634         regexprops-generic.texi.
5635         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
5636         syntax.
5637
5638         Whitespace cleanup.
5639         * doc/regex.texi: Remove trailing spaces.
5640
5641         Add regex documentation.
5642         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
5643         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
5644         Written by Kathy A. Hargreaves and Karl Berry.
5645
5646 2010-08-01  Bruno Haible  <bruno@clisp.org>
5647
5648         link: Update documentation.
5649         * doc/posix-functions/link.texi: Update regarding Solaris.
5650
5651 2010-07-31  Bruno Haible  <bruno@clisp.org>
5652
5653         Update modules list.
5654         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
5655         (String handling <string.h>): Add memcmp2, memxfrm.
5656         (Container data structures): Add xlist, xsublist, xoset.
5657         (Core language properties): Add alignof, unused-parameter.
5658         (Process control, Numeric conversion functions <stdlib.h>): Renamed
5659         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
5660         (Unibyte characters <ctype.h>): New section.
5661         (String handling <string.h>): New section.
5662         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
5663         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
5664         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
5665         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
5666         tan, tanh, tanl, y0, y1, yn.
5667         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
5668         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
5669         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
5670         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
5671         unlockpt, vdprintf, vdprintf-posix.
5672         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
5673         (File system functions): Add concat-filename, sys_file, sys_ioctl,
5674         xconcat-filename.
5675         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
5676         getdtablesize, pipe2, pipe2-safer.
5677         (Security): New section.
5678         (Networking functions): Add accept4.
5679         (Signal handling): Add sigpipe.
5680         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
5681         mbmemcasecoll.
5682         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
5683         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
5684         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
5685         pipe-filter-ii.
5686         (Misc): Add argp-version-etc, login_tty, parse-duration.
5687
5688 2010-07-31  Bruno Haible  <bruno@clisp.org>
5689
5690         Improve doc in MODULES.html.
5691         * modules/linkat (Description): Add the word "function".
5692         * modules/mkfifo (Description): Likewise.
5693         * modules/mknod (Description): Likewise.
5694         * modules/remove (Description): Likewise.
5695         * modules/renameat (Description): Likewise.
5696         * modules/stat (Description): Likewise.
5697         * modules/symlink (Description): Likewise.
5698         * modules/unlink (Description): Likewise.
5699
5700 2010-07-31  Bruno Haible  <bruno@clisp.org>
5701
5702         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
5703         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
5704         option --enable/disable-c++ instead of --enable/disable-cxx.
5705         * NEWS: Mention the change.
5706
5707 2010-07-31  Bruno Haible  <bruno@clisp.org>
5708
5709         readlink, areadlink: Relax test a bit.
5710         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
5711         alternative to ENOTDIR.
5712         * tests/test-areadlink.h (test_areadlink): Likewise.
5713         Reported by Rainer Tammer.
5714
5715 2010-07-31  Bruno Haible  <bruno@clisp.org>
5716
5717         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
5718         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
5719         character, perform the search using U_STRCHR.
5720         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
5721         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
5722         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
5723         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
5724         Suggested by Paolo Bonzini.
5725
5726 2010-07-31  Bruno Haible  <bruno@clisp.org>
5727
5728         unistr/u*-strstr: Fix dependencies.
5729         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
5730         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
5731         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
5732
5733 2010-07-31  Bruno Haible  <bruno@clisp.org>
5734
5735         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
5736         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
5737         the beginning of the loop.
5738         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
5739         cases in 'switch' statement.
5740
5741         unistr/u8-strchr: Fix several bugs.
5742         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
5743         the string. When not found, return NULL, not a pointer near the end.
5744
5745         More tests for unistr/u8-strchr.
5746         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
5747         that the function does not read past the first occurrence of the byte
5748         being searched.
5749         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
5750         * tests/unistr/test-u16-strchr.c (main): New function.
5751         * tests/unistr/test-u32-strchr.c (main): New function.
5752
5753 2010-07-31  Bruno Haible  <bruno@clisp.org>
5754
5755         posix-modules: Ignore backup files of documentation files.
5756         * posix-modules: grep only through files named *.texi.
5757
5758 2010-07-31  Bruno Haible  <bruno@clisp.org>
5759
5760         symlinkat: Fix documentation.
5761         * doc/posix-functions/readlinkat.texi: Fix module name.
5762
5763 2010-07-31  Bruno Haible  <bruno@clisp.org>
5764
5765         fchownat: Replace also when chown has the trailing slash bug.
5766         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
5767         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
5768         introduced on 2010-04-10.
5769         Reported by Rainer Tammer.
5770
5771 2010-07-31  Bruno Haible  <bruno@clisp.org>
5772
5773         linkat: Work around AIX 7.1 bug.
5774         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
5775         whether linkat handles trailing slash correctly. If not, replace linkat
5776         and define LINKAT_TRAILING_SLASH_BUG.
5777         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
5778         check whether (fd1,file1) points to a directory if file1 or file2 ends
5779         in a slash. Code taken from lib/link.c.
5780         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
5781         Reported by Rainer Tammer.
5782
5783 2010-07-31  Bruno Haible  <bruno@clisp.org>
5784
5785         Correctly determine whether pow is available in libc on AIX 7 with xlc.
5786         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
5787         This disables an xlc optimization that was causing wrong test results.
5788         Reported by Rainer Tammer.
5789
5790 2010-07-31  Bruno Haible  <bruno@clisp.org>
5791
5792         iconv: Work around AIX 6.1..7.1 bug.
5793         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
5794         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
5795         cross-compiling, guess no on all versions of AIX.
5796         Reported by Rainer Tammer.
5797
5798 2010-07-31  Bruno Haible  <bruno@clisp.org>
5799
5800         readlink: Relax test a bit.
5801         * tests/test-readlink.h (test_readlink): Allow different errno value
5802         when readlink is called with a file name that ends in / and refers to
5803         a file.
5804         Suggested by Eric Blake.
5805         Reported by Rainer Tammer.
5806
5807 2010-07-31  Bruno Haible  <bruno@clisp.org>
5808
5809         copysign: Does not require -lm on glibc systems.
5810         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
5811         gl_COMMON_DOUBLE_MATHFUNC.
5812         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
5813
5814 2010-07-31  Bruno Haible  <bruno@clisp.org>
5815
5816         duplocale: Work around AIX 7.1 bug.
5817         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
5818         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
5819         * lib/duplocale.c (rpl_duplocale): Update comment.
5820         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
5821         Reported by Rainer Tammer.
5822
5823 2010-07-30  Bruno Haible  <bruno@clisp.org>
5824
5825         dirfd: Avoid link error on AIX 7.1.
5826         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
5827         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
5828         exist, set REPLACE_DIRFD.
5829         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
5830         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
5831         * doc/posix-functions/dirfd.texi: Update.
5832         Reported by Rainer Tammer.
5833
5834 2010-07-30  Eric Blake  <eblake@redhat.com>
5835
5836         strtod: next round of AIX fixes
5837         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
5838         exponent.
5839         * tests/test-strtod.c (main): Enhance tests.
5840         * doc/posix-functions/strtod.texi (strtod): Document next bug.
5841         Reported by Rainer Tammer.
5842
5843         futimens: fix configure check
5844         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
5845         Reported by Bruno Haible.
5846
5847 2010-07-30  Bruno Haible  <bruno@clisp.org>
5848
5849         getline: Update regarding AIX.
5850         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
5851         Reported by Rainer Tammer.
5852
5853 2010-07-30  Bruno Haible  <bruno@clisp.org>
5854
5855         wcwidth: Drop replacement on AIX 7.
5856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
5857         AIX 7.
5858         Reported by Rainer Tammer.
5859
5860 2010-07-30  Bruno Haible  <bruno@clisp.org>
5861
5862         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
5863         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
5864         a 'char *'.
5865         Reported by Rainer Tammer.
5866
5867 2010-07-30  Bruno Haible  <bruno@clisp.org>
5868
5869         unlink: Update regarding AIX.
5870         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
5871         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
5872         Reported by Rainer Tammer.
5873
5874 2010-07-30  Bruno Haible  <bruno@clisp.org>
5875
5876         symlink: Update regarding AIX.
5877         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
5878         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
5879         Reported by Rainer Tammer.
5880
5881 2010-07-30  Bruno Haible  <bruno@clisp.org>
5882
5883         strndup: Update regarding AIX.
5884         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
5885         AIX 7.
5886         Reported by Rainer Tammer.
5887
5888 2010-07-30  Bruno Haible  <bruno@clisp.org>
5889
5890         stat: Update regarding AIX.
5891         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
5892         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
5893         Reported by Rainer Tammer.
5894
5895 2010-07-30  Bruno Haible  <bruno@clisp.org>
5896
5897         truncl: Fix autoconf test.
5898         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
5899         whether truncl works.
5900         Reported by Rainer Tammer.
5901
5902 2010-07-30  Bruno Haible  <bruno@clisp.org>
5903
5904         round: Update regarding AIX.
5905         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
5906         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
5907         Reported by Rainer Tammer.
5908
5909 2010-07-30  Bruno Haible  <bruno@clisp.org>
5910
5911         rename: Update regarding AIX.
5912         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
5913         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
5914         Reported by Rainer Tammer.
5915
5916 2010-07-30  Bruno Haible  <bruno@clisp.org>
5917
5918         printf.m4: Update regarding AIX.
5919         * m4/printf.m4: Update comments regarding AIX.
5920         Reported by Rainer Tammer.
5921
5922 2010-07-30  Bruno Haible  <bruno@clisp.org>
5923
5924         iconv: Update regarding AIX.
5925         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
5926         AIX 7.
5927         Reported by Rainer Tammer.
5928
5929 2010-07-30  Bruno Haible  <bruno@clisp.org>
5930
5931         getopt: Update regarding AIX.
5932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
5933         no on AIX.
5934         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
5935         Reported by Rainer Tammer.
5936
5937 2010-07-30  Bruno Haible  <bruno@clisp.org>
5938
5939         ldexpl; Update regarding AIX.
5940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
5941         on AIX 7.
5942         Reported by Rainer Tammer.
5943
5944 2010-07-30  Bruno Haible  <bruno@clisp.org>
5945
5946         frexpl: Update regarding AIX.
5947         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
5948         on AIX 7.
5949         Reported by Rainer Tammer.
5950
5951 2010-07-30  Bruno Haible  <bruno@clisp.org>
5952
5953         open, fopen: Update regarding AIX.
5954         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
5955         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5956         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
5957         * doc/posix-functions/fopen.texi: Likewise.
5958         Reported by Rainer Tammer.
5959
5960 2010-07-30  Bruno Haible  <bruno@clisp.org>
5961
5962         chown: Update doc regarding AIX.
5963         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
5964         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
5965         Reported by Rainer Tammer.
5966
5967 2010-07-30  Eric Blake  <eblake@redhat.com>
5968
5969         strtod: fix bug in replacement function on AIX
5970         * lib/strtod.c (strtod): Special case broken "0x" parse in
5971         underlying strtod.
5972         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
5973         * doc/posix-functions/strtod.texi (strtod): Likewise.
5974         Reported by Rainer Tammer.
5975
5976 2010-07-30  Bruno Haible  <bruno@clisp.org>
5977
5978         mbrlen: Fix cross-compilation guess for AIX.
5979         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
5980         guess. Leftover from 2008-12-22.
5981
5982 2010-07-30  Bruno Haible  <bruno@clisp.org>
5983
5984         mbrtowc: Fix cross-compilation guess for AIX.
5985         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
5986         guess. Leftover from 2008-12-21.
5987
5988 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
5989
5990         init.sh: work around trap limitation of some shells
5991         * tests/init.sh (setup_): Move exit trap outside of shell function.
5992
5993 2010-07-29  Eric Blake  <eblake@redhat.com>
5994
5995         strtod: aid debugging
5996         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
5997         understanding why strtod is rejected.
5998
5999 2010-07-28  Bruno Haible  <bruno@clisp.org>
6000
6001         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6002         * lib/unistr/u8-chr.c: Include <string.h>.
6003         * tests/unistr/test-u8-chr.c: Likewise.
6004         * tests/unistr/test-u16-chr.c: Likewise.
6005         * tests/unistr/test-u32-chr.c: Likewise.
6006         * tests/unistr/test-u8-strchr.c: Likewise.
6007         * tests/unistr/test-u16-strchr.c: Likewise.
6008         * tests/unistr/test-u32-strchr.c: Likewise.
6009         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6010         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6011         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6012         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6013
6014 2010-07-28  Bruno Haible  <bruno@clisp.org>
6015
6016         Use spaces for indentation, not tabs.
6017         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6018
6019 2010-07-27  Bruno Haible  <bruno@clisp.org>
6020
6021         mbspcasecmp: Fix function specification.
6022         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6023         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6024         Reported by Eric Blake <eblake@redhat.com>.
6025
6026 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6027
6028         timespec: use cast and not conditional, as truncation isn't possible
6029         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6030         instead of a conditional.  Comment about the situation in more detail.
6031         This undoes most of the 2009-10-29 patch.
6032
6033 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6034
6035         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6036         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6037         * lib/unistr/u8-strchr.c: Likewise.
6038         * modules/unistr/u8-chr: Depend on memchr.
6039
6040         unistr/u*-strchr: add tests
6041         * modules/unistr/u8-strchr-tests: New file.
6042         * modules/unistr/u16-strchr-tests: New file.
6043         * modules/unistr/u32-strchr-tests: New file.
6044         * tests/unistr/test-strchr.h: New file.
6045         * tests/unistr/test-u8-strchr.c: New file.
6046         * tests/unistr/test-u16-strchr.c: New file.
6047         * tests/unistr/test-u32-strchr.c: New file.
6048
6049         unistr/u*-chr: test multibyte sequences more
6050         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6051         test vector.
6052         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6053         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6054         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6055
6056         unistr/u*-chr: test multibyte sequences
6057         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6058
6059         unistr/u*-chr: prepare for multibyte tests
6060         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6061         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6062         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6063         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6064         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6065         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6066
6067 2010-07-18  Bruno Haible  <bruno@clisp.org>
6068
6069         unistr/u8-strchr: Optimize non-ASCII argument case.
6070         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6071         because the first byte often matches anyway.
6072         Reported by Pádraig Brady <P@draigbrady.com>.
6073
6074 2010-07-15  Karl Berry  <karl@gnu.org>
6075
6076         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6077
6078 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6079
6080         getcwd: on Solaris, work better if ancestors are inaccessible
6081         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6082         buffer and size, try again with a large buffer.  This works better
6083         on Solaris, since its getcwd succeeds even if the path to the root
6084         is inaccessible, and this is helpful in common cases such as .zfs
6085         hidden directories.  Problem reported by J Chapman Flack in
6086         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6087         Use system getcwd if it's declared, not merely if it's partly
6088         working; use the partly-working test only to avoid needless effort
6089         if the system getcwd fails.
6090         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6091         comment that was already obsolete and is now even more obsolete.
6092         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6093         now might call strdup.
6094
6095 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6096
6097         pthread: Add enough so that coreutils/src/sort.c compiles.
6098         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6099         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6100         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6101         Include <sys/types.h>, in case it defines pthread_t.
6102         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6103         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6104         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6105         (pthread_rwlockattr_t, pthread_spinlock_t):
6106         New typedefs, if HAVE_PTHREAD_T is not defined.
6107         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6108         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6109         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6110         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6111         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6112         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6113         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6114         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6115         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6116         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6117         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6118         New macros.
6119         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6120         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6121         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6122         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6123         (pthread_spin_unlock): New dummy functions.
6124         (pthread_create): Return EAGAIN; don't set errno.
6125         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6126         require AC_C_INLINE.
6127         * modules/pthread (Depends-on): Add sched, time.
6128         (pthread.h): Use AM_V_GEN.
6129
6130 2010-07-13  Bruno Haible  <bruno@clisp.org>
6131
6132         striconveh: Don't malloc memory if the result buffer is sufficient.
6133         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6134         buffer if its size is sufficient.
6135         Reported by Ludovic Courtès <ludo@gnu.org>.
6136
6137 2010-07-13  Bruno Haible  <bruno@clisp.org>
6138
6139         strtod: Add safety check.
6140         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6141
6142 2010-07-12  Bruno Haible  <bruno@clisp.org>
6143
6144         Unify tests that set gl_cv_func_ldexpl_no_libm.
6145         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6146         gl_FUNC_LDEXPL.
6147         (gl_FUNC_LDEXPL): Invoke it.
6148         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6149
6150 2010-07-12  Bruno Haible  <bruno@clisp.org>
6151
6152         Unify tests that set gl_cv_func_ldexp_no_libm.
6153         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6154         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6155         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6156         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6157         * modules/strtod (Files): Add m4/ldexp.m4.
6158
6159 2010-07-12  Bruno Haible  <bruno@clisp.org>
6160
6161         Unify tests that set gl_cv_func_frexpl_no_libm.
6162         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6163         gl_FUNC_FREXPL_NO_LIBM.
6164         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6165         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6166
6167 2010-07-12  Bruno Haible  <bruno@clisp.org>
6168
6169         Unify tests that set gl_cv_func_frexp_no_libm.
6170         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6171         gl_FUNC_FREXP_NO_LIBM.
6172         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6173         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6174
6175 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6176
6177         memcoll: clarify sizes versus lengths, document better, and tweak perf
6178         * lib/memcoll.c (strcoll_loop, memcoll0):
6179         Improve quality of descriptive comments.  Name variables
6180         consistently as to whether they are lengths (which do not include
6181         terminating null) versus sizes (which do).
6182         * lib/xmemcoll.c (xmemcoll0): Likewise.
6183         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6184         returned when s1size == 0; this is easier to compile and saves
6185         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6186
6187 2010-07-12  Bruno Haible  <bruno@clisp.org>
6188
6189         Tests for module '_Exit'.
6190         * modules/_Exit-tests: New file.
6191         * tests/test-_Exit.sh: New file.
6192         * tests/test-_Exit.c: New file.
6193
6194         New module '_Exit'.
6195         * lib/stdlib.in.h (__attribute__): New macro.
6196         (_Exit): New declaration.
6197         * lib/_Exit.c: New file.
6198         * m4/_Exit.m4: New file.
6199         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6200         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6201         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6202         * modules/_Exit: New file.
6203         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6204         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6205
6206 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6207
6208         strtod: make it more-accurate typically, and don't require libm
6209         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6210         Include limits.h.  Don't include string.h.
6211         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6212         (locale_isspace): New function, so that no casts are needed to
6213         check whether *s is a space.
6214         (ldexp): Provide an unused dummy if not available.
6215         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6216         (strtod): Use them.  This implementation prefers to use the
6217         underlying strtod if available, falling back on our own code
6218         only to fix known bugs.  This is more likely to produce an
6219         accurate result.  Also, it avoids the use of libm functions.
6220         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6221         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6222         was absent, but it caused a test failure with coreutils.
6223         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6224         with libm.
6225         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6226         * modules/strtod-tests (Makefile.am): Likewise.
6227
6228 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6229             Bruno Haible  <bruno@clisp.org>
6230
6231         unistr/u8-strchr: Optimize ASCII argument case.
6232         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6233
6234 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6235
6236         (x)memcoll: minor tweaks
6237         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6238         is after the type that it qualifies.
6239         (memcoll0): Likewise.
6240         * lib/memcoll.h (memcoll0): Likewise.
6241         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6242         * lib/xmemcoll.h (xmemcoll0): Likewise.
6243         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6244         differs from memcoll in that the NUL byte is part of the argument.
6245         Omit the abort-checks, as performance is a real issue here.  Plus,
6246         the checks were wrong anyway (an off-by-one error).  Omit local
6247         variable 'diff', as it's a bit clearer that way.
6248         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6249         no longer needed.
6250
6251 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6252
6253         (x)memcoll: speedup when input is known to be NUL delimited
6254         * lib/memcoll.c: Include stdlib.
6255         (memcoll0) New function.
6256         (strcoll_loop) New function, refactored for use in both memcoll
6257         and memcoll0.
6258         * lib/memcoll.h: Add prototype for memcoll0.
6259         * lib/xmemcoll.c: (xmemcoll0) New function.
6260         (collate_error) New function, refactored for use in both xmemcoll
6261         and xmemcoll0.
6262         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6263         * m4/memcoll.m4: add inline invocation.
6264
6265 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6266
6267         * build-aux/bootstrap: Remove any local translations
6268         from the translation project synchronization directory,
6269         so that local only translations are not distributed.
6270
6271 2010-07-04  Bruno Haible  <bruno@clisp.org>
6272
6273         fsusage: Clarify which code applies to which platforms.
6274         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6275         platform.
6276         * lib/fsusage.c (get_fs_usage): Likewise.
6277
6278 2010-07-04  Bruno Haible  <bruno@clisp.org>
6279
6280         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6281         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6282         Reported by Martin Lambers <marlam@marlam.de>.
6283
6284 2010-07-04  Jim Meyering  <meyering@redhat.com>
6285
6286         hash: once again explicitly disallow insertion of NULL
6287         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6288         inserting a NULL pointer cannot work with these functions.
6289         Add a comment with details.
6290         This reverts part of the 2010-07-01 commit, 5bef1a35
6291         "hash: extend module to deal with non-pointer keys".
6292
6293 2010-07-01  Bruno Haible  <bruno@clisp.org>
6294
6295         stdbool: Update doc.
6296         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6297         Info from Christian Weisgerber <naddy@mips.inka.de>.
6298
6299 2010-07-01  Jim Meyering  <meyering@redhat.com>
6300
6301         hash: extend module to deal with non-pointer keys
6302         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6303         but that allows insertion of non-pointer entries.
6304         Do not disallow an ENTRY value of NULL.
6305         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6306         * lib/hash.h (hash_insert0): Declare.
6307
6308 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6309
6310         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6311         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6312         not present (i.e. with autoconf 2.59 and when using gettextize, not
6313         gnulib), require AC_GNU_SOURCE instead.
6314
6315 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6316
6317         idpriv-drop: Fix tests.
6318         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6319         not to the test-idpriv-droptemp program.
6320
6321 2010-06-29  Bruno Haible  <bruno@clisp.org>
6322
6323         string: Fix syntax error with g++ 2.96.
6324         * lib/string.in.h (__pure__): Remove definition.
6325         (_GL_ATTRIBUTE_PURE): New macro.
6326         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6327         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6328         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6329
6330 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6331
6332         unitypes: Fix bug introduced on 2010-05-18.
6333         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6334
6335 2010-06-22  Eric Blake  <eblake@redhat.com>
6336
6337         memmem: slight optimization
6338         * lib/str-two-way.h (critical_factorization): Update comments.
6339         Reduce work during factorization phase.
6340         Reported by Carlos Bueno <carlos@bueno.org>.
6341
6342 2010-06-21  Bruno Haible  <bruno@clisp.org>
6343
6344         Fix HAVE_CALLOC_POSIX misnomer.
6345         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6346         !HAVE_CALLOC_POSIX.
6347         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6348         HAVE_CALLOC_POSIX.
6349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6350         instead of HAVE_CALLOC_POSIX.
6351         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6352         HAVE_CALLOC_POSIX.
6353
6354         Use modern idiom for calloc() replacement.
6355         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6356         AC_FUNC_CALLOC.
6357         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6358         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6359         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6360         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6361         (gl_REPLACE_CALLOC): New macro.
6362
6363 2010-06-21  Bruno Haible  <bruno@clisp.org>
6364
6365         Fix HAVE_REALLOC_POSIX misnomer.
6366         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6367         !HAVE_REALLOC_POSIX.
6368         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6369         HAVE_REALLOC_POSIX.
6370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6371         instead of HAVE_REALLOC_POSIX.
6372         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6373         HAVE_REALLOC_POSIX.
6374
6375         Use modern idiom for realloc() replacement.
6376         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6377         AC_FUNC_REALLOC.
6378         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6379         Autoconf's AC_FUNC_REALLOC.
6380         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6381         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6382         (gl_REPLACE_REALLOC): New macro.
6383         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6384
6385 2010-06-21  Bruno Haible  <bruno@clisp.org>
6386
6387         Fix HAVE_MALLOC_POSIX misnomer.
6388         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6389         !HAVE_MALLOC_POSIX.
6390         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6391         HAVE_MALLOC_POSIX.
6392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6393         instead of HAVE_MALLOC_POSIX.
6394         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6395         HAVE_MALLOC_POSIX.
6396
6397         Use modern idiom for malloc() replacement.
6398         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6399         AC_FUNC_MALLOC.
6400         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6401         Autoconf's AC_FUNC_MALLOC.
6402         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6403         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6404         (gl_REPLACE_MALLOC): New macro.
6405         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6406
6407 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6408
6409         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6410         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6411         This macro takes 3 arguments, not 4.
6412
6413 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6414
6415         ipv6: fix detection under mingw
6416         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6417         in6_addr.
6418
6419 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6420
6421         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6422         that strtod() works when cross-compiling to a glibc version known
6423         to work.
6424
6425 2010-06-15  Bruno Haible  <bruno@clisp.org>
6426
6427         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6428
6429 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6430
6431         select: Correct timeout.
6432         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6433
6434 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6435
6436         git-version-gen: init shell var to avoid env var influence
6437         * build-aux/git-version-gen (v): Init shell var to empty.
6438
6439 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6440
6441         priv-set: Don't assume that priv.h exists merely because getppriv does.
6442         See Jan Andersen's bug report about AIX 5L in
6443         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6444         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6445         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6446         * lib/priv-set.h: Likewise.
6447         * tests/test-priv-set.c: Likewise.
6448
6449 2010-06-13  Bruno Haible  <bruno@clisp.org>
6450
6451         relocatable: Make it easier to test whether to install wrappers.
6452         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6453         RELOCATABLE_VIA_WRAPPER.
6454
6455 2010-06-13  Bruno Haible  <bruno@clisp.org>
6456
6457         gnulib-tool: Display specified modules and dependencies differently.
6458         * gnulib-tool (func_show_module_list): New function.
6459         (func_import, func_create_testdir): Invoke it.
6460         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6461
6462 2010-06-13  Bruno Haible  <bruno@clisp.org>
6463
6464         gnulib-tool: Align code of func_import and func_create_testdir.
6465         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6466         specified_modules.
6467
6468 2010-06-12  Jim Meyering  <meyering@redhat.com>
6469
6470         test-inttostr: avoid spurious failure on Solaris 9
6471         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6472         to accept "%ju".  Reported by Bruno Haible.
6473
6474 2010-06-11  Jim Meyering  <meyering@redhat.com>
6475
6476         test-sys_socket: mark variables as used more readably
6477         * tests/test-sys_socket.c (main): Mark otherwise unused variables
6478         as "used" explicitly via (void) statement casts.  This is more
6479         readable than using them in an artificial return expression.
6480         Suggestion from Bruno Haible.
6481
6482 2010-06-11  Bruno Haible  <bruno@clisp.org>
6483
6484         Avoid some more warnings from "gcc -Wwrite-strings".
6485         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
6486         to 'const char *'.
6487         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
6488         * tests/test-c-strcasestr.c (main): Likewise.
6489         * tests/test-mbscasestr1.c (main): Likewise.
6490         * tests/test-mbscasestr2.c (main): Likewise.
6491         * tests/test-memmem.c (main): Likewise.
6492         * tests/test-strstr.c (main): Likewise.
6493         * tests/test-strcasestr.c (main): Likewise.
6494
6495 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6496
6497         init.sh: change framework_failure_ to fail with status 99, not 1
6498         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
6499         automake's parallel-tests rule that this is an unexpected failure,
6500         even if the test is listed in XFAIL_TESTS.
6501
6502 2010-06-11  Jim Meyering  <meyering@redhat.com>
6503
6504         test-inttostr: avoid warnings about 4-6KB literal strings
6505         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6506         Include "macros.h", for its definition of ASSERT.
6507         (CK): s/assert/ASSERT/
6508         * modules/inttostr-tests (Files): Add macros.h.
6509
6510         init.sh: don't use $ME_ or skip_ before they are defined
6511         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6512         their first uses.  Also hoist their companions: warn_, fail_,
6513         framework_failure_, $stderr_fileno.  Prompted by a patch from
6514         Stefano Lattarini.
6515
6516         test-sys_socket: avoid set-but-not-used warnings from gcc
6517         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6518         avoid warning about set-but-not-used variables.
6519
6520         test-xvasprintf: avoid 'const' discard warnings
6521         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6522         "const" when assigning from literal strings.
6523         (test_xasprintf): Add "void" in function argument list to placate
6524         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6525
6526         tests: avoid compilation warnings in argmatch and exclude tests...
6527         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6528         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6529         Since it always exits, declare with the "noreturn" attribute.
6530         * tests/test-argmatch.c: Likewise.
6531
6532         tests: avoid 'const' discard warnings in mbsstr tests
6533         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6534         * tests/test-mbsstr2.c (main): Likewise.
6535
6536         test-verify: avoid warning from gcc's -Wmissing-declarations
6537         * tests/test-verify.c (function): Declare to be static.
6538
6539         test-inttostr.c: include <string.h> for use of strcmp
6540         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6541
6542         test-linkat: avoid failed assertion on "other" architectures
6543         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6544         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6545         sparc: https://bugs.launchpad.net/bugs/591968
6546
6547 2010-06-11  Jim Meyering  <meyering@redhat.com>
6548
6549         printf.m4: avoid autoconf's "Expanded Before Required" warning
6550         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
6551         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
6552         autoconf warning.
6553
6554 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
6555
6556         Replacement header templates are now named with ".in", not "_".
6557         * doc/gnulib-intro.texi: Correct.
6558
6559 2010-06-10  Jim Meyering  <meyering@redhat.com>
6560
6561         inttostr-tests: depend on snprintf, not snprintf-posix
6562         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
6563         snprintf-posix, to avoid this aclocal failure:
6564           missing file gnulib-tests/vasnprintf.c
6565           configure.ac:45: error: expected source file, required through \
6566           AC_LIBSOURCES, not found
6567
6568 2010-06-10  Jim Meyering  <meyering@redhat.com>
6569
6570         inttostr: add a new function, inttostr, and tests
6571         The namesake function was not available.  The existence of the
6572         template file, inttostr.c makes its addition nontrivial.
6573         * lib/anytostr.c: Rename from inttostr.c.
6574         (anytostr): Rename from inttostr.
6575         * lib/inttostr.c: New file.
6576         * modules/inttostr (Files): Add anytostr.c.
6577         (Makefile.am): Set lib_SOURCES instead of ...
6578         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
6579         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
6580         * lib/offtostr.c: Likewise.
6581         * lib/uinttostr.c: Likewise.
6582         * lib/umaxtostr.c: Likewise.
6583         * modules/inttostr-tests: New file.
6584         * tests/test-inttostr.c: New file.  Test these functions.
6585
6586 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
6587             Bruno Haible  <bruno@clisp.org>
6588
6589         Add "Extending Gnulib" chapter to manual.
6590         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
6591         chapter.
6592         (Extending Gnulib): New chapter.
6593         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
6594         chapter.
6595
6596 2010-06-09  Bruno Haible  <bruno@clisp.org>
6597
6598         Avoid relocwrapper link errors due to gnulib replacement functions.
6599         * lib/areadlink.c: Use the system's malloc, realloc functions.
6600         (areadlink): Set errno to ENOMEM explicitly.
6601         * modules/areadlink (Depends-on): Remove malloc-posix.
6602         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6603
6604 2010-06-09  Bruno Haible  <bruno@clisp.org>
6605
6606         Avoid relocwrapper link errors due to gnulib replacement functions.
6607         * lib/canonicalize-lgpl.c: Use the system's malloc function.
6608         * lib/malloca.c: Likewise.
6609         * lib/relocatable.c: Likewise.
6610         * lib/progreloc.c: Use the system's malloc, sprintf functions.
6611         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
6612         * lib/setenv.c: Use the system's malloc, realloc functions.
6613         * lib/strerror.c: Use the system's sprintf function.
6614         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6615
6616 2010-06-04  Bruno Haible  <bruno@clisp.org>
6617
6618         Prefer documented low-level autoconf macro names.
6619         * m4/lib-link.m4: Use m4_translit instead of translit.
6620         * m4/environ.m4: Likewise.
6621         * m4/mathfunc.m4: Likewise.
6622         * m4/onceonly.m4: Likewise.
6623         * m4/stdint.m4: Likewise.
6624         Suggested by Eric Blake.
6625
6626 2010-06-04  Martin Lambers  <marlam@marlam.de>
6627             Bruno Haible  <bruno@clisp.org>
6628
6629         havelib: Allow library names with '+' characters.
6630         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6631         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
6632
6633 2010-06-09  Bruno Haible  <bruno@clisp.org>
6634
6635         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
6636         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
6637         realloc failed.
6638
6639 2010-06-08  Peter Simons  <simons@cryp.to>
6640
6641         maint.mk: make the news-check rule more configurable
6642         * top/maint.mk (news-check-lines-spec) New variable.
6643         (news-check): Use "sed -n 1,10p" in place of "head".
6644
6645 2010-06-07  Jim Meyering  <meyering@redhat.com>
6646
6647         do-release-commit-and-tag: fix typo in --help
6648         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
6649
6650         regex: avoid new dead-code warning with gcc-4.6.0
6651         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
6652         if-block containing a while-loop.  It's been unused for at least
6653         5 years.
6654
6655 2010-06-05  Bruno Haible  <bruno@clisp.org>
6656
6657         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
6658         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
6659
6660 2010-06-04  Bruno Haible  <bruno@clisp.org>
6661
6662         Update to GNU gettext 0.18.1.
6663         * modules/gettext (configure.ac): Require gettext infrastructure from
6664         version 0.18.1.
6665
6666 2010-06-03  Bruno Haible  <bruno@clisp.org>
6667
6668         Don't use AC_LIBOBJ with file names in subdirectories.
6669         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
6670         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
6671         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
6672         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
6673         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
6674         gl_LIBUNISTRING_LIBSOURCE.
6675         (Makefile.am): Augment lib_SOURCES here, conditionally.
6676         * NEWS: Drop requirement for Automake option 'subdir-objects'.
6677
6678 2010-06-03  Bruno Haible  <bruno@clisp.org>
6679
6680         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
6681         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
6682         expansion does not end with a newline.
6683         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
6684         unnecessary newline.
6685
6686 2010-06-03  Bruno Haible  <bruno@clisp.org>
6687
6688         Reduce dependencies.
6689         * tests/test-quotearg.h: New file, extracted from
6690         tests/test-quotearg.c.
6691         * tests/test-quotearg-simple.c: New file, extracted from
6692         tests/test-quotearg.c.
6693         * tests/test-quotearg.c: Don't include <ctype.h>.
6694         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
6695         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
6696         use_quote_double_quotes, use_quotearg_colon): Moved to
6697         tests/test-quotearg.h.
6698         (results_g, flag_results, custom_quotes, custom_results): Moved
6699         to tests/test-quotearg-simple.c.
6700         (main): Moved the part that does not depend on gettext to
6701         tests/test-quotearg-simple.c. Return 77 if the test cannot be
6702         performed.
6703         * modules/quotearg-simple: New file.
6704         * modules/quotearg-simple-tests: New file.
6705         * modules/quotearg (Depends-on): Add quotearg-simple.
6706         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
6707         (Files): Add tests/test-quotearg.h.
6708         Reported by Paolo Bonzini.
6709
6710 2010-06-03  Bruno Haible  <bruno@clisp.org>
6711
6712         Reduce dependencies.
6713         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
6714
6715 2010-06-03  Bruno Haible  <bruno@clisp.org>
6716
6717         time: Undefine more broken macros.
6718         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
6719         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
6720         Reported by Eric Blake.
6721
6722 2010-06-03  Bruno Haible  <bruno@clisp.org>
6723
6724         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
6725         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
6726         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
6727         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
6728         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
6729         Reported by Ludovic Courtès <ludo@gnu.org>.
6730
6731 2010-06-02  Eric Blake  <eblake@redhat.com>
6732
6733         time: work with mingw + pthreads-win32 library
6734         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
6735         if timespec is defined only in pthread.h.
6736         * modules/time (Makefile.am): Substitute it.
6737         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
6738         <pthread.h>, when needed.
6739         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
6740         from the library.
6741
6742 2010-05-31  Bruno Haible  <bruno@clisp.org>
6743
6744         Avoid expanding two macros in the wrong order.
6745         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
6746         gl_LIBUNISTRING if it is defined.
6747         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
6748         autoconf >= 2.64.
6749         Reported by Ludovic Courtès <ludo@gnu.org>.
6750
6751 2010-05-27  Jim Meyering  <meyering@redhat.com>
6752
6753         maint.mk: also prohibit "#undef" of always-defined symbols
6754         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
6755         Allow more than one space before the symbol name.
6756         (sc_prohibit_always-defined_macros): Use grep's -E, now that
6757         the regexp uses alternation.
6758
6759 2010-05-26  Eric Blake  <eblake@redhat.com>
6760
6761         maint.mk: avoid echo -e
6762         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
6763         Convert all uses of echo -* to printf.
6764         Reported by Matthias Bolte.
6765
6766 2010-05-25  Bruno Haible  <bruno@clisp.org>
6767
6768         Update to GNU gettext 0.18, part 2.
6769         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
6770         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
6771
6772 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6773
6774         Add missing include in test-pwrite.c.
6775         * tests/test-pwrite.c: Include string.h, for strcmp.
6776
6777 2010-05-24  Bruno Haible  <bruno@clisp.org>
6778
6779         * NEWS: Mention requirement for Automake option 'subdir-objects'.
6780
6781 2010-05-24  Bruno Haible  <bruno@clisp.org>
6782
6783         Don't use conversion with transliteration in u{8,16,32}_strcoll.
6784         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
6785         iconveh_error argument.
6786         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
6787         U_STRCONV_TO_LOCALE.
6788         * lib/unistr/u16-strcoll.c: Likewise.
6789         * lib/unistr/u32-strcoll.c: Likewise.
6790         * modules/unistr/u8-strcoll (Depends-on): Add
6791         uniconv/u8-strconv-to-enc, localcharset. Remove
6792         uniconv/u8-strconv-to-locale.
6793         (configure.ac): Bump version number.
6794         * modules/unistr/u16-strcoll (Depends-on): Add
6795         uniconv/u16-strconv-to-enc, localcharset. Remove
6796         uniconv/u16-strconv-to-locale.
6797         (configure.ac): Bump version number.
6798         * modules/unistr/u32-strcoll (Depends-on): Add
6799         uniconv/u32-strconv-to-enc, localcharset. Remove
6800         uniconv/u32-strconv-to-locale.
6801         (configure.ac): Bump version number.
6802
6803 2010-05-24  Bruno Haible  <bruno@clisp.org>
6804
6805         Avoid a test failure on NetBSD 5.0.
6806         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
6807         an iconv() bug.
6808
6809 2010-05-24  Bruno Haible  <bruno@clisp.org>
6810
6811         Adjust #include directive style.
6812         * modules/regex (Includes): Recommend to write <regex.h>.
6813
6814 2010-05-24  Bruno Haible  <bruno@clisp.org>
6815
6816         regex: Don't require alloca.
6817         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
6818         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
6819         only inside if (0).
6820
6821 2010-05-23  Jim Meyering  <meyering@redhat.com>
6822
6823         test-renameat.c: include <sys/stat.h>
6824         * tests/test-renameat.c: Include <sys/stat.h>; required for
6825         definition of S_IS* macros.
6826
6827 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
6828
6829         Update maintainer documentation for 'relocatable-prog' module.
6830         * doc/relocatable-maint.texi: Update.
6831         Comments by Bruno Haible.
6832
6833 2010-05-23  Bruno Haible  <bruno@clisp.org>
6834
6835         git-merge-changelog: Enable --split-merged-entry by default.
6836         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
6837         (usage): Don't mention this option any more.
6838         Reported by Ralf Wildenhues.
6839
6840 2010-05-23  Jim Meyering  <meyering@redhat.com>
6841
6842         test-pwrite: do not leave behind a test file named "out"
6843         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
6844         The trivial-looking use of init.sh is really necessary.
6845         It ensures that the temporary file, "out", is created in
6846         a temporary directory, and removed upon termination.
6847         * tests/test-pwrite.sh: Re-add file.
6848         * modules/pwrite-tests: Reference it.
6849
6850 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6851
6852         Fix output redirection buglet in init.sh.
6853         * tests/init.sh: Fix redirection of stderr.
6854
6855 2010-05-20  Simon Josefsson  <simon@josefsson.org>
6856
6857         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
6858
6859 2010-05-17  Simon Josefsson  <simon@josefsson.org>
6860
6861         * modules/valgrind-tests: New file.
6862         * m4/valgrind-tests.m4: New file.
6863         * doc/valgrind-tests.texi: New file.
6864         * doc/gnulib.texi (Running self-tests under valgrind): New
6865         section.
6866
6867 2010-05-19  Bruno Haible  <bruno@clisp.org>
6868
6869         Clean up dead code in recent commit.
6870         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
6871         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
6872         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
6873         Suggested by Paolo Bonzini.
6874
6875 2010-05-19  Bruno Haible  <bruno@clisp.org>
6876
6877         Avoid valgrind error reports from libunistring.
6878         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
6879         * modules/libunistring (Files): Add it.
6880         * modules/libunistring-optional (Files): Likewise.
6881
6882 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
6883             Bruno Haible  <bruno@clisp.org>
6884
6885         New module 'libunistring-optional'.
6886         * modules/libunistring-optional: New file.
6887         * m4/libunistring-base.m4: New file.
6888         * m4/libunistring-optional.m4: New file.
6889         * lib/unicase.in.h: Renamed from lib/unicase.h.
6890         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
6891         * lib/unictype.in.h: Renamed from lib/unictype.h.
6892         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
6893         * lib/uniname.in.h: Renamed from lib/uniname.h.
6894         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
6895         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
6896         * lib/unistr.in.h: Renamed from lib/unistr.h.
6897         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
6898         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
6899         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
6900         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
6901         gl_LIBUNISTRING. If the library was found, determine the installed
6902         version and set LIBUNISTRING_VERSION.
6903         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
6904         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
6905         handle a configuration option --with-included-libunistring.
6906         * modules/libunistring (Files): Add m4/absolute-header.m4.
6907         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
6908         Add m4/libunistring-base.m4.
6909         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6910         (Makefile.am): Build unicase.h from unicase.in.h.
6911         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
6912         Add m4/libunistring-base.m4.
6913         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6914         (Makefile.am): Build uniconv.h from uniconv.in.h.
6915         * modules/unictype/base (Files): Use unictype.in.h instead of
6916         unictype.h. Add m4/libunistring-base.m4.
6917         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6918         (Makefile.am): Build unictype.h from unictype.in.h.
6919         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
6920         Add m4/libunistring-base.m4.
6921         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6922         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
6923         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
6924         Add m4/libunistring-base.m4.
6925         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6926         (Makefile.am): Build uniname.h from uniname.in.h.
6927         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
6928         Add m4/libunistring-base.m4.
6929         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6930         (Makefile.am): Build uninorm.h from uninorm.in.h.
6931         * modules/unistdio/base (Files): Use unistdio.in.h instead of
6932         unistdio.h. Add m4/libunistring-base.m4.
6933         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6934         (Makefile.am): Build unistdio.h from unistdio.in.h.
6935         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
6936         Add m4/libunistring-base.m4.
6937         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6938         (Makefile.am): Build unistr.h from unistr.in.h.
6939         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
6940         Add m4/libunistring-base.m4.
6941         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6942         (Makefile.am): Build unitypes.h from unitypes.in.h.
6943         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
6944         Add m4/libunistring-base.m4.
6945         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6946         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
6947         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
6948         uniwidth.h. Add m4/libunistring-base.m4.
6949         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6950         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
6951         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
6952         instead of augmenting lib_SOURCES.
6953         * modules/unicase/empty-suffix-context: Likewise.
6954         * modules/unicase/locale-language: Likewise.
6955         * modules/unicase/tolower: Likewise.
6956         * modules/unicase/totitle: Likewise.
6957         * modules/unicase/toupper: Likewise.
6958         * modules/unicase/u8-casecmp: Likewise.
6959         * modules/unicase/u8-casecoll: Likewise.
6960         * modules/unicase/u8-casefold: Likewise.
6961         * modules/unicase/u8-casexfrm: Likewise.
6962         * modules/unicase/u8-ct-casefold: Likewise.
6963         * modules/unicase/u8-ct-tolower: Likewise.
6964         * modules/unicase/u8-ct-totitle: Likewise.
6965         * modules/unicase/u8-ct-toupper: Likewise.
6966         * modules/unicase/u8-is-cased: Likewise.
6967         * modules/unicase/u8-is-casefolded: Likewise.
6968         * modules/unicase/u8-is-lowercase: Likewise.
6969         * modules/unicase/u8-is-titlecase: Likewise.
6970         * modules/unicase/u8-is-uppercase: Likewise.
6971         * modules/unicase/u8-prefix-context: Likewise.
6972         * modules/unicase/u8-suffix-context: Likewise.
6973         * modules/unicase/u8-tolower: Likewise.
6974         * modules/unicase/u8-totitle: Likewise.
6975         * modules/unicase/u8-toupper: Likewise.
6976         * modules/unicase/u16-casecmp: Likewise.
6977         * modules/unicase/u16-casecoll: Likewise.
6978         * modules/unicase/u16-casefold: Likewise.
6979         * modules/unicase/u16-casexfrm: Likewise.
6980         * modules/unicase/u16-ct-casefold: Likewise.
6981         * modules/unicase/u16-ct-tolower: Likewise.
6982         * modules/unicase/u16-ct-totitle: Likewise.
6983         * modules/unicase/u16-ct-toupper: Likewise.
6984         * modules/unicase/u16-is-cased: Likewise.
6985         * modules/unicase/u16-is-casefolded: Likewise.
6986         * modules/unicase/u16-is-lowercase: Likewise.
6987         * modules/unicase/u16-is-titlecase: Likewise.
6988         * modules/unicase/u16-is-uppercase: Likewise.
6989         * modules/unicase/u16-prefix-context: Likewise.
6990         * modules/unicase/u16-suffix-context: Likewise.
6991         * modules/unicase/u16-tolower: Likewise.
6992         * modules/unicase/u16-totitle: Likewise.
6993         * modules/unicase/u16-toupper: Likewise.
6994         * modules/unicase/u32-casecmp: Likewise.
6995         * modules/unicase/u32-casecoll: Likewise.
6996         * modules/unicase/u32-casefold: Likewise.
6997         * modules/unicase/u32-casexfrm: Likewise.
6998         * modules/unicase/u32-ct-casefold: Likewise.
6999         * modules/unicase/u32-ct-tolower: Likewise.
7000         * modules/unicase/u32-ct-totitle: Likewise.
7001         * modules/unicase/u32-ct-toupper: Likewise.
7002         * modules/unicase/u32-is-cased: Likewise.
7003         * modules/unicase/u32-is-casefolded: Likewise.
7004         * modules/unicase/u32-is-lowercase: Likewise.
7005         * modules/unicase/u32-is-titlecase: Likewise.
7006         * modules/unicase/u32-is-uppercase: Likewise.
7007         * modules/unicase/u32-prefix-context: Likewise.
7008         * modules/unicase/u32-suffix-context: Likewise.
7009         * modules/unicase/u32-tolower: Likewise.
7010         * modules/unicase/u32-totitle: Likewise.
7011         * modules/unicase/u32-toupper: Likewise.
7012         * modules/unicase/ulc-casecmp: Likewise.
7013         * modules/unicase/ulc-casecoll: Likewise.
7014         * modules/unicase/ulc-casexfrm: Likewise.
7015         * modules/uniconv/u8-conv-from-enc: Likewise.
7016         * modules/uniconv/u8-conv-to-enc: Likewise.
7017         * modules/uniconv/u8-strconv-from-enc: Likewise.
7018         * modules/uniconv/u8-strconv-from-locale: Likewise.
7019         * modules/uniconv/u8-strconv-to-enc: Likewise.
7020         * modules/uniconv/u8-strconv-to-locale: Likewise.
7021         * modules/uniconv/u16-conv-from-enc: Likewise.
7022         * modules/uniconv/u16-conv-to-enc: Likewise.
7023         * modules/uniconv/u16-strconv-from-enc: Likewise.
7024         * modules/uniconv/u16-strconv-from-locale: Likewise.
7025         * modules/uniconv/u16-strconv-to-enc: Likewise.
7026         * modules/uniconv/u16-strconv-to-locale: Likewise.
7027         * modules/uniconv/u32-conv-from-enc: Likewise.
7028         * modules/uniconv/u32-conv-to-enc: Likewise.
7029         * modules/uniconv/u32-strconv-from-enc: Likewise.
7030         * modules/uniconv/u32-strconv-from-locale: Likewise.
7031         * modules/uniconv/u32-strconv-to-enc: Likewise.
7032         * modules/uniconv/u32-strconv-to-locale: Likewise.
7033         * modules/unictype/bidicategory-byname: Likewise.
7034         * modules/unictype/bidicategory-name: Likewise.
7035         * modules/unictype/bidicategory-of: Likewise.
7036         * modules/unictype/bidicategory-test: Likewise.
7037         * modules/unictype/block-list: Likewise.
7038         * modules/unictype/block-test: Likewise.
7039         * modules/unictype/category-C: Likewise.
7040         * modules/unictype/category-Cc: Likewise.
7041         * modules/unictype/category-Cf: Likewise.
7042         * modules/unictype/category-Cn: Likewise.
7043         * modules/unictype/category-Co: Likewise.
7044         * modules/unictype/category-Cs: Likewise.
7045         * modules/unictype/category-L: Likewise.
7046         * modules/unictype/category-Ll: Likewise.
7047         * modules/unictype/category-Lm: Likewise.
7048         * modules/unictype/category-Lo: Likewise.
7049         * modules/unictype/category-Lt: Likewise.
7050         * modules/unictype/category-Lu: Likewise.
7051         * modules/unictype/category-M: Likewise.
7052         * modules/unictype/category-Mc: Likewise.
7053         * modules/unictype/category-Me: Likewise.
7054         * modules/unictype/category-Mn: Likewise.
7055         * modules/unictype/category-N: Likewise.
7056         * modules/unictype/category-Nd: Likewise.
7057         * modules/unictype/category-Nl: Likewise.
7058         * modules/unictype/category-No: Likewise.
7059         * modules/unictype/category-P: Likewise.
7060         * modules/unictype/category-Pc: Likewise.
7061         * modules/unictype/category-Pd: Likewise.
7062         * modules/unictype/category-Pe: Likewise.
7063         * modules/unictype/category-Pf: Likewise.
7064         * modules/unictype/category-Pi: Likewise.
7065         * modules/unictype/category-Po: Likewise.
7066         * modules/unictype/category-Ps: Likewise.
7067         * modules/unictype/category-S: Likewise.
7068         * modules/unictype/category-Sc: Likewise.
7069         * modules/unictype/category-Sk: Likewise.
7070         * modules/unictype/category-Sm: Likewise.
7071         * modules/unictype/category-So: Likewise.
7072         * modules/unictype/category-Z: Likewise.
7073         * modules/unictype/category-Zl: Likewise.
7074         * modules/unictype/category-Zp: Likewise.
7075         * modules/unictype/category-Zs: Likewise.
7076         * modules/unictype/category-and: Likewise.
7077         * modules/unictype/category-and-not: Likewise.
7078         * modules/unictype/category-byname: Likewise.
7079         * modules/unictype/category-name: Likewise.
7080         * modules/unictype/category-none: Likewise.
7081         * modules/unictype/category-of: Likewise.
7082         * modules/unictype/category-or: Likewise.
7083         * modules/unictype/category-test: Likewise.
7084         * modules/unictype/combining-class: Likewise.
7085         * modules/unictype/ctype-alnum: Likewise.
7086         * modules/unictype/ctype-alpha: Likewise.
7087         * modules/unictype/ctype-blank: Likewise.
7088         * modules/unictype/ctype-cntrl: Likewise.
7089         * modules/unictype/ctype-digit: Likewise.
7090         * modules/unictype/ctype-graph: Likewise.
7091         * modules/unictype/ctype-lower: Likewise.
7092         * modules/unictype/ctype-print: Likewise.
7093         * modules/unictype/ctype-punct: Likewise.
7094         * modules/unictype/ctype-space: Likewise.
7095         * modules/unictype/ctype-upper: Likewise.
7096         * modules/unictype/ctype-xdigit: Likewise.
7097         * modules/unictype/decimal-digit: Likewise.
7098         * modules/unictype/digit: Likewise.
7099         * modules/unictype/mirror: Likewise.
7100         * modules/unictype/numeric: Likewise.
7101         * modules/unictype/property-alphabetic: Likewise.
7102         * modules/unictype/property-ascii-hex-digit: Likewise.
7103         * modules/unictype/property-bidi-arabic-digit: Likewise.
7104         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7105         * modules/unictype/property-bidi-block-separator: Likewise.
7106         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7107         * modules/unictype/property-bidi-common-separator: Likewise.
7108         * modules/unictype/property-bidi-control: Likewise.
7109         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7110         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7111         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7112         * modules/unictype/property-bidi-european-digit: Likewise.
7113         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7114         * modules/unictype/property-bidi-left-to-right: Likewise.
7115         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7116         * modules/unictype/property-bidi-other-neutral: Likewise.
7117         * modules/unictype/property-bidi-pdf: Likewise.
7118         * modules/unictype/property-bidi-segment-separator: Likewise.
7119         * modules/unictype/property-bidi-whitespace: Likewise.
7120         * modules/unictype/property-byname: Likewise.
7121         * modules/unictype/property-combining: Likewise.
7122         * modules/unictype/property-composite: Likewise.
7123         * modules/unictype/property-currency-symbol: Likewise.
7124         * modules/unictype/property-dash: Likewise.
7125         * modules/unictype/property-decimal-digit: Likewise.
7126         * modules/unictype/property-default-ignorable-code-point: Likewise.
7127         * modules/unictype/property-deprecated: Likewise.
7128         * modules/unictype/property-diacritic: Likewise.
7129         * modules/unictype/property-extender: Likewise.
7130         * modules/unictype/property-format-control: Likewise.
7131         * modules/unictype/property-grapheme-base: Likewise.
7132         * modules/unictype/property-grapheme-extend: Likewise.
7133         * modules/unictype/property-grapheme-link: Likewise.
7134         * modules/unictype/property-hex-digit: Likewise.
7135         * modules/unictype/property-hyphen: Likewise.
7136         * modules/unictype/property-id-continue: Likewise.
7137         * modules/unictype/property-id-start: Likewise.
7138         * modules/unictype/property-ideographic: Likewise.
7139         * modules/unictype/property-ids-binary-operator: Likewise.
7140         * modules/unictype/property-ids-trinary-operator: Likewise.
7141         * modules/unictype/property-ignorable-control: Likewise.
7142         * modules/unictype/property-iso-control: Likewise.
7143         * modules/unictype/property-join-control: Likewise.
7144         * modules/unictype/property-left-of-pair: Likewise.
7145         * modules/unictype/property-line-separator: Likewise.
7146         * modules/unictype/property-logical-order-exception: Likewise.
7147         * modules/unictype/property-lowercase: Likewise.
7148         * modules/unictype/property-math: Likewise.
7149         * modules/unictype/property-non-break: Likewise.
7150         * modules/unictype/property-not-a-character: Likewise.
7151         * modules/unictype/property-numeric: Likewise.
7152         * modules/unictype/property-other-alphabetic: Likewise.
7153         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7154         * modules/unictype/property-other-grapheme-extend: Likewise.
7155         * modules/unictype/property-other-id-continue: Likewise.
7156         * modules/unictype/property-other-id-start: Likewise.
7157         * modules/unictype/property-other-lowercase: Likewise.
7158         * modules/unictype/property-other-math: Likewise.
7159         * modules/unictype/property-other-uppercase: Likewise.
7160         * modules/unictype/property-paired-punctuation: Likewise.
7161         * modules/unictype/property-paragraph-separator: Likewise.
7162         * modules/unictype/property-pattern-syntax: Likewise.
7163         * modules/unictype/property-pattern-white-space: Likewise.
7164         * modules/unictype/property-private-use: Likewise.
7165         * modules/unictype/property-punctuation: Likewise.
7166         * modules/unictype/property-quotation-mark: Likewise.
7167         * modules/unictype/property-radical: Likewise.
7168         * modules/unictype/property-sentence-terminal: Likewise.
7169         * modules/unictype/property-soft-dotted: Likewise.
7170         * modules/unictype/property-space: Likewise.
7171         * modules/unictype/property-terminal-punctuation: Likewise.
7172         * modules/unictype/property-test: Likewise.
7173         * modules/unictype/property-titlecase: Likewise.
7174         * modules/unictype/property-unassigned-code-value: Likewise.
7175         * modules/unictype/property-unified-ideograph: Likewise.
7176         * modules/unictype/property-uppercase: Likewise.
7177         * modules/unictype/property-variation-selector: Likewise.
7178         * modules/unictype/property-white-space: Likewise.
7179         * modules/unictype/property-xid-continue: Likewise.
7180         * modules/unictype/property-xid-start: Likewise.
7181         * modules/unictype/property-zero-width: Likewise.
7182         * modules/unictype/scripts: Likewise.
7183         * modules/unictype/syntax-c-ident: Likewise.
7184         * modules/unictype/syntax-c-whitespace: Likewise.
7185         * modules/unictype/syntax-java-ident: Likewise.
7186         * modules/unictype/syntax-java-whitespace: Likewise.
7187         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7188         * modules/unilbrk/u8-width-linebreaks: Likewise.
7189         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7190         * modules/unilbrk/u16-width-linebreaks: Likewise.
7191         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7192         * modules/unilbrk/u32-width-linebreaks: Likewise.
7193         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7194         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7195         * modules/uniname/uniname: Likewise.
7196         * modules/uninorm/canonical-decomposition: Likewise.
7197         * modules/uninorm/composition: Likewise.
7198         * modules/uninorm/decomposing-form: Likewise.
7199         * modules/uninorm/decomposition: Likewise.
7200         * modules/uninorm/filter: Likewise.
7201         * modules/uninorm/nfc: Likewise.
7202         * modules/uninorm/nfd: Likewise.
7203         * modules/uninorm/nfkc: Likewise.
7204         * modules/uninorm/nfkd: Likewise.
7205         * modules/uninorm/u8-normalize: Likewise.
7206         * modules/uninorm/u8-normcmp: Likewise.
7207         * modules/uninorm/u8-normcoll: Likewise.
7208         * modules/uninorm/u8-normxfrm: Likewise.
7209         * modules/uninorm/u16-normalize: Likewise.
7210         * modules/uninorm/u16-normcmp: Likewise.
7211         * modules/uninorm/u16-normcoll: Likewise.
7212         * modules/uninorm/u16-normxfrm: Likewise.
7213         * modules/uninorm/u32-normalize: Likewise.
7214         * modules/uninorm/u32-normcmp: Likewise.
7215         * modules/uninorm/u32-normcoll: Likewise.
7216         * modules/uninorm/u32-normxfrm: Likewise.
7217         * modules/unistdio/u8-asnprintf: Likewise.
7218         * modules/unistdio/u8-asprintf: Likewise.
7219         * modules/unistdio/u8-snprintf: Likewise.
7220         * modules/unistdio/u8-sprintf: Likewise.
7221         * modules/unistdio/u8-u8-asnprintf: Likewise.
7222         * modules/unistdio/u8-u8-asprintf: Likewise.
7223         * modules/unistdio/u8-u8-snprintf: Likewise.
7224         * modules/unistdio/u8-u8-sprintf: Likewise.
7225         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7226         * modules/unistdio/u8-u8-vasprintf: Likewise.
7227         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7228         * modules/unistdio/u8-u8-vsprintf: Likewise.
7229         * modules/unistdio/u8-vasnprintf: Likewise.
7230         * modules/unistdio/u8-vasprintf: Likewise.
7231         * modules/unistdio/u8-vsnprintf: Likewise.
7232         * modules/unistdio/u8-vsprintf: Likewise.
7233         * modules/unistdio/u16-asnprintf: Likewise.
7234         * modules/unistdio/u16-asprintf: Likewise.
7235         * modules/unistdio/u16-snprintf: Likewise.
7236         * modules/unistdio/u16-sprintf: Likewise.
7237         * modules/unistdio/u16-u16-asnprintf: Likewise.
7238         * modules/unistdio/u16-u16-asprintf: Likewise.
7239         * modules/unistdio/u16-u16-snprintf: Likewise.
7240         * modules/unistdio/u16-u16-sprintf: Likewise.
7241         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7242         * modules/unistdio/u16-u16-vasprintf: Likewise.
7243         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7244         * modules/unistdio/u16-u16-vsprintf: Likewise.
7245         * modules/unistdio/u16-vasnprintf: Likewise.
7246         * modules/unistdio/u16-vasprintf: Likewise.
7247         * modules/unistdio/u16-vsnprintf: Likewise.
7248         * modules/unistdio/u16-vsprintf: Likewise.
7249         * modules/unistdio/u32-asnprintf: Likewise.
7250         * modules/unistdio/u32-asprintf: Likewise.
7251         * modules/unistdio/u32-snprintf: Likewise.
7252         * modules/unistdio/u32-sprintf: Likewise.
7253         * modules/unistdio/u32-u32-asnprintf: Likewise.
7254         * modules/unistdio/u32-u32-asprintf: Likewise.
7255         * modules/unistdio/u32-u32-snprintf: Likewise.
7256         * modules/unistdio/u32-u32-sprintf: Likewise.
7257         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7258         * modules/unistdio/u32-u32-vasprintf: Likewise.
7259         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7260         * modules/unistdio/u32-u32-vsprintf: Likewise.
7261         * modules/unistdio/u32-vasnprintf: Likewise.
7262         * modules/unistdio/u32-vasprintf: Likewise.
7263         * modules/unistdio/u32-vsnprintf: Likewise.
7264         * modules/unistdio/u32-vsprintf: Likewise.
7265         * modules/unistdio/ulc-asnprintf: Likewise.
7266         * modules/unistdio/ulc-asprintf: Likewise.
7267         * modules/unistdio/ulc-fprintf: Likewise.
7268         * modules/unistdio/ulc-snprintf: Likewise.
7269         * modules/unistdio/ulc-sprintf: Likewise.
7270         * modules/unistdio/ulc-vasnprintf: Likewise.
7271         * modules/unistdio/ulc-vasprintf: Likewise.
7272         * modules/unistdio/ulc-vfprintf: Likewise.
7273         * modules/unistdio/ulc-vsnprintf: Likewise.
7274         * modules/unistdio/ulc-vsprintf: Likewise.
7275         * modules/unistr/u8-check: Likewise.
7276         * modules/unistr/u8-chr: Likewise.
7277         * modules/unistr/u8-cmp: Likewise.
7278         * modules/unistr/u8-cmp2: Likewise.
7279         * modules/unistr/u8-cpy: Likewise.
7280         * modules/unistr/u8-cpy-alloc: Likewise.
7281         * modules/unistr/u8-endswith: Likewise.
7282         * modules/unistr/u8-mblen: Likewise.
7283         * modules/unistr/u8-mbsnlen: Likewise.
7284         * modules/unistr/u8-mbtouc: Likewise.
7285         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7286         * modules/unistr/u8-mbtoucr: Likewise.
7287         * modules/unistr/u8-move: Likewise.
7288         * modules/unistr/u8-next: Likewise.
7289         * modules/unistr/u8-prev: Likewise.
7290         * modules/unistr/u8-set: Likewise.
7291         * modules/unistr/u8-startswith: Likewise.
7292         * modules/unistr/u8-stpcpy: Likewise.
7293         * modules/unistr/u8-stpncpy: Likewise.
7294         * modules/unistr/u8-strcat: Likewise.
7295         * modules/unistr/u8-strchr: Likewise.
7296         * modules/unistr/u8-strcmp: Likewise.
7297         * modules/unistr/u8-strcoll: Likewise.
7298         * modules/unistr/u8-strcpy: Likewise.
7299         * modules/unistr/u8-strcspn: Likewise.
7300         * modules/unistr/u8-strdup: Likewise.
7301         * modules/unistr/u8-strlen: Likewise.
7302         * modules/unistr/u8-strmblen: Likewise.
7303         * modules/unistr/u8-strmbtouc: Likewise.
7304         * modules/unistr/u8-strncat: Likewise.
7305         * modules/unistr/u8-strncmp: Likewise.
7306         * modules/unistr/u8-strncpy: Likewise.
7307         * modules/unistr/u8-strnlen: Likewise.
7308         * modules/unistr/u8-strpbrk: Likewise.
7309         * modules/unistr/u8-strrchr: Likewise.
7310         * modules/unistr/u8-strspn: Likewise.
7311         * modules/unistr/u8-strstr: Likewise.
7312         * modules/unistr/u8-strtok: Likewise.
7313         * modules/unistr/u8-to-u16: Likewise.
7314         * modules/unistr/u8-to-u32: Likewise.
7315         * modules/unistr/u8-uctomb: Likewise.
7316         * modules/unistr/u16-check: Likewise.
7317         * modules/unistr/u16-chr: Likewise.
7318         * modules/unistr/u16-cmp: Likewise.
7319         * modules/unistr/u16-cmp2: Likewise.
7320         * modules/unistr/u16-cpy: Likewise.
7321         * modules/unistr/u16-cpy-alloc: Likewise.
7322         * modules/unistr/u16-endswith: Likewise.
7323         * modules/unistr/u16-mblen: Likewise.
7324         * modules/unistr/u16-mbsnlen: Likewise.
7325         * modules/unistr/u16-mbtouc: Likewise.
7326         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7327         * modules/unistr/u16-mbtoucr: Likewise.
7328         * modules/unistr/u16-move: Likewise.
7329         * modules/unistr/u16-next: Likewise.
7330         * modules/unistr/u16-prev: Likewise.
7331         * modules/unistr/u16-set: Likewise.
7332         * modules/unistr/u16-startswith: Likewise.
7333         * modules/unistr/u16-stpcpy: Likewise.
7334         * modules/unistr/u16-stpncpy: Likewise.
7335         * modules/unistr/u16-strcat: Likewise.
7336         * modules/unistr/u16-strchr: Likewise.
7337         * modules/unistr/u16-strcmp: Likewise.
7338         * modules/unistr/u16-strcoll: Likewise.
7339         * modules/unistr/u16-strcpy: Likewise.
7340         * modules/unistr/u16-strcspn: Likewise.
7341         * modules/unistr/u16-strdup: Likewise.
7342         * modules/unistr/u16-strlen: Likewise.
7343         * modules/unistr/u16-strmblen: Likewise.
7344         * modules/unistr/u16-strmbtouc: Likewise.
7345         * modules/unistr/u16-strncat: Likewise.
7346         * modules/unistr/u16-strncmp: Likewise.
7347         * modules/unistr/u16-strncpy: Likewise.
7348         * modules/unistr/u16-strnlen: Likewise.
7349         * modules/unistr/u16-strpbrk: Likewise.
7350         * modules/unistr/u16-strrchr: Likewise.
7351         * modules/unistr/u16-strspn: Likewise.
7352         * modules/unistr/u16-strstr: Likewise.
7353         * modules/unistr/u16-strtok: Likewise.
7354         * modules/unistr/u16-to-u32: Likewise.
7355         * modules/unistr/u16-to-u8: Likewise.
7356         * modules/unistr/u16-uctomb: Likewise.
7357         * modules/unistr/u32-check: Likewise.
7358         * modules/unistr/u32-chr: Likewise.
7359         * modules/unistr/u32-cmp: Likewise.
7360         * modules/unistr/u32-cmp2: Likewise.
7361         * modules/unistr/u32-cpy: Likewise.
7362         * modules/unistr/u32-cpy-alloc: Likewise.
7363         * modules/unistr/u32-endswith: Likewise.
7364         * modules/unistr/u32-mblen: Likewise.
7365         * modules/unistr/u32-mbsnlen: Likewise.
7366         * modules/unistr/u32-mbtouc: Likewise.
7367         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7368         * modules/unistr/u32-mbtoucr: Likewise.
7369         * modules/unistr/u32-move: Likewise.
7370         * modules/unistr/u32-next: Likewise.
7371         * modules/unistr/u32-prev: Likewise.
7372         * modules/unistr/u32-set: Likewise.
7373         * modules/unistr/u32-startswith: Likewise.
7374         * modules/unistr/u32-stpcpy: Likewise.
7375         * modules/unistr/u32-stpncpy: Likewise.
7376         * modules/unistr/u32-strcat: Likewise.
7377         * modules/unistr/u32-strchr: Likewise.
7378         * modules/unistr/u32-strcmp: Likewise.
7379         * modules/unistr/u32-strcoll: Likewise.
7380         * modules/unistr/u32-strcpy: Likewise.
7381         * modules/unistr/u32-strcspn: Likewise.
7382         * modules/unistr/u32-strdup: Likewise.
7383         * modules/unistr/u32-strlen: Likewise.
7384         * modules/unistr/u32-strmblen: Likewise.
7385         * modules/unistr/u32-strmbtouc: Likewise.
7386         * modules/unistr/u32-strncat: Likewise.
7387         * modules/unistr/u32-strncmp: Likewise.
7388         * modules/unistr/u32-strncpy: Likewise.
7389         * modules/unistr/u32-strnlen: Likewise.
7390         * modules/unistr/u32-strpbrk: Likewise.
7391         * modules/unistr/u32-strrchr: Likewise.
7392         * modules/unistr/u32-strspn: Likewise.
7393         * modules/unistr/u32-strstr: Likewise.
7394         * modules/unistr/u32-strtok: Likewise.
7395         * modules/unistr/u32-to-u16: Likewise.
7396         * modules/unistr/u32-to-u8: Likewise.
7397         * modules/unistr/u32-uctomb: Likewise.
7398         * modules/uniwbrk/u8-wordbreaks: Likewise.
7399         * modules/uniwbrk/u16-wordbreaks: Likewise.
7400         * modules/uniwbrk/u32-wordbreaks: Likewise.
7401         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7402         * modules/uniwbrk/wordbreak-property: Likewise.
7403         * modules/uniwidth/u8-strwidth: Likewise.
7404         * modules/uniwidth/u8-width: Likewise.
7405         * modules/uniwidth/u16-strwidth: Likewise.
7406         * modules/uniwidth/u16-width: Likewise.
7407         * modules/uniwidth/u32-strwidth: Likewise.
7408         * modules/uniwidth/u32-width: Likewise.
7409         * modules/uniwidth/width: Likewise.
7410         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7411         with $(LIBUNISTRING).
7412         * modules/unicase/ignorable-tests: Likewise.
7413         * modules/unicase/locale-language-tests: Likewise.
7414         * modules/unicase/tolower-tests: Likewise.
7415         * modules/unicase/totitle-tests: Likewise.
7416         * modules/unicase/toupper-tests: Likewise.
7417         * modules/unicase/u8-casecmp-tests: Likewise.
7418         * modules/unicase/u8-casecoll-tests: Likewise.
7419         * modules/unicase/u8-casefold-tests: Likewise.
7420         * modules/unicase/u8-is-cased-tests: Likewise.
7421         * modules/unicase/u8-is-casefolded-tests: Likewise.
7422         * modules/unicase/u8-is-lowercase-tests: Likewise.
7423         * modules/unicase/u8-is-titlecase-tests: Likewise.
7424         * modules/unicase/u8-is-uppercase-tests: Likewise.
7425         * modules/unicase/u8-tolower-tests: Likewise.
7426         * modules/unicase/u8-totitle-tests: Likewise.
7427         * modules/unicase/u8-toupper-tests: Likewise.
7428         * modules/unicase/u16-casecmp-tests: Likewise.
7429         * modules/unicase/u16-casecoll-tests: Likewise.
7430         * modules/unicase/u16-casefold-tests: Likewise.
7431         * modules/unicase/u16-is-cased-tests: Likewise.
7432         * modules/unicase/u16-is-casefolded-tests: Likewise.
7433         * modules/unicase/u16-is-lowercase-tests: Likewise.
7434         * modules/unicase/u16-is-titlecase-tests: Likewise.
7435         * modules/unicase/u16-is-uppercase-tests: Likewise.
7436         * modules/unicase/u16-tolower-tests: Likewise.
7437         * modules/unicase/u16-totitle-tests: Likewise.
7438         * modules/unicase/u16-toupper-tests: Likewise.
7439         * modules/unicase/u32-casecmp-tests: Likewise.
7440         * modules/unicase/u32-casecoll-tests: Likewise.
7441         * modules/unicase/u32-casefold-tests: Likewise.
7442         * modules/unicase/u32-is-cased-tests: Likewise.
7443         * modules/unicase/u32-is-casefolded-tests: Likewise.
7444         * modules/unicase/u32-is-lowercase-tests: Likewise.
7445         * modules/unicase/u32-is-titlecase-tests: Likewise.
7446         * modules/unicase/u32-is-uppercase-tests: Likewise.
7447         * modules/unicase/u32-tolower-tests: Likewise.
7448         * modules/unicase/u32-totitle-tests: Likewise.
7449         * modules/unicase/u32-toupper-tests: Likewise.
7450         * modules/unicase/ulc-casecmp-tests: Likewise.
7451         * modules/unicase/ulc-casecoll-tests: Likewise.
7452         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7453         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7454         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7455         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7456         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7457         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7458         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7459         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7460         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7461         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7462         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7463         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7464         * modules/unictype/bidicategory-byname-tests: Likewise.
7465         * modules/unictype/bidicategory-name-tests: Likewise.
7466         * modules/unictype/bidicategory-of-tests: Likewise.
7467         * modules/unictype/bidicategory-test-tests: Likewise.
7468         * modules/unictype/block-list-tests: Likewise.
7469         * modules/unictype/block-of-tests: Likewise.
7470         * modules/unictype/block-test-tests: Likewise.
7471         * modules/unictype/category-C-tests: Likewise.
7472         * modules/unictype/category-Cc-tests: Likewise.
7473         * modules/unictype/category-Cf-tests: Likewise.
7474         * modules/unictype/category-Cn-tests: Likewise.
7475         * modules/unictype/category-Co-tests: Likewise.
7476         * modules/unictype/category-Cs-tests: Likewise.
7477         * modules/unictype/category-L-tests: Likewise.
7478         * modules/unictype/category-Ll-tests: Likewise.
7479         * modules/unictype/category-Lm-tests: Likewise.
7480         * modules/unictype/category-Lo-tests: Likewise.
7481         * modules/unictype/category-Lt-tests: Likewise.
7482         * modules/unictype/category-Lu-tests: Likewise.
7483         * modules/unictype/category-M-tests: Likewise.
7484         * modules/unictype/category-Mc-tests: Likewise.
7485         * modules/unictype/category-Me-tests: Likewise.
7486         * modules/unictype/category-Mn-tests: Likewise.
7487         * modules/unictype/category-N-tests: Likewise.
7488         * modules/unictype/category-Nd-tests: Likewise.
7489         * modules/unictype/category-Nl-tests: Likewise.
7490         * modules/unictype/category-No-tests: Likewise.
7491         * modules/unictype/category-P-tests: Likewise.
7492         * modules/unictype/category-Pc-tests: Likewise.
7493         * modules/unictype/category-Pd-tests: Likewise.
7494         * modules/unictype/category-Pe-tests: Likewise.
7495         * modules/unictype/category-Pf-tests: Likewise.
7496         * modules/unictype/category-Pi-tests: Likewise.
7497         * modules/unictype/category-Po-tests: Likewise.
7498         * modules/unictype/category-Ps-tests: Likewise.
7499         * modules/unictype/category-S-tests: Likewise.
7500         * modules/unictype/category-Sc-tests: Likewise.
7501         * modules/unictype/category-Sk-tests: Likewise.
7502         * modules/unictype/category-Sm-tests: Likewise.
7503         * modules/unictype/category-So-tests: Likewise.
7504         * modules/unictype/category-Z-tests: Likewise.
7505         * modules/unictype/category-Zl-tests: Likewise.
7506         * modules/unictype/category-Zp-tests: Likewise.
7507         * modules/unictype/category-Zs-tests: Likewise.
7508         * modules/unictype/category-and-not-tests: Likewise.
7509         * modules/unictype/category-and-tests: Likewise.
7510         * modules/unictype/category-byname-tests: Likewise.
7511         * modules/unictype/category-name-tests: Likewise.
7512         * modules/unictype/category-none-tests: Likewise.
7513         * modules/unictype/category-of-tests: Likewise.
7514         * modules/unictype/category-or-tests: Likewise.
7515         * modules/unictype/category-test-withtable-tests: Likewise.
7516         * modules/unictype/combining-class-tests: Likewise.
7517         * modules/unictype/ctype-alnum-tests: Likewise.
7518         * modules/unictype/ctype-alpha-tests: Likewise.
7519         * modules/unictype/ctype-blank-tests: Likewise.
7520         * modules/unictype/ctype-cntrl-tests: Likewise.
7521         * modules/unictype/ctype-digit-tests: Likewise.
7522         * modules/unictype/ctype-graph-tests: Likewise.
7523         * modules/unictype/ctype-lower-tests: Likewise.
7524         * modules/unictype/ctype-print-tests: Likewise.
7525         * modules/unictype/ctype-punct-tests: Likewise.
7526         * modules/unictype/ctype-space-tests: Likewise.
7527         * modules/unictype/ctype-upper-tests: Likewise.
7528         * modules/unictype/ctype-xdigit-tests: Likewise.
7529         * modules/unictype/decimal-digit-tests: Likewise.
7530         * modules/unictype/digit-tests: Likewise.
7531         * modules/unictype/mirror-tests: Likewise.
7532         * modules/unictype/numeric-tests: Likewise.
7533         * modules/unictype/property-alphabetic-tests: Likewise.
7534         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7535         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7536         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7537         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7538         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7539         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7540         * modules/unictype/property-bidi-control-tests: Likewise.
7541         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7542         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7543         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7544         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7545         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7546         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7547         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7548         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7549         * modules/unictype/property-bidi-pdf-tests: Likewise.
7550         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
7551         * modules/unictype/property-bidi-whitespace-tests: Likewise.
7552         * modules/unictype/property-byname-tests: Likewise.
7553         * modules/unictype/property-combining-tests: Likewise.
7554         * modules/unictype/property-composite-tests: Likewise.
7555         * modules/unictype/property-currency-symbol-tests: Likewise.
7556         * modules/unictype/property-dash-tests: Likewise.
7557         * modules/unictype/property-decimal-digit-tests: Likewise.
7558         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
7559         * modules/unictype/property-deprecated-tests: Likewise.
7560         * modules/unictype/property-diacritic-tests: Likewise.
7561         * modules/unictype/property-extender-tests: Likewise.
7562         * modules/unictype/property-format-control-tests: Likewise.
7563         * modules/unictype/property-grapheme-base-tests: Likewise.
7564         * modules/unictype/property-grapheme-extend-tests: Likewise.
7565         * modules/unictype/property-grapheme-link-tests: Likewise.
7566         * modules/unictype/property-hex-digit-tests: Likewise.
7567         * modules/unictype/property-hyphen-tests: Likewise.
7568         * modules/unictype/property-id-continue-tests: Likewise.
7569         * modules/unictype/property-id-start-tests: Likewise.
7570         * modules/unictype/property-ideographic-tests: Likewise.
7571         * modules/unictype/property-ids-binary-operator-tests: Likewise.
7572         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
7573         * modules/unictype/property-ignorable-control-tests: Likewise.
7574         * modules/unictype/property-iso-control-tests: Likewise.
7575         * modules/unictype/property-join-control-tests: Likewise.
7576         * modules/unictype/property-left-of-pair-tests: Likewise.
7577         * modules/unictype/property-line-separator-tests: Likewise.
7578         * modules/unictype/property-logical-order-exception-tests: Likewise.
7579         * modules/unictype/property-lowercase-tests: Likewise.
7580         * modules/unictype/property-math-tests: Likewise.
7581         * modules/unictype/property-non-break-tests: Likewise.
7582         * modules/unictype/property-not-a-character-tests: Likewise.
7583         * modules/unictype/property-numeric-tests: Likewise.
7584         * modules/unictype/property-other-alphabetic-tests: Likewise.
7585         * modules/unictype/property-other-default-ignorable-code-point-tests:
7586         Likewise.
7587         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
7588         * modules/unictype/property-other-id-continue-tests: Likewise.
7589         * modules/unictype/property-other-id-start-tests: Likewise.
7590         * modules/unictype/property-other-lowercase-tests: Likewise.
7591         * modules/unictype/property-other-math-tests: Likewise.
7592         * modules/unictype/property-other-uppercase-tests: Likewise.
7593         * modules/unictype/property-paired-punctuation-tests: Likewise.
7594         * modules/unictype/property-paragraph-separator-tests: Likewise.
7595         * modules/unictype/property-pattern-syntax-tests: Likewise.
7596         * modules/unictype/property-pattern-white-space-tests: Likewise.
7597         * modules/unictype/property-private-use-tests: Likewise.
7598         * modules/unictype/property-punctuation-tests: Likewise.
7599         * modules/unictype/property-quotation-mark-tests: Likewise.
7600         * modules/unictype/property-radical-tests: Likewise.
7601         * modules/unictype/property-sentence-terminal-tests: Likewise.
7602         * modules/unictype/property-soft-dotted-tests: Likewise.
7603         * modules/unictype/property-space-tests: Likewise.
7604         * modules/unictype/property-terminal-punctuation-tests: Likewise.
7605         * modules/unictype/property-test-tests: Likewise.
7606         * modules/unictype/property-titlecase-tests: Likewise.
7607         * modules/unictype/property-unassigned-code-value-tests: Likewise.
7608         * modules/unictype/property-unified-ideograph-tests: Likewise.
7609         * modules/unictype/property-uppercase-tests: Likewise.
7610         * modules/unictype/property-variation-selector-tests: Likewise.
7611         * modules/unictype/property-white-space-tests: Likewise.
7612         * modules/unictype/property-xid-continue-tests: Likewise.
7613         * modules/unictype/property-xid-start-tests: Likewise.
7614         * modules/unictype/property-zero-width-tests: Likewise.
7615         * modules/unictype/scripts-tests: Likewise.
7616         * modules/unictype/syntax-c-ident-tests: Likewise.
7617         * modules/unictype/syntax-c-whitespace-tests: Likewise.
7618         * modules/unictype/syntax-java-ident-tests: Likewise.
7619         * modules/unictype/syntax-java-whitespace-tests: Likewise.
7620         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
7621         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
7622         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
7623         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
7624         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
7625         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
7626         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
7627         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
7628         * modules/uniname/uniname-tests: Likewise.
7629         * modules/uninorm/canonical-decomposition-tests: Likewise.
7630         * modules/uninorm/compat-decomposition-tests: Likewise.
7631         * modules/uninorm/composition-tests: Likewise.
7632         * modules/uninorm/decomposing-form-tests: Likewise.
7633         * modules/uninorm/decomposition-tests: Likewise.
7634         * modules/uninorm/filter-tests: Likewise.
7635         * modules/uninorm/nfc-tests: Likewise.
7636         * modules/uninorm/nfd-tests: Likewise.
7637         * modules/uninorm/nfkc-tests: Likewise.
7638         * modules/uninorm/nfkd-tests: Likewise.
7639         * modules/uninorm/u8-normcmp-tests: Likewise.
7640         * modules/uninorm/u8-normcoll-tests: Likewise.
7641         * modules/uninorm/u16-normcmp-tests: Likewise.
7642         * modules/uninorm/u16-normcoll-tests: Likewise.
7643         * modules/uninorm/u32-normcmp-tests: Likewise.
7644         * modules/uninorm/u32-normcoll-tests: Likewise.
7645         * modules/unistdio/u8-asnprintf-tests: Likewise.
7646         * modules/unistdio/u8-vasnprintf-tests: Likewise.
7647         * modules/unistdio/u8-vasprintf-tests: Likewise.
7648         * modules/unistdio/u8-vsnprintf-tests: Likewise.
7649         * modules/unistdio/u8-vsprintf-tests: Likewise.
7650         * modules/unistdio/u16-asnprintf-tests: Likewise.
7651         * modules/unistdio/u16-vasnprintf-tests: Likewise.
7652         * modules/unistdio/u16-vasprintf-tests: Likewise.
7653         * modules/unistdio/u16-vsnprintf-tests: Likewise.
7654         * modules/unistdio/u16-vsprintf-tests: Likewise.
7655         * modules/unistdio/u32-asnprintf-tests: Likewise.
7656         * modules/unistdio/u32-vasnprintf-tests: Likewise.
7657         * modules/unistdio/u32-vasprintf-tests: Likewise.
7658         * modules/unistdio/u32-vsnprintf-tests: Likewise.
7659         * modules/unistdio/u32-vsprintf-tests: Likewise.
7660         * modules/unistdio/ulc-asnprintf-tests: Likewise.
7661         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
7662         * modules/unistdio/ulc-vasprintf-tests: Likewise.
7663         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
7664         * modules/unistdio/ulc-vsprintf-tests: Likewise.
7665         * modules/unistr/u8-check-tests: Likewise.
7666         * modules/unistr/u8-chr-tests: Likewise.
7667         * modules/unistr/u8-cmp-tests: Likewise.
7668         * modules/unistr/u8-cmp2-tests: Likewise.
7669         * modules/unistr/u8-cpy-alloc-tests: Likewise.
7670         * modules/unistr/u8-cpy-tests: Likewise.
7671         * modules/unistr/u8-mblen-tests: Likewise.
7672         * modules/unistr/u8-mbsnlen-tests: Likewise.
7673         * modules/unistr/u8-mbtouc-tests: Likewise.
7674         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
7675         * modules/unistr/u8-mbtoucr-tests: Likewise.
7676         * modules/unistr/u8-move-tests: Likewise.
7677         * modules/unistr/u8-next-tests: Likewise.
7678         * modules/unistr/u8-prev-tests: Likewise.
7679         * modules/unistr/u8-set-tests: Likewise.
7680         * modules/unistr/u8-stpcpy-tests: Likewise.
7681         * modules/unistr/u8-stpncpy-tests: Likewise.
7682         * modules/unistr/u8-strcat-tests: Likewise.
7683         * modules/unistr/u8-strcmp-tests: Likewise.
7684         * modules/unistr/u8-strcoll-tests: Likewise.
7685         * modules/unistr/u8-strcpy-tests: Likewise.
7686         * modules/unistr/u8-strdup-tests: Likewise.
7687         * modules/unistr/u8-strlen-tests: Likewise.
7688         * modules/unistr/u8-strmblen-tests: Likewise.
7689         * modules/unistr/u8-strmbtouc-tests: Likewise.
7690         * modules/unistr/u8-strncat-tests: Likewise.
7691         * modules/unistr/u8-strncmp-tests: Likewise.
7692         * modules/unistr/u8-strncpy-tests: Likewise.
7693         * modules/unistr/u8-strnlen-tests: Likewise.
7694         * modules/unistr/u8-to-u16-tests: Likewise.
7695         * modules/unistr/u8-to-u32-tests: Likewise.
7696         * modules/unistr/u8-uctomb-tests: Likewise.
7697         * modules/unistr/u16-check-tests: Likewise.
7698         * modules/unistr/u16-chr-tests: Likewise.
7699         * modules/unistr/u16-cmp-tests: Likewise.
7700         * modules/unistr/u16-cmp2-tests: Likewise.
7701         * modules/unistr/u16-cpy-alloc-tests: Likewise.
7702         * modules/unistr/u16-cpy-tests: Likewise.
7703         * modules/unistr/u16-mblen-tests: Likewise.
7704         * modules/unistr/u16-mbsnlen-tests: Likewise.
7705         * modules/unistr/u16-mbtouc-tests: Likewise.
7706         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
7707         * modules/unistr/u16-mbtoucr-tests: Likewise.
7708         * modules/unistr/u16-move-tests: Likewise.
7709         * modules/unistr/u16-next-tests: Likewise.
7710         * modules/unistr/u16-prev-tests: Likewise.
7711         * modules/unistr/u16-set-tests: Likewise.
7712         * modules/unistr/u16-stpcpy-tests: Likewise.
7713         * modules/unistr/u16-stpncpy-tests: Likewise.
7714         * modules/unistr/u16-strcat-tests: Likewise.
7715         * modules/unistr/u16-strcmp-tests: Likewise.
7716         * modules/unistr/u16-strcoll-tests: Likewise.
7717         * modules/unistr/u16-strcpy-tests: Likewise.
7718         * modules/unistr/u16-strdup-tests: Likewise.
7719         * modules/unistr/u16-strlen-tests: Likewise.
7720         * modules/unistr/u16-strmblen-tests: Likewise.
7721         * modules/unistr/u16-strmbtouc-tests: Likewise.
7722         * modules/unistr/u16-strncat-tests: Likewise.
7723         * modules/unistr/u16-strncmp-tests: Likewise.
7724         * modules/unistr/u16-strncpy-tests: Likewise.
7725         * modules/unistr/u16-strnlen-tests: Likewise.
7726         * modules/unistr/u16-to-u32-tests: Likewise.
7727         * modules/unistr/u16-to-u8-tests: Likewise.
7728         * modules/unistr/u16-uctomb-tests: Likewise.
7729         * modules/unistr/u32-check-tests: Likewise.
7730         * modules/unistr/u32-chr-tests: Likewise.
7731         * modules/unistr/u32-cmp-tests: Likewise.
7732         * modules/unistr/u32-cmp2-tests: Likewise.
7733         * modules/unistr/u32-cpy-alloc-tests: Likewise.
7734         * modules/unistr/u32-cpy-tests: Likewise.
7735         * modules/unistr/u32-mblen-tests: Likewise.
7736         * modules/unistr/u32-mbsnlen-tests: Likewise.
7737         * modules/unistr/u32-mbtouc-tests: Likewise.
7738         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
7739         * modules/unistr/u32-mbtoucr-tests: Likewise.
7740         * modules/unistr/u32-move-tests: Likewise.
7741         * modules/unistr/u32-next-tests: Likewise.
7742         * modules/unistr/u32-prev-tests: Likewise.
7743         * modules/unistr/u32-set-tests: Likewise.
7744         * modules/unistr/u32-stpcpy-tests: Likewise.
7745         * modules/unistr/u32-stpncpy-tests: Likewise.
7746         * modules/unistr/u32-strcat-tests: Likewise.
7747         * modules/unistr/u32-strcmp-tests: Likewise.
7748         * modules/unistr/u32-strcoll-tests: Likewise.
7749         * modules/unistr/u32-strcpy-tests: Likewise.
7750         * modules/unistr/u32-strdup-tests: Likewise.
7751         * modules/unistr/u32-strlen-tests: Likewise.
7752         * modules/unistr/u32-strmblen-tests: Likewise.
7753         * modules/unistr/u32-strmbtouc-tests: Likewise.
7754         * modules/unistr/u32-strncat-tests: Likewise.
7755         * modules/unistr/u32-strncmp-tests: Likewise.
7756         * modules/unistr/u32-strncpy-tests: Likewise.
7757         * modules/unistr/u32-strnlen-tests: Likewise.
7758         * modules/unistr/u32-to-u16-tests: Likewise.
7759         * modules/unistr/u32-to-u8-tests: Likewise.
7760         * modules/unistr/u32-uctomb-tests: Likewise.
7761         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
7762         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
7763         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
7764         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
7765         * modules/uniwidth/u8-strwidth-tests: Likewise.
7766         * modules/uniwidth/u8-width-tests: Likewise.
7767         * modules/uniwidth/u16-strwidth-tests: Likewise.
7768         * modules/uniwidth/u16-width-tests: Likewise.
7769         * modules/uniwidth/u32-strwidth-tests: Likewise.
7770         * modules/uniwidth/u32-width-tests: Likewise.
7771         * modules/uniwidth/width-tests: Likewise.
7772
7773 2010-05-18  Richard Jones  <rjones@redhat.com>
7774
7775         doc: users.txt: list hivex
7776         * users.txt: Add hivex.
7777
7778 2010-05-18  Richard Jones  <rjones@redhat.com>
7779
7780         doc: users.txt: list febootstrap
7781         * users.txt: Add febootstrap.
7782
7783 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
7784
7785         bootstrap: fix an error when gnulib is not used as a git submodule
7786         * build-aux/bootstrap (gnulib_path): If its length is zero then
7787         assign "gnulib" to it.
7788         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
7789
7790 2010-05-16  Bruno Haible  <bruno@clisp.org>
7791
7792         Avoid autoconf warnings about AM_ICONV.
7793         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
7794         2.64.
7795
7796 2010-05-16  Bruno Haible  <bruno@clisp.org>
7797
7798         absolute-header: Make the macro usable in more situations.
7799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
7800         from gl_ABSOLUTE_HEADER.
7801         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
7802
7803 2010-05-16  James Youngman  <jay@gnu.org>
7804
7805         doc: update users.txt
7806         * users.txt: Add CSSC.
7807
7808 2010-05-16  Jim Meyering  <meyering@redhat.com>
7809
7810         init.sh: fix an error in the previous change; add more comments
7811         * tests/init.sh: Compare exit code in loop against 9, not 2.
7812         Patch by Bruno Haible.
7813         Make the two tests more similar by adding an empty "then" clause.
7814         Add comments.
7815
7816         init.sh: avoid unnecessary shell re-exec
7817         * tests/init.sh: Improve the re-exec-required check to first test the
7818         current shell.  If it passes the test, do not search for a shell that
7819         does pass, and do not re-exec.  This test is particularly contorted to
7820         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
7821         of $(...) evokes a syntax error and causes immediate shell exit with
7822         status 2.  Bruno Haible reported that the re-exec made it impossible
7823         to single-step through any init.sh-using script.
7824
7825 2010-05-16  Bruno Haible  <bruno@clisp.org>
7826
7827         Fix collision between gnulib's and libintl's printf replacements.
7828         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
7829         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
7830         (printf): When using GNU C, map the __printf__ function to rpl_printf
7831         via __asm__. When not using GNU C, define rpl_printf instead of
7832         __printf__.
7833         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
7834         commit.
7835         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
7836         commit.
7837         * m4/asm-underscore.m4: New file.
7838         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
7839         * modules/stdio (Files): Add m4/asm-underscore.m4.
7840         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
7841         Reported by Ben Pfaff.
7842
7843 2010-05-16  Bruno Haible  <bruno@clisp.org>
7844
7845         verify: Avoid skipping the test on openSUSE 11.0.
7846         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
7847
7848 2010-05-13  Bruno Haible  <bruno@clisp.org>
7849
7850         Avoid useless warnings from G++.
7851         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
7852         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
7853         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7854
7855 2010-05-11  Jim Meyering  <meyering@redhat.com>
7856
7857         maint.mk: tweak preceding change
7858         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
7859         regexps tighter by anchoring at EOL, and make the new group "shy"
7860         for slightly decreased overhead.
7861
7862 2010-05-11  Eric Blake  <eblake@redhat.com>
7863
7864         maint.mk: gnulib doesn't guarantee NSIG
7865         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
7866
7867 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7868
7869         test-pwrite.c: Remove unused variable declaration.
7870         * tests/test-pwrite.c (main): Remove read_buf declaration.
7871
7872         Remove useless test-pwrite.sh file.
7873         * tests/test-pwrite.sh: Delete file.
7874         * modules/pwrite-tests: Remove references.
7875         Reported by Bruno Haible.
7876
7877 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7878
7879         init.sh: fix a typo
7880         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
7881
7882 2010-05-10  Jim Meyering  <meyering@redhat.com>
7883
7884         maint.mk: avoid using a temporary file in the always-defined-macros check
7885         * top/maint.mk (.re-defmac): Remove rule.
7886         (gl_trap_): Remove definition.
7887         (sc_prohibit_always-defined_macros): Rewrite not to create and
7888         depend on a temporary file.  Instead, depend on GNU grep's ability
7889         to read a list of regular expressions from stdin when given "-f -".
7890
7891 2010-05-09  Bruno Haible  <bruno@clisp.org>
7892
7893         Update to GNU gettext 0.18, part 1.
7894         * m4/gettext.m4: Update to GNU gettext 0.18.
7895         * m4/intl.m4: Likewise.
7896         * m4/po.m4: Likewise.
7897         * modules/gettext (Files): Add m4/fcntl-o.m4.
7898         (configure.ac): Require gettext infrastructure from version 0.18.
7899
7900 2010-05-09  Jim Meyering  <meyering@redhat.com>
7901
7902         init.sh: enable MALLOC_PERTURB_
7903         * tests/init.sh: Enable glibc's malloc-perturbing option.
7904
7905         maint.mk: improve sc_cross_check_PATH_usage_in_tests
7906         With my recent change in init.sh from the two-line form:
7907             -#   : ${srcdir=.}
7908             -#   . "$srcdir/init.sh"; path_prepend_ .
7909             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
7910         I noticed that using the one-line form would cause this test
7911         to fail with a false-positive, or to stop working altogether,
7912         depending on whether help-version changed or all the tests did.
7913         * top/maint.mk (_hv_regex): Remove this definition.
7914         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
7915         (_hv_regex_strong): Use a stronger regex to check for conformance.
7916         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
7917         Give a separate diagnostic for lack of conforming use.
7918
7919         maint.mk: prohibit definition of symbols defined by gnulib
7920         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
7921         definition of symbols defined by gnulib.
7922
7923 2010-05-09  Bruno Haible  <bruno@clisp.org>
7924
7925         acl: Avoid test failure on Cygwin-hosted mingw.
7926         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
7927
7928 2010-05-09  Bruno Haible  <bruno@clisp.org>
7929
7930         error: Use system's fcntl function.
7931         * lib/error.c (fcntl): Undefine.
7932
7933 2010-05-09  Jim Meyering  <meyering@redhat.com>
7934
7935         verify: adjust formatting to be more consistent
7936         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
7937         argument-list '('s, and after one comma.
7938
7939 2010-05-09  Bruno Haible  <bruno@clisp.org>
7940
7941         error: More reliable output on mingw.
7942         * lib/error.c: Include <windows.h>.
7943         (is_open): New function.
7944         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
7945         defined.
7946
7947 2010-05-09  Bruno Haible  <bruno@clisp.org>
7948
7949         vasnprintf: Fix syntax errors in libintl build on mingw.
7950         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
7951         pad_ourselves and prec_ourselves after use.
7952
7953 2010-05-08  Bruno Haible  <bruno@clisp.org>
7954
7955         * lib/config.charset: Update comments for Cygwin 1.7.
7956         * lib/localcharset.c: Likewise.
7957
7958 2010-05-07  Jim Meyering  <meyering@redhat.com>
7959
7960         init.sh: improve comments
7961         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
7962         . "${srcdir=.}/init.sh"; path_prepend_ .
7963         Add a note about path_prepend_ and the alternative of using
7964         TESTS_ENVIRONMENT.
7965
7966 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7967
7968         exclude: Unescape hashed patterns in wildcard mode.
7969         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
7970         to the hash list.
7971         * tests/test-exclude8.sh: New test case.
7972         * modules/exclude-tests: Add new test.
7973
7974 2010-05-05  Eric Blake  <eblake@redhat.com>
7975
7976         verify: automate tests
7977         * modules/verify-tests: New module.
7978         * tests/test-verify.sh: New file.
7979         * tests/test-verify.c: Guard each negative test with a unique id.
7980         Also avoid warning about unused left hand of comma expressions.
7981
7982 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7983
7984         Further improvements to verify.h, suggested by Eric Blake.
7985         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
7986         the GL_* versions, to avoid collision with OpenGL.
7987         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
7988         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
7989         than testing merely whether it's defined.
7990
7991         Modify verify.h to pacify gcc -Wredundant_decls.
7992         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
7993         These use the prefix "GL_" since they're likely to be useful elsewhere.
7994         We may need to break them out into a different .h file.
7995         (__COUNTER__): Define to 0 if the compiler doesn't support it.
7996         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
7997         of verify_function__.
7998
7999 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8000
8001         Tests for module pwrite.
8002         * modules/pwrite-tests: New file.
8003         * tests/test-pwrite.sh: New file.
8004         * tests/test-pwrite.c: New file.
8005
8006         New module pwrite.
8007         * lib/unistd.in.h (pwrite): New declaration.
8008         * lib/pwrite.c: New file, from glibc with modifications.
8009         * m4/pwrite.m4: New file.
8010         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8011         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8012         REPLACE_PWRITE.
8013         * modules/pwrite: New file.
8014         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8015         REPLACE_PWRITE.
8016         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8017         * doc/posix-functions/pwrite.texi: Mention the new module.
8018
8019 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8020
8021         pread: Update documentation.
8022         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8023
8024 2010-05-04  Eric Blake  <eblake@redhat.com>
8025
8026         docs: update cygwin progress
8027         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8028         this bug.
8029         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8030         Added in cygwin 1.7.2.
8031         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8032         Likewise.
8033         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8034         Likewise.
8035         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8036         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8037         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8038         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8039         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8040         Mention nproc module.
8041         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8042         bug in cygwin 1.7.5 addition.
8043         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8044         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8045         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8046         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8047         1.7.5.
8048         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8049         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8050         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8051         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8052         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8053         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8054         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8055         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8056         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8057         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8058         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8059         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8060         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8061         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8062         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8063         Likewise.
8064         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8065         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8066         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8067         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8068         Likewise.
8069         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8070         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8071         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8072         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8073         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8074         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8075         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8076         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8077         Likewise.
8078         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8079         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8080         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8081         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8082         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8083         Likewise.
8084         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8085         Likewise.
8086         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8087         Likewise.
8088         * doc/glibc-functions/xdrrec_endofrecord.texi
8089         (xdrrec_endofrecord): Likewise.
8090         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8091         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8092         Likewise.
8093         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8094         Likewise.
8095
8096 2010-05-04  Jim Meyering  <meyering@redhat.com>
8097
8098         gendocs.sh: make its "-s FILE" option more useful
8099         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8100         $PACKAGE to reflect the probably-different basename of "FILE".
8101
8102 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8103
8104         bootstrap: don't ignore download_po_files failure
8105         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8106         failure.
8107
8108 2010-05-03  Jim Meyering  <meyering@redhat.com>
8109
8110         maint.mk: allow to pass options to gendocs.sh
8111         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8112         (gendocs_options_): New overridable variable.
8113
8114         gnu-web-doc-update: don't ignore configure or build failure
8115         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8116
8117         announce-gen: backslash-escape '@'s in --help output
8118         * build-aux/announce-gen: Fix syntax errors.
8119
8120         maint.mk, announce-gen: allow project-specific announcement mail headers
8121         * top/maint.mk (translation_project_): Define default.
8122         (announcement_Cc_, announcement_mail_headers_): Likewise.
8123         (announcement): Invoke announce-gen with new --mail-headers option.
8124         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8125
8126         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8127         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8128         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8129         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8130         line in the "err2" output file when running "make check" in verbose
8131         mode (i.e., with set -x enabled).
8132
8133 2010-05-03  Bruno Haible  <bruno@clisp.org>
8134
8135         wctob: Fix for weird platforms.
8136         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8137         argument value.
8138
8139 2010-05-03  Jim Meyering  <meyering@redhat.com>
8140
8141         maint.mk: prohibit unwarranted use of <strings.h>
8142         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8143         strings.h in a file that does not also use strcasecmp, strncasecmp,
8144         ffs or ffsll.
8145
8146         maint.mk: remove obsolete comments
8147         * top/maint.mk: Remove stale, commented-out rules.
8148
8149 2010-05-02  Bruno Haible  <bruno@clisp.org>
8150
8151         wcwidth: Declare also when it's aliased.
8152         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8153         macro.
8154
8155 2010-05-02  Bruno Haible  <bruno@clisp.org>
8156
8157         Fix regression from 2010-04-25.
8158         * gnulib-tool (func_modules_transitive_closure): Check the status of
8159         all modules, not only of the tests that are of the form foo-tests where
8160         foo is a module.
8161
8162 2010-05-02  Bruno Haible  <bruno@clisp.org>
8163
8164         wctob: Work around nasty Cygwin 1.7.2 bug.
8165         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8166         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8167
8168 2010-05-01  Bruno Haible  <bruno@clisp.org>
8169
8170         fpurge: Sharper test.
8171         * tests/test-fpurge.c (main): Add one more ftell check.
8172         * modules/fpurge-tests (Depends-on): Add ftell.
8173         Suggested by Eric Blake.
8174
8175 2010-05-01  Bruno Haible  <bruno@clisp.org>
8176
8177         ftello: Another test.
8178         * tests/test-ftello3.c: New file.
8179         * modules/ftello-tests (Files): Add it.
8180         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8181         MOSTLYCLEANFILES.
8182
8183         ftell: Another test.
8184         * tests/test-ftell3.c: New file.
8185         * modules/ftell-tests (Files): Add it.
8186         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8187         MOSTLYCLEANFILES.
8188
8189 2010-05-01  Bruno Haible  <bruno@clisp.org>
8190
8191         ftell, ftello: Work around Solaris bug.
8192         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8193         * lib/ftello.c: Include stdio-impl.h.
8194         (ftello): On Solaris, when _IOWRT is set, compute the result without
8195         looking at _IOREAD.
8196         * modules/ftello (Files): Add lib/stdio-impl.h.
8197         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8198         * doc/posix-functions/ftello.texi: Likewise.
8199         Reported by Eric Blake.
8200
8201 2010-05-01  Bruno Haible  <bruno@clisp.org>
8202
8203         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8204         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8205         the _IOWRT flag is also set.
8206
8207 2010-05-01  Bruno Haible  <bruno@clisp.org>
8208
8209         Fix doc about a HP-UX stdio bug.
8210         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8211         * doc/posix-functions/ftello.texi: Likewise.
8212
8213 2010-05-01  Bruno Haible  <bruno@clisp.org>
8214
8215         lseek test: Fix failure on Solaris.
8216         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8217         output.
8218
8219 2010-04-30  Jim Meyering  <meyering@redhat.com>
8220
8221         bootstrap: don't ignore failure to generate po*/Makevars
8222         * build-aux/bootstrap (with_gettext): Don't ignore failure
8223         to create po/Makevars or runtime-po/Makevars.
8224
8225 2010-04-29  Eric Blake  <eblake@redhat.com>
8226
8227         headers: relax license to LGPLv2+
8228         * modules/fcntl-h (License): Relax license.
8229         * modules/getopt-posix (License): Likewise.
8230         * modules/locale (License): Likewise.
8231         * modules/math (License): Likewise.
8232         * modules/pty (License): Likewise.
8233         * modules/sched (License): Likewise.
8234         * modules/search (License): Likewise.
8235         * modules/spawn (License): Likewise.
8236         * modules/stdarg (License): Likewise.
8237         * modules/sysexits (License): Likewise.
8238
8239 2010-04-29  Jim Meyering  <meyering@redhat.com>
8240
8241         inttypes: relax license to LGPLv2+
8242         * modules/inttypes (License): Relax license.
8243
8244 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8245
8246         * top/maint.mk (indent): Run twice to produce idempotent results.
8247
8248 2010-04-28  Bruno Haible  <bruno@clisp.org>
8249
8250         getdate: Generate getdate.c in the source directory.
8251         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8252         MOSTLYCLEANFILES.
8253         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8254
8255 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8256
8257         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8258         is not declared as a const *; avoid warnings in that case.
8259
8260 2010-04-28  Eric Blake  <eblake@redhat.com>
8261
8262         canonicalize-lgpl: avoid compiler warning
8263         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8264         declaration' / 'extraneous semicolon' warning with some compilers.
8265         Reported by Andreas Gruenbacher.
8266
8267 2010-04-28  Jim Meyering  <meyering@redhat.com>
8268
8269         init.sh: ensure a more reliable exit status when exiting via trap
8270         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8271         Inspired by patches from Dmitry V. Levin.
8272         Also trap on signal 3 (SIGQUIT).
8273
8274 2010-04-27  Bruno Haible  <bruno@clisp.org>
8275
8276         Update doc about utimes().
8277         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8278         'utimens' module.
8279         Reported by Andreas Gruenbacher <agruen@suse.de>.
8280
8281 2010-04-27  Eric Blake  <eblake@redhat.com>
8282
8283         full-read, full-write: relax license
8284         * modules/full-read (License): Drop to LGPLv2+.
8285         * modules/full-write (License): Likewise.
8286         * modules/safe-read (License): Likewise.
8287         * modules/safe-write (License): Likewise.
8288
8289         pthread: mention library for linking
8290         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8291
8292 2010-04-27  Jim Meyering  <meyering@redhat.com>
8293
8294         maint.mk: fix a bug introduced in last change
8295         * top/maint.mk (gl_assured_headers_): Now that all names are on
8296         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8297         is not anchored to end of word, it should be adequate.
8298
8299         maint.mk: avoid side-effect in latest syntax-check
8300         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8301         to run commands via $(shell...), and hence to incur cost only when
8302         the new rule is actually run.
8303
8304         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8305         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8306         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8307         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8308         (gl_assured_headers_, az_, AZ_): Define.
8309         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8310
8311 2010-04-26  Jim Meyering  <jim@meyering.net>
8312             Bruno Haible  <bruno@clisp.org>
8313
8314         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8315         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8316         Prompted by an exchange with Gilles Espinasse.
8317
8318 2010-04-26  Jim Meyering  <meyering@redhat.com>
8319
8320         git-version-gen: aesthetic tweak
8321         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8322         so that the command remains on a single line.
8323
8324 2010-04-26  Eric Blake  <eblake@redhat.com>
8325
8326         git-version-gen: allow use on EBCDIC hosts
8327         * build-aux/git-version-gen (dirty): Use literal rather than tying
8328         ourselves to ascii.
8329         Reported by Steve Goetze.
8330
8331 2010-04-25  Bruno Haible  <bruno@clisp.org>
8332
8333         netdb: Add support for GNULIB_POSIXCHECK.
8334         * lib/netdb.in.h: Include warn-on-use.h.
8335         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8336         functions are used when GNULIB_POSIXCHECK is defined and the
8337         getaddrinfo module is not in use.
8338         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8339         freeaddrinfo, gai_strerror, getnameinfo are declared.
8340         * modules/netdb (Depends-on): Add warn-on-use.
8341         (Makefile.am): Include warn-on-use.h in netdb.h.
8342
8343 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8344
8345         build: avoid "make check" failure without .git/ directory
8346         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8347         there is no .git/ directory.
8348
8349 2010-04-25  Bruno Haible  <bruno@clisp.org>
8350
8351         ptsname: Fix misuse of ttyname_r.
8352         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8353         of errno.
8354
8355 2010-04-25  Bruno Haible  <bruno@clisp.org>
8356
8357         ttyname_r: Make it work on Solaris 10.
8358         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8359         if the system function has the POSIX declaration. Test whether the
8360         function fails if the buffer is less than 128 bytes large.
8361         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8362         system's ttyname_r function. Provide a reasonably large buffer.
8363         * modules/ttyname_r (Depends-on): Add extensions.
8364         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8365
8366 2010-04-25  Bruno Haible  <bruno@clisp.org>
8367
8368         Use the 'extensions' module for some more functions on Solaris.
8369         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8370         module.
8371         * doc/posix-functions/ctime_r.texi: Likewise.
8372         * doc/posix-functions/getgrgid_r.texi: Likewise.
8373         * doc/posix-functions/getgrnam_r.texi: Likewise.
8374         * doc/posix-functions/getpwnam_r.texi: Likewise.
8375         * doc/posix-functions/getpwuid_r.texi: Likewise.
8376         * doc/posix-functions/readdir_r.texi: Likewise.
8377         * doc/posix-functions/sigwait.texi: Likewise.
8378         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8379         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8380
8381 2010-04-25  Bruno Haible  <bruno@clisp.org>
8382
8383         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8384         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8385         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8386         * lib/ttyname_r.c: Include <limits.h>.
8387         (ttyname_r): Define using the system's ttyname_r function, if it exists
8388         and not on Solaris.
8389         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8390         set.
8391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8392         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8393         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8394         Reported by Simon Josefsson.
8395
8396 2010-04-25  Bruno Haible  <bruno@clisp.org>
8397
8398         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8399         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8400         * doc/posix-functions/ctime_r.texi: Likewise.
8401         * doc/posix-functions/getgrgid_r.texi: Likewise.
8402         * doc/posix-functions/getgrnam_r.texi: Likewise.
8403         * doc/posix-functions/getlogin_r.texi: Likewise.
8404         * doc/posix-functions/getpwnam_r.texi: Likewise.
8405         * doc/posix-functions/getpwuid_r.texi: Likewise.
8406         * doc/posix-functions/readdir_r.texi: Likewise.
8407         * doc/posix-functions/sigwait.texi: Likewise.
8408         * doc/posix-functions/ttyname_r.texi: Likewise.
8409         Reported by Simon Josefsson.
8410
8411 2010-04-25  Bruno Haible  <bruno@clisp.org>
8412
8413         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8414         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8415         also to --create-testdir.
8416         (func_acceptable): Don't consider the status of *-tests modules here.
8417         (func_modules_transitive_closure): Consider it here, before including a
8418         test module.
8419         (func_import, func_create_testdir): Set inc_all_direct_tests,
8420         inc_all_indirect_tests.
8421         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8422         --create-testdir and --create-megatestdir.
8423
8424 2010-04-25  Bruno Haible  <bruno@clisp.org>
8425
8426         gnulib-tool: Add --without-*-tests options.
8427         * gnulib-tool (func_usage): Document the --without-*-tests options.
8428         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8429         excl_unportable_tests): New variables.
8430         Fail if they are specified with --import or --update.
8431         (func_acceptable): Respect the excl_*_tests variables.
8432         (func_import): Set the excl_*_tests variables to empty.
8433
8434 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8435             Bruno Haible  <bruno@clisp.org>
8436
8437         Work around a MacOS X 10.4 bug with openpty.
8438         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8439         * tests/test-openpty.c (main): Close the master side explicitly.
8440
8441 2010-04-25  Bruno Haible  <bruno@clisp.org>
8442
8443         strnlen: Fix a C++ test error on MacOS X and Solaris.
8444         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8445         the function is not declared.
8446         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8447         Simon Josefsson.
8448
8449 2010-04-24  Bruno Haible  <bruno@clisp.org>
8450
8451         Avoid a gcc warning.
8452         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8453         of correct type for %08lx directive.
8454         Reported by Eric Blake.
8455
8456 2010-04-24  Bruno Haible  <bruno@clisp.org>
8457
8458         vasnprintf: Correct errno value in case of out-of-memory.
8459         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8460         or sprintf. Use the errno value from SNPRINTF or sprintf.
8461         Reported by Ian Beckwith <ianb@erislabs.net>.
8462
8463 2010-04-24  Bruno Haible  <bruno@clisp.org>
8464
8465         ansi-c++-opt: Find correct compiler when cross-compiling.
8466         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8467         AC_CHECK_PROGS.
8468         Reported by Simon Josefsson.
8469
8470 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8471
8472         vc-list-files: Add support for subversion
8473         * build-aux/vc-list-files: Use "svn list" to generate the list of
8474         files controlled by subversion.
8475
8476 2010-04-23  Jim Meyering  <meyering@redhat.com>
8477
8478         vc-list-files tests: convert to use init.sh
8479         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
8480         path_prepend_.
8481         Use Exit, not exit.
8482         Use skip_ rather than open coding it.
8483         Remove trap set-up and compare definitions.
8484         * tests/test-vc-list-files-git.sh: Likewise.
8485         * modules/vc-list-files-tests (Files): Add tests/init.sh.
8486
8487 2010-04-22  Simon Josefsson  <simon@josefsson.org>
8488
8489         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
8490         backup files.
8491
8492 2010-04-21  Simon Josefsson  <simon@josefsson.org>
8493
8494         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
8495
8496 2010-04-20  Eric Blake  <eblake@redhat.com>
8497
8498         tests: be robust to ignored SIGPIPE
8499         * tests/test-select-in.sh: Consume all output.
8500         * tests/test-lseek.sh: Check correct exit status, while avoiding
8501         EPIPE.
8502
8503 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8504             Bruno Haible  <bruno@clisp.org>
8505
8506         visibility: Don't use -fvisibility if it leads to a warning.
8507         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8508         yes, don't pretend that visibility works if it leads to a warning.
8509         Reported by Mike Gran <spk121@yahoo.com>.
8510
8511 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8512
8513         * build-aux/bootstrap: Use "git -h" for testing for supported options
8514         instead of "git --help".  The short-form option only shows a summary,
8515         and doesn't layout the full man page.  Grep for the full option name
8516         in the summary, too.
8517
8518 2010-04-19  Bruno Haible  <bruno@clisp.org>
8519
8520         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8521         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8522         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8523         mention of RELOCATABLE_STRIP.
8524         Reported by Sylvain Beucler <beuc@beuc.net>.
8525
8526 2010-04-19  Bruno Haible  <bruno@clisp.org>
8527
8528         * lib/diffseq.h: Fix typo in comment.
8529         Reported by Eric Blake.
8530
8531 2010-04-19  Bruno Haible  <bruno@clisp.org>
8532
8533         ioctl: Move autoconf macro to a .m4 file.
8534         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8535         * modules/ioctl (Files): Add it.
8536         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8537         Reported by Ian Beckwith <ianb@erislabs.net>.
8538
8539 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8540             Bruno Haible  <bruno@clisp.org>
8541
8542         diffseq: Accommodate use-case with abstract arrays.
8543         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8544         is not defined.
8545         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8546         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8547
8548 2010-04-18  Bruno Haible  <bruno@clisp.org>
8549
8550         * doc/posix-headers/stdbool.texi: More precise wording.
8551
8552 2010-04-17  Jim Meyering  <meyering@redhat.com>
8553
8554         maint.mk: use gnu-style indentation in an embedded perl script
8555         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
8556         Rename variable: s/two/last_two_bytes/
8557
8558 2010-04-16  Eric Blake  <eblake@redhat.com>
8559
8560         test-stdbool: skip test that fails with Solaris CC
8561         * tests/test-stdbool.c (f): Skip test that causes compilation
8562         error under buggy C++ compiler.
8563         * lib/stdbool.in.h: Document the limitation.
8564         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8565
8566         setenv: allow compilation with C++
8567         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
8568         register keyword.
8569
8570         stdint: allow test to pass with C++
8571         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
8572
8573         getopt: allow compilation with C++
8574         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
8575         struct.
8576         * lib/getopt.c (_getopt_internal_r): Use correct type.
8577         Reported by Dagobert Michelson, via Joel E. Denny.
8578
8579 2010-04-16  Bruno Haible  <bruno@clisp.org>
8580
8581         Override netdb.h always.
8582         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
8583         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
8584         Reported by Ludovic Courtès <ludo@gnu.org>.
8585
8586 2010-04-15  Bruno Haible  <bruno@clisp.org>
8587
8588         openpty: Fix mistake from 2010-03-21.
8589         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
8590         Reported by Simon Josefsson.
8591
8592 2010-04-15  Eric Blake  <eblake@redhat.com>
8593
8594         test-forkpty: fix expected signature
8595         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
8596         Reported by Simon Josefsson.
8597
8598 2010-04-15  Jim Meyering  <meyering@redhat.com>
8599
8600         maint.mk: texinfo_suffix_re_: correct the default regexp
8601         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
8602
8603         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
8604         make it configurable via texinfo_suffix_re_.
8605
8606 2010-04-14  Eric Blake  <eblake@redhat.com>
8607
8608         strtok_r: relax license to LGPLv2+
8609         * modules/strtok_r (License): Relax license.
8610         Reported by Matthias Bolte.
8611
8612 2010-04-14  Simon Josefsson  <simon@josefsson.org>
8613
8614         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
8615         version 1.4.4 by default instead of requiring the libgcrypt
8616         version used during build.  This makes it possible to use the
8617         application with older but still binary compatible libgcrypt
8618         versions.
8619
8620 2010-04-13  Eric Blake  <eblake@redhat.com>
8621
8622         getopt-gnu: match recent glibc fixes and posix ruling
8623         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
8624         '+' handling, when requesting extensions.
8625         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
8626         'W;' handling.
8627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
8628         * doc/posix-functions/getopt.texi (getopt): Document this.
8629         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8630         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8631         Likewise.
8632
8633         getopt: merge bug fixes from glibc
8634         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
8635         diagnostics.  Honor '+:' correctly.  Reject ';'.
8636
8637         getopt-posix: detect MacOS bug
8638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
8639         optind when missing a required argument.
8640         * doc/posix-functions/getopt.texi (getopt): Document the bug.
8641         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8642         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8643         Likewise.
8644
8645         getopt-posix: avoid spurious failure on Solaris
8646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
8647         an indicator that setting optind=1 is sufficient for reset.
8648
8649         getopt-posix: avoid spurious failure on FreeBSD
8650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
8651         in POSIX mode, since the m4 test uses it.
8652
8653         gnulib-tool: silence warning on BSD sh
8654         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
8655
8656 2010-04-13  Jim Meyering  <meyering@redhat.com>
8657
8658         doc: users.txt: GNU patch now uses gnulib
8659         * users.txt: Add patch.
8660
8661 2010-04-12  Jim Meyering  <meyering@redhat.com>
8662
8663         maint.mk: generate more concise timing data for syntax-check rules
8664         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
8665         " done" from each line that reports a syntax-check test duration.
8666
8667 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
8668
8669         git-version-gen: use "git update-index..." rather than "git status"
8670         * build-aux/git-version-gen: Use git update-index --refresh, not
8671         "git status".  With some versions of git, "git status" would fail
8672         to update the index and result in an unwarranted "-dirty" suffix.
8673
8674 2010-04-11  Jim Meyering  <meyering@redhat.com>
8675
8676         openat: correct formatting (no semantic change)
8677         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
8678         Suggested by Bruno Haible.
8679
8680 2010-04-11  Bruno Haible  <bruno@clisp.org>
8681
8682         Stricter declaration checking in testdirs.
8683         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8684         If for_tests is true, augment AM_CPPFLAGS to define
8685         GNULIB_STRICT_CHECKING.
8686         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8687         GNULIB_STRICT_CHECKING is defined, verify that the function is
8688         declared.
8689
8690 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
8691             Bruno Haible  <bruno@clisp.org>
8692
8693         libunistring: Improve configure output.
8694         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
8695         Don't say "consider installing GNU libunistring" when checking again
8696         with libiconv.
8697
8698 2010-04-11  Bruno Haible  <bruno@clisp.org>
8699
8700         libunistring: Correct value of $LTLIBUNISTRING.
8701         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
8702         correct the value of $LTLIBUNISTRING.
8703
8704 2010-04-11  Bruno Haible  <bruno@clisp.org>
8705
8706         havelib: Add static libraries to LIBS in the right order.
8707         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
8708         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
8709
8710 2010-04-11  Bruno Haible  <bruno@clisp.org>
8711
8712         libunistring: Detect libunistring also when it depends on libiconv.
8713         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
8714         the second AC_LIB_HAVE_LINKFLAGS invocation.
8715
8716 2010-04-11  James Youngman  <jay@gnu.org>
8717
8718         close-stream: declare local scalars to be "const"
8719         * lib/close-stream.c (close_stream): Make boolean variables const
8720         to document the fact that we set but do not change them.
8721
8722 2010-04-11  Bruno Haible  <bruno@clisp.org>
8723
8724         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
8725
8726 2010-04-11  Jim Meyering  <meyering@redhat.com>
8727
8728         maint.mk: don't include dist-check.mk
8729         * top/maint.mk: Remove bogus include directive.
8730
8731         maint.mk: improve empty-line-at-EOF check
8732         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
8733         solution, rather than tail+Perl-based one.  The latter would read
8734         a few kilobytes from the end of each file, and did not handle empty
8735         files properly.
8736
8737         maint.mk: print the elapsed time for each syntax-check rule
8738         * top/maint.mk (sc_m_rules_): Save start time in a file.
8739         (sc_z_rules_): New rules: remove temp file and print elapsed time.
8740         (local-check): Interpose the .z rules
8741
8742 2010-04-11  Jim Meyering  <meyering@redhat.com>
8743
8744         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
8745         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
8746         empty file with one that ends in an empty line.
8747
8748 2010-04-10  Bruno Haible  <bruno@clisp.org>
8749
8750         mkdir: Make it work on mingw64.
8751         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
8752         * lib/mkdir.c: Update comment.
8753         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
8754
8755 2010-04-10  Bruno Haible  <bruno@clisp.org>
8756
8757         Don't override improved macro from newer autoconf.
8758         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
8759         autoconf >= 2.62.
8760         Reported by Joel E. Denny <jdenny@clemson.edu>.
8761
8762 2010-04-10  Jim Meyering  <meyering@redhat.com>
8763
8764         maint.mk: new syntax-check rule: prohibit empty lines at end of file
8765         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
8766
8767         maint.mk: correct a diagnostic
8768         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
8769         in diagnostic; now use $prohibit.
8770
8771 2010-04-10  Bruno Haible  <address@hidden>
8772
8773         fchownat: Fix a C++ test error on Solaris 8.
8774         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
8775         the function does not exist.
8776
8777 2010-04-10  Bruno Haible  <bruno@clisp.org>
8778
8779         vasnprintf: Add more tests.
8780         * tests/test-vasnprintf-posix.c: Include <errno.h>.
8781         (test_function): Test converting an invalid wide string.
8782
8783         vasnprintf: Correct handling of unconvertible wide string arguments.
8784         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
8785         VASNPRINTF.
8786         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
8787         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
8788         smaller than the expected maximum need for the directive. Set errno to
8789         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
8790         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
8791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
8792         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
8793         * modules/vasnprintf (Files): Add m4/printf.m4.
8794         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8795
8796 2010-04-10  Bruno Haible  <bruno@clisp.org>
8797
8798         vasnprintf: Fix crash in %ls directive.
8799         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
8800         string is passed as argument to %ls, with no precision and no width.
8801         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8802
8803 2010-04-10  Bruno Haible  <bruno@clisp.org>
8804
8805         vasnprintf: Fix multiple test failures on mingw.
8806         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
8807         _snprintf, or snwprintf, not _snwprintf.
8808
8809 2010-04-10  Bruno Haible  <bruno@clisp.org>
8810
8811         write: Fix a C++ test error on mingw.
8812         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
8813
8814 2010-04-10  Bruno Haible  <bruno@clisp.org>
8815
8816         vasnprintf test: Reduce code duplication.
8817         * tests/test-vasnprintf.c (test_function): New function, extracted from
8818         test_vasnprintf.
8819         (test_vasnprintf, test_asnprintf): Invoke it.
8820
8821 2010-04-10  Bruno Haible  <bruno@clisp.org>
8822
8823         strnlen: Fix warning in C++ mode on MacOS X.
8824         * lib/string.in.h (strnlen): Use the modern idiom.
8825         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
8826         defining strnlen as a macro already in <config.h>.
8827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8828         REPLACE_STRNLEN.
8829         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
8830         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8831
8832 2010-04-08  James Youngman  <jay@gnu.org>
8833
8834         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
8835         the example.
8836
8837 2010-04-09  Jim Meyering  <meyering@redhat.com>
8838
8839         maint.mk: print better diagnostic when there is no $(_hv_file)
8840         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
8841         announce that when $(_hv_file) (aka help-version) does not exist.
8842
8843         init.sh: run tr in the "C" locale to avoid multibyte interpretation
8844         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
8845         not try to interpret its random input bytes.  Jarno Rajahalme reported
8846         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
8847         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
8848         (mktempd_): Likewise, just in case.
8849
8850         ftruncate: add two years to projected module removal date: 2012
8851         * m4/ftruncate.m4: Adjust comments.
8852
8853         ftruncate: mark module as obsolete; even MinGW provides it, now
8854         * modules/ftruncate (Status): Obsolete.
8855         (Notice): Say that.
8856         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
8857         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
8858
8859 2010-04-08  Bruno Haible  <bruno@clisp.org>
8860
8861         Fix side effects from tests-related modules.
8862         * modules/dprintf-posix (Comment): New section.
8863         * modules/fprintf-posix (Comment): Likewise.
8864         * modules/obstack-printf-posix (Comment): Likewise.
8865         * modules/printf-posix (Comment): Likewise.
8866         * modules/snprintf-posix (Comment): Likewise.
8867         * modules/sprintf-posix (Comment): Likewise.
8868         * modules/vasnprintf-posix (Comment): Likewise.
8869         * modules/vasprintf-posix (Comment): Likewise.
8870         * modules/vdprintf-posix (Comment): Likewise.
8871         * modules/vfprintf-posix (Comment): Likewise.
8872         * modules/vprintf-posix (Comment): Likewise.
8873         * modules/vsnprintf-posix (Comment): Likewise.
8874         * modules/vsprintf-posix (Comment): Likewise.
8875         * modules/xprintf-posix (Comment): Likewise.
8876         * modules/xvasprintf-posix (Comment): Likewise.
8877         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
8878         * modules/floorf-tests (Depends-on): Likewise.
8879         * modules/round-tests (Depends-on): Likewise.
8880         * modules/roundf-tests (Depends-on): Likewise.
8881         * modules/trunc-tests (Depends-on): Likewise.
8882         * modules/truncf-tests (Depends-on): Likewise.
8883         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
8884         'fprintf-posix' module is not present.
8885         * tests/test-floorf2.c (check): Likewise.
8886         * tests/test-trunc2.c (check): Likewise.
8887         * tests/test-truncf2.c (check): Likewise.
8888         * tests/test-round2.c (equal): Likewise.
8889         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8890
8891 2010-04-07  Karl Berry  <karl@gnu.org>
8892
8893         * config/srclist.txt,
8894         * config/srclistvars.sh,
8895         * config/srclist-update: doc fixes.
8896
8897 2010-04-07  Jim Meyering  <meyering@redhat.com>
8898
8899         maint.mk: add a PATH crosschecking syntax-check rule
8900         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
8901         Useful if you use a test like the one in help-version (coreutils,
8902         diffutils, grep, gzip) that ensures $(VERSION) matches what is
8903         printed by prog --version.
8904
8905 2010-04-06  Bruno Haible  <bruno@clisp.org>
8906
8907         Fix link error on mingw.
8908         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
8909         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
8910
8911 2010-04-06  Bruno Haible  <bruno@clisp.org>
8912
8913         Assume rmdir exists.
8914         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
8915
8916 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
8917
8918         doc: update users.txt
8919         * users.txt: Add gcal.
8920
8921 2010-04-06  Jim Meyering  <meyering@redhat.com>
8922
8923         init.sh: simply unset TMPDIR rather than risking env -i
8924         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
8925         although it probably works fine on all Unix-based systems, some
8926         systems (Cygwin?) cannot tolerate a totally cleared environment.
8927         Suggestion from Eric Blake.
8928
8929 2010-04-06  Jim Meyering  <meyering@redhat.com>
8930
8931         init.sh: portability fix: use env's POSIX-specified -i option not -u
8932         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
8933         than unportable env -u.  Solaris 5.11's env lacks support for -u.
8934
8935 2010-04-05  Bruno Haible  <bruno@clisp.org>
8936
8937         btowc: Work around Cygwin 1.7.2 bug.
8938         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
8939         does not map NUL to 0.
8940         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
8941
8942 2010-04-05  Bruno Haible  <bruno@clisp.org>
8943
8944         Make the multithread modules work on Cygwin 1.7.2.
8945         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
8946         imported symbols can be declared weak, so that it returns "no" on
8947         Cygwin 1.7.2.
8948
8949 2010-04-05  Bruno Haible  <bruno@clisp.org>
8950
8951         Use the module 'strncat'.
8952         * modules/unistr/u8-strncat (Depends-on): Add strncat.
8953
8954         Tests for module 'strncat'.
8955         * modules/strncat-tests: New file.
8956         * tests/test-strncat.c: New file.
8957
8958         New module 'strncat'.
8959         * lib/string.in.h (strncat): New declaration.
8960         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
8961         * m4/strncat.m4: New file, based on m4/memchr.m4.
8962         * modules/strncat: New file.
8963         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
8964         is declared.
8965         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
8966         REPLACE_STRNCAT.
8967         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
8968         REPLACE_STRNCAT.
8969         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
8970         module.
8971         * tests/test-string-c++.cc: Check signature of strncat.
8972
8973 2010-04-05  Jim Meyering  <meyering@redhat.com>
8974
8975         xstrtoumax-tests: convert to use init.sh
8976         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
8977         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8978         Use Exit, not exit.
8979         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8980
8981         xstrtoimax-tests: convert to use init.sh
8982         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
8983         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8984         Use Exit, not exit.
8985         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8986
8987 2010-04-05  Bruno Haible  <bruno@clisp.org>
8988
8989         sys_socket: Avoid #define replacements in C++ mode.
8990         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
8991         warning to the function if possible, rather than #defining the symbol
8992         to a dysfunctional alias.
8993
8994 2010-04-05  Bruno Haible  <bruno@clisp.org>
8995
8996         fseeko: Fix C++ test error on mingw.
8997         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
8998         gl_FUNC_FSEEKO.
8999         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9000         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9001         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9002         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9003
9004 2010-04-05  Bruno Haible  <bruno@clisp.org>
9005
9006         duplocale: Improve test output.
9007         * tests/test-duplocale.c (main): Print reason for skipped test.
9008
9009 2010-04-05  Bruno Haible  <bruno@clisp.org>
9010
9011         Assume rmdir exists.
9012         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9013         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9014
9015 2010-04-05  Bruno Haible  <bruno@clisp.org>
9016
9017         Fix link error on Solaris 8 with cc.
9018         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9019
9020 2010-04-05  Bruno Haible  <bruno@clisp.org>
9021
9022         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9023         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9024
9025 2010-04-05  Bruno Haible  <bruno@clisp.org>
9026
9027         vasprintf: Update documentation.
9028         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9029
9030 2010-04-05  Bruno Haible  <bruno@clisp.org>
9031
9032         ptsname: Improve test.
9033         * tests/test-ptsname.c (main): Also try the various master names of BSD
9034         systems.
9035
9036 2010-04-05  Bruno Haible  <bruno@clisp.org>
9037
9038         memchr: Avoid a possible C++ test error.
9039         * lib/string.in.h (memchr): Provide declaration if function is missing.
9040         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9041         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9043         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9044
9045 2010-04-05  Bruno Haible  <bruno@clisp.org>
9046
9047         strtok_r: Improve idiom.
9048         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9049         AC_LIBOBJ is used.
9050
9051 2010-04-05  Bruno Haible  <bruno@clisp.org>
9052
9053         strdup: Improve idiom.
9054         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9055         AC_LIBOBJ is used.
9056         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9057         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9058         when AC_LIBOBJ is used.
9059
9060 2010-04-05  Bruno Haible  <bruno@clisp.org>
9061
9062         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9063         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9064         don't set REPLACE_MBSINIT to 1.
9065         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9066         don't set REPLACE_MBRTOWC to 1.
9067         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9068         exist, don't set REPLACE_MBSRTOWCS to 1.
9069         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9070         exist, don't set REPLACE_MBSNRTOWCS to 1.
9071         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9072         don't set REPLACE_WCRTOMB to 1.
9073         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9074         exist, don't set REPLACE_WCSRTOMBS to 1.
9075         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9076         exist, don't set REPLACE_WCSNRTOMBS to 1.
9077
9078 2010-04-05  Bruno Haible  <bruno@clisp.org>
9079
9080         ldexpl: Improve idiom.
9081         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9082         make sure to set HAVE_DECL_LDEXPL to 0.
9083
9084 2010-04-05  Jim Meyering  <meyering@redhat.com>
9085
9086         xstrtol-tests: convert to use init.sh
9087         * modules/xstrtol-tests (Files): Add tests/init.sh.
9088         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9089         Use Exit, not exit.
9090         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9091
9092         atexit-tests: convert to use init.sh
9093         * modules/atexit-tests (Files): Add tests/init.sh.
9094         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9095         Use Exit, not exit.
9096         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9097
9098         init.sh: fix typo
9099         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9100
9101         init.sh: make it easier for a test script to write to the tty, ...
9102         when using automake's parallel-tests mode.
9103         * tests/init.sh (stderr_fileno_): Define overridable variable.
9104         (warn_): New function, to use it.
9105         (fail_, skip_, framework_failure_): Use warn_.
9106
9107 2010-04-04  Bruno Haible  <bruno@clisp.org>
9108
9109         btowc: Avoid warning.
9110         * lib/btowc.c: Include <stdlib.h>.
9111         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9112
9113 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9114             Bruno Haible  <bruno@clisp.org>
9115
9116         wchar: Port to NetBSD 1.5.
9117         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9118         * lib/wctype.in.h (WEOF): Likewise.
9119
9120 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9121             Bruno Haible  <bruno@clisp.org>
9122
9123         Port extended stdio to NetBSD 1.5.
9124         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9125         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9126         older.
9127
9128 2010-04-04  Bruno Haible  <bruno@clisp.org>
9129
9130         string: Remove unused substitution.
9131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9132         HAVE_DECL_STRERROR.
9133         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9134
9135 2010-04-04  Bruno Haible  <bruno@clisp.org>
9136
9137         strtod: Avoid a possible C++ test error.
9138         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9139         set REPLACE_STRTOD.
9140
9141 2010-04-04  Bruno Haible  <bruno@clisp.org>
9142
9143         strerror: Update documentation.
9144         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9145
9146 2010-04-04  Bruno Haible  <bruno@clisp.org>
9147
9148         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9149         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9150         _GL_CXXALIAS_SYS_CAST.
9151
9152 2010-04-04  Bruno Haible  <bruno@clisp.org>
9153
9154         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9155         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9156         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9157         REPLACE_FREXPL to 1.
9158         * doc/posix-functions/frexpl.texi: Update documentation.
9159
9160 2010-04-04  Bruno Haible  <bruno@clisp.org>
9161
9162         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9163         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9164
9165 2010-04-04  Bruno Haible  <bruno@clisp.org>
9166
9167         Implement nanosleep for native Windows.
9168         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9169
9170 2010-04-04  Bruno Haible  <bruno@clisp.org>
9171
9172         math: Fix some C++ test errors on Solaris 8.
9173         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9174
9175 2010-04-04  Bruno Haible  <bruno@clisp.org>
9176
9177         math: Fix some C++ test errors on Cygwin.
9178         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9179         truncl): Provide declaration if the system does not have it.
9180         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9181         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9182         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9183         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9184         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9185         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9186         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9187         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9188         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9189         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9190         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9191         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9192         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9193         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9194         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9195         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9197         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9198         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9199         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9200         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9201         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9202
9203 2010-04-04  Bruno Haible  <bruno@clisp.org>
9204
9205         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9206         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9207         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9208         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9209         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9210         * m4/isinf.m4 (gl_ISINF): Likewise.
9211         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9212
9213 2010-04-04  Bruno Haible  <bruno@clisp.org>
9214
9215         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9216         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9217
9218 2010-04-04  Bruno Haible  <bruno@clisp.org>
9219
9220         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9221         * modules/tmpfile (configure.ac): Update.
9222
9223         tmpfile: Fix C++ test error on mingw.
9224         * lib/stdio.in.h (tmpfile): New declaration.
9225         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9226         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9227         * modules/tmpfile (Depends-on): Add stdio.
9228         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9229         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9230         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9231         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9232         REPLACE_TMPFILE.
9233         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9234
9235 2010-04-04  Bruno Haible  <bruno@clisp.org>
9236
9237         ioctl: Fix C++ test error on mingw.
9238         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9239         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9240         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9241
9242 2010-04-03  Bruno Haible  <bruno@clisp.org>
9243
9244         wcwidth: Fix C++ test error on mingw.
9245         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9247         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9248
9249 2010-04-03  Bruno Haible  <bruno@clisp.org>
9250
9251         nanosleep: Fix C++ test error on mingw.
9252         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9253         * lib/time.in.h (nanosleep): Use modern idiom.
9254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9255         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9256         REPLACE_NANOSLEEP to 1.
9257         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9258         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9259
9260 2010-04-03  Bruno Haible  <bruno@clisp.org>
9261
9262         strptime: Fix C++ test error on mingw.
9263         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9264         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9265         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9266         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9267         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9268         not REPLACE_STRPTIME.
9269         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9270         REPLACE_STRPTIME.
9271
9272 2010-04-03  Bruno Haible  <bruno@clisp.org>
9273
9274         timegm: Fix C++ test error on mingw.
9275         * lib/time.in.h (timegm): Use modern idiom.
9276         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9277         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9278         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9279         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9280
9281 2010-04-03  Bruno Haible  <bruno@clisp.org>
9282
9283         timegm: Assume declaration if function exists.
9284         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9285         if it exists. Don't clobber ac_cv_func_timegm.
9286
9287 2010-04-03  Bruno Haible  <bruno@clisp.org>
9288
9289         time_r: Fix C++ test error on mingw.
9290         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9291         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9292         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9293         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9294         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9295
9296 2010-04-03  Bruno Haible  <bruno@clisp.org>
9297
9298         time_r: Minor updates.
9299         * modules/time_r (Description): Mention the provided functions.
9300         * lib/time_r.c: Don't include <string.h>.
9301         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9302         * doc/posix-functions/localtime_r.texi: Likewise.
9303
9304 2010-04-03  Bruno Haible  <bruno@clisp.org>
9305
9306         time: Fix regression introduced on 2010-03-08.
9307         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9308         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9309
9310 2010-04-03  Jim Meyering  <meyering@redhat.com>
9311
9312         maint.mk: don't silently disable project-specific syntax-check rules
9313         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9314         that they need to convert their project-specific syntax-check rules
9315         to use the new _sc_search_regexp.
9316
9317 2010-04-03  Bruno Haible  <bruno@clisp.org>
9318
9319         fchdir: Fix regression introduced on 2010-03-08.
9320         * lib/unistd.in.h (fchdir): Fix declaration.
9321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9323         REPLACE_FCHDIR.
9324         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9325         REPLACE_FCHDIR.
9326
9327 2010-04-03  Bruno Haible  <bruno@clisp.org>
9328
9329         getpagesize: Fix C++ test error on mingw.
9330         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9331         system does not declare the function.
9332         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9333         declared.
9334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9335         HAVE_DECL_GETPAGESIZE.
9336         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9337
9338 2010-04-03  Bruno Haible  <bruno@clisp.org>
9339
9340         stdio: Make C++ tests work on mingw.
9341         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9342         does not declare the function.
9343
9344 2010-04-03  Bruno Haible  <bruno@clisp.org>
9345
9346         ftello: Fix C++ test error on mingw.
9347         * lib/stdio.in.h (ftello): Use modern idiom.
9348         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9349         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9350         is missing and that it needs to be replaced.
9351         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9353         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9354
9355 2010-04-03  Bruno Haible  <bruno@clisp.org>
9356
9357         fseeko: Fix C++ test error on mingw.
9358         * lib/stdio.in.h (fseeko): Use modern idiom.
9359         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9360         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9361         is missing and that it needs to be replaced.
9362         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9364         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9365
9366 2010-04-03  Bruno Haible  <bruno@clisp.org>
9367
9368         mkstemp: Fix C++ test error on mingw.
9369         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9370         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9371         function is missing and that it needs to be replaced.
9372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9373         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9374
9375 2010-04-03  Bruno Haible  <bruno@clisp.org>
9376
9377         stpncpy: Fix C++ test error on mingw.
9378         * lib/string.in.h (stpncpy): Use modern idiom.
9379         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9380         function is missing and that it needs to be replaced.
9381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9382         REPLACE_STPNCPY.
9383         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9384
9385 2010-04-03  Bruno Haible  <bruno@clisp.org>
9386
9387         sys_stat: Fix C++ test error on mingw.
9388         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9389         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9390
9391 2010-04-03  Bruno Haible  <bruno@clisp.org>
9392
9393         pty: Update doc.
9394         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9395
9396 2010-04-03  Bruno Haible  <bruno@clisp.org>
9397
9398         unistd: Fix C++ test error on mingw.
9399         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9400
9401 2010-04-03  Bruno Haible  <bruno@clisp.org>
9402
9403         Update doc regarding mingw.
9404         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9405         * doc/glibc-functions/login_tty.texi: Likewise.
9406         * doc/glibc-functions/forkpty.texi: Likewise.
9407
9408 2010-04-03  Bruno Haible  <bruno@clisp.org>
9409
9410         stdlib: Avoid compilation failure of c-strtold on mingw.
9411         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9412
9413 2010-04-03  Bruno Haible  <bruno@clisp.org>
9414
9415         locale: Make C++ tests work on Cygwin and mingw.
9416         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9417         cannot provide the function.
9418         Reported by Simon Josefsson.
9419
9420 2010-04-03  Bruno Haible  <bruno@clisp.org>
9421
9422         localename: Port to MacOS X 10.6.
9423         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9424         memory layout of the locales in MacOS X 10.6 as well.
9425         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9426
9427 2010-04-02  Bruno Haible  <bruno@clisp.org>
9428
9429         gnulib-tool: Ensure that long-running tests are executed last.
9430         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9431         running tests after the one for the other tests.
9432
9433 2010-04-02  Bruno Haible  <bruno@clisp.org>
9434
9435         gnulib-tool: Ensure the tests in the main directory are executed first.
9436         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9437         start with the current directory.
9438
9439 2010-04-02  Bruno Haible  <bruno@clisp.org>
9440
9441         Tests for module 'havelib', moved here from GNU gettext.
9442         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9443         modifications.
9444         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9445         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9446         with modifications.
9447         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9448         modifications.
9449         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9450         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9451         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9452         with modifications.
9453         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9454         with modifications.
9455         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9456         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9457         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9458         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9459         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9460         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9461         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9462         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9463         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9464         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9465         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9466         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9467         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9468         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9469         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9470         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9471         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9472         with modifications.
9473         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9474         with modifications.
9475         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9476         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9477         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
9478         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
9479         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
9480         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
9481         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
9482         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
9483         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
9484         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
9485         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
9486         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
9487         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
9488         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
9489         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
9490         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
9491         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
9492         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
9493         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
9494         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
9495         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
9496         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
9497         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
9498         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
9499         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
9500         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
9501         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
9502         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
9503         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9504         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9505         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9506         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9507         * tests/havelib/rpathx/rpathx.c: New file, from
9508         gettext/autoconf-lib-link.
9509         * tests/havelib/rpathx/Makefile.am: New file, from
9510         gettext/autoconf-lib-link.
9511         * tests/havelib/rpathx/configure.ac: New file, from
9512         gettext/autoconf-lib-link with modifications.
9513         * tests/havelib/rpathy/rpathy.c: New file, from
9514         gettext/autoconf-lib-link.
9515         * tests/havelib/rpathy/Makefile.am: New file, from
9516         gettext/autoconf-lib-link.
9517         * tests/havelib/rpathy/configure.ac: New file, from
9518         gettext/autoconf-lib-link with modifications.
9519         * tests/havelib/rpathz/rpathz.c: New file, from
9520         gettext/autoconf-lib-link.
9521         * tests/havelib/rpathz/Makefile.am: New file, from
9522         gettext/autoconf-lib-link.
9523         * tests/havelib/rpathz/configure.ac: New file, from
9524         gettext/autoconf-lib-link with modifications.
9525         * tests/havelib/rpathlx/usex.c: New file, from
9526         gettext/autoconf-lib-link.
9527         * tests/havelib/rpathlx/Makefile.am: New file, from
9528         gettext/autoconf-lib-link.
9529         * tests/havelib/rpathlx/configure.ac: New file, from
9530         gettext/autoconf-lib-link with modifications.
9531         * tests/havelib/rpathly/usey.c: New file, from
9532         gettext/autoconf-lib-link.
9533         * tests/havelib/rpathly/Makefile.am: New file, from
9534         gettext/autoconf-lib-link.
9535         * tests/havelib/rpathly/configure.ac: New file, from
9536         gettext/autoconf-lib-link with modifications.
9537         * tests/havelib/rpathlz/usez.c: New file, from
9538         gettext/autoconf-lib-link.
9539         * tests/havelib/rpathlz/Makefile.am: New file, from
9540         gettext/autoconf-lib-link.
9541         * tests/havelib/rpathlz/configure.ac: New file, from
9542         gettext/autoconf-lib-link with modifications.
9543         * tests/havelib/rpathlyx/usey.c: New file, from
9544         gettext/autoconf-lib-link.
9545         * tests/havelib/rpathlyx/Makefile.am: New file, from
9546         gettext/autoconf-lib-link.
9547         * tests/havelib/rpathlyx/configure.ac: New file, from
9548         gettext/autoconf-lib-link with modifications.
9549         * tests/havelib/rpathlzyx/usez.c: New file, from
9550         gettext/autoconf-lib-link.
9551         * tests/havelib/rpathlzyx/Makefile.am: New file, from
9552         gettext/autoconf-lib-link.
9553         * tests/havelib/rpathlzyx/configure.ac: New file, from
9554         gettext/autoconf-lib-link with modifications.
9555         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
9556         with modifications.
9557
9558 2010-04-02  Bruno Haible  <bruno@clisp.org>
9559
9560         gnulib-tool: Create distributed built sources also for the tests.
9561         * gnulib-tool (func_create_testdir): Also generate distributed built
9562         sources in the tests directory.
9563
9564 2010-04-02  Bruno Haible  <bruno@clisp.org>
9565
9566         gnulib-tool: Obey user's environment variables.
9567         * gnulib-tool (func_create_testdir): When creating built sources,
9568         respect the environment variables for autoconf, automake, etc. given by
9569         the user.
9570
9571 2010-04-02  Bruno Haible  <bruno@clisp.org>
9572
9573         gnulib-tool: Provide the value of --m4-base to modules.
9574         * gnulib-tool (func_import, func_create_testdir): Emit a definition
9575         of gl_m4_base.
9576
9577 2010-04-02  Eric Blake  <eblake@redhat.com>
9578
9579         maint.mk: fix some fallout
9580         * NEWS: Document the incompatible change, and its effect on cfg.mk.
9581         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
9582
9583 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9584
9585         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
9586         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
9587         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
9588         (sc_cast_of_x_alloc_return_value): Likewise.
9589         (sc_cast_of_alloca_return_value): Likewise.
9590         (sc_space_tab): Likewise.
9591         (sc_prohibit_atoi_atof): Likewise.
9592         (sc_prohibit_magic_number_exit): Likewise.
9593         (sc_error_exit_success): Likewise.
9594         (sc_file_system): Likewise.
9595         (sc_prohibit_have_config_h): Likewise.
9596         (sc_require_config_h): Likewise.
9597         (sc_prohibit_HAVE_MBRTOWC): Likewise.
9598         (sc_obsolete_symbols): Likewise.
9599         (sc_changelog): Likewise.
9600         (sc_program_name): Likewise.
9601         (sc_the_the): Likewise.
9602         (sc_trailing_blank): Likewise.
9603         (sc_two_space_separator_in_usage): Likewise.
9604         (sc_useless_cpp_parens): Likewise.
9605         (sc_GPL_version): Likewise.
9606         (sc_GFDL_version): Likewise.
9607         (sc_texinfo_acronym): Likewise.
9608         (sc_prohibit_cvs_keyword): Likewise.
9609         (sc_prohibit_stat_st_blocks): Likewise.
9610         (sc_prohibit_S_IS_definition): Likewise.
9611         (sc_redundant_const): Likewise.
9612         (sc_makefile_TAB_only_indentation): Likewise.
9613         (sc_m4_quote_check): Likewise.
9614         (sc_makefile_path_separator_check): Likewise.
9615         (sc_copyright_check): Likewise.
9616         (sc_Wundef_boolean): Likewise.
9617         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9618
9619         maint.mk: match 0 or more whitespace-before-function-call '('
9620         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
9621         that have zero or two-and-more spaces between the function name
9622         and the open parenthesis.
9623         (sc_error_message_warn_fatal): Likewise.
9624         (sc_error_message_uppercase): Likewise.
9625         (sc_error_message_period): Likewise.
9626
9627 2010-03-31  Eric Blake  <eblake@redhat.com>
9628
9629         maint.mk: check for [ as well as test
9630         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
9631         Based on a libvirt report by Matthias Bolte.
9632
9633         gnumakefile: don't squelch _version output
9634         * top/GNUmakefile (_version): Create one-shot dependency rather
9635         than using $(shell) when version must be regenerated.
9636         (_autoreconf): Run verbosely, by default.
9637
9638         sys_time: avoid compiler warnings
9639         * lib/sys_time.in.h (includes): Ensure gcc pragma is
9640         unconditional, fixing regression from 2010-03-29.
9641         Reported by Simon Josefsson.
9642
9643 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9644
9645         maint.mk: s/_header_without_use/_sc_header_without_use/
9646         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
9647         (sc_prohibit_assert_without_use): Use the new name.
9648         (sc_prohibit_close_stream_without_use): Likewise.
9649         (sc_prohibit_getopt_without_use): Likewise.
9650         (sc_prohibit_quotearg_without_use): Likewise.
9651         (sc_prohibit_quote_without_use): Likewise.
9652         (sc_prohibit_long_options_without_use): Likewise.
9653         (sc_prohibit_inttostr_without_use): Likewise.
9654         (sc_prohibit_ignore_value_without_use): Likewise.
9655         (sc_prohibit_error_without_use): Likewise.
9656         (sc_prohibit_xalloc_without_use): Likewise.
9657         (sc_prohibit_hash_without_use): Likewise.
9658         (sc_prohibit_hash_pjw_without_use): Likewise.
9659         (sc_prohibit_safe_read_without_use): Likewise.
9660         (sc_prohibit_argmatch_without_use): Likewise.
9661         (sc_prohibit_canonicalize_without_use): Likewise.
9662         (sc_prohibit_root_dev_ino_without_use): Likewise.
9663         (sc_prohibit_openat_without_use): Likewise.
9664         (sc_prohibit_c_ctype_without_use): Likewise.
9665         (sc_prohibit_signal_without_use): Likewise.
9666         (sc_prohibit_intprops_without_use): Likewise.
9667
9668 2010-03-30  Eric Blake  <eblake@redhat.com>
9669
9670         maint: improve module indicators
9671         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
9672         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
9673         columns, and avoid extra macro expansion.
9674
9675         fdopendir: work around FreeBSD bug
9676         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9677         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
9678         * modules/dirent (Makefile.am): Substitute it.
9679         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
9680         declaration.
9681         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
9682         fix.
9683         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9684
9685 2010-03-29  Bruno Haible  <bruno@clisp.org>
9686
9687         Emit #pragma system_header after the inclusion guard, not before.
9688         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
9689         guard that spans the entire file, not before. This enables an
9690         optimization in GCC's preprocessor.
9691         * lib/ctype.in.h: Likewise.
9692         * lib/dirent.in.h: Likewise.
9693         * lib/errno.in.h: Likewise.
9694         * lib/float.in.h: Likewise.
9695         * lib/getopt.in.h: Likewise.
9696         * lib/iconv.in.h: Likewise.
9697         * lib/langinfo.in.h: Likewise.
9698         * lib/locale.in.h: Likewise.
9699         * lib/math.in.h: Likewise.
9700         * lib/netdb.in.h: Likewise.
9701         * lib/netinet_in.in.h: Likewise.
9702         * lib/pty.in.h: Likewise.
9703         * lib/sched.in.h: Likewise.
9704         * lib/se-selinux.in.h: Likewise.
9705         * lib/search.in.h: Likewise.
9706         * lib/spawn.in.h: Likewise.
9707         * lib/stdarg.in.h: Likewise.
9708         * lib/stdint.in.h: Likewise.
9709         * lib/string.in.h: Likewise.
9710         * lib/strings.in.h: Likewise.
9711         * lib/sys_file.in.h: Likewise.
9712         * lib/sys_ioctl.in.h: Likewise.
9713         * lib/sys_time.in.h: Likewise.
9714         * lib/sys_times.in.h: Likewise.
9715         * lib/sys_utsname.in.h: Likewise.
9716         * lib/sys_wait.in.h: Likewise.
9717         * lib/sysexits.in.h: Likewise.
9718         * lib/wctype.in.h: Likewise.
9719
9720 2010-03-28  James Youngman  <jay@gnu.org>
9721
9722         save-cwd: don't leak a file descriptor when the caller execs.
9723         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
9724         saved file descriptor.
9725         * modules/save-cwd (Depends-on): Depend on cloexec.
9726
9727 2010-03-29  Bruno Haible  <bruno@clisp.org>
9728
9729         Remove vestiges of fts-lgpl module.
9730         * lib/fts_.h: Assume GNULIB_FTS is 1.
9731         * lib/fts.c: Likewise.
9732         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9733
9734 2010-03-28  Bruno Haible  <bruno@clisp.org>
9735
9736         Fix definition of tests witness macro.
9737         * gnulib-tool (func_import): Fix definition of witness macro.
9738
9739 2010-03-28  Bruno Haible  <bruno@clisp.org>
9740
9741         Fix ioctl's protoype on glibc systems.
9742         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
9743         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
9744         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
9745         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
9746         signature. If not, arrange to replace the ioctl function.
9747         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9748         REPLACE_IOCTL.
9749         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
9750         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
9751         Reported by Ludovic Courtès <ludo@gnu.org>.
9752
9753 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
9754
9755         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
9756         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
9757         made it so grep -r --include=GLOB* ... did not work.
9758
9759 2010-03-26  Jim Meyering  <meyering@redhat.com>
9760             Eric Blake  <eblake@redhat.com>
9761
9762         maint.mk: prohibit use of test's -o and -a operators
9763         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
9764
9765 2010-03-28  Bruno Haible  <bruno@clisp.org>
9766
9767         Remove unused GNULIB_XYZ macro definitions.
9768         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
9769         invocation.
9770
9771 2010-03-28  Bruno Haible  <bruno@clisp.org>
9772
9773         Mark privileged tests modules.
9774         * modules/idpriv-drop-tests (Status): New section.
9775         * modules/idpriv-droptemp-tests (Status): New section.
9776
9777 2010-03-28  Bruno Haible  <bruno@clisp.org>
9778
9779         Split C++ tests into separate tests modules.
9780         * modules/dirent-c++-tests: New file, extracted from
9781         modules/dirent-tests.
9782         * modules/dirent-tests: Depend on it.
9783         * modules/fcntl-h-c++-tests: New file, extracted from
9784         modules/fcntl-h-tests.
9785         * modules/fcntl-h-tests: Depend on it.
9786         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
9787         * modules/glob-tests: Depend on it.
9788         * modules/iconv-h-c++-tests: New file, extracted from
9789         modules/iconv-h-tests.
9790         * modules/iconv-h-tests: Depend on it.
9791         * modules/langinfo-c++-tests: New file, extracted from
9792         modules/langinfo-tests.
9793         * modules/langinfo-tests: Depend on it.
9794         * modules/locale-c++-tests: New file, extracted from
9795         modules/locale-tests.
9796         * modules/locale-tests: Depend on it.
9797         * modules/math-c++-tests: New file, extracted from modules/math-tests.
9798         * modules/math-tests: Depend on it.
9799         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
9800         * modules/pty-tests: Depend on it.
9801         * modules/search-c++-tests: New file, extracted from
9802         modules/search-tests.
9803         * modules/search-tests: Depend on it.
9804         * modules/signal-c++-tests: New file, extracted from
9805         modules/signal-tests.
9806         * modules/signal-tests: Depend on it.
9807         * modules/spawn-c++-tests: New file, extracted from
9808         modules/spawn-tests.
9809         * modules/spawn-tests: Depend on it.
9810         * modules/stdio-c++-tests: New file, extracted from
9811         modules/stdio-tests.
9812         * modules/stdio-tests: Depend on it.
9813         * modules/stdlib-c++-tests: New file, extracted from
9814         modules/stdlib-tests.
9815         * modules/stdlib-tests: Depend on it.
9816         * modules/string-c++-tests: New file, extracted from
9817         modules/string-tests.
9818         * modules/string-tests: Depend on it.
9819         * modules/sys_ioctl-c++-tests: New file, extracted from
9820         modules/sys_ioctl-tests.
9821         * modules/sys_ioctl-tests: Depend on it.
9822         * modules/sys_select-c++-tests: New file, extracted from
9823         modules/sys_select-tests.
9824         * modules/sys_select-tests: Depend on it.
9825         * modules/sys_socket-c++-tests: New file, extracted from
9826         modules/sys_socket-tests.
9827         * modules/sys_socket-tests: Depend on it.
9828         * modules/sys_stat-c++-tests: New file, extracted from
9829         modules/sys_stat-tests.
9830         * modules/sys_stat-tests: Depend on it.
9831         * modules/sys_time-c++-tests: New file, extracted from
9832         modules/sys_time-tests.
9833         * modules/sys_time-tests: Depend on it.
9834         * modules/time-c++-tests: New file, extracted from modules/time-tests.
9835         * modules/time-tests: Depend on it.
9836         * modules/unistd-c++-tests: New file, extracted from
9837         modules/unistd-tests.
9838         * modules/unistd-tests: Depend on it.
9839         * modules/wchar-c++-tests: New file, extracted from
9840         modules/wchar-tests.
9841         * modules/wchar-tests: Depend on it.
9842         * modules/wctype-c++-tests: New file, extracted from
9843         modules/wctype-tests.
9844         * modules/wctype-tests: Depend on it.
9845         Reported by Simon Josefsson.
9846
9847 2010-03-28  Bruno Haible  <bruno@clisp.org>
9848
9849         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
9850         * gnulib-tool (func_exists_module): New function, extracted from
9851         func_verify_module.
9852         (func_verify_module): Use it.
9853         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
9854         'foo' only if 'foo' exists.
9855         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
9856         module.
9857
9858 2010-03-28  Bruno Haible  <bruno@clisp.org>
9859
9860         gnulib-tool: Add support for special categories of tests.
9861         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
9862         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
9863         (func_usage): Document them.
9864         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
9865         inc_unportable_tests, inc_all_tests): New variables.
9866         (func_acceptable): Consider these variables.
9867         (func_modules_transitive_closure): Make it work when the 'Status' field
9868         consists of multiple words.
9869         (func_import): Store and restore the values of inc_cxx_tests,
9870         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
9871         inc_all_tests in gnulib-comp.m4.
9872         (func_create_testdir): Set inc_all_tests to true.
9873         * doc/gnulib.texi (Extra tests modules): New section.
9874         Suggested by Jim Meyering.
9875
9876 2010-03-28  Bruno Haible  <bruno@clisp.org>
9877
9878         ansi-c++-opt: Allow turning off the C++ build by default.
9879         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
9880         gl_CXX_CHOICE_DEFAULT_NO is defined.
9881         Requested by Eric Blake.
9882
9883 2010-03-28  Bruno Haible  <bruno@clisp.org>
9884
9885         unistd: Avoid #define replacements in C++ mode.
9886         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9887         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9888         setsockopt, shutdown, select): In C++, attach a warning to the function
9889         if possible, rather than #defining the symbol to a dysfunctional alias.
9890         Reported by John W. Eaton <jwe@gnu.org>.
9891
9892 2010-03-28  Bruno Haible  <bruno@clisp.org>
9893
9894         Fix link errors on mingw.
9895         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
9896         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
9897         $(LIBSOCKET).
9898         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
9899         $(LIBSOCKET).
9900
9901 2010-03-28  Bruno Haible  <bruno@clisp.org>
9902             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9903
9904         lib-ignore: Determine different options for different compilers.
9905         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
9906         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
9907         Add comments.
9908         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
9909         * NEWS: Mention the change.
9910
9911 2010-03-27  Bruno Haible  <bruno@clisp.org>
9912
9913         Remove unused GNULIB_XYZ macro definitions.
9914         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9915         * modules/fseek (configure.ac): Likewise.
9916         * modules/ioctl (configure.ac): Likewise.
9917         * modules/open (configure.ac): Likewise.
9918         * modules/stdlib-safer (configure.ac): Likewise.
9919
9920 2010-03-27  Bruno Haible  <bruno@clisp.org>
9921
9922         Add a remark about certain modules.
9923         * modules/malloc (Comment): New section.
9924         * modules/realloc (Comment): Likewise.
9925         * modules/sigpipe (Comment): Likewise.
9926
9927 2010-03-27  Bruno Haible  <bruno@clisp.org>
9928
9929         Resolve conflict between the two kinds of module indicators.
9930         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
9931         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
9932         * modules/canonicalize (configure.ac): Invoke
9933         gl_MODULE_INDICATOR_FOR_TESTS.
9934         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
9935         GNULIB_XYZ.
9936         * tests/test-dirent-c++.cc: Likewise.
9937         * tests/test-dirent-safer.c: Likewise.
9938         * tests/test-dup2.c: Likewise.
9939         * tests/test-fchdir.c: Likewise.
9940         * tests/test-fcntl-h-c++.cc: Likewise.
9941         * tests/test-getopt.c: Likewise.
9942         * tests/test-getopt.h: Likewise.
9943         * tests/test-langinfo-c++.cc: Likewise.
9944         * tests/test-locale-c++.cc: Likewise.
9945         * tests/test-math-c++.cc: Likewise.
9946         * tests/test-pty-c++.cc: Likewise.
9947         * tests/test-search-c++.cc: Likewise.
9948         * tests/test-signal-c++.cc: Likewise.
9949         * tests/test-spawn-c++.cc: Likewise.
9950         * tests/test-stdio-c++.cc: Likewise.
9951         * tests/test-stdlib-c++.cc: Likewise.
9952         * tests/test-string-c++.cc: Likewise.
9953         * tests/test-sys_ioctl-c++.cc: Likewise.
9954         * tests/test-sys_select-c++.cc: Likewise.
9955         * tests/test-sys_socket-c++.cc: Likewise.
9956         * tests/test-sys_stat-c++.cc: Likewise.
9957         * tests/test-sys_time-c++.cc: Likewise.
9958         * tests/test-time-c++.cc: Likewise.
9959         * tests/test-unistd-c++.cc: Likewise.
9960         * tests/test-wchar-c++.cc: Likewise.
9961         * tests/uninorm/test-u8-nfc.c: Likewise.
9962         * tests/uninorm/test-u8-nfd.c: Likewise.
9963         * tests/uninorm/test-u8-nfkc.c: Likewise.
9964         * tests/uninorm/test-u8-nfkd.c: Likewise.
9965         * tests/uninorm/test-u16-nfc.c: Likewise.
9966         * tests/uninorm/test-u16-nfd.c: Likewise.
9967         * tests/uninorm/test-u16-nfkc.c: Likewise.
9968         * tests/uninorm/test-u16-nfkd.c: Likewise.
9969         * tests/uninorm/test-u32-nfc.c: Likewise.
9970         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9971         * tests/uninorm/test-u32-nfd.c: Likewise.
9972         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9973         * tests/uninorm/test-u32-nfkc.c: Likewise.
9974         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9975         * tests/uninorm/test-u32-nfkd.c: Likewise.
9976         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9977         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9978
9979 2010-03-27  Bruno Haible  <bruno@clisp.org>
9980
9981         Distinguish two kinds of module indicators.
9982         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
9983         gl_MODULE_INDICATOR.
9984         (gl_MODULE_INDICATOR): New macro.
9985         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9986         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
9987         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9988         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9989         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9990         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9991         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9992         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9993         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9994         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9995         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9996         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9998         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
9999         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10000         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10001         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10002         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10003         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10004         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10005         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10006         * modules/cloexec (configure.ac): Likewise.
10007         * modules/getopt-gnu (configure.ac): Likewise.
10008         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10009         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10010         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10011         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10012
10013 2010-03-27  Bruno Haible  <bruno@clisp.org>
10014
10015         New module description field 'Comment'.
10016         * gnulib-tool: New option --extract-comment.
10017         (func_usage): Document it.
10018         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10019         (func_get_comment): New function.
10020         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10021
10022 2010-03-27  Bruno Haible  <bruno@clisp.org>
10023
10024         Addendum to 2010-02-07 commit.
10025         * gnulib-tool (func_usage): Document --extract-applicability option.
10026
10027 2010-03-27  Bruno Haible  <bruno@clisp.org>
10028
10029         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10030         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10031         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10032         rather than link errors.
10033
10034 2010-03-27  Bruno Haible  <bruno@clisp.org>
10035
10036         Avoid side effects from tests-related modules on the compilation of lib.
10037         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10038         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10039         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10040         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10041         macro.
10042         (func_import): Define a witness macro. Assign it a value that depends
10043         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10044         tests-related modules.
10045         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10046         Reported by Jim Meyering.
10047
10048 2010-03-27  Bruno Haible  <bruno@clisp.org>
10049
10050         Factorize common .m4 code.
10051         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10052         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10053         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10054         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10055         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10056         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10057         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10058         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10059         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10060         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10061         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10062         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10063         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10064         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10065         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10066         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10067         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10068         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10070         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10071         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10072         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10073         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10074         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10075         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10076         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10077         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10078         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10079         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10080         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10081         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10082         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10083
10084 2010-03-27  Bruno Haible  <bruno@clisp.org>
10085
10086         Fix a compilation error on Cygwin with g++ >= 4.3.
10087         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10088         if it is undefined or if we alias it to chmod.
10089         (lstat): Don't warn about the use of this function if it is undefined
10090         or if we alias it to stat.
10091         Reported by Simon Josefsson.
10092
10093 2010-03-27  Bruno Haible  <bruno@clisp.org>
10094
10095         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10096         * modules/getlogin (configure.ac): Update.
10097
10098         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10099         * modules/getlogin_r (configure.ac): Update.
10100
10101         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10103         * modules/inet_ntop (configure.ac): Update.
10104
10105         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10106         * modules/inet_pton (configure.ac): Update.
10107
10108         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10109         * modules/mbslen (configure.ac): Update.
10110
10111         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10112         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10113         * modules/forkpty (configure.ac): Update.
10114         * modules/openpty (configure.ac): Update.
10115
10116 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10117
10118         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10119         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10120
10121 2010-03-25  Eric Blake  <eblake@redhat.com>
10122
10123         maint: use pragma consistently across replacement headers
10124         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10125         * lib/dirent.in.h (system_header): Likewise.
10126         * lib/errno.in.h (system_header): Likewise.
10127         * lib/float.in.h (system_header): Likewise.
10128         * lib/getopt.in.h (system_header): Likewise.
10129         * lib/iconv.in.h (system_header): Likewise.
10130         * lib/inttypes.in.h (system_header): Likewise.
10131         * lib/langinfo.in.h (system_header): Likewise.
10132         * lib/locale.in.h (system_header): Likewise.
10133         * lib/math.in.h (system_header): Likewise.
10134         * lib/netdb.in.h (system_header): Likewise.
10135         * lib/netinet_in.in.h (system_header): Likewise.
10136         * lib/pty.in.h (system_header): Likewise.
10137         * lib/sched.in.h (system_header): Likewise.
10138         * lib/se-selinux.in.h (system_header): Likewise.
10139         * lib/search.in.h (system_header): Likewise.
10140         * lib/spawn.in.h (system_header): Likewise.
10141         * lib/stdarg.in.h (system_header): Likewise.
10142         * lib/stdint.in.h (system_header): Likewise.
10143         * lib/string.in.h (system_header): Likewise.
10144         * lib/strings.in.h (system_header): Likewise.
10145         * lib/sys_file.in.h (system_header): Likewise.
10146         * lib/sys_ioctl.in.h (system_header): Likewise.
10147         * lib/sys_socket.in.h (system_header): Likewise.
10148         * lib/sys_times.in.h (system_header): Likewise.
10149         * lib/sys_utsname.in.h (system_header): Likewise.
10150         * lib/sys_wait.in.h (system_header): Likewise.
10151         * lib/sysexits.in.h (system_header): Likewise.
10152         * lib/unistd.in.h (system_header): Likewise.
10153         * lib/wctype.in.h (system_header): Likewise.
10154
10155         arpa/inet: fix mingw compilation warning
10156         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10157         Reported by Matthew Bolte.
10158
10159 2010-03-25  Bruno Haible  <bruno@clisp.org>
10160
10161         Avoid collision between gnulib wrapper and libintl wrapper.
10162         * lib/printf.c (printf): Don't define if a printf wrapper is already
10163         defined in intl/printf.c.
10164         Reported by Michel Boaventura <michel@michelboaventura.com>.
10165
10166 2010-03-25  Bruno Haible  <bruno@clisp.org>
10167
10168         Use ANSI C.
10169         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10170
10171 2010-03-25  Bruno Haible  <bruno@clisp.org>
10172
10173         Minor formatting changes.
10174         * lib/acosl.c: Insert space before function argument list.
10175         * lib/argz.c: Likewise.
10176         * lib/asinl.c: Likewise.
10177         * lib/expl.c: Likewise.
10178         * lib/gen-uni-tables.c: Likewise.
10179         * lib/gettext.h: Likewise.
10180         * lib/glthread/lock.h: Likewise.
10181         * lib/tanl.c: Likewise.
10182         * lib/uniname/uniname.c: Likewise.
10183         * tests/test-idpriv-drop.c: Likewise.
10184         * tests/test-idpriv-droptemp.c: Likewise.
10185         * tests/test-lock.c: Likewise.
10186         * tests/test-tls.c: Likewise.
10187         * lib/argp-help.c: Insert space before function-like macro argument
10188         list.
10189         * lib/memcmp.c: Likewise.
10190         * tests/test-base64.c: Likewise.
10191         * lib/localename.c: Insert space before sizeof's argument list.
10192         * lib/safe-alloc.h: Likewise.
10193         * lib/file-set.h: Insert space before macro argument list.
10194         * tests/test-argp.c: Likewise.
10195         * lib/argp-namefrob.h: Insert space before function parameter list.
10196         * lib/getaddrinfo.c: Likewise.
10197         * lib/netdb.in.h: Likewise.
10198         * lib/parse-duration.h: Likewise.
10199         * lib/parse-duration.c: Likewise.
10200         * lib/poll.c: Likewise.
10201         * lib/select.c: Likewise.
10202         * lib/trim.h: Likewise.
10203         * tests/test-usleep.c: Likewise.
10204         * lib/ldexpl.c: Insert space before function parameter list and before
10205         function argument list.
10206         * lib/logl.c: Likewise.
10207         * lib/sqrtl.c: Likewise.
10208         * lib/trim.c: Likewise.
10209         * lib/cosl.c: Use GNU style indentation. Insert space before function
10210         argument list.
10211         * lib/sinl.c: Likewise.
10212         * lib/tsearch.c: Insert space after 'for'.
10213         Reported by Jim Meyering.
10214
10215 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10216
10217         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10218         config header before grepping, as it's not present before
10219         autoreconf/configure are run.  Reported by Simon Josefsson.
10220
10221 2010-03-23  Bruno Haible  <bruno@clisp.org>
10222
10223         pt_chown: Make it work with automake < 1.11.
10224         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10225         Reported by Simon Josefsson.
10226
10227 2010-03-23  Bruno Haible  <bruno@clisp.org>
10228
10229         pt_chown: Don't depend on GPLed modules.
10230         * lib/pt_chown.c: Don't include idpriv.h.
10231         (main): Don't drop privileges.
10232         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10233         Reported by Simon Josefsson.
10234
10235 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10236
10237         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10238         suggestions from karl@freefriends.org (Karl Berry).
10239
10240 2010-03-22  Eric Blake  <eblake@redhat.com>
10241
10242         gethostname: further tweaks
10243         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10244         are overriding gethostname.
10245         Suggested by Bruno Haible.
10246
10247 2010-03-21  Bruno Haible  <bruno@clisp.org>
10248
10249         Fix comments.
10250         * lib/forkpty.c (rpl_forkpty): Fix comment.
10251         * lib/openpty.c (rpl_openpty): Likewise.
10252         Reported by Eric Blake.
10253
10254 2010-03-22  Eric Blake  <eblake@redhat.com>
10255
10256         gethostname: fix build on mingw
10257         * lib/unistd.in.h (includes): Work around fact that mingw
10258         <winsock2.h> re-includes <unistd.h>, by avoiding any
10259         redeclarations if we are being included by <winsock2.h>.
10260         Reported by Matthias Bolte.
10261
10262 2010-03-21  Bruno Haible  <bruno@clisp.org>
10263
10264         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10265         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10266         modifications.
10267         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10268         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10269         provide the replacement.
10270         * modules/forkpty (Depends-on): Add openpty, login_tty.
10271         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10272         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10273         * doc/glibc-functions/forkpty.texi: More supported platforms.
10274         * config/srclist.txt: Add forkpty.c (commented).
10275
10276 2010-03-21  Bruno Haible  <bruno@clisp.org>
10277
10278         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10279         (Makefile.am): Verify that PTY_LIB is defined.
10280
10281         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10282
10283 2010-03-21  Bruno Haible  <bruno@clisp.org>
10284
10285         Tests for module 'login_tty'.
10286         * modules/login_tty-tests: New file.
10287         * tests/test-login_tty.c: New file.
10288
10289         New module 'login_tty'.
10290         * lib/login_tty.c: New file.
10291         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10292         * modules/login_tty: New file.
10293         * doc/glibc-functions/login_tty.texi: Mention the new module.
10294
10295 2010-03-21  Bruno Haible  <bruno@clisp.org>
10296
10297         login_tty: Documentation.
10298         * doc/glibc-functions/login_tty.texi: New file.
10299         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10300
10301 2010-03-21  Bruno Haible  <bruno@clisp.org>
10302
10303         pty: Consistent macro naming.
10304         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10305         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10306         * modules/pty (configure.ac): Update.
10307
10308 2010-03-21  Bruno Haible  <bruno@clisp.org>
10309
10310         Tests for openpty: Make stricter.
10311         * tests/test-openpty.c (main): Add test of canonical processing and
10312         erase.
10313         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10314
10315         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10316         * lib/openpty.c (openpty): New replacement function.
10317         * lib/pty.in.h: Include <termios.h>.
10318         (openpty): Update declaration. Add comments.
10319         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10320         is not declared, arrange to provide the replacement. Check for _getpty
10321         and posix_openpt.
10322         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10323         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10324         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10325         * modules/pty-tests (test_pty_c___LDADD): New variable.
10326         * doc/glibc-functions/openpty.texi: More supported platforms.
10327
10328 2010-03-21  Bruno Haible  <bruno@clisp.org>
10329
10330         setenv: Tweaks.
10331         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10332         the test program.
10333         * doc/posix-functions/setenv.texi: Update platforms list.
10334
10335 2010-03-21  Bruno Haible  <bruno@clisp.org>
10336
10337         New module 'unlockpt'.
10338         * lib/unlockpt.c: New file, from glibc with modifications.
10339         * m4/unlockpt.m4: New file.
10340         * modules/unlockpt: New file.
10341         * lib/stdlib.in.h (unlockpt): New declaration.
10342         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10343         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10344         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10345         HAVE_UNLOCKPT.
10346         * doc/posix-functions/unlockpt.texi: Mention the new module.
10347         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10348         * config/srclist.txt: Add unlockpt.c (commented).
10349
10350 2010-03-21  Jim Meyering  <meyering@redhat.com>
10351
10352         maint.mk: prohibit inclusion of "intprops.h" without use
10353         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10354
10355 2010-03-21  Bruno Haible  <bruno@clisp.org>
10356
10357         New module 'grantpt'.
10358         * lib/grantpt.c: New file, from glibc with modifications.
10359         * m4/grantpt.m4: New file.
10360         * modules/grantpt: New file.
10361         * lib/stdlib.in.h (grantpt): New declaration.
10362         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10363         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10364         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10365         HAVE_GRANTPT.
10366         * doc/posix-functions/grantpt.texi: Mention the new module.
10367         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10368         * config/srclist.txt: Add grantpt.c (commented).
10369
10370 2010-03-21  Bruno Haible  <bruno@clisp.org>
10371
10372         New module 'pt_chown'.
10373         * lib/pt_chown.c: New file, from glibc with modifications.
10374         * lib/pty-private.h: New file, from glibc with modifications.
10375         * modules/pt_chown: New file.
10376         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10377
10378 2010-03-21  Bruno Haible  <bruno@clisp.org>
10379
10380         Tests for module 'ptsname'.
10381         * modules/ptsname-tests: New file.
10382         * tests/test-ptsname.c: New file.
10383
10384         New module 'ptsname'.
10385         * lib/ptsname.c: New file, from glibc with modifications.
10386         * m4/ptsname.m4: New file.
10387         * modules/ptsname: New file.
10388         * lib/stdlib.in.h (ptsname): New declaration.
10389         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10390         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10391         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10392         HAVE_PTSNAME.
10393         * doc/posix-functions/ptsname.texi: Mention the new module.
10394         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10395         * config/srclist.txt: Add ptsname.c (commented).
10396
10397 2010-03-21  Bruno Haible  <bruno@clisp.org>
10398
10399         Tests for module 'ttyname_r'.
10400         * modules/ttyname_r-tests: New file.
10401         * tests/test-ttyname_r.c: New file.
10402
10403         New module 'ttyname_r'.
10404         * lib/ttyname_r.c: New file.
10405         * m4/ttyname_r.m4: New file.
10406         * modules/ttyname_r: New file.
10407         * lib/unistd.in.h (ttyname_r): New declaration.
10408         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10409         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10410         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10411         HAVE_TTYNAME_R.
10412         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10413         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10414
10415 2010-03-20  Bruno Haible  <bruno@clisp.org>
10416
10417         signal: Undefine macro definitions in C++ mode.
10418         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10419         sigfillset): Undefine macro definitions from the system header in C++
10420         mode.
10421         Reported by John W. Eaton <jwe@gnu.org>.
10422
10423 2010-03-20  Bruno Haible  <bruno@clisp.org>
10424
10425         Ensure no #include statements inside extern "C" { ... }.
10426         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10427         contain #include statements.
10428         * lib/time.in.h: Likewise.
10429
10430 2010-03-20  Bruno Haible  <bruno@clisp.org>
10431
10432         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10433         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10434         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10435         Reported by John W. Eaton <jwe@gnu.org>.
10436
10437 2010-03-20  Bruno Haible  <bruno@clisp.org>
10438
10439         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10440         Reported by Jim Meyering.
10441
10442 2010-03-20  Bruno Haible  <bruno@clisp.org>
10443
10444         pipe: Set errno upon failure.
10445         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10446         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10447         errno value in error message.
10448
10449 2010-03-20  Bruno Haible  <bruno@clisp.org>
10450             Jim Meyering  <meyering@redhat.com>
10451
10452         lchown: Avoid "unused variable" warning.
10453         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10454
10455 2010-03-20  Bruno Haible  <bruno@clisp.org>
10456
10457         Work around unlink() bug on MacOS X 10.5.6.
10458         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10459         attempting to unlink a parent directory.
10460         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10461         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10462         activate for the replacement function.
10463         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10464
10465 2010-03-20  Bruno Haible  <bruno@clisp.org>
10466
10467         Fix link errors on Solaris 8.
10468         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10469         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10470
10471 2010-03-19  Jim Meyering  <meyering@redhat.com>
10472
10473         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10474         The _LIBC implementation of build_range_exp correctly honors the
10475         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10476         However, the non-_LIBC implementation would ignore that syntax-bit
10477         flag and return REG_ERANGE unconditionally.
10478         This change makes it honor that flag.
10479         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
10480         Make two pointer parameters "const".
10481         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
10482         (parse_bracket_exp): Update caller.
10483
10484         regex.m4: correct the reversed range endpoint ([b-a]) test
10485         * m4/regex.m4: When requiring that [b-a] evoke failure,
10486         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
10487         test pass once again for x86-based systems.
10488
10489 2010-03-19  Bruno Haible  <bruno@clisp.org>
10490
10491         scandir: Fix link error on Solaris 8.
10492         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
10493         macros.
10494
10495 2010-03-19  Bruno Haible  <bruno@clisp.org>
10496
10497         getusershell: Fix documentation.
10498         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
10499         module.
10500         * doc/glibc-functions/setusershell.texi: Likewise.
10501
10502         getusershell: Provide declaration, missing on Solaris 9.
10503         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10504         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10505         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10506         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10508         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10509         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10510         HAVE_GETUSERSHELL.
10511         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10512
10513 2010-03-19  Bruno Haible  <bruno@clisp.org>
10514
10515         wctype: Provide iswblank function.
10516         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10517         exists and is fine.
10518         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10519         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10520         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10521         * doc/posix-functions/iswblank.texi: Update.
10522
10523 2010-03-19  Bruno Haible  <bruno@clisp.org>
10524
10525         Tests of module 'pty' in C++ mode.
10526         * modules/pty-tests: New file.
10527         * tests/test-pty-c++.cc: New file.
10528         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10529
10530 2010-03-19  Eric Blake  <eblake@redhat.com>
10531
10532         logb: fix documentation
10533         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10534         1.5 declaration bug.
10535
10536         forkpty, openpty: prefer glibc's const-safe prototype
10537         * lib/forkpty.c (rpl_forkpty): New file.
10538         * lib/openpty.c (rpl_openpty): Likewise.
10539         * modules/forkpty (Files): Distribute it.
10540         * modules/openpty (Files): Likewise.
10541         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10542         check...
10543         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10544         replacement for for non-const BSD signature.
10545         * modules/pty (Makefile.am): Substitute witnesses.
10546         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10547         * tests/test-forkpty.c: Update signature check.
10548         * tests/test-openpty.c: Likewise.
10549         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
10550         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10551
10552         forkpty, openpty: split functions into new modules
10553         * modules/pty (Makefile.am): Substitute new witnesses.
10554         (Libraries): Move library detection...
10555         * modules/forkpty: ...into new module.
10556         * modules/openpty: Another new module.
10557         * modules/pty-tests: Rename and split...
10558         * modules/forkpty-tests: ...to this...
10559         * modules/openpty-tests: ...and this.
10560         * tests/test-pty.c: Rename and split...
10561         * tests/test-forkpty.c: ...to this...
10562         * tests/test-openpty.c: ...and this.
10563         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
10564         (gl_PTY): Split library searching...
10565         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
10566         (gl_FORKPTY, gl_OPENPTY): New macros.
10567         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
10568         * NEWS: Mention the split.
10569         * MODULES.html.sh (Misc): Document the modules.
10570         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
10571         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10572
10573         pty: improve replacement header
10574         * lib/pty.in.h: New file.
10575         * modules/pty (Files): Ship it.
10576         (Makefile.am): Always build replacement.
10577         * m4/pty.m4: Rename...
10578         * m4/pty_h.m4: ...to this.
10579         (gl_PTY): Modernize setting of witness macros; update check of
10580         forkpty to take proper advantage of cache.
10581         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
10582
10583         getopt: avoid compiler warning
10584         * lib/getopt.c (attribute_hidden): Remove unused macro.
10585
10586 2010-03-18  Bruno Haible  <bruno@clisp.org>
10587
10588         Fix link errors on Solaris 8.
10589         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
10590         * modules/search-tests (test_search_c___LDADD): Likewise.
10591         * modules/signal-tests (test_signal_c___LDADD): Likewise.
10592         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
10593         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
10594         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
10595         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
10596         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
10597         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
10598
10599 2010-03-18  Bruno Haible  <bruno@clisp.org>
10600
10601         Fix bug introduced on 2010-03-14.
10602         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
10603         (gl_SPAWN_H): Require it.
10604         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
10605         Reported by Simon Josefsson.
10606
10607 2010-03-18  Bruno Haible  <bruno@clisp.org>
10608
10609         Fix typo introduced on 2009-12-31.
10610         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
10611         posix_spawn_file_actions_adddup2.
10612
10613 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
10614         and Eric Blake  <eblake@redhat.com>
10615
10616         test-vc-list-files-git: make more robust
10617         * tests/test-vc-list-files-git.sh: Unset problematic environment
10618         variables.  Chain commands together.
10619
10620 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
10621
10622         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
10623         `AC_CHECK_DECL' invocation.
10624
10625 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
10626
10627         * lib/inttostr.c (inttostr): Make sure the invocation of verify
10628         appears before executable statements. Suggested by Petr Sumbera
10629         <Petr.Sumbera@Sun.COM>.
10630
10631 2010-03-14  Bruno Haible  <bruno@clisp.org>
10632
10633         * tests/test-flock.c (test_exclusive): Comment out a test that causes
10634         portability problems. Instead use a simpler test.
10635         (main): Check that invalid arguments are rejected only on Linux.
10636
10637 2010-03-14  Bruno Haible  <bruno@clisp.org>
10638
10639         Fix bug introduced on 2009-12-31.
10640         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10641         gl_PREREQ_SYS_H_WINSOCK2 always.
10642         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
10643         SYS_SOCKET_H variable.
10644         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10645         Update comments.
10646         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
10647         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10648         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10649         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10650         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10651
10652 2010-03-14  Bruno Haible  <bruno@clisp.org>
10653
10654         Fix values returned by sinl, cosl.
10655         * lib/trigl.h: Add specification comments.
10656         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
10657         that combines the values from the precomputed table with the values of
10658         the Chebyshev polynomials.
10659
10660 2010-03-14  Bruno Haible  <bruno@clisp.org>
10661
10662         Fix compilation error when modules 'posix_spawn[p]' are not used.
10663         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
10664         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
10665
10666 2010-03-14  Bruno Haible  <bruno@clisp.org>
10667
10668         Fix compilation error on mingw when module 'time_r' is not used.
10669         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
10670         is 1.
10671         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
10672         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10673         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
10674         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
10675
10676 2010-03-14  Bruno Haible  <bruno@clisp.org>
10677
10678         Fix compilation error with Sun C.
10679         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
10680         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
10681         instead of GCC specific ULONG_LONG_MAX.
10682         * lib/xstrtoll.c: Likewise.
10683         * lib/xstrtoull.c: Likewise.
10684
10685 2010-03-13  Bruno Haible  <bruno@clisp.org>
10686
10687         Allow the user to disable C++ code and tests.
10688         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
10689         (gl_PROG_ANSI_CXX): Require it.
10690
10691 2010-03-13  Bruno Haible  <bruno@clisp.org>
10692
10693         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10694         cases.
10695
10696 2010-03-13  Bruno Haible  <bruno@clisp.org>
10697
10698         Test that gnulib does not break the standard C++ headers.
10699         * tests/test-locale-c++2.cc: New file.
10700         * modules/locale-tests (Files): Add it.
10701         (Makefile.am): Compile it for test-locale-c++.
10702         * tests/test-math-c++2.cc: New file.
10703         * modules/math-tests (Files): Add it.
10704         (Makefile.am): Compile it for test-math-c++.
10705         * tests/test-signal-c++2.cc: New file.
10706         * modules/signal-tests (Files): Add it.
10707         (Makefile.am): Compile it for test-signal-c++.
10708         * tests/test-stdio-c++2.cc: New file.
10709         * modules/stdio-tests (Files): Add it.
10710         (Makefile.am): Compile it for test-stdio-c++.
10711         * tests/test-stdlib-c++2.cc: New file.
10712         * modules/stdlib-tests (Files): Add it.
10713         (Makefile.am): Compile it for test-stdlib-c++.
10714         * tests/test-string-c++2.cc: New file.
10715         * modules/string-tests (Files): Add it.
10716         (Makefile.am): Compile it for test-string-c++.
10717         * tests/test-time-c++2.cc: New file.
10718         * modules/time-tests (Files): Add it.
10719         (Makefile.am): Compile it for test-time-c++.
10720         Reported by John W. Eaton <jwe@gnu.org>.
10721
10722 2010-03-13  Bruno Haible  <bruno@clisp.org>
10723
10724         * gnulib-tool (func_usage): Clarify which options are available for
10725         --create-testdir and --create-megatestdir.
10726
10727 2010-03-13  Bruno Haible  <bruno@clisp.org>
10728
10729         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
10730         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
10731         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
10732         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10733         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
10734         when appropriate.
10735         Reported by Jim Meyering.
10736
10737 2010-03-12  Simon Josefsson  <simon@josefsson.org>
10738
10739         * gnulib-tool (func_import): Explain origin of code.
10740
10741 2010-03-12  Bruno Haible  <bruno@clisp.org>
10742
10743         Fix problem with automake's definition of CXXLINK.
10744         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
10745         Reported by Simon Josefsson and Ludovic Courtès.
10746
10747 2010-03-12  Bruno Haible  <bruno@clisp.org>
10748
10749         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
10750         stable releases.
10751
10752 2010-03-11  Bruno Haible  <bruno@clisp.org>
10753
10754         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
10755         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
10756         whether the system provides one variant or multiple variants of the
10757         function.
10758         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
10759         C++ compilers.
10760         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
10761         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
10762         Reported by Jim Meyering.
10763
10764 2010-03-09  Simon Josefsson  <simon@josefsson.org>
10765
10766         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
10767
10768 2010-03-08  Bruno Haible  <bruno@clisp.org>
10769
10770         gnulib-tool: Add support for --libtool in --create-testdir.
10771         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
10772         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
10773
10774 2010-03-08  Eric Blake  <eblake@redhat.com>
10775
10776         gnulib-tool.texi: mention possibility of git submodule
10777         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
10778         submodules.
10779         * doc/.gitignore: Ignore another generated file.
10780
10781 2010-03-08  Karl Berry  <karl@gnu.org>
10782
10783         * doc/gnulib-tool.texi (VCS Issues): Mention third option
10784         of committing gnulib files while skipping others.
10785
10786 2010-03-07  Bruno Haible  <bruno@clisp.org>
10787
10788         Tests of module 'wctype' in C++ mode.
10789         * tests/test-wctype-c++.cc: New file.
10790         * modules/wctype-tests (Files): Add it and tests/signature.h.
10791         (Depends-on): Add ansi-c++-opt.
10792         (Makefile.am): Arrange to compile and run test-wctype-c++.
10793
10794         Tests of module 'wchar' in C++ mode.
10795         * tests/test-wchar-c++.cc: New file.
10796         * modules/wchar-tests (Files): Add it and tests/signature.h.
10797         (Depends-on): Add ansi-c++-opt.
10798         (Makefile.am): Arrange to compile and run test-wchar-c++.
10799         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
10800         gl_MODULE_INDICATOR.
10801
10802         Tests of module 'unistd' in C++ mode.
10803         * tests/test-unistd-c++.cc: New file.
10804         * modules/unistd-tests (Files): Add it and tests/signature.h.
10805         (Depends-on): Add ansi-c++-opt.
10806         (Makefile.am): Arrange to compile and run test-unistd-c++.
10807         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
10808         gl_MODULE_INDICATOR.
10809
10810         Tests of module 'time' in C++ mode.
10811         * tests/test-time-c++.cc: New file.
10812         * modules/time-tests (Files): Add it and tests/signature.h.
10813         (Depends-on): Add ansi-c++-opt.
10814         (Makefile.am): Arrange to compile and run test-time-c++.
10815         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10816
10817         Tests of module 'sys_time' in C++ mode.
10818         * tests/test-sys_time-c++.cc: New file.
10819         * modules/sys_time-tests (Files): Add it and tests/signature.h.
10820         (Depends-on): Add ansi-c++-opt.
10821         (Makefile.am): Arrange to compile and run test-sys_time-c++.
10822         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
10823         gl_MODULE_INDICATOR.
10824
10825         Tests of module 'sys_stat' in C++ mode.
10826         * tests/test-sys_stat-c++.cc: New file.
10827         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
10828         (Depends-on): Add ansi-c++-opt.
10829         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
10830         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
10831         gl_MODULE_INDICATOR.
10832
10833         Tests of module 'sys_socket' in C++ mode.
10834         * tests/test-sys_socket-c++.cc: New file.
10835         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
10836         (Depends-on): Add ansi-c++-opt.
10837         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
10838         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
10839         gl_MODULE_INDICATOR.
10840
10841         Tests of module 'sys_select' in C++ mode.
10842         * tests/test-sys_select-c++.cc: New file.
10843         * modules/sys_select-tests (Files): Add it and tests/signature.h.
10844         (Depends-on): Add ansi-c++-opt.
10845         (Makefile.am): Arrange to compile and run test-sys_select-c++.
10846         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
10847         gl_MODULE_INDICATOR.
10848
10849         Tests of module 'sys_ioctl' in C++ mode.
10850         * tests/test-sys_ioctl-c++.cc: New file.
10851         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
10852         (Depends-on): Add ansi-c++-opt.
10853         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
10854         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
10855         gl_MODULE_INDICATOR.
10856
10857         Tests of module 'string' in C++ mode.
10858         * tests/test-string-c++.cc: New file.
10859         * modules/string-tests (Files): Add it and tests/signature.h.
10860         (Depends-on): Add ansi-c++-opt.
10861         (Makefile.am): Arrange to compile and run test-string-c++.
10862         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
10863         gl_MODULE_INDICATOR.
10864
10865         Tests of module 'stdlib' in C++ mode.
10866         * tests/test-stdlib-c++.cc: New file.
10867         * modules/stdlib-tests (Files): Add it and tests/signature.h.
10868         (Depends-on): Add ansi-c++-opt.
10869         (Makefile.am): Arrange to compile and run test-stdlib-c++.
10870         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
10871         gl_MODULE_INDICATOR.
10872
10873         Tests of module 'stdio' in C++ mode.
10874         * tests/test-stdio-c++.cc: New file.
10875         * modules/stdio-tests (Files): Add it and tests/signature.h.
10876         (Depends-on): Add ansi-c++-opt.
10877         (Makefile.am): Arrange to compile and run test-stdio-c++.
10878         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
10879         gl_MODULE_INDICATOR.
10880
10881         Tests of module 'spawn' in C++ mode.
10882         * tests/test-spawn-c++.cc: New file.
10883         * modules/spawn-tests (Files): Add it and tests/signature.h.
10884         (Depends-on): Add ansi-c++-opt.
10885         (Makefile.am): Arrange to compile and run test-spawn-c++.
10886         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
10887         gl_MODULE_INDICATOR.
10888
10889         Tests of module 'signal' in C++ mode.
10890         * tests/test-signal-c++.cc: New file.
10891         * modules/signal-tests (Files): Add it and tests/signature.h.
10892         (Depends-on): Add ansi-c++-opt.
10893         (Makefile.am): Arrange to compile and run test-signal-c++.
10894         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
10895         gl_MODULE_INDICATOR.
10896
10897         Tests of module 'search' in C++ mode.
10898         * tests/test-search-c++.cc: New file.
10899         * modules/search-tests (Files): Add it and tests/signature.h.
10900         (Depends-on): Add ansi-c++-opt.
10901         (Makefile.am): Arrange to compile and run test-search-c++.
10902         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
10903         gl_MODULE_INDICATOR.
10904
10905         Tests of module 'math' in C++ mode.
10906         * tests/test-math-c++.cc: New file.
10907         * modules/math-tests (Files): Add it and tests/signature.h.
10908         (Depends-on): Add ansi-c++-opt.
10909         (Makefile.am): Arrange to compile and run test-math-c++.
10910         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10911
10912         Tests of module 'locale' in C++ mode.
10913         * tests/test-locale-c++.cc: New file.
10914         * modules/locale-tests (Files): Add it and tests/signature.h.
10915         (Depends-on): Add ansi-c++-opt.
10916         (Makefile.am): Arrange to compile and run test-locale-c++.
10917         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
10918         gl_MODULE_INDICATOR.
10919
10920         Tests of module 'langinfo' in C++ mode.
10921         * tests/test-langinfo-c++.cc: New file.
10922         * modules/langinfo-tests (Files): Add it and tests/signature.h.
10923         (Depends-on): Add ansi-c++-opt.
10924         (Makefile.am): Arrange to compile and run test-langinfo-c++.
10925         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
10926         gl_MODULE_INDICATOR.
10927
10928         Tests of module 'iconv-h' in C++ mode.
10929         * tests/test-iconv-h-c++.cc: New file.
10930         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
10931         (Depends-on): Add ansi-c++-opt.
10932         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
10933
10934         Tests of module 'glob' in C++ mode.
10935         * tests/test-glob-c++.cc: New file.
10936         * modules/glob-tests (Files): Add it.
10937         (Depends-on): Add ansi-c++-opt.
10938         (Makefile.am): Arrange to compile and run test-glob-c++.
10939
10940         Tests of module 'fcntl-h' in C++ mode.
10941         * tests/test-fcntl-h-c++.cc: New file.
10942         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
10943         (Depends-on): Add ansi-c++-opt.
10944         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
10945         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
10946         gl_MODULE_INDICATOR.
10947
10948         Tests of module 'dirent' in C++ mode.
10949         * tests/test-dirent-c++.cc: New file.
10950         * modules/dirent-tests (Files): Add it and tests/signature.h.
10951         (Depends-on): Add ansi-c++-opt.
10952         (Makefile.am): Arrange to compile and run test-dirent-c++.
10953         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10954         gl_MODULE_INDICATOR.
10955
10956         New module 'ansi-c++-opt'.
10957         * modules/ansi-c++-opt: New file.
10958         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
10959
10960         Document C++ namespace mode.
10961         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
10962
10963         wctype: Avoid #define replacements in C++ mode.
10964         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
10965         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
10966         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
10967         In C++, define a namespaced alias symbol.
10968         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
10969         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
10970         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
10971         rule.
10972
10973         wchar: Avoid #define replacements in C++ mode.
10974         * lib/wchar.in.h: Include c++defs.h.
10975         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
10976         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
10977         symbol.
10978         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
10979         * modules/wchar (Depends-on): Add c++defs.
10980         (Makefile.am): Update wchar.h rule.
10981
10982         unistd: Avoid #define replacements in C++ mode.
10983         * lib/unistd.in.h: Include c++defs.h.
10984         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
10985         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
10986         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
10987         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
10988         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
10989         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
10990         symbol.
10991         (environ): Update.
10992         * modules/unistd (Depends-on): Add c++defs.
10993         (Makefile.am): Update unistd.h rule.
10994
10995         time: Avoid #define replacements in C++ mode.
10996         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
10997         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
10998         define a namespaced alias symbol.
10999         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11000         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11001         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11002         * modules/time (Depends-on): Add c++defs, warn-on-use.
11003         (Makefile.am): Update time.h rule.
11004         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11005         * modules/nanosleep (configure.ac): Likewise.
11006         * modules/strptime (configure.ac): Likewise.
11007         * modules/timegm (configure.ac): Likewise.
11008
11009         sys_time: Avoid #define replacements in C++ mode.
11010         * lib/sys_time.in.h: Include c++defs.h.
11011         (gettimeofday): In C++, define a namespaced alias symbol.
11012         * modules/sys_time (Depends-on): Add c++defs.
11013         (Makefile.am): Update sys/time.h rule.
11014
11015         sys_stat: Avoid #define replacements in C++ mode.
11016         * lib/sys_stat.in.h: Include c++defs.h.
11017         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11018         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11019         namespaced alias symbol.
11020         In C++, define a namespaced alias symbol.
11021         * modules/sys_stat (Depends-on): Add c++defs.
11022         (Makefile.am): Update sys/stat.h rule.
11023
11024         sys_socket: Avoid #define replacements in C++ mode.
11025         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11026         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11027         definitions also when the system has a <sys/socket.h>.
11028         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11029         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11030         In C++, define a namespaced alias symbol.
11031         * modules/sys_socket (Depends-on): Add c++defs.
11032         (Makefile.am): Update sys/socket.h rule.
11033
11034         sys_select: Avoid #define replacements in C++ mode.
11035         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11036         definitions also when the system has a <sys/select.h>.
11037         (select): In C++, define a namespaced alias symbol.
11038         * modules/sys_select (Depends-on): Add c++defs.
11039         (Makefile.am): Update sys/select.h rule.
11040
11041         sys_ioctl: Avoid #define replacements in C++ mode.
11042         * lib/sys_ioctl.in.h: Include c++defs.h.
11043         (ioctl): In C++, define a namespaced alias symbol.
11044         * modules/sys_ioctl (Depends-on): Add c++defs.
11045         (Makefile.am): Update sys/ioctl.h rule.
11046
11047         string: Avoid #define replacements in C++ mode.
11048         * lib/string.in.h: Include c++defs.h.
11049         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11050         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11051         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11052         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11053         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11054         * modules/string (Depends-on): Add c++defs.
11055         (Makefile.am): Update string.h rule.
11056
11057         stdlib: Avoid #define replacements in C++ mode.
11058         * lib/stdlib.in.h: Include c++defs.h.
11059         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11060         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11061         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11062         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11063         symbol.
11064         * modules/stdlib (Depends-on): Add c++defs.
11065         (Makefile.am): Update stdlib.h rule.
11066
11067         stdio: Avoid #define replacements in C++ mode.
11068         * lib/stdio.in.h: Include c++defs.h.
11069         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11070         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11071         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11072         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11073         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11074         namespaced alias symbol.
11075         * modules/stdio (Depends-on): Add c++defs.
11076         (Makefile.am): Update stdio.h rule.
11077
11078         spawn: Avoid #define replacements in C++ mode.
11079         * lib/spawn.in.h: Include c++defs.h.
11080         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11081         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11082         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11083         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11084         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11085         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11086         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11087         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11088         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11089         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11090         In C++, define a namespaced alias symbol.
11091         * modules/spawn (Depends-on): Add c++defs.
11092         (Makefile.am): Update spawn.h rule.
11093
11094         signal: Avoid #define replacements in C++ mode.
11095         * lib/signal.in.h: Include c++defs.h.
11096         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11097         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11098         namespaced alias symbol.
11099         * modules/signal (Depends-on): Add c++defs.
11100         (Makefile.am): Update signal.h rule.
11101
11102         search: Avoid #define replacements in C++ mode.
11103         * lib/search.in.h: Include c++defs.h.
11104         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11105         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11106         symbol.
11107         * modules/search (Depends-on): Add c++defs.
11108         (Makefile.am): Update search.h rule.
11109
11110         math: Avoid #define replacements in C++ mode.
11111         * lib/math.in.h: Include c++defs.h.
11112         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11113         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11114         trunc, truncl): In C++, define a namespaced alias symbol.
11115         * modules/math (Depends-on): Add c++defs.
11116         (Makefile.am): Update math.h rule.
11117
11118         locale: Avoid #define replacements in C++ mode.
11119         * lib/locale.in.h: Include c++defs.h.
11120         (duplocale): In C++, define a namespaced alias symbol.
11121         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11122         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11123         * modules/locale (Depends-on): Add c++defs.
11124         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11125
11126         langinfo: Avoid #define replacements in C++ mode.
11127         * lib/langinfo.in.h: Include c++defs.h.
11128         (nl_langinfo): In C++, define a namespaced alias symbol.
11129         * modules/langinfo (Depends-on): Add c++defs.
11130         (Makefile.am): Update langinfo.h rule.
11131
11132         iconv-h: Avoid #define replacements in C++ mode.
11133         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11134         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11135         symbol.
11136         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11137         whenever iconv is present.
11138         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11139         (Makefile.am): Update iconv.h rule.
11140
11141         glob: Avoid #define replacements in C++ mode.
11142         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11143         (_gl_glob_errfunc_fn): New type.
11144         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11145         symbol.
11146         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11147         (Makefile.am): Update glob.h rule.
11148
11149         fcntl-h: Avoid #define replacements in C++ mode.
11150         * lib/fcntl.in.h: Include c++defs.h.
11151         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11152         * modules/fcntl-h (Depends-on): Add c++defs.
11153         (Makefile.am): Update fcntl.h rule.
11154
11155         dirent: Avoid #define replacements in C++ mode.
11156         * lib/dirent.in.h: Include c++defs.h.
11157         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11158         namespaced alias symbol.
11159         (dirfd): Update declaration.
11160         * modules/dirent (Depends-on): Add c++defs.
11161         (Makefile.am): Update dirent.h rule.
11162
11163         ctype: Make it usable in C++ code.
11164         * lib/ctype.in.h: Include c++defs.h.
11165         (isblank): Declare as extern "C".
11166         * modules/ctype (Depends-on): Add c++defs.
11167         (Makefile.am): Update ctype.h rule.
11168
11169         New module 'c++defs'.
11170         * modules/c++defs: New file.
11171         * build-aux/c++defs.h: New file.
11172         Reported by John W. Eaton <jwe@gnu.org>.
11173
11174 2010-03-07  Bruno Haible  <bruno@clisp.org>
11175
11176         logb: Provide missing declaration for Cygwin.
11177         * lib/math.in.h (logb): New declaration.
11178         * m4/logb.m4: New file.
11179         * modules/logb (Files): Add m4/logb.m4.
11180         (Depends-on): Add math.
11181         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11182         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11184         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11185         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11186
11187 2010-03-07  Bruno Haible  <bruno@clisp.org>
11188
11189         Fix test-cond link error.
11190         * tests/test-cond.c: Include <stdio.h>.
11191
11192 2010-03-07  Bruno Haible  <bruno@clisp.org>
11193
11194         Fix test-dirent-safer link error.
11195         * modules/dirent-safer-tests (Makefile.am): Define
11196         test_dirent_safer_LDADD.
11197
11198 2010-03-07  Bruno Haible  <bruno@clisp.org>
11199
11200         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11201         among default module list.
11202
11203 2010-03-07  Bruno Haible  <bruno@clisp.org>
11204
11205         Fix link error on platforms with GNU libiconv.
11206         * modules/unistr/u8-strcoll-tests (Makefile): Define
11207         test_u8_strcoll_LDADD.
11208         * modules/unistr/u16-strcoll-tests (Makefile): Define
11209         test_u16_strcoll_LDADD.
11210         * modules/unistr/u32-strcoll-tests (Makefile): Define
11211         test_u32_strcoll_LDADD.
11212
11213 2010-03-07  Bruno Haible  <bruno@clisp.org>
11214
11215         Use POSIX declarations for socket functions.
11216         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11217         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11218         rpl_sendto): Change declaration to match POSIX.
11219         * lib/connect.c (rpl_connect): Likewise.
11220         * lib/accept.c (rpl_accept): Likewise.
11221         * lib/bind.c (rpl_bind): Likewise.
11222         * lib/getpeername.c (rpl_getpeername): Likewise.
11223         * lib/getsockname.c (rpl_getsockname): Likewise.
11224         * lib/recv.c (rpl_recv): Likewise.
11225         * lib/send.c (rpl_send): Likewise.
11226         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11227         * lib/sendto.c (rpl_sendto): Likewise.
11228
11229 2010-03-06  Bruno Haible  <bruno@clisp.org>
11230
11231         Clarify access, euidaccess, faccessat.
11232         * doc/posix-functions/faccessat.texi: Mention security problem under
11233         "Other problems", not "Portability problems".
11234         * doc/posix-functions/access.texi: Likewise. Mention a related security
11235         problem.
11236         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11237         * lib/euidaccess.c: Add comments about platforms.
11238         * lib/unistd.in.h (access, euidaccess): Add warnings.
11239
11240 2010-03-07  Bruno Haible  <bruno@clisp.org>
11241
11242         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11243         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11244         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11245         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11246         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11247         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11248         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11249         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11250         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11251         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11252         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11253         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11254         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11255         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11256         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11257         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11258         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11259         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11260         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11261         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11262         Likewise.
11263         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11264         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11265         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11266         Likewise.
11267         * tests/test-spawn.c (main): Make it work when
11268         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11269
11270 2010-03-07  Bruno Haible  <bruno@clisp.org>
11271
11272         Fix incorrect Makefile.am generation in German locale.
11273         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11274         Execute sed command with character range in C locale.
11275
11276 2010-03-06  Bruno Haible  <bruno@clisp.org>
11277
11278         Tests for module 'iconv-h'.
11279         * modules/iconv-h-tests: New file.
11280         * tests/test-iconv-h.c: New file.
11281
11282         New module 'iconv-h'.
11283         * modules/iconv-h: New file.
11284         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11285         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11286         (configure.ac): Remove gl_ICONV_H.
11287         (Makefile.am): Remove rule for iconv.h.
11288
11289 2010-03-06  Bruno Haible  <bruno@clisp.org>
11290
11291         More consistent naming of *.m4 files.
11292         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11293         * modules/wctype (Files): Update.
11294
11295         More consistent naming of *.m4 files.
11296         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11297         * modules/wchar (Files): Update.
11298
11299 2010-03-06  Jim Meyering  <meyering@redhat.com>
11300
11301         euidaccess: relax license to LGPLv2+
11302         * modules/euidaccess (License): Relax to LGPLv2+.
11303
11304 2010-03-06  Bruno Haible  <bruno@clisp.org>
11305
11306         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11307         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11308         (Makefile.am): Augment lib_SOURCES instead.
11309
11310 2010-03-04  Jim Meyering  <meyering@redhat.com>
11311
11312         utime: remove obsolete module
11313         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11314         unnecessary for years, and has been marked as obsolete for 10 months.
11315         * modules/utime: Remove file.
11316         * lib/utime.c: Remove file.
11317         * m4/utime.m4: Remove file.
11318         * m4/utimes-null.m4: Remove file.
11319         * doc/posix-functions/utime.texi (utime): Remove reference to
11320         the module.  Move the sole "fixed by gnulib" item into the
11321         "problems not fixed by Gnulib" list.
11322         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11323
11324 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11325
11326         * modules/exit (License): Relax license to LGPLv2+.
11327         (Status): Mark as obsolete.
11328         * NEWS: Mention deprecated 'exit' module.
11329         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11330         of now obsolete 'exit'.
11331
11332 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11333
11334         fts-lgpl: remove unused module
11335         * modules/fts-lgpl: Remove.
11336         * MODULES.html.sh (func_all_modules): Adjust.
11337         * check-module (find_included_lib_files): Adjust.
11338         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11339
11340 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11341
11342         copy-acl: enhance Solaris ACL error handling
11343         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11344         * lib/set-mode-acl.c (qset_acl): Likewise.
11345
11346 2010-03-02  Bruno Haible  <bruno@clisp.org>
11347
11348         spawn: Don't override the system defined values on FreeBSD 8.
11349         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11350         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11351         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11352         if HAVE_POSIX_SPAWN is 1.
11353         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11354
11355 2010-03-01  Bruno Haible  <bruno@clisp.org>
11356
11357         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11358         regarding Automake.
11359
11360 2010-02-25  Bruno Haible  <bruno@clisp.org>
11361
11362         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11363         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11364         setting, not afterwards.
11365         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11366
11367 2010-02-24  Eric Blake  <eblake@redhat.com>
11368
11369         bootstrap, git-version-gen: use timestamp
11370         * build-aux/git-version-gen (scriptversion): Force UTC.
11371         * build-aux/bootstrap (scriptversion): New variable.
11372
11373         bootstrap: allow older git
11374         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11375         older than 1.6.4.  Requested by the libvirt project.
11376
11377 2010-02-23  Eric Blake  <eblake@redhat.com>
11378
11379         warn-on-use: work with old autoconf
11380         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11381         AS_VAR semantics of autoconf 2.60.
11382         Reported by Bruno Haible.
11383
11384         bootstrap: improve some comments
11385         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11386         clarification comments.
11387
11388         gettimeofday: provide correct function
11389         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11390         when replacement is declared, otherwise provide gettimeofday.
11391         Reported by Michael Goffioul.
11392
11393 2010-02-23  Jim Meyering  <meyering@redhat.com>
11394
11395         lib-ignore: relax license to "unlimited", not LGPLv2+
11396         * modules/lib-ignore (License): Relax to "unlimited".
11397
11398 2010-02-23  Jim Meyering  <meyering@redhat.com>
11399
11400         lib-ignore: relax license to LGPLv2+
11401         * modules/lib-ignore (License): Relax to LGPLv2+.
11402
11403 2010-02-22  Eric Blake  <eblake@redhat.com>
11404
11405         lseek: avoid bash 3.2 broken pipe bug
11406         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11407         warning from bash 3.2.
11408         Reported by Ben Pfaff, with analysis from Bruno Haible.
11409
11410         bootstrap: support non-FSF copyright holder
11411         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11412         bootstrap.conf override of COPYRIGHT_HOLDER.
11413         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11414
11415         bootstrap: interoperate with gettext 0.14.1
11416         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11417
11418         bootstrap: allow for alternate submodule location
11419         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11420         hardcoding submodule location.
11421         (gnulib_mk): Allow direct use of Makefile.am.
11422
11423         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11424         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11425         rather than reconfiguring where the submodule points.
11426
11427         gettimeofday: restore support for platforms that lack function
11428         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11429         replacement if function is missing.
11430         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11431         * modules/sys_time (Makefile.am): Substitute it.
11432         * lib/sys_time.in.h (gettimeofday): Check it.
11433         Reported by Michael Goffioul.
11434
11435 2010-02-21  Bruno Haible  <bruno@clisp.org>
11436
11437         * lib/stdio.in.h (obstack_printf): Fix typo.
11438
11439 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11440
11441         vc-list-files: use bzr ls's -R option
11442         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11443         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11444
11445 2010-02-21  Jim Meyering  <meyering@redhat.com>
11446
11447         init.sh: fix EXEEXT shims to work also for names like test-prog
11448         * tests/init.sh: Re-exec a better shell, when needed.
11449         If the current shell lacks support for posix $(...), an init.sh-using
11450         test will now try to find a shell that supports that.  If EXEEXT is
11451         nonempty, we also require support for hyphen-in-alias-name and shell
11452         substitutions like ${var#glob}.  Failure to find such a shell results
11453         in a skipped test.
11454
11455 2010-02-21  Bruno Haible  <bruno@clisp.org>
11456
11457         Really work around around "broken pipe" error message from bash 3.2.
11458         * gnulib-tool (func_reset_sigpipe): Remove function.
11459         (echo): In bash 3.2, define to a function that uses printf.
11460         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11461
11462 2010-02-20  Bruno Haible  <bruno@clisp.org>
11463
11464         Restore support for automake 1.9.6 with autoconf 2.61.
11465         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11466         Reported by James Youngman <jay@gnu.org>.
11467
11468 2010-02-20  Bruno Haible  <bruno@clisp.org>
11469
11470         Improve *printf warning condition.
11471         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11472         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11473         and the function is overridden due to SIGPIPE emulation.
11474
11475 2010-02-20  Bruno Haible  <bruno@clisp.org>
11476
11477         * lib/stdio.in.h: Tweak comments.
11478
11479 2010-02-19  Bruno Haible  <bruno@clisp.org>
11480
11481         Make it easier to find modules. New gnulib-tool option '--find'.
11482         * gnulib-tool: New option --find.
11483         (func_usage): Document it.
11484         (func_sanitize_modulelist): New function, extracted from
11485         func_all_modules.
11486         (func_all_modules): Invoke it.
11487         * doc/gnulib-tool.texi (Which modules?): New node.
11488
11489 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
11490
11491         * lib/sys_select.in.h: Provide select replacement even if
11492         sys/select.h exists on a system, for Interix.
11493
11494 2010-02-18  Jim Meyering  <meyering@redhat.com>
11495
11496         init.sh: don't use $(...) just yet
11497         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
11498         to accommodate e.g., Solaris' /bin/sh.
11499
11500 2010-02-17  Bruno Haible  <bruno@clisp.org>
11501
11502         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
11503         Reported by Ludovic Courtès <ludo@gnu.org>.
11504
11505 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11506
11507         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11508         linking with -lintl.
11509
11510 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11511
11512         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11513         if not provided by the system's netdb.h.  Reported by
11514         ludo@gnu.org (Ludovic Courtès).
11515
11516 2010-02-15  Jim Meyering  <meyering@redhat.com>
11517
11518         init.sh: improve portability and efficiency
11519         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11520         "dummy" in a for loop.
11521         Use '!', not '^' to select the complement of a character set used
11522         in a "case" statement.
11523         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11524         Suggestions from Eric Blake.
11525
11526         init.sh: automatically accommodate programs with the .exe suffix
11527         Automatically arrange for an invocation of "prog" to execute the
11528         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11529         may use the simpler "prog", yet still work when built on a system
11530         that requires specifying the added suffix.
11531         Do this by constructing a function named "prog" that invokes
11532         "prog.exe" for each .exe file in selected directories.
11533         * tests/init.sh (find_exe_basenames_): New function.
11534         (create_exe_shim_functions_): New function.
11535         (path_prepend_): Use it.
11536
11537         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11538         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11539         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11540
11541 2010-02-14  Jim Meyering  <meyering@redhat.com>
11542
11543         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11544         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11545         (sc_prohibit_hash_pjw_without_use): New rule.
11546
11547         maint.mk: allow the default upload destination dir to be overridden
11548         * top/maint.mk (upload_dest_dir_): Define with a default that
11549         preserves the status quo.
11550         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
11551         Reported by Peter Simons.
11552
11553         maint.mk: prohibit inclusion of "hash.h" without_use
11554         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
11555
11556 2010-02-10  Jim Meyering  <meyering@redhat.com>
11557
11558         maint.mk: prohibit inclusion of "ignore-value.h" without_use
11559         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
11560
11561 2010-02-09  Eric Blake  <ebb9@byu.net>
11562         and Bruno Haible  <bruno@clisp.org>
11563
11564         obstack-printf-posix: ensure declaration
11565         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
11566         extracted from gl_FUNC_OBSTACK_PRINTF.
11567         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
11568         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11569         Likewise.
11570         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
11571         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
11572         0.
11573
11574 2010-02-08  Bruno Haible  <bruno@clisp.org>
11575
11576         gnulib-tool: Fix typo in 2010-02-07 commit.
11577         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
11578         Reported by Eric Blake.
11579
11580 2010-02-07  Bruno Haible  <bruno@clisp.org>
11581
11582         gnulib-tool: Fix up caching patches.
11583         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
11584         option --no-cache. Use associative arrays when supported by the shell.
11585         (sed_comments): New variable.
11586         (modcache): Renamed from do_cache.
11587         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
11588         abbreviate unnecessarily.
11589         (have_associative): New variable.
11590         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
11591         way also for ksh and zsh.
11592         (func_init_sed_convert_to_cache_statements): New function, extracted
11593         from func_cache_lookup_module. Add support for associative arrays.
11594         Don't set the c_MODULE_cached variable here. Ignore all lines before
11595         the first field header. Remove only the final newline, not all trailing
11596         newlines. Support empty fields correctly. Limit the use of 'eval' to
11597         assignments.
11598         (func_get_description, func_get_status, func_get_notice,
11599         func_get_applicability, func_get_filelist, func_get_dependencies,
11600         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
11601         func_get_automake_snippet, func_get_include_directive,
11602         func_get_link_directive, func_get_license, func_get_maintainer):
11603         Update documentation. List the unoptimized code first. Add support for
11604         associative arrays. Limit the use of 'eval' to assignments.
11605         (func_get_applicability): Undo stylistic pessimisations.
11606         (func_get_automake_snippet, func_get_include_directive): Reduce code
11607         duplication.
11608         (func_modules_transitive_closure, func_modules_add_dummy,
11609         func_modules_notice, func_modules_to_filelist, func_add_file,
11610         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
11611         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
11612         func_create_testdir, func_create_megatestdir): Update documentation.
11613
11614 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11615
11616         * gnulib-tool (func_cache_lookup_module): Store the module name
11617         belonging to the cache variable; error out if two different
11618         module names map to the same cache variable name.
11619
11620 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11621
11622         gnulib-tool: Make caching optional.
11623         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
11624         Update matching short versions of --no-changelog.
11625         (func_usage): Update.
11626         (sed_extract_cache_prog): Renamed from ...
11627         (sed_extract_prog): ... this; revert to old extraction script.
11628         (func_get_description, func_get_status)
11629         (func_get_notice, func_get_applicability, func_get_filelist)
11630         (func_get_dependencies, func_get_autoconf_early_snippet)
11631         (func_get_autoconf_snippet, func_get_automake_snippet)
11632         (func_get_include_directive, func_get_link_directive)
11633         (func_get_license, func_get_maintainer): If $do_cache is false,
11634         use old, non-caching extraction scripts.
11635         Suggestion by Bruno Haible.
11636
11637 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11638
11639         gnulib-tool: cache module metainformation.
11640         * gnulib-tool (sed_extract_prog): Match newline before each
11641         header, and rewrite header to a shell variable suffix.
11642         (func_cache_var, func_cache_lookup_module): New functions,
11643         to turn a module name into a cache variable prefix, and to
11644         look up and cache module metainformation.
11645         (func_get_description, func_get_status)
11646         (func_get_notice, func_get_applicability, func_get_filelist)
11647         (func_get_dependencies, func_get_autoconf_early_snippet)
11648         (func_get_autoconf_snippet, func_get_automake_snippet)
11649         (func_get_include_directive, func_get_link_directive)
11650         (func_get_license, func_get_maintainer): Use
11651         func_cache_lookup_module.
11652
11653 2010-02-07  Bruno Haible  <bruno@clisp.org>
11654
11655         fnctl: Fix missing dependency.
11656         * modules/fcntl (Depends-on): Add getdtablesize.
11657         Reported by John W. Eaton <jwe@gnu.org>.
11658
11659 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11660
11661         Argp: fix recognition of short alias options.
11662
11663         * lib/argp-parse.c (convert_options): Fix improper use of
11664         `|' between character values.
11665         * tests/test-argp.c (group1_option): New alias option
11666         --read (-r).
11667         (group1_parser): Special handling for 'r'.
11668         (test15): New test case.
11669         (test_fun): Add test15.
11670         * tests/test-argp-2.sh: Update expected --help and --usage
11671         outputs.
11672
11673 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11674
11675         * tests/test-argp.c: Fix indentation.
11676
11677 2010-02-04  Eric Blake  <ebb9@byu.net>
11678
11679         gettimeofday: expose type of second argument
11680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
11681         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
11682         * tests/test-gettimeofday.c: Use it to silence warning.
11683         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
11684         the issue.
11685
11686 2010-02-03  Jim Meyering  <meyering@redhat.com>
11687
11688         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
11689         * lib/regcomp.c (TYPE_SIGNED): Define.
11690         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
11691
11692         regcomp.c: avoid a new -Wshadow warning
11693         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
11694
11695 2010-02-01  Jim Meyering  <meyering@redhat.com>
11696
11697         removing useless parentheses in cpp #define directives
11698         For motivation, see commit c0221df4, "define STREQ(a,b)
11699         consistently, removing useless parentheses"
11700         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
11701         * lib/mountlist.c (MNT_IGNORE): Likewise.
11702         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
11703
11704 2010-02-01  Eric Blake  <ebb9@byu.net>
11705
11706         sys_time: use link-warning
11707         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
11708         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
11709         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
11710         * modules/sys_time (Depends-on): Add warn-on-use.
11711         (Makefile.am): Always build replacement.
11712         (configure.ac): Update substitutions.
11713         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
11714         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
11715         bother with SYS_TIME_H.
11716         * modules/gettimeofday (configure.ac): Declare indicator.
11717         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
11718         in use.
11719
11720         closein-tests: silence compiler warning
11721         * tests/test-closein.c (main): Ignore fread result.
11722         * modules/closein-tests (Depends-on): Add ignore-value.
11723
11724         tests: silence warning about system return
11725         * tests/test-areadlink-with-size.c (main): Ignore system result.
11726         * tests/test-areadlink.c (main): Likewise.
11727         * tests/test-areadlinkat-with-size.c (main): Likewise.
11728         * tests/test-areadlinkat.c (main): Likewise.
11729         * tests/test-canonicalize-lgpl.c (main): Likewise.
11730         * tests/test-canonicalize.c (main): Likewise.
11731         * tests/test-chown.c (main): Likewise.
11732         * tests/test-fchownat.c (main): Likewise.
11733         * tests/test-fdutimensat.c (main): Likewise.
11734         * tests/test-fstatat.c (main): Likewise.
11735         * tests/test-futimens.c (main): Likewise.
11736         * tests/test-lchown.c (main): Likewise.
11737         * tests/test-link.c (main): Likewise.
11738         * tests/test-linkat.c (main): Likewise.
11739         * tests/test-lstat.c (main): Likewise.
11740         * tests/test-mkdir.c (main): Likewise.
11741         * tests/test-mkdirat.c (main): Likewise.
11742         * tests/test-mkfifo.c (main): Likewise.
11743         * tests/test-mkfifoat.c (main): Likewise.
11744         * tests/test-mknod.c (main): Likewise.
11745         * tests/test-readlink.c (main): Likewise.
11746         * tests/test-remove.c (main): Likewise.
11747         * tests/test-rename.c (main): Likewise.
11748         * tests/test-renameat.c (main): Likewise.
11749         * tests/test-rmdir.c (main): Likewise.
11750         * tests/test-symlink.c (main): Likewise.
11751         * tests/test-symlinkat.c (main): Likewise.
11752         * tests/test-unlink.c (main): Likewise.
11753         * tests/test-unlinkat.c (main): Likewise.
11754         * tests/test-utimens.c (main): Likewise.
11755         * tests/test-utimensat.c (main): Likewise.
11756         * modules/areadlink-tests (Depends-on): Add ignore-value.
11757         * modules/areadlink-with-size-tests (Depends-on): Likewise.
11758         * modules/areadlinkat-tests (Depends-on): Likewise.
11759         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
11760         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11761         * modules/canonicalize-tests (Depends-on): Likewise.
11762         * modules/chown-tests (Depends-on): Likewise.
11763         * modules/fdutimensat-tests (Depends-on): Likewise.
11764         * modules/futimens-tests (Depends-on): Likewise.
11765         * modules/lchown-tests (Depends-on): Likewise.
11766         * modules/link-tests (Depends-on): Likewise.
11767         * modules/linkat-tests (Depends-on): Likewise.
11768         * modules/lstat-tests (Depends-on): Likewise.
11769         * modules/mkdir-tests (Depends-on): Likewise.
11770         * modules/mkfifo-tests (Depends-on): Likewise.
11771         * modules/mkfifoat-tests (Depends-on): Likewise.
11772         * modules/mknod-tests (Depends-on): Likewise.
11773         * modules/openat-tests (Depends-on): Likewise.
11774         * modules/readlink-tests (Depends-on): Likewise.
11775         * modules/remove-tests (Depends-on): Likewise.
11776         * modules/rename-tests (Depends-on): Likewise.
11777         * modules/renameat-tests (Depends-on): Likewise.
11778         * modules/rmdir-tests (Depends-on): Likewise.
11779         * modules/symlink-tests (Depends-on): Likewise.
11780         * modules/symlinkat-tests (Depends-on): Likewise.
11781         * modules/unlink-tests (Depends-on): Likewise.
11782         * modules/utimens-tests (Depends-on): Likewise.
11783         * modules/utimensat-tests (Depends-on): Likewise.
11784
11785 2010-01-31  Bruno Haible  <bruno@clisp.org>
11786
11787         Perform the same test for many <math.h> functions.
11788         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
11789         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
11790         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
11791         of gl_MATHFUNC.
11792         * modules/acos (configure.ac): Likewise.
11793         * modules/asin (configure.ac): Likewise.
11794         * modules/atan (configure.ac): Likewise.
11795         * modules/atan2 (configure.ac): Likewise.
11796         * modules/cbrt (configure.ac): Likewise.
11797         * modules/copysign (configure.ac): Likewise.
11798         * modules/cos (configure.ac): Likewise.
11799         * modules/cosh (configure.ac): Likewise.
11800         * modules/erf (configure.ac): Likewise.
11801         * modules/erfc (configure.ac): Likewise.
11802         * modules/exp (configure.ac): Likewise.
11803         * modules/fmod (configure.ac): Likewise.
11804         * modules/hypot (configure.ac): Likewise.
11805         * modules/j0 (configure.ac): Likewise.
11806         * modules/j1 (configure.ac): Likewise.
11807         * modules/jn (configure.ac): Likewise.
11808         * modules/lgamma (configure.ac): Likewise.
11809         * modules/log (configure.ac): Likewise.
11810         * modules/log10 (configure.ac): Likewise.
11811         * modules/log1p (configure.ac): Likewise.
11812         * modules/pow (configure.ac): Likewise.
11813         * modules/remainder (configure.ac): Likewise.
11814         * modules/sin (configure.ac): Likewise.
11815         * modules/sinh (configure.ac): Likewise.
11816         * modules/tan (configure.ac): Likewise.
11817         * modules/tanh (configure.ac): Likewise.
11818         * modules/y0 (configure.ac): Likewise.
11819         * modules/y1 (configure.ac): Likewise.
11820         * modules/yn (configure.ac): Likewise.
11821         Suggested by Paolo Bonzini.
11822
11823 2010-01-31  Bruno Haible  <bruno@clisp.org>
11824
11825         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
11826
11827 2010-01-31  Bruno Haible  <bruno@clisp.org>
11828
11829         Work around getdelim() bug on FreeBSD 8.0.
11830         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
11831         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
11832         not work.
11833         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
11834         is 1.
11835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
11836         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
11837         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
11838         a non-zero size.
11839         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
11840
11841 2010-01-31  Bruno Haible  <bruno@clisp.org>
11842
11843         Work around getline() bug on FreeBSD 8.0.
11844         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
11845         and a non-zero size.
11846         * tests/test-getline.c (main): Likewise.
11847         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
11848         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
11849
11850 2010-01-28  Eric Blake  <ebb9@byu.net>
11851
11852         regex: fix build failure
11853         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
11854         platforms.
11855
11856 2010-01-28  Jim Meyering  <meyering@redhat.com>
11857
11858         regex: do not ignore memory allocation failure
11859         * lib/regex_internal.c (create_cd_newstate): Detect
11860         re_node_set_init_copy failure.   Extracted from glibc commit
11861         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11862
11863         regex: sync more white-space changes from libc
11864         * lib/regex_internal.c: White-space only changes.
11865         * lib/regexec.c: Likewise.
11866
11867         regex: add many uses of __attribute_warn_unused_result__
11868         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
11869         * lib/regexec.c: Likewise.
11870         Extracted from a messy glibc commit.
11871
11872         regcomp.c: spelling and merge-artifact from glibc
11873         * lib/regcomp.c: Merge remainder of glibc's
11874         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11875
11876         regcomp.c: sync white-space changes from glibc
11877         * lib/regcomp.c: Merge to accommodate white space
11878         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11879
11880         regcomp.c: do not ignore internal return values
11881         * lib/regcomp.c: Do not ignore internal return values.
11882         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
11883         but without its white-space changes and spelling fixes.
11884
11885         regex_internal.h: define __attribute_warn_unused_result__
11886         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
11887
11888         maint: add a syntax-check rule to check for vulnerable Makefile.in
11889         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
11890
11891 2010-01-27  Jim Meyering  <meyering@redhat.com>
11892
11893         ncftpput-ftp: clean up spaces
11894         * build-aux/ncftpput-ftp: Make Copyright line consistent.
11895         Remove trailing blanks.
11896
11897 2010-01-27  Simon Josefsson  <simon@josefsson.org>
11898
11899         * build-aux/git-version-gen: Fix copyright statement.
11900         * build-aux/gnupload: Likewise.
11901         * tests/test-arcfour.c: Likewise.
11902         * tests/test-arctwo.c: Likewise.
11903         * tests/test-count-one-bits.c: Likewise.
11904         * tests/test-crc.c: Likewise.
11905         * tests/test-des.c: Likewise.
11906         * tests/test-gc-arcfour.c: Likewise.
11907         * tests/test-gc-arctwo.c: Likewise.
11908         * tests/test-gc-des.c: Likewise.
11909         * tests/test-gc-hmac-md5.c: Likewise.
11910         * tests/test-gc-hmac-sha1.c: Likewise.
11911         * tests/test-gc-md2.c: Likewise.
11912         * tests/test-gc-md4.c: Likewise.
11913         * tests/test-gc-md5.c: Likewise.
11914         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11915         * tests/test-gc-rijndael.c: Likewise.
11916         * tests/test-gc-sha1.c: Likewise.
11917         * tests/test-gc.c: Likewise.
11918         * tests/test-gethostname.c: Likewise.
11919         * tests/test-gettimeofday.c: Likewise.
11920         * tests/test-hash.c: Likewise.
11921         * tests/test-hmac-md5.c: Likewise.
11922         * tests/test-hmac-sha1.c: Likewise.
11923         * tests/test-md2.c: Likewise.
11924         * tests/test-md4.c: Likewise.
11925         * tests/test-md5.c: Likewise.
11926         * tests/test-memchr.c: Likewise.
11927         * tests/test-memchr2.c: Likewise.
11928         * tests/test-memcmp.c: Likewise.
11929         * tests/test-memmem.c: Likewise.
11930         * tests/test-memrchr.c: Likewise.
11931         * tests/test-rawmemchr.c: Likewise.
11932         * tests/test-read-file.c: Likewise.
11933         * tests/test-rijndael.c: Likewise.
11934         * tests/test-sockets.c: Likewise.
11935         * tests/test-strchrnul.c: Likewise.
11936         * tests/test-strstr.c: Likewise.
11937         * tests/test-strtod.c: Likewise.
11938         * build-aux/ncftpput-ftp: Likewise.
11939
11940 2010-01-26  Eric Blake  <ebb9@byu.net>
11941
11942         ignore-value: update recommended header name
11943         * modules/ignore-value (Include): Only use <> for headers that
11944         exist in glibc.
11945
11946 2010-01-26  Jim Meyering  <meyering@redhat.com>
11947
11948         test-userspec.c: avoid compiler warnings
11949         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
11950         and "initialization discards qualifiers..." warnings.
11951         Put the first "uid" in its own scope, and make char* members "const".
11952
11953 2010-01-25  Bruno Haible  <bruno@clisp.org>
11954
11955         gnulib-tool: Make warning diagnostics consistent.
11956         * gnulib-tool (func_warning): New function.
11957         Use it everywhere where gnulib-tool produces output to stderr and it is
11958         not a fatal error.
11959
11960 2010-01-25  Bruno Haible  <bruno@clisp.org>
11961
11962         Fix test dependencies.
11963         * modules/xstrtol-tests (Depends-on): Add inttypes.
11964         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
11965
11966 2010-01-25 Pádraig Brady <P@draigBrady.com>
11967
11968         syntax-check: detect incorrect boolean macro values in config.h
11969         * modules/maintainer-makefile (configure.ac): Parameterize the location
11970         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
11971         The logic is from Eric Blake and the location indicated by Jim Meyering.
11972         Note the more natural CONFIG_HEADER name is prohibited by automake
11973         for backwards compatibility reasons.
11974         * top/maint.mk (sc_Wundef_boolean): New rule.
11975
11976 2010-01-25  Jim Meyering  <meyering@redhat.com>
11977
11978         bootstrap: detect MacOS 10.6's shasum, too
11979         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
11980         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
11981
11982 2010-01-23  Jim Meyering  <meyering@redhat.com>
11983
11984         xstrtoll: new module
11985         * modules/xstrtoll: New file.
11986         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
11987         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
11988         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
11989         ./configure fails if you use this module and lack "long long".
11990         * modules/xstrtoll-tests: New module.
11991         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
11992         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
11993         new init.sh-based test framework.
11994
11995 2010-01-24  Bruno Haible  <bruno@clisp.org>
11996
11997         Tests for module 'yn'.
11998         * modules/yn-tests: New file.
11999         * tests/test-yn.c: New file.
12000
12001         Tests for module 'y1'.
12002         * modules/y1-tests: New file.
12003         * tests/test-y1.c: New file.
12004
12005         Tests for module 'y0'.
12006         * modules/y0-tests: New file.
12007         * tests/test-y0.c: New file.
12008
12009         Tests for module 'tanh'.
12010         * modules/tanh-tests: New file.
12011         * tests/test-tanh.c: New file.
12012
12013         Tests for module 'tan'.
12014         * modules/tan-tests: New file.
12015         * tests/test-tan.c: New file.
12016
12017         Tests for module 'sqrt'.
12018         * modules/sqrt-tests: New file.
12019         * tests/test-sqrt.c: New file.
12020
12021         Tests for module 'sinh'.
12022         * modules/sinh-tests: New file.
12023         * tests/test-sinh.c: New file.
12024
12025         Tests for module 'sin'.
12026         * modules/sin-tests: New file.
12027         * tests/test-sin.c: New file.
12028
12029         Tests for module 'rint'.
12030         * modules/rint-tests: New file.
12031         * tests/test-rint.c: New file.
12032
12033         Tests for module 'remainder'.
12034         * modules/remainder-tests: New file.
12035         * tests/test-remainder.c: New file.
12036
12037         Tests for module 'pow'.
12038         * modules/pow-tests: New file.
12039         * tests/test-pow.c: New file.
12040
12041         Tests for module 'nextafter'.
12042         * modules/nextafter-tests: New file.
12043         * tests/test-nextafter.c: New file.
12044
12045         Tests for module 'modf'.
12046         * modules/modf-tests: New file.
12047         * tests/test-modf.c: New file.
12048
12049         Tests for module 'logb'.
12050         * modules/logb-tests: New file.
12051         * tests/test-logb.c: New file.
12052
12053         Tests for module 'log1p'.
12054         * modules/log1p-tests: New file.
12055         * tests/test-log1p.c: New file.
12056
12057         Tests for module 'log10'.
12058         * modules/log10-tests: New file.
12059         * tests/test-log10.c: New file.
12060
12061         Tests for module 'log'.
12062         * modules/log-tests: New file.
12063         * tests/test-log.c: New file.
12064
12065         Tests for module 'lgamma'.
12066         * modules/lgamma-tests: New file.
12067         * tests/test-lgamma.c: New file.
12068
12069         Tests for module 'ldexp'.
12070         * modules/ldexp-tests: New file.
12071         * tests/test-ldexp.c: New file.
12072
12073         Tests for module 'jn'.
12074         * modules/jn-tests: New file.
12075         * tests/test-jn.c: New file.
12076
12077         Tests for module 'j1'.
12078         * modules/j1-tests: New file.
12079         * tests/test-j1.c: New file.
12080
12081         Tests for module 'j0'.
12082         * modules/j0-tests: New file.
12083         * tests/test-j0.c: New file.
12084
12085         Tests for module 'hypot'.
12086         * modules/hypot-tests: New file.
12087         * tests/test-hypot.c: New file.
12088
12089         Tests for module 'fmod'.
12090         * modules/fmod-tests: New file.
12091         * tests/test-fmod.c: New file.
12092
12093         Tests for module 'fabs'.
12094         * modules/fabs-tests: New file.
12095         * tests/test-fabs.c: New file.
12096
12097         Tests for module 'exp'.
12098         * modules/exp-tests: New file.
12099         * tests/test-exp.c: New file.
12100
12101         Tests for module 'erfc'.
12102         * modules/erfc-tests: New file.
12103         * tests/test-erfc.c: New file.
12104
12105         Tests for module 'erf'.
12106         * modules/erf-tests: New file.
12107         * tests/test-erf.c: New file.
12108
12109         Tests for module 'cosh'.
12110         * modules/cosh-tests: New file.
12111         * tests/test-cosh.c: New file.
12112
12113         Tests for module 'cos'.
12114         * modules/cos-tests: New file.
12115         * tests/test-cos.c: New file.
12116
12117         Tests for module 'copysign'.
12118         * modules/copysign-tests: New file.
12119         * tests/test-copysign.c: New file.
12120
12121         Tests for module 'cbrt'.
12122         * modules/cbrt-tests: New file.
12123         * tests/test-cbrt.c: New file.
12124
12125         Tests for module 'atan2'.
12126         * modules/atan2-tests: New file.
12127         * tests/test-atan2.c: New file.
12128
12129         Tests for module 'atan'.
12130         * modules/atan-tests: New file.
12131         * tests/test-atan.c: New file.
12132
12133         Tests for module 'asin'.
12134         * modules/asin-tests: New file.
12135         * tests/test-asin.c: New file.
12136
12137         Tests for module 'acos'.
12138         * modules/acos-tests: New file.
12139         * tests/test-acos.c: New file.
12140
12141 2010-01-24  Bruno Haible  <bruno@clisp.org>
12142
12143         Fix tests for common <math.h> functions.
12144         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12145         code snippet that references the function pointer, rather than merely
12146         calling the function. Substitute the FUNC_LIBM variable.
12147         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12148         * modules/acos (configure.ac): Likewise.
12149         * modules/asin (configure.ac): Likewise.
12150         * modules/atan (configure.ac): Likewise.
12151         * modules/atan2 (configure.ac): Likewise.
12152         * modules/cbrt (configure.ac): Likewise.
12153         * modules/copysign (configure.ac): Likewise.
12154         * modules/cos (configure.ac): Likewise.
12155         * modules/cosh (configure.ac): Likewise.
12156         * modules/erf (configure.ac): Likewise.
12157         * modules/erfc (configure.ac): Likewise.
12158         * modules/exp (configure.ac): Likewise.
12159         * modules/fabs (configure.ac): Likewise.
12160         * modules/fmod (configure.ac): Likewise.
12161         * modules/hypot (configure.ac): Likewise.
12162         * modules/j0 (configure.ac): Likewise.
12163         * modules/j1 (configure.ac): Likewise.
12164         * modules/jn (configure.ac): Likewise.
12165         * modules/ldexp (configure.ac): Likewise.
12166         * modules/lgamma (configure.ac): Likewise.
12167         * modules/log (configure.ac): Likewise.
12168         * modules/log10 (configure.ac): Likewise.
12169         * modules/log1p (configure.ac): Likewise.
12170         * modules/logb (configure.ac): Likewise.
12171         * modules/modf (configure.ac): Likewise.
12172         * modules/nextafter (configure.ac): Likewise.
12173         * modules/pow (configure.ac): Likewise.
12174         * modules/remainder (configure.ac): Likewise.
12175         * modules/rint (configure.ac): Likewise.
12176         * modules/sin (configure.ac): Likewise.
12177         * modules/sinh (configure.ac): Likewise.
12178         * modules/tan (configure.ac): Likewise.
12179         * modules/tanh (configure.ac): Likewise.
12180         * modules/y0 (configure.ac): Likewise.
12181         * modules/y1 (configure.ac): Likewise.
12182         * modules/yn (configure.ac): Likewise.
12183
12184 2010-01-24  Bruno Haible  <bruno@clisp.org>
12185
12186         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12187         * tests/test-acosl.c (x): New variable.
12188         (main): Store argument in x and fetch it from x.
12189         * tests/test-asinl.c (x): New variable.
12190         (main): Store argument in x and fetch it from x.
12191         * tests/test-atanl.c (x): New variable.
12192         (main): Store argument in x and fetch it from x.
12193         * tests/test-cosl.c (x): New variable.
12194         (main): Store argument in x and fetch it from x.
12195         * tests/test-expl.c (x): New variable.
12196         (main): Store argument in x and fetch it from x.
12197         * tests/test-logl.c (x): New variable.
12198         (main): Store argument in x and fetch it from x.
12199         * tests/test-sinl.c (x): New variable.
12200         (main): Store argument in x and fetch it from x.
12201         * tests/test-sqrtl.c (x): New variable.
12202         (main): Store argument in x and fetch it from x.
12203         * tests/test-tanl.c (x): New variable.
12204         (main): Store argument in x and fetch it from x.
12205
12206 2010-01-24  Bruno Haible  <bruno@clisp.org>
12207
12208         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12209         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12210         assignments to the initial TESTS_ENVIRONMENT.
12211         * doc/gnulib.texi (Unit test modules): Document it.
12212         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12213         TESTS_ENVIRONMENT.
12214         * modules/btowc-tests (Makefile.am): Likewise.
12215         * modules/c-stack-tests (Makefile.am): Likewise.
12216         * modules/c-strcase-tests (Makefile.am): Likewise.
12217         * modules/copy-file-tests (Makefile.am): Likewise.
12218         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12219         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12220         * modules/mbrtowc-tests (Makefile.am): Likewise.
12221         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12222         * modules/mbscasestr-tests (Makefile.am): Likewise.
12223         * modules/mbschr-tests (Makefile.am): Likewise.
12224         * modules/mbscspn-tests (Makefile.am): Likewise.
12225         * modules/mbsinit-tests (Makefile.am): Likewise.
12226         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12227         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12228         * modules/mbspbrk-tests (Makefile.am): Likewise.
12229         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12230         * modules/mbsrchr-tests (Makefile.am): Likewise.
12231         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12232         * modules/mbsspn-tests (Makefile.am): Likewise.
12233         * modules/mbsstr-tests (Makefile.am): Likewise.
12234         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12235         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12236         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12237         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12238         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12239         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12240         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12241         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12242         * modules/wcrtomb-tests (Makefile.am): Likewise.
12243         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12244         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12245         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12246         assignments from TESTS_ENVIRONMENT.
12247         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12248         augmentation.
12249         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12250         * modules/atexit-tests (Makefile.am): Likewise.
12251         * modules/binary-io-tests (Makefile.am): Likewise.
12252         * modules/closein-tests (Makefile.am): Likewise.
12253         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12254         * modules/exclude-tests (Makefile.am): Likewise.
12255         * modules/fflush-tests (Makefile.am): Likewise.
12256         * modules/fpending-tests (Makefile.am): Likewise.
12257         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12258         * modules/freadahead-tests (Makefile.am): Likewise.
12259         * modules/freadptr-tests (Makefile.am): Likewise.
12260         * modules/freadseek-tests (Makefile.am): Likewise.
12261         * modules/fseek-tests (Makefile.am): Likewise.
12262         * modules/fseeko-tests (Makefile.am): Likewise.
12263         * modules/ftell-tests (Makefile.am): Likewise.
12264         * modules/ftello-tests (Makefile.am): Likewise.
12265         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12266         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12267         * modules/lseek-tests (Makefile.am): Likewise.
12268         * modules/parse-duration-tests (Makefile.am): Likewise.
12269         * modules/perror-tests (Makefile.am): Likewise.
12270         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12271         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12272         * modules/pipe-tests (Makefile.am): Likewise.
12273         * modules/pread-tests (Makefile.am): Likewise.
12274         * modules/printf-posix-tests (Makefile.am): Likewise.
12275         * modules/select-tests (Makefile.am): Likewise.
12276         * modules/sigpipe-tests (Makefile.am): Likewise.
12277         * modules/tsearch-tests (Makefile.am): Likewise.
12278         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12279         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12280         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12281         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12282         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12283         * modules/version-etc-tests (Makefile.am): Likewise.
12284         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12285         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12286         * modules/xalloc-die-tests (Makefile.am): Likewise.
12287         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12288         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12289         * modules/xstrtol-tests (Makefile.am): Likewise.
12290         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12291         * modules/yesno-tests (Makefile.am): Likewise.
12292         Suggested by Jim Meyering.
12293
12294 2010-01-24  Bruno Haible  <bruno@clisp.org>
12295
12296         More documentation.
12297         * doc/gnulib.texi (Writing modules): New chapter.
12298         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12299         the new chapter.
12300
12301 2010-01-24  Jim Meyering  <meyering@redhat.com>
12302
12303         maint.mk: do not prepend "./" after filtering
12304         * top/maint.mk (_prepend_srcdir_prefix): New variable
12305         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12306         "./" when $(srcdir) is ".".
12307
12308         define STREQ(a,b) consistently, removing useless parentheses
12309         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12310         since the only risk is that "a" or "b" contains an unparenthesized
12311         comma, but if either did that, STREQ would have 3 or more arguments.
12312         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12313         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12314         * lib/hash-triple.c (STREQ): Likewise.
12315         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12316         * lib/getugroups.c (STREQ): Likewise.
12317
12318 2010-01-23  Jim Meyering  <meyering@redhat.com>
12319
12320         maint.mk: fix syntax-check in a non-srcdir build directory
12321         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12322         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12323
12324 2010-01-22  Jim Meyering  <meyering@redhat.com>
12325
12326         userspec: add unit tests
12327         * tests/test-userspec.c: New file.
12328         * modules/userspec-tests: Likewise.
12329
12330 2010-01-21  Jim Meyering  <meyering@redhat.com>
12331
12332         maint.mk: handle source file names containing "." robustly
12333         * top/maint.mk (_dot_escaped_srcdir): Define.
12334         (VC_LIST): Use it in LHS of sed substitution.
12335
12336 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12337
12338         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12339         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12340         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12341         from a non-srcdir build.
12342
12343 2010-01-20  Eric Blake  <ebb9@byu.net>
12344
12345         warn-on-use: use instead of link-warning
12346         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12347         * modules/unistd (Depends-on, Makefile.am): Likewise.
12348         * modules/arpa_inet (Depends-on): Replace link-warning with
12349         warn-on-use.
12350         (Makefile.am): Update rules accordingly.
12351         * modules/ctype (Depends-on, Makefile.am): Likewise.
12352         * modules/dirent (Depends-on, Makefile.am): Likewise.
12353         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12354         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12355         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12356         * modules/locale (Depends-on, Makefile.am): Likewise.
12357         * modules/math (Depends-on, Makefile.am): Likewise.
12358         * modules/search (Depends-on, Makefile.am): Likewise.
12359         * modules/signal (Depends-on, Makefile.am): Likewise.
12360         * modules/spawn (Depends-on, Makefile.am): Likewise.
12361         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12362         * modules/string (Depends-on, Makefile.am): Likewise.
12363         * modules/strings (Depends-on, Makefile.am): Likewise.
12364         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12365         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12366         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12367         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12368         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12369         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12370         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12371         * modules/wchar (Depends-on, Makefile.am): Likewise.
12372         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12373         should be poisoned.
12374         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12375         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12376         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12377         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12378         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12379         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12380         * m4/math_h.m4 (gl_MATH_H): Likewise.
12381         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12382         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12383         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12384         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12385         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12386         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12387         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12388         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12389         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12390         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12391         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12392         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12393         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12394         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12395         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12396         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12397         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12398         GL_LINK_WARNING.
12399         * lib/ctype.in.h: Likewise.
12400         * lib/dirent.in.h: Likewise.
12401         * lib/fcntl.in.h: Likewise.
12402         * lib/inttypes.in.h: Likewise.
12403         * lib/langinfo.in.h: Likewise.
12404         * lib/locale.in.h: Likewise.
12405         * lib/math.in.h: Likewise.
12406         * lib/search.in.h: Likewise.
12407         * lib/signal.in.h: Likewise.
12408         * lib/spawn.in.h: Likewise.
12409         * lib/stdio.in.h: Likewise.
12410         * lib/stdlib.in.h: Likewise.
12411         * lib/string.in.h: Likewise.
12412         * lib/strings.in.h: Likewise.
12413         * lib/sys_file.in.h: Likewise.
12414         * lib/sys_ioctl.in.h: Likewise.
12415         * lib/sys_select.in.h: Likewise.
12416         * lib/sys_socket.in.h: Likewise.
12417         * lib/sys_stat.in.h: Likewise.
12418         * lib/sys_times.in.h: Likewise.
12419         * lib/sys_utsname.in.h: Likewise.
12420         * lib/unistd.in.h: Likewise.
12421         * lib/wchar.in.h: Likewise.
12422
12423 2010-01-20  Bruno Haible  <bruno@clisp.org>
12424
12425         Avoid duplicate -lm.
12426         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12427         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12428         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12429         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12430         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12431         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12432         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12433         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12434         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12435         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12436         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12437         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12438         Reported by Paolo Bonzini.
12439
12440 2010-01-19  Bruno Haible  <bruno@clisp.org>
12441
12442         langinfo, nl_langinfo: Relicense under LGPLv2+.
12443         * modules/langinfo (License): Change to LGPLv2+.
12444         * modules/nl_langinfo (License): Likewise.
12445         Patch by David Lutterkort <lutter@redhat.com>.
12446
12447 2010-01-19  Bruno Haible  <bruno@clisp.org>
12448
12449         Avoid compilation error with cc on OSF/1 5.1.
12450         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12451         statement, not before.
12452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12453
12454 2010-01-18  Bruno Haible  <bruno@clisp.org>
12455
12456         Avoid a link error due to the __printf__ symbol.
12457         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12458         and 2.6.x.
12459         (__format__, __printf__): Remove definitions.
12460         * lib/argp-fmtstream.h: Likewise.
12461         * lib/argp.h: Likewise.
12462         * lib/error.h: Likewise.
12463         * lib/vasnprintf.h: Likewise.
12464         * lib/xprintf.h: Likewise.
12465         * lib/xvasprintf.h: Likewise.
12466         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12467
12468 2010-01-18  Bruno Haible  <bruno@clisp.org>
12469
12470         Tests for module 'tanl'.
12471         * modules/tanl-tests: New file.
12472         * tests/test-tanl.c: New file.
12473
12474         Tests for module 'sqrtl'.
12475         * modules/sqrtl-tests: New file.
12476         * tests/test-sqrtl.c: New file.
12477
12478         Tests for module 'sinl'.
12479         * modules/sinl-tests: New file.
12480         * tests/test-sinl.c: New file.
12481
12482         Tests for module 'logl'.
12483         * modules/logl-tests: New file.
12484         * tests/test-logl.c: New file.
12485
12486         Tests for module 'expl'.
12487         * modules/expl-tests: New file.
12488         * tests/test-expl.c: New file.
12489
12490         Tests for module 'cosl'.
12491         * modules/cosl-tests: New file.
12492         * tests/test-cosl.c: New file.
12493
12494         Tests for module 'atanl'.
12495         * modules/atanl-tests: New file.
12496         * tests/test-atanl.c: New file.
12497
12498         Tests for module 'asinl'.
12499         * modules/asinl-tests: New file.
12500         * tests/test-asinl.c: New file.
12501
12502         Tests for module 'acosl'.
12503         * modules/acosl-tests: New file.
12504         * tests/test-acosl.c: New file.
12505
12506         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12507         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12508         tanl): Use the standard gnulib idiom.
12509         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12510         * lib/sinl.c: Likewise.
12511         * lib/tanl.c: Don't include trigl.c.
12512         (kernel_tanl): Make static.
12513         * lib/sincosl.c: Include trigl.h first.
12514         * lib/trigl.c: Likewise.
12515         * m4/acosl.m4: New file.
12516         * m4/asinl.m4: New file.
12517         * m4/atanl.m4: New file.
12518         * m4/cosl.m4: New file.
12519         * m4/expl.m4: New file.
12520         * m4/logl.m4: New file.
12521         * m4/sinl.m4: New file.
12522         * m4/sqrtl.m4: New file.
12523         * m4/tanl.m4: New file.
12524         * m4/mathl.m4: Remove file.
12525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12526         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12527         Don't initialize GNULIB_MATHL.
12528         * modules/acosl: New file.
12529         * modules/asinl: New file.
12530         * modules/atanl: New file.
12531         * modules/cosl: New file.
12532         * modules/expl: New file.
12533         * modules/logl: New file.
12534         * modules/sinl: New file.
12535         * modules/sqrtl: New file.
12536         * modules/tanl: New file.
12537         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12538         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12539         substitute GNULIB_MATHL.
12540         * modules/mathl: Rewritten.
12541         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12542         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12543         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12544         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12545         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12546         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12547         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12548         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12549         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
12550
12551 2010-01-18  Bruno Haible  <bruno@clisp.org>
12552
12553         sqrt: Make gl_FUNC_SQRT requirable.
12554         * m4/sqrt.m4: New file.
12555         * modules/sqrt (Files): Add it.
12556         (configure.ac): Invoke gl_FUNC_SQRT.
12557
12558 2010-01-18  Bruno Haible  <bruno@clisp.org>
12559
12560         New modules for common <math.h> functions.
12561         * m4/mathfunc.m4: New file.
12562         * modules/acos: New file.
12563         * modules/asin: New file.
12564         * modules/atan: New file.
12565         * modules/atan2: New file.
12566         * modules/cbrt: New file.
12567         * modules/copysign: New file.
12568         * modules/cos: New file.
12569         * modules/cosh: New file.
12570         * modules/erf: New file.
12571         * modules/erfc: New file.
12572         * modules/exp: New file.
12573         * modules/fabs: New file.
12574         * modules/fmod: New file.
12575         * modules/hypot: New file.
12576         * modules/j0: New file.
12577         * modules/j1: New file.
12578         * modules/jn: New file.
12579         * modules/ldexp: New file.
12580         * modules/lgamma: New file.
12581         * modules/log: New file.
12582         * modules/log10: New file.
12583         * modules/log1p: New file.
12584         * modules/logb: New file.
12585         * modules/modf: New file.
12586         * modules/nextafter: New file.
12587         * modules/pow: New file.
12588         * modules/remainder: New file.
12589         * modules/rint: New file.
12590         * modules/sin: New file.
12591         * modules/sinh: New file.
12592         * modules/sqrt: New file.
12593         * modules/tan: New file.
12594         * modules/tanh: New file.
12595         * modules/y0: New file.
12596         * modules/y1: New file.
12597         * modules/yn: New file.
12598         * doc/posix-functions/acos.texi: Mention the 'acos' module.
12599         * doc/posix-functions/asin.texi: Mention the 'asin' module.
12600         * doc/posix-functions/atan.texi: Mention the 'atan' module.
12601         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
12602         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
12603         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
12604         * doc/posix-functions/cos.texi: Mention the 'cos' module.
12605         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
12606         * doc/posix-functions/erf.texi: Mention the 'erf' module.
12607         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
12608         * doc/posix-functions/exp.texi: Mention the 'exp' module.
12609         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
12610         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
12611         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
12612         * doc/posix-functions/j0.texi: Mention the 'j0' module.
12613         * doc/posix-functions/j1.texi: Mention the 'j1' module.
12614         * doc/posix-functions/jn.texi: Mention the 'jn' module.
12615         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
12616         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
12617         * doc/posix-functions/log.texi: Mention the 'log' module.
12618         * doc/posix-functions/log10.texi: Mention the 'log10' module.
12619         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
12620         * doc/posix-functions/logb.texi: Mention the 'logb' module.
12621         * doc/posix-functions/modf.texi: Mention the 'modf' module.
12622         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
12623         * doc/posix-functions/pow.texi: Mention the 'pow' module.
12624         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
12625         * doc/posix-functions/rint.texi: Mention the 'rint' module.
12626         * doc/posix-functions/sin.texi: Mention the 'sin' module.
12627         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
12628         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
12629         * doc/posix-functions/tan.texi: Mention the 'tan' module.
12630         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
12631         * doc/posix-functions/y0.texi: Mention the 'y0' module.
12632         * doc/posix-functions/y1.texi: Mention the 'y1' module.
12633         * doc/posix-functions/yn.texi: Mention the 'yn' module.
12634
12635 2010-01-18  Jim Meyering  <meyering@redhat.com>
12636
12637         ignore-value: relax license to LGPLv2+
12638         * modules/ignore-value (License): Relax to LGPLv2+.
12639
12640         getdate: don't leak when TZ contains two or more '"'s
12641         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
12642         double quote in TZ after the first one.
12643
12644         readtokens: do not leak internal token_lengths buffer
12645         * lib/readtokens.c (readtokens): Free the local, lengths,
12646         when the supplied "token_lengths" parameter is NULL.
12647
12648 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12649
12650         Fix a couple of missing LIBTHREAD link failures on AIX.
12651         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
12652         $(LIBTHREAD).
12653         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
12654
12655         Link test-poll against INET_PTON_LIB.
12656         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
12657         for inet_pton on Solaris 10.
12658
12659 2010-01-17  Bruno Haible  <bruno@clisp.org>
12660
12661         unistdio/*-sprintf: Fix typo in module description.
12662         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
12663         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
12664         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
12665         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
12666         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
12667         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
12668         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
12669         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12670
12671 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12672
12673         gnulib-tool: fix filelist for AIX, HP-UX ksh.
12674         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
12675         variables in shell case patterns, for AIX and HP-UX ksh.
12676
12677         Split large sed scripts, for HP-UX sed.
12678         * modules/stdio: Split sed scripts around 50 sed commands,
12679         to avoid HP-UX limit of 99 commands, in the near future.
12680         * modules/string: Likewise.
12681         * modules/unistd: Likewise.
12682
12683         gnulib-tool: avoid writing in the current directory.
12684         * gnulib-tool (func_emit_lib_Makefile_am)
12685         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
12686         not in the current directory, so concurrent gnulib-tool
12687         instances do not interfere.
12688
12689 2010-01-16  Jim Meyering  <meyering@redhat.com>
12690
12691         doc: update users.txt
12692         * users.txt: Add grep.
12693         (diffutils, gzip): Update URLs.
12694
12695 2010-01-12  Bruno Haible  <bruno@clisp.org>
12696
12697         posix_spawn: Avoid test failure on Cygwin.
12698         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
12699         characters.
12700         Reported by Simon Josefsson.
12701
12702 2010-01-12  Bruno Haible  <bruno@clisp.org>
12703
12704         * tests/test-cond.c (main): When skipping the test, show the reason.
12705
12706 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12707
12708         * lib/striconv.c (str_cd_iconv): Avoid if before free.
12709
12710 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12711
12712         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
12713         VC_LIST_ALWAYS_EXCLUDE_REGEX.
12714
12715 2010-01-12  Eric Blake  <ebb9@byu.net>
12716
12717         build: guarantee AS_VAR_IF
12718         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
12719         (gl_AS_VAR_IF): Move...
12720         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
12721         Reported by Simon Josefsson.
12722
12723 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12724
12725         * lib/stdio.in.h: Fix typo.
12726
12727 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12728
12729         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
12730         libgpg-error.
12731
12732 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12733
12734         * tests/test-xalloc-die.sh: Use $EXEEXT.
12735
12736 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12737             Bruno Haible  <bruno@clisp.org>
12738
12739         getlogin, getlogin_r: Avoid test failure.
12740         * tests/test-getlogin.c: Include <stdio.h>.
12741         (main): Skip the test when the function fails because stdin is not a
12742         tty.
12743         * tests/test-getlogin_r.c: Include <stdio.h>.
12744         (main): Skip the test when the function fails because stdin is not a
12745         tty.
12746
12747 2010-01-11  Eric Blake  <ebb9@byu.net>
12748
12749         tests: avoid more large file warnings
12750         * tests/test-fflush.c: Avoid warning about ftell use.
12751         * tests/test-fseek.c: Avoid warning about fseek use.
12752
12753 2010-01-10  Bruno Haible  <bruno@clisp.org>
12754
12755         nproc: Work better on Linux when /proc and /sys are not mounted.
12756         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
12757         as lower bound when, on glibc/Linux systems,
12758         sysconf (_SC_NPROCESSORS_CONF) returns 1.
12759         Suggested by Pádraig Brady <P@draigbrady.com>.
12760         Reported by Dmitry V. Levin <ldv@altlinux.org>.
12761
12762         nproc: Refactor.
12763         * lib/nproc.c (num_processors_via_affinity_mask): New function,
12764         extracted from num_processors.
12765         (num_processors): Call it.
12766
12767 2010-01-11  Jim Meyering  <meyering@redhat.com>
12768
12769         utimecmp: avoid new warning from upcoming gcc-4.5.0
12770         * lib/utimecmp.c (BILLION): Define using #define rather than an
12771         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
12772
12773 2010-01-11  Eric Blake  <ebb9@byu.net>
12774
12775         math: add portability warnings for classification macros
12776         * modules/math (Depends-on): Add warn-on-use.
12777         (Makefile.am): Provide new substitutions.
12778         * m4/math_h.m4 (gl_MATH_H): Require inline.
12779         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
12780         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
12781         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
12782         implement warnings.
12783
12784         unistd: warn on use of environ without module
12785         * modules/unistd (Depends-on): Add warn-on-use.
12786         (Makefile.am): Provide new substitutions.
12787         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
12788         * lib/unistd.in.h (environ): Wrap with a warning helper function.
12789
12790         stdio: warn on suspicious uses
12791         * modules/stdio (Depends-on): Add warn-on-use.
12792         (Makefile.am): Provide new substitutions.
12793         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
12794         fseeko.
12795         * lib/stdio.in.h (gets): Always warn on use.
12796         (fseek, ftell): Adjust when warnings are issued, and honor
12797         _GL_NO_LARGE_FILES as a way to silence the warning.
12798         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
12799         any warning about large file offsets.
12800         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
12801         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
12802         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
12803         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
12804         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
12805         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
12806         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
12807         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
12808
12809         warn-on-use: new module
12810         * modules/warn-on-use: New file.
12811         * build-aux/warn-on-use.h: Likewise.
12812         * m4/warn-on-use.m4: Likewise.
12813         * MODULES.html.sh (Support for building): Mention it.
12814
12815 2010-01-10  Bruno Haible  <bruno@clisp.org>
12816
12817         Tests for module 'unistr/u32-strdup'.
12818         * modules/unistr/u32-strdup-tests: New file.
12819         * tests/unistr/test-u32-strdup.c: New file.
12820
12821         Tests for module 'unistr/u16-strdup'.
12822         * modules/unistr/u16-strdup-tests: New file.
12823         * tests/unistr/test-u16-strdup.c: New file.
12824
12825         Tests for module 'unistr/u8-strdup'.
12826         * modules/unistr/u8-strdup-tests: New file.
12827         * tests/unistr/test-u8-strdup.c: New file.
12828         * tests/unistr/test-strdup.h: New file.
12829
12830         Tests for module 'unistr/u32-strncmp'.
12831         * modules/unistr/u32-strncmp-tests: New file.
12832         * tests/unistr/test-u32-strncmp.c: New file.
12833
12834         Tests for module 'unistr/u16-strncmp'.
12835         * modules/unistr/u16-strncmp-tests: New file.
12836         * tests/unistr/test-u16-strncmp.c: New file.
12837
12838         Tests for module 'unistr/u8-strncmp'.
12839         * modules/unistr/u8-strncmp-tests: New file.
12840         * tests/unistr/test-u8-strncmp.c: New file.
12841         * tests/unistr/test-strncmp.h: New file.
12842
12843         Tests for module 'unistr/u32-strcoll'.
12844         * modules/unistr/u32-strcoll-tests: New file.
12845         * tests/unistr/test-u32-strcoll.c: New file.
12846
12847         Tests for module 'unistr/u16-strcoll'.
12848         * modules/unistr/u16-strcoll-tests: New file.
12849         * tests/unistr/test-u16-strcoll.c: New file.
12850
12851         Tests for module 'unistr/u8-strcoll'.
12852         * modules/unistr/u8-strcoll-tests: New file.
12853         * tests/unistr/test-u8-strcoll.c: New file.
12854
12855         Tests for module 'unistr/u32-strcmp'.
12856         * modules/unistr/u32-strcmp-tests: New file.
12857         * tests/unistr/test-u32-strcmp.c: New file.
12858         * tests/unistr/test-u32-strcmp.h: New file.
12859
12860         Tests for module 'unistr/u16-strcmp'.
12861         * modules/unistr/u16-strcmp-tests: New file.
12862         * tests/unistr/test-u16-strcmp.c: New file.
12863         * tests/unistr/test-u16-strcmp.h: New file.
12864
12865         Tests for module 'unistr/u8-strcmp'.
12866         * modules/unistr/u8-strcmp-tests: New file.
12867         * tests/unistr/test-u8-strcmp.c: New file.
12868         * tests/unistr/test-u8-strcmp.h: New file.
12869         * tests/unistr/test-strcmp.h: New file.
12870
12871         Tests for module 'unistr/u32-strncat'.
12872         * modules/unistr/u32-strncat-tests: New file.
12873         * tests/unistr/test-u32-strncat.c: New file.
12874
12875         Tests for module 'unistr/u16-strncat'.
12876         * modules/unistr/u16-strncat-tests: New file.
12877         * tests/unistr/test-u16-strncat.c: New file.
12878
12879         Tests for module 'unistr/u8-strncat'.
12880         * modules/unistr/u8-strncat-tests: New file.
12881         * tests/unistr/test-u8-strncat.c: New file.
12882         * tests/unistr/test-strncat.h: New file.
12883
12884         Tests for module 'unistr/u32-strcat'.
12885         * modules/unistr/u32-strcat-tests: New file.
12886         * tests/unistr/test-u32-strcat.c: New file.
12887
12888         Tests for module 'unistr/u16-strcat'.
12889         * modules/unistr/u16-strcat-tests: New file.
12890         * tests/unistr/test-u16-strcat.c: New file.
12891
12892         Tests for module 'unistr/u8-strcat'.
12893         * modules/unistr/u8-strcat-tests: New file.
12894         * tests/unistr/test-u8-strcat.c: New file.
12895         * tests/unistr/test-strcat.h: New file.
12896
12897         Tests for module 'unistr/u32-stpncpy'.
12898         * modules/unistr/u32-stpncpy-tests: New file.
12899         * tests/unistr/test-u32-stpncpy.c: New file.
12900
12901         Tests for module 'unistr/u16-stpncpy'.
12902         * modules/unistr/u16-stpncpy-tests: New file.
12903         * tests/unistr/test-u16-stpncpy.c: New file.
12904
12905         Tests for module 'unistr/u8-stpncpy'.
12906         * modules/unistr/u8-stpncpy-tests: New file.
12907         * tests/unistr/test-u8-stpncpy.c: New file.
12908         * tests/unistr/test-stpncpy.h: New file.
12909
12910         Tests for module 'unistr/u32-strncpy'.
12911         * modules/unistr/u32-strncpy-tests: New file.
12912         * tests/unistr/test-u32-strncpy.c: New file.
12913
12914         Tests for module 'unistr/u16-strncpy'.
12915         * modules/unistr/u16-strncpy-tests: New file.
12916         * tests/unistr/test-u16-strncpy.c: New file.
12917
12918         Tests for module 'unistr/u8-strncpy'.
12919         * modules/unistr/u8-strncpy-tests: New file.
12920         * tests/unistr/test-u8-strncpy.c: New file.
12921         * tests/unistr/test-strncpy.h: New file.
12922
12923         Tests for module 'unistr/u32-stpcpy'.
12924         * modules/unistr/u32-stpcpy-tests: New file.
12925         * tests/unistr/test-u32-stpcpy.c: New file.
12926
12927         Tests for module 'unistr/u16-stpcpy'.
12928         * modules/unistr/u16-stpcpy-tests: New file.
12929         * tests/unistr/test-u16-stpcpy.c: New file.
12930
12931         Tests for module 'unistr/u8-stpcpy'.
12932         * modules/unistr/u8-stpcpy-tests: New file.
12933         * tests/unistr/test-u8-stpcpy.c: New file.
12934         * tests/unistr/test-stpcpy.h: New file.
12935
12936         Tests for module 'unistr/u32-strcpy'.
12937         * modules/unistr/u32-strcpy-tests: New file.
12938         * tests/unistr/test-u32-strcpy.c: New file.
12939
12940         Tests for module 'unistr/u16-strcpy'.
12941         * modules/unistr/u16-strcpy-tests: New file.
12942         * tests/unistr/test-u16-strcpy.c: New file.
12943
12944         Tests for module 'unistr/u8-strcpy'.
12945         * modules/unistr/u8-strcpy-tests: New file.
12946         * tests/unistr/test-u8-strcpy.c: New file.
12947         * tests/unistr/test-strcpy.h: New file.
12948
12949         Tests for module 'unistr/u32-strnlen'.
12950         * modules/unistr/u32-strnlen-tests: New file.
12951         * tests/unistr/test-u32-strnlen.c: New file.
12952
12953         Tests for module 'unistr/u16-strnlen'.
12954         * modules/unistr/u16-strnlen-tests: New file.
12955         * tests/unistr/test-u16-strnlen.c: New file.
12956
12957         Tests for module 'unistr/u8-strnlen'.
12958         * modules/unistr/u8-strnlen-tests: New file.
12959         * tests/unistr/test-u8-strnlen.c: New file.
12960         * tests/unistr/test-strnlen.h: New file.
12961
12962         Tests for module 'unistr/u32-strlen'.
12963         * modules/unistr/u32-strlen-tests: New file.
12964         * tests/unistr/test-u32-strlen.c: New file.
12965
12966         Tests for module 'unistr/u16-strlen'.
12967         * modules/unistr/u16-strlen-tests: New file.
12968         * tests/unistr/test-u16-strlen.c: New file.
12969
12970         Tests for module 'unistr/u8-strlen'.
12971         * modules/unistr/u8-strlen-tests: New file.
12972         * tests/unistr/test-u8-strlen.c: New file.
12973
12974         Tests for module 'unistr/u32-prev'.
12975         * modules/unistr/u32-prev-tests: New file.
12976         * tests/unistr/test-u32-prev.c: New file.
12977
12978         Tests for module 'unistr/u16-prev'.
12979         * modules/unistr/u16-prev-tests: New file.
12980         * tests/unistr/test-u16-prev.c: New file.
12981
12982         Tests for module 'unistr/u8-prev'.
12983         * modules/unistr/u8-prev-tests: New file.
12984         * tests/unistr/test-u8-prev.c: New file.
12985
12986         Tests for module 'unistr/u32-next'.
12987         * modules/unistr/u32-next-tests: New file.
12988         * tests/unistr/test-u32-next.c: New file.
12989
12990         Tests for module 'unistr/u16-next'.
12991         * modules/unistr/u16-next-tests: New file.
12992         * tests/unistr/test-u16-next.c: New file.
12993
12994         Tests for module 'unistr/u8-next'.
12995         * modules/unistr/u8-next-tests: New file.
12996         * tests/unistr/test-u8-next.c: New file.
12997
12998         Tests for module 'unistr/u32-strmbtouc'.
12999         * modules/unistr/u32-strmbtouc-tests: New file.
13000         * tests/unistr/test-u32-strmbtouc.c: New file.
13001
13002         Tests for module 'unistr/u16-strmbtouc'.
13003         * modules/unistr/u16-strmbtouc-tests: New file.
13004         * tests/unistr/test-u16-strmbtouc.c: New file.
13005
13006         Tests for module 'unistr/u8-strmbtouc'.
13007         * modules/unistr/u8-strmbtouc-tests: New file.
13008         * tests/unistr/test-u8-strmbtouc.c: New file.
13009
13010         Tests for module 'unistr/u32-strmblen'.
13011         * modules/unistr/u32-strmblen-tests: New file.
13012         * tests/unistr/test-u32-strmblen.c: New file.
13013
13014         Tests for module 'unistr/u16-strmblen'.
13015         * modules/unistr/u16-strmblen-tests: New file.
13016         * tests/unistr/test-u16-strmblen.c: New file.
13017
13018         Tests for module 'unistr/u8-strmblen'.
13019         * modules/unistr/u8-strmblen-tests: New file.
13020         * tests/unistr/test-u8-strmblen.c: New file.
13021
13022         Tests for module 'unistr/u32-cpy-alloc'.
13023         * modules/unistr/u32-cpy-alloc-tests: New file.
13024         * tests/unistr/test-u32-cpy-alloc.c: New file.
13025
13026         Tests for module 'unistr/u16-cpy-alloc'.
13027         * modules/unistr/u16-cpy-alloc-tests: New file.
13028         * tests/unistr/test-u16-cpy-alloc.c: New file.
13029
13030         Tests for module 'unistr/u8-cpy-alloc'.
13031         * modules/unistr/u8-cpy-alloc-tests: New file.
13032         * tests/unistr/test-u8-cpy-alloc.c: New file.
13033         * tests/unistr/test-cpy-alloc.h: New file.
13034
13035         Tests for module 'unistr/u32-mbsnlen'.
13036         * modules/unistr/u32-mbsnlen-tests: New file.
13037         * tests/unistr/test-u32-mbsnlen.c: New file.
13038
13039         Tests for module 'unistr/u16-mbsnlen'.
13040         * modules/unistr/u16-mbsnlen-tests: New file.
13041         * tests/unistr/test-u16-mbsnlen.c: New file.
13042
13043         Tests for module 'unistr/u8-mbsnlen'.
13044         * modules/unistr/u8-mbsnlen-tests: New file.
13045         * tests/unistr/test-u8-mbsnlen.c: New file.
13046
13047         Tests for module 'unistr/u32-chr'.
13048         * modules/unistr/u32-chr-tests: New file.
13049         * tests/unistr/test-u32-chr.c: New file.
13050
13051         Tests for module 'unistr/u16-chr'.
13052         * modules/unistr/u16-chr-tests: New file.
13053         * tests/unistr/test-u16-chr.c: New file.
13054
13055         Tests for module 'unistr/u8-chr'.
13056         * modules/unistr/u8-chr-tests: New file.
13057         * tests/unistr/test-u8-chr.c: New file.
13058         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13059
13060         Tests for module 'unistr/u32-cmp2'.
13061         * modules/unistr/u32-cmp2-tests: New file.
13062         * tests/unistr/test-u32-cmp2.c: New file.
13063
13064         Tests for module 'unistr/u16-cmp2'.
13065         * modules/unistr/u16-cmp2-tests: New file.
13066         * tests/unistr/test-u16-cmp2.c: New file.
13067
13068         Tests for module 'unistr/u8-cmp2'.
13069         * modules/unistr/u8-cmp2-tests: New file.
13070         * tests/unistr/test-u8-cmp2.c: New file.
13071         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13072
13073         Tests for module 'unistr/u32-cmp'.
13074         * modules/unistr/u32-cmp-tests: New file.
13075         * tests/unistr/test-u32-cmp.c: New file.
13076
13077         Tests for module 'unistr/u16-cmp'.
13078         * modules/unistr/u16-cmp-tests: New file.
13079         * tests/unistr/test-u16-cmp.c: New file.
13080
13081         Tests for module 'unistr/u8-cmp'.
13082         * modules/unistr/u8-cmp-tests: New file.
13083         * tests/unistr/test-u8-cmp.c: New file.
13084         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13085
13086         Tests for module 'unistr/u32-set'.
13087         * modules/unistr/u32-set-tests: New file.
13088         * tests/unistr/test-u32-set.c: New file.
13089
13090         Tests for module 'unistr/u16-set'.
13091         * modules/unistr/u16-set-tests: New file.
13092         * tests/unistr/test-u16-set.c: New file.
13093
13094         Tests for module 'unistr/u8-set'.
13095         * modules/unistr/u8-set-tests: New file.
13096         * tests/unistr/test-u8-set.c: New file.
13097         * tests/unistr/test-set.h: New file.
13098
13099         Tests for module 'unistr/u32-move'.
13100         * modules/unistr/u32-move-tests: New file.
13101         * tests/unistr/test-u32-move.c: New file.
13102
13103         Tests for module 'unistr/u16-move'.
13104         * modules/unistr/u16-move-tests: New file.
13105         * tests/unistr/test-u16-move.c: New file.
13106
13107         Tests for module 'unistr/u8-move'.
13108         * modules/unistr/u8-move-tests: New file.
13109         * tests/unistr/test-u8-move.c: New file.
13110         * tests/unistr/test-move.h: New file.
13111
13112         Tests for module 'unistr/u32-cpy'.
13113         * modules/unistr/u32-cpy-tests: New file.
13114         * tests/unistr/test-u32-cpy.c: New file.
13115
13116         Tests for module 'unistr/u16-cpy'.
13117         * modules/unistr/u16-cpy-tests: New file.
13118         * tests/unistr/test-u16-cpy.c: New file.
13119
13120         Tests for module 'unistr/u8-cpy'.
13121         * modules/unistr/u8-cpy-tests: New file.
13122         * tests/unistr/test-u8-cpy.c: New file.
13123         * tests/unistr/test-cpy.h: New file.
13124
13125 2010-01-09  Bruno Haible  <bruno@clisp.org>
13126
13127         Tests for module 'unistr/u32-uctomb'.
13128         * modules/unistr/u32-uctomb-tests: New file.
13129         * tests/unistr/test-u32-uctomb.c: New file.
13130
13131         Tests for module 'unistr/u16-uctomb'.
13132         * modules/unistr/u16-uctomb-tests: New file.
13133         * tests/unistr/test-u16-uctomb.c: New file.
13134
13135         Tests for module 'unistr/u8-uctomb'.
13136         * modules/unistr/u8-uctomb-tests: New file.
13137         * tests/unistr/test-u8-uctomb.c: New file.
13138
13139         Tests for module 'unistr/u32-mbtoucr'.
13140         * modules/unistr/u32-mbtoucr-tests: New file.
13141         * tests/unistr/test-u32-mbtoucr.c: New file.
13142
13143         Tests for module 'unistr/u16-mbtoucr'.
13144         * modules/unistr/u16-mbtoucr-tests: New file.
13145         * tests/unistr/test-u16-mbtoucr.c: New file.
13146
13147         Tests for module 'unistr/u8-mbtoucr'.
13148         * modules/unistr/u8-mbtoucr-tests: New file.
13149         * tests/unistr/test-u8-mbtoucr.c: New file.
13150
13151         Tests for module 'unistr/u32-mbtouc'.
13152         * modules/unistr/u32-mbtouc-tests: New file.
13153         * tests/unistr/test-u32-mbtouc.c: New file.
13154
13155         Tests for module 'unistr/u16-mbtouc'.
13156         * modules/unistr/u16-mbtouc-tests: New file.
13157         * tests/unistr/test-u16-mbtouc.c: New file.
13158
13159         Tests for module 'unistr/u8-mbtouc'.
13160         * modules/unistr/u8-mbtouc-tests: New file.
13161         * tests/unistr/test-u8-mbtouc.c: New file.
13162
13163         Tests for module 'unistr/u32-mbtouc-unsafe'.
13164         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13165         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13166         * tests/unistr/test-u32-mbtouc.h: New file.
13167
13168         Tests for module 'unistr/u16-mbtouc-unsafe'.
13169         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13170         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13171         * tests/unistr/test-u16-mbtouc.h: New file.
13172
13173         Tests for module 'unistr/u8-mbtouc-unsafe'.
13174         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13175         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13176         * tests/unistr/test-u8-mbtouc.h: New file.
13177
13178         Tests for module 'unistr/u32-mblen'.
13179         * modules/unistr/u32-mblen-tests: New file.
13180         * tests/unistr/test-u32-mblen.c: New file.
13181
13182         Tests for module 'unistr/u16-mblen'.
13183         * modules/unistr/u16-mblen-tests: New file.
13184         * tests/unistr/test-u16-mblen.c: New file.
13185
13186         Tests for module 'unistr/u8-mblen'.
13187         * modules/unistr/u8-mblen-tests: New file.
13188         * tests/unistr/test-u8-mblen.c: New file.
13189
13190         Tests for module 'unistr/u32-to-u16'.
13191         * modules/unistr/u32-to-u16-tests: New file.
13192         * tests/unistr/test-u32-to-u16.c: New file.
13193
13194         Tests for module 'unistr/u32-to-u8'.
13195         * modules/unistr/u32-to-u8-tests: New file.
13196         * tests/unistr/test-u32-to-u8.c: New file.
13197
13198         Tests for module 'unistr/u16-to-u32'.
13199         * modules/unistr/u16-to-u32-tests: New file.
13200         * tests/unistr/test-u16-to-u32.c: New file.
13201
13202         Tests for module 'unistr/u16-to-u8'.
13203         * modules/unistr/u16-to-u8-tests: New file.
13204         * tests/unistr/test-u16-to-u8.c: New file.
13205
13206         Tests for module 'unistr/u8-to-u32'.
13207         * modules/unistr/u8-to-u32-tests: New file.
13208         * tests/unistr/test-u8-to-u32.c: New file.
13209
13210         Tests for module 'unistr/u8-to-u16'.
13211         * modules/unistr/u8-to-u16-tests: New file.
13212         * tests/unistr/test-u8-to-u16.c: New file.
13213
13214         Tests for module 'unistr/u32-check'.
13215         * modules/unistr/u32-check-tests: New file.
13216         * tests/unistr/test-u32-check.c: New file.
13217
13218         Tests for module 'unistr/u16-check'.
13219         * modules/unistr/u16-check-tests: New file.
13220         * tests/unistr/test-u16-check.c: New file.
13221
13222         Tests for module 'unistr/u8-check'.
13223         * modules/unistr/u8-check-tests: New file.
13224         * tests/unistr/test-u8-check.c: New file.
13225
13226         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13227         (category_equals): New function.
13228         (main): Add more tests.
13229         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13230
13231         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13232
13233 2010-01-10  Bruno Haible  <bruno@clisp.org>
13234
13235         unistr/u*-strcoll: Try harder to distinguish different strings.
13236         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13237         compare s1 and s2 to see if they are different.
13238
13239 2010-01-10  Bruno Haible  <bruno@clisp.org>
13240
13241         unistr/u*-stpncpy: Fix the return value.
13242         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13243         description of the return value consistent with stpncpy in glibc.
13244         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13245         written non-NUL unit.
13246
13247 2010-01-10  Bruno Haible  <bruno@clisp.org>
13248
13249         unistr/u*-next: Add missing dependencies.
13250         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13251         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13252         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13253
13254 2010-01-10  Bruno Haible  <bruno@clisp.org>
13255
13256         unistr/u8-mbsnlen: Fix return value for incomplete character.
13257         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13258         u8_mblen.
13259         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13260         Remove unistr/u8-mblen.
13261         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13262         u16_mblen.
13263         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13264         Remove unistr/u16-mblen.
13265
13266 2010-01-10  Bruno Haible  <bruno@clisp.org>
13267
13268         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13269         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13270         Reported by Brian Gough <bjg@gnu.org> and
13271         Chris Clayton <chris2553@googlemail.com> via
13272         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13273
13274 2010-01-09  Bruno Haible  <bruno@clisp.org>
13275
13276         unistr/u16-to-u32: Reject invalid input.
13277         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13278         u16_mbtouc.
13279         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13280         Remove unistr/u16-mbtouc.
13281
13282         unistr/u16-to-u8: Reject invalid input.
13283         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13284         u16_mbtouc.
13285         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13286         Remove unistr/u16-mbtouc.
13287
13288         unistr/u8-to-u32: Reject invalid input.
13289         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13290         u8_mbtouc.
13291         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13292         Remove unistr/u8-mbtouc.
13293
13294         unistr/u8-to-u16: Reject invalid input.
13295         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13296         u8_mbtouc.
13297         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13298         Remove unistr/u8-mbtouc.
13299
13300 2010-01-09  Bruno Haible  <bruno@clisp.org>
13301
13302         Tests for module 'getlogin'.
13303         * modules/getlogin-tests: New file.
13304         * tests/test-getlogin.c: New file.
13305
13306         New module 'getlogin'.
13307         * lib/unistd.in.h (getlogin): New declaration.
13308         * lib/getlogin.c: New file.
13309         * m4/getlogin.m4: New file.
13310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13311         HAVE_GETLOGIN.
13312         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13313         HAVE_GETLOGIN.
13314         * modules/getlogin: New file.
13315         * doc/posix-functions/getlogin.texi: Mention the new module.
13316         Reported by John W. Eaton <jwe@gnu.org>.
13317
13318 2010-01-09  Bruno Haible  <bruno@clisp.org>
13319
13320         getlogin_r: Support for native Windows.
13321         * lib/getlogin_r.c: Include <windows.h>
13322         (getlogin_r): Implement for native Windows.
13323         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13324         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13325         via John W. Eaton <jwe@gnu.org>.
13326
13327 2010-01-09  Bruno Haible  <bruno@clisp.org>
13328
13329         getlogin_r: Small fixes.
13330         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13331         succeeds.
13332         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13333         before testing whether getlogin_r is declared. No need to set
13334         HAVE_DECL_GETLOGIN_R to 1.
13335         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13336
13337 2010-01-09  Bruno Haible  <bruno@clisp.org>
13338
13339         * lib/unistd.in.h (getlogin_r): Add comment.
13340
13341 2010-01-09  Bruno Haible  <bruno@clisp.org>
13342
13343         Tests for module 'getlogin_r'.
13344         * modules/getlogin_r-tests: New file.
13345         * tests/test-getlogin_r.c: New file.
13346
13347 2010-01-09  Jim Meyering  <meyering@redhat.com>
13348
13349         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13350         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13351         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13352
13353 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13354
13355         * lib/dup2.c (rpl_dup2): Improve comment.
13356
13357 2010-01-08  Eric Blake  <ebb9@byu.net>
13358
13359         maint.mk: allow packages to add makefile @@ exceptions
13360         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13361         (sc_makefile_check): Rename...
13362         (sc_makefile_at_at_check): ...to this, and use hook.
13363
13364         dup2: work around mingw bug
13365         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13366         Reported by Simon Josefsson.
13367
13368 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13369
13370         glob: Fix C++ compilation.
13371         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13372         C++.
13373
13374 2010-01-07  Bruno Haible  <bruno@clisp.org>
13375
13376         Fix indentation of wctype.in.h, broken since 2007-01-06.
13377         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13378
13379 2010-01-07  Bruno Haible  <bruno@clisp.org>
13380
13381         mbslen: Avoid collision with system function.
13382         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13383         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13384         * m4/mbslen.m4: New file.
13385         * modules/mbslen (Files): Add it.
13386         (configure.ac): Invoke gl_MBSLEN.
13387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13388         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13389         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13390         via Ian Beckwith <ianb@erislabs.net>.
13391
13392 2010-01-07  Bruno Haible  <bruno@clisp.org>
13393
13394         dirent: Document the last fix.
13395         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13396
13397 2010-01-07  Bruno Haible  <bruno@clisp.org>
13398
13399         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13400         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13401         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13402         va_list are defined.
13403         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13404         Reported by Eric Blake.
13405
13406 2010-01-07  Bruno Haible  <bruno@clisp.org>
13407
13408         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13409         * modules/xlist (Depends-on): Add 'list',
13410         * modules/xoset (Depends-on): Add 'oset'.
13411         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13412
13413 2010-01-07  Bruno Haible  <bruno@clisp.org>
13414
13415         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13416         * doc/posix-functions/strncasecmp.texi: Likewise.
13417
13418 2010-01-07  Bruno Haible  <bruno@clisp.org>
13419
13420         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13421
13422 2010-01-07  John W. Eaton  <jwe@octave.org>
13423
13424         wctype: allow C++ use
13425         * lib/wctype.in.h: Add extern "C" block for C++.
13426
13427 2010-01-06  Eric Blake  <ebb9@byu.net>
13428
13429         maint.mk: detect incorrect GFDL usage
13430         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13431
13432 2010-01-06  Jim Meyering  <meyering@redhat.com>
13433         and Eric Blake  <ebb9@byu.net>
13434
13435         maint.mk: ignore multi-line copyright in NEWS
13436         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13437
13438 2010-01-06  Eric Blake  <ebb9@byu.net>
13439
13440         select: add missing dependency
13441         * modules/select-tests (Depends-on): Move sockets dependency...
13442         * modules/select (Depends-on): ...here.
13443         Reported by Ian Beckwith.
13444
13445         doc: regenerate INSTALL
13446         * doc/INSTALL: Reflect recent autoconf update.
13447         * doc/INSTALL.ISO: Likewise.
13448         * doc/INSTALL.UTF-8: Likewise.
13449
13450         pread: fix compilation on glibc
13451         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13452         Reported by Ralf Wildenhues.
13453
13454         dirent: fix test failure
13455         * lib/dirent.in.h (includes): Guarantee ino_t.
13456         Reported by Ralf Wildenhues.
13457
13458 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13459
13460         linkat, renameat: avoid bad free
13461         * lib/at-func2.c (at_func2): Fix typo.
13462         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13463
13464 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13465
13466         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13467         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13468         to avoid failure of symlink test later.
13469
13470 2010-01-06  Eric Blake  <ebb9@byu.net>
13471
13472         stdio, unistd: guarantee ssize_t
13473         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13474         2008 are exposed when needed.
13475         * lib/stdio.in.h (includes): Likewise.
13476         Reported by Ralf Wildenhues.
13477
13478 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
13479
13480         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
13481         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
13482         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
13483
13484 2010-01-06  Jim Meyering  <meyering@redhat.com>
13485
13486         readtokens: this module *does* require xalloc.h
13487         It uses only functions that were omitted by the old syntax-check rule.
13488         * lib/readtokens.c: Include "xalloc.h" once again.
13489         * modules/readtokens (Depends-on): Add xalloc.
13490         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
13491
13492 2010-01-05  Eric Blake  <ebb9@byu.net>
13493
13494         maint: support 'make announcement' from a VPATH build
13495         * top/maint.mk (announcement): Look for correct NEWS file.
13496
13497 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
13498
13499         utimens (fdutimens): ignore a negative FD, per contract
13500         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
13501         when we have a valid file descriptor.  Otherwise, using a brand
13502         new glibc (with just-patched futimens that now fails with EBADF)
13503         would cause this function to fail with ENOSYS.
13504         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13505         See also http://bugzilla.redhat.com/552320.
13506
13507 2010-01-05  Eric Blake  <ebb9@byu.net>
13508
13509         strcase: document what it provides
13510         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13511         gnulib module.
13512         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13513         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13514
13515 2010-01-05  Jim Meyering  <meyering@redhat.com>
13516
13517         maint: remove useless inclusions of "xalloc.h"
13518         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13519         * lib/readtokens.c: Likewise.
13520         * lib/same.c: Likewise.
13521         * modules/getloadavg (Depends-on): Remove xalloc.
13522         * modules/readtokens: Likewise.
13523         * modules/same: Likewise.
13524
13525         maint.mk: include 4 more function names in alloca.h-checking regexp
13526         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13527         regexp.  Before, we would give a false-positive (saying alloca.h
13528         is included unnecessarily) when the only uses involved omitted symbols.
13529
13530         xalloc.h: use consistent formatting
13531         * lib/xalloc.h: Move declarations to start in the first column.
13532
13533 2010-01-05  Eric Blake  <ebb9@byu.net>
13534
13535         mkdir: avoid xalloc
13536         * lib/mkdir.c (includes): Drop unused header.
13537         Reported by John W. Eaton.
13538
13539 2010-01-04  Jim Meyering  <meyering@redhat.com>
13540
13541         nl_langinfo: avoid configure-time syntax error
13542         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13543         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13544         the empty string.  Don't let that provoke a shell syntax error.
13545
13546         regcomp, regexec, fnmatch: avoid array bounds read error
13547         * lib/regcomp.c (build_equiv_class): From glibc:
13548         Use only the low 24 bits of a findidx return value as an index
13549         into the weights array.  Patch by Ulrich Drepper:
13550         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
13551         * lib/regexec.c (check_node_accept_bytes): Likewise.
13552         * lib/fnmatch_loop.c (FCT): Likewise.
13553
13554         regcomp: skip collseq lookup when there are no rules
13555         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
13556         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
13557
13558         regcomp: recognize ill-formed { } expressions
13559         * lib/regcomp.c (parse_dup_op): From glibc:
13560         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
13561
13562         regcomp: fix typo in comment
13563         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
13564         s/satisfy/satisfies/.
13565
13566         regcomp: sync from glibc: remove dead store
13567         * lib/regcomp.c (duplicate_node_closure): Remove useless
13568         search_duplicated_node call and dead store.
13569
13570         regcomp: sync from glibc; always use nl_langinfo
13571         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
13572         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
13573         * modules/regex (Depends-on): Add nl_langinfo.
13574
13575 2010-01-04  Eric Blake  <ebb9@byu.net>
13576
13577         fdopendir: fix configure test
13578         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
13579
13580 2010-01-01  Bruno Haible  <bruno@clisp.org>
13581
13582         wchar: Remove unused configure check.
13583         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
13584
13585 2010-01-01  Eric Blake  <ebb9@byu.net>
13586
13587         headers: make check of system header explicit
13588         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
13589         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
13590         ourselves.
13591         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13592         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13593         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13594         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
13595         internals.
13596         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
13597         missing.
13598         Suggested by Bruno Haible.
13599
13600 2010-01-01  Jim Meyering  <meyering@redhat.com>
13601
13602         ChangeLog: tweak to eliminate unnecessary copyright line
13603         * ChangeLog: Remove a copyright line that was mistakenly updated
13604         by today's update-copyright run.  Reported by Eric Blake.
13605
13606         test-update-copyright: don't let envvar setting cause test failure
13607         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13608
13609 2010-01-01  Bruno Haible  <bruno@clisp.org>
13610
13611         localename: Avoid gcc warning.
13612         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
13613         function if it is not used.
13614
13615 2010-01-01  Jim Meyering  <meyering@redhat.com>
13616
13617         update nearly all FSF copyright year lists to include 2010
13618         Use the same procedure as for 2009, outlined in
13619         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
13620
13621         version-etc: set COPYRIGHT_YEAR to 2010
13622         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
13623
13624 2009-12-31  Eric Blake  <ebb9@byu.net>
13625
13626         doc: correct availability of cygwin 1.5.x getopt
13627         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
13628         variables.
13629         * doc/posix-functions/opterr.texi (opterr): Likewise.
13630         * doc/posix-functions/optind.texi (optind): Likewise.
13631         * doc/posix-functions/optopt.texi (optopt): Likewise.
13632         * doc/posix-functions/tzname.texi (tzname): Likewise.
13633
13634         openat: update maintainer
13635         * modules/openat (Maintainer): Add myself.
13636
13637         utimens: avoid shadowing warning
13638         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
13639         buffers into one, to avoid shadowing, as well as avoiding a
13640         redundant stat.
13641         Reported by Jim Meyering.
13642
13643         test-dup2: avoid compiler warning
13644         * tests/test-dup2.c (is_inheritable): Only define if used.
13645
13646 2010-01-01  Bruno Haible  <bruno@clisp.org>
13647
13648         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
13649         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
13650         defined, use wctomb instead of wcrtomb.
13651
13652 2010-01-01  Bruno Haible  <bruno@clisp.org>
13653
13654         iconv: Reject native Solaris iconv.
13655         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
13656         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
13657
13658 2009-12-31  Bruno Haible  <bruno@clisp.org>
13659
13660         * tests/test-signal.c (main): Remove test of 'SIG'.
13661
13662 2009-12-31  Bruno Haible  <bruno@clisp.org>
13663
13664         spawn: Fix incomplete fix.
13665         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13666         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13667         warnings for GNULIB_POSIXCHECK again.
13668         Reported by Eric Blake.
13669
13670 2009-12-31  Bruno Haible  <bruno@clisp.org>
13671
13672         Avoid namespace pollution on glibc systems.
13673         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
13674         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
13675         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
13676         glibc systems.
13677
13678 2009-12-31  Bruno Haible  <bruno@clisp.org>
13679
13680         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
13681         (gl_REPLACE_WCHAR_H): Turn into a no-op.
13682         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
13683         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13684         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13685         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13686         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13687
13688 2009-12-31  Bruno Haible  <bruno@clisp.org>
13689
13690         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13691         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
13692         afterwards.
13693
13694 2009-12-31  Bruno Haible  <bruno@clisp.org>
13695
13696         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
13697         SYS_UTSNAME_H.
13698
13699 2009-12-31  Bruno Haible  <bruno@clisp.org>
13700
13701         spawn: Fix misapplied patch.
13702         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13703         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13704         warnings for GNULIB_POSIXCHECK.
13705
13706 2009-12-31  Bruno Haible  <bruno@clisp.org>
13707
13708         times: Update after sys_times changed.
13709         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
13710         * modules/times (Files): Add it.
13711         (configure.ac): Invoke gl_FUNC_TIMES.
13712
13713 2009-12-31  Bruno Haible  <bruno@clisp.org>
13714
13715         Use AC_C_INLINE where necessary.
13716         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
13717         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13718         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13719         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
13720         * m4/mbfile.m4 (gl_MBFILE): Likewise.
13721         * m4/mbiter.m4 (gl_MBITER): Likewise.
13722         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13723         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13724         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
13725         * modules/u64 (configure.ac): Likewise.
13726
13727 2009-12-31  Bruno Haible  <bruno@clisp.org>
13728
13729         Use AC_C_INLINE instead of module 'inline' where possible.
13730         * modules/inline (Description): Clarify purpose.
13731         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
13732         * modules/count-one-bits (Depends-on): Remove inline.
13733         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
13734         * modules/openat (Depends-on): Remove inline.
13735         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
13736         instead of depending on module 'inline'.
13737         * modules/filevercmp (Depends-on, configure.ac): Likewise.
13738         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
13739         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
13740         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
13741         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
13742         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
13743         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
13744         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
13745         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
13746         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
13747         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
13748         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
13749         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
13750         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
13751         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
13752         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
13753         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
13754         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
13755         Likewise.
13756         * modules/unictype/property-ascii-hex-digit (Depends-on,
13757         configure.ac): Likewise.
13758         * modules/unictype/property-bidi-arabic-digit (Depends-on,
13759         configure.ac): Likewise.
13760         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
13761         configure.ac): Likewise.
13762         * modules/unictype/property-bidi-block-separator (Depends-on,
13763         configure.ac): Likewise.
13764         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
13765         configure.ac): Likewise.
13766         * modules/unictype/property-bidi-common-separator (Depends-on,
13767         configure.ac): Likewise.
13768         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
13769         Likewise.
13770         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
13771         configure.ac): Likewise.
13772         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
13773         configure.ac): Likewise.
13774         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
13775         configure.ac): Likewise.
13776         * modules/unictype/property-bidi-european-digit (Depends-on,
13777         configure.ac): Likewise.
13778         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
13779         configure.ac): Likewise.
13780         * modules/unictype/property-bidi-left-to-right (Depends-on,
13781         configure.ac): Likewise.
13782         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
13783         configure.ac): Likewise.
13784         * modules/unictype/property-bidi-other-neutral (Depends-on,
13785         configure.ac): Likewise.
13786         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
13787         Likewise.
13788         * modules/unictype/property-bidi-segment-separator (Depends-on,
13789         configure.ac): Likewise.
13790         * modules/unictype/property-bidi-whitespace (Depends-on,
13791         configure.ac): Likewise.
13792         * modules/unictype/property-combining (Depends-on, configure.ac):
13793         Likewise.
13794         * modules/unictype/property-composite (Depends-on, configure.ac):
13795         Likewise.
13796         * modules/unictype/property-currency-symbol (Depends-on,
13797         configure.ac): Likewise.
13798         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
13799         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
13800         Likewise.
13801         * modules/unictype/property-default-ignorable-code-point (Depends-on,
13802         configure.ac): Likewise.
13803         * modules/unictype/property-deprecated (Depends-on, configure.ac):
13804         Likewise.
13805         * modules/unictype/property-diacritic (Depends-on, configure.ac):
13806         Likewise.
13807         * modules/unictype/property-extender (Depends-on, configure.ac):
13808         Likewise.
13809         * modules/unictype/property-format-control (Depends-on, configure.ac):
13810         Likewise.
13811         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
13812         Likewise.
13813         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
13814         Likewise.
13815         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
13816         Likewise.
13817         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
13818         Likewise.
13819         * modules/unictype/property-hyphen (Depends-on, configure.ac):
13820         Likewise.
13821         * modules/unictype/property-id-continue (Depends-on, configure.ac):
13822         Likewise.
13823         * modules/unictype/property-id-start (Depends-on, configure.ac):
13824         Likewise.
13825         * modules/unictype/property-ideographic (Depends-on, configure.ac):
13826         Likewise.
13827         * modules/unictype/property-ids-binary-operator (Depends-on,
13828         configure.ac): Likewise.
13829         * modules/unictype/property-ids-trinary-operator (Depends-on,
13830         configure.ac): Likewise.
13831         * modules/unictype/property-ignorable-control (Depends-on,
13832         configure.ac): Likewise.
13833         * modules/unictype/property-iso-control (Depends-on, configure.ac):
13834         Likewise.
13835         * modules/unictype/property-join-control (Depends-on, configure.ac):
13836         Likewise.
13837         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
13838         Likewise.
13839         * modules/unictype/property-line-separator (Depends-on, configure.ac):
13840         Likewise.
13841         * modules/unictype/property-logical-order-exception (Depends-on,
13842         configure.ac): Likewise.
13843         * modules/unictype/property-lowercase (Depends-on, configure.ac):
13844         Likewise.
13845         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
13846         * modules/unictype/property-non-break (Depends-on, configure.ac):
13847         Likewise.
13848         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
13849         Likewise.
13850         * modules/unictype/property-numeric (Depends-on, configure.ac):
13851         Likewise.
13852         * modules/unictype/property-other-alphabetic (Depends-on,
13853         configure.ac): Likewise.
13854         * modules/unictype/property-other-default-ignorable-code-point
13855         (Depends-on, configure.ac): Likewise.
13856         * modules/unictype/property-other-grapheme-extend (Depends-on,
13857         configure.ac): Likewise.
13858         * modules/unictype/property-other-id-continue (Depends-on,
13859         configure.ac): Likewise.
13860         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
13861         Likewise.
13862         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
13863         Likewise.
13864         * modules/unictype/property-other-math (Depends-on, configure.ac):
13865         Likewise.
13866         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
13867         Likewise.
13868         * modules/unictype/property-paired-punctuation (Depends-on,
13869         configure.ac): Likewise.
13870         * modules/unictype/property-paragraph-separator (Depends-on,
13871         configure.ac): Likewise.
13872         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
13873         Likewise.
13874         * modules/unictype/property-pattern-white-space (Depends-on,
13875         configure.ac): Likewise.
13876         * modules/unictype/property-private-use (Depends-on, configure.ac):
13877         Likewise.
13878         * modules/unictype/property-punctuation (Depends-on, configure.ac):
13879         Likewise.
13880         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
13881         Likewise.
13882         * modules/unictype/property-radical (Depends-on, configure.ac):
13883         Likewise.
13884         * modules/unictype/property-sentence-terminal (Depends-on,
13885         configure.ac): Likewise.
13886         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
13887         Likewise.
13888         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
13889         * modules/unictype/property-terminal-punctuation (Depends-on,
13890         configure.ac): Likewise.
13891         * modules/unictype/property-titlecase (Depends-on, configure.ac):
13892         Likewise.
13893         * modules/unictype/property-unassigned-code-value (Depends-on,
13894         configure.ac): Likewise.
13895         * modules/unictype/property-unified-ideograph (Depends-on,
13896         configure.ac): Likewise.
13897         * modules/unictype/property-uppercase (Depends-on, configure.ac):
13898         Likewise.
13899         * modules/unictype/property-variation-selector (Depends-on,
13900         configure.ac): Likewise.
13901         * modules/unictype/property-white-space (Depends-on, configure.ac):
13902         Likewise.
13903         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
13904         Likewise.
13905         * modules/unictype/property-xid-start (Depends-on, configure.ac):
13906         Likewise.
13907         * modules/unictype/property-zero-width (Depends-on, configure.ac):
13908         Likewise.
13909         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
13910         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
13911         Likewise.
13912
13913 2009-12-31  Bruno Haible  <bruno@clisp.org>
13914
13915         Remove unnecessary AC_C_INLINE invocation.
13916         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
13917         since 2009-08-21.
13918
13919 2009-12-31  Jim Meyering  <meyering@redhat.com>
13920
13921         maint.mk: don't require explicit gpg_key_ID in cfg.mk
13922         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
13923         With this change, we can all remove the gpg_key_ID = ... definition
13924         from our respective cfg.mk files.
13925
13926         maint.mk: create announcement template in ~/, not in /tmp
13927         * top/maint.mk (emit_upload_commands): Adjust.
13928         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
13929         Remove temporary file, .ci-msg.
13930
13931 2009-12-31  Eric Blake  <ebb9@byu.net>
13932
13933         link-warning: always build headers with link warnings
13934         * modules/arpa_inet (Makefile.am): Always build replacement
13935         header.
13936         * modules/ctype (Makefile.am): Likewise.
13937         * modules/dirent (Makefile.am): Likewise.
13938         * modules/inttypes (Makefile.am): Likewise.
13939         * modules/langinfo (Makefile.am): Likewise.
13940         * modules/locale (Makefile.am): Likewise.
13941         * modules/spawn (Makefile.am): Likewise.
13942         * modules/sys_file (Makefile.am): Likewise.
13943         * modules/sys_ioctl (Makefile.am): Likewise.
13944         * modules/sys_select (Makefile.am): Likewise.
13945         * modules/sys_socket (Makefile.am): Likewise.
13946         * modules/sys_times (Makefile.am): Likewise.
13947         * modules/sys_utsname (Makefile.am): Likewise.
13948         * modules/sys_wait (Makefile.am): Likewise.
13949         * modules/wchar (Makefile.am): Likewise.
13950         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
13951         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
13952         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
13953         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
13954         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
13955         Likewise.
13956         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13957         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13958         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
13959         Likewise.
13960         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
13961         Likewise.
13962         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13963         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
13964         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
13965         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13966         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13967         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13968         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13969         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
13970         (gl_WCHAR_H_DEFAULTS): Likewise.
13971
13972 2009-12-31  Eric Blake  <ebb9@byu.net>
13973
13974         signal, spawn: use link warnings
13975         * lib/signal.in.h (sigset_t): Make unconditional.
13976         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
13977         (sigpending, sigprocmask, sigaction): Add link warnings.
13978         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
13979         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
13980         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
13981         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
13982         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
13983         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
13984         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
13985         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
13986         (posix_spawn_file_actions_destroy)
13987         (posix_spawn_file_actions_addopen)
13988         (posix_spawn_file_actions_addclose)
13989         (posix_spawn_file_actions_adddup2): Likewise.
13990         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
13991         * tests/test-signal.c (main): Enhance test.
13992
13993         spawn: improve wrapper support
13994         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
13995         (gl_SPAWN_H_DEFAULTS): New defaults.
13996         * modules/spawn (Makefile.am): Substitute them.
13997         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
13998         Only declare if missing or broken.
13999
14000         sys_times, sys_utsname: use include_next
14001         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14002         header.
14003         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14004         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14005         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14006         * modules/sys_times (Depends-on): Add include_next.
14007         (Makefile.am): Substitute additional values.
14008         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14009         * lib/sys_times.in.h (includes): Include native header, if
14010         available.
14011         * lib/sys_utsname.in.h (includes): Likewise.
14012         * tests/test-sys_times.c (main): Enhance test.
14013
14014         fdutimensat: revert prior patch
14015         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14016         utimens.h.
14017         Reported by Bruno Haible.
14018
14019 2009-12-30  Eric Blake  <ebb9@byu.net>
14020
14021         sys_wait: drop link-warning dependency
14022         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14023         link-warning efforts.
14024         * lib/sys_wait.in.h: Likewise.
14025
14026         fdutimensat: remove bogus dependency
14027         * modules/fdutimensat (Depends-on): Drop inline.
14028
14029         unistd: fix typo
14030         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14031
14032 2009-12-30  Bruno Haible  <bruno@clisp.org>
14033
14034         Fix compilation error with Solaris cc.
14035         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14036         * lib/unicase/u16-is-invariant.c: Likewise.
14037         * lib/unicase/u32-is-invariant.c: Likewise.
14038         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14039
14040 2009-12-30  Bruno Haible  <bruno@clisp.org>
14041
14042         Fix test crash.
14043         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14044         locales.
14045         Reported by Simon Josefsson <simon@josefsson.org>.
14046
14047 2009-12-30  Bruno Haible  <bruno@clisp.org>
14048
14049         Fix compilation error on most platforms.
14050         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14051         Reported by Simon Josefsson <simon@josefsson.org>
14052         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14053
14054 2009-12-30  Eric Blake  <ebb9@byu.net>
14055
14056         futimens, utimensat: work around ntfs-3g bug
14057         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14058         a ctime bug is present, and expand workaround to cover ntfs-3g.
14059         * lib/utimens.c (fdutimens, lutimens): Likewise.
14060         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14061         (validate_timespec): Adjust return value.
14062         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14063         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14064         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14065
14066 2009-12-29  Eric Blake  <ebb9@byu.net>
14067
14068         link-warning: make usage consistent
14069         * modules/ctype (Depends-on): Add link-warning.
14070         (Makefile.am): Update rules accordingly.
14071         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14072         * modules/locale (Depends-on, Makefile.am): Likewise.
14073         * modules/sys_file (Makefile.am): Likewise.
14074         * modules/getopt-posix (Makefile.am): Delete unused link warning
14075         efforts.
14076         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14077         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14078         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14079         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14080
14081         stdio: remove unused variables
14082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14083         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14084         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14085
14086         tests: test more substitute headers
14087         * modules/ctype-tests: New file.
14088         * modules/dirent-tests: Likewise.
14089         * modules/spawn-tests: Likewise.
14090         * modules/sys_file-tests: Likewise.
14091         * modules/sys_ioctl-tests: Likewise.
14092         * modules/sys_wait-tests: Likewise.
14093         * tests/test-ctype.c: Likewise.
14094         * tests/test-dirent.c: Likewise.
14095         * tests/test-spawn.c: Likewise.
14096         * tests/test-sys_file.c: Likewise.
14097         * tests/test-sys_ioctl.c: Likewise.
14098         * tests/test-sys_wait.c: Likewise.
14099         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14100         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14101         whether or not flock is in use.
14102
14103         tests: remove License section from module
14104         * modules/arpa_inet-tests: Remove unneeded section.
14105         * modules/byteswap-tests: Likewise.
14106         * modules/ceilf-tests: Likewise.
14107         * modules/ceill-tests: Likewise.
14108         * modules/crypto/des-tests: Likewise.
14109         * modules/crypto/gc-arcfour-tests: Likewise.
14110         * modules/crypto/gc-arctwo-tests: Likewise.
14111         * modules/crypto/gc-des-tests: Likewise.
14112         * modules/crypto/gc-hmac-md5-tests: Likewise.
14113         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14114         * modules/crypto/gc-md2-tests: Likewise.
14115         * modules/crypto/gc-md4-tests: Likewise.
14116         * modules/crypto/gc-md5-tests: Likewise.
14117         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14118         * modules/crypto/gc-rijndael-tests: Likewise.
14119         * modules/crypto/gc-sha1-tests: Likewise.
14120         * modules/crypto/gc-tests: Likewise.
14121         * modules/crypto/md2-tests: Likewise.
14122         * modules/crypto/md4-tests: Likewise.
14123         * modules/fcntl-h-tests: Likewise.
14124         * modules/floorf-tests: Likewise.
14125         * modules/floorl-tests: Likewise.
14126         * modules/frexp-nolibm-tests: Likewise.
14127         * modules/frexp-tests: Likewise.
14128         * modules/frexpl-nolibm-tests: Likewise.
14129         * modules/frexpl-tests: Likewise.
14130         * modules/getaddrinfo-tests: Likewise.
14131         * modules/inttypes-tests: Likewise.
14132         * modules/isfinite-tests: Likewise.
14133         * modules/isinf-tests: Likewise.
14134         * modules/ldexpl-tests: Likewise.
14135         * modules/locale-tests: Likewise.
14136         * modules/math-tests: Likewise.
14137         * modules/netdb-tests: Likewise.
14138         * modules/netinet_in-tests: Likewise.
14139         * modules/printf-frexp-tests: Likewise.
14140         * modules/printf-frexpl-tests: Likewise.
14141         * modules/priv-set-tests: Likewise.
14142         * modules/random_r-tests: Likewise.
14143         * modules/round-tests: Likewise.
14144         * modules/roundf-tests: Likewise.
14145         * modules/roundl-tests: Likewise.
14146         * modules/search-tests: Likewise.
14147         * modules/select-tests: Likewise.
14148         * modules/signal-tests: Likewise.
14149         * modules/stdbool-tests: Likewise.
14150         * modules/stddef-tests: Likewise.
14151         * modules/stdint-tests: Likewise.
14152         * modules/stdio-tests: Likewise.
14153         * modules/stdlib-tests: Likewise.
14154         * modules/string-tests: Likewise.
14155         * modules/strings-tests: Likewise.
14156         * modules/sys_select-tests: Likewise.
14157         * modules/sys_socket-tests: Likewise.
14158         * modules/sys_stat-tests: Likewise.
14159         * modules/sys_time-tests: Likewise.
14160         * modules/sys_utsname-tests: Likewise.
14161         * modules/sysexits-tests: Likewise.
14162         * modules/time-tests: Likewise.
14163         * modules/trunc-tests: Likewise.
14164         * modules/truncf-tests: Likewise.
14165         * modules/truncl-tests: Likewise.
14166         * modules/tsearch-tests: Likewise.
14167         * modules/unistd-tests: Likewise.
14168         * modules/wchar-tests: Likewise.
14169         * modules/wctype-tests: Likewise.
14170
14171         tests: fix license on several tests
14172         * tests/test-des.c: Update to GPLv3+.
14173         * tests/test-flock.c: Likewise.
14174         * tests/test-fsync.c: Likewise.
14175         * tests/test-futimens.h: Likewise.
14176         * tests/test-gc-arcfour.c: Likewise.
14177         * tests/test-gc-arctwo.c: Likewise.
14178         * tests/test-gc-des.c: Likewise.
14179         * tests/test-gc-hmac-md5.c: Likewise.
14180         * tests/test-gc-hmac-sha1.c: Likewise.
14181         * tests/test-gc-md2.c: Likewise.
14182         * tests/test-gc-md4.c: Likewise.
14183         * tests/test-gc-md5.c: Likewise.
14184         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14185         * tests/test-gc-rijndael.c: Likewise.
14186         * tests/test-gc-sha1.c: Likewise.
14187         * tests/test-gc.c: Likewise.
14188         * tests/test-getcwd.c: Likewise.
14189         * tests/test-link.c: Likewise.
14190         * tests/test-link.h: Likewise.
14191         * tests/test-lutimens.h: Likewise.
14192         * tests/test-md2.c: Likewise.
14193         * tests/test-md4.c: Likewise.
14194         * tests/test-mkdir.h: Likewise.
14195         * tests/test-rename.c: Likewise.
14196         * tests/test-rename.h: Likewise.
14197         * tests/test-safe-alloc.c: Likewise.
14198         * tests/test-utimens-common.h: Likewise.
14199         * tests/test-utimens.h: Likewise.
14200
14201         maint: sync license texts
14202         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14203         * doc/gpl-3.0.texi: Revert copyright year update.
14204         * doc/lgpl-3.0.texi: Likewise.
14205
14206 2009-12-29  Jim Meyering  <meyering@redhat.com>
14207
14208         update nearly all FSF copyright year lists to include 2009
14209         The files named by the following are exempted:
14210             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14211               test -f "$dst" && { echo "$dst"; continue; }
14212               test -d "$dst" || continue
14213               echo "$dst"/$(basename "$src")
14214             done > exempt
14215             git ls-files tests/unictype >> exempt
14216         In the remaining files, convert to all-interval notation if
14217         - there is already at least one year interval like 2000-2003
14218         - the file is maintained by me
14219         - the file is in lib/uni*/, where that style already prevails
14220         Otherwise, use update-copyright's default.
14221
14222 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14223         and Eric Blake  <ebb9@byu.net>
14224
14225         tests: don't require debug system() to pass
14226         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14227         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14228         * tests/test-unlink.h (test_unlink_func): Likewise.
14229         * tests/test-fstatat.c (main): ...into callers.
14230         * tests/test-lstat.c (main): Likewise.
14231         * tests/test-rmdir.c (main): Likewise.
14232         * tests/test-unlink.c (main): Likewise.
14233         * tests/test-unlinkat.c (main): Likewise.
14234         * tests/test-areadlink-with-size.c (main): Don't require a
14235         debug-only system call to pass, aiding cross-testing to mingw.
14236         * tests/test-areadlink.c (main): Likewise.
14237         * tests/test-areadlinkat-with-size.c (main): Likewise.
14238         * tests/test-areadlinkat.c (main): Likewise.
14239         * tests/test-canonicalize-lgpl.c (main): Likewise.
14240         * tests/test-canonicalize.c (main): Likewise.
14241         * tests/test-chown.c (main): Likewise.
14242         * tests/test-fchownat.c (main): Likewise.
14243         * tests/test-lchown.c (main): Likewise.
14244         * tests/test-fdutimensat.c (main): Likewise.
14245         * tests/test-futimens.c (main): Likewise.
14246         * tests/test-link.c (main): Likewise.
14247         * tests/test-linkat.c (main): Likewise.
14248         * tests/test-mkdir.c (main): Likewise.
14249         * tests/test-mkdirat.c (main): Likewise.
14250         * tests/test-mkfifo.c (main): Likewise.
14251         * tests/test-mkfifoat.c (main): Likewise.
14252         * tests/test-mknod.c (main): Likewise.
14253         * tests/test-readlink.c (main): Likewise.
14254         * tests/test-remove.c (main): Likewise.
14255         * tests/test-rename.c (main): Likewise.
14256         * tests/test-renameat.c (main): Likewise.
14257         * tests/test-symlink.c (main): Likewise.
14258         * tests/test-symlinkat.c (main): Likewise.
14259         * tests/test-utimens.c (main): Likewise.
14260         * tests/test-utimensat.c (main): Likewise.
14261
14262 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14263
14264         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14265         on $(UNUSED_PARAMETER_H) to avoid build failure.
14266
14267 2009-12-28  Jim Meyering  <meyering@redhat.com>
14268
14269         update-copyright: you may specify a max. line length other than 72
14270         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14271
14272         maint: use consistent FSF copyright line syntax
14273         * lib/posixtm.c: Add missing comma in FSF copyright line.
14274         * lib/posixtm.h: Likewise.
14275         * lib/getugroups.c: Add missing ", Inc.".
14276
14277         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14278         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14279         FSF copyright line.  Remove trailing blanks.
14280
14281 2009-12-28  Eric Blake  <ebb9@byu.net>
14282
14283         test-dup2: reduce dependencies
14284         * modules/cloexec (Configure.ac): Set witness.
14285         * modules/dup2-tests (Depends-on): Drop cloexec.
14286         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14287         not present.
14288         Suggested by Bruno Haible.
14289
14290 2009-12-26  Bruno Haible  <bruno@clisp.org>
14291
14292         Remove an unneeded dependency.
14293         * modules/fseterr (Depends-on): Remove dup2.
14294
14295 2009-12-26  Eric Blake  <ebb9@byu.net>
14296
14297         tests: use macros.h in more places
14298         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14299         (ASSERT_STREAM): Provide default of stderr.
14300         * tests/test-dirent-safer.c: Include macros.h, using alternate
14301         stream for assertions.
14302         * tests/test-dup-safer.c: Likewise.
14303         * tests/test-freopen-safer.c: Likewise.
14304         * tests/test-getopt.c: Likewise.
14305         * tests/test-openat-safer.c: Likewise.
14306         * tests/test-pipe.c: Likewise.
14307         * tests/test-popen-safer.c: Likewise.
14308         * modules/dirent-safer-tests (Files): Include macros.h.
14309         * modules/unistd-safer-tests (Files): Likewise.
14310         * modules/freopen-safer-tests (Files): Likewise.
14311         * modules/getopt-posix-tests (Files): Likewise.
14312         * modules/openat-safer-tests (Files): Likewise.
14313         * modules/pipe-tests (Files): Likewise.
14314
14315 2009-12-26  Bruno Haible  <bruno@clisp.org>
14316
14317         javacomp: Portability fix.
14318         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14319         that it also works on Solaris.
14320
14321 2009-12-26  Bruno Haible  <bruno@clisp.org>
14322
14323         localename: Fix storage allocation of gl_locale_name_thread's result.
14324         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14325         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14326         all platforms that have 'uselocale'.
14327         (gl_locale_name_thread_unsafe): New function, extracted from
14328         gl_locale_name_thread.
14329         (gl_locale_name_thread): Call struniq on all platforms that have
14330         'uselocale'.
14331         * tests/test-localename.c (test_locale_name_thread): Check that the
14332         resulting strings are permanently allocated.
14333         * modules/localename-tests (Depends-on): Add strdup.
14334
14335 2009-12-26  Bruno Haible  <bruno@clisp.org>
14336
14337         * tests/test-localename.c (categories): Fill in the strings.
14338
14339 2009-12-26  Jim Meyering  <meyering@redhat.com>
14340
14341         isdir: complete the removal of m4/isdir.m4
14342         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14343
14344         isdir: clean up, since at least grep still uses it
14345         * lib/isdir.c: Include "isdir.h".
14346         (S_ISDIR): Remove now-unneeded definition.
14347         * modules/isdir (Files): Add lib/isdir.h.
14348         * lib/isdir.h: New file, with declaration.
14349         * m4/isdir.m4: Remove file -- unneeded.
14350
14351 2009-12-25  Bruno Haible  <bruno@clisp.org>
14352
14353         selinux-h: Make generated .h files standalone.
14354         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14355         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14356         * lib/se-selinux.in.h: Likewise.
14357         * modules/selinux-h (Depends-on): Add unused-parameter.
14358         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14359         selinux/selinux.h and selinux/context.h.
14360         Suggested by Eric Blake.
14361
14362 2009-12-25  Bruno Haible  <bruno@clisp.org>
14363
14364         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14365         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14366         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14367         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14368         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14369
14370 2009-12-24  Bruno Haible  <bruno@clisp.org>
14371
14372         openat: Fix warning.
14373         * lib/openat-proc.c: Include <unistd.h>.
14374
14375 2009-12-24  Bruno Haible  <bruno@clisp.org>
14376
14377         New module 'unused-parameter'.
14378         * build-aux/unused-parameter.h: New file, extracted from earlier
14379         gnulib-common.m4.
14380         * modules/unused-parameter: New file.
14381         * lib/unistr.h: Include unused-parameter.h.
14382         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14383         _GL_UNUSED.
14384         * modules/unistr/base (Depends-on): Add unused-parameter.
14385
14386 2009-12-24  Bruno Haible  <bruno@clisp.org>
14387
14388         Add missing dependencies to 'extensions' module.
14389         * m4/extensions.m4: Add comment.
14390         * modules/accept4 (Depends-on): Add extensions.
14391         * modules/dup3 (Depends-on): Likewise.
14392         * modules/fcntl (Depends-on): Likewise.
14393         * modules/futimens (Depends-on): Likewise.
14394         * modules/mknod (Depends-on): Likewise.
14395         * modules/pipe2 (Depends-on): Likewise.
14396         * modules/stat-time (Depends-on): Likewise.
14397         * modules/strcasestr-simple (Depends-on): Likewise.
14398         * modules/strsignal (Depends-on): Likewise.
14399         * modules/utimensat (Depends-on): Likewise.
14400         * modules/localcharset (Depends-on): Likewise. Needed because of
14401         gl_FCNTL_O_FLAGS.
14402         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14403         AC_TYPE_MBSTATE_T.
14404         * modules/wcsnrtombs (Depends-on): Likewise.
14405         * modules/wcsrtombs (Depends-on): Likewise.
14406
14407 2009-12-24  Bruno Haible  <bruno@clisp.org>
14408
14409         binary-io: Avoid gcc warning due to SET_BINARY.
14410         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14411         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14412
14413 2009-12-24  Bruno Haible  <bruno@clisp.org>
14414
14415         Avoid future namespace pollution on glibc systems.
14416         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14417         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14418         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14419         glibc systems.
14420
14421 2009-12-24  Bruno Haible  <bruno@clisp.org>
14422
14423         Refactor common macros used in tests.
14424         * tests/macros.h: New file.
14425         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14426         and/or <stdlib.h>, if appropriate.
14427         (ASSERT, SIZEOF): Remove macros.
14428         * tests/test-areadlink-with-size.c: Likewise.
14429         * tests/test-areadlinkat.c: Likewise.
14430         * tests/test-areadlinkat-with-size.c: Likewise.
14431         * tests/test-argmatch.c: Likewise.
14432         * tests/test-argv-iter.c: Likewise.
14433         * tests/test-array-mergesort.c: Likewise.
14434         * tests/test-array_list.c: Likewise.
14435         * tests/test-array_oset.c: Likewise.
14436         * tests/test-avltree_list.c: Likewise.
14437         * tests/test-avltree_oset.c: Likewise.
14438         * tests/test-avltreehash_list.c: Likewise.
14439         * tests/test-base64.c: Likewise.
14440         * tests/test-binary-io.c: Likewise.
14441         * tests/test-bitrotate.c: Likewise.
14442         * tests/test-btowc.c: Likewise.
14443         * tests/test-byteswap.c: Likewise.
14444         * tests/test-c-ctype.c: Likewise.
14445         * tests/test-c-stack.c: Likewise.
14446         * tests/test-c-strcasecmp.c: Likewise.
14447         * tests/test-c-strcasestr.c: Likewise.
14448         * tests/test-c-strncasecmp.c: Likewise.
14449         * tests/test-c-strstr.c: Likewise.
14450         * tests/test-canonicalize-lgpl.c: Likewise.
14451         * tests/test-canonicalize.c: Likewise.
14452         * tests/test-carray_list.c: Likewise.
14453         * tests/test-ceilf1.c: Likewise.
14454         * tests/test-ceilf2.c: Likewise.
14455         * tests/test-ceill.c: Likewise.
14456         * tests/test-chown.c: Likewise.
14457         * tests/test-cloexec.c: Likewise.
14458         * tests/test-copy-acl.c: Likewise.
14459         * tests/test-copy-file.c: Likewise.
14460         * tests/test-count-one-bits.c: Likewise.
14461         * tests/test-dprintf-posix.c: Likewise.
14462         * tests/test-dup2.c: Likewise.
14463         * tests/test-dup3.c: Likewise.
14464         * tests/test-duplocale.c: Likewise.
14465         * tests/test-fbufmode.c: Likewise.
14466         * tests/test-fchdir.c: Likewise.
14467         * tests/test-fchownat.c: Likewise.
14468         * tests/test-fcntl-safer.c: Likewise.
14469         * tests/test-fcntl.c: Likewise.
14470         * tests/test-fdopendir.c: Likewise.
14471         * tests/test-fdutimensat.c: Likewise.
14472         * tests/test-fflush2.c: Likewise.
14473         * tests/test-file-has-acl.c: Likewise.
14474         * tests/test-filevercmp.c: Likewise.
14475         * tests/test-flock.c: Likewise.
14476         * tests/test-floorf1.c: Likewise.
14477         * tests/test-floorf2.c: Likewise.
14478         * tests/test-floorl.c: Likewise.
14479         * tests/test-fnmatch.c: Likewise.
14480         * tests/test-fopen.h: Likewise.
14481         * tests/test-fpending.c: Likewise.
14482         * tests/test-fprintf-posix.c: Likewise.
14483         * tests/test-fpurge.c: Likewise.
14484         * tests/test-freadable.c: Likewise.
14485         * tests/test-freadahead.c: Likewise.
14486         * tests/test-freading.c: Likewise.
14487         * tests/test-freadptr.c: Likewise.
14488         * tests/test-freadptr2.c: Likewise.
14489         * tests/test-freadseek.c: Likewise.
14490         * tests/test-freopen.c: Likewise.
14491         * tests/test-frexp.c: Likewise.
14492         * tests/test-frexpl.c: Likewise.
14493         * tests/test-fseek.c: Likewise.
14494         * tests/test-fseeko.c: Likewise.
14495         * tests/test-fstatat.c: Likewise.
14496         * tests/test-fstrcmp.c: Likewise.
14497         * tests/test-fsync.c: Likewise.
14498         * tests/test-ftell.c: Likewise.
14499         * tests/test-ftello.c: Likewise.
14500         * tests/test-func.c: Likewise.
14501         * tests/test-futimens.c: Likewise.
14502         * tests/test-fwritable.c: Likewise.
14503         * tests/test-fwriting.c: Likewise.
14504         * tests/test-getcwd.c: Likewise.
14505         * tests/test-getdate.c: Likewise.
14506         * tests/test-getdelim.c: Likewise.
14507         * tests/test-getdtablesize.c: Likewise.
14508         * tests/test-getgroups.c: Likewise.
14509         * tests/test-getline.c: Likewise.
14510         * tests/test-getndelim2.c: Likewise.
14511         * tests/test-glob.c: Likewise.
14512         * tests/test-hash.c: Likewise.
14513         * tests/test-i-ring.c: Likewise.
14514         * tests/test-iconv-utf.c: Likewise.
14515         * tests/test-iconv.c: Likewise.
14516         * tests/test-idpriv-drop.c: Likewise.
14517         * tests/test-idpriv-droptemp.c: Likewise.
14518         * tests/test-inet_ntop.c: Likewise.
14519         * tests/test-inet_pton.c: Likewise.
14520         * tests/test-isblank.c: Likewise.
14521         * tests/test-isfinite.c: Likewise.
14522         * tests/test-isinf.c: Likewise.
14523         * tests/test-isnan.c: Likewise.
14524         * tests/test-isnand.h: Likewise.
14525         * tests/test-isnanf.h: Likewise.
14526         * tests/test-isnanl.h: Likewise.
14527         * tests/test-lchown.c: Likewise.
14528         * tests/test-ldexpl.c: Likewise.
14529         * tests/test-link.c: Likewise.
14530         * tests/test-linkat.c: Likewise.
14531         * tests/test-linked_list.c: Likewise.
14532         * tests/test-linkedhash_list.c: Likewise.
14533         * tests/test-localename.c: Likewise.
14534         * tests/test-lseek.c: Likewise.
14535         * tests/test-lstat.c: Likewise.
14536         * tests/test-mbmemcasecmp.c: Likewise.
14537         * tests/test-mbmemcasecoll.c: Likewise.
14538         * tests/test-mbrtowc.c: Likewise.
14539         * tests/test-mbscasecmp.c: Likewise.
14540         * tests/test-mbscasestr1.c: Likewise.
14541         * tests/test-mbscasestr2.c: Likewise.
14542         * tests/test-mbscasestr3.c: Likewise.
14543         * tests/test-mbscasestr4.c: Likewise.
14544         * tests/test-mbschr.c: Likewise.
14545         * tests/test-mbscspn.c: Likewise.
14546         * tests/test-mbsinit.c: Likewise.
14547         * tests/test-mbsncasecmp.c: Likewise.
14548         * tests/test-mbsnrtowcs.c: Likewise.
14549         * tests/test-mbspbrk.c: Likewise.
14550         * tests/test-mbspcasecmp.c: Likewise.
14551         * tests/test-mbsrchr.c: Likewise.
14552         * tests/test-mbsrtowcs.c: Likewise.
14553         * tests/test-mbsspn.c: Likewise.
14554         * tests/test-mbsstr1.c: Likewise.
14555         * tests/test-mbsstr2.c: Likewise.
14556         * tests/test-mbsstr3.c: Likewise.
14557         * tests/test-memchr.c: Likewise.
14558         * tests/test-memchr2.c: Likewise.
14559         * tests/test-memcmp.c: Likewise.
14560         * tests/test-memmem.c: Likewise.
14561         * tests/test-memrchr.c: Likewise.
14562         * tests/test-mkdir.c: Likewise.
14563         * tests/test-mkdirat.c: Likewise.
14564         * tests/test-mkfifo.c: Likewise.
14565         * tests/test-mkfifoat.c: Likewise.
14566         * tests/test-mknod.c: Likewise.
14567         * tests/test-nanosleep.c: Likewise.
14568         * tests/test-nl_langinfo.c: Likewise.
14569         * tests/test-obstack-printf.c: Likewise.
14570         * tests/test-open.c: Likewise.
14571         * tests/test-openat.c: Likewise.
14572         * tests/test-pipe-filter-gi1.c: Likewise.
14573         * tests/test-pipe-filter-gi2-main.c: Likewise.
14574         * tests/test-pipe-filter-ii1.c: Likewise.
14575         * tests/test-pipe-filter-ii2-main.c: Likewise.
14576         * tests/test-pipe2.c: Likewise.
14577         * tests/test-popen.h: Likewise.
14578         * tests/test-posixtm.c: Likewise.
14579         * tests/test-pread.c: Likewise.
14580         * tests/test-printf-frexp.c: Likewise.
14581         * tests/test-printf-frexpl.c: Likewise.
14582         * tests/test-printf-posix.c: Likewise.
14583         * tests/test-priv-set.c: Likewise.
14584         * tests/test-quotearg.c: Likewise.
14585         * tests/test-random_r.c: Likewise.
14586         * tests/test-rawmemchr.c: Likewise.
14587         * tests/test-rbtree_list.c: Likewise.
14588         * tests/test-rbtree_oset.c: Likewise.
14589         * tests/test-rbtreehash_list.c: Likewise.
14590         * tests/test-readlink.c: Likewise.
14591         * tests/test-remove.c: Likewise.
14592         * tests/test-rename.c: Likewise.
14593         * tests/test-renameat.c: Likewise.
14594         * tests/test-rmdir.c: Likewise.
14595         * tests/test-round1.c: Likewise.
14596         * tests/test-roundf1.c: Likewise.
14597         * tests/test-roundl.c: Likewise.
14598         * tests/test-safe-alloc.c: Likewise.
14599         * tests/test-sameacls.c: Likewise.
14600         * tests/test-set-mode-acl.c: Likewise.
14601         * tests/test-setenv.c: Likewise.
14602         * tests/test-sigaction.c: Likewise.
14603         * tests/test-signbit.c: Likewise.
14604         * tests/test-sleep.c: Likewise.
14605         * tests/test-snprintf-posix.c: Likewise.
14606         * tests/test-snprintf.c: Likewise.
14607         * tests/test-sprintf-posix.c: Likewise.
14608         * tests/test-stat-time.c: Likewise.
14609         * tests/test-stat.c: Likewise.
14610         * tests/test-strcasestr.c: Likewise.
14611         * tests/test-strchrnul.c: Likewise.
14612         * tests/test-strerror.c: Likewise.
14613         * tests/test-striconv.c: Likewise.
14614         * tests/test-striconveh.c: Likewise.
14615         * tests/test-striconveha.c: Likewise.
14616         * tests/test-strsignal.c: Likewise.
14617         * tests/test-strstr.c: Likewise.
14618         * tests/test-strtod.c: Likewise.
14619         * tests/test-strverscmp.c: Likewise.
14620         * tests/test-symlink.c: Likewise.
14621         * tests/test-symlinkat.c: Likewise.
14622         * tests/test-trunc1.c: Likewise.
14623         * tests/test-trunc2.c: Likewise.
14624         * tests/test-truncf1.c: Likewise.
14625         * tests/test-truncf2.c: Likewise.
14626         * tests/test-truncl.c: Likewise.
14627         * tests/test-uname.c: Likewise.
14628         * tests/test-unlink.c: Likewise.
14629         * tests/test-unlinkat.c: Likewise.
14630         * tests/test-unsetenv.c: Likewise.
14631         * tests/test-usleep.c: Likewise.
14632         * tests/test-utimens.c: Likewise.
14633         * tests/test-utimensat.c: Likewise.
14634         * tests/test-vasnprintf-posix.c: Likewise.
14635         * tests/test-vasnprintf-posix2.c: Likewise.
14636         * tests/test-vasnprintf.c: Likewise.
14637         * tests/test-vasprintf-posix.c: Likewise.
14638         * tests/test-vasprintf.c: Likewise.
14639         * tests/test-vdprintf-posix.c: Likewise.
14640         * tests/test-vfprintf-posix.c: Likewise.
14641         * tests/test-vprintf-posix.c: Likewise.
14642         * tests/test-vsnprintf-posix.c: Likewise.
14643         * tests/test-vsnprintf.c: Likewise.
14644         * tests/test-vsprintf-posix.c: Likewise.
14645         * tests/test-wcrtomb.c: Likewise.
14646         * tests/test-wcsnrtombs.c: Likewise.
14647         * tests/test-wcsrtombs.c: Likewise.
14648         * tests/test-wctype.c: Likewise.
14649         * tests/test-wcwidth.c: Likewise.
14650         * tests/test-xfprintf-posix.c: Likewise.
14651         * tests/test-xmemdup0.c: Likewise.
14652         * tests/test-xprintf-posix.c: Likewise.
14653         * tests/test-xvasprintf.c: Likewise.
14654         * tests/unicase/test-locale-language.c: Likewise.
14655         * tests/unicase/test-mapping-part1.h: Likewise.
14656         * tests/unicase/test-predicate-part1.h: Likewise.
14657         * tests/unicase/test-u8-casecmp.c: Likewise.
14658         * tests/unicase/test-u8-casecoll.c: Likewise.
14659         * tests/unicase/test-u8-casefold.c: Likewise.
14660         * tests/unicase/test-u8-is-cased.c: Likewise.
14661         * tests/unicase/test-u8-is-casefolded.c: Likewise.
14662         * tests/unicase/test-u8-is-lowercase.c: Likewise.
14663         * tests/unicase/test-u8-is-titlecase.c: Likewise.
14664         * tests/unicase/test-u8-is-uppercase.c: Likewise.
14665         * tests/unicase/test-u8-tolower.c: Likewise.
14666         * tests/unicase/test-u8-totitle.c: Likewise.
14667         * tests/unicase/test-u8-toupper.c: Likewise.
14668         * tests/unicase/test-u16-casecmp.c: Likewise.
14669         * tests/unicase/test-u16-casecoll.c: Likewise.
14670         * tests/unicase/test-u16-casefold.c: Likewise.
14671         * tests/unicase/test-u16-is-cased.c: Likewise.
14672         * tests/unicase/test-u16-is-casefolded.c: Likewise.
14673         * tests/unicase/test-u16-is-lowercase.c: Likewise.
14674         * tests/unicase/test-u16-is-titlecase.c: Likewise.
14675         * tests/unicase/test-u16-is-uppercase.c: Likewise.
14676         * tests/unicase/test-u16-tolower.c: Likewise.
14677         * tests/unicase/test-u16-totitle.c: Likewise.
14678         * tests/unicase/test-u16-toupper.c: Likewise.
14679         * tests/unicase/test-u32-casecmp.c: Likewise.
14680         * tests/unicase/test-u32-casecoll.c: Likewise.
14681         * tests/unicase/test-u32-casefold.c: Likewise.
14682         * tests/unicase/test-u32-is-cased.c: Likewise.
14683         * tests/unicase/test-u32-is-casefolded.c: Likewise.
14684         * tests/unicase/test-u32-is-lowercase.c: Likewise.
14685         * tests/unicase/test-u32-is-titlecase.c: Likewise.
14686         * tests/unicase/test-u32-is-uppercase.c: Likewise.
14687         * tests/unicase/test-u32-tolower.c: Likewise.
14688         * tests/unicase/test-u32-totitle.c: Likewise.
14689         * tests/unicase/test-u32-toupper.c: Likewise.
14690         * tests/unicase/test-ulc-casecmp.c: Likewise.
14691         * tests/unicase/test-ulc-casecoll.c: Likewise.
14692         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14693         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
14694         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14695         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14696         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
14697         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
14698         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14699         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14700         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14701         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
14702         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14703         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14704         * tests/unictype/test-bidi_byname.c: Likewise.
14705         * tests/unictype/test-bidi_name.c: Likewise.
14706         * tests/unictype/test-bidi_of.c: Likewise.
14707         * tests/unictype/test-bidi_test.c: Likewise.
14708         * tests/unictype/test-block_list.c: Likewise.
14709         * tests/unictype/test-block_of.c: Likewise.
14710         * tests/unictype/test-block_test.c: Likewise.
14711         * tests/unictype/test-categ_and.c: Likewise.
14712         * tests/unictype/test-categ_and_not.c: Likewise.
14713         * tests/unictype/test-categ_byname.c: Likewise.
14714         * tests/unictype/test-categ_name.c: Likewise.
14715         * tests/unictype/test-categ_none.c: Likewise.
14716         * tests/unictype/test-categ_of.c: Likewise.
14717         * tests/unictype/test-categ_or.c: Likewise.
14718         * tests/unictype/test-categ_test_withtable.c: Likewise.
14719         * tests/unictype/test-combining.c: Likewise.
14720         * tests/unictype/test-decdigit.c: Likewise.
14721         * tests/unictype/test-digit.c: Likewise.
14722         * tests/unictype/test-mirror.c: Likewise.
14723         * tests/unictype/test-numeric.c: Likewise.
14724         * tests/unictype/test-pr_byname.c: Likewise.
14725         * tests/unictype/test-pr_test.c: Likewise.
14726         * tests/unictype/test-predicate-part1.h: Likewise.
14727         * tests/unictype/test-scripts.c: Likewise.
14728         * tests/unictype/test-sy_c_ident.c: Likewise.
14729         * tests/unictype/test-sy_java_ident.c: Likewise.
14730         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
14731         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
14732         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
14733         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
14734         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
14735         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
14736         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
14737         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
14738         * tests/uninorm/test-canonical-decomposition.c: Likewise.
14739         * tests/uninorm/test-compat-decomposition.c: Likewise.
14740         * tests/uninorm/test-composition.c: Likewise.
14741         * tests/uninorm/test-decomposing-form.c: Likewise.
14742         * tests/uninorm/test-decomposition.c: Likewise.
14743         * tests/uninorm/test-u8-nfc.c: Likewise.
14744         * tests/uninorm/test-u8-nfd.c: Likewise.
14745         * tests/uninorm/test-u8-nfkc.c: Likewise.
14746         * tests/uninorm/test-u8-nfkd.c: Likewise.
14747         * tests/uninorm/test-u8-normcmp.c: Likewise.
14748         * tests/uninorm/test-u8-normcoll.c: Likewise.
14749         * tests/uninorm/test-u16-nfc.c: Likewise.
14750         * tests/uninorm/test-u16-nfd.c: Likewise.
14751         * tests/uninorm/test-u16-nfkc.c: Likewise.
14752         * tests/uninorm/test-u16-nfkd.c: Likewise.
14753         * tests/uninorm/test-u16-normcmp.c: Likewise.
14754         * tests/uninorm/test-u16-normcoll.c: Likewise.
14755         * tests/uninorm/test-u32-nfc.c: Likewise.
14756         * tests/uninorm/test-u32-nfd.c: Likewise.
14757         * tests/uninorm/test-u32-nfkc.c: Likewise.
14758         * tests/uninorm/test-u32-nfkd.c: Likewise.
14759         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14760         * tests/uninorm/test-u32-normcmp.c: Likewise.
14761         * tests/uninorm/test-u32-normcoll.c: Likewise.
14762         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
14763         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
14764         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
14765         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
14766         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
14767         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
14768         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
14769         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
14770         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
14771         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
14772         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
14773         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
14774         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
14775         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
14776         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
14777         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
14778         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
14779         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
14780         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
14781         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
14782         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
14783         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
14784         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
14785         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
14786         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
14787         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
14788         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
14789         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
14790         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
14791         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
14792         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
14793         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
14794         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
14795         * tests/uniwidth/test-u8-strwidth.c: Likewise.
14796         * tests/uniwidth/test-u8-width.c: Likewise.
14797         * tests/uniwidth/test-u16-strwidth.c: Likewise.
14798         * tests/uniwidth/test-u16-width.c: Likewise.
14799         * tests/uniwidth/test-u32-strwidth.c: Likewise.
14800         * tests/uniwidth/test-u32-width.c: Likewise.
14801         * tests/uniwidth/test-uc_width.c: Likewise.
14802         * tests/uniwidth/test-uc_width2.c: Likewise.
14803         * modules/acl-tests (Files): Add tests/macros.h.
14804         * modules/areadlink-tests (Files): Likewise.
14805         * modules/areadlink-with-size-tests (Files): Likewise.
14806         * modules/areadlinkat-tests (Files): Likewise.
14807         * modules/areadlinkat-with-size-tests (Files): Likewise.
14808         * modules/argmatch-tests (Files): Likewise.
14809         * modules/argv-iter-tests (Files): Likewise.
14810         * modules/array-list-tests (Files): Likewise.
14811         * modules/array-mergesort-tests (Files): Likewise.
14812         * modules/array-oset-tests (Files): Likewise.
14813         * modules/avltree-list-tests (Files): Likewise.
14814         * modules/avltree-oset-tests (Files): Likewise.
14815         * modules/avltreehash-list-tests (Files): Likewise.
14816         * modules/base64-tests (Files): Likewise.
14817         * modules/binary-io-tests (Files): Likewise.
14818         * modules/bitrotate-tests (Files): Likewise.
14819         * modules/btowc-tests (Files): Likewise.
14820         * modules/byteswap-tests (Files): Likewise.
14821         * modules/c-ctype-tests (Files): Likewise.
14822         * modules/c-stack-tests (Files): Likewise.
14823         * modules/c-strcase-tests (Files): Likewise.
14824         * modules/c-strcasestr-tests (Files): Likewise.
14825         * modules/c-strstr-tests (Files): Likewise.
14826         * modules/canonicalize-lgpl-tests (Files): Likewise.
14827         * modules/canonicalize-tests (Files): Likewise.
14828         * modules/carray-list-tests (Files): Likewise.
14829         * modules/ceilf-tests (Files): Likewise.
14830         * modules/ceill-tests (Files): Likewise.
14831         * modules/chown-tests (Files): Likewise.
14832         * modules/cloexec-tests (Files): Likewise.
14833         * modules/copy-file-tests (Files): Likewise.
14834         * modules/count-one-bits-tests (Files): Likewise.
14835         * modules/dprintf-posix-tests (Files): Likewise.
14836         * modules/dup2-tests (Files): Likewise.
14837         * modules/dup3-tests (Files): Likewise.
14838         * modules/duplocale-tests (Files): Likewise.
14839         * modules/fbufmode-tests (Files): Likewise.
14840         * modules/fchdir-tests (Files): Likewise.
14841         * modules/fcntl-safer-tests (Files): Likewise.
14842         * modules/fcntl-tests (Files): Likewise.
14843         * modules/fdopendir-tests (Files): Likewise.
14844         * modules/fdutimensat-tests (Files): Likewise.
14845         * modules/fflush-tests (Files): Likewise.
14846         * modules/filevercmp-tests (Files): Likewise.
14847         * modules/flock-tests (Files): Likewise.
14848         * modules/floorf-tests (Files): Likewise.
14849         * modules/floorl-tests (Files): Likewise.
14850         * modules/fnmatch-tests (Files): Likewise.
14851         * modules/fopen-safer-tests (Files): Likewise.
14852         * modules/fopen-tests (Files): Likewise.
14853         * modules/fpending-tests (Files): Likewise.
14854         * modules/fprintf-posix-tests (Files): Likewise.
14855         * modules/fpurge-tests (Files): Likewise.
14856         * modules/freadable-tests (Files): Likewise.
14857         * modules/freadahead-tests (Files): Likewise.
14858         * modules/freading-tests (Files): Likewise.
14859         * modules/freadptr-tests (Files): Likewise.
14860         * modules/freadseek-tests (Files): Likewise.
14861         * modules/freopen-tests (Files): Likewise.
14862         * modules/frexp-nolibm-tests (Files): Likewise.
14863         * modules/frexp-tests (Files): Likewise.
14864         * modules/frexpl-nolibm-tests (Files): Likewise.
14865         * modules/frexpl-tests (Files): Likewise.
14866         * modules/fseek-tests (Files): Likewise.
14867         * modules/fseeko-tests (Files): Likewise.
14868         * modules/fstrcmp-tests (Files): Likewise.
14869         * modules/fsync-tests (Files): Likewise.
14870         * modules/ftell-tests (Files): Likewise.
14871         * modules/ftello-tests (Files): Likewise.
14872         * modules/func-tests (Files): Likewise.
14873         * modules/futimens-tests (Files): Likewise.
14874         * modules/fwritable-tests (Files): Likewise.
14875         * modules/fwriting-tests (Files): Likewise.
14876         * modules/getcwd-tests (Files): Likewise.
14877         * modules/getdate-tests (Files): Likewise.
14878         * modules/getdelim-tests (Files): Likewise.
14879         * modules/getdtablesize-tests (Files): Likewise.
14880         * modules/getgroups-tests (Files): Likewise.
14881         * modules/getline-tests (Files): Likewise.
14882         * modules/getndelim2-tests (Files): Likewise.
14883         * modules/glob-tests (Files): Likewise.
14884         * modules/hash-tests (Files): Likewise.
14885         * modules/i-ring-tests (Files): Likewise.
14886         * modules/iconv-tests (Files): Likewise.
14887         * modules/iconv_open-utf-tests (Files): Likewise.
14888         * modules/idpriv-drop-tests (Files): Likewise.
14889         * modules/idpriv-droptemp-tests (Files): Likewise.
14890         * modules/inet_ntop-tests (Files): Likewise.
14891         * modules/inet_pton-tests (Files): Likewise.
14892         * modules/isblank-tests (Files): Likewise.
14893         * modules/isfinite-tests (Files): Likewise.
14894         * modules/isinf-tests (Files): Likewise.
14895         * modules/isnan-tests (Files): Likewise.
14896         * modules/isnand-nolibm-tests (Files): Likewise.
14897         * modules/isnand-tests (Files): Likewise.
14898         * modules/isnanf-nolibm-tests (Files): Likewise.
14899         * modules/isnanf-tests (Files): Likewise.
14900         * modules/isnanl-nolibm-tests (Files): Likewise.
14901         * modules/isnanl-tests (Files): Likewise.
14902         * modules/lchown-tests (Files): Likewise.
14903         * modules/ldexpl-tests (Files): Likewise.
14904         * modules/link-tests (Files): Likewise.
14905         * modules/linkat-tests (Files): Likewise.
14906         * modules/linked-list-tests (Files): Likewise.
14907         * modules/linkedhash-list-tests (Files): Likewise.
14908         * modules/localename-tests (Files): Likewise.
14909         * modules/lseek-tests (Files): Likewise.
14910         * modules/lstat-tests (Files): Likewise.
14911         * modules/mbmemcasecmp-tests (Files): Likewise.
14912         * modules/mbmemcasecoll-tests (Files): Likewise.
14913         * modules/mbrtowc-tests (Files): Likewise.
14914         * modules/mbscasecmp-tests (Files): Likewise.
14915         * modules/mbscasestr-tests (Files): Likewise.
14916         * modules/mbschr-tests (Files): Likewise.
14917         * modules/mbscspn-tests (Files): Likewise.
14918         * modules/mbsinit-tests (Files): Likewise.
14919         * modules/mbsncasecmp-tests (Files): Likewise.
14920         * modules/mbsnrtowcs-tests (Files): Likewise.
14921         * modules/mbspbrk-tests (Files): Likewise.
14922         * modules/mbspcasecmp-tests (Files): Likewise.
14923         * modules/mbsrchr-tests (Files): Likewise.
14924         * modules/mbsrtowcs-tests (Files): Likewise.
14925         * modules/mbsspn-tests (Files): Likewise.
14926         * modules/mbsstr-tests (Files): Likewise.
14927         * modules/memchr-tests (Files): Likewise.
14928         * modules/memchr2-tests (Files): Likewise.
14929         * modules/memcmp-tests (Files): Likewise.
14930         * modules/memmem-tests (Files): Likewise.
14931         * modules/memrchr-tests (Files): Likewise.
14932         * modules/mkdir-tests (Files): Likewise.
14933         * modules/mkfifo-tests (Files): Likewise.
14934         * modules/mkfifoat-tests (Files): Likewise.
14935         * modules/mknod-tests (Files): Likewise.
14936         * modules/nanosleep-tests (Files): Likewise.
14937         * modules/nl_langinfo-tests (Files): Likewise.
14938         * modules/obstack-printf-tests (Files): Likewise.
14939         * modules/open-tests (Files): Likewise.
14940         * modules/openat-tests (Files): Likewise.
14941         * modules/pipe-filter-gi-tests (Files): Likewise.
14942         * modules/pipe-filter-ii-tests (Files): Likewise.
14943         * modules/pipe2-tests (Files): Likewise.
14944         * modules/popen-safer-tests (Files): Likewise.
14945         * modules/popen-tests (Files): Likewise.
14946         * modules/posixtm-tests (Files): Likewise.
14947         * modules/pread-tests (Files): Likewise.
14948         * modules/printf-frexp-tests (Files): Likewise.
14949         * modules/printf-frexpl-tests (Files): Likewise.
14950         * modules/printf-posix-tests (Files): Likewise.
14951         * modules/priv-set-tests (Files): Likewise.
14952         * modules/quotearg-tests (Files): Likewise.
14953         * modules/random_r-tests (Files): Likewise.
14954         * modules/rawmemchr-tests (Files): Likewise.
14955         * modules/rbtree-list-tests (Files): Likewise.
14956         * modules/rbtree-oset-tests (Files): Likewise.
14957         * modules/rbtreehash-list-tests (Files): Likewise.
14958         * modules/readlink-tests (Files): Likewise.
14959         * modules/remove-tests (Files): Likewise.
14960         * modules/rename-tests (Files): Likewise.
14961         * modules/renameat-tests (Files): Likewise.
14962         * modules/rmdir-tests (Files): Likewise.
14963         * modules/round-tests (Files): Likewise.
14964         * modules/roundf-tests (Files): Likewise.
14965         * modules/roundl-tests (Files): Likewise.
14966         * modules/safe-alloc-tests (Files): Likewise.
14967         * modules/setenv-tests (Files): Likewise.
14968         * modules/sigaction-tests (Files): Likewise.
14969         * modules/signbit-tests (Files): Likewise.
14970         * modules/sleep-tests (Files): Likewise.
14971         * modules/snprintf-posix-tests (Files): Likewise.
14972         * modules/snprintf-tests (Files): Likewise.
14973         * modules/sprintf-posix-tests (Files): Likewise.
14974         * modules/stat-tests (Files): Likewise.
14975         * modules/stat-time-tests (Files): Likewise.
14976         * modules/strcasestr-tests (Files): Likewise.
14977         * modules/strchrnul-tests (Files): Likewise.
14978         * modules/strerror-tests (Files): Likewise.
14979         * modules/striconv-tests (Files): Likewise.
14980         * modules/striconveh-tests (Files): Likewise.
14981         * modules/striconveha-tests (Files): Likewise.
14982         * modules/strsignal-tests (Files): Likewise.
14983         * modules/strstr-tests (Files): Likewise.
14984         * modules/strtod-tests (Files): Likewise.
14985         * modules/strverscmp-tests (Files): Likewise.
14986         * modules/symlink-tests (Files): Likewise.
14987         * modules/symlinkat-tests (Files): Likewise.
14988         * modules/trunc-tests (Files): Likewise.
14989         * modules/truncf-tests (Files): Likewise.
14990         * modules/truncl-tests (Files): Likewise.
14991         * modules/uname-tests (Files): Likewise.
14992         * modules/unicase/cased-tests (Files): Likewise.
14993         * modules/unicase/ignorable-tests (Files): Likewise.
14994         * modules/unicase/locale-language-tests (Files): Likewise.
14995         * modules/unicase/tolower-tests (Files): Likewise.
14996         * modules/unicase/totitle-tests (Files): Likewise.
14997         * modules/unicase/toupper-tests (Files): Likewise.
14998         * modules/unicase/u8-casecmp-tests (Files): Likewise.
14999         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15000         * modules/unicase/u8-casefold-tests (Files): Likewise.
15001         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15002         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15003         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15004         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15005         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15006         * modules/unicase/u8-tolower-tests (Files): Likewise.
15007         * modules/unicase/u8-totitle-tests (Files): Likewise.
15008         * modules/unicase/u8-toupper-tests (Files): Likewise.
15009         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15010         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15011         * modules/unicase/u16-casefold-tests (Files): Likewise.
15012         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15013         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15014         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15015         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15016         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15017         * modules/unicase/u16-tolower-tests (Files): Likewise.
15018         * modules/unicase/u16-totitle-tests (Files): Likewise.
15019         * modules/unicase/u16-toupper-tests (Files): Likewise.
15020         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15021         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15022         * modules/unicase/u32-casefold-tests (Files): Likewise.
15023         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15024         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15025         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15026         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15027         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15028         * modules/unicase/u32-tolower-tests (Files): Likewise.
15029         * modules/unicase/u32-totitle-tests (Files): Likewise.
15030         * modules/unicase/u32-toupper-tests (Files): Likewise.
15031         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15032         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15033         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15034         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15035         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15036         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15037         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15038         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15039         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15040         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15041         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15042         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15043         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15044         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15045         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15046         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15047         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15048         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15049         * modules/unictype/block-list-tests (Files): Likewise.
15050         * modules/unictype/block-of-tests (Files): Likewise.
15051         * modules/unictype/block-test-tests (Files): Likewise.
15052         * modules/unictype/category-C-tests (Files): Likewise.
15053         * modules/unictype/category-Cc-tests (Files): Likewise.
15054         * modules/unictype/category-Cf-tests (Files): Likewise.
15055         * modules/unictype/category-Cn-tests (Files): Likewise.
15056         * modules/unictype/category-Co-tests (Files): Likewise.
15057         * modules/unictype/category-Cs-tests (Files): Likewise.
15058         * modules/unictype/category-L-tests (Files): Likewise.
15059         * modules/unictype/category-Ll-tests (Files): Likewise.
15060         * modules/unictype/category-Lm-tests (Files): Likewise.
15061         * modules/unictype/category-Lo-tests (Files): Likewise.
15062         * modules/unictype/category-Lt-tests (Files): Likewise.
15063         * modules/unictype/category-Lu-tests (Files): Likewise.
15064         * modules/unictype/category-M-tests (Files): Likewise.
15065         * modules/unictype/category-Mc-tests (Files): Likewise.
15066         * modules/unictype/category-Me-tests (Files): Likewise.
15067         * modules/unictype/category-Mn-tests (Files): Likewise.
15068         * modules/unictype/category-N-tests (Files): Likewise.
15069         * modules/unictype/category-Nd-tests (Files): Likewise.
15070         * modules/unictype/category-Nl-tests (Files): Likewise.
15071         * modules/unictype/category-No-tests (Files): Likewise.
15072         * modules/unictype/category-P-tests (Files): Likewise.
15073         * modules/unictype/category-Pc-tests (Files): Likewise.
15074         * modules/unictype/category-Pd-tests (Files): Likewise.
15075         * modules/unictype/category-Pe-tests (Files): Likewise.
15076         * modules/unictype/category-Pf-tests (Files): Likewise.
15077         * modules/unictype/category-Pi-tests (Files): Likewise.
15078         * modules/unictype/category-Po-tests (Files): Likewise.
15079         * modules/unictype/category-Ps-tests (Files): Likewise.
15080         * modules/unictype/category-S-tests (Files): Likewise.
15081         * modules/unictype/category-Sc-tests (Files): Likewise.
15082         * modules/unictype/category-Sk-tests (Files): Likewise.
15083         * modules/unictype/category-Sm-tests (Files): Likewise.
15084         * modules/unictype/category-So-tests (Files): Likewise.
15085         * modules/unictype/category-Z-tests (Files): Likewise.
15086         * modules/unictype/category-Zl-tests (Files): Likewise.
15087         * modules/unictype/category-Zp-tests (Files): Likewise.
15088         * modules/unictype/category-Zs-tests (Files): Likewise.
15089         * modules/unictype/category-and-not-tests (Files): Likewise.
15090         * modules/unictype/category-and-tests (Files): Likewise.
15091         * modules/unictype/category-byname-tests (Files): Likewise.
15092         * modules/unictype/category-name-tests (Files): Likewise.
15093         * modules/unictype/category-none-tests (Files): Likewise.
15094         * modules/unictype/category-of-tests (Files): Likewise.
15095         * modules/unictype/category-or-tests (Files): Likewise.
15096         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15097         * modules/unictype/combining-class-tests (Files): Likewise.
15098         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15099         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15100         * modules/unictype/ctype-blank-tests (Files): Likewise.
15101         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15102         * modules/unictype/ctype-digit-tests (Files): Likewise.
15103         * modules/unictype/ctype-graph-tests (Files): Likewise.
15104         * modules/unictype/ctype-lower-tests (Files): Likewise.
15105         * modules/unictype/ctype-print-tests (Files): Likewise.
15106         * modules/unictype/ctype-punct-tests (Files): Likewise.
15107         * modules/unictype/ctype-space-tests (Files): Likewise.
15108         * modules/unictype/ctype-upper-tests (Files): Likewise.
15109         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15110         * modules/unictype/decimal-digit-tests (Files): Likewise.
15111         * modules/unictype/digit-tests (Files): Likewise.
15112         * modules/unictype/mirror-tests (Files): Likewise.
15113         * modules/unictype/numeric-tests (Files): Likewise.
15114         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15115         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15116         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15117         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15118         Likewise.
15119         * modules/unictype/property-bidi-block-separator-tests (Files):
15120         Likewise.
15121         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15122         Likewise.
15123         * modules/unictype/property-bidi-common-separator-tests (Files):
15124         Likewise.
15125         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15126         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15127         Likewise.
15128         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15129         Likewise.
15130         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15131         Likewise.
15132         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15133         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15134         Likewise.
15135         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15136         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15137         Likewise.
15138         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15139         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15140         * modules/unictype/property-bidi-segment-separator-tests (Files):
15141         Likewise.
15142         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15143         * modules/unictype/property-byname-tests (Files): Likewise.
15144         * modules/unictype/property-combining-tests (Files): Likewise.
15145         * modules/unictype/property-composite-tests (Files): Likewise.
15146         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15147         * modules/unictype/property-dash-tests (Files): Likewise.
15148         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15149         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15150         Likewise.
15151         * modules/unictype/property-deprecated-tests (Files): Likewise.
15152         * modules/unictype/property-diacritic-tests (Files): Likewise.
15153         * modules/unictype/property-extender-tests (Files): Likewise.
15154         * modules/unictype/property-format-control-tests (Files): Likewise.
15155         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15156         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15157         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15158         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15159         * modules/unictype/property-hyphen-tests (Files): Likewise.
15160         * modules/unictype/property-id-continue-tests (Files): Likewise.
15161         * modules/unictype/property-id-start-tests (Files): Likewise.
15162         * modules/unictype/property-ideographic-tests (Files): Likewise.
15163         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15164         * modules/unictype/property-ids-trinary-operator-tests (Files):
15165         Likewise.
15166         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15167         * modules/unictype/property-iso-control-tests (Files): Likewise.
15168         * modules/unictype/property-join-control-tests (Files): Likewise.
15169         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15170         * modules/unictype/property-line-separator-tests (Files): Likewise.
15171         * modules/unictype/property-logical-order-exception-tests (Files):
15172         Likewise.
15173         * modules/unictype/property-lowercase-tests (Files): Likewise.
15174         * modules/unictype/property-math-tests (Files): Likewise.
15175         * modules/unictype/property-non-break-tests (Files): Likewise.
15176         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15177         * modules/unictype/property-numeric-tests (Files): Likewise.
15178         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15179         * modules/unictype/property-other-default-ignorable-code-point-tests
15180         (Files): Likewise.
15181         * modules/unictype/property-other-grapheme-extend-tests (Files):
15182         Likewise.
15183         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15184         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15185         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15186         * modules/unictype/property-other-math-tests (Files): Likewise.
15187         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15188         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15189         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15190         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15191         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15192         * modules/unictype/property-private-use-tests (Files): Likewise.
15193         * modules/unictype/property-punctuation-tests (Files): Likewise.
15194         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15195         * modules/unictype/property-radical-tests (Files): Likewise.
15196         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15197         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15198         * modules/unictype/property-space-tests (Files): Likewise.
15199         * modules/unictype/property-terminal-punctuation-tests (Files):
15200         Likewise.
15201         * modules/unictype/property-test-tests (Files): Likewise.
15202         * modules/unictype/property-titlecase-tests (Files): Likewise.
15203         * modules/unictype/property-unassigned-code-value-tests (Files):
15204         Likewise.
15205         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15206         * modules/unictype/property-uppercase-tests (Files): Likewise.
15207         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15208         * modules/unictype/property-white-space-tests (Files): Likewise.
15209         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15210         * modules/unictype/property-xid-start-tests (Files): Likewise.
15211         * modules/unictype/property-zero-width-tests (Files): Likewise.
15212         * modules/unictype/scripts-tests (Files): Likewise.
15213         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15214         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15215         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15216         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15217         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15218         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15219         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15220         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15221         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15222         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15223         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15224         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15225         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15226         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15227         * modules/uninorm/composition-tests (Files): Likewise.
15228         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15229         * modules/uninorm/decomposition-tests (Files): Likewise.
15230         * modules/uninorm/filter-tests (Files): Likewise.
15231         * modules/uninorm/nfc-tests (Files): Likewise.
15232         * modules/uninorm/nfd-tests (Files): Likewise.
15233         * modules/uninorm/nfkc-tests (Files): Likewise.
15234         * modules/uninorm/nfkd-tests (Files): Likewise.
15235         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15236         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15237         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15238         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15239         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15240         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15241         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15242         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15243         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15244         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15245         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15246         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15247         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15248         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15249         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15250         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15251         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15252         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15253         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15254         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15255         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15256         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15257         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15258         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15259         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15260         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15261         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15262         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15263         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15264         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15265         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15266         * modules/uniwidth/u8-width-tests (Files): Likewise.
15267         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15268         * modules/uniwidth/u16-width-tests (Files): Likewise.
15269         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15270         * modules/uniwidth/u32-width-tests (Files): Likewise.
15271         * modules/uniwidth/width-tests (Files): Likewise.
15272         * modules/unlink-tests (Files): Likewise.
15273         * modules/unsetenv-tests (Files): Likewise.
15274         * modules/usleep-tests (Files): Likewise.
15275         * modules/utimens-tests (Files): Likewise.
15276         * modules/utimensat-tests (Files): Likewise.
15277         * modules/vasnprintf-posix-tests (Files): Likewise.
15278         * modules/vasnprintf-tests (Files): Likewise.
15279         * modules/vasprintf-posix-tests (Files): Likewise.
15280         * modules/vasprintf-tests (Files): Likewise.
15281         * modules/vdprintf-posix-tests (Files): Likewise.
15282         * modules/vfprintf-posix-tests (Files): Likewise.
15283         * modules/vprintf-posix-tests (Files): Likewise.
15284         * modules/vsnprintf-posix-tests (Files): Likewise.
15285         * modules/vsnprintf-tests (Files): Likewise.
15286         * modules/vsprintf-posix-tests (Files): Likewise.
15287         * modules/wcrtomb-tests (Files): Likewise.
15288         * modules/wcsnrtombs-tests (Files): Likewise.
15289         * modules/wcsrtombs-tests (Files): Likewise.
15290         * modules/wctype-tests (Files): Likewise.
15291         * modules/wcwidth-tests (Files): Likewise.
15292         * modules/xmemdup0-tests (Files): Likewise.
15293         * modules/xprintf-posix-tests (Files): Likewise.
15294         * modules/xvasprintf-tests (Files): Likewise.
15295
15296 2009-12-24  Eric Blake  <ebb9@byu.net>
15297
15298         test-nanosleep: fix typo
15299         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15300         patch.
15301         Reported by Bruno Haible.
15302
15303 2009-12-24  Bruno Haible  <bruno@clisp.org>
15304
15305         Reduce namespace pollution on glibc systems.
15306         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15307         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15308         systems.
15309         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15310         <getopt.h> on glibc systems.
15311         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15312         systems.
15313         * lib/fcntl.c: Include <unistd.h> here instead.
15314
15315 2009-12-24  Bruno Haible  <bruno@clisp.org>
15316
15317         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15318
15319 2009-12-24  Eric Blake  <ebb9@byu.net>
15320
15321         tests: add signature checks
15322         * tests/signature.h (SIGNATURE_CHECK): New file.
15323         * modules/atexit-tests (Files): Use it.
15324         * modules/btowc-tests (Files): Likewise.
15325         * modules/canonicalize-lgpl-tests (Files): Likewise.
15326         * modules/ceilf-tests (Files): Likewise.
15327         * modules/ceill-tests (Files): Likewise.
15328         * modules/chown-tests (Files): Likewise.
15329         * modules/dprintf-posix-tests (Files): Likewise.
15330         * modules/dup2-tests (Files): Likewise.
15331         * modules/dup3-tests (Files): Likewise.
15332         * modules/duplocale-tests (Files): Likewise.
15333         * modules/fchdir-tests (Files): Likewise.
15334         * modules/fcntl-tests (Files): Likewise.
15335         * modules/fdopendir-tests (Files): Likewise.
15336         * modules/fflush-tests (Files): Likewise.
15337         * modules/flock-tests (Files): Likewise.
15338         * modules/floorf-tests (Files): Likewise.
15339         * modules/floorl-tests (Files): Likewise.
15340         * modules/fnmatch-tests (Files): Likewise.
15341         * modules/fopen-tests (Files): Likewise.
15342         * modules/fprintf-posix-tests (Files): Likewise.
15343         * modules/freopen-tests (Files): Likewise.
15344         * modules/frexp-nolibm-tests (Files): Likewise.
15345         * modules/frexp-tests (Files): Likewise.
15346         * modules/frexpl-nolibm-tests (Files): Likewise.
15347         * modules/frexpl-tests (Files): Likewise.
15348         * modules/fseek-tests (Files): Likewise.
15349         * modules/fseeko-tests (Files): Likewise.
15350         * modules/fsync-tests (Files): Likewise.
15351         * modules/ftell-tests (Files): Likewise.
15352         * modules/ftello-tests (Files): Likewise.
15353         * modules/futimens-tests (Files): Likewise.
15354         * modules/getaddrinfo-tests (Files): Likewise.
15355         * modules/getcwd-tests (Files): Likewise.
15356         * modules/getdelim-tests (Files): Likewise.
15357         * modules/getdtablesize-tests (Files): Likewise.
15358         * modules/getgroups-tests (Files): Likewise.
15359         * modules/gethostname-tests (Files): Likewise.
15360         * modules/getline-tests (Files): Likewise.
15361         * modules/getopt-posix-tests (Files): Likewise.
15362         * modules/gettimeofday-tests (Files): Likewise.
15363         * modules/glob-tests (Files): Likewise.
15364         * modules/iconv-tests (Files): Likewise.
15365         * modules/inet_ntop-tests (Files): Likewise.
15366         * modules/inet_pton-tests (Files): Likewise.
15367         * modules/isblank-tests (Files): Likewise.
15368         * modules/lchown-tests (Files): Likewise.
15369         * modules/ldexpl-tests (Files): Likewise.
15370         * modules/link-tests (Files): Likewise.
15371         * modules/linkat-tests (Files): Likewise.
15372         * modules/lseek-tests (Files): Likewise.
15373         * modules/lstat-tests (Files): Likewise.
15374         * modules/mbrtowc-tests (Files): Likewise.
15375         * modules/mbsinit-tests (Files): Likewise.
15376         * modules/mbsnrtowcs-tests (Files): Likewise.
15377         * modules/mbsrtowcs-tests (Files): Likewise.
15378         * modules/memchr-tests (Files): Likewise.
15379         * modules/memcmp-tests (Files): Likewise.
15380         * modules/memmem-tests (Files): Likewise.
15381         * modules/memrchr-tests (Files): Likewise.
15382         * modules/mkdir-tests (Files): Likewise.
15383         * modules/mkfifo-tests (Files): Likewise.
15384         * modules/mkfifoat-tests (Files): Likewise.
15385         * modules/mknod-tests (Files): Likewise.
15386         * modules/nanosleep-tests (Files): Likewise.
15387         * modules/nl_langinfo-tests (Files): Likewise.
15388         * modules/obstack-printf-tests (Files): Likewise.
15389         * modules/open-tests (Files): Likewise.
15390         * modules/openat-tests (Files): Likewise.
15391         * modules/perror-tests (Files): Likewise.
15392         * modules/pipe2-tests (Files): Likewise.
15393         * modules/poll-tests (Files): Likewise.
15394         * modules/popen-tests (Files): Likewise.
15395         * modules/posix_spawn-tests (Files): Likewise.
15396         * modules/posix_spawnp-tests (Files): Likewise.
15397         * modules/pread-tests (Files): Likewise.
15398         * modules/printf-posix-tests (Files): Likewise.
15399         * modules/pty-tests (Files): Likewise.
15400         * modules/random_r-tests (Files): Likewise.
15401         * modules/rawmemchr-tests (Files): Likewise.
15402         * modules/readlink-tests (Files): Likewise.
15403         * modules/remove-tests (Files): Likewise.
15404         * modules/rename-tests (Files): Likewise.
15405         * modules/renameat-tests (Files): Likewise.
15406         * modules/rmdir-tests (Files): Likewise.
15407         * modules/round-tests (Files): Likewise.
15408         * modules/roundf-tests (Files): Likewise.
15409         * modules/roundl-tests (Files): Likewise.
15410         * modules/select-tests (Files): Likewise.
15411         * modules/setenv-tests (Files): Likewise.
15412         * modules/sigaction-tests (Files): Likewise.
15413         * modules/sleep-tests (Files): Likewise.
15414         * modules/snprintf-posix-tests (Files): Likewise.
15415         * modules/snprintf-tests (Files): Likewise.
15416         * modules/sprintf-posix-tests (Files): Likewise.
15417         * modules/stat-tests (Files): Likewise.
15418         * modules/strcasestr-tests (Files): Likewise.
15419         * modules/strchrnul-tests (Files): Likewise.
15420         * modules/strerror-tests (Files): Likewise.
15421         * modules/strsignal-tests (Files): Likewise.
15422         * modules/strstr-tests (Files): Likewise.
15423         * modules/strtod-tests (Files): Likewise.
15424         * modules/strverscmp-tests (Files): Likewise.
15425         * modules/symlink-tests (Files): Likewise.
15426         * modules/symlinkat-tests (Files): Likewise.
15427         * modules/times-tests (Files): Likewise.
15428         * modules/trunc-tests (Files): Likewise.
15429         * modules/truncf-tests (Files): Likewise.
15430         * modules/truncl-tests (Files): Likewise.
15431         * modules/tsearch-tests (Files): Likewise.
15432         * modules/uname-tests (Files): Likewise.
15433         * modules/unlink-tests (Files): Likewise.
15434         * modules/unsetenv-tests (Files): Likewise.
15435         * modules/usleep-tests (Files): Likewise.
15436         * modules/utimensat-tests (Files): Likewise.
15437         * modules/vasprintf-tests (Files): Likewise.
15438         * modules/vdprintf-posix-tests (Files): Likewise.
15439         * modules/vfprintf-posix-tests (Files): Likewise.
15440         * modules/vprintf-posix-tests (Files): Likewise.
15441         * modules/vsnprintf-posix-tests (Files): Likewise.
15442         * modules/vsnprintf-tests (Files): Likewise.
15443         * modules/vsprintf-posix-tests (Files): Likewise.
15444         * modules/wcrtomb-tests (Files): Likewise.
15445         * modules/wcsnrtombs-tests (Files): Likewise.
15446         * modules/wcsrtombs-tests (Files): Likewise.
15447         * modules/wcwidth-tests (Files): Likewise.
15448         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15449         * tests/test-isinf.c (isinf): Likewise.
15450         * tests/test-isnan.c (isnan): Likewise.
15451         * tests/test-signbit.c (signbit): Likewise.
15452         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15453         declaration, either as macro or with correct signature.
15454         (select): Ensure function under test is declared with correct
15455         signature in correct header.
15456         * tests/test-atexit.c (atexit): Likewise.
15457         * tests/test-btowc.c (btowc): Likewise.
15458         * tests/test-canonicalize-lgpl.c (realpath)
15459         (canonicalize_file_name): Likewise.
15460         * tests/test-ceilf1.c (ceilf): Likewise.
15461         * tests/test-ceill.c (ceill): Likewise.
15462         * tests/test-chown.c (chown): Likewise.
15463         * tests/test-dprintf-posix.c (dprintf): Likewise.
15464         * tests/test-dup2.c (dup2): Likewise.
15465         * tests/test-dup3.c (dup3): Likewise.
15466         * tests/test-duplocale.c (duplocale): Likewise.
15467         * tests/test-fchdir.c (fchdir): Likewise.
15468         * tests/test-fchownat.c (fchownat): Likewise.
15469         * tests/test-fcntl.c (fcntl): Likewise.
15470         * tests/test-fdopendir.c (fdopendir): Likewise.
15471         * tests/test-fflush.c (fflush): Likewise.
15472         * tests/test-flock.c (flock): Likewise.
15473         * tests/test-floorf1.c (floorf): Likewise.
15474         * tests/test-floorl.c (floorl): Likewise.
15475         * tests/test-fnmatch.c (fnmatch): Likewise.
15476         * tests/test-fopen.c (fopen): Likewise.
15477         * tests/test-fprintf-posix.c (fprintf): Likewise.
15478         * tests/test-freopen.c (freopen): Likewise.
15479         * tests/test-frexp.c (frexp): Likewise.
15480         * tests/test-frexpl.c (frexpl): Likewise.
15481         * tests/test-fseek.c (fseek): Likewise.
15482         * tests/test-fseeko.c (fseeko): Likewise.
15483         * tests/test-fstatat.c (fstatat): Likewise.
15484         * tests/test-fsync.c (fsync): Likewise.
15485         * tests/test-ftell.c (ftell): Likewise.
15486         * tests/test-ftello.c (ftello): Likewise.
15487         * tests/test-futimens.c (futimens): Likewise.
15488         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
15489         (gai_strerror): Likewise.
15490         * tests/test-getcwd.c (getcwd): Likewise.
15491         * tests/test-getdelim.c (getdelim): Likewise.
15492         * tests/test-getdtablesize.c (getdtablesize): Likewise.
15493         * tests/test-getgroups.c (getgroups): Likewise.
15494         * tests/test-gethostname.c (gethostname): Likewise.
15495         * tests/test-getline.c (getline): Likewise.
15496         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
15497         Likewise.
15498         * tests/test-gettimeofday.c (gettimeofday): Likewise.
15499         * tests/test-glob.c (glob, globfree): Likewise.
15500         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
15501         * tests/test-inet_ntop.c (inet_ntop): Likewise.
15502         * tests/test-inet_pton.c (inet_pton): Likewise.
15503         * tests/test-isblank.c (isblank): Likewise.
15504         * tests/test-lchown.c (lchown): Likewise.
15505         * tests/test-ldexpl.c (ldexpl): Likewise.
15506         * tests/test-link.c (link): Likewise.
15507         * tests/test-linkat.c (linkat): Likewise.
15508         * tests/test-lseek.c (lseek): Likewise.
15509         * tests/test-lstat.c (lstat): Likewise.
15510         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15511         * tests/test-mbsinit.c (mbsinit): Likewise.
15512         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15513         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15514         * tests/test-memchr.c (memchr): Likewise.
15515         * tests/test-memcmp.c (memcmp): Likewise.
15516         * tests/test-memmem.c (memmem): Likewise.
15517         * tests/test-memrchr.c (memrchr): Likewise.
15518         * tests/test-mkdir.c (mkdir): Likewise.
15519         * tests/test-mkdirat.c (mkdirat): Likewise.
15520         * tests/test-mkfifo.c (mkfifo): Likewise.
15521         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15522         * tests/test-mknod.c (mknod): Likewise.
15523         * tests/test-nanosleep.c (nanosleep): Likewise.
15524         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15525         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15526         Likewise.
15527         * tests/test-open.c (open): Likewise.
15528         * tests/test-openat.c (openat): Likewise.
15529         * tests/test-perror.c (perror): Likewise.
15530         * tests/test-pipe2.c (pipe2): Likewise.
15531         * tests/test-poll.c (poll): Likewise.
15532         * tests/test-popen.c (popen, pclose): Likewise.
15533         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15534         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15535         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15536         (posix_spawn_file_actions_destroy)
15537         (posix_spawn_file_actions_addclose)
15538         (posix_spawn_file_actions_addopen)
15539         (posix_spawn_file_actions_adddup2): Likewise.
15540         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15541         * tests/test-pread.c (pread): Likewise.
15542         * tests/test-printf-posix.c (printf): Likewise.
15543         * tests/test-pty.c (openpty, forkpty): Likewise.
15544         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15545         (random_r): Likewise.
15546         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15547         * tests/test-readlink.c (readlink): Likewise.
15548         * tests/test-remove.c (remove): Likewise.
15549         * tests/test-rename.c (rename): Likewise.
15550         * tests/test-renameat.c (renameat): Likewise.
15551         * tests/test-rmdir.c (rmdir): Likewise.
15552         * tests/test-round1.c (round): Likewise.
15553         * tests/test-roundf1.c (roundf): Likewise.
15554         * tests/test-roundl.c (roundl): Likewise.
15555         * tests/test-setenv.c (setenv): Likewise.
15556         * tests/test-sigaction.c (sigaction): Likewise.
15557         * tests/test-sleep.c (sleep): Likewise.
15558         * tests/test-snprintf.c (snprintf): Likewise.
15559         * tests/test-sprintf-posix.c (sprintf): Likewise.
15560         * tests/test-stat.c (stat): Likewise.
15561         * tests/test-stpncpy.c (stpncpy): Likewise.
15562         * tests/test-strcasestr.c (strcasestr): Likewise.
15563         * tests/test-strchrnul.c (strchrnul): Likewise.
15564         * tests/test-strerror.c (strerror): Likewise.
15565         * tests/test-strsignal.c (strsignal): Likewise.
15566         * tests/test-strstr.c (strstr): Likewise.
15567         * tests/test-strtod.c (strtod): Likewise.
15568         * tests/test-strverscmp.c (strverscmp): Likewise.
15569         * tests/test-symlink.c (symlink): Likewise.
15570         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
15571         * tests/test-times.c (times): Likewise.
15572         * tests/test-trunc1.c (trunc): Likewise.
15573         * tests/test-truncf1.c (truncf): Likewise.
15574         * tests/test-truncl.c (truncl): Likewise.
15575         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
15576         Likewise.
15577         * tests/test-uname.c (uname): Likewise.
15578         * tests/test-unlink.c (unlink): Likewise.
15579         * tests/test-unlinkat.c (unlinkat): Likewise.
15580         * tests/test-unsetenv.c (unsetenv): Likewise.
15581         * tests/test-usleep.c (usleep): Likewise.
15582         * tests/test-utimensat.c (utimensat): Likewise.
15583         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
15584         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
15585         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
15586         * tests/test-vprintf-posix.c (vprintf): Likewise.
15587         * tests/test-vsnprintf.c (vsnprintf): Likewise.
15588         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
15589         * tests/test-wcrtomb.c (wcrtomb): Likewise.
15590         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
15591         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
15592         * tests/test-wcwidth.c (wcwidth): Likewise.
15593
15594         build: pull in conditional headers during GNULIB_POSIXCHECK
15595         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
15596         definitions from any conditionally-included headers.
15597         * lib/stdlib.in.h (includes): Likewise.
15598         * lib/unistd.in.h (includes): Likewise.
15599
15600 2009-12-24  Bruno Haible  <bruno@clisp.org>
15601
15602         * tests/test-argv-iter.c: Include header file being tested immediately
15603         after config.h.
15604         * tests/test-base64.c: Likewise.
15605         * tests/test-flock.c: Likewise.
15606         * tests/test-fsync.c: Likewise.
15607         * tests/test-getdate.c: Likewise.
15608         * tests/test-getndelim2.c: Likewise.
15609         * tests/test-isfinite.c: Likewise.
15610         * tests/test-isinf.c: Likewise.
15611         * tests/test-strerror.c: Likewise.
15612         * tests/test-strsignal.c: Likewise.
15613
15614 2009-12-23  Eric Blake  <ebb9@byu.net>
15615
15616         unistd: work around cygwin bug
15617         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
15618         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
15619         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15620
15621 2009-12-23  Bruno Haible  <bruno@clisp.org>
15622
15623         localename: More tests.
15624         * tests/test-localename.c (SIZEOF): New macro.
15625         (categories): New variable.
15626         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
15627         test_locale_name_default): Add test w.r.t. thread locale.
15628         (test_locale_name_thread): New function.
15629         (main): Invoke it.
15630
15631         localename: Make aware of thread locale.
15632         * lib/localename.h (gl_locale_name_thread): New declaration.
15633         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
15634         behaviour with respect to thread locale.
15635         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
15636         <langinfo.h>, glthread/lock.h.
15637         (SIZE_BITS): New macro.
15638         (string_hash): New function.
15639         (struct hash_node): New type.
15640         (HASH_TABLE_SIZE): New macro.
15641         (struniq_hash_table, struniq_lock): New variables.
15642         (struniq): New function.
15643         (gl_locale_name_thread): New function.
15644         (gl_locale_name): Invoke it.
15645         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
15646         * modules/localename (Depends-on): Add lock.
15647         Reported by Mike Gran <spk121@yahoo.com>.
15648
15649 2009-12-23  Eric Blake  <ebb9@byu.net>
15650
15651         va-args: new module
15652         * modules/va-args: New file.
15653         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
15654         * MODULES.html.sh (Core language properties): Mention it.
15655
15656         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
15657         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
15658         named alias for __attribute__((__unused__)).
15659         * lib/chown.c: Update client.
15660         * lib/fchmodat.c: Likewise.
15661         * lib/fts.c: Likewise.
15662         * lib/getdate.y: Likewise.
15663         * lib/getgroups.c: Likewise.
15664         * lib/getopt.c: Likewise.
15665         * lib/getugroups.c: Likewise.
15666         * lib/mkdir.c: Likewise.
15667         * lib/mkfifo.c: Likewise.
15668         * lib/mkfifoat.c: Likewise.
15669         * lib/mknod.c: Likewise.
15670         * lib/mknodat.c: Likewise.
15671         * lib/readlink.c: Likewise.
15672         * lib/se-context.in.h: Likewise.
15673         * lib/se-selinux.in.h: Likewise.
15674         * lib/sockets.c: Likewise.
15675         * lib/symlink.c: Likewise.
15676         * lib/symlinkat.c: Likewise.
15677         * lib/unicodeio.c: Likewise.
15678         * lib/unistr.h: Likewise.
15679         * tests/test-areadlink.c: Likewise.
15680         * tests/test-areadlinkat.c: Likewise.
15681         * tests/test-filenamecat.c: Likewise.
15682         * tests/test-fseeko.c: Likewise.
15683         * tests/test-ftello.c: Likewise.
15684         * tests/test-getdate.c: Likewise.
15685         * tests/test-getgroups.c: Likewise.
15686         * tests/test-gethostname.c: Likewise.
15687         * tests/test-quotearg.c: Likewise.
15688         * tests/test-version-etc.c: Likewise.
15689         * tests/test-xalloc-die.c: Likewise.
15690         * tests/test-xfprintf-posix.c: Likewise.
15691         * tests/test-xprintf-posix.c: Likewise.
15692         * tests/test-xvasprintf.c: Likewise.
15693
15694         tests: avoid compiler warnings
15695         * tests/test-fcntl.c (main): Delete unused parameters.
15696         * tests/test-freopen-safer.c (main): Likewise.
15697         * tests/test-xalloc-die.c (main): Mark unused parameters.
15698         * tests/test-fseeko.c (main): Likewise.
15699         * tests/test-ftello.c (main): Likewise.
15700         * tests/test-nanosleep.c (main): Avoid declaration warning.
15701         * tests/test-sleep.c (main): Likewise.
15702         * tests/test-unsetenv.c (main): Silence warning about string
15703         literal.
15704         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15705
15706 2009-12-23  Bruno Haible  <bruno@clisp.org>
15707
15708         * tests/test-localename.c (test_locale_name): New function, extracted
15709         from main. Also test mixed situations.
15710         (test_locale_name_posix, test_locale_name_environ,
15711         test_locale_name_default): New functions.
15712         (main): Invoke them all.
15713         * modules/localename-tests (configure.ac): Test for newlocale.
15714
15715 2009-12-23  Bruno Haible  <bruno@clisp.org>
15716
15717         unistd: Ensure getcwd gets declared before being overridden.
15718         * lib/unistd.in.h: Conditionally include <io.h>.
15719
15720 2009-12-22  Bruno Haible  <bruno@clisp.org>
15721
15722         wchar: Diagnose broken combination of glibc and gcc versions and flags.
15723         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
15724         (gl_WCHAR_H): Invoke it.
15725         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
15726         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
15727         Reported by Karl Berry <karl@freefriends.org>.
15728
15729 2009-12-22  Eric Blake  <ebb9@byu.net>
15730
15731         math, unistd: avoid redundant includes
15732         * lib/math.in.h (isnan): No need to re-include <math.h>.
15733         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
15734
15735         getsubopt: work around cygwin bug
15736         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
15737         avoid conflicting with system getsubopt.
15738         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
15739         bug.
15740
15741         getopt: synchronize from glibc
15742         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
15743         parameter order.  Adjust all callers.
15744         (_getopt_internal_r, main): Adjust quoting in error messages.
15745         Drop considerations for outdated POSIX 1003.2 error message.
15746         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
15747         callers.
15748         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
15749
15750         test-getopt: test stderr behavior
15751         * modules/getopt-posix-tests (Depends-on): Add dup2.
15752         * tests/test-getopt.c (ASSERT): Avoid stderr.
15753         (main): Move stderr to a temporary file.
15754         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
15755         Instead, add parameter to inform caller if output occurred.
15756         (test_getopt): Adjust all existing tests to expect silence, and
15757         add new tests of leading ":".
15758         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15759         glibc shortcomings with leading "-:" or "+:" in optstring.
15760         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15761         Likewise.
15762         * doc/posix-functions/getopt.texi (getopt): Likewise.
15763
15764         test-getopt: enhance test
15765         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
15766         supports optind=0.
15767         * tests/test-getopt.c (OPTIND_MIN): Move...
15768         * tests/test-getopt.h (OPTIND_MIN): ...here.
15769         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
15770         Require that optind=0 works, since modern BSD supports it in
15771         addition to optreset, and since coreutils expects it.
15772         (test_getopt_long_only): New test.
15773         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15774         glibc shortcomings with 'W;', and enforcement of optind=0.
15775         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15776         Likewise.
15777
15778 2009-12-21  Bruno Haible  <bruno@clisp.org>
15779
15780         localename: Improvements for MacOS X and Cygwin.
15781         * lib/localename.h (gl_locale_name_environ): New declaration.
15782         * lib/localename.c (gl_locale_name_environ): New function, extracted from
15783         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
15784         (gl_locale_name_posix): Invoke it.
15785         (gl_locale_name_default): Add comments. Use Windows native API also on
15786         Cygwin.
15787
15788 2009-12-21  Bruno Haible  <bruno@clisp.org>
15789
15790         Update list of Win32 locale ids.
15791         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
15792         (LANG_SAMI): Renamed from LANG_SAAMI.
15793         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
15794         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
15795         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
15796         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
15797         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
15798         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
15799         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
15800         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
15801         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
15802         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
15803         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
15804         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
15805         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
15806         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
15807         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
15808         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
15809         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
15810         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
15811         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
15812         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
15813         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
15814         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
15815         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
15816         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
15817         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
15818         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
15819         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
15820         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
15821         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
15822         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
15823         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
15824         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
15825         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
15826         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
15827         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
15828         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
15829         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
15830         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
15831         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
15832         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
15833         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
15834         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
15835         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
15836         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
15837         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
15838         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
15839         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
15840         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
15841         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
15842         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
15843         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
15844         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
15845         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
15846         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
15847         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
15848         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
15849         Add more languages and countries for Sami, Sorbian. Add more countries
15850         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
15851         for Pashto. Change country for Syriac, Tswana.
15852
15853 2009-12-21  Eric Blake  <ebb9@byu.net>
15854
15855         test-utimens: avoid spurious failure
15856         * tests/test-chown.h (nap): Factor...
15857         * tests/nap.h: ...into new file.
15858         * tests/test-lchown.h (nap): Avoid duplication.
15859         * tests/test-utimens-common.h (nap): Use shared implementation,
15860         necessary on file systems with 1-second resolution.
15861         * modules/chown-tests (Files): Include new file.
15862         * modules/fdutimensat-tests (Files): Likewise.
15863         * modules/futimens-tests (Files): Likewise.
15864         * modules/lchown-tests (Files): Likewise.
15865         * modules/openat-tests (Files): Likewise.
15866         * modules/utimens-tests (Files): Likewise.
15867         * modules/utimensat-tests (Files): Likewise.
15868
15869 2009-12-19  Eric Blake  <ebb9@byu.net>
15870
15871         futimens, utimensat: work around Linux bug
15872         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
15873         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15874         * lib/utimensat.c (rpl_utimensat): Work around it.
15875         * lib/futimens.c (rpl_futimens): Adjust comment.
15876
15877         utimens: work around Linux ctime bug
15878         * lib/utimens.c (detect_ctime_bug): New helper function.
15879         (update_timespec): Differentiate between workaround needed for
15880         this bug vs. what is needed for systems that lack utimensat.
15881         (fdutimens, lutimens): Work around bug.
15882
15883         utimens: check for ctime update
15884         * tests/test-utimens-common.h (check_ctime): Define.
15885         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
15886         * tests/test-futimens.h (test_futimens): Likewise.
15887         * tests/test-lutimens.h (test_lutimens): Likewise.
15888         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15889         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15890
15891 2009-12-19  Bruno Haible  <bruno@clisp.org>
15892
15893         dprintf-posix: Check against memory leak fixed on 2009-12-15.
15894         * tests/test-dprintf-posix2.sh: New file.
15895         * tests/test-dprintf-posix2.c: New file.
15896         * modules/dprintf-posix-tests (Files): Add them.
15897         (configure.ac): Check for getrlimit and setrlimit.
15898         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15899
15900 2009-12-19  Bruno Haible  <bruno@clisp.org>
15901
15902         fprintf-posix: Check against memory leak fixed on 2009-12-15.
15903         * tests/test-fprintf-posix3.sh: New file.
15904         * tests/test-fprintf-posix3.c: New file.
15905         * modules/fprintf-posix-tests (Files): Add them.
15906         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15907
15908 2009-12-19  Eric Blake  <ebb9@byu.net>
15909
15910         dirfd: fix prototype
15911         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
15912         * lib/dirfd.c (dirfd): Likewise.
15913
15914         canonicalize: reduce memory usage
15915         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
15916         allocation to size.
15917         Reported by Solar Designer <solar@openwall.com>.
15918
15919 2009-12-19  Bruno Haible  <bruno@clisp.org>
15920
15921         New module attribute 'Applicability'.
15922         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
15923         * gnulib-tool: New option --extract-applicability.
15924         (func_usage): Document it.
15925         (sed_extract_prog): Recognize it.
15926         (func_get_applicability): New function.
15927         (func_import): Generalize handling of 'link-warning' module.
15928         * modules/link-warning (Applicability): New section.
15929         * modules/arg-nonnull (Applicability): New section.
15930         Repoted by Simon Josefsson <simon@josefsson.org>.
15931
15932 2009-12-19  Bruno Haible  <bruno@clisp.org>
15933
15934         fflush: tweak
15935         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
15936         * lib/fseeko.c (rpl_fseeko): Likewise.
15937
15938 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
15939
15940         * lib/gl_list.h: Fix typo in comment.
15941
15942 2009-12-16  Eric Blake  <ebb9@byu.net>
15943
15944         fcntl: use to simplify other modules
15945         * modules/cloexec (Depends-on): Add fcntl.
15946         * modules/fchdir (Depends-on): Likewise.
15947         * modules/fd-safer-flag (Depends-on): Likewise.
15948         * modules/unistd-safer (Depends-on): Likewise.
15949         * modules/dup3 (configure.ac): Set module indicator.
15950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
15951         missing.
15952         * lib/fchdir.c (_gl_register_dup): Fix comment.
15953         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
15954         * lib/dup-safer.c (dup_safer): Likewise.
15955         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
15956         * lib/dup3.c (dup3): Likewise.
15957         * tests/test-fchdir.c (main): Enhance test.
15958         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
15959
15960         fcntl: port portions of fcntl to mingw
15961         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
15962         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
15963         replacement for mingw.
15964         * modules/fcntl (Description): Update.
15965         (Depends-on): Add dup2.
15966         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
15967         * modules/fcntl-h (Makefile.am): Substitute it.
15968         * lib/fcntl.in.h (fcntl): Update declaration.
15969         (F_DUPFD, F_GETFD): New macros, when needed.
15970         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15971         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
15972         * tests/test-fcntl.c (check_flags, main): Enhance test for items
15973         we now guarantee.
15974
15975         fcntl: work around cygwin bug in F_DUPFD
15976         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
15977         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
15978         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
15979         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
15980         * doc/posix-functions/fcntl.texi (fcntl): Document it.
15981
15982         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
15983         * modules/fcntl (Files): List new files.
15984         (configure.ac): Run a test.
15985         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
15986         * lib/fcntl.c (rpl_fcntl): Likewise.
15987         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
15988         (gl_FCNTL_H): Always replace fcntl.h.
15989         * modules/fcntl-h (Makefile.am): Substitute witnesses.
15990         * lib/fcntl.in.h (fcntl): Declare replacement.
15991         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
15992         needed, plus a witness.
15993         * doc/posix-functions/fcntl.texi (fcntl): Document this.
15994         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15995         * tests/test-fcntl.c: New file.
15996         * modules/fcntl-tests: Likewise.
15997
15998         binary-io: avoid potential compilation warning
15999         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16000         directives.
16001
16002         fflush: avoid compilation error on NetBSD
16003         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16004         between off_t and fpos_t, since the latter is sometimes a struct.
16005         * lib/fseeko.c (rpl_fseeko): Likewise.
16006         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16007
16008 2009-12-15  Eric Blake  <ebb9@byu.net>
16009
16010         fcntl-h, stdio, sys_ioctl: fix declarations
16011         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16012         function must not take arguments.
16013         * lib/sys_ioctl.in.h (ioctl): Likewise.
16014         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16015         (open): Add a link warning.
16016
16017 2009-12-15  Jim Meyering  <meyering@redhat.com>
16018
16019         areadlink, areadlink-with-size: relax license to LGPLv2+
16020         * modules/areadlink (License): Relax to LGPLv2+.
16021         * modules/areadlink-with-size (License): Likewise.
16022
16023 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16024             Bruno Haible  <bruno@clisp.org>
16025
16026         *printf: Fix memory leak.
16027         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16028         * lib/vfprintf.c (vfprintf): Likewise.
16029         * lib/dprintf.c (dprintf): Likewise.
16030         * lib/vdprintf.c (vdprintf): Likewise.
16031
16032 2009-12-14  Eric Blake  <ebb9@byu.net>
16033
16034         accept4: adjust module dependencies
16035         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16036
16037         utimens: one more try at avoiding compiler warning
16038         * lib/utimens.c (lutimens): Lower scope of result.
16039
16040 2009-12-13  Bruno Haible  <bruno@clisp.org>
16041
16042         Move the malloc checking from module 'list' to new module 'xlist'.
16043         * modules/xlist: New file.
16044         * lib/gl_xlist.h: New file.
16045         * lib/gl_xlist.c: New file.
16046         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16047         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16048         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16049         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16050         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16051         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16052         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16053         gl_sortedlist_nx_add): New declarations.
16054         (struct gl_list_implementation): Rename and change methods accordingly.
16055         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
16056         (gl_list_nx_create): Renamed from gl_list_create.
16057         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16058         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16059         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16060         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16061         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16062         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16063         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16064         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16065         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
16066         gl_list_create_empty.
16067         (gl_list_nx_create): Renamed from gl_list_create.
16068         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16069         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16070         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16071         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16072         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16073         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16074         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16075         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16076         * lib/gl_array_list.c: Don't include xalloc.h.
16077         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16078         NULL upon out-of-memory.
16079         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16080         out-of-memory.
16081         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16082         Change return type to 'int'.
16083         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16084         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16085         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16086         upon out-of-memory.
16087         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16088         upon out-of-memory.
16089         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16090         upon out-of-memory.
16091         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16092         upon out-of-memory.
16093         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16094         out-of-memory.
16095         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16096         Update.
16097         (gl_array_list_implementation): Update.
16098         * lib/gl_carray_list.c: Don't include xalloc.h.
16099         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16100         Return NULL upon out-of-memory.
16101         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16102         out-of-memory.
16103         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16104         Change return type to 'int'.
16105         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16106         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16107         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16108         upon out-of-memory.
16109         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16110         upon out-of-memory.
16111         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16112         out-of-memory.
16113         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16114         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16115         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16116         Update.
16117         (gl_carray_list_implementation): Update.
16118         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16119         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16120         gl_linked_create_empty. Return NULL upon out-of-memory.
16121         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16122         out-of-memory.
16123         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16124         Change return type to 'int'. Return -1 upon out-of-memory.
16125         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16126         out-of-memory.
16127         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16128         upon out-of-memory.
16129         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16130         upon out-of-memory.
16131         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16132         NULL upon out-of-memory.
16133         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16134         upon out-of-memory.
16135         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16136         out-of-memory.
16137         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16138         Update.
16139         * lib/gl_linked_list.c: Don't include xalloc.h.
16140         (gl_linked_list_implementation): Update.
16141         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16142         (add_to_bucket): Change return type to 'int'.
16143         (gl_linkedhash_list_implementation): Update.
16144         * lib/gl_anytree_list1.h (free_subtree): New function.
16145         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16146         gl_tree_create_empty. Return NULL upon out-of-memory.
16147         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16148         Change return type to 'int'. Return -1 upon out-of-memory.
16149         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16150         out-of-memory.
16151         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16152         (gl_tree_remove_node): New function, moved here from
16153         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16154         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16155         Update.
16156         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16157         malloc, not xmalloc. Return NULL upon out-of-memory.
16158         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16159         out-of-memory.
16160         (gl_tree_remove_node_from_tree): New function, extracted from
16161         gl_tree_remove_node.
16162         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16163         upon out-of-memory.
16164         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16165         out-of-memory.
16166         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16167         upon out-of-memory.
16168         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16169         upon out-of-memory.
16170         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16171         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16172         not xmalloc. Return NULL upon out-of-memory.
16173         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16174         out-of-memory.
16175         (gl_tree_remove_node_from_tree): New function, extracted from
16176         gl_tree_remove_node.
16177         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16178         upon out-of-memory.
16179         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16180         out-of-memory.
16181         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16182         upon out-of-memory.
16183         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16184         upon out-of-memory.
16185         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16186         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16187         gl_anytree_list1.h before gl_anyavltree_list2.h.
16188         (gl_avltree_list_implementation): Update.
16189         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16190         gl_anytree_list1.h before gl_anyavltree_list2.h.
16191         (gl_rbtree_list_implementation): Update.
16192         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16193         Change return type to 'int'. Return -1 upon out-of-memory. Use
16194         __builtin_expect.
16195         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16196         (gl_avltreehash_list_implementation): Update.
16197         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16198         (gl_rbtreehash_list_implementation): Update.
16199         * modules/array-list (Depends-on): Remove xalloc.
16200         * modules/carray-list (Depends-on): Likewise.
16201         * modules/linked-list (Depends-on): Likewise.
16202         * modules/linkedhash-list (Depends-on): Likewise.
16203         * modules/avltree-list (Depends-on): Likewise.
16204         * modules/rbtree-list (Depends-on): Likewise.
16205         * modules/avltreehash-list (Depends-on): Likewise.
16206         * modules/rbtreehash-list (Depends-on): Likewise.
16207
16208         * modules/xsublist: New file.
16209         * lib/gl_xsublist.h: New file.
16210         * lib/gl_xsublist.c: New file.
16211         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16212         (gl_sublist_nx_create): New declaration.
16213         * lib/gl_sublist.c: Don't include xalloc.h.
16214         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16215         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16216         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16217         Change return type to 'int'. Return -1 upon out-of-memory.
16218         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16219         upon out-of-memory.
16220         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16221         NULL upon out-of-memory.
16222         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16223         upon out-of-memory.
16224         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16225         NULL upon out-of-memory.
16226         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16227         NULL upon out-of-memory.
16228         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16229         upon out-of-memory.
16230         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16231         (gl_sublist_list_implementation): Update.
16232         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16233         upon out-of-memory.
16234         * modules/sublist (Depends-on): Remove xalloc.
16235
16236         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16237         * tests/test-carray_list.c: Likewise.
16238         * tests/test-linked_list.c: Likewise.
16239         * tests/test-linkedhash_list.c: Likewise.
16240         * tests/test-avltree_list.c: Likewise.
16241         * tests/test-rbtree_list.c: Likewise.
16242         * tests/test-avltreehash_list.c: Likewise.
16243         * tests/test-rbtreehash_list.c: Likewise.
16244         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16245         * modules/carray-list-tests (Makefile.am): Likewise.
16246         * modules/linked-list-tests (Makefile.am): Likewise.
16247         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16248         * modules/avltree-list-tests (Makefile.am): Likewise.
16249         * modules/rbtree-list-tests (Makefile.am): Likewise.
16250         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16251         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16252
16253         * NEWS: Mention the changes.
16254
16255         * lib/clean-temp.c: Include gl_xlist.h.
16256         * modules/clean-temp (Depends-on): Add xlist.
16257
16258         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16259         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16260
16261         * tests/test-array_oset.c: Include gl_xlist.h.
16262         * modules/array-oset-tests (Depends-on): Add xlist.
16263
16264         Reported by José E. Marchesi <jemarch@gnu.org>.
16265
16266 2009-12-13  Bruno Haible  <bruno@clisp.org>
16267
16268         Move the malloc checking from module 'oset' to new module 'xoset'.
16269         * modules/xoset: New file.
16270         * lib/gl_xoset.h: New file.
16271         * lib/gl_xoset.c: New file.
16272         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16273         declarations.
16274         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16275         (struct gl_oset_implementation): Rename and change methods accordingly.
16276         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16277         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16278         'int'. Mark as __warn_unused_result__.
16279         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16280         gl_oset_create_empty.
16281         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16282         'int'.
16283         * lib/gl_array_oset.c: Don't include xalloc.h.
16284         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16285         malloc, not xmalloc.
16286         (grow): Change return type to 'int'. Don't call xalloc_die.
16287         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16288         to 'int'.
16289         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16290         'int'.
16291         (gl_array_oset_implementation): Update.
16292         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16293         gl_tree_create_empty.
16294         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16295         'int'.
16296         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16297         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16298         xmalloc.
16299         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16300         not xmalloc.
16301         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16302         xmalloc.
16303         (gl_avltree_oset_implementation): Update.
16304         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16305         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16306         xmalloc.
16307         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16308         not xmalloc.
16309         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16310         xmalloc.
16311         (gl_rbtree_oset_implementation): Update.
16312         * modules/array-oset (Depends-on): Remove xalloc.
16313         * modules/avltree-oset (Depends-on): Likewise.
16314         * modules/rbtree-oset (Depends-on): Likewise.
16315         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16316         * tests/test-avltree_oset.c: Likewise.
16317         * tests/test-rbtree_oset.c: Likewise.
16318         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16319         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16320         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16321         * NEWS: Mention the change.
16322
16323 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16324
16325         maint.mk: allow a project to override release-prep commands
16326         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16327         commands into a new rule.
16328         (release-prep): New rule.
16329         (release-prep-hook): New overridable variable.
16330
16331 2009-12-13  Bruno Haible  <bruno@clisp.org>
16332
16333         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16334
16335 2009-12-13  Jim Meyering  <meyering@redhat.com>
16336
16337         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16338         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16339
16340 2009-12-12  Bruno Haible  <bruno@clisp.org>
16341
16342         duplocale: Tweak.
16343         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16344
16345 2009-12-12  Karl Berry  <karl@gnu.org>
16346
16347         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16348
16349 2009-12-12  Bruno Haible  <bruno@clisp.org>
16350
16351         * m4/po.m4: Undo incorrect untabification.
16352
16353 2009-12-12  Bruno Haible  <bruno@clisp.org>
16354
16355         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16356         * modules/c-strtod (Depends-on): Add locale.
16357         * modules/c-strtold (Depends-on): Likewise.
16358
16359 2009-12-12  Bruno Haible  <bruno@clisp.org>
16360
16361         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16362
16363 2009-12-11  Eric Blake  <ebb9@byu.net>
16364
16365         setenv: relax requirement in light of POSIX ruling
16366         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16367         not NULL.
16368         * tests/test-setenv.c (main): Relax test.
16369         * tests/test-unsetenv.c (main): Likewise.
16370         * doc/posix-functions/setenv.texi (setenv): Document this.
16371         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16372
16373 2009-12-11  Bruno Haible  <bruno@clisp.org>
16374
16375         New module 'fd-safer-flag'.
16376         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16377         * lib/dup-safer.c (dup_safer_flag): Remove function.
16378         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16379         * lib/fd-safer.c (fd_safer_flag): Remove function.
16380         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16381         * modules/cloexec (configure.ac): Drop indicator macro.
16382         * modules/fd-safer-flag: New file.
16383         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16384         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16385         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16386
16387 2009-12-11  Bruno Haible  <bruno@clisp.org>
16388
16389         Tests for module 'nl_langinfo'.
16390         * modules/nl_langinfo-tests: New file.
16391         * tests/test-nl_langinfo.sh: New file.
16392         * tests/test-nl_langinfo.c: New file.
16393
16394         New module 'nl_langinfo'.
16395         * lib/nl_langinfo.c: New file.
16396         * m4/nl_langinfo.m4: New file.
16397         * modules/nl_langinfo: New file.
16398         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16399
16400 2009-12-11  Bruno Haible  <bruno@clisp.org>
16401
16402         Tests for module 'langinfo'.
16403         * modules/langinfo-tests: New file.
16404         * tests/test-langinfo.c: New file.
16405
16406         New module 'langinfo'.
16407         * lib/langinfo.in.h: New file.
16408         * m4/langinfo_h.m4: New file.
16409         * modules/langinfo: New file.
16410         * doc/posix-headers/langinfo.texi: Mention the new module.
16411
16412 2009-12-11  Bruno Haible  <bruno@clisp.org>
16413
16414         * lib/config.charset: Untabify.
16415
16416 2009-12-11  Bruno Haible  <bruno@clisp.org>
16417
16418         * modules/unistd-safer (configure.ac): Drop indicator macro.
16419
16420 2009-12-11  Bruno Haible  <bruno@clisp.org>
16421
16422         Move pipe2-safer code to its own file.
16423         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16424         * lib/pipe-safer.c (pipe2_safer): Remove function.
16425         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16426         (Makefile.am): Add it to lib_SOURCES.
16427
16428 2009-12-10  Bruno Haible  <bruno@clisp.org>
16429
16430         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16431
16432 2009-12-10  Bruno Haible  <bruno@clisp.org>
16433
16434         Declare which arguments expect non-NULL values, for GCC and clang.
16435         * build-aux/arg-nonnull.h: New file.
16436         * modules/arg-nonnull: New file.
16437         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16438         (inet_ntop, inet_pton): Use it.
16439         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16440         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16441         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16442         (open, openat): Use it.
16443         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16444         (fnmatch): Use it.
16445         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16446         (getopt, getopt_long, getopt_long_only): Use it.
16447         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16448         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16449         Use it.
16450         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16451         (iconv_open): Use it.
16452         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16453         (strtoimax, strtoumax): Use it.
16454         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16455         (duplocale): Use it.
16456         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16457         (frexp, frexpl): Use it.
16458         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16459         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16460         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16461         (tsearch, tfind, tdelete, twalk): Use it.
16462         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16463         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16464         sigpending): Use it.
16465         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16466         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16467         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16468         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16469         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16470         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16471         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16472         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16473         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16474         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16475         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16476         Use it.
16477         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
16478         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
16479         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
16480         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
16481         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
16482         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
16483         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
16484         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
16485         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
16486         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
16487         strtoull, unsetenv): Use it.
16488         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
16489         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16490         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16491         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16492         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16493         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
16494         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
16495         (strcasecmp, strncasecmp): Use it.
16496         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
16497         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
16498         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
16499         rpl_setsockopt): Use it.
16500         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
16501         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
16502         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
16503         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16504         (gettimeofday): Use it.
16505         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16506         (times): Use it.
16507         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16508         (uname): Use it.
16509         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16510         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16511         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16512         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16513         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16514         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16515         unlinkat, write): Use it.
16516         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16517         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16518         * lib/argv-iter.h: Include arg-nonnull.h.
16519         (_ATTRIBUTE_NONNULL_): Remove macro.
16520         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16521         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16522         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16523         optimization.
16524         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16525         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16526         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16527         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16528         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16529         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16530         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16531         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16532         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16533         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16534         * modules/dirent (Depends-on): Add arg-nonnull.
16535         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16536         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16537         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16538         * modules/fnmatch (Depends-on): Add arg-nonnull.
16539         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16540         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16541         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16542         * modules/glob (Depends-on): Add arg-nonnull.
16543         (Makefile.am): Insert arg-nonnull.h into glob.h.
16544         * modules/iconv_open (Depends-on): Add arg-nonnull.
16545         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16546         * modules/inttypes (Depends-on): Add arg-nonnull.
16547         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16548         * modules/locale (Depends-on): Add arg-nonnull.
16549         (Makefile.am): Insert arg-nonnull.h into locale.h.
16550         * modules/math (Depends-on): Add arg-nonnull.
16551         (Makefile.am): Insert arg-nonnull.h into math.h.
16552         * modules/netdb (Depends-on): Add arg-nonnull.
16553         (Makefile.am): Insert arg-nonnull.h into netdb.h.
16554         * modules/search (Depends-on): Add arg-nonnull.
16555         (Makefile.am): Insert arg-nonnull.h into search.h.
16556         * modules/signal (Depends-on): Add arg-nonnull.
16557         (Makefile.am): Insert arg-nonnull.h into signal.h.
16558         * modules/spawn (Depends-on): Add arg-nonnull.
16559         (Makefile.am): Insert arg-nonnull.h into spawn.h.
16560         * modules/stdio (Depends-on): Add arg-nonnull.
16561         (Makefile.am): Insert arg-nonnull.h into stdio.h.
16562         * modules/stdlib (Depends-on): Add arg-nonnull.
16563         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
16564         * modules/string (Depends-on): Add arg-nonnull.
16565         (Makefile.am): Insert arg-nonnull.h into string.h.
16566         * modules/strings (Depends-on): Add arg-nonnull.
16567         (Makefile.am): Insert arg-nonnull.h into strings.h.
16568         * modules/sys_socket (Depends-on): Add arg-nonnull.
16569         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
16570         * modules/sys_stat (Depends-on): Add arg-nonnull.
16571         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
16572         * modules/sys_time (Depends-on): Add arg-nonnull.
16573         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
16574         * modules/sys_times (Depends-on): Add arg-nonnull.
16575         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
16576         * modules/sys_utsname (Depends-on): Add arg-nonnull.
16577         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
16578         * modules/time (Depends-on): Add arg-nonnull.
16579         (Makefile.am): Insert arg-nonnull.h into time.h.
16580         * modules/unistd (Depends-on): Add arg-nonnull.
16581         (Makefile.am): Insert arg-nonnull.h into unistd.h.
16582         * modules/wchar (Depends-on): Add arg-nonnull.
16583         (Makefile.am): Insert arg-nonnull.h into wchar.h.
16584         * modules/argv-iter (Depends-on): Add arg-nonnull.
16585         * tests/test-canonicalize.c (null_ptr): New function.
16586         (main): Use it.
16587         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
16588         (main): Use it.
16589         * tests/test-memmem.c (null_ptr): New function.
16590         (main): Use it.
16591         Reported by Jim Meyering.
16592
16593 2009-12-10  Bruno Haible  <bruno@clisp.org>
16594
16595         Use spaces for indentation, not tabs.
16596         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16597         * m4/*.m4: Untabify.
16598         * build-aux/*.h: Untabify.
16599         * tests/**/*.[hc]: Untabify.
16600         * README: New section "Indent with spaces, not TABs", based on
16601         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
16602         * NEWS: Mention the change.
16603
16604 2009-12-10  Bruno Haible  <bruno@clisp.org>
16605
16606         pty test: Fix link error.
16607         * modules/pty-tests (Makefile.am): Add the default LDADD value to
16608         test_pty_LDADD.
16609
16610 2009-12-07  Simon Josefsson  <simon@josefsson.org>
16611
16612         * modules/pty: New file.
16613         * modules/pty-tests: New file.
16614         * m4/pty.m4: New file.
16615         * tests/test-pty.c: New file.
16616         * doc/glibc-headers/pty.texi: Modified.
16617         * doc/glibc-functions/forkpty.texi: Modified.
16618         * doc/glibc-functions/openpty.texi: Modified.
16619
16620 2009-12-10  Bruno Haible  <bruno@clisp.org>
16621
16622         Avoid syntax error in C++ mode.
16623         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
16624
16625 2009-12-10  Bruno Haible  <bruno@clisp.org>
16626
16627         Use sed with option -e.
16628         * gnulib-tool (func_version, func_emit_copyright_notice,
16629         func_emit_initmacro_end, func_import, func_create_testdir): Pass
16630         option -e to sed.
16631         * modules/link-warning (Makefile.am): Likewise.
16632
16633 2009-12-10  Jim Meyering  <meyering@redhat.com>
16634
16635         mgetgroups: do not write bytes beyond end of malloc'd buffer
16636         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
16637         username, we call getgroups with a one-element-shorter buffer,
16638         but still told it the length was original, max_n_groups.
16639
16640 2009-12-09  Eric Blake  <ebb9@byu.net>
16641
16642         cloexec: relax license
16643         * modules/cloexec (Maintainer): Add myself.
16644         (License): Use LGPL, not GPL.
16645
16646         link-warning: optimize generation
16647         * modules/link-warning (Makefile.am): Reduce process usage.
16648
16649 2009-12-09  Bruno Haible  <bruno@clisp.org>
16650
16651         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
16652         workaround was added on 2009-11-17.
16653
16654 2009-12-09  Jim Meyering  <meyering@redhat.com>
16655             Bruno Haible  <bruno@clisp.org>
16656
16657         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
16658         * modules/link-warning (Makefile.am): Make the comment-removing sed
16659         command more robust in the face of bootstrap-prepended comment lines.
16660
16661 2009-12-09  Bruno Haible  <bruno@clisp.org>
16662
16663         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
16664         most one group.
16665
16666 2009-12-09  Simon Josefsson <simon@josefsson.org>
16667             Bruno Haible  <bruno@clisp.org>
16668
16669         * build-aux/link-warning.h: Add copyright notice.
16670         * modules/link-warning (Makefile.am): Generate link-warning.h from
16671         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
16672         * NEWS: Mention change in link-warning module.
16673         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
16674         * modules/dirent (Makefile.am): Add dependency to dirent.h.
16675         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
16676         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
16677         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
16678         * modules/math (Makefile.am): Add dependency to math.h.
16679         * modules/search (Makefile.am): Add dependency to search.h.
16680         * modules/signal (Makefile.am): Add dependency to signal.h.
16681         * modules/spawn (Makefile.am): Add dependency to spawn.h.
16682         * modules/stdio (Makefile.am): Add dependency to stdio.h.
16683         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
16684         * modules/string (Makefile.am): Add dependency to string.h.
16685         * modules/strings (Makefile.am): Add dependency to strings.h.
16686         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
16687         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
16688         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
16689         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
16690         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
16691         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
16692         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
16693         * modules/unistd (Makefile.am): Add dependency to unistd.h.
16694         * modules/wchar (Makefile.am): Add dependency to wchar.h.
16695
16696 2009-12-09  Bruno Haible  <bruno@clisp.org>
16697
16698         fchdir: Optimize away rpl_fstat when possible.
16699         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
16700         REPLACE_OPEN_DIRECTORY.
16701         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
16702
16703 2009-12-09  Bruno Haible  <bruno@clisp.org>
16704
16705         * lib/fchdir.c: Update comment.
16706
16707 2009-12-09  Bruno Haible  <bruno@clisp.org>
16708
16709         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
16710
16711 2009-12-08  Eric Blake  <ebb9@byu.net>
16712
16713         fchdir: avoid memory leak on re-registration.
16714         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
16715
16716 2009-12-08  Jim Meyering  <meyering@redhat.com>
16717
16718         init.sh: avoid Solaris 10 /bin/sh portability problem
16719         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
16720         sourced script:
16721           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
16722           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
16723           bar
16724         tests/init.sh relied on that, accepting a --set-path=DIR argument,
16725         and two tests used that idiom.
16726         * tests/init.sh: Update suggested usage comments.
16727         (path_prepend_): New function, to be used in place
16728         of the --src-path=DIR option.
16729         (setup_): Move PATH-prepending code into path_prepend_.
16730         * tests/test-pread.sh: Adapt to new usage.
16731         * tests/test-xalloc-die.sh: Likewise.
16732
16733 2009-12-08  Simon Josefsson  <simon@josefsson.org>
16734
16735         * doc/gnulib.texi (Glibc pty.h): Add.
16736         * doc/glibc-functions/forkpty.texi: Add.
16737         * doc/glibc-functions/openpty.texi: Add.
16738         Suggested by Bruno Haible.
16739
16740 2009-12-08  Eric Blake  <ebb9@byu.net>
16741
16742         fchdir: fix logic bugs
16743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
16744         * tests/test-fchdir.c (main): Enhance test.
16745         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
16746         is in use.
16747
16748         dup2: fix logic bugs
16749         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
16750         REPLACE_DUP2 to decide when rpl_dup2 is needed.
16751         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
16752         exists.
16753         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
16754
16755 2009-12-07  Eric Blake  <ebb9@byu.net>
16756
16757         unlink: fix m4 detection
16758         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
16759
16760         unistd-safer: add unit test
16761         * modules/unistd-safer-tests: New file.
16762         * tests/test-dup-safer.c: Likewise.
16763         * tests/test-cloexec.c (setmode): Avoid compiler warning.
16764         * tests/test-dup2.c (setmode): Likewise.
16765         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
16766
16767         cloexec: preserve text vs. binary across dup_cloexec
16768         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
16769         mode.
16770         * modules/dup2-tests (Depends-on): Add binary-io.
16771         * modules/cloexec-tests (Depends-on): Likewise.
16772         * tests/test-dup2.c (setmode, is_mode): New helpers.
16773         (main): Add tests that translation mode is preserved.
16774         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
16775         Reported by Bruno Haible.
16776
16777         mgetgroups: reduce duplicate listings
16778         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
16779         resulting array.
16780         * tests/test-chown.h (test_chown): Simplify client.
16781         * tests/test-lchown.h (test_lchown): Likewise.
16782
16783 2009-12-06  Bruno Haible  <bruno@clisp.org>
16784
16785         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
16786         value.
16787
16788 2009-12-06  Bruno Haible  <bruno@clisp.org>
16789
16790         * lib/progname.c: Include stdio.h, stdlib.h.
16791         (set_program_name): Reject a NULL argument.
16792
16793 2009-12-05  Eric Blake  <ebb9@byu.net>
16794
16795         pipe2-safer: new module
16796         * modules/pipe2-safer: New file.
16797         * lib/unistd-safer.h (pipe2_safer): New prototype.
16798         * lib/unistd--.h (pipe2): New wrapper.
16799         * lib/pipe-safer.c (pipe2_safer): New function.
16800         * modules/pipe (Depends-on): Add pipe2-safer.
16801         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
16802
16803         stdlib-safer: preserve cloexec flag for mkostemp[s]
16804         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
16805         fd_safer_flag.
16806
16807         unistd-safer: allow preservation of cloexec status via flag
16808         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
16809         prototypes.
16810         * lib/dup-safer.c (dup_safer_flag): New function.
16811         * lib/fd-safer.c (fd_safer_flag): Likewise.
16812         * modules/cloexec (configure.ac): Set witness.
16813
16814         test-dup2: enhance test
16815         * modules/dup2-tests (Depends-on): Add cloexec.
16816         * tests/test-dup2.c (main): Enhance test.
16817
16818         cloexec: add dup_cloexec
16819         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
16820         header and comments.
16821         * lib/cloexec.c (set_cloexec_flag): Add comments.
16822         (dup_cloexec): New function, with mingw implementation borrowed
16823         from...
16824         * lib/w32spawn.h (dup_noinherit): ...here.
16825         * modules/execute (Depends-on): Add cloexec.
16826         * modules/pipe (Depends-on): Likewise.
16827         * modules/cloexec (Depends-on): Add dup2.
16828         * modules/cloexec-tests (Files): New file.
16829         * tests/test-cloexec.c: Likewise.
16830
16831         test-xalloc-die: fix test for mingw
16832         * modules/xalloc-die-tests (Files): Add tests/init.sh.
16833         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
16834         directory and .exe suffix off argv[0] output.
16835
16836         test-fseeko: fix test for mingw
16837         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
16838         than undefining fseek, so test will pass on mingw.
16839
16840 2009-12-05  Bruno Haible  <bruno@clisp.org>
16841
16842         * lib/progname.h (set_program_name): Clarify specification.
16843         * lib/progname.c (set_program_name): Likewise.
16844         Reported by Jim Meyering.
16845
16846 2009-12-05  Jim Meyering  <meyering@redhat.com>
16847
16848         maint.mk: backslash-escape parens in default regexp
16849         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
16850         backslash-escape the literal parentheses.
16851
16852         maint.mk: news-date-check: use grep -E
16853         * top/maint.mk (today): Define a Make variable, not a...
16854         (news-date-check): ...shell variable.
16855         (news-date-regexp): Use the Make variable.
16856         Use grep's -E option.  Change the failing diagnostic to mention
16857         the variable, $(news-date-regexp).
16858
16859 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
16860
16861         maintainer-makefile: allow customization of NEWS entry format
16862         * top/maint.mk (news-date-regexp): New overridable variable.
16863         (news-date-check): Use it.
16864
16865 2009-12-04  Eric Blake  <ebb9@byu.net>
16866
16867         mgetgroups: add xgetgroups, and avoid ENOSYS failures
16868         * lib/mgetgroups.h (xgetgroups): New prototype.
16869         * lib/mgetgroups.c (xgetgroups): New wrapper.
16870         (mgetgroups): Handle ENOSYS.
16871         * modules/mgetgroups (Depends-on): Add realloc.
16872         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
16873
16874         mgetgroups: avoid argument promotion issues with -1
16875         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
16876         for invalid gid_t.
16877         * tests/test-chown.h (getegid, test_chown): Likewise.
16878         * tests/test-lchown.h (getegid, test_lchown): Likewise.
16879
16880 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
16881
16882         exclude: Fix header file problems.
16883         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
16884
16885 2009-12-01  Jim Meyering  <meyering@redhat.com>
16886
16887         fts: fts_open: do not let an empty string cause immediate failure
16888         This is required in support of GNU rm, for which the command
16889         "rm A '' B" must process and remove both A and B, in spite of
16890         the empty string argument.
16891         * lib/fts.c (fts_open): Do not let the presence of an empty string
16892         cause fts_open to fail immediately.  Most fts-using tools must be
16893         able to process all arguments, in order, and can be expected to
16894         diagnose such arguments themselves.
16895
16896 2009-11-30  Eric Blake  <ebb9@byu.net>
16897
16898         utimens: fix compilation error
16899         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
16900         Declare variable at right scope.
16901
16902 2009-11-29  Jim Meyering  <meyering@redhat.com>
16903
16904         bootstrap: handle perl-5.11's changed --version output
16905         * build-aux/bootstrap (get_version): Handle perl separately,
16906         since perl-5.11's --version output is different.
16907
16908 2009-11-28  Jim Meyering  <meyering@redhat.com>
16909
16910         userspec: depend on the inttostr module, too
16911         * modules/userspec (Depends-on): Add inttostr.
16912
16913         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
16914         * lib/userspec.c (parse_with_separator): Do not accept a user ID
16915         number of MAXUID when it evaluates to (uid_t) -1.
16916         Likewise for group ID.  Reported by Matt McCutchen in
16917         <http://savannah.gnu.org/bugs/?28113>
16918
16919         userspec: reformat to use spaces, not TABs
16920         * lib/userspec.c: Expand TABs to spaces.
16921         Add Emacs' "indent-tabs-mode: nil" hint.
16922
16923 2009-11-27  Eric Blake  <ebb9@byu.net>
16924
16925         getopt-gnu: flush out another BSD bug
16926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
16927         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
16928         flush out BSD bug.
16929         * tests/test-getopt.h (test_getopt): End lists with NULL.
16930         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16931         (test_getopt_long_posix): Enhance test.
16932         * modules/getopt-posix-tests (Depends-on): Add stdbool.
16933         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
16934         getopt-gnu.
16935         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16936         Likewise.
16937
16938 2009-11-27  Simon Josefsson  <simon@josefsson.org>
16939
16940         * modules/idpriv-droptemp-tests (Notice): Fix text.
16941
16942 2009-11-27  Jim Meyering  <meyering@redhat.com>
16943
16944         test-xalloc-die: avoid spurious failure due to libtool argv difference
16945         In a libtool-enabled project, this test would fail due to a difference
16946         in the emitted program name, e.g.,
16947         -test-xalloc-die: memory exhausted
16948         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
16949         Use program to avoid that.
16950         * modules/xalloc-die-tests (Depends-on): Add progname.
16951         * tests/test-xalloc-die.c: Include progname.h".
16952         (program_name): Remove decl.
16953         (main): Call set_program_name.
16954         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
16955
16956 2009-11-26  Richard Jones  <rjones@redhat.com>
16957
16958         w32sock: leave win32 error in place.
16959         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
16960
16961 2009-11-26  Eric Blake  <ebb9@byu.net>
16962
16963         init.sh: suggest to use skip_ and fail_ functions in comments
16964         * tests/init.sh: Add a sentence.
16965
16966 2009-11-25  Bruno Haible  <bruno@clisp.org>
16967
16968         init.sh: add documentation in comments
16969         * tests/init.sh: Add some developer and user documentation.
16970
16971 2009-11-26  Jim Meyering  <meyering@redhat.com>
16972
16973         init.sh: accommodate even those who specify bogus srcdir manually
16974         * tests/init.sh: Normally, srcdir is guaranteed by automake and
16975         configure-time tests to be sanitized, so that there is no need to
16976         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
16977         (with no double quotes) suffices.  However, since tests may be
16978         invoked manually, and since you may explicitly set srcdir to the
16979         name of a directory containing spaces, do quote its uses here.
16980         * tests/test-pread.sh: Likewise.
16981         Suggested by Bruno Haible.
16982
16983         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
16984         * tests/test-pread.sh: Write no data into the pipe, because
16985         test-pread actually reads none.  This avoids a diagnostic,
16986         "bash: echo: write error: Broken pipe", that arises in the unusual
16987         event something is ignoring SIGPIPE, and might be interpreted
16988         as some sort of failure.  Reported by Bruno Haible.
16989
16990 2009-11-25  Jim Meyering  <meyering@redhat.com>
16991
16992         test-pread: cover failure with ESPIPE and EINVAL
16993         * tests/test-pread.c (main): Test for failure, too.
16994         * tests/test-pread.sh: Invoke with stdin on a pipe.
16995         Suggested by Eric Blake.
16996
16997         pread: improvement and fix
16998         * modules/pread (Depends-on): Depend on lseek, for portability to
16999         e.g., mingw.  Suggested by Eric Blake.
17000         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17001
17002         unistd.in.h: correct declaration of pread
17003         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17004         Reported by Richard W.M. Jones.
17005
17006         test-pread.sh: distribute the test script
17007         * modules/pread-tests (Files): Include test-pread.sh.
17008
17009         test-pread.sh: clean up
17010         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17011         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17012         That is unnecessary, since it's always ".".
17013         Suggestion from Eric Blake.
17014
17015         test-pread.sh: make executable
17016         * tests/test-pread.sh: Set executable bit.
17017         Reported by Eric Blake.
17018
17019         correct typo in test-pread.sh
17020         * tests/test-pread.sh: Add #! line.
17021
17022         test pread
17023         * tests/test-pread.c: New file.
17024         * tests/test-pread.sh: Likewise.
17025         * modules/pread-tests: Likewise.
17026
17027         pread: new module
17028         * modules/pread: New file.
17029         * lib/unistd.in.h (pread): Define/declare.
17030         * lib/pread.c (pread): New file.
17031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17032         * modules/unistd (Makefile.am): Substitute witnesses.
17033         * doc/posix-functions/pread.texi (pread): Update.
17034         * MODULES.html.sh: Add pread.
17035
17036 2009-11-25  Jim Meyering  <meyering@redhat.com>
17037
17038         tests/init.sh: new file to be used via most *.sh tests
17039         * tests/init.sh: New file.
17040
17041 2009-11-25  Eric Blake  <ebb9@byu.net>
17042
17043         utimens: work around older Linux failure with symlinks
17044         * lib/utimens.c (lutimensat_works_really): New variable.
17045         (fdutimens, lutimens): Use it to manage kernels that support
17046         nanosecond times on files, but not on symlinks.
17047         Reported by OndÅ™ej Vašík.
17048
17049         utimes: fix configure grammar
17050         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17051
17052 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17053
17054         regex: Fix fastmap for multibyte character ranges.
17055         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17056         characters when a multibyte character range is included.
17057
17058 2009-11-22  Andy Wingo  <wingo@pobox.com>
17059
17060         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17061         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17062
17063 2009-11-24  Bruno Haible  <bruno@clisp.org>
17064
17065         doc: Most *_l functions exist in MacOS X 10.5.
17066         * doc/posix-functions/duplocale.texi: Update platforms list.
17067         * doc/posix-functions/freelocale.texi: Likewise.
17068         * doc/posix-functions/newlocale.texi: Likewise.
17069         * doc/posix-functions/uselocale.texi: Likewise.
17070         * doc/posix-functions/isalnum_l.texi: Likewise.
17071         * doc/posix-functions/isalpha_l.texi: Likewise.
17072         * doc/posix-functions/isblank_l.texi: Likewise.
17073         * doc/posix-functions/iscntrl_l.texi: Likewise.
17074         * doc/posix-functions/isdigit_l.texi: Likewise.
17075         * doc/posix-functions/isgraph_l.texi: Likewise.
17076         * doc/posix-functions/islower_l.texi: Likewise.
17077         * doc/posix-functions/isprint_l.texi: Likewise.
17078         * doc/posix-functions/ispunct_l.texi: Likewise.
17079         * doc/posix-functions/isspace_l.texi: Likewise.
17080         * doc/posix-functions/isupper_l.texi: Likewise.
17081         * doc/posix-functions/iswalnum_l.texi: Likewise.
17082         * doc/posix-functions/iswalpha_l.texi: Likewise.
17083         * doc/posix-functions/iswblank_l.texi: Likewise.
17084         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17085         * doc/posix-functions/iswctype_l.texi: Likewise.
17086         * doc/posix-functions/iswdigit_l.texi: Likewise.
17087         * doc/posix-functions/iswgraph_l.texi: Likewise.
17088         * doc/posix-functions/iswlower_l.texi: Likewise.
17089         * doc/posix-functions/iswprint_l.texi: Likewise.
17090         * doc/posix-functions/iswpunct_l.texi: Likewise.
17091         * doc/posix-functions/iswspace_l.texi: Likewise.
17092         * doc/posix-functions/iswupper_l.texi: Likewise.
17093         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17094         * doc/posix-functions/isxdigit_l.texi: Likewise.
17095         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17096         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17097         * doc/posix-functions/strcoll_l.texi: Likewise.
17098         * doc/posix-functions/strfmon_l.texi: Likewise.
17099         * doc/posix-functions/strftime_l.texi: Likewise.
17100         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17101         * doc/posix-functions/strxfrm_l.texi: Likewise.
17102         * doc/posix-functions/tolower_l.texi: Likewise.
17103         * doc/posix-functions/toupper_l.texi: Likewise.
17104         * doc/posix-functions/towctrans_l.texi: Likewise.
17105         * doc/posix-functions/towlower_l.texi: Likewise.
17106         * doc/posix-functions/towupper_l.texi: Likewise.
17107         * doc/posix-functions/wcscoll_l.texi: Likewise.
17108         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17109         * doc/posix-functions/wctrans_l.texi: Likewise.
17110         * doc/posix-functions/wctype_l.texi: Likewise.
17111         * doc/glibc-functions/strptime_l.texi: Likewise.
17112         * doc/glibc-functions/strtod_l.texi: Likewise.
17113         * doc/glibc-functions/strtof_l.texi: Likewise.
17114         * doc/glibc-functions/strtol_l.texi: Likewise.
17115         * doc/glibc-functions/strtold_l.texi: Likewise.
17116         * doc/glibc-functions/strtoll_l.texi: Likewise.
17117         * doc/glibc-functions/strtoul_l.texi: Likewise.
17118         * doc/glibc-functions/strtoull_l.texi: Likewise.
17119         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17120         * doc/glibc-functions/wcstod_l.texi: Likewise.
17121         * doc/glibc-functions/wcstof_l.texi: Likewise.
17122         * doc/glibc-functions/wcstol_l.texi: Likewise.
17123         * doc/glibc-functions/wcstold_l.texi: Likewise.
17124         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17125         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17126         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17127
17128 2009-11-24  Bruno Haible  <bruno@clisp.org>
17129
17130         duplocale: Fix logic bug.
17131         * lib/duplocale.c: Don't include <langinfo.h>.
17132         (_NL_LOCALE_NAME): Remove macro.
17133         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17134         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17135
17136 2009-11-23  Jim Meyering  <meyering@redhat.com>
17137
17138         test-update-copyright: don't hard-code /usr/bin/perl
17139         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17140         perl to print the current year.  Gilles Espinasse reported that
17141         the replaced use of perl was hard-coded as /usr/bin/perl.
17142
17143 2009-11-23  Bruno Haible  <bruno@clisp.org>
17144
17145         duplocale: Add support for glibc 2.3.x.
17146         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17147
17148 2009-11-22  Bruno Haible  <bruno@clisp.org>
17149
17150         vasnprintf: Tiny optimization.
17151         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17152         MacOS X.
17153
17154 2009-11-22  Bruno Haible  <bruno@clisp.org>
17155
17156         Tests for module 'duplocale'.
17157         * modules/duplocale-tests: New file.
17158         * tests/test-duplocale.c: New file.
17159
17160         New module 'duplocale'.
17161         * m4/duplocale.m4: New file.
17162         * lib/locale.in.h (duplocale): New declaration.
17163         * lib/duplocale.c: New file.
17164         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17165         gl_LOCALE_H_DEFAULTS): New macros.
17166         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17167         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17168         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17169         REPLACE_DUPLOCALE.
17170         * modules/duplocale: New file.
17171         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17172
17173 2009-11-22  Bruno Haible  <bruno@clisp.org>
17174
17175         * modules/locale-tests (configure.ac): Test for newlocale function.
17176         * tests/test-locale.c: When the system has extended locale functions,
17177         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17178
17179         locale: Make locale_t available when possible.
17180         * lib/locale.in.h: Include <xlocale.h> when it exists.
17181         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17182         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17183         * modules/locale (Depends-on): Add extensions.
17184         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17185         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17186
17187 2009-11-22  Bruno Haible  <bruno@clisp.org>
17188
17189         Add comments.
17190         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17191         invocation.
17192         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17193         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17194         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17195
17196 2009-11-22  Bruno Haible  <bruno@clisp.org>
17197
17198         error: account for the possibility of freopen (stdout).
17199         * lib/error.c: Include <unistd.h>.
17200         (flush_stdout): New function, extracted from error and error_at_line.
17201         Determine stdout's fd dynamically.
17202         (error, error_at_line): Invoke flush_stdout.
17203         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17204         * modules/error (Depends-on): Add unistd.
17205
17206 2009-11-22  Bruno Haible  <bruno@clisp.org>
17207
17208         diffseq: Add comment.
17209         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17210
17211 2009-11-22  Jim Meyering  <meyering@redhat.com>
17212
17213         c-stack: avoid defining an unused static function
17214         * lib/c-stack.c (find_stack_direction): Do not define this function
17215         when it will not be used.
17216
17217         diffseq: avoid spurious gcc warnings
17218         * lib/diffseq.h (IF_LINT2): Define.
17219         (compareseq): Use it to initialize two members of "part".
17220         This avoids two used-uninitialized warnings.
17221
17222 2009-11-21  Jim Meyering  <meyering@redhat.com>
17223
17224         c-stack: avoid "ignoring return value of `write'" warning
17225         * lib/c-stack.c: Include "ignore-value.h".
17226         (die): Explicitly ignore each write return value.
17227         * modules/c-stack (Depends-on): Add ignore-value.
17228
17229 2009-11-21  Bruno Haible  <bruno@clisp.org>
17230
17231         diffseq: reduce scope of variable 'best'.
17232         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17233         variable, earlier used for two different purposes.
17234
17235 2009-11-21  Jim Meyering  <meyering@redhat.com>
17236
17237         diffseq: remove useless assignment to "best"
17238         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17239         assignment.  At that point "best" is already guaranteed to be zero.
17240
17241 2009-11-20  Eric Blake  <ebb9@byu.net>
17242
17243         build: mention ftp redirector in release announcements
17244         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17245         values that used to come from cfg.mk; mention FTP redirect URL.
17246         * build-aux/announce-gen: Mention the mirror list.
17247         Suggested by Karl Berry.
17248
17249         nanosleep: improve port to mingw
17250         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17252         LIB_NANOSLEEP, but only when needed.
17253         * modules/select (Link): Document LIBSOCKET.
17254         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17255         enough.
17256
17257         nanosleep: work around cygwin bug
17258         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17259         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17260         bug.
17261         (getnow): Delete, not needed.
17262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17263         LIB_CLOCK_GETTIME.
17264         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17265         clock-time, gettime.
17266         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17267         bug.
17268         * modules/nanosleep-tests: New test.
17269         * tests/test-nanosleep.c: New file.
17270
17271         sleep: work around cygwin bug
17272         * lib/sleep.c (rpl_sleep): Work around the bug.
17273         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17274         (gl_PREREQ_SLEEP): Delete unused macro.
17275         * modules/sleep (Depends-on): Add verify.
17276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17277         * modules/unistd (Makefile.am): Substitute witness.
17278         * lib/unistd.in.h (sleep): Update prototype.
17279         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17280         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17281         * modules/sleep-tests (Depends-on): Check for alarm.
17282
17283 2009-11-20  Jim Meyering  <meyering@redhat.com>
17284
17285         maint.mk: improve sc_prohibit_magic_number_exit
17286         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17287         so it does not match uses like System.exit(1).
17288         Add comments showing how to correct all offenders.
17289
17290 2009-11-19  Eric Blake  <ebb9@byu.net>
17291
17292         xalloc-die-tests: add missing library
17293         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17294
17295         test-xvasprintf: silence compiler warnings
17296         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17297         empty string from gcc.
17298
17299 2009-11-19  Jim Meyering  <meyering@redhat.com>
17300
17301         xfreopen: new module, from coreutils
17302         * modules/xfreopen: New module.
17303         * lib/xfreopen.c: New file.
17304         * lib/xfreopen.h: New file.
17305         * MODULES.html.sh (File stream based Input/Output"): Add it.
17306
17307 2009-11-19  Eric Blake  <ebb9@byu.net>
17308
17309         manywarnings: depend on warnings
17310         * modules/manywarnings (Depends-on): Add warnings.
17311
17312         build: avoid compiler warnings
17313         * lib/select.c (rpl_select): Delete unused variable.
17314         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17315
17316 2009-11-18  Eric Blake  <ebb9@byu.net>
17317
17318         tests: avoid false negative with --with-packager
17319         * tests/test-version-etc.sh: Discard packager information.
17320         * tests/test-argp-version-etc-1.sh: Likewise.
17321         Reported by Mike Frysinger.
17322
17323         utimens: fix regression on Solaris
17324         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17325         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17326         can only change fd timestamps via futimesat.  Instead, use an
17327         additional witness macro to avoid BSD bug.
17328         Reported by Jim Meyering.
17329
17330 2009-11-17  Eric Blake  <ebb9@byu.net>
17331
17332         usleep: use it to simplify tests
17333         * modules/stat-time-tests (Depends-on): Add usleep.
17334         (configure.ac): Drop usleep check.
17335         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17336         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17337         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17338         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17339         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17340         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17341         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17342         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17343         Likewise.
17344         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17345         * tests/test-lchown.h (nap): Likewise.
17346         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17347         * tests/test-stat-time.c (nap): Likewise.
17348         * tests/test-utimens-common.h (nap): Update comments.
17349
17350         usleep: new module
17351         * modules/usleep: New file.
17352         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17353         * lib/usleep.c (usleep): Likewise.
17354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17355         * modules/unistd (Makefile.am): Substitute witnesses.
17356         * lib/unistd.in.h (usleep): Add declaration.
17357         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17358         * MODULES.html.sh (Date and time): Likewise.
17359         * modules/usleep-tests (Depends-on): New test.
17360         * tests/test-usleep.c: New file.
17361
17362         chown: work around OpenBSD bug
17363         * lib/chown.c (rpl_chown): Work around the bug.
17364         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17365         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17366         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17367         * modules/chown (Depends-on): Add stdbool.
17368         * modules/lchown (Depends-on): Likewise.
17369         * doc/posix-functions/chown.texi (chown): Document the bug.
17370         * doc/posix-functions/lchown.texi (lchown): Likewise.
17371         * tests/test-lchown.h (test_chown): Relax test.
17372
17373         mkstemp: avoid conflict with C++ keyword template
17374         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17375         * lib/mkostemp.c (mkostemp): Likewise.
17376         * lib/mkostemps.c (mkostemps): Likewise.
17377         * lib/mkstemp.c (mkstemp): Likewise.
17378         * lib/mkstemps.c (mkstemps): Likewise.
17379
17380         xalloc-die-tests: optimize
17381         * tests/test-xalloc-die.sh: Reduce number of processes.
17382
17383 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17384
17385         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17386         patch from ludo@gnu.org (Ludovic Courtès).
17387
17388 2009-11-17  Jim Meyering  <meyering@redhat.com>
17389
17390         version-etc: use proper license string
17391         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17392         * modules/version-etc-fsf: Likewise.
17393
17394 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17395
17396         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17397         printed to stdout.  Deal with EOL differences.
17398
17399 2009-11-17  Eric Blake  <ebb9@byu.net>
17400
17401         unsetenv: work around Solaris bug
17402         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17403         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17404         Reported by Jim Meyering.
17405
17406         vasnprintf: avoid compiler warnings
17407         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17408         variables.
17409         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17410
17411 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17412
17413         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17414         settings since xalloc-die is no longer the self test,
17415         xalloc-die.sh is.
17416
17417 2009-11-17  Jim Meyering  <meyering@redhat.com>
17418
17419         test-xalloc-die.sh: make the code agree with the commit log
17420         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17421         at the end, just in case you happen to have a test-xalloc-die
17422         program in some other PATH directory.
17423
17424         test-xalloc-die.sh: fix a portability bug
17425         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17426         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17427         Otherwise, argv[0] (as often seen in diagnostics) would be too
17428         system-dependent, sometimes with, and sometimes without the leading "./".
17429
17430         version-etc-fsf: relax license to LGPLv3+
17431         * modules/version-etc-fsf (License): Relax license.
17432
17433 2009-11-16  Eric Blake  <ebb9@byu.net>
17434
17435         xalloc-die-tests: avoid printing null pointer
17436         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17437         shell script.
17438         * tests/test-xalloc-die.c (program_name): Declare.
17439         * tests/test-xalloc-die.sh (tmpfiles): New file.
17440
17441         setenv, unsetenv: work around various bugs
17442         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17443         (setenv) [HAVE_SETENV]: Work around bugs.
17444         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17445         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17446         for bugs.
17447         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17448         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17450         * modules/stdlib (Makefile.am): Update substitutions.
17451         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17452         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17453         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17454         * modules/setenv-tests: New test.
17455         * modules/unsetenv-tests: Likewise.
17456         * tests/test-setenv.c: New file.
17457         * tests/test-unsetenv.c: Likewise.
17458
17459 2009-11-16  Jim Meyering  <meyering@redhat.com>
17460
17461         version-etc: relax license to LGPLv3+
17462         * modules/version-etc (License): Relax license.
17463
17464         better AC_REQUIRE expanded-before-required-warning avoidance
17465         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17466         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17467         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17468         which is no longer needed.
17469
17470 2009-11-16  Eric Blake  <ebb9@byu.net>
17471
17472         test-freading: clean up temporary file
17473         * tests/test-freading.c (main): Remove file on success, and use
17474         ASSERT more liberally.
17475         Reported by Jim Meyering.
17476
17477 2009-11-16  Jim Meyering  <meyering@redhat.com>
17478
17479         avoid new AC_REQUIRE expanded-before-required warnings
17480         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
17481         merely using it.
17482         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
17483         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
17484
17485 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17486
17487         * tests/test-xalloc-die.c: New file.
17488         * modules/xalloc-die-tests: New file.
17489         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
17490         XFAIL_TESTS so it can be appended by modules.
17491
17492 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17493
17494         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
17495         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
17496
17497 2009-11-14  Eric Blake  <ebb9@byu.net>
17498
17499         fnmatch: avoid compiler warning
17500         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
17501         to silence compiler warning about mismatch signedness in ?:.
17502         Reported by Robert Millan.
17503
17504         intprops: add double-inclusion guard
17505         * lib/intprops.h: Allow idempotent includes.
17506         Suggested by Bruce Korb.
17507
17508         openat: detect Solaris fchownat bug
17509         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17510         penalizing glibc chownat when only lchownat is broken.
17511         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17512         trailing slash bugs.
17513         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17514         * modules/openat-tests (Files): Include more files.
17515         (Depends-on): Add mgetgroups, sleep, stat-time.
17516         (configure.ac): Add additional checks.
17517         (Makefile.am): Build new test.
17518         * tests/test-fchownat.c: New file.
17519
17520         lchown: detect Solaris and FreeBSD bug
17521         * lib/lchown.c (rpl_lchown): Work around bug.
17522         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17524         * modules/unistd (Makefile.am): Populate it.
17525         * lib/unistd.in.h (lchown): Update declaration.
17526         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17527         * modules/lchown-tests: New file.
17528         * tests/test-lchown.h (test_lchown): Likewise.
17529         * tests/test-lchown.c (main): Likewise.
17530
17531         chown: detect Solaris and FreeBSD bug
17532         * lib/chown.c (rpl_chown): Work around bug.
17533         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17534         (gl_PREREQ_CHOWN): Delete.
17535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17536         * modules/unistd (Makefile.am): Populate it.
17537         * lib/unistd.in.h (chown): Update declaration.
17538         * lib/lchown.c (chown): Update client.
17539         * modules/lchown (Depends-on): Add lstat.
17540         * doc/posix-functions/chown.texi (chown): Document the bug.
17541         * doc/posix-functions/getgroups.texi (getgroups): Document
17542         getgroups pitfall.
17543         * modules/chown-tests: New file.
17544         * tests/test-chown.h (test_chown): Likewise.
17545         * tests/test-chown.c (main): Likewise.
17546
17547 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17548
17549         gnulib-tool: correctly detect absence of m4 directories
17550         * gnulib-tool: Avoid extra newline on data passed to wc -l.
17551
17552 2009-11-14  Jim Meyering  <meyering@redhat.com>
17553
17554         maint.mk: Prohibit inclusion of "xalloc.h" without use.
17555         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17556
17557 2009-11-14  John W. Eaton  <jwe@gnu.org>
17558
17559         strftime.h: wrap funtion declaration in extern "C" block
17560         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
17561
17562 2009-11-13  Eric Blake  <ebb9@byu.net>
17563
17564         getgroups: avoid compiler warning
17565         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
17566
17567         getgroups: work around FreeBSD bug
17568         * lib/getgroups.c (rpl_getgroups): Work around the bug.
17569         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
17570         * doc/posix-functions/getgroups.texi (getgroups): Document it.
17571         * tests/test-getgroups.c (main): Fix buffer overrun.
17572
17573         getgroups: avoid compilation failure
17574         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
17575         * modules/getgroups (Depends-on): Add stdint.
17576
17577 2009-11-13  Jim Meyering  <meyering@redhat.com>
17578
17579         test-getgroups: avoid compilation failure
17580         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
17581
17582 2009-11-13  Eric Blake  <ebb9@byu.net>
17583
17584         mgetgroups: new module, taken from coreutils
17585         * modules/mgetgroups: New file.
17586         * lib/mgetgroups.h: Likewise.
17587         * lib/mgetgroups.c (mgetgroups): Likewise.
17588         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
17589         * MODULES.html.sh (Users and groups): Mention it.
17590
17591         getgroups: don't expose GETGROUPS_T to user
17592         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
17593         an element at a time if GETGROUPS_T is wrong size.
17594         * lib/getugroups.h (getugroups): Change signature.
17595         * lib/unistd.in.h (getgroups): Likewise.
17596         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
17597         signature needs fixing.
17598         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
17599         AC_TYPE_GETGROUPS.
17600         * modules/group-member (Depends-on): Add getgroups.
17601         * lib/group-member.c (group_info, get_group_info): Use gid_t.
17602         (group_member): Rely on getgroups replacement.
17603         * lib/getugroups.c (getugroups): Use gid_t.
17604         * tests/test-getgroups.c (main): Likewise.
17605         * NEWS: Mention the signature change.
17606         * doc/posix-functions/getgroups.texi (getgroups): Mention the
17607         problem with signature.
17608         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
17609         GETGROUPS_T is still useful for setgroups.
17610
17611         getgroups, getugroups: provide stubs for mingw
17612         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
17613         * lib/getugroups.c (getugroups): Likewise.
17614         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
17615         function.  Modernize replacement scheme.
17616         (gl_PREREQ_GETGROUPS): Delete.
17617         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
17618         * modules/getgroups (configure.ac): Declare witness.
17619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17620         * modules/unistd (Depends-on): Substitute witness.
17621         * lib/unistd.in.h (getgroups): Declare replacement.
17622
17623         getgroups: avoid calling exit
17624         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
17625         drop xalloc.
17626         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
17627         dependencies.
17628         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
17629         exiting, in the rare case of malloc failure.
17630
17631         getgroups: fix logic error
17632         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
17633         has more than 20 groups.
17634         * modules/getgroups-tests: New test.
17635         * tests/test-getgroups.c: New file.
17636
17637 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17638
17639         * tests/test-base64.c: Improve.
17640
17641 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17642
17643         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
17644         Blake <ebb9@byu.net>.
17645
17646 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17647
17648         * tests/test-xvasprintf.c: Add %s%s related checks.
17649
17650 2009-11-12  Eric Blake  <ebb9@byu.net>
17651
17652         version-etc: match standards.texi style
17653         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
17654         and use <> only for URLs.
17655
17656 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
17657
17658         fts: do not fail on a submount during traversal
17659         * lib/fts.c (fts_build): Read the stat info again after opening
17660         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
17661         Original report at http://bugzilla.redhat.com/501848.
17662
17663 2009-11-12  Jim Meyering  <meyering@redhat.com>
17664
17665         bootstrap: sync from coreutils
17666         * build-aux/bootstrap (bootstrap_epilogue): New function.
17667         Use git_modules_config in one more place.  This make bootstrap's
17668         --gnulib-srcdir option more useful for testing.
17669
17670         bootstrap: generalize autoheader check
17671         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
17672         AC_CONFIG_HEADERS.
17673
17674 2009-11-11  Eric Blake  <ebb9@byu.net>
17675
17676         mkfifoat: use new modules for Solaris and BSD bugs
17677         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
17678         * lib/mkfifoat.c (mknodat): Split...
17679         * lib/mknodat.c (mknodat): ...into new file.
17680         * modules/mkfifoat (Files): Ship new file.
17681         (Depends-on): Add mkfifo, mknod.
17682         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
17683         (Depends-on): Add symlink.
17684         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
17685         redundant with test_mkfifo.h.
17686         (do_mkfifoat, do_mknodat): New helpers.
17687
17688         mknod: new module
17689         * modules/mknod: New file.
17690         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17691         * lib/mknod.c (mknod): Likewise.
17692         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17693         defaults.
17694         * modules/sys_stat (Makefile.am): Substitute them.
17695         * lib/sys_stat.in.h (mknod): Declare replacement.
17696         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17697         Document it.
17698         * doc/posix-functions/mknod.texi (mknod): Likewise.
17699         * modules/mknod-tests: New test.
17700         * tests/test-mknod.c: Likewise.
17701
17702         mkfifo: new module
17703         * modules/mkfifo: New file.
17704         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17705         * lib/mkfifo.c (mkfifo): Likewise.
17706         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17707         defaults.
17708         * modules/sys_stat (Makefile.am): Substitute them.
17709         * lib/sys_stat.in.h (mkfifo): Declare replacement.
17710         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17711         Document it.
17712         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
17713         * modules/mkfifo-tests: New test.
17714         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
17715         from test-mkfifoat.c.
17716         * tests/test-mkfifo.c: New file.
17717
17718         readlink: detect FreeBSD bug
17719         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
17720         slash on symlink.
17721         * doc/posix-functions/readlink.texi (readlink): Document the bug.
17722         * tests/test-readlink.h (test_readlink): Enhance test.
17723
17724         symlink: detect FreeBSD bug
17725         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
17726         slash on symlink.
17727         * doc/posix-functions/symlink.texi (symlink): Document the bug.
17728         * tests/test-symlink.h (test_symlink): Enhance test.
17729
17730 2009-11-10  Eric Blake  <ebb9@byu.net>
17731
17732         link: detect FreeBSD bug
17733         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
17734         symlink.
17735         * doc/posix-functions/link.texi (link): Document the bug.
17736         * tests/test-link.h (test_link): Enhance test.
17737         * tests/test-linkat.c (main): Update caller.
17738
17739         unlink, remove: detect FreeBSD bug
17740         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
17741         slash on symlink.
17742         * doc/posix-functions/unlink.texi (unlink): Document the bug.
17743         * doc/posix-functions/remove.texi (remove): Likewise.
17744         * tests/test-unlink.h (test_unlink): Enhance test.
17745         * tests/test-remove.c (main): Likewise.
17746
17747 2009-11-09  Eric Blake  <ebb9@byu.net>
17748
17749         rename: detect FreeBSD bug
17750         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
17751         slash on symlink.
17752         * modules/renameat-tests (Depends-on): Add filenamecat.
17753         * tests/test-rename.h (test_rename): Allow one more errno.
17754         * tests/test-renameat.c (main): Likewise.
17755         * doc/posix-functions/rename.texi (rename): Document the bug.
17756
17757         open: detect FreeBSD bug
17758         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
17759         symlink.
17760         * doc/posix-functions/open.texi (open): Document the bug.
17761         * doc/posix-functions/utimes.texi (utimes): Likewise.
17762         * tests/test-open.h (test_open): Add parameters, and test symlink
17763         handling.
17764         * tests/test-open.c (main): Adjust caller.
17765         * tests/test-fcntl-safer.c (main): Likewise.
17766         * modules/open-tests (Depends-on): Add stdbool, symlink.
17767         * modules/fcntl-safer-tests (Depends-on): Likewise.
17768         * tests/test-openat.c (main): Add test-open tests.
17769
17770         stat: detect FreeBSD bug
17771         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
17772         symlink.
17773         * doc/posix-functions/stat.texi (stat): Document the bug.
17774         * tests/test-stat.h (test_stat_func): Add argument.
17775         * tests/test-stat.c (main): Adjust caller.
17776         * tests/test-fstatat.c (main): Likewise.
17777         * modules/stat-tests (Depends-on): Add stdbool, symlink.
17778         Reported by Jim Meyering.
17779
17780 2009-11-09  James Youngman  <jay@gnu.org>
17781
17782         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
17783         * lib/strftime.c: Correct placement of #include "ignore-value.h".
17784
17785 2009-11-08  Jim Meyering  <meyering@redhat.com>
17786
17787         utimens: remove invalid futimesat call
17788         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
17789         It used the file descriptor of the target file as the DIR_FD
17790         parameter and NULL as the file name.  That caused failure with
17791         errno == EFAULT on FreeBSD-8.0-rc2
17792
17793 2009-11-07  Eric Blake  <ebb9@byu.net>
17794
17795         fflush, freadseek: use fseeko, not fseek
17796         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17797         (clear_ungetc_buffer): Avoid potential problems on large files.
17798         * lib/freadseek.c (freadseek): Likewise.
17799         * modules/freadseek (Depends-on): Add fseeko.
17800         * modules/fseek (configure.ac): Set a witness.
17801         * tests/test-fflush.c (main): Use fseeko.
17802         * tests/test-fpurge.c (fseek): Disable link warning.
17803         * tests/test-freadable.c (fseek): Likewise.
17804         * tests/test-freading.c (fseek): Likewise.
17805         * tests/test-fseeko.c (fseek): Likewise.
17806         * tests/test-ftell.c (fseek): Likewise.
17807         * tests/test-ftello.c (fseek): Likewise.
17808         * tests/test-fwritable.c (fseek): Likewise.
17809         * tests/test-fwriting.c (fseek): Likewise.
17810
17811 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17812
17813         * modules/memchr (Depends-on): Drop getpagesize dependency.
17814
17815 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17816
17817         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
17818         Reported by Ludovic Courtès.
17819         * build-aux/pmccabe2html: Improve example usage.
17820         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
17821
17822 2009-11-06  Jim Meyering  <meyering@redhat.com>
17823
17824         do-release-commit-and-tag: New module.
17825         Automate the release-commit and tag process.
17826         * build-aux/do-release-commit-and-tag: New script, from coreutils.
17827         * modules/do-release-commit-and-tag: New file.
17828         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17829
17830 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17831
17832         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
17833         because test-select.c uses inet_pton.
17834
17835 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17836
17837         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
17838         GETADDRINFO_LIB.  Bump serial number.
17839         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
17840         Suggested by Eric Blake <ebb9@byu.net>.
17841
17842 2009-11-05  Eric Blake  <ebb9@byu.net>
17843
17844         strtod: detect darwin bug
17845         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
17846         Reported by Leo Davis.
17847
17848         freopen-safer: new module
17849         * modules/freopen-safer: New module.
17850         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
17851         * lib/freopen-safer.c (freopen_safer): New file.
17852         * lib/stdio-safer.h (freopen_safer): New declaration.
17853         * lib/stdio--.h (freopen): New override.
17854         * MODULES.html.sh (File stream based Input/Output): Mention it.
17855         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
17856         freopen-safer module.
17857         * doc/posix-functions/stderr.texi (stderr): Likewise.
17858         * doc/posix-functions/stdin.texi (stdin): Likewise.
17859         * doc/posix-functions/stdout.texi (stdout): Likewise.
17860         * modules/freopen-safer-tests: New test.
17861         * tests/test-reopen-safer.c: New file.
17862
17863 2009-11-05  Jim Meyering  <meyering@redhat.com>
17864
17865         maint.mk: Prohibit inclusion of "close-stream.h" without use.
17866         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17867
17868 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17869
17870         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
17871
17872 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17873
17874         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
17875
17876 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17877
17878         Fix link error.
17879         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17880         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17881
17882 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17883
17884         * tests/test-func.c: Also test value of __func__.
17885
17886 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17887
17888         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
17889         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
17890
17891 2009-11-05  Bruno Haible  <bruno@clisp.org>
17892
17893         Fix link error.
17894         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17895         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17896         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
17897
17898 2009-11-05  Bruno Haible  <bruno@clisp.org>
17899
17900         Tests for module 'inet_pton'.
17901         * modules/inet_pton-tests: New file.
17902         * tests/test-inet_pton.c: New file.
17903
17904 2009-11-05  Bruno Haible  <bruno@clisp.org>
17905
17906         Tests for module 'inet_ntop'.
17907         * modules/inet_ntop-tests: New file.
17908         * tests/test-inet_ntop.c: New file.
17909
17910 2009-11-04  Eric Blake  <ebb9@byu.net>
17911
17912         stdlib-safer: wrap all mkstemp variants
17913         * modules/mkostemp (configure.ac): Set witness.
17914         * modules/mkostemps (configure.ac): Likewise.
17915         * modules/mkstemps (configure.ac): Likewise.
17916         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
17917         (mkstemps_safer): Wrap more functions.
17918         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
17919         wrapping.
17920         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
17921         (mkstemps_safer): Implement the wrappers.
17922
17923         mkstemps, mkostemps: new modules
17924         * modules/mkostemps: New module.
17925         * modules/mkstemps: Likewise.
17926         * lib/mkostemps.c (mkostemps): New file.
17927         * lib/mkstemps.c (mkstemps): Likewise.
17928         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
17929         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
17930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
17931         * modules/stdlib (Makefile.am): Substitute them.
17932         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
17933         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
17934         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17935         * doc/gnulib.texi (Glibc stdlib.h): Include them.
17936         * MODULES.html.sh (File system functions): Mention them.
17937
17938         tempname: resync from glibc
17939         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
17940         same values for __GT_FILE as glibc.  Abort even when assertions
17941         are disabled.
17942         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
17943         match its value otherwise.  Allow idempotent inclusion.
17944         * lib/mkdtemp.c (mkdtemp): Adjust caller.
17945         * lib/mkostemp.c (mkostemp): Likewise.
17946         * lib/mkstemp.c (mkstemp): Likewise.
17947         * lib/tmpfile.c (tmpfile): Likewise.
17948         * NEWS: Document this.
17949
17950         utimens: fix use of futimens on older Linux
17951         * lib/utimens.c (fdutimens): Use updated, rather than original,
17952         timespec to avoid bug in older Linux kernel.
17953         Reported by Simon Josefsson.
17954
17955 2009-11-04  Bruno Haible  <bruno@clisp.org>
17956
17957         Make num_processors more flexible and consistent.
17958         * lib/nproc.h (enum nproc_query): New type.
17959         (num_processors): Add a 'query' argument.
17960         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
17961         (num_processors): Add a 'query' argument. Test the value of the
17962         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
17963         mingw, count the number of CPUs available for the current process.
17964         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
17965         Check for sched_getaffinity and sched_getaffinity_np.
17966         * modules/nproc (Depends-on): Add c-ctype, extensions.
17967         * NEWS: Mention the change.
17968
17969 2009-11-03  Bruno Haible  <bruno@clisp.org>
17970
17971         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
17972
17973 2009-11-03  Jim Meyering  <meyering@redhat.com>
17974
17975         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
17976         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
17977         if it is defined.
17978
17979 2009-11-02  Eric Blake  <ebb9@byu.net>
17980
17981         mktime, timegm: share common declaration
17982         * lib/mktime-internal.h: New file.
17983         * lib/mktime.c: Use it rather than open-coding a declaration.
17984         * lib/timegm.c: Likewise.
17985         * modules/mktime (Files): Ship it.
17986         * modules/timegm (Files): Likewise.
17987         Suggested by Bruno Haible.
17988
17989         test-update-copyright: update test to match script changes
17990         * tests/test-update-copyright.sh: Avoid hard-coding perl
17991         location.  Don't update *.bak created by earlier runs.
17992
17993 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17994             Simon Josefsson  <simon@josefsson.org>
17995             Bruno Haible  <bruno@clisp.org>
17996
17997         Fix link error on Solaris 8.
17998         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
17999         also in libnsl. Define also INET_PTON_LIB.
18000         * modules/inet_pton (Link): New section.
18001
18002 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18003             Bruno Haible  <bruno@clisp.org>
18004
18005         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18006         * modules/inet_ntop (Link): New section.
18007         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18008
18009 2009-11-02  Eric Blake  <ebb9@byu.net>
18010
18011         maint: avoid compiler warnings in m4 macros
18012         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18013         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18014
18015 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18016
18017         * m4/pmccabe2html.m4: Remove file.
18018         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18019         function.  Change maintainer.
18020         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18021         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18022         Courtès).
18023
18024 2009-10-31  Eric Blake  <ebb9@byu.net>
18025
18026         fseeko: fix m4 regression
18027         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18028         regression from 2009-10-27.
18029         Reported by Ralf Wildenhues.
18030
18031 2009-10-31  Jim Meyering  <meyering@redhat.com>
18032
18033         inttostr: aesthetics and improved (compile-time) safety
18034         Define inttype_is_signed rather than inttype_is_unsigned,
18035         since the sole use is via "#if inttype_is_signed".
18036         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18037         inttype_is_unsigned.
18038         * lib/offtostr.c (inttype_is_signed): Likewise.
18039         * lib/uinttostr.c (inttype_is_signed): Likewise.
18040         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18041         * lib/inttostr.c (inttostr): Use verify to cross-check the
18042         inttype_is_signed value and the signedness of the actual type.
18043         * modules/inttostr (Depends-on): Add verify.
18044
18045 2009-10-30  Eric Blake  <ebb9@byu.net>
18046
18047         build: avoid compiler warnings
18048         * lib/fchmodat.c (lchmod): Mark unused variables.
18049         * lib/getopt.c (_getopt_initialize): Likewise.
18050         * lib/mktime.c (__mktime_internal): Provide prototype.
18051         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18052         older gcc that do not understand #pragma GCC diagnostic.
18053         * lib/uinttostr.c (inttype_is_unsigned): Define.
18054         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18055
18056 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18057
18058         stat: fix compilation on AIX
18059         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18060         only see struct stat64.
18061
18062 2009-10-30  Eric Blake  <ebb9@byu.net>
18063
18064         exclude: make more robust
18065         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18066         rather than masking a coding bug.
18067         Suggested by Bruno Haible.
18068
18069 2009-10-30  Jim Meyering  <meyering@redhat.com>
18070
18071         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18072         Rather than putting #!/usr/bin/perl on the first line,
18073         start with a variant of what's recommended by "man perlrun" that
18074         invokes the first "perl" program from your shell's search path.
18075         * build-aux/gitlog-to-changelog: Replace #!... as above.
18076         Add a "Local Variables" perl mode setting.
18077         Prompted by a patch from Ludovic Courtès.
18078         Improved by Eric Blake.
18079         * build-aux/useless-if-before-free: Likewise.
18080         * build-aux/announce-gen: Likewise.
18081         * build-aux/update-copyright: Likewise.
18082
18083 2009-10-29  Eric Blake  <ebb9@byu.net>
18084
18085         filenamecat-lgpl: adjust clients
18086         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18087         filenamecat.
18088         * modules/renameat (Depends-on): Likewise.
18089
18090         filenamecat: split into filenamecat-lgpl
18091         * modules/filenamecat-lgpl: New module.
18092         * modules/filenamecat (Files): Move library-safe files into
18093         filenamecat-lgpl.
18094         (Depends-on): Add filenamecat-lgpl.
18095         (configure.ac): Declare witness.
18096         * lib/filenamecat.h (file_name_concat): Only declare when using
18097         GPL module.
18098         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18099         Move...
18100         * lib/filenamecat-lgpl.c: ...into new file.
18101         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18102         (gl_FILE_NAME_CONCAT): Use it.
18103         * MODULES.html.sh (File system functions): Mention new module.
18104
18105         argp: avoid memory leak
18106         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18107         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18108         base_name, since the latter malloc()s and can call exit().
18109         Leak introduced 2006-07-03.
18110
18111         dirname-lgpl: adjust clients that don't need full dirname
18112         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18113         * modules/filenamecat (Depends-on): Likewise.
18114         * modules/linkat (Depends-on): Likewise.
18115         * modules/mkancesdirs (Depends-on): Likewise.
18116         * modules/mkdir (Depends-on): Likewise.
18117         * modules/openat (Depends-on): Likewise.
18118         * modules/savewd (Depends-on): Likewise.
18119         * modules/rename (Depends-on): Likewise.
18120         (License): Relax license.
18121         * modules/mkdir-tests (Depends-on): Drop progname.
18122         (Makefile.am): Delete unneeded LDADD.
18123         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18124
18125         dirname: split into dirname-lgpl
18126         * modules/dirname-lgpl: New module.
18127         * modules/dirname (Files): Move library-safe files into
18128         dirname-lgpl.
18129         (Depends-on): Add dirname-lgpl.
18130         (configure.ac): Declare witness.
18131         * modules/double-slash-root (License): Relax license.
18132         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18133         module.
18134         * lib/dirname.c (dir_len, mdir_name): Move...
18135         * lib/dirname-lgpl.c: ...into new file.
18136         * lib/basename.c (last_component, base_len): Move...
18137         * lib/basename-lgpl.c: ...into new file.
18138         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18139         (gl_DIRNAME): Use it.
18140         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18141         Mention new module.
18142         * modules/dirname-tests (Depends-on): Add progname.
18143         * tests/test-dirname.c (program_name): Delete.
18144
18145         mkdir: make safe for libraries
18146         * modules/mkdir (Depends-on): Drop xalloc.
18147         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18148         exit.
18149
18150         tests: avoid some compiler warnings
18151         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18152         literals.
18153         * tests/test-memchr.c (main): Avoid type mismatch.
18154         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18155         * tests/test-base64.c (main): Likewise.
18156         * tests/test-getdelim.c (main): Likewise.
18157         * tests/test-gethostname.c (main): Likewise.
18158         * tests/test-getline.c (main): Likewise.
18159         * tests/test-netinet_in.c (main): Likewise.
18160         * tests/test-select.c (open_server_socket, main): Likewise.
18161         * tests/test-select-stdin.c (main): Likewise.
18162         * tests/test-sockets.c (main): Likewise.
18163         * tests/test-strsignal.c (main): Likewise.
18164         * tests/test-sys_select.c (main): Likewise.
18165         * tests/test-sys_socket.c (main): Likewise.
18166         * tests/test-u64.c (main): Likewise.
18167         * tests/test-xfprintf-posix.c (main): Likewise.
18168         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18169
18170         sockets: avoid compiler warning
18171         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18172
18173         maint: detect usage(1) and other suspicious exits
18174         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18175
18176 2009-10-29  Jim Meyering  <meyering@redhat.com>
18177
18178         timespec: long-to-int truncation could make timespec_cmp malfunction
18179         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18180         a multiple of 2^32 nanoseconds as no difference.
18181
18182 2009-10-28  Jim Meyering  <meyering@redhat.com>
18183
18184         fprintftime: wrap macro code argument in "do {...} while(0)"
18185         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18186         cpy macro must be a statement that can be followed by a semicolon.
18187         Now that the else clause contains a comment and is hence longer
18188         than one line, I require curly braces.  That in turn requires
18189         that we wrap this code block in the standard do...while(0).
18190
18191         fprintftime: remove stray semicolon from previous change
18192         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18193
18194         fprintftime: avoid a warning about ignored fwrite return value
18195         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18196         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18197         that is unsafe.
18198         * modules/fprintftime (Depends-on): Add ignore-value.
18199
18200         exclude: avoid an unwarranted warning
18201         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18202
18203 2009-10-27  Eric Blake  <ebb9@byu.net>
18204
18205         fseek: avoid compilation failure when fflush is replaced
18206         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18207         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18208         module is in use.
18209         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18210         module is not in use; since REPLACE_FSEEK worked otherwise.
18211         (GNULIB_FTELLO): Likewise for ftell.
18212         Reported by Ian Beckwith and others.
18213
18214 2009-10-27  Bruno Haible  <bruno@clisp.org>
18215
18216         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18217         Reported by Jim Meyering.
18218
18219 2009-10-27  Jim Meyering  <jim@meyering.net>
18220             Bruno Haible  <bruno@clisp.org>
18221
18222         Avoid warning despite dropping the return value of fwrite.
18223         * lib/unicodeio.c: Include ignore-value.h.
18224         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18225         * modules/unicodeio (Depends-on): Add ignore-value.
18226
18227 2009-10-26  Eric Blake  <ebb9@byu.net>
18228
18229         areadlinkat: fix fallback path
18230         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18231         pointer and zero.
18232
18233 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18234
18235         Use a better IO block size for modern systems
18236         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18237         * lib/md2.c: Likewise.
18238         * lib/md4.c: Likewise.
18239         * lib/md5.c: Likewise.
18240         * lib/sha1.c: Likewise.
18241         * lib/sha256.c: Likewise.
18242         * lib/sha512.c: Likewise.
18243
18244 2009-10-22  Eric Blake  <ebb9@byu.net>
18245
18246         tests: avoid several compiler warnings
18247         * tests/test-getcwd.c (main): Avoid buffer underflow.
18248         * tests/test-getdate.c (main): String literals are not safe with
18249         putenv, so use setenv.  Declare unused argument.
18250         * modules/getdate-tests (Depends-on): Add setenv.
18251         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18252         problems with string literals in char *.
18253         * tests/test-hash.c (main): Avoid shadowing declaration.
18254         (insert_new): Treat string literals as char const *.
18255         * tests/test-getopt.h (test_getopt): Likewise.
18256         (getopt_loop): Alter types to minimize casting elsewhere.
18257         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18258         (test_getopt_long_posix): Likewise.
18259         (do_getopt_long): Add wrapper to minimize casting.
18260         * tests/test-atexit.c (clear_temp_file): Use void.
18261         * tests/test-areadlink-with-size.c (main): Declare unused
18262         arguments.
18263         * tests/test-areadlink.c (main): Likewise.
18264         * tests/test-areadlinkat-with-size.c (main): Likewise.
18265         * tests/test-areadlinkat.c (main): Likewise.
18266         * tests/test-canonicalize-lgpl.c (main): Likewise.
18267         * tests/test-canonicalize.c (main): Likewise.
18268         * tests/test-dirent-safer.c (main): Likewise.
18269         * tests/test-dirname.c (main): Likewise.
18270         * tests/test-dup2.c (main): Likewise.
18271         * tests/test-fchdir.c (main): Likewise.
18272         * tests/test-fcntl-h.c (main): Likewise.
18273         * tests/test-fcntl-safer.c (main): Likewise.
18274         * tests/test-fdopendir.c (main): Likewise.
18275         * tests/test-fdutimensat.c (main): Likewise.
18276         * tests/test-fflush.c (main): Likewise.
18277         * tests/test-filenamecat.c (main): Likewise.
18278         * tests/test-filevercmp.c (main): Likewise.
18279         * tests/test-fopen-safer.c (main): Likewise.
18280         * tests/test-fopen.c (main): Likewise.
18281         * tests/test-fpending.c (main): Likewise.
18282         * tests/test-fpurge.c (main): Likewise.
18283         * tests/test-freading.c (main): Likewise.
18284         * tests/test-fstatat.c (main): Likewise.
18285         * tests/test-fsync.c (main): Likewise.
18286         * tests/test-futimens.c (main): Likewise.
18287         * tests/test-getndelim2.c (main): Likewise.
18288         * tests/test-gettimeofday.c (main): Likewise.
18289         * tests/test-getopt.c (main): Likewise.
18290         * tests/test-i-ring.c (main): Likewise.
18291         * tests/test-inttypes.c (main): Likewise.
18292         * tests/test-link.c (main): Likewise.
18293         * tests/test-lstat.c (main): Likewise.
18294         * tests/test-math.c (main): Likewise.
18295         * tests/test-md5.c (main): Likewise.
18296         * tests/test-memchr2.c (main): Likewise.
18297         * tests/test-memrchr.c (main): Likewise.
18298         * tests/test-mkdir.c (main): Likewise.
18299         * tests/test-mkdirat.c (main): Likewise.
18300         * tests/test-mkfifoat.c (main): Likewise.
18301         * tests/test-open.c (main): Likewise.
18302         * tests/test-openat-safer.c (main): Likewise.
18303         * tests/test-openat.c (main): Likewise.
18304         * tests/test-quotearg.c (main): Likewise.
18305         * tests/test-rawmemchr.c (main): Likewise.
18306         * tests/test-readlink.c (main): Likewise.
18307         * tests/test-remove.c (main): Likewise.
18308         * tests/test-rename.c (main): Likewise.
18309         * tests/test-renameat.c (main): Likewise.
18310         * tests/test-rmdir.c (main): Likewise.
18311         * tests/test-sha1.c (main): Likewise.
18312         * tests/test-signal.c (main): Likewise.
18313         * tests/test-sigaction.c (main): Likewise.
18314         * tests/test-stat.c (main): Likewise.
18315         * tests/test-stat-time.c (main): Likewise.
18316         * tests/test-stddef.c (main): Likewise.
18317         * tests/test-stdint.c (main): Likewise.
18318         * tests/test-stdio.c (main): Likewise.
18319         * tests/test-stdlib.c (main): Likewise.
18320         * tests/test-strchrnul.c (main): Likewise.
18321         * tests/test-strerror.c (main): Likewise.
18322         * tests/test-string.c (main): Likewise.
18323         * tests/test-strtod.c (main): Likewise.
18324         * tests/test-strverscmp.c (main): Likewise.
18325         * tests/test-symlink.c (main): Likewise.
18326         * tests/test-symlinkat.c (main): Likewise.
18327         * tests/test-sys_stat.c (main): Likewise.
18328         * tests/test-sys_time.c (main): Likewise.
18329         * tests/test-time.c (main): Likewise.
18330         * tests/test-unistd.c (main): Likewise.
18331         * tests/test-unlink.c (main): Likewise.
18332         * tests/test-unlinkat.c (main): Likewise.
18333         * tests/test-utimens.c (main): Likewise.
18334         * tests/test-utimensat.c (main): Likewise.
18335         * tests/test-version-etc.c (main): Likewise.
18336         * tests/test-wchar.c (main): Likewise.
18337         * tests/test-wctype.c (main): Likewise.
18338         * tests/test-xprintf-posix.c (main): Likewise.
18339         * tests/test-posixtm.c (main): Likewise.
18340         (STREQ): Delete unused macro.
18341         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18342         shadowed variables.
18343         * tests/test-memchr.c (main): Likewise.
18344
18345 2009-10-21  Eric Blake  <ebb9@byu.net>
18346
18347         areadlinkat: avoid failure on older glibc
18348         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18349         rather than mis-comparing 0 against FUNC_RESULT of char*.
18350
18351 2009-10-21  Bruno Haible  <bruno@clisp.org>
18352
18353         * modules/stpncpy (License): Relicense under LGPLv2+.
18354         Reported by David Lutterkort <lutter@redhat.com>.
18355
18356 2009-10-20  Eric Blake  <ebb9@byu.net>
18357
18358         utimensat: work around Solaris 9 bug
18359         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18360         has trailing slash bugs.
18361         * tests/test-lutimens.h (test_lutimens): Enhance test.
18362         * tests/test-utimens.h (test_utimens): Likewise.
18363         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18364         * doc/posix-functions/utimes.texi (utimes): Likewise.
18365         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18366         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18367         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18368         * doc/posix-functions/futimens.texi (futimens): Likewise.
18369
18370         fdutimensat: new module
18371         * modules/fdutimensat: New file.
18372         * lib/fdutimensat.c (fdutimensat): Likewise.
18373         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18374         * MODULES.html.sh (File system functions): Mention module.
18375         * modules/fdutimensat-tests: New test.
18376         * tests/test-fdutimensat.c: Likewise.
18377
18378         doc: regenerate INSTALL
18379         * doc/INSTALL: Reflect recent autoconf update.
18380         * doc/INSTALL.ISO: Likewise.
18381         * doc/INSTALL.UTF-8: Likewise.
18382
18383 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18384
18385         acl: warn if ACL support is not detected
18386         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18387
18388 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18389
18390         * lib/nproc.h: Add extern "C" block for C++.
18391
18392 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18393             Bruno Haible  <bruno@clisp.org>
18394
18395         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18396         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18397         * doc/posix-functions/isalpha.texi: Likewise.
18398         * doc/posix-functions/isblank.texi: Likewise.
18399         * doc/posix-functions/iscntrl.texi: Likewise.
18400         * doc/posix-functions/isdigit.texi: Likewise.
18401         * doc/posix-functions/isgraph.texi: Likewise.
18402         * doc/posix-functions/islower.texi: Likewise.
18403         * doc/posix-functions/isprint.texi: Likewise.
18404         * doc/posix-functions/ispunct.texi: Likewise.
18405         * doc/posix-functions/isspace.texi: Likewise.
18406         * doc/posix-functions/isupper.texi: Likewise.
18407         * doc/posix-functions/isxdigit.texi: Likewise.
18408
18409 2009-10-18  Bruno Haible  <bruno@clisp.org>
18410
18411         Tests for module 'isblank'.
18412         * modules/isblank-tests: New file.
18413         * tests/test-isblank.c: New file.
18414
18415         New module 'isblank'.
18416         * lib/isblank.c: New file.
18417         * m4/isblank.m4: New file.
18418         * modules/isblank: New file.
18419         * doc/posix-functions/isblank.texi: Mention the new module.
18420
18421 2009-10-18  Bruno Haible  <bruno@clisp.org>
18422
18423         New module 'ctype'.
18424         * lib/ctype.in.h: New file.
18425         * m4/ctype.m4: New file.
18426         * modules/ctype: New file.
18427         * doc/posix-headers/ctype.texi: Mention the new module.
18428
18429 2009-10-18  Jim Meyering  <meyering@redhat.com>
18430
18431         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18432         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18433         right after its initialization, rather than farther down.
18434         Keeping these in close proximity makes it easier to ensure
18435         that each such variable is initialized.  E.g.,
18436
18437             LIB_CLOCK_GETTIME=
18438             AC_SUBST([LIB_CLOCK_GETTIME])
18439
18440         This change also increments these serial numbers.
18441         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18442         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18444
18445 2009-10-18  Bruno Haible  <bruno@clisp.org>
18446
18447         Don't let environment variables perturb build.
18448         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18449         (gl_PREREQ_GETHRXTIME): ... not here.
18450
18451 2009-10-18  Bruno Haible  <bruno@clisp.org>
18452
18453         Avoid symlink attack in localcharset module.
18454         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18455         (O_NOFOLLOW): Define fallback.
18456         (get_charset_aliases): Don't open the file if it is a symbolic link.
18457         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18458         gl_FCNTL_H.
18459         (gl_FCNTL_H): Require it.
18460         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18461         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18462         Reported by Fergal Glynn <fglynn@veracode.com>.
18463
18464 2009-10-18  Bruno Haible  <bruno@clisp.org>
18465
18466         Implement nproc for mingw.
18467         * lib/nproc.c: Include <windows.h>
18468         (num_processors): On native Windows platforms, try GetSystemInfo.
18469
18470 2009-10-18  Bruno Haible  <bruno@clisp.org>
18471
18472         Implement nproc for IRIX.
18473         * lib/nproc.c: Include <sys/sysmp.h>.
18474         (num_processors): On IRIX systems, try sysmp.
18475         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18476
18477 2009-10-18  Bruno Haible  <bruno@clisp.org>
18478
18479         Implement nproc for HP-UX.
18480         * lib/nproc.c: Include <sys/pstat.h>
18481         (num_processors): On HP-UX systems, try pstat_getdynamic.
18482         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
18483         pstat_getdynamic.
18484
18485 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
18486             Bruno Haible  <bruno@clisp.org>
18487
18488         Implement nproc for NetBSD, OpenBSD.
18489         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
18490         (ARRAY_SIZE): New macro.
18491         (num_processors): On BSD systems, try sysctl of HW_NCPU.
18492         * m4/nproc.m4: New file.
18493         * modules/nproc (Files): Add m4/nproc.m4.
18494         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
18495         (Makefile.am): Instead, augment lib_SOURCES.
18496
18497 2009-10-18  Bruno Haible  <bruno@clisp.org>
18498
18499         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
18500         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
18501         sys/param.h.
18502
18503 2009-10-16  Eric Blake  <ebb9@byu.net>
18504
18505         utimensat: new module
18506         * modules/utimensat: New file.
18507         * lib/utimensat.c (utimensat): Likewise.
18508         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18509         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18510         so we can work around Linux bugs.
18511         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18512         * modules/sys_stat (Makefile.am): Substitute them.
18513         * lib/sys_stat.in.h (utimensat): Declare it.
18514         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18515         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18516         * modules/utimensat-tests: New test.
18517         * tests/test-utimensat.c: Likewise.
18518
18519         utimens: let lutimens work on non-symlinks
18520         * lib/utimens.c (lutimens): Fall back to utimens rather than
18521         failing with ENOSYS, when file is not a symlink.
18522         (utimens): Reduce redirection.
18523         * tests/test-lutimens.h (test_lutimens): Update test to cover
18524         non-symlinks.
18525         * tests/test-utimens.h (test_utimens): Update test to cover
18526         symlinks.
18527         * tests/test-utimens.c (main): Update caller.
18528
18529         utimens: cache whether utimensat syscall works
18530         * lib/utimens.c (utimensat_works_really): New cache variable.
18531         (fdutimens, lutimens): Use it to avoid failing syscall.
18532
18533         test-stat-time, test-utimens: improve portability
18534         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18535         ext4 on alpha, and for cygwin.
18536         * tests/test-utimens-common.h: New file.
18537         (nap): Factor delays into single function.
18538         * tests/test-lutimens.h (test_lutimens): Use new header.
18539         * tests/test-futimens.h (test_futimens): Likewise.
18540         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18541         timestamps to occur from same machine, as was done previously for
18542         test_utimens.
18543         * modules/utimens-tests (Files): Ship new file.
18544         * modules/futimens-tests (Files): Likewise.
18545         Reported in part by Jim Meyering.
18546
18547         sys_stat: sort replacement declarations
18548         * lib/sys_stat.in.h: Sort declarations.
18549         * lib/futimens.c (futimens): Fix typo.
18550
18551 2009-10-15  Jim Meyering  <meyering@redhat.com>
18552
18553         don't let environment settings perturb build
18554         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
18555         could cause a configure-time and/or build-time malfunction.
18556         Typically, a configure-time function-in-library test is performed
18557         via code like this:
18558
18559           LIB_VAR=
18560           AC_SUBST([LIB_VAR])
18561           prefix_saved_LIBS=$LIBS
18562             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
18563                        [test "$ac_cv_search_FUNC" = "none required" ||
18564                         LIB_VAR=$ac_cv_search_FUNC])
18565           LIBS=$prefix_saved_LIBS
18566
18567         However, in each of the files affected by this change, the LIB_VAR=
18568         initialization was omitted.  Thus, when set in the environment, its
18569         value would propagate into generated Makefiles when FUNC is not found
18570         in LIB_NAME.
18571         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
18572         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18574
18575 2009-10-14  Eric Blake  <ebb9@byu.net>
18576
18577         fchdir: avoid infinite recursion in mingw
18578         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
18579         recursing.
18580
18581         test-stat-time: port to mingw
18582         * tests/test-stat-time.c (force_unlink): Return a value.
18583         (test_ctime) [W32]: Fix compilation error.
18584         (nap): Don't call usleep with too large an argument.  Use
18585         force_unlink.
18586         * doc/pastposix-functions/usleep.texi (usleep): Document the
18587         portability issue.
18588
18589 2009-10-13  Jim Meyering  <meyering@redhat.com>
18590
18591         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18592         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
18593         * modules/pipe-filter-ii: Likewise.
18594         * modules/sys_socket-tests: Likewise.
18595         * modules/tsearch-tests: Likewise.
18596         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
18597         (check): Depend on it.
18598
18599 2009-10-12  Eric Blake  <ebb9@byu.net>
18600
18601         utimens-tests: port to NFS file systems
18602         * tests/test-utimens.h (test_utimens): Refactor utimecmp
18603         comparisons to avoid spurious failures from timestamp drift
18604         between NFS machines.
18605
18606 2009-10-12  Eric Blake  <ebb9@byu.net>
18607
18608         stat-time-tests: minor cleanups
18609         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
18610         * tests/test-stat-time.c (nap): Separate assignment from call.
18611         Suggested by Paolo Bonzini and Bruno Haible.
18612
18613         sys_stat: guarantee struct timespec
18614         * lib/sys_stat.in.h (includes): Always include <time.h>
18615         * modules/sys_stat (Depends-on): Add time.
18616         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
18617         mode_t permission values.
18618         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
18619         get at subsecond timestamps.
18620
18621 2009-10-10  Eric Blake  <ebb9@byu.net>
18622
18623         futimens: new module
18624         * modules/futimens: New file.
18625         * lib/futimens.c (futimens): Likewise.
18626         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
18627         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
18628         we can work around Linux bugs.
18629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18630         * modules/sys_stat (Makefile.am): Substitute them.
18631         * lib/sys_stat.in.h (futimens): Declare it.
18632         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18633         * doc/posix-functions/futimens.texi (futimens): Likewise.
18634         * modules/futimens-tests: New test.
18635         * tests/test-futimens.c: Likewise.
18636
18637         utimens: introduce fdutimens
18638         * lib/utimens.h (fdutimens): New prototype.
18639         * lib/utimens.c (gl_futimens): Move guts...
18640         (fdutimens): ...to new interface.
18641         * tests/test-utimens.c (do_fdutimens): Use it.
18642
18643         utimens: add UTIME_NOW and UTIME_OMIT support
18644         * lib/utimens.c (validate_timespec, update_timespec): New helper
18645         functions.
18646         (gl_futimens, lutimens): Use them.
18647         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
18648         stdbool, sys_stat.
18649         (Link): Mention resulting library dependency.
18650         * modules/utimecmp (Link): Likewise.
18651         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
18652         (Makefile.am): Pick up library dependency.
18653         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
18654         definition.
18655         * tests/test-sys_stat.c: Test the definitions.
18656         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
18657         * NEWS: Document library dependency.
18658
18659         utimecmp: support symlink timestamps
18660         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
18661         hashing when possible.  Use pathconf when available.
18662         (SYSCALL_RESOLUTION): Recognize tighter resolution.
18663         * modules/utimecmp (Depends-on): Add lstat.
18664
18665         utimens: add lutimens interface
18666         * lib/utimens.c (lutimens): New function.
18667         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
18668         * lib/utimens.h (lutimens): Declare new interface.
18669         * tests/test-utimens.c (main): Enhance test.
18670         * tests/test-lutimens.h (test_lutimens): New file.
18671         * modules/utimens-tests (Files): Distribute it.
18672         (Depends-on): Add symlink.
18673         (configure.ac): Check for usleep.
18674
18675         utimens: validate futimens usage
18676         * lib/utimens.c (gl_futimens): Require valid fd up front, using
18677         fewer syscalls on failure later on.  Avoid compiler warning on
18678         mingw.
18679         * modules/utimens (Depends-on): Add dup2.
18680
18681         utimens: add test
18682         * modules/utimens-tests: New test.
18683         * tests/test-utimens.h: New file.
18684         * tests/test-futimens.h: Likewise.
18685         * tests/test-utimens.c: Likewise.
18686
18687         doc: mention timestamp portability issues
18688         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
18689         instead.
18690         * doc/posix-functions/utime.texi (utime): Likewise.
18691         * doc/posix-functions/utimes.texi (utimes): Likewise.
18692         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
18693         instead.
18694         * doc/posix-functions/futimens.texi (futimens): Mention utimens
18695         module.
18696         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18697         Mention weakness with symlink timestamps.
18698         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
18699         to utimensat/futimens instead.
18700         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
18701
18702         test-dup2: enhance test
18703         * tests/test-dup2.c (main): Also check AT_FDCWD.
18704
18705         test-stat-time: avoid more spurious failures
18706         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
18707         xfs; and avoid race if the two timestamps cross quantization edge.
18708
18709         relocatable: prefer 'file system' over 'filesystem'
18710         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
18711         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
18712         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
18713         * doc/relocatable.texi (Enabling Relocatability): Likewise.
18714         * lib/relocatable.c (compute_curr_prefix): Likewise.
18715
18716 2009-10-10  Jim Meyering  <meyering@redhat.com>
18717
18718         stat-time-tests: check for the usleep function
18719         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
18720
18721 2009-10-10  Bruno Haible  <bruno@clisp.org>
18722
18723         * modules/xnanosleep: Put the Link section after the Include section.
18724
18725 2009-10-09  Eric Blake  <ebb9@byu.net>
18726
18727         dup2: work around FreeBSD 6.1 bug
18728         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
18729         * doc/posix-functions/dup2.texi (dup2): Document it.
18730         Reported by Nelson H. F. Beebe and Jim Meyering.
18731
18732         test-stat-time: port to buggy NFS clients
18733         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
18734         (test_ctime): Also skip test if mtime and ctime are skewed.
18735
18736         maint: prefer 'file system' over 'filesystem'
18737         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18738         * doc/posix-functions/lstat.texi (lstat): Likewise.
18739         * lib/file-has-acl.c (file_has_acl): Likewise.
18740         * lib/fwriteerror.c [TEST]: Likewise.
18741         * tests/test-areadlink.h (test_areadlink): Likewise.
18742         * tests/test-areadlinkat-with-size.c (main): Likewise.
18743         * tests/test-areadlinkat.c (main): Likewise.
18744         * tests/test-canonicalize-lgpl.c (main): Likewise.
18745         * tests/test-canonicalize.c (main): Likewise.
18746         * tests/test-fstatat.c (main): Likewise.
18747         * tests/test-linkat.c (main): Likewise.
18748         * tests/test-lstat.h (test_lstat_func): Likewise.
18749         * tests/test-mkdir.h (test_mkdir): Likewise.
18750         * tests/test-readlink.h (test_readlink): Likewise.
18751         * tests/test-remove.c (main): Likewise.
18752         * tests/test-rename.h (test_rename): Likewise.
18753         * tests/test-renameat.c (main): Likewise.
18754         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18755         * tests/test-symlink.h (test_symlink): Likewise.
18756         * tests/test-symlinkat.c (main): Likewise.
18757         * tests/test-unlink.h (test_unlink_func): Likewise.
18758         * tests/test-unlinkat.c (main): Likewise.
18759
18760         maint: make realtime library usage explicit
18761         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
18762         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
18763         * modules/settime (Link): Likewise.
18764         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
18765
18766         test-stat-time: speed up execution
18767         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
18768         warning on mingw.
18769         (nap): New helper function.
18770         (prepare_test): Use it to reduce sleep time.
18771         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
18772         execution.
18773         * modules/stat-time-tests (configure.ac): Check for usleep.
18774
18775 2009-10-09  Jim Meyering  <meyering@redhat.com>
18776
18777         selinux-h: always use getfilecon wrappers
18778         * lib/getfilecon.c: New file.
18779         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
18780         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
18781         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
18782         (fgetfilecon): Provide a stub.
18783         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
18784         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
18785         file unconditionally.
18786         When <selinux/selinux.h> is found, arrange to use wrappers.
18787         * modules/selinux-h (Files): Add getfilecon.c.
18788         (Makefile.am): Substitute include-next-related bits
18789         into the now-always-generated selinux/selinux.h file.
18790         * doc/glibc-functions/lgetfilecon.texi: New file.
18791         * doc/glibc-functions/fgetfilecon.texi: New file.
18792         * doc/glibc-functions/getfilecon.texi: New file.
18793         * doc/glibc-functions/getfilecon-desc.texi: New file.
18794         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
18795         which to pull in the new files.
18796         * MODULES.html.sh (Misc): Add selinux-h.
18797
18798 2009-10-08  Jim Meyering  <meyering@redhat.com>
18799
18800         unistd: fix comment typo
18801         * lib/unistd.in.h (euidaccess): Fix a comment typo.
18802
18803 2009-10-08  Eric Blake  <ebb9@byu.net>
18804
18805         areadlink: use SIZE_MAX consistently
18806         * modules/areadlink (Depends-on): Add stdint.
18807         * modules/areadlink-with-size (Depends-on): Likewise.
18808         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
18809         gives NULL; drop sys/types, since unistd gives size_t; and add
18810         stdint for SIZE_MAX.
18811         (SIZE_MAX): Rely on headers.
18812         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
18813         and add stdint.
18814         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
18815         (SIZE_MAX): Likewise.
18816         (INITIAL_BUF_SIZE): Turn into enum.
18817         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
18818
18819 2009-10-08  Jim Meyering  <meyering@redhat.com>
18820
18821         areadlinkat: avoid compilation failure
18822         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
18823         Fix typo in comment.
18824
18825 2009-10-07  Eric Blake  <ebb9@byu.net>
18826
18827         areadlinkat-with-size: new module
18828         * modules/areadlinkat-with-size: New module.
18829         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
18830         * lib/areadlink.h (areadlinkat): Declare it.
18831         * MODULES.html.sh (File system functions): Mention it.
18832         * modules/areadlinkat-with-size-tests: New test.
18833         * tests/test-areadlinkat-with-size.c: New file.
18834
18835         xreadlinkat: new module
18836         * modules/xreadlinkat: New module.
18837         * lib/xreadlinkat.c (xreadlinkat): New file.
18838         * lib/xreadlink.h (xreadlinkat): Declare it.
18839         * MODULES.html.sh (File system functions): Mention it.
18840
18841         areadlinkat: new module
18842         * lib/at-func.c (FUNC_FAIL): New define.
18843         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
18844         * modules/areadlinkat: New module.
18845         * lib/linkat.c (areadlinkat): Move...
18846         * lib/areadlinkat.c (areadlinkat): ...to new file.
18847         * lib/areadlink.h (areadlinkat): Declare it.
18848         * modules/linkat (Depends-on): Add areadlinkat.
18849         * MODULES.html.sh (File system functions): Mention it.
18850         * modules/areadlinkat-tests: New test.
18851         * tests/test-areadlinkat.c: New file.
18852
18853         areadlink, areadlink-with-size: add tests
18854         * modules/areadlink-tests: New test.
18855         * modules/areadlink-with-size-tests: Likewise.
18856         * tests/test-areadlink.h: New file.
18857         * tests/test-areadlink.c: Likewise.
18858         * tests/test-areadlink-with-size.c: Likewise.
18859
18860         maint: minor cleanups
18861         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
18862         _UNUSED_PARAMETER_ instead.
18863         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
18864         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
18865         * modules/linkat-tests (Files): Distribute test-link.h.
18866
18867         openat, utimens: whitespace cleanup
18868         * lib/openat.c: Prefer space throughout, rather than mix of 8
18869         spaces vs. tabs.
18870         * lib/at-func.c: Likewise.
18871         * lib/utimens.c: Likewise.
18872
18873         openat: avoid using wrong fd
18874         * lib/openat.c (openat_permissive): Reject user's fd if saving the
18875         working directory chooses same fd.
18876         * lib/at-func.c (AT_FUNC_NAME): Likewise.
18877
18878         mkdir, mkdirat: fix cygwin 1.5.x bug
18879         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
18880         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
18881         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
18882         bug.
18883         (gl_PREREQ_MKDIR): Delete unused macro.
18884         * modules/mkdir (Files): Track file rename.
18885         (configure.ac): Update macro name.
18886         * modules/openat (Depends-on): Add mkdir.
18887         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
18888
18889         mkdir, mkdirat: add tests
18890         * modules/mkdir-tests: New test.
18891         * tests/test-mkdir.h: New file.
18892         * tests/test-mkdir.c: Likewise.
18893         * tests/test-mkdirat.c: Likewise.
18894         * modules/openat-tests (Files): Add new files.
18895         (Makefile.am): Run new test.
18896
18897 2009-10-06  Eric Blake  <ebb9@byu.net>
18898
18899         doc: tweak *at function documentation
18900         * doc/posix-functions/faccessat.texi (faccessat): Mention
18901         known issue with replacement.
18902         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
18903         * doc/posix-functions/linkat.texi (linkat): Likewise.
18904         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18905         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18906         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18907         * doc/posix-functions/renameat.texi (renameat): Likewise.
18908         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18909
18910         openat: fix GNU/Hurd bug in unlinkat
18911         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
18912         broken.
18913         * doc/posix-functions/unlink.texi (unlink): Document this.
18914         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
18915
18916         fdopendir: fix GNU/Hurd bug
18917         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
18918         allowing non-directory fds.
18919         * lib/fdopendir.c (rpl_fdopendir): Work around it.
18920         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18921         * modules/dirent (Makefile.am): Substitute it.
18922         * lib/dirent.in.h (fdopendir): Declare replacement.
18923         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
18924         * tests/test-fdopendir.c (main): Test something other than
18925         /dev/null, since on Hurd that behaves like a directory.
18926
18927         test-symlink: port to GNU/Hurd
18928         * tests/test-symlink.h (test_symlink): Relax expected errno.
18929
18930         doc: tweak more cygwin information
18931         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
18932         now compatible with glibc.
18933         * doc/posix-functions/getopt.texi (getopt): Likewise.
18934
18935         getopt-gnu: add another test
18936         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
18937         guarantee behavior relied on by m4.
18938         * tests/test-getopt.c (main): Use it.
18939         * modules/getopt-posix-tests (Depends-on): Add setenv.
18940         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
18941
18942         getopt: fix compilation on darwin
18943         * lib/getopt.in.h (includes): Leave breadcrumbs during system
18944         include.
18945         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
18946         Reported by Ludovic Courtès.
18947
18948 2009-10-06  Bruno Haible  <bruno@clisp.org>
18949
18950         * modules/size_max (Description): Discourage its use.
18951         Reported by Simon Josefsson.
18952
18953 2009-10-06  Jim Meyering  <meyering@redhat.com>
18954
18955         linkat: avoid compilation failure
18956         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
18957
18958 2009-10-05  Eric Blake  <ebb9@byu.net>
18959
18960         linkat: support Linux 2.6.17
18961         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
18962         linkat on Linux, but allow cache variable override.
18963         * lib/linkat.c (rpl_linkat): Define override.
18964         * modules/linkat (Depends-on): Add symlinkat.
18965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
18966         * modules/unistd (Makefile.am): Substitute it.
18967         * lib/unistd.in.h (linkat): Declare replacement.
18968         Reported by Pádraig Brady.
18969
18970         quotearg: port test to systems with C.UTF-8 locale
18971         * tests/test-quotearg.c (struct result_strings): Add another
18972         member, differentiating between C.ASCII and C.UTF-8 handling.
18973         (compare_strings): Add parameter.
18974         (main): Adjust all callers.
18975
18976         getopt: avoid clash with FreeBSD _getopt_internal
18977         * lib/getopt.in.h (_getopt_internal): Override the name.
18978         * lib/getopt_int.h (includes): Pick up any overrides.
18979         Reported by Reuben Thomas.
18980
18981         hash: allow C89 compilation
18982         * lib/hash.c (check_tuning): Move declaration before statement.
18983         Reported by Reuben Thomas.
18984
18985 2009-10-05  Karl Berry  <karl@gnu.org>
18986
18987         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
18988
18989 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
18990             Bruno Haible  <bruno@clisp.org>
18991
18992         * lib/uname.c (uname): Use a table-driven algorithm to compute
18993         Windows NT versions.
18994
18995 2009-10-04  Bruno Haible  <bruno@clisp.org>
18996
18997         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
18998         program_invocation_short_name.
18999         * modules/progname (configure.ac): Test for presence of
19000         program_invocation_short_name.
19001         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19002
19003 2009-10-04  Bruno Haible  <bruno@clisp.org>
19004
19005         * lib/progname.c (set_program_name): Fix comment.
19006         Reported by Jim Meyering.
19007
19008 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19009             Bruno Haible  <bruno@clisp.org>
19010
19011         * lib/uname.c: Include <string.h>.
19012         (uname): Do only one call to GetVersionEx in the common case.
19013
19014 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19015             Bruno Haible  <bruno@clisp.org>
19016
19017         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19018         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19019         (uname): Add support for Windows CE and various non-x86 CPU types.
19020
19021 2009-10-03  Bruno Haible  <bruno@clisp.org>
19022
19023         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19024         invocation to tests/configure.ac.
19025         Reported by Ian Beckwith <ianb@erislabs.net>.
19026
19027 2009-10-02  Eric Blake  <ebb9@byu.net>
19028
19029         fchdir: avoid compiler warning
19030         * lib/fchdir.c (canonicalize_file_name)
19031         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19032
19033         test-open: support mingw errno values
19034         * tests/test-open.h (test_open): Relax test.
19035         * tests/test-fopen.h (test_fopen): Likewise.
19036         * tests/test-openat-safer.c (main): Likewise.
19037
19038         open: fix opening directory on mingw
19039         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19040
19041         test-open: on GNU/Hurd, /dev/null is a directory
19042         * tests/test-fopen.h (main): Rename...
19043         (test_fopen): ...to this.  Use a guaranteed non-directory when
19044         confirming open behavior on trailing slash.
19045         * tests/test-openat-safer.c (main): Likewise.
19046         * tests/test-open.h (main): Likewise....
19047         (test_open): ...to this.
19048         * tests/test-fopen.c (main): Adjust caller.
19049         * tests/test-fopen-safer.c (main): Likewise.
19050         * tests/test-open.c (main): Likewise.
19051         * tests/test-fcntl-safer.c (main): Likewise.
19052         Reported by Samuel Thibault.
19053
19054         rename, fchdir: don't ignore chdir failure
19055         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19056         * lib/rename.c (rpl_rename) [W32]: Likewise.
19057         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19058         an empty destination directory if source cannot be renamed,
19059         although there is still possibility for failure.
19060         * doc/posix-functions/rename.texi (rename): Document the race.
19061         Reported by Jim Meyering.
19062
19063         maint: cleanup whitespace in recent commits
19064         * lib/rename.c (rpl_rename): Remove tabs.
19065         * tests/test-link.h (test_link): Likewise.
19066         * lib/fchdir.c (get_name): Likewise.
19067         Reported by Jim Meyering.
19068
19069 2009-10-02  Ben Pfaff  <blp@gnu.org>
19070
19071         relocatable-prog-wrapper: Add missing dependency on
19072         double-slash-root.
19073         * modules/relocatable-prog-wrapper: Add dependency.
19074         Reported by Ian Beckwith <ianb@erislabs.net>.
19075
19076 2009-10-02  Eric Blake  <ebb9@byu.net>
19077
19078         renameat: fix Solaris bugs
19079         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19080         needed fixing.
19081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19082         * modules/stdio (Makefile.am): Substitute it.
19083         * lib/stdio.in.h (renameat): Declare replacement.
19084         * lib/renameat.c (rpl_renameat): Implement fix.
19085
19086         renameat: new module
19087         * modules/renameat: New file.
19088         * lib/renameat.c (renameat): Likewise.
19089         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19091         * modules/stdio (Makefile.am): Substitute them.
19092         * lib/stdio.in.h (renameat): Declare it.
19093         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19094         * doc/posix-functions/renameat.texi (renameat): Likewise.
19095         * modules/renameat-tests: New test.
19096         * tests/test-renameat.c: Likewise.
19097
19098         rename: fix mingw bugs
19099         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19100         directory overwrite bugs.
19101
19102         rename: fix another cygwin 1.5 bug
19103         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19104         checks.
19105         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19106         unnecessary cygwin workarounds.  Also work around bug with moving
19107         full directory onto an empty one.
19108         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19109
19110         rename-dest-slash: merge into rename module
19111         * modules/rename-dest-slash (Status): Mark obsolete.
19112         (Depends-on): Add rename.
19113         (Files): Let rename do it all.
19114         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19115         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19116         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19117         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19118         * lib/rename.c (rpl_rename): Update comments.
19119
19120         rename: fix cygwin 1.5.x bugs
19121         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19122         * lib/rename.c (rpl_rename): Work around them.
19123         * modules/rename (Depends-on): Add same-inode.
19124
19125         rename: fix Solaris 10 bug
19126         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19127         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19128         was the only bug.
19129
19130         rename: fix Solaris 9 bug
19131         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19132         on non-directory.  Avoid calling exit.
19133         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19134         strdup.
19135         * modules/rename-tests (Depends-on): Drop lstat.
19136         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19137         (gl_PREREQ_RENAME): Delete unused macro.
19138
19139         rename-dest-slash: fix NetBSD bug
19140         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19141         links.
19142         * modules/rename-dest-slash (Depends-on): Add same-inode.
19143
19144         rename-tests: new test, exposes several platform bugs
19145         * modules/rename-tests: New file.
19146         * tests/test-rename.h: Likewise.
19147         * tests/test-rename.c: Likewise.
19148         * doc/posix-functions/rename.texi (rename): Improve documentation,
19149         including bugs that will eventually be fixed in gnulib.
19150
19151 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19152
19153         * lib/uname.c: Include <stdlib.h>
19154         (uname): Assume version info is available.
19155
19156 2009-10-02  Jim Meyering  <meyering@redhat.com>
19157
19158         gnu-web-doc-update: correct --help output
19159         * build-aux/gnu-web-doc-update: Make --help output relevant.
19160
19161         gnu-web-doc-update: add standard options
19162         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19163
19164         gnu-web-doc-update: New module.
19165         Use this script to automatically update the on-line web documentation
19166         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19167         * modules/gnu-web-doc-update: New file, from coreutils.
19168         * build-aux/gnu-web-doc-update: New script.
19169
19170 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19171
19172         link: LoadLibrary is not needed.
19173         * lib/link.c: Use GetModuleHandle.
19174
19175 2009-10-01  Eric Blake  <ebb9@byu.net>
19176
19177         getopt: bump serial number
19178         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19179         change.
19180
19181         tests: tighten link, rmdir, and remove tests
19182         * tests/test-link.h (includes): No need to use <config.h> here.
19183         Clean up if directory hard link was created, otherwise test for
19184         trailing '.'.
19185         * tests/test-linkat.c (main): Simplify.
19186         * tests/test-remove.c (main): Enhance test for trailing '.'.
19187         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19188
19189 2009-10-01  Jim Meyering  <meyering@redhat.com>
19190
19191         maint.mk: requiring "make major" was annoying, for a "minor" release.
19192         What is intended is "stable", to contrast with alpha and beta,
19193         so require "make stable", not "make major".
19194         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19195         (get_tool_versions): Likewise.
19196         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19197
19198 2009-09-30  Ben Pfaff  <blp@gnu.org>
19199
19200         Fix broken build of replacement for Windows tmpfile().
19201         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19202         flags argument added along with the 'mkostemp' module.
19203
19204 2009-09-28  Bruno Haible  <bruno@clisp.org>
19205
19206         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19207         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19208         to 'remove_elt'.
19209         (gl_list_remove): Update.
19210         * lib/gl_list.c (gl_list_remove): Update.
19211         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19212         to 'remove_elt'.
19213         (gl_oset_remove): Update.
19214         * lib/gl_list.c (gl_oset_remove): Update.
19215         Reported by Eric Blake.
19216
19217 2009-09-28  Eric Blake  <ebb9@byu.net>
19218
19219         doc: mention yet more cygwin 1.7 status
19220         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19221         cygwin.
19222         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19223         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19224
19225         argp: fix test failure
19226         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19227         that are not upper-case.  Pass correct range to tolower.
19228
19229 2009-09-27  Jim Meyering  <meyering@redhat.com>
19230
19231         test-yesno: work around sparc-dash here-document infelicity
19232         Without this change, the literal \177 byte in a here document
19233         would make dash 0.5.5.1-3 access uninitialized memory.
19234         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19235         Instead, use a marker, "@", and filter through tr to create the desired
19236         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19237
19238 2009-09-27  Bruno Haible  <bruno@clisp.org>
19239
19240         Disable untested support for new flavours of ACLs on AIX.
19241         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19242         progress.
19243         * lib/set-mode-acl.c (qset_acl): Likewise.
19244
19245 2008-12-07  Bruno Haible  <bruno@clisp.org>
19246
19247         Add support for new flavours of ACLs on AIX. (Untested.)
19248         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19249         (file_has_acl): Add support for newer AIX.
19250         * lib/set-mode-acl.c (qset_acl): Likewise.
19251         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19252         Rainer Tammer <tammer@tammer.net>.
19253
19254 2009-09-26  Eric Blake  <ebb9@byu.net>
19255
19256         argp: fix compilation of getopt
19257         * lib/getopt.in.h (includes): Use different guard than glibc.
19258         Reported by Sergey Poznyakoff.
19259
19260         doc: mention more cygwin 1.7 status
19261         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19262         bug.
19263         * doc/posix-functions/execl.texi (execl): Likewise.
19264         * doc/posix-functions/execle.texi (execle): Likewise.
19265         * doc/posix-functions/execlp.texi (execlp): Likewise.
19266         * doc/posix-functions/execv.texi (execv): Likewise.
19267         * doc/posix-functions/execve.texi (execve): Likewise.
19268         * doc/posix-functions/execvp.texi (execvp): Likewise.
19269         * doc/glibc-functions/canonicalize_file_name.texi
19270         (canonicalize_file_name): Cygwin 1.7 now provides this.
19271         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19272         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19273         on AT_SYMLINK_NOFOLLOW.
19274
19275 2009-09-24  Eric Blake  <ebb9@byu.net>
19276
19277         test-linkat: make test more robust
19278         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19279
19280         getopt: fix inclusion guards for cygwin
19281         * modules/getopt-posix (Depends-on): Add include-next.
19282         (Makefile.am): Substitute more items in replacement header.
19283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19284         <getopt.h>.
19285         * lib/getopt.in.h (includes): Use split inclusion guard, and
19286         prefer <getopt.h> over include <unistd.h> when one is present.
19287         (option): Also override name of 'struct option'.
19288
19289         same-inode: revert prior change; it is not yet ready
19290         * NEWS: Undo mention of this change.
19291         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19292         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19293         * lib/cycle-check.c (cycle_check): Likewise.
19294         * lib/same.c (same_name): Likewise.
19295         * lib/at-func2.c (at_func2): Likewise.
19296
19297 2009-09-23  Eric Blake  <ebb9@byu.net>
19298
19299         linkat: new module
19300         * modules/linkat: New file.
19301         * lib/at-func2.c (at_func2): Likewise.
19302         * lib/linkat.c (linkat): Likewise.
19303         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19304         * lib/openat-priv.h (at_func2): Add declaration.
19305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19306         * modules/unistd (Makefile.am): Substitute them.
19307         * lib/unistd.in.h (linkat): Declare it.
19308         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19309         * doc/posix-functions/linkat.texi (linkat): Likewise.
19310         * doc/posix-functions/link.texi (link): Tweak wording.
19311         * tests/test-link.c (main): Move guts...
19312         * tests/test-link.h (test_link): ...into new file.
19313         * modules/linkat-tests: New test.
19314         * tests/test-linkat.c: Likewise.
19315         * modules/link-tests (Files): Ship new file.
19316         (Depends-on): Add stdbool.
19317
19318         dirname: add library-safe mdir_name
19319         * lib/dirname.h (mdir_name): New prototype.
19320         * lib/dirname.c (dir_name): Move guts...
19321         (mdir_name): ...to new function that avoids xalloc_die.
19322
19323         fchdir: another mingw fix
19324         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19325         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19326         on mingw (where it has not yet been ported), and make it optional
19327         elsewhere.
19328         (_gl_register_fd): Use it.
19329
19330         same-inode: make SAME_INODE tri-state, to port to mingw
19331         * NEWS: Mention this change.
19332         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19333         st_ino always being 0.
19334         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19335         * lib/cycle-check.c (cycle_check): Likewise.
19336         * lib/same.c (same_name): Likewise.
19337
19338         lstat: avoid mingw compilation error
19339         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19340         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19341         lstat ourselves.
19342         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19343         was adequate.
19344         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19345         the checks for lstat.
19346         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19347
19348         link: fix test failure on Solaris 9
19349         * lib/link.c (rpl_link): Don't assume link will catch bogus
19350         trailing slash on source.
19351
19352         test-symlinkat: enhance test
19353         * tests/test-readlink.c (main): Move guts...
19354         * tests/test-readlink.h (test_readlink): ...into new file.
19355         * tests/test-symlink.c (main): Move guts...
19356         * tests/test-symlink.h (test_symlink): ...into new file.
19357         * tests/test-symlinkat.c (main): Use new files for further
19358         coverage.
19359         (do_symlink, do_readlink): New helper functions.
19360         * modules/symlink-tests (Files): Ship new file.
19361         (Depends-on): Add stdbool.
19362         * modules/readlink-tests (Files): Ship new file.
19363         (Depends-on): Add stdbool.
19364         * modules/symlinkat-tests (Files): Use new files.
19365
19366 2009-09-23  Eric Blake  <ebb9@byu.net>
19367
19368         readlink: document portability issue with symlink length
19369         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19370         systems have bogus st_size on symlinks, and mention the
19371         areadlink-with-size module.
19372         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19373         * doc/posix-functions/readlink.texi (readlink): Mention the
19374         areadlink module, and ERANGE failure.
19375         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19376         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19377
19378         readlink: fix Solaris 9 bug with trailing slash
19379         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19380         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19381         * doc/posix-functions/readlink.texi (readlink): Document this.
19382         * modules/readlink-tests: New test.
19383         * tests/test-readlink.c: Likewise.
19384
19385         readlink: fix cygwin 1.5.x bug with return type
19386         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19387         * lib/unistd.in.h (readlink): Use ssize_t.
19388         * lib/readlink.c (readlink): Likewise.
19389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19390         * modules/unistd (Makefile.am): Substitute it.
19391         * lib/unistd.in.h (readlink): Declare replacement.
19392         * doc/posix-functions/readlink.texi (readlink): Document this.
19393
19394         symlink: use throughout gnulib
19395         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19396         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19397         symlink is not used.
19398         * modules/symlinkat (Depends-on): Add symlink.
19399         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19400         * modules/canonicalize-tests (Depends-on): Likewise.
19401         * modules/lstat-tests (Depends-on): Likewise.
19402         * modules/openat-tests (Depends-on): Likewise.
19403         * modules/remove-tests (Depends-on): Likewise.
19404         * modules/rmdir-tests (Depends-on): Likewise.
19405         * modules/unlink-tests (Depends-on): Likewise.
19406         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19407         * tests/test-canonicalize.c (symlink): Likewise.
19408         * tests/test-fstatat.c (symlink): Likewise.
19409         * tests/test-lstat.c (symlink): Likewise.
19410         * tests/test-remove.c (symlink): Likewise.
19411         * tests/test-rmdir.c (symlink): Likewise.
19412         * tests/test-unlink.c (symlink): Likewise.
19413         * tests/test-unlinkat.c (symlink): Likewise.
19414
19415         symlink: new module, for Solaris 9 bug
19416         * modules/symlink: New file.
19417         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19418         * lib/symlink.c: Likewise.
19419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19420         * modules/unistd (Makefile.am): Substitute them.
19421         * lib/unistd.in.h (symlink): Declare replacement.
19422         * MODULES.html.sh (File system functions): Mention it.
19423         * doc/posix-functions/symlink.texi (symlink): Likewise.
19424         * modules/symlink-tests: New test.
19425         * tests/test-symlink.c: Likewise.
19426
19427 2009-09-23  Bruno Haible  <bruno@clisp.org>
19428
19429         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19430         when needed.
19431         Test case: gnulib-tool --import --with-tests atexit inttypes.
19432         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19433
19434 2009-09-23  Bruno Haible  <bruno@clisp.org>
19435
19436         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19437         subcommand, not in a subshell.
19438
19439 2009-09-22  Eric Blake  <ebb9@byu.net>
19440
19441         unistd: sort replacement declarations
19442         * lib/unistd.in.h: Sort declarations.
19443
19444         open, openat: minor optimization
19445         * lib/open.c (open): If open succeeded, len is non-zero.
19446         * lib/openat.c (rpl_openat): Likewise.
19447
19448         link-follow: ensure correct result
19449         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19450         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19451         distinguish between possible failures.
19452
19453 2009-09-21  Eric Blake  <ebb9@byu.net>
19454
19455         fts: avoid compiler warning
19456         * lib/fts.c (dirent_inode_sort_may_be_useful)
19457         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19458
19459 2009-09-19  Bruno Haible  <bruno@clisp.org>
19460
19461         * lib/progreloc.c (canonicalize_file_name): New declaration.
19462
19463 2009-09-19  Eric Blake  <ebb9@byu.net>
19464
19465         link: fix quoting
19466         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19467
19468         openat: fix openat bugs on Solaris 9
19469         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19470         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19471         * modules/openat (Depends-on): Add open.
19472         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19473         * modules/fcntl-h (Makefile.am): Substitute it.
19474         * lib/fcntl.in.h (openat): Declare replacement.
19475         * doc/posix-functions/openat.texi (openat): Document this.
19476
19477         openat: move fstatat and unlinkat into correct files
19478         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
19479         compiled.
19480         * lib/openat.c (fstatat, unlinkat): Move...
19481         * lib/fstatat.c (fstatat): ...into correct files.
19482         * lib/unlinkat.c (unlinkat): Likewise.
19483
19484         openat: fix unlinkat bugs on Solaris 9
19485         * lib/unlinkat.c (unlinkat): New file.
19486         * modules/openat (Depends-on): Add unlink.
19487         (Files): Distribute it.
19488         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
19489         trailing slash behavior is broken.
19490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19491         * modules/unistd (Makefile.am): Substitute it.
19492         * lib/unistd.in.h (unlinkat): Declare replacement.
19493         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
19494
19495         openat: fix fstatat bugs on Solaris 9
19496         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
19497         stat.
19498         * doc/posix-functions/fstatat.texi (fstatat): Document this.
19499
19500         test-unlinkat: enhance test, to expose Solaris 9 bug
19501         * tests/test-unlink.c (main): Factor guts...
19502         * tests/test-unlink.h (test_rmdir_func): ...into new file.
19503         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19504         * tests/test-rmdir.c (main): Adjust caller.
19505         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19506         (unlinker): New helper function.
19507         (rmdirat): Enhance check.
19508         * modules/rmdir-tests (Depends-on): Add stdbool.
19509         * modules/unlink-tests (Depends-on): Likewise.
19510         (Files): Add test-unlink.h.
19511         * modules/openat-tests (Files): Likewise.
19512         (Depends-on): Add unlinkdir.
19513
19514         test-fstatat: new test, to expose Solaris 9 bugs
19515         * tests/test-stat.c (main): Factor guts...
19516         * tests/test-stat.h (test_stat_func): ...into new file.
19517         * tests/test-lstat.c (main): Factor guts...
19518         * tests/test-lstat.h (test_lstat_func): ...into new file.
19519         * tests/test-fstatat.c: New file.
19520         * modules/stat-tests (Files): Add test-stat.h.
19521         * modules/lstat-tests (Files): Add test-lstat.h.
19522         (Depends-on): Add stdbool.
19523         * modules/openat-tests (Depends-on): Add pathmax.
19524         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19525         (Makefile.am): Run new test.
19526
19527         remove: new module, for mingw and Solaris 9 bugs
19528         * modules/remove: New file.
19529         * lib/remove.c: Likewise.
19530         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19532         * modules/stdio (Makefile.am): Use them.
19533         * lib/stdio.in.h (remove): Declare replacement.
19534         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19535         * doc/posix-functions/remove.texi (remove): Likewise.
19536         * modules/remove-tests: New test.
19537         * tests/test-remove.c: Likewise.
19538
19539         unlink: new module, for Solaris 9 bug
19540         * modules/unlink: New file.
19541         * lib/unlink.c: Likewise.
19542         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19544         * modules/unistd (Makefile.am): Use them.
19545         * lib/unistd.in.h (stat): Declare replacement.
19546         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19547         * doc/posix-functions/unlink.texi (unlink): Likewise.
19548         * modules/unlink-tests: New test.
19549         * tests/test-unlink.c: Likewise.
19550
19551         lstat: fix Solaris 9 bug
19552         * lib/lstat.c (lstat): Also check for trailing slash on
19553         non-symlink, non-directories.  Use stat module to simplify logic.
19554         * doc/posix-functions/lstat.texi (lstat): Document it.
19555         * modules/lstat-tests (Depends-on): Add errno, same-inode.
19556         (configure.ac): Check for symlink.
19557         * tests/test-lstat.c (main): Add more tests.
19558
19559         stat: add as dependency to other modules
19560         * modules/chown (Depends-on): Add stat.
19561         * modules/euidaccess (Depends-on): Likewise.
19562         * modules/fchdir (Depends-on): Likewise.
19563         * modules/isdir (Depends-on): Likewise.
19564         * modules/link (Depends-on): Likewise.
19565         * modules/lstat (Depends-on): Likewise.
19566         * modules/mkdir-p (Depends-on): Likewise.
19567         * modules/modechange (Depends-on): Likewise.
19568         * modules/open (Depends-on): Likewise.
19569         * modules/readlink (Depends-on): Likewise.
19570         * modules/same (Depends-on): Likewise.
19571
19572         stat: fix Solaris 9 bug
19573         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
19574         slash.
19575         * lib/stat.c (rpl_stat): Work around it.
19576         * doc/posix-functions/stat.texi (stat): Update documentation.
19577
19578         stat: new module, for mingw bug
19579         * modules/stat: New file.
19580         * lib/stat.c: Likewise.
19581         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19583         * modules/sys_stat (Makefile.am): Use them.
19584         * lib/sys_stat.in.h (stat): Declare replacement.
19585         * lib/openat.c (fstatat): Deal with lstat and stat being function
19586         macros.
19587         * modules/openat (Depends-on): Add inline.
19588         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19589         * doc/posix-functions/stat.texi (stat): Likewise.
19590         * modules/stat-tests: New test.
19591         * tests/test-stat.c: Likewise.
19592
19593 2009-09-19  Jim Meyering  <meyering@redhat.com>
19594
19595         syntax-check: detect unnecessary inclusion of canonicalize.h
19596         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
19597
19598 2009-09-19  Eric Blake  <ebb9@byu.net>
19599
19600         canonicalize-lgpl: adjust clients to use correct header
19601         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19602         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
19603         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
19604         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
19605         * lib/progreloc.c (includes): Likewise.
19606
19607 2009-09-19  Jim Meyering  <meyering@redhat.com>
19608
19609         test-posixtm.c: correct a comment
19610         * tests/test-posixtm.c: Correct first-line comment.
19611         Spotted by Eric Blake.
19612
19613 2009-09-16  Jim Meyering  <meyering@redhat.com>
19614
19615         posixtm-tests: make T const-correct; add a test case
19616         * tests/test-posixtm.c (T): Declare const.
19617         Add a test for -(2^31+1).
19618         Remove useless can-succeed-only-in-2002 test.
19619
19620         posixtm-tests: adjust the sole failing test
19621         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
19622         expected output matches what mktime now produces.  Cross-checked via
19623         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
19624
19625         posixtm: move #ifdef'd tests into a new module
19626         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
19627         * tests/test-posixtm.c: ... this new file.
19628         * modules/posixtm-tests: New module.
19629
19630 2009-09-19  Eric Blake  <ebb9@byu.net>
19631
19632         openat: simplify use of at-func.c
19633         * lib/at-func.c (includes): Include prerequisites here, to
19634         simplify requirements on client files.
19635         * lib/openat-priv.h: Add double-inclusion guard.
19636         * lib/faccessat.c (includes): Simplify.
19637         * lib/fchmodat.c (includes): Likewise.
19638         * lib/fchownat.c (includes): Likewise.
19639         * lib/mkdirat.c (includes): Likewise.
19640         * lib/mkfifoat.c (includes): Likewise.
19641         * lib/symlinkat.c (includes): Likewise.
19642
19643         openat: allow return of fd 0
19644         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
19645         * modules/save-cwd (Depends-on): Replace fcntl-safer with
19646         unistd-safer.
19647         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
19648         <fcntl.h>; this module does not leak fds.
19649         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
19650         must be allowed to return 0, leaving openat_safer to add the
19651         safety.
19652         (openat_permissive): Avoid writing to just-opened fd 2 if
19653         restoring the current directory fails.
19654         * lib/openat-die.c (openat_restore_fail): Add comment.
19655         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
19656         (save_cwd): Guarantee safe fd, but without use of open_safer.
19657         * tests/test-openat.c: New test.
19658         * modules/openat-tests (Files, Makefile.am): Distribute and build
19659         new file.
19660
19661         relocatable-prog-wrapper: fix build
19662         * modules/relocatable-prog-wrapper (Files): Update name of
19663         canonicalize m4 file, broken on 2009-09-17.
19664         Reported by emad hajjar <aleppos@hotmail.com>.
19665
19666 2009-09-19  Bruno Haible  <bruno@clisp.org>
19667
19668         * lib/safe-alloc.h: Use the standard header with GPL copyright.
19669         * lib/safe-alloc.c: Likewise.
19670         Reported by Ian Beckwith <ianb@erislabs.net>.
19671
19672 2009-09-18  Bruno Haible  <bruno@clisp.org>
19673
19674         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
19675         Reported by <erobles@sensacd.com.mx>.
19676
19677 2009-09-17  Eric Blake  <ebb9@byu.net>
19678
19679         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
19680         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
19681         slashes when checking if last component is missing.
19682         * tests/test-canonicalize.c (main): Test this.
19683
19684         canonicalize, canonicalize-lgpl: honor // if distinct from /
19685         * modules/canonicalize (Files): Add double-slash-root.m4.
19686         * modules/canonicalize-lgpl (Files): Likewise.
19687         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19688         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
19689         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
19690         fallback definition.
19691         (canonicalize_filename_mode): Use it to protect //.
19692         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
19693         (__realpath): Likewise.
19694         * tests/test-canonicalize.c (main): Test this.
19695         * tests/test-canonicalize-lgpl.c (main): Likewise.
19696         * modules/canonicalize-tests (Depends-on): Add same-inode.
19697         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19698
19699         canonicalize-lgpl: fix glibc bug with trailing slash
19700         * m4/canonicalize-lgpl.m4: Move contents...
19701         * m4/canonicalize.m4: ...here.
19702         (gl_CANONICALIZE_LGPL): Factor realpath check...
19703         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
19704         glibc 2.3.5 bug, fixed 2005-04-27.
19705         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
19706         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
19707         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
19708         * modules/canonicalize-lgpl (Files): Manage file rename.
19709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19710         * modules/stdlib (Makefile.am): Substitute witness.
19711         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
19712         is needed.
19713         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
19714         replacement is required.
19715         * lib/canonicalize.c (canonicalize_file_name): Likewise.
19716         * doc/glibc-functions/canonicalize_file_name.texi
19717         (canonicalize_file_name): Document this.
19718         * doc/posix-functions/realpath.texi (realpath): Likewise.
19719
19720         canonicalize-lgpl: reject non-directory with trailing slash
19721         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
19722         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
19723         catches failures in glibc 2.3.5.
19724         * tests/test-canonicalize.c (main): Likewise.
19725
19726         canonicalize-lgpl: use native realpath if it works
19727         * lib/canonicalize-lgpl.c (realpath): Guard with
19728         FUNC_REALPATH_WORKS.
19729         * lib/stdlib.in.h (realpath): Make declaration optional based on
19730         HAVE_REALPATH.
19731         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
19732         native realpath works.
19733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19734         * modules/stdlib (Makefile.am): Substitute witness.
19735
19736         canonicalize, canonicalize-lgpl: use <stdlib.h>
19737         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
19738         (Include): Mention <stdlib.h>.
19739         (configure.ac): Mention functions we provide.
19740         * modules/canonicalize (configure.ac): Likewise.
19741         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
19742         realpath if canonicalize_file_name is missing.
19743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
19744         * modules/stdlib (Makefile.am): Substitute witnesses.
19745         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
19746         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
19747         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
19748         * NEWS: Document this.
19749         * doc/glibc-functions/canonicalize_file_name.texi
19750         (canonicalize_file_name): Likewise.
19751         * doc/posix-functions/realpath.texi (realpath): Likewise.
19752         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
19753
19754         test-canonicalize: consolidate into single C program
19755         * tests/test-canonicalize.sh: Delete; move setup into...
19756         * tests/test-canonicalize.c (main): ...the program, making it
19757         easier to run in debugger.  Add some tests.
19758         * modules/canonicalize-tests (Files): Remove unused file.
19759         (Depends-on): Add progname.
19760         (configure.ac, Makefile.am): Simplify.
19761
19762         test-canonicalize-lgpl: consolidate into single C program
19763         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
19764         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
19765         easier to run in debugger.  Add some tests.
19766         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
19767         (configure.ac, Makefile.am): Simplify.
19768
19769         canonicalize: avoid resolvepath
19770         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
19771         unnecessary checks.
19772         * lib/canonicalize.c (includes): Simplify.
19773         (canonicalize_file_name): Drop resolvepath implementation.
19774         * modules/canonicalize (Depends-on): Drop filenamecat.
19775
19776         canonicalize: don't lose errno
19777         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
19778         over calls to free.
19779
19780         canonicalize: simplify errno handling
19781         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
19782         assignment.
19783
19784         canonicalize, canonicalize-lgpl: update module dependencies
19785         * modules/canonicalize (Depends-on): Add extensions, lstat,
19786         pathmax, stdlib.
19787         (Files): Drop pathmax.h.
19788         (configure.ac): Adjust macro name.
19789         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
19790         lstat, stdlib, sys_stat.
19791         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
19792         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
19793         extensions.
19794         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
19795         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
19796         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
19797         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
19798         declaration, if available.
19799         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
19800         we can rely on the readlink module.
19801         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
19802         (includes): Use <unistd.h> unconditionally.
19803
19804 2009-09-17  Eric Blake  <ebb9@byu.net>
19805
19806         maint: make Include sections of modules consistent
19807         * modules/alloca: Use only header name; no need to list #include.
19808         * modules/alloca-opt: Likewise.
19809         * modules/arpa_inet: Likewise.
19810         * modules/canon-host: Likewise.
19811         * modules/configmake: Likewise.
19812         * modules/dirent: Likewise.
19813         * modules/eealloc: Likewise.
19814         * modules/environ: Likewise.
19815         * modules/fchdir: Likewise.
19816         * modules/fcntl: Likewise.
19817         * modules/fcntl-h: Likewise.
19818         * modules/gethrxtime: Likewise.
19819         * modules/gettime: Likewise.
19820         * modules/ignore-value: Likewise.
19821         * modules/inet_ntop: Likewise.
19822         * modules/inet_pton: Likewise.
19823         * modules/inttypes: Likewise.
19824         * modules/isnand-nolibm: Likewise.
19825         * modules/isnanf-nolibm: Likewise.
19826         * modules/mbchar: Likewise.
19827         * modules/mbfile: Likewise.
19828         * modules/mbiter: Likewise.
19829         * modules/mbuiter: Likewise.
19830         * modules/netdb: Likewise.
19831         * modules/netinet_in: Likewise.
19832         * modules/nproc: Likewise.
19833         * modules/pagealign_alloc: Likewise.
19834         * modules/poll: Likewise.
19835         * modules/printf-frexp: Likewise.
19836         * modules/pthread: Likewise.
19837         * modules/putenv: Likewise.
19838         * modules/random_r: Likewise.
19839         * modules/relocatable-prog: Likewise.
19840         * modules/search: Likewise.
19841         * modules/select: Likewise.
19842         * modules/selinux-h: Likewise.
19843         * modules/settime: Likewise.
19844         * modules/signal: Likewise.
19845         * modules/size_max: Likewise.
19846         * modules/socklen: Likewise.
19847         * modules/ssize_t: Likewise.
19848         * modules/stdarg: Likewise.
19849         * modules/stdbool: Likewise.
19850         * modules/stddef: Likewise.
19851         * modules/stdint: Likewise.
19852         * modules/stdio: Likewise.
19853         * modules/stdlib: Likewise.
19854         * modules/string: Likewise.
19855         * modules/strings: Likewise.
19856         * modules/sys_file: Likewise.
19857         * modules/sys_ioctl: Likewise.
19858         * modules/sys_select: Likewise.
19859         * modules/sys_socket: Likewise.
19860         * modules/sys_stat: Likewise.
19861         * modules/sys_time: Likewise.
19862         * modules/sys_times: Likewise.
19863         * modules/sys_utsname: Likewise.
19864         * modules/sys_wait: Likewise.
19865         * modules/sysexits: Likewise.
19866         * modules/time: Likewise.
19867         * modules/times: Likewise.
19868         * modules/tmpfile: Likewise.
19869         * modules/trim: Likewise.
19870         * modules/unistd: Likewise.
19871         * modules/wchar: Likewise.
19872         * modules/wctype: Likewise.
19873
19874 2009-09-17  Bruno Haible  <bruno@clisp.org>
19875
19876         Make getdate.y compile on QNX and NetBSD 5 / i386.
19877         * m4/getdate.m4 (gl_GETDATE): Conditionally define
19878         TIME_T_FITS_IN_LONG_INT.
19879         * lib/getdate.y (long_time_t): New type.
19880         (relative_time): Change type of 'seconds' field to long_time_t.
19881         (get_date): Update types of local variables. Check against overflow
19882         during conversion from long_time_t to time_t.
19883         Reported by Matt Kraai <kraai@ftbfs.org>
19884         and Hasso Tepper <hasso@netbsd.org>.
19885
19886 2009-09-17  Bruno Haible  <bruno@clisp.org>
19887
19888         * modules/COPYING: Update copyright years.
19889         * modules/README: Likeiwse.
19890         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
19891         Reported by Ian Beckwith <ianb@erislabs.net>.
19892
19893 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19894
19895         * users.txt: Update references for gnuit package.
19896
19897 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19898
19899         * m4/getdelim.m4: Fix typo in copyright line.
19900
19901 2009-09-17  Bruno Haible  <bruno@clisp.org>
19902
19903         * lib/atoll.c: Use the standard header with GPL copyright.
19904         * lib/argz.in.h: Likewise.
19905         * lib/glob.c: Likewise.
19906         * lib/glob-libc.h: Likewise.
19907         * lib/random_r.c: Likewise.
19908         * lib/siglist.h: Likewise.
19909         * lib/strsignal.c: Likewise.
19910         Reported by Ian Beckwith <ianb@erislabs.net>.
19911
19912 2009-09-17  Eric Blake  <ebb9@byu.net>
19913
19914         rmdir: ensure correct dependency order
19915         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
19916
19917 2009-09-17  Bruno Haible  <bruno@clisp.org>
19918
19919         Disable assertion that fails on NetBSD 5 / i386.
19920         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
19921         Reported by Sam Steingold <sds@gnu.org>
19922         and Hasso Tepper <hasso@netbsd.org>.
19923
19924 2009-09-16  Eric Blake  <ebb9@byu.net>
19925
19926         unlinkdir: port to mingw
19927         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
19928         on which no one can unlink a directory.
19929
19930         stdlib: sort witness names
19931         * modules/stdlib (Makefile.am): Sort replacements.
19932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
19933         * lib/stdlib.in.h: Likewise.
19934
19935         parse-duration-tests: avoid link failure
19936         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
19937         LIBINTL.
19938         Reported by Tom G. Christensen.
19939
19940         openat-tests: ensure unlinkat behaves like rmdir
19941         * tests/test-rmdir.c (main): Factor guts...
19942         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
19943         * modules/rmdir-tests (Files): Ship new file.
19944         * modules/openat-tests: New test.
19945         * tests/test-unlinkat.c: Likewise.
19946
19947         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
19948         * modules/rmdir-errno (Status, Notice): Now obsolete.
19949
19950         rmdir: work around cygwin 1.5.x and mingw bugs
19951         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
19952         * lib/rmdir.c (rmdir): Work around it.
19953         * modules/rmdir (Status, Notice): No longer obsolete.
19954         (Files): Add dos.m4.
19955         (Depends-on): Add unistd.
19956         (configure.ac): Set witnesses.
19957         (License): Relax to LGPLv2+.
19958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
19959         * modules/unistd (Makefile.am): Substitute witnesses.
19960         * lib/unistd.in.h (rmdir): Declare replacement.
19961         * doc/posix-functions/rmdir.texi (rmdir): Document this.
19962         * modules/rmdir-tests: New tests.
19963         * tests/test-rmdir.c: Likewise.
19964
19965 2009-09-15  Eric Blake  <ebb9@byu.net>
19966
19967         fchdir: improve use of replacement functions
19968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
19969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
19970         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
19971         REPLACE_CLOSEDIR.
19972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
19973         * modules/sys_stat (Makefile.am): Substitute correct witness.
19974         * modules/dirent (Makefile.am): Likewise.
19975         * modules/unistd (Makefile.am): Likewise.
19976         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
19977         * lib/unistd.in.h (dup): Likewise.
19978         * lib/sys_stat.in.h (fstat): Likewise.
19979
19980         maint: ignore gnulib-tool temp files
19981         * .gitignore: Ignore files created during gnulib-tool --test.
19982
19983 2009-09-13  Jim Meyering  <meyering@redhat.com>
19984
19985         posixtm: don't reject a time that specify "60" as the number of seconds
19986         * lib/posixtm.c (posixtime): The code to reject invalid dates
19987         would also reject a time specified with the .60 suffix.
19988         But POSIX allows that, in order to accommodate leap seconds.
19989         So don't reject it.
19990         (main): Adjust tests accordingly.
19991         * modules/posixtm (Depends-on): Add stpcpy.
19992
19993 2009-09-11  Jim Meyering  <meyering@redhat.com>
19994
19995         announce-gen: include [$release_type] in emitted Subject:
19996         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
19997         e.g., [stable] in the emitted Subject: line.
19998
19999 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20000
20001         Remove obsolete macros from several modules.
20002         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20003         obsolete Autoconf macros with their modern counterparts.
20004         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20005         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20007         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20008         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20009         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20011         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20012         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20013         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20014         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20015         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20016         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20017         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20018         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20019         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20020         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20021         * m4/time_r.m4 (gl_TIME_R): Likewise.
20022         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20023         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20024         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20025
20026         Fix copyright header in build-aux scripts.
20027         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20028         recommendation.
20029         * build-aux/ncftpput-ftp: Likewise.
20030         * build-aux/update-copyright: Likewise.
20031
20032 2009-09-09  Eric Blake  <ebb9@byu.net>
20033
20034         test-link: allow Linux choice of errno
20035         * tests/test-link.c (main): Relax test for alternate error.
20036
20037         strndup: fix improper m4 caching
20038         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20039         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20040         (gl_PREREQ_STRNDUP): Delete.
20041         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20042         * modules/string (Makefile.am): Substitute it.
20043         * lib/string.in.h (strndup): Modernize prototype.
20044
20045         getcwd: port to mingw
20046         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20047         different from the POSIX assumptions made throughout the getcwd
20048         module; fortunately, the mingw getcwd does not need replacement.
20049         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20050         * modules/getcwd-tests: New test.
20051         * tests/test-getcwd.c: Likewise.
20052
20053         link: fix platform bugs
20054         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20055         * lib/link.c (link): Work around them.  Fix related mingw bug.
20056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20057         * modules/unistd (Makefile.am): Substitute it.
20058         * lib/unistd.in.h (link): Declare replacement.
20059         * doc/posix-functions/link.texi (link): Document this.
20060         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20061
20062         test-link: consolidate into single C program, test more cases
20063         * tests/test-link.sh: Delete.
20064         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20065         at least Cygwin and Solaris.
20066         * modules/link-tests (Files): Remove unused file.
20067         (Depends-on): Add errno, sys_stat.
20068         (Makefile.am): Simplify.
20069
20070 2009-09-08  Bruno Haible  <bruno@clisp.org>
20071
20072         Work around towlower, towupper bug on mingw.
20073         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20074         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20075         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20076         * doc/posix-functions/towupper.texi: Likewise.
20077         Reported by Eric Blake.
20078
20079 2009-09-08  Jim Meyering  <meyering@redhat.com>
20080
20081         build: don't try to run autoheader if we don't use it
20082         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20083         is not used in configure.ac.
20084
20085 2009-09-08  Eric Blake  <ebb9@byu.net>
20086
20087         euidaccess: fix compilation error
20088         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20089
20090         rawmemchr: relax license
20091         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20092         okay.
20093         Reported by Jim Meyering.
20094
20095         mkfifoat: new module
20096         * modules/mkfifoat: New file.
20097         * lib/mkfifoat.c: Likewise.
20098         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20099         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20100         * modules/sys_stat (Makefile.am): Use them.
20101         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20102         * MODULES.html.sh (File system functions): Mention module.
20103         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20104         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20105         * modules/mkfifoat-tests: New test.
20106         * tests/test-mkfifoat.c: Likewise.
20107
20108         strchrnul: relax license
20109         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20110         okay.
20111         Reported by Jim Meyering.
20112
20113 2009-09-08  Eric Blake  <ebb9@byu.net>
20114
20115         fstatat: fix compilation on Solaris
20116         * lib/fstatat.c (includes): Add fcntl.h.
20117         Reported by Pádraig Brady.
20118
20119 2009-09-07  Eric Blake  <ebb9@byu.net>
20120
20121         rename: modernize replacement
20122         * modules/rename (Depends-on): Add stdio.
20123         (configure.ac): Declare witness.
20124         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20125         stdio take care of replacement.
20126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20127         * modules/stdio (Makefile.am): Substitute them.
20128         * lib/stdio.in.h (rename): Declare replacement.
20129         * lib/rename.c (includes): Allow cross-compilation to non-windows
20130         machines.
20131         * doc/posix-functions/rename.texi (rename): Improve
20132         documentation.
20133
20134         stdio: sort witness names
20135         * modules/stdio (Makefile.am): Sort replacements.
20136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20137         * lib/stdio.in.h: Likewise.
20138
20139         getcwd: minor cleanups
20140         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20141         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20142
20143         openat: provide more convenience names
20144         * modules/faccessat (configure.ac): Add C witness.
20145         * lib/unistd.in.h (readlinkat): Fix typo.
20146         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20147         convenience wrappers.
20148         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20149         wrappers in syntax checks.
20150
20151 2009-09-06  Eric Blake  <ebb9@byu.net>
20152
20153         doc: fix comments in recent patches
20154         * lib/faccessat.c: Mention correct function.
20155         * lib/fchmodat.c: Likewise.
20156         * lib/fchownat.c: Likewise.
20157         * lib/symlinkat.c: Likewise.
20158         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20159         constants.
20160
20161         faccessat, symlinkat: continue cleanup of previous patch
20162         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20163         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20164         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20166         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20167         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20168         set.
20169
20170 2009-09-06  Bruno Haible  <bruno@clisp.org>
20171
20172         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20173         (fstatat): Declare if GNULIB_FSTATAT is set.
20174         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20175         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20176         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20177         * modules/fcntl-h (Files): Remove m4/openat.m4.
20178         * modules/sys_stat (Files): Remove m4/openat.m4.
20179         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20180         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20181         * modules/unistd (Files): Remove m4/openat.m4.
20182         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20183         GNULIB_OPENAT.
20184         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20185         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20187         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20188         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20189         gl_OPENAT_DEFAULTS.
20190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20191         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20192         Don't require gl_OPENAT_DEFAULTS.
20193         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20194         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20195         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20196         (gl_OPENAT_DEFAULTS): Remove macro.
20197
20198 2009-09-06  Bruno Haible  <bruno@clisp.org>
20199
20200         * modules/openat (configure.ac): Remove unneeded witness.
20201
20202 2009-09-06  Bruno Haible  <bruno@clisp.org>
20203
20204         Set errno to ENOSYS when a function is entirely unsupported.
20205         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20206         EOPNOTSUPP.
20207         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20208         * modules/chown (Depends-on): Remove errno.
20209
20210 2009-09-06  Bruno Haible  <bruno@clisp.org>
20211
20212         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20213
20214 2009-09-06  Bruno Haible  <bruno@clisp.org>
20215
20216         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20217
20218 2009-09-06  Ben Pfaff  <blp@gnu.org>
20219             Bruno Haible  <bruno@clisp.org>
20220
20221         Work around a glibc bug in strtok_r.
20222         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20223         Undefine if UNDEFINE_STRTOK_R is set.
20224         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20226         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20227         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20228         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20229         UNDEFINE_STRTOK_R.
20230         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20231
20232 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20233
20234         exclude: minor fix
20235         * lib/exclude.c: Include wctype.h
20236
20237 2009-09-06  Akim Demaille  <demaille@gostai.com>
20238
20239         bootstrap: improve error message
20240         * build-aux/bootstrap (find_tool): Upon failure, report the list
20241         of candidates.
20242         Honor the initial value of the envvar.
20243
20244 2009-09-05  Eric Blake  <ebb9@byu.net>
20245
20246         symlinkat: new module
20247         * modules/symlinkat: New file.
20248         * lib/symlinkat.c: Likewise.
20249         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20251         * modules/unistd (Makefile.am): Use them.
20252         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20253         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20254         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20255         * MODULES.html.sh (File system functions): Mention module.
20256         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20257         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20258         * modules/symlinkat-tests: New test.
20259         * tests/test-symlinkat.c: Likewise.
20260
20261         test-openat-safer: add more checks
20262         * tests/test-openat-safer.c (main): Check more code paths.
20263
20264 2009-09-05  Jim Meyering  <meyering@redhat.com>
20265
20266         syntax-check: detect unnecessary inclusion of openat.h
20267         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20268
20269 2009-09-05  Bruno Haible  <bruno@clisp.org>
20270
20271         Support towlower, towupper.
20272         * doc/posix-functions/towlower.texi: Mention module wctype.
20273         * doc/posix-functions/towupper.texi: Likewise.
20274         * lib/wctype.in.h (towlower, towupper): New functions.
20275         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20276         (ASSERT): New macro.
20277         (e): New variable.
20278         (main): Test also towlower, towupper. Test WEOF argument.
20279         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20280
20281 2009-09-05  Bruno Haible  <bruno@clisp.org>
20282
20283         Fix conversion behaviour when the input is invalid.
20284         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20285         mark occurring in first pass of indirect conversion.
20286         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20287         input.
20288         Found by clang's static analyzer.
20289
20290 2009-09-05  Bruno Haible  <bruno@clisp.org>
20291
20292         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20293         where direct conversion is possible.
20294
20295 2009-09-04  Eric Blake  <ebb9@byu.net>
20296
20297         openat: fail with ENOENT on empty name
20298         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20299         buffer.
20300
20301         link-follow: fix logic bug in prior patch
20302         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20303         reversed sense of yes and no in prior patch.  Avoid confusing
20304         compilation failure with desired semantics.
20305
20306         link-follow: accomodate mingw and cross-compilation
20307         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20308         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20309         cross-compilation results to -1, to make linkat easier to
20310         implement when cross-compiling.  Trivially support mingw.
20311         * modules/link-follow (configure.ac): Call new name.
20312         * NEWS: Mention this.
20313
20314 2009-09-03  Eric Blake  <ebb9@byu.net>
20315
20316         faccessat: compile replacement
20317         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20318         needed.
20319
20320         fts: fix compilation error
20321         * lib/fts.c (includes): Re-add "openat.h", for
20322         openat_needs_fchdir.
20323
20324         faccessat: new module
20325         * modules/faccessat: New file.
20326         * lib/faccessat.c: Likewise.
20327         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20329         * modules/unistd (Makefile.am): Use it.
20330         * lib/unistd.in.h (faccessat): Declare it.
20331         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20332         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20333         * MODULES.html.sh (File system functions): Mention it.
20334         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20335         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20336
20337         euidaccess: prefer POSIX over non-standard implementation
20338         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20339         * lib/euidaccess.c (euidaccess): Use it if available.
20340
20341         openat: make template easier to use
20342         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20343         AT_FUNC_F2 to be undefined.
20344         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20345         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20346         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20347         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20348         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20349         Likewise.
20350         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20351         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20352         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20353         Likewise.
20354
20355         openat: declare in POSIX headers
20356         * NEWS: Mention this.
20357         * modules/openat (configure.ac): Declare witnesses.
20358         (Depends-on): Add fcntl-h, sys_stat, unistd.
20359         (Include): Mention correct headers.
20360         * modules/fcntl-h (Depends-on): Add link-warning.
20361         (Files): Add openat.m4.
20362         (Makefile.am): Substitute witnesses.
20363         * modules/sys_stat (Files, Makefile.am): Likewise.
20364         * modules/unistd (Files, Makefile.am): Likewise.
20365         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20366         (gl_OPENAT_DEFAULTS): New macro.
20367         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20370         (SYS_STAT_H): Remove unused variable.
20371         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20372         * lib/fcntl--.h (includes): Remove unneeded header.
20373         * lib/openat-safer.c (includes): Likewise.
20374         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20375         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20376         appropriate headers.
20377         (__OPENAT_PREFIX): Delete.
20378         * lib/fcntl.in.h (openat): Provide declaration.
20379         (AT_FDCWD): Fix Solaris bug.
20380         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20381         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20382         * lib/fchmodat.c (includes):  Adjust to find declaration.
20383         * lib/fchownat.c (includes): Likewise.
20384         * lib/mkdirat.c (includes): Likewise.
20385         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20386         still visible.
20387
20388 2009-09-02  Eric Blake  <ebb9@byu.net>
20389
20390         errno: use consistently
20391         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20392         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20393         * lib/canonicalize.c (ELOOP): Likewise.
20394         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20395         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20396         * lib/lchown.c (EOPNOTSUPP): Likewise.
20397         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20398         * lib/savewd.c (ESTALE): Likewise.
20399         * lib/settime.c (ENOSYS): Likewise.
20400         * lib/utimens.c (ENOSYS): Likewise.
20401         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20402         * lib/chdir-safer.c (ELOOP): Likewise.
20403         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20404         * modules/c-stack (Depends-on): Add errno.
20405         * modules/canonicalize (Depends-on): Likewise.
20406         * modules/chdir-safer (Depends-on): Likewise.
20407         * modules/fdopendir (Depends-on): Likewise.
20408         * modules/inet_ntop (Depends-on): Likewise.
20409         * modules/inet_pton (Depends-on): Likewise.
20410         * modules/lchown (Depends-on): Likewise.
20411         * modules/openat (Depends-on): Likewise.
20412         * modules/savewd (Depends-on): Likewise.
20413         * modules/settime (Depends-on): Likewise.
20414         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20415
20416         fts: avoid leaking fds
20417         * modules/fts (Depends-on): Add cloexec.
20418         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20419         flag.
20420
20421         fts: make directory fds more robust
20422         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20423         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20424
20425         backupfile, chdir-long, fts, savedir: make safer
20426         * lib/backupfile.c (includes): Use "dirent--.h", since
20427         numbered_backup can write to stderr during readdir.
20428         * lib/savedir.c (includes): Likewise.
20429         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20430         emulation can write to stderr on failure.
20431         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20432         * lib/getcwd.c: Document why opendir_safer is unused.
20433         * lib/glob.c: Likewise.
20434         * lib/scandir.c: Likewise.
20435         * lib/openat-proc.c: Likewise, for open_safer.
20436         * modules/backupfile (Depends-on): Add dirent-safer.
20437         * modules/savedir (Depends-on): Likewise.
20438         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20439         * modules/chdir-long (Depends-on): Add openat-safer.
20440
20441         openat-safer: new module
20442         * modules/openat-safer: New file.
20443         * lib/openat-safer.c: Likewise.
20444         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20445         * lib/fcntl-safer.h (openat_safer): Declare.
20446         * lib/fcntl--.h (openat): Override.
20447         * MODULES.html.sh (File descriptor based I/O): Mention it.
20448         * lib/openat.h: Add double-inclusion guards.
20449         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20450         "fcntl--.h", so we can implement openat.
20451         * modules/openat-safer-tests: New test.
20452         * tests/test-openat-safer.c: New file.
20453
20454         dirent-safer: new module
20455         * modules/dirent-safer: New file.
20456         * lib/dirent--.h: Likewise.
20457         * lib/dirent-safer.h: Likewise.
20458         * lib/opendir-safer.c: Likewise.
20459         * m4/dirent-safer.m4: Likewise.
20460         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20461         * modules/dirent-safer-tests: New test.
20462         * tests/test-dirent-safer.c: New file.
20463         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20464
20465         fdopendir: optimize on mingw
20466         * lib/unistd.in.h (_gl_directory_name): New prototype.
20467         * lib/fchdir.c (_gl_directory_name): Implement it.
20468         (fchdir): Use it to simplify implementation.
20469         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20470         fchdir, when available, to avoid calling [f]chdir().
20471
20472         fdopendir: split into its own module
20473         * lib/openat.c (fdopendir): Move...
20474         * lib/fdopendir.c: ...into new file.
20475         * modules/fdopendir: New module.
20476         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20477         * modules/openat (Depends-on): Add fdopendir.
20478         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
20479         fdopendir here.
20480         * modules/savedir (Depends-on): Only need fdopendir, not full
20481         openat.
20482         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
20483         * lib/openat.h (fdopendir): Drop prototype.
20484         * lib/dirent.in.h (fdopendir): Provide prototype.
20485         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
20486         * modules/dirent (Makefile.am): Substitute them.
20487         * MODULES.html.sh (File system functions): Mention it.
20488         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
20489         * modules/fdopendir-tests: New file.
20490         * tests/test-fdopendir.c: Likewise.
20491
20492         fchdir: use more consistent macro convention
20493         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
20494         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
20495         REPLACE_FCHDIR, rather than relying on config.h macros.
20496         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
20497         inside a single make-time REPLACE_FCHDIR block, rather than using
20498         the config.h FCHDIR_REPLACEMENT.
20499         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
20500         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
20501         Manage fstat replacement.
20502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
20503         REPLACE_FCHDIR.
20504         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20505         (Makefile.am): Substitute REPLACE_FCHDIR.
20506         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20507         FCHDIR_REPLACEMENT.
20508         * lib/dup-safer.c (dup_safer): Likewise.
20509         * lib/dup2.c (rpl_dup2): Likewise.
20510         * lib/dup3.c (rpl_dup3): Likewise.
20511         * lib/open.c (rpl_open): Likewise.
20512
20513         fchdir: simplify error handling, and support dup3
20514         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20515         stdbool, malloc-posix, realloc-posix.
20516         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20517         (ensure_dirs_slot): Return false on allocation failure.
20518         (rpl_dup2): Delete.
20519         (_gl_register_dup): New function.
20520         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20521         (_gl_register_fd): Close fd on allocation failure.
20522         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20523         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20524         prototype.
20525         (rpl_dup2_fchdir): Delete prototype.
20526         * lib/open.c (open): Update caller.
20527         * lib/dup2.c (dup2): Track fchdir metadata.
20528         * lib/dup3.c (dup3): Likewise.
20529         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20531
20532 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20533
20534         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20535         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20536         don't pass arguments to AC_OUTPUT.
20537
20538 2009-09-02  Bruno Haible  <bruno@clisp.org>
20539
20540         * modules/mkdtemp (License): Relicense under LGPLv2+.
20541         Reported by Paolo Bonzini.
20542
20543 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20544
20545         Replace uses of obsolete autoconf macros in Jim's modules.
20546         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20547         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20548         can evoke a warning from autoconf when run with -Wobsolete
20549         enabled.  They were declared obsolete for good reasons (see
20550         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20551         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
20552         should not continue using the deprecated macros.
20553         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
20554         obsolete Autoconf macros with modern counterparts.
20555         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20556         * m4/dos.m4 (gl_AC_DOS): Likewise.
20557         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
20558         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20559         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
20560         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
20561         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
20562         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20563         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
20564         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
20565         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20566         Likewise.
20567         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20568         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20569         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
20570         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
20571         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20572         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20573
20574 2009-09-01  Eric Blake  <ebb9@byu.net>
20575
20576         fchdir: fix off-by-one bug in previous patch
20577         * lib/fchdir.c (rpl_fstat): Use correct bounds.
20578         (_gl_unregister_fd): Delete useless if.
20579
20580 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
20581
20582         maint.mk: sort the list of syntax-check rules
20583         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
20584         easier to get a sense of progress when the rules are run sequentially
20585         and take a long time.
20586
20587 2009-09-01  Simon Josefsson  <simon@josefsson.org>
20588
20589         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
20590         * modules/netinet_in: Likewise.
20591         * modules/sys_file: Likewise.
20592         * modules/sys_ioctl: Likewise.
20593         * modules/sys_select: Likewise.
20594         * modules/sys_socket: Likewise.
20595         * modules/sys_stat: Likewise.
20596         * modules/sys_time: Likewise.
20597         * modules/sys_times: Likewise.
20598         * modules/sys_utsname: Likewise.
20599         * modules/sys_wait: Likewise.
20600
20601 2009-09-01  Jim Meyering  <meyering@redhat.com>
20602
20603         fts: help ensure that return values are not ignored
20604         * lib/fts_.h (__GNUC_PREREQ): Define.
20605         (__attribute_warn_unused_result__): Define.
20606         (fts_children, fts_close, fts_open, fts_read): Declare with
20607         __attribute_warn_unused_result__.
20608
20609         fts: fts_close now fails also when closing a dir file descriptor fails
20610         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
20611         and propagate to caller, along with errno.
20612
20613         announce-gen: correct formatting in --help output
20614         * build-aux/announce-gen (usage): Move the one-line description in
20615         --help output "up", to where it belongs, just after Usage:.
20616
20617 2009-08-31  Eric Blake  <ebb9@byu.net>
20618
20619         fchdir: port to mingw
20620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
20621         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
20622         opened, then use a substitute.
20623         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
20624         replacement.
20625         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
20626         (_gl_register_fd): No need to check stat if open already filters
20627         all directories.
20628         (fchdir): Fix error condition to match POSIX.
20629         * modules/fchdir (Depends-on): Add sys_stat.
20630         * doc/posix-functions/open.texi (open): Document the limitation.
20631         * modules/fchdir-tests: New file.
20632         * tests/test-fchdir.c: Likewise.
20633
20634         canonicalize: allow cross-testing from cygwin to mingw
20635         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
20636         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
20637         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
20638         Likewise.
20639         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
20640         target does not support symlinks.
20641         * tests/test-canonicalize-lgpl.sh: Likewise.
20642
20643         chown: avoid compilation warning on mingw
20644         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
20645         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
20646         mingw.
20647         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20648         * modules/chown (Depends-on): Add errno.
20649
20650 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20651
20652         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
20653         command.
20654
20655 2009-08-31  Jim Meyering  <meyering@redhat.com>
20656
20657         canonicalize: remove useless initialization
20658         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
20659         initialization of local, "end".
20660
20661 2009-08-30  Bruno Haible  <bruno@clisp.org>
20662
20663         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
20664         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
20665         ENOSYS.
20666
20667 2009-08-30  Bruno Haible  <bruno@clisp.org>
20668
20669         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
20670         /usr/xpg4/bin/tr when it exists.
20671         * tests/test-pipe-filter-gi1.sh: Likewise.
20672
20673 2009-08-30  Bruno Haible  <bruno@clisp.org>
20674
20675         Work around deficient /usr/bin/id program on Solaris.
20676         * tests/test-file-has-acl.sh (ID): New variable.
20677         * tests/test-set-mode-acl.sh (ID): Likewise.
20678         * tests/test-copy-acl.sh (ID): Likewise.
20679         * tests/test-copy-file.sh (ID): Likewise.
20680
20681 2009-08-30  Bruno Haible  <bruno@clisp.org>
20682
20683         New module 'xstriconveh'.
20684         * lib/xstriconveh.h: New file.
20685         * lib/xstriconveh.c: New file.
20686         * modules/xstriconveh: New file.
20687
20688 2009-08-30  Bruno Haible  <bruno@clisp.org>
20689
20690         Make it easier to use mem_cd_iconveh.
20691         * lib/striconveh.h (iconveh_t): New type.
20692         (iconveh_open, iconveh_close): New declarations.
20693         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20694         with a single 'const iconveh_t *' argument.
20695         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
20696         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20697         with a single 'const iconveh_t *' argument.
20698         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
20699         * tests/test-striconveh.c (main): Update.
20700         * NEWS: Mention the change.
20701
20702 2009-08-30  Bruno Haible  <bruno@clisp.org>
20703
20704         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
20705         problem.
20706
20707 2009-08-30  Bruno Haible  <bruno@clisp.org>
20708
20709         Work around iconv_open problem on Solaris.
20710         * lib/iconv_open-solaris.gperf: New file.
20711         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
20712         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
20713         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
20714         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
20715         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
20716         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
20717
20718 2009-08-29  Jim Meyering  <meyering@redhat.com>
20719
20720         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
20721         * top/maint.mk (cvs-check): Remove target; it was just an alias
20722         to the better-named vc-diff-check.
20723         (maintainer-distcheck): Remove rule.  It was used only from
20724         the (alpha/beta/major) target, and all of its commands but one
20725         were coreutils-specific.
20726         (vc-dist): Remove rule.
20727         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
20728         Run vc-diff-check, not vc-dist.
20729         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
20730
20731 2009-08-27  Bruno Haible  <bruno@clisp.org>
20732
20733         * tests/test-bitrotate.c (main): Remove test that uses a shift count
20734         of 0.
20735
20736 2009-08-27  Bruno Haible  <bruno@clisp.org>
20737
20738         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
20739         compilers.
20740         * doc/func.texi: Document the SunPRO C bug.
20741
20742 2009-08-27  Bruno Haible  <bruno@clisp.org>
20743
20744         Fix link error on Solaris.
20745         * tests/test-parse-duration.c (xstrdup): Remove function.
20746
20747 2009-08-26  Pádraig Brady  <P@draigbrady.com>
20748
20749         ignore-value: handle pointer types, too
20750         * lib/ignore-value.h (__attribute__): Remove definition.
20751         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
20752         of a more concise and more-often effective "(void) i" statement.
20753         (ignore_ptr): New function to suppress warnings from functions that
20754         return pointers, and to make it explicit that one function doesn't
20755         handle all cases.
20756
20757 2009-08-25  Bruno Haible  <bruno@clisp.org>
20758
20759         dup2: work around a Linux bug.
20760         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
20761         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
20762         * doc/posix-functions/dup2.texi: Mention the Linux bug.
20763         Reported by Simon Josefsson.
20764
20765 2009-08-25  Jim Meyering  <meyering@redhat.com>
20766
20767         libguestfs uses gnulib
20768         * users.txt: Add libguestfs.
20769
20770 2009-08-24  Eric Blake  <ebb9@byu.net>
20771
20772         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
20773         * lib/pipe2.c (includes): Add binary-io.h.
20774         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
20775
20776 2009-08-24  Bruno Haible  <bruno@clisp.org>
20777
20778         Tolerate declared but missing accept4 syscall.
20779         * lib/accept4.c (accept4): Invoke original accept4 function first, if
20780         available.
20781         * lib/sys_socket.in.h (accept4): If the function is already present,
20782         override it.
20783         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
20784         * modules/accept4 (Makefile.am): Compile accept4.c always.
20785         Reported by Paolo Bonzini and Eric Blake.
20786
20787 2009-08-23  Bruno Haible  <bruno@clisp.org>
20788
20789         New module 'accept4'.
20790         * lib/sys_socket.in.h (accept4): New declaration.
20791         * lib/accept4.c: New file.
20792         * m4/accept4.m4: New file.
20793         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20794         GNULIB_ACCEPT4, HAVE_ACCEPT4.
20795         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
20796         HAVE_ACCEPT4.
20797         * modules/accept4: New file.
20798         * doc/glibc-functions/accept4.texi: Mention the new module.
20799
20800 2009-08-24  Jim Meyering  <meyering@redhat.com>
20801
20802         progname: also set global program_invocation_name, when possible
20803         Before this change, a libtool-enabled program that calls glibc's
20804         error function would report the program name as
20805         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
20806         * modules/progname (configure.ac): Check for a declaration of
20807         program_invocation_name.
20808         * lib/progname.c:  Include <errno.h>.
20809         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
20810         Set program_invocation_name.
20811
20812 2009-08-23  Bruno Haible  <bruno@clisp.org>
20813
20814         * lib/dup3.c: Include <string.h>.
20815
20816 2009-08-23  Bruno Haible  <bruno@clisp.org>
20817
20818         * lib/dup3.c (dup3): Test only once whether the system actually exists.
20819         * lib/pipe2.c (pipe2): Likewise.
20820         Suggested by Eric Blake.
20821
20822 2009-08-23  Bruno Haible  <bruno@clisp.org>
20823
20824         Tolerate declared but missing dup3 syscall.
20825         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
20826         * lib/unistd.in.h (dup3): If the function is already present,
20827         override it.
20828         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
20829         * modules/dup3 (Makefile.am): Compile dup3.c always.
20830         Reported by Paolo Bonzini.
20831
20832 2009-08-23  Bruno Haible  <bruno@clisp.org>
20833
20834         Tolerate declared but missing pipe2 syscall.
20835         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
20836         available.
20837         * lib/unistd.in.h (pipe2): If the function is already present,
20838         override it.
20839         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
20840         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
20841         Reported by Paolo Bonzini.
20842
20843 2009-08-23  Bruno Haible  <bruno@clisp.org>
20844
20845         * lib/pipe2.c (pipe2): Move #ifs inside function.
20846
20847 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20848
20849         quotearg: document limitations of quote_these_too
20850         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
20851         those limitations are created.
20852         * lib/quotearg.h (set_char_quoting): Document that digits and
20853         letters that are special after backslash are not permitted.
20854         (quotearg_char): Cross-reference set_char_quoting documentation.
20855
20856 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
20857
20858         quotearg: implement custom_quoting_style
20859         * lib/quotearg.c: (struct quoting_options): Add left_quote and
20860         right_quote fields.
20861         (set_custom_quoting): New public function.
20862         (quotearg_buffer_restyled): Add left_quote and right_quote
20863         arguments, handle them very much like locale quoting, and update
20864         all uses.
20865         (quotearg_n_custom): New public function.
20866         (quotearg_n_custom_mem): New public function.
20867         (quotearg_custom): New public function.
20868         (quotearg_custom_mem): New public function.
20869         * lib/quotearg.h: Prototype and document new public functions.
20870         (enum quoting_style): For escape_quoting_style and
20871         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
20872         ignored even though they're otherwise like c_quoting_style.
20873         Add custom_quoting_style member and document with comparison to
20874         clocale_quoting_style.
20875         * tests/test-quotearg.c (custom_quotes): New array.
20876         (custom_results): New array.
20877         (main): Extend to test custom quoting.
20878
20879 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20880
20881         quotearg: fix right quote escaping when it's in quote_these_too
20882         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
20883         quote, be sure to prepend only one backslash.
20884         * tests/test-quotearg.c (use_quote_double_quotes): New function.
20885         (main): Test it.
20886
20887 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20888
20889         quotearg-tests: test escaping of embedded locale quotes
20890         * tests/test-quotearg.c (struct result_strings): Add member for
20891         new input.
20892         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
20893         (inputs): Add new input.
20894         (results_g): Add expected results.
20895         (flag_results): Likewise.
20896         (locale_results): Likewise.
20897         (compare_strings): Check those.
20898
20899 2009-08-23  Bruno Haible  <bruno@clisp.org>
20900
20901         Tests for module 'dup3'.
20902         * modules/dup3-tests: New file.
20903         * tests/test-dup3.c: New file.
20904
20905         New module 'dup3'.
20906         * lib/unistd.in.h (dup3): New declaration.
20907         * lib/dup3.c: New file.
20908         * m4/dup3.m4: New file.
20909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
20910         HAVE_DUP3.
20911         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
20912         * modules/dup3: New file.
20913         * doc/glibc-functions/dup3.texi: Mention the new module.
20914
20915 2009-08-23  Bruno Haible  <bruno@clisp.org>
20916
20917         Tweak the dup2 test.
20918         * tests/test-dup2.c (main): Create the test file empty. Verify that an
20919         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
20920         the test file is still empty. Fix argument order of lseek.
20921
20922 2009-08-23  Bruno Haible  <bruno@clisp.org>
20923
20924         Avoid test link errors when the modules getopt-gnu, gettext are used.
20925         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
20926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20927
20928 2009-08-23  Bruno Haible  <bruno@clisp.org>
20929
20930         Fix getdtablesize() on mingw.
20931         * lib/getdtablesize.c (getdtablesize): Implement differently.
20932         * lib/unistd.in.h (getdtablesize): Improve comment.
20933
20934 2009-08-23  Bruno Haible  <bruno@clisp.org>
20935
20936         New module 'mkostemp'.
20937         Based on Ulrich Drepper's 2007-08-10 change in glibc.
20938         * lib/stdlib.in.h (mksotemp): New declaration.
20939         * lib/mkostemp.c: New file, from glibc with modifications.
20940         * lib/tempname.h (GT_FILE): Remove outdated comment.
20941         (gen_tempname): Add flags argument.
20942         * lib/tempname.c (__GT_BIGFILE): Remove macro.
20943         (__GT_FILE): Map to 1.
20944         (small_open, large_open): Remove macros.
20945         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
20946         * lib/mkstemp.c (mkstemp): Update.
20947         * lib/mkdtemp.c (mkdtemp): Likewise.
20948         * m4/mkostemp.m4: New file.
20949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
20950         HAVE_MKOSTEMP.
20951         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
20952         HAVE_MKOSTEMP.
20953         * modules/mkostemp: New file, based on modules/mkstemp.
20954         * doc/glibc-functions/mkostemp.texi: Mention the new module.
20955         * NEWS: Mention the change.
20956
20957 2009-08-23  Bruno Haible  <bruno@clisp.org>
20958
20959         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
20960         Reported by Eric Blake.
20961
20962 2009-08-23  Bruno Haible  <bruno@clisp.org>
20963
20964         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
20965         Reported by Eric Blake.
20966
20967 2009-08-23  Bruno Haible  <bruno@clisp.org>
20968
20969         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
20970         * modules/pipe2 (Depends-on): Likewise.
20971
20972 2009-08-23  Eric Blake  <ebb9@byu.net>
20973
20974         fcntl-h: add O_TTY_INIT support
20975         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
20976         * tests/test-fcntl-h.c (o): Test it.
20977         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20978
20979         fcntl-h: rename from fcntl, in preparation for fcntl(2)
20980         * modules/fcntl: Move <fcntl.h> header replacement...
20981         * modules/fcntl-h: ...to new name, so as not to collide with
20982         like-named function.
20983         * tests/test-fcntl.c: Rename...
20984         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
20985         * modules/fcntl-tests: Rename...
20986         * modules/fcntl-h-tests: ...to this.  Update test file name.
20987         * modules/chdir-long (Depends-on): Update clients.
20988         * modules/chdir-safer (Depends-on): Likewise.
20989         * modules/fcntl-safer (Depends-on): Likewise.
20990         * modules/fts (Depends-on): Likewise.
20991         * modules/mkancesdirs (Depends-on): Likewise.
20992         * modules/mkdir-p (Depends-on): Likewise.
20993         * modules/open (Depends-on): Likewise.
20994         * modules/savewd (Depends-on): Likewise.
20995         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
20996         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20997
20998 2009-08-22  Bruno Haible  <bruno@clisp.org>
20999
21000         * modules/binary-io (License): Relicense under LGPL.
21001         * modules/pipe2 (License): Likewise.
21002
21003 2009-08-22  Bruno Haible  <bruno@clisp.org>
21004
21005         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21006         return value.
21007         * lib/pipe-filter-gi.c (filter_init): Likewise.
21008         Reported by Eric Blake.
21009
21010 2009-08-22  Bruno Haible  <bruno@clisp.org>
21011
21012         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21013         * modules/pipe (Depends-on): Add pipe2.
21014
21015 2009-08-22  Bruno Haible  <bruno@clisp.org>
21016
21017         Tests for module 'pipe2'.
21018         * modules/pipe2-tests: New file.
21019         * tests/test-pipe2.c: New file.
21020
21021         New module 'pipe2'.
21022         * lib/unistd.in.h (pipe2): New declaration.
21023         * lib/pipe2.c: New file.
21024         * m4/pipe2.m4: New file.
21025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21026         HAVE_PIPE2.
21027         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21028         * modules/pipe2: New file.
21029         * doc/glibc-functions/pipe2.texi: Mention the new module.
21030
21031 2009-08-22  Bruno Haible  <bruno@clisp.org>
21032
21033         Reference some new glibc functions.
21034         * doc/glibc-functions/accept4.texi: New file.
21035         * doc/glibc-functions/dup3.texi: New file.
21036         * doc/glibc-functions/mkostemp.texi: New file.
21037         * doc/glibc-functions/pipe2.texi: New file.
21038         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21039         (Glibc sys/socket.h): Refer to accept4.
21040         (Glibc unistd.h): Refer to dup3, pipe2.
21041         Reported by Eric Blake.
21042
21043 2009-08-22  Jim Meyering  <meyering@redhat.com>
21044             Bruno Haible  <bruno@clisp.org>
21045
21046         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21047         This makes it so packages using automake-1.11's silent-rules option
21048         can print e.g., a single "GEN    configmake.h" line, rather than
21049         the 30+ statements that perform the job.  If you want to see the
21050         actual commands, you can still run "make V=1".
21051         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21052         so that make output is abbreviated when those variables are defined
21053         appropriately.
21054         * modules/argz: Likewise.
21055         * modules/arpa_inet: Likewise.
21056         * modules/byteswap: Likewise.
21057         * modules/configmake: Likewise.
21058         * modules/dirent: Likewise.
21059         * modules/errno: Likewise.
21060         * modules/fcntl: Likewise.
21061         * modules/float: Likewise.
21062         * modules/fnmatch: Likewise.
21063         * modules/getopt-posix: Likewise.
21064         * modules/glob: Likewise.
21065         * modules/iconv_open: Likewise.
21066         * modules/inttypes: Likewise.
21067         * modules/localcharset: Likewise.
21068         * modules/locale: Likewise.
21069         * modules/math: Likewise.
21070         * modules/netdb: Likewise.
21071         * modules/netinet_in: Likewise.
21072         * modules/poll: Likewise.
21073         * modules/posix_spawnp-tests: Likewise.
21074         * modules/sched: Likewise.
21075         * modules/search: Likewise.
21076         * modules/selinux-h: Likewise.
21077         * modules/signal: Likewise.
21078         * modules/spawn: Likewise.
21079         * modules/stdarg: Likewise.
21080         * modules/stdbool: Likewise.
21081         * modules/stddef: Likewise.
21082         * modules/stdint: Likewise.
21083         * modules/stdio: Likewise.
21084         * modules/stdlib: Likewise.
21085         * modules/string: Likewise.
21086         * modules/strings: Likewise.
21087         * modules/sys_file: Likewise.
21088         * modules/sys_ioctl: Likewise.
21089         * modules/sys_select: Likewise.
21090         * modules/sys_socket: Likewise.
21091         * modules/sys_stat: Likewise.
21092         * modules/sys_time: Likewise.
21093         * modules/sys_times: Likewise.
21094         * modules/sys_utsname: Likewise.
21095         * modules/sys_wait: Likewise.
21096         * modules/sysexits: Likewise.
21097         * modules/time: Likewise.
21098         * modules/unistd: Likewise.
21099         * modules/wchar: Likewise.
21100         * modules/wctype: Likewise.
21101
21102 2009-08-22  Jim Meyering  <meyering@redhat.com>
21103
21104         announce-gen: detect write failure
21105         * build-aux/announce-gen: Add Coda at end.
21106         Remove equivalent-but-more-verbose block at top.
21107
21108 2009-08-19  Akim Demaille  <demaille@gostai.com>
21109
21110         bootstrap: --help to stdout.
21111         * bootstrap (usage): Don't send --help to stderr.
21112         Use a here doc instead of a long string.
21113
21114 2009-08-21  Eric Blake  <ebb9@byu.net>
21115
21116         test-popen-safer: split from test-popen
21117         * tests/test-popen.c (main): Move...
21118         * tests/test-popen.h: ...into new file.
21119         * tests/test-popen-safer2.c: New file.
21120         * modules/popen-tests (Files): Add test-popen.h.
21121         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21122         Suggested by Bruno Haible.
21123
21124         test-fcntl-safer: split from test-open
21125         * tests/test-open.c (main): Move...
21126         * tests/test-open.h: ...into new file.
21127         * tests/test-fcntl-safer.c: New file.
21128         * modules/open-tests (Files): Add test-open.h.
21129         * modules/fcntl-safer-tests: New file.
21130         Suggested by Bruno Haible.
21131
21132         test-fopen-safer: split from test-fopen
21133         * tests/test-fopen.c (main): Move...
21134         * tests/test-fopen.h: ...into new file.
21135         * tests/test-fopen-safer.c: New file.
21136         * modules/fopen-tests (Files): Add test-fopen.h.
21137         * modules/fopen-safer-tests: New file.
21138         Suggested by Bruno Haible.
21139
21140 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21141
21142         popen-safer: test O_CLOEXEC at run-time.
21143         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21144
21145 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21146
21147         fcntl: move more flags to the header
21148         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21149         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21150         * lib/fcntl.in.h: Do both things here.
21151
21152 2009-08-21  Jim Meyering  <meyering@redhat.com>
21153
21154         consistently remove $@-t before redirecting to it
21155         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21156         * modules/alloca-opt: Likewise.
21157         * modules/byteswap: Likewise.
21158         * modules/fnmatch: Likewise.
21159         * modules/getopt-posix: Likewise.
21160         * modules/glob: Likewise.
21161         * modules/poll: Likewise.
21162         * modules/posix_spawnp-tests: Likewise.
21163         * modules/sys_socket: Likewise.
21164         * modules/sysexits: Likewise.
21165
21166 2009-08-21  Eric Blake  <ebb9@byu.net>
21167
21168         popen: simplify access to original popen
21169         * lib/popen.c (rpl_popen): No need to worry about popen being a
21170         macro.
21171         Reported by Bruno Haible.
21172
21173 2009-08-20  Eric Blake  <ebb9@byu.net>
21174
21175         build: avoid some compiler warnings
21176         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21177         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21178         type.
21179         (new_exclude_segment, excluded_file_pattern_p)
21180         (excluded_file_name_p): Reduce scope.
21181         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21182         old-style declaration.
21183
21184 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21185
21186         * tests/test-exclude1.sh: Handle Windows EOL.
21187         * tests/test-exclude2.sh: Likewise.
21188         * tests/test-exclude3.sh: Likewise.
21189         * tests/test-exclude4.sh: Likewise.
21190         * tests/test-exclude5.sh: Likewise.
21191         * tests/test-exclude6.sh: Likewise.
21192         * tests/test-exclude7.sh: Likewise.
21193
21194 2009-08-19  Akim Demaille  <demaille@gostai.com>
21195
21196         bootstrap: find sha1sum when named gsha1sum.
21197         * bootstrap (find_tool): New.
21198         ($SHA1SUM): New.
21199         Use it.
21200
21201 2009-08-20  Jim Meyering  <meyering@redhat.com>
21202
21203         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21204         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21205         expression that converts "." in a file name to "\." in the resulting
21206         regexp.  Start with a dummy statement, so that prior shell variable
21207         definitions are expanded portably.  Reported by Simon Josefsson.
21208
21209 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21210
21211         Fix polling for writeability of a screen buffer.
21212         * lib/poll.c: Distinguish input and screen buffers for the
21213         Win32 implementation.
21214         * lib/select.c: Likewise.
21215
21216 2009-08-19  Eric Blake  <ebb9@byu.net>
21217
21218         popen-safer: prevent popen from clobbering std descriptors
21219         * modules/popen-safer: New file.
21220         * lib/popen-safer.c: Likewise.
21221         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21222         * lib/stdio--.h (popen): Provide override.
21223         * lib/stdio-safer.h (popen_safer): Provide declaration.
21224         * tests/test-popen.c (includes): Partially test this.
21225         * modules/popen-safer-tests: New file, for more tests.
21226         * tests/test-popen-safer.c: Likewise.
21227         * MODULES.html.sh (file stream based Input/Output): Mention it.
21228
21229         tests: test some of the *-safer modules
21230         * modules/fopen-safer (Depends-on): Add fopen.
21231         * modules/fcntl-safer (Depends-on): Add fcntl.
21232         * modules/stdlib-safer (Depends-on): Add stdlib.
21233         (configure.ac): Set indicator.
21234         * modules/unistd-safer (configure.ac): Likewise.
21235         * modules/tmpfile-safer (configure.ac): Likewise.
21236         (Depends-on): Add tmpfile.
21237         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21238         active.
21239         * tests/test-fopen.c (includes): Test safer versions when they are
21240         in use.
21241         * tests/test-open.c (includes): Likewise.
21242
21243         popen: fix cygwin 1.5 bug when stdin closed
21244         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21245         * modules/popen: New file.
21246         * modules/popen-tests: Likewise.
21247         * tests/test-popen.c: Likewise.
21248         * m4/popen.m4: Likewise.
21249         * lib/popen.c: Likewise.
21250         * lib/stdio.in.h (popen): New declaration.
21251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21252         * modules/stdio (Makefile.am): Likewise.
21253         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21254
21255 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21256
21257         maint.mk: give full control over update-copyright exclusions
21258         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21259         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21260         (update-copyright): Don't force inclusion of top-level
21261         ChangeLog.  Don't force exclusion of all COPYING files, but make
21262         them the default exclusion instead.
21263
21264 2009-08-16  Bruno Haible  <bruno@clisp.org>
21265
21266         Fix test failures on Solaris 10.
21267         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21268         tests when Solaris iconv() is used.
21269         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21270         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21271         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21272         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21273         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21274
21275 2009-08-16  Bruno Haible  <bruno@clisp.org>
21276
21277         Fix test failures on Solaris 10.
21278         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21279         'tr' program and pass it as first argument.
21280         * tests/test-pipe-filter-gi1.sh: Likewise.
21281         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21282         program as first argument.
21283         * tests/test-pipe-filter-gi1.c (main): Likewise.
21284
21285 2009-08-16  Eric Blake  <ebb9@byu.net>
21286
21287         fpurge: fix previous commits
21288         * modules/fpurge (Makefile.am): Make replacement conditional,
21289         partially reverting 2007-04-29 change; missed in previous
21290         attempt.
21291         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21292         is missing.
21293
21294 2009-08-16  Bruno Haible  <bruno@clisp.org>
21295
21296         Clarify fpurge's effect on the file position.
21297         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21298         * tests/test-fpurge.c (main): Make a second pass for checking the file
21299         position.
21300
21301 2009-08-16  Bruno Haible  <bruno@clisp.org>
21302
21303         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21304         declaration of fpurge is missing.
21305         * tests/test-fpurge.c (main): Check that the file has not more contents
21306         than expected. Close the file before removing it.
21307
21308 2009-08-15  Eric Blake  <ebb9@byu.net>
21309
21310         fpurge: don't wrap working cygwin implementation
21311         * lib/fpurge.c (fpurge): Fix comment typo.
21312         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21313         1.7 to avoid replacement.
21314         * tests/test-fpurge.c (main): Enhance test.
21315
21316 2009-08-15  Eric Blake  <ebb9@byu.net>
21317         and Jim Meyering  <meyering@redhat.com>
21318
21319         test-update-copyright: skip if perl is insufficient
21320         * tests/test-update-copyright.sh: Failure to run maintainer tool
21321         should not cause testsuite failure on cygwin 1.5.
21322
21323 2009-08-14  Eric Blake  <ebb9@byu.net>
21324
21325         doc: mention more functions added in cygwin 1.7.0
21326         * doc/posix-headers/limits.texi (limits.h): Update for recent
21327         cygwin additions.
21328         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21329         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21330         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21331         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21332         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21333
21334 2009-08-14  Eric Blake  <ebb9@byu.net>
21335
21336         maint.mk: simplify update-copyright rule
21337         * top/maint.mk (update-copyright-local): Delete, and document how
21338         to do it in cfg.mk instead.
21339         (update-copyright-exclude-regexp): Delete, and document how to do
21340         it in .x-update-copyright instead.
21341         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21342         exclude ChangeLog.
21343
21344 2009-08-14  Bruno Haible  <bruno@clisp.org>
21345
21346         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21347
21348 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21349
21350         maint.mk: support update-copyright-env
21351         * top/maint.mk (update-copyright-env): Define place-holder.
21352         (update-copyright): Expand $(update-copyright-env) before
21353         invoking update-copyright.
21354
21355 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21356
21357         update-copyright: implement forced reformatting
21358         * build-aux/update-copyright: Implement and document
21359         UPDATE_COPYRIGHT_FORCE.
21360         * tests/test-update-copyright.sh: Test it.
21361
21362 2009-08-14  Eric Blake  <ebb9@byu.net>
21363         and Bruno Haible  <bruno@clisp.org>
21364
21365         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21366         * tests/test-locale.c: Revert previous patch related to NULL.
21367         * tests/test-stdio.c: Likewise.
21368         * tests/test-stdlib.c: Likewise.
21369         * tests/test-string.c: Likewise.
21370         * tests/test-unistd.c: Likewise.
21371         * modules/time-tests (Depends-on): Add verify.
21372         * modules/wchar-tests (Depends-on): Likewise.
21373         * tests/test-time.c: Test for NULL compliance.
21374         * tests/test-wchar.c: Likewise.
21375         * modules/locale (Depends-on): Add stddef.
21376         * modules/stdio (Depends-on): Likewise.
21377         * modules/stdlib (Depends-on): Likewise.
21378         * modules/string (Depends-on): Likewise.
21379         * modules/time (Depends-on): Likewise.
21380         * modules/unistd (Depends-on): Likewise.
21381         * modules/wchar (Depends-on): Likewise.
21382         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21383         * lib/stdlib.in.h (includes): Likewise.
21384         * lib/string.in.h (includes): Likewise.
21385         * lib/time.in.h (includes): Likewise.
21386         * lib/unistd.in.h (includes): Likewise.
21387         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21388         replaced.
21389         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21390         * m4/stddef_h.m4: New file.
21391         * modules/stddef: Likewise.
21392         * lib/stddef.in.h: Likewise.
21393         * modules/stddef-tests: Likewise.
21394         * tests/test-stddef.c: Likewise.
21395         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21396         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21397         * doc/posix-headers/locale.texi (locale.h): Likewise.
21398         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21399         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21400         * doc/posix-headers/string.texi (string.h): Likewise.
21401         * doc/posix-headers/time.texi (time.h): Likewise.
21402         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21403         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21404
21405 2009-08-14  Eric Blake  <ebb9@byu.net>
21406
21407         doc: improve git diff of texinfo files
21408         * .gitattributes: Add rule for *.texi files, with hint on how to
21409         use it.
21410         Copied from m4, and based on a report by Bruno Haible.
21411
21412 2009-08-14  Bruno Haible  <bruno@clisp.org>
21413
21414         Disable multithread support by default on Cygwin 1.5.x for real.
21415         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21416
21417 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21418
21419         update-copyright: much ado about intervals
21420         * build-aux/update-copyright: Implement and document
21421         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21422         of copyright year intervals.
21423         Also, document UPDATE_COPYRIGHT_YEAR.
21424         * tests/test-update-copyright.sh: Test it.
21425
21426         update-copyright: convert 2-digit to 4-digit years
21427         * build-aux/update-copyright: Implement and document.
21428         * tests/test-update-copyright.sh: Update.
21429
21430 2009-08-14  Jim Meyering  <meyering@redhat.com>
21431
21432         test-exclude: avoid coreutils "make check" failure
21433         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21434         just as in test-argmatch.c.
21435
21436 2009-08-13  Eric Blake  <ebb9@byu.net>
21437
21438         test-dup2: fix bad assumption
21439         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21440         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21441
21442         test-version-etc: fix CRLF portability issue
21443         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21444         recognize \r.
21445         * tests/test-argp-version-etc-1.sh: Likewise.
21446
21447         getopt: update client modules
21448         * modules/argp (Depends-on): Use getopt-gnu.
21449         * modules/git-merge-changelog (Depends-on): Likewise.
21450         * modules/long-options (Depends-on): Likewise.
21451         * modules/xstrtol (Depends-on): Likewise.
21452
21453 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21454
21455         * tests/test-version-etc.sh: Don't fail on different
21456         project/version.  Don't fail on CRLF differences.  Rewrite to use
21457         multiple -e instead of multiple sed forks, suggested by Eric Blake
21458         <ebb9@byu.net>.
21459         * tests/test-argp-version-etc-1.sh: Likewise.
21460
21461 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21462
21463         * tests/test-version-etc.sh: Don't fail on different
21464         project/version.
21465
21466 2009-08-12  Bruno Haible  <bruno@clisp.org>
21467
21468         Tests for modules 'getopt-posix', 'getopt-gnu'.
21469         * modules/getopt-posix-tests: New file.
21470         * tests/test-getopt.c: New file.
21471         * tests/test-getopt.h: New file.
21472         * tests/test-getopt_long.h: New file.
21473
21474         New modules 'getopt-posix', 'getopt-gnu'.
21475         * modules/getopt-gnu: New file, renamed from modules/getopt.
21476         * modules/getopt-posix: New file.
21477         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
21478         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
21479         (gl_GETOPT): Remove macro.
21480         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
21481         Disable the test against BSD systems that declare optreset. Test
21482         against mingw bug. Test against lack of support of optional arguments
21483         on many platforms.
21484         * doc/glibc-headers/getopt.texi: Update module name and list of
21485         relevant platforms.
21486         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
21487         'getopt-gnu' and more portability problems.
21488         * NEWS: Mention the changes.
21489
21490 2009-08-12  Bruno Haible  <bruno@clisp.org>
21491
21492         Ensure that optarg etc. get declared by <unistd.h>.
21493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
21494         AC_USE_SYSTEM_EXTENSIONS.
21495         * modules/getopt (Depends-on): Add 'extensions'.
21496
21497 2009-08-12  Bruno Haible  <bruno@clisp.org>
21498
21499         Avoid test link errors.
21500         * modules/pipe-filter-ii-tests (Makefile.am): Define
21501         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
21502         * modules/pipe-filter-gi-tests (Makefile.am): Define
21503         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21504         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21505
21506 2009-08-12  Bruno Haible  <bruno@clisp.org>
21507
21508         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21509         gl_GETOPT_SUBSTITUTE before.
21510         (gl_GETOPT): Use it.
21511         * m4/argp.m4 (gl_ARGP): Update.
21512         Reported by Sergey Poznyakoff.
21513
21514         * m4/getopt.m4: Reorder macros.
21515         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21516         (gl_GETOPT_SUBSTITUTE): Remove macro.
21517
21518 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21519
21520         Minor improvement in gitlog-to-changelog
21521
21522         * build-aux/gitlog-to-changelog: New option `--format' makes
21523         output format string configurable.
21524
21525 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21526
21527         Optimize exclude: use hash tables for non-wildcard patterns.
21528
21529         * lib/exclude.c: Include hash.h and mbuiter.h
21530         (struct exclude_pattern, exclude_segment): New data types.
21531         (struct exclude): Rewrite.
21532         (fnmatch_pattern_has_wildcards): New function.
21533         (new_exclude_segment, free_exclude_segment): New functions.
21534         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21535         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21536         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21537         * modules/exclude: Depend on hash and mbuiter.
21538
21539         * modules/exclude-tests: New file.
21540         * tests/test-exclude.c: New file.
21541         * tests/test-exclude1.sh: New file.
21542         * tests/test-exclude2.sh: New file.
21543         * tests/test-exclude3.sh: New file.
21544         * tests/test-exclude4.sh: New file.
21545         * tests/test-exclude5.sh: New file.
21546         * tests/test-exclude6.sh: New file.
21547         * tests/test-exclude7.sh: New file.
21548
21549 2009-08-12  Bruno Haible  <bruno@clisp.org>
21550
21551         Ensure that getopt() gets declared by <unistd.h>.
21552         * lib/unistd.in.h: Conditionally include getopt.h.
21553         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
21554         Set GNULIB_UNISTD_H_GETOPT.
21555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21556         GNULIB_UNISTD_H_GETOPT.
21557         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
21558
21559 2009-08-12  Bruno Haible  <bruno@clisp.org>
21560
21561         Clarify logic.
21562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
21563         gl_replace_getopt instead of GETOPT_H.
21564
21565 2009-08-12  Bruno Haible  <bruno@clisp.org>
21566
21567         * m4/getopt.m4: Add comments.
21568
21569 2009-08-12  Bruno Haible  <bruno@clisp.org>
21570
21571         Disable multithread support by default on Cygwin 1.5.x.
21572         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
21573         set gl_use_threads=no if not specified otherwise.
21574
21575 2009-08-11  Bruno Haible  <bruno@clisp.org>
21576
21577         Avoid compilation error on NetBSD 5.0.
21578         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
21579         * tests/test-stdio.c: Likewise.
21580         * tests/test-stdlib.c: Likewise.
21581         * tests/test-string.c: Likewise.
21582         * tests/test-unistd.c: Likewise.
21583         Reported by Greg Troxel <gdt@ir.bbn.com>
21584         at <https://savannah.gnu.org/support/?106973>.
21585
21586 2009-08-11  Bruno Haible  <bruno@clisp.org>
21587
21588         * modules/dup2-tests (Depends-on): Remove close.
21589
21590         Undo 2009-07-19 commit.
21591         * modules/acl-tests (Depends-on): Remove close.
21592         * modules/binary-io-tests (Depends-on): Likewise.
21593         * modules/closein-tests (Depends-on): Likewise.
21594         * modules/flock-tests (Depends-on): Likewise.
21595         * modules/fsync-tests (Depends-on): Likewise.
21596         * modules/lseek-tests (Depends-on): Likewise.
21597         * modules/pipe-tests (Depends-on): Likewise.
21598         * modules/posix_spawn-tests (Depends-on): Likewise.
21599         * modules/posix_spawnp-tests (Depends-on): Likewise.
21600         * modules/stat-time-tests (Depends-on): Likewise.
21601         * modules/yesno-tests (Depends-on): Likewise.
21602
21603 2009-08-10  Bruno Haible  <bruno@clisp.org>
21604
21605         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
21606
21607 2009-08-10  Bruno Haible  <bruno@clisp.org>
21608
21609         Fix a gcc warning.
21610         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
21611
21612 2009-08-10  Bruno Haible  <bruno@clisp.org>
21613
21614         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
21615         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
21616         not only the first time.
21617         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
21618         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
21619         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
21620         is 1, not only the the first time.
21621
21622 2009-08-10  Bruno Haible  <bruno@clisp.org>
21623
21624         Make it possible to use module 'gethostname' without module 'close'.
21625         * lib/unistd.in.h (close): Evoke a link error only if
21626         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21628         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21629         * modules/unistd (Makefile.am): Substitute
21630         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21631         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
21632         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21633         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21634         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21635         * modules/sys_ioctl (Makefile.am): Substitute
21636         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21637         * modules/socket (configure.ac): On native Windows, set
21638         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
21639         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21640         Reported by Sam Steingold <sds@gnu.org>.
21641
21642 2009-08-10  Bruno Haible  <bruno@clisp.org>
21643
21644         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
21645         * modules/ioctl (configure.ac): Likewise.
21646
21647 2009-08-10  Bruno Haible  <bruno@clisp.org>
21648
21649         Avoid collision between gnulib wrapper and libintl wrapper.
21650         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
21651         already defined in intl/printf.c.
21652         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
21653         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
21654
21655 2009-08-09  Bruno Haible  <bruno@clisp.org>
21656
21657         Make <sys/select.h> really self-contained, also on Solaris 10.
21658         * lib/sys_select.in.h: Include <string.h>.
21659         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
21660         Solaris 10 problem.
21661         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
21662         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
21663         Reported by Jim Meyering.
21664
21665 2009-08-09  Bruno Haible  <bruno@clisp.org>
21666
21667         Avoid warnings from 'aclocal' that are due to a use of macro name
21668         AM_XGETTEXT_OPTION that is not defined in automake.
21669         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
21670         automake.
21671         * modules/error (configure.ac): Likewise.
21672         * modules/propername (configure.ac): Likewise.
21673         * modules/vasprintf (configure.ac): Likewise.
21674         * modules/verror (configure.ac): Likewise.
21675         * modules/xprintf (configure.ac): Likewise.
21676         * modules/xvasprintf (configure.ac): Likewise.
21677
21678 2009-08-08  Bruno Haible  <bruno@clisp.org>
21679
21680         Avoid compilation error in C++ mode.
21681         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
21682         Reported by Sam Steingold <sds@gnu.org>.
21683
21684 2009-08-08  Bruno Haible  <bruno@clisp.org>
21685
21686         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
21687         for the various Unix platforms.
21688         * doc/posix-headers/limits.texi: Update platforms list regarding
21689         HOST_NAME_MAX.
21690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21691
21692 2009-08-07  Jim Meyering  <meyering@redhat.com>
21693
21694         selinux-at: fix typo in a comment
21695         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
21696         Spotted by Paolo Bonzini.
21697
21698         selinux-at: remove redundant m4 code, add documentation
21699         * modules/selinux-at (configure.ac): Remove redundant code.
21700         LIB_SELINUX is already set via the dependent module, selinux-h.
21701         (Include): Add quotes around selinux-at.h.
21702         * lib/selinux-at.h: Add documentation.
21703         Reported by Bruno Haible in
21704         http://marc.info/?l=gnulib-bug&m=124958988300749
21705
21706 2009-08-07  Bruno Haible  <bruno@clisp.org>
21707
21708         Avoid link error on MacOS X 10.3 and 10.4.
21709         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
21710         on non-ELF systems.
21711         * lib/argp-pv.c (argp_program_version): Likewise.
21712         Reported by Simon Josefsson.
21713
21714 2009-08-07  Simon Josefsson  <simon@josefsson.org>
21715
21716         * tests/test-version-etc.sh: Use $EXEEXT.
21717
21718 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
21719
21720         update-copyright: update documentation to point to maint.mk
21721         * build-aux/update-copyright: Here.
21722
21723 2009-08-06  Jim Meyering  <meyering@redhat.com>
21724
21725         maint.mk: support update-copyright-local
21726         * top/maint.mk (update-copyright-local): Define place-holder.
21727         (update-copyright): Depend on $(update-copyright-local).
21728
21729 2009-08-06  Jim Meyering  <meyering@redhat.com>
21730
21731         selinux-at: new module
21732         Initially written for coreutils, this module will soon be
21733         used by findutils, too.
21734         * MODULES.html.sh [Misc]: Add selinux-at.
21735         * lib/selinux-at.h: New file, from coreutils.
21736         * lib/selinux-at.c: Likewise.
21737         * modules/selinux-at: Likewise.
21738         (License): Change from LGPL to GPL, since it depends
21739         on the GPL'd openat module.
21740
21741         doc: update README
21742         * README: Remove references to cogito.
21743         Remove cvs-repo-updating instructions from 2007.
21744         Don't imply that CVS is better if you have limited disk space.
21745
21746 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21747
21748         update-copyright: support C-style comments
21749         * build-aux/update-copyright: Implement and document.
21750         * tests/test-update-copyright.sh: Test.
21751
21752 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21753
21754         update-copyright: support omitted "(C)"
21755         * build-aux/update-copyright: Implement and document.  Also,
21756         allow variable whitespace before "(C)".
21757         * tests/test-update-copyright.sh: Test.
21758
21759 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21760
21761         update-copyright: don't trip on non-FSF copyright statements
21762         * build-aux/update-copyright: Fix so that the first correctly
21763         formatted FSF copyright statement is recognized no matter what
21764         appears before it.  Update documentation.
21765         * tests/test-update-copyright.sh: Test that.
21766
21767 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21768
21769         update-copyright: clean up code a little
21770         * build-aux/update-copyright: Append "_re" to the name of any
21771         variable holding a regular expression.
21772         Replace "old" and "new" with "stmt" in variable names.
21773         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
21774         handled correctly.
21775         Format code more consistently.
21776
21777 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21778
21779         update-copyright-tests: improve portability
21780         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
21781         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
21782
21783 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21784
21785         update-copyright: support @copyright{} and &copy;
21786         * build-aux/update-copyright: Implement and document.
21787         * tests/test-update-copyright.sh: Test.
21788
21789 2009-08-04  Jim Meyering  <meyering@redhat.com>
21790
21791         update-copyright-tests: correctly test EOL=\r\n handling
21792         * tests/test-update-copyright.sh: Put \r at the end of some lines
21793         for the dos-eol tests.  Based on a patch by Joel E. Denny.
21794
21795         maint.mk: make update-copyright exclusion list more configurable
21796         * top/maint.mk (update-copyright): Default to excluding COPYING,
21797         but allow an override, in case someone does want to update that file.
21798
21799         maint.mk: don't update copyright date in COPYING
21800         * top/maint.mk (update-copyright): Exclude COPYING.
21801
21802         maint.mk: add a copyright-updating rule
21803         * top/maint.mk (update-copyright): New rule.
21804         Derived from coreutils/Makefile.am.
21805
21806         update-copyright: rename some variables
21807         * build-aux/update-copyright: Rename a few variables for clarity.
21808         Tweak syntax.  List Joel E. Denny as coauthor.
21809
21810 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21811
21812         update-copyright: fix bug for 2-digit last year and add tests
21813         * build-aux/update-copyright: Fix bug.
21814         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
21815         specified.
21816         * modules/update-copyright-tests: New
21817         * tests/test-update-copyright.sh: New.
21818
21819 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21820
21821         update-copyright: handle leading tabs in line prefix
21822         * build-aux/update-copyright: Count leading tabs as 8 spaces
21823         when computing margin.  This helps with the formatting of
21824         ChangeLogs, for example.
21825         Fix documentation a little.
21826
21827 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21828
21829         update-copyright: support EOL=\r\n
21830         * build-aux/update-copyright: Implement that.
21831
21832 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21833
21834         update-copyright: automatically format copyright statements
21835         * build-aux/update-copyright: Implement that.
21836         Also, be a little more predictable and safer by always failing
21837         when the full copyright format is not perfectly recognized as an
21838         unbroken whole.  Discussed at
21839         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
21840         Rewrite documentation.
21841
21842 2009-08-03  Bruno Haible  <bruno@clisp.org>
21843
21844         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
21845
21846 2009-08-02  Bruno Haible  <bruno@clisp.org>
21847
21848         Tests for module 'uname'.
21849         * modules/uname-tests: New file.
21850         * tests/test-uname.c: New file.
21851
21852         New module 'uname'.
21853         * lib/uname.c: New file.
21854         * m4/uname.m4: New file.
21855         * modules/uname: New file.
21856         * doc/posix-functions/uname.texi: Mention the new module.
21857
21858 2009-08-02  Bruno Haible  <bruno@clisp.org>
21859
21860         Tests for module 'sys_utsname'.
21861         * modules/sys_utsname-tests: New file.
21862         * tests/test-sys_utsname.c: New file.
21863
21864         New module 'sys_utsname'.
21865         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
21866         * m4/sys_utsname_h.m4: New file.
21867         * modules/sys_utsname: New file.
21868         * doc/posix-headers/sys_utsname.texi: Mention the new module.
21869
21870 2009-08-02  Bruno Haible  <bruno@clisp.org>
21871
21872         Implicitly initialize the sockets library.
21873         * lib/gethostname.c: Include sockets.h.
21874         (rpl_gethostname): Invoke gl_sockets_startup.
21875         * lib/socket.c: Include sockets.h.
21876         (rpl_socket): Invoke gl_sockets_startup.
21877         * modules/gethostname (Depends-on): Add sockets.
21878         * modules/socket (Depends-on): Likewise.
21879         * tests/test-poll.c: Don't include sockets.h.
21880         (main): Don't invoke gl_sockets_startup.
21881         * tests/test-select.c: Don't include sockets.h.
21882         (main): Don't invoke gl_sockets_startup.
21883
21884 2009-08-02  Bruno Haible  <bruno@clisp.org>
21885
21886         Allow multiple calls to gl_sockets_startup.
21887         * lib/sockets.c (initialized_sockets_version): New variable.
21888         (gl_sockets_startup): Do nothing if already called for this or a higher
21889         version.
21890         (gl_sockets_cleanup): Reset initialized_sockets_version.
21891
21892 2009-08-03  Simon Josefsson  <simon@josefsson.org>
21893
21894         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
21895         different project/version.
21896
21897 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
21898             Bruno Haible  <bruno@clisp.org>
21899
21900         Tests for module 'pipe-filter-gi'.
21901         * modules/pipe-filter-gi-tests: New file.
21902         * tests/test-pipe-filter-gi1.sh: New file.
21903         * tests/test-pipe-filter-gi1.c: New file.
21904         * tests/test-pipe-filter-gi2.sh: New file.
21905         * tests/test-pipe-filter-gi2-main.c: New file.
21906         * tests/test-pipe-filter-gi2-child.c: New file.
21907
21908         New module 'pipe-filter-gi'.
21909         * lib/pipe-filter-gi.c: New file.
21910         * modules/pipe-filter-gi: New file.
21911
21912 2009-08-02  Bruno Haible  <bruno@clisp.org>
21913             Paolo Bonzini  <bonzini@gnu.org>
21914
21915         Tests for module 'pipe-filter-ii'.
21916         * modules/pipe-filter-ii-tests: New file.
21917         * tests/test-pipe-filter-ii1.sh: New file.
21918         * tests/test-pipe-filter-ii1.c: New file.
21919         * tests/test-pipe-filter-ii2.sh: New file.
21920         * tests/test-pipe-filter-ii2-main.c: New file.
21921         * tests/test-pipe-filter-ii2-child.c: New file.
21922
21923         New module 'pipe-filter-ii'.
21924         * lib/pipe-filter.h: New file.
21925         * lib/pipe-filter-ii.c: New file.
21926         * lib/pipe-filter-aux.h: New file.
21927         * modules/pipe-filter-ii: New file.
21928
21929 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21930
21931         * lib/gc-libgcrypt.c: Change copyright to FSF.
21932         * lib/gc-gnulib.c: Likewise.
21933
21934 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
21935
21936         * lib/gethostname.c: Include limits.h.
21937
21938 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21939             Bruno Haible  <bruno@clisp.org>
21940
21941         Ensure HOST_NAME_MAX as part of the gethostname module.
21942         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
21943         define also HOST_NAME_MAX.
21944         * tests/test-gethostname.c: Include <limits.h>.
21945         (main): Check also HOST_NAME_MAX.
21946         * doc/posix-headers/limits.texi: Document the mingw problem.
21947
21948 2009-08-02  Bruno Haible  <bruno@clisp.org>
21949
21950         * lib/gethostname.c (gethostname): Fix handling of large len argument.
21951         Add comments.
21952
21953 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21954
21955         * lib/gethostname.c: Add Windows wrapper.
21956         * m4/gethostname.m4: Look for gethostname in -lws2_32.
21957         * modules/gethostname: Depend on sys_socket & errno, for also
21958         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
21959         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
21960
21961 2009-07-31  Jim Meyering  <meyering@redhat.com>
21962
21963         getloadavg: fix symbol name in comment
21964         * lib/getloadavg.c: Correct a typo I introduced when adding
21965         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
21966         Matt Kraai spotted the problem.
21967
21968 2009-07-29  Matt Kraai  <mkraai@beckman.com>
21969
21970         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
21971         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
21972         code also if ! defined N_NAME_POINTER.
21973         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
21974         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
21975         but the n_name member is a 12-byte array.
21976
21977 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
21978
21979         update-copyright: generalize comment handling
21980         * build-aux/update-copyright: Handle copyright statements
21981         within more comment styles.
21982         Document usage.
21983         Report any file with an external copyright holder or parse failure.
21984
21985 2009-07-29  Jim Meyering  <meyering@redhat.com>
21986
21987         mktime: correct setting of REPLACE_MKTIME
21988         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
21989
21990         update-copyright: new module
21991         * modules/update-copyright: New file.
21992         * build-aux/update-copyright: New file.
21993         * MODULES.html.sh (maint+release support): Add update-copyright.
21994
21995 2009-07-27  Bruno Haible  <bruno@clisp.org>
21996
21997         Fix compilation error when <ctime> is used and mktime is replaced.
21998         * lib/time.in.h (mktime): New declaration.
21999         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22000         REPLACE_MKTIME instead of defining mktime in config.h.
22001         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22002         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22003         Reported by Ross McFarland <rwmcfa1@neces.com>.
22004
22005 2009-07-27  Bruno Haible  <bruno@clisp.org>
22006
22007         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22008         Reported by Matt Kraai <mkraai@beckman.com>.
22009
22010 2009-07-25  Jim Meyering  <meyering@redhat.com>
22011
22012         maint.mk: avoid warnings about missing files
22013         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22014         diagnostic when .prev-version does not exist.
22015         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22016         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22017         nonexistent cfg.mk.
22018         Suggestions from Simon Josefsson.
22019
22020 2009-07-25  Bruno Haible  <bruno@clisp.org>
22021
22022         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22023         defined as macros. Needed on QNX 6.4.1.
22024         Reported by Matt Kraai <mkraai@beckman.com>.
22025
22026 2009-07-23  Jim Meyering  <meyering@redhat.com>
22027
22028         maint.mk: invoke "make dist" with a working value of XZ_OPT
22029         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22030
22031 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22032
22033         Make fseeko.c compile on QNX.
22034         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22035
22036 2009-07-22  Peter Simons  <simons@cryp.to>
22037
22038         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22039         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22040         * lib/md4.h: Likewise.
22041         * lib/md5.h: Likewise.
22042         * lib/sha1.h: Likewise.
22043         * lib/sha256.h: Likewise.
22044         * lib/sha512.h: Likewise.
22045
22046         tests-sha1: don't assign literal string to 'char *' variable
22047         * tests/test-sha1.c (main): Declare locals with "const" to match
22048         attributes of the right hand side.
22049
22050 2009-07-21  Eric Blake  <ebb9@byu.net>
22051
22052         dup2: fix more mingw problems
22053         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22054         fd to itself.
22055         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22056         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22057         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22058         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22059         care of mingw bugs.
22060
22061 2009-07-21  Jim Meyering  <meyering@redhat.com>
22062
22063         vc-list-files: avoid failure when /bin/sh is dash
22064         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22065         On some Debian based systems, /bin/sh is a symlink to dash, and running
22066         this command would omit the "/" following each 'tests' prefix:
22067           dash -x build-aux/vc-list-files -C . tests
22068         That is because bash and dash work differently:
22069           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22070           bash ok
22071           dash odd
22072
22073 2009-07-21  Eric Blake  <ebb9@byu.net>
22074
22075         dup2-tests: test previous patch
22076         * modules/dup2-tests: New file.
22077         * tests/test-dup2.c: Likewise.
22078         * tests/test-open.c (main): Avoid unspecified behavior.
22079         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22080         test.
22081
22082         dup2: work around mingw and cygwin 1.5 bug
22083         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22085         * modules/unistd (Makefile.am): Substitute it.
22086         * lib/unistd.in.h (dup2): Declare the replacement.
22087         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22088         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22089         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22090         * modules/execute (Depends-on): Add dup2.
22091         * modules/fseterr (Depends-on): Likewise.
22092         * modules/pipe (Depends-on): Likewise.
22093         * modules/posix_spawn-internal (Depends-on): Likewise.
22094
22095 2009-07-21  Bruno Haible  <bruno@clisp.org>
22096
22097         * modules/.gitattributes: New file.
22098
22099 2009-07-20  Bruno Haible  <bruno@clisp.org>
22100
22101         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22102         (main): Use it.
22103
22104 2009-07-20  Eric Blake  <ebb9@byu.net>
22105
22106         test-pipe: make a bit more robust.
22107         * tests/test-pipe.c (myerr): Allow error messages regardless of
22108         what we do to stderr.
22109         (test_pipe): Rearrange to avoid deadlock.
22110         (child_main): Try a larger read, to ensure we avoided deadlock.
22111         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22112         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22113         if misused.
22114
22115 2009-07-19  Jim Meyering  <meyering@redhat.com>
22116
22117         fts: avoid false-positive cycle-detection
22118         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22119         for each new command line argument.
22120
22121 2009-07-19  Bruno Haible  <bruno@clisp.org>
22122
22123         Fix build error on mingw with the modules sys_select and unistd.
22124         * modules/acl-tests (Depends-on): Add close.
22125         * modules/binary-io-tests (Depends-on): Likewise.
22126         * modules/closein-tests (Depends-on): Likewise.
22127         * modules/flock-tests (Depends-on): Likewise.
22128         * modules/fsync-tests (Depends-on): Likewise.
22129         * modules/lseek-tests (Depends-on): Likewise.
22130         * modules/pipe-tests (Depends-on): Likewise.
22131         * modules/posix_spawn-tests (Depends-on): Likewise.
22132         * modules/posix_spawnp-tests (Depends-on): Likewise.
22133         * modules/stat-time-tests (Depends-on): Likewise.
22134         * modules/yesno-tests (Depends-on): Likewise.
22135
22136 2009-07-19  Bruno Haible  <bruno@clisp.org>
22137
22138         Unify conditionals.
22139         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22140         macros, not at the compiler macros.
22141         * lib/pipe.c: Likewise.
22142         * lib/execute.c: Likewise.
22143         * lib/spawni.c: Likewise.
22144
22145 2009-07-19  Bruno Haible  <bruno@clisp.org>
22146
22147         Fix handling of closed stdin/stdout/stderr on mingw.
22148         * lib/w32spawn.h: Include unistd.h.
22149         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22150         file descriptor with O_NOINHERIT flag.
22151         (fd_safer_noinherit): New function, based on fd-safer.c.
22152         (dup_safer_noinherit): New function, based on dup-safer.c.
22153         (undup_safer_noinherit): New function.
22154         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22155         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22156         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22157         instead of fd_safer.
22158         * tests/test-pipe.c: Include <windows.h>.
22159         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22160
22161         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22162         from main.
22163         (test_pipe): Pass an extra argument for disambiguation.
22164         (main): Invoke parent_main or child_main.
22165
22166         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22167         consistently.
22168
22169 2009-07-18  Eric Blake  <ebb9@byu.net>
22170
22171         test-pipe: fix mingw build
22172         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22173
22174 2009-07-18  Bruno Haible  <bruno@clisp.org>
22175
22176         * modules/pipe-tests (Makefile.am): Fix typo.
22177
22178 2009-07-18  Eric Blake  <ebb9@byu.net>
22179
22180         error: fix mingw build
22181         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22182         Reported by Bruno Haible.
22183
22184         error: avoid undefined use of stdout
22185         * lib/error.c (error, error_at_line): Check that fd 1 is open
22186         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22187         is handling faults and the close_stdout module wants to report the
22188         detection of closed stdout as an error.
22189
22190 2009-07-17  Eric Blake  <ebb9@byu.net>
22191
22192         pipe: be robust in face of closed fds
22193         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22194         should cause child to misbehave.
22195         * modules/pipe-tests: New module.
22196         * tests/test-pipe.c: New file.
22197         * tests/test-pipe.sh: New file.
22198         Reported by Akim Demaille.
22199
22200 2009-07-14  Bruno Haible  <bruno@clisp.org>
22201
22202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22203         Reported by anonymous kc.
22204
22205 2009-07-07  Jim Meyering  <meyering@redhat.com>
22206
22207         maint.mk: don't look for translatable strings in *.m4 or *.mk
22208         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22209         when searching for translatable strings.
22210
22211 2009-07-05  Jim Meyering  <meyering@redhat.com>
22212
22213         remove superfluous parentheses in STREQ definition
22214         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22215         * lib/getugroups.c (STREQ): Likewise.
22216         * lib/fnmatch.c (STREQ): Likewise.
22217         Spotted by Bruno Haible.
22218
22219 2009-07-04  Jim Meyering  <meyering@redhat.com>
22220
22221         argv-iter: new module
22222         * MODULES.html.sh: Add argv-iter.
22223         * lib/argv-iter.c, lib/argv-iter.h: New files.
22224         * modules/argv-iter: New file.
22225         * modules/argv-iter-tests: New file.
22226         * tests/test-argv-iter.c: Test it.
22227
22228 2009-07-04  Bruno Haible  <bruno@clisp.org>
22229
22230         Fix assertion.
22231         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22232         contains more exact copies of a given entry than file2, leave the extra
22233         copies unpaired rather than aborting.
22234         Reported by Eric Blake.
22235
22236 2009-07-02  Bruno Haible  <bruno@clisp.org>
22237
22238         Speedup git-merge-changelog for git cherry-pick.
22239         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22240         (entries_mapping_get): New function, extracted from compute_mapping.
22241         (entries_mapping_reverse_get): New function.
22242         (compute_mapping): Add a 'full' argument. Return the result in a
22243         'struct entries_mapping'.
22244         (main): Update. Access the mappings through entries_mapping_get.
22245         Reported by Eric Blake.
22246
22247 2009-07-02  Bruno Haible  <bruno@clisp.org>
22248
22249         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22250         best_i.
22251
22252 2009-07-02  Bruno Haible  <bruno@clisp.org>
22253
22254         Speed up approximate search for matching ChangeLog entries.
22255         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22256         argument. Call fstrcmp_bounded instead of fstrcmp.
22257         (compute_mapping, try_split_merged_entry, main): Update callers.
22258
22259 2009-07-02  Bruno Haible  <bruno@clisp.org>
22260
22261         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22262
22263 2009-06-30  Bruno Haible  <bruno@clisp.org>
22264
22265         Reduce the number of uc_is_cased calls.
22266         * lib/unicase.h (casing_suffix_context_t): Add
22267         'first_char_except_ignorable' field.
22268         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22269         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22270         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22271         Update initializer.
22272         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22273         case-ignorable characters.
22274         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22275         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22276         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22277         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22278         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22279
22280 2009-06-30  Bruno Haible  <bruno@clisp.org>
22281
22282         Tests for module 'unicase/ignorable'.
22283         * modules/unicase/ignorable-tests: New file.
22284         * tests/unicase/test-ignorable.c: New file, generated by
22285         gen-uni-tables.
22286
22287         Tests for module 'unicase/cased'.
22288         * modules/unicase/cased-tests: New file.
22289         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22290         * tests/unicase/test-predicate-part1.h: New file, derived from
22291         tests/unictype/test-predicate-part1.h.
22292         * tests/unicase/test-predicate-part2.h: New file, same as
22293         tests/unictype/test-predicate-part2.h.
22294
22295         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22296         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22297         (output_casing_properties): New function.
22298         (main): Call it.
22299         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22300         * lib/unicase/cased.c: Include unictype/bitmap.h.
22301         (uc_is_cased): Define through a bitmap lookup.
22302         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22303         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22304         (uc_is_case_ignorable): Define through a bitmap lookup.
22305         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22306         lib/unictype/bitmap.h.
22307         (Depends-on): Add inline. Clean up.
22308         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22309         lib/unictype/bitmap.h.
22310         (Depends-on): Add inline. Clean up.
22311         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22312         recognition.
22313         * tests/unicase/test-u16-tolower.c (main): Likewise.
22314         * tests/unicase/test-u32-tolower.c (main): Likewise.
22315
22316 2009-06-30  Bruno Haible  <bruno@clisp.org>
22317
22318         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22319         * lib/unicase/u16-casemap.c: Likewise.
22320         * lib/unicase/u32-casemap.c: Likewise.
22321
22322 2009-06-29  Bruno Haible  <bruno@clisp.org>
22323
22324         Define u32_casefold as a wrapper around u32_ct_casefold.
22325         * lib/unicase/u32-casefold.c: Update.
22326         * modules/unicase/u32-casefold (Depends-on): Add
22327         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22328         unicase/empty-suffix-context. Clean up.
22329
22330         Define u16_casefold as a wrapper around u16_ct_casefold.
22331         * lib/unicase/u16-casefold.c: Update.
22332         * modules/unicase/u16-casefold (Depends-on): Add
22333         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22334         unicase/empty-suffix-context. Clean up.
22335
22336         Define u8_casefold as a wrapper around u8_ct_casefold.
22337         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22338         * lib/unicase/u8-casefold.c: Update.
22339         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22340         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22341
22342         Define u32_totitle as a wrapper around u32_ct_totitle.
22343         * lib/unicase/u32-totitle.c: Update.
22344         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22345         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22346
22347         Define u16_totitle as a wrapper around u16_ct_totitle.
22348         * lib/unicase/u16-totitle.c: Update.
22349         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22350         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22351
22352         Define u8_totitle as a wrapper around u8_ct_totitle.
22353         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22354         functions.
22355         (FUNC): Delegate to U_CT_TOTITLE.
22356         * lib/unicase/u8-totitle.c: Update.
22357         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22358         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22359
22360         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22361         invocation.
22362         * modules/unicase/u32-tolower (Depends-on): Add
22363         unicase/empty-prefix-context, unicase/empty-suffix-context.
22364
22365         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22366         invocation.
22367         * modules/unicase/u16-tolower (Depends-on): Add
22368         unicase/empty-prefix-context, unicase/empty-suffix-context.
22369
22370         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22371         * modules/unicase/u8-tolower (Depends-on): Add
22372         unicase/empty-prefix-context, unicase/empty-suffix-context.
22373
22374         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22375         invocation.
22376         * modules/unicase/u32-toupper (Depends-on): Add
22377         unicase/empty-prefix-context, unicase/empty-suffix-context.
22378
22379         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22380         invocation.
22381         * modules/unicase/u16-toupper (Depends-on): Add
22382         unicase/empty-prefix-context, unicase/empty-suffix-context.
22383
22384         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22385         * modules/unicase/u8-toupper (Depends-on): Add
22386         unicase/empty-prefix-context, unicase/empty-suffix-context.
22387
22388         New module 'unicase/u32-ct-casefold'.
22389         * lib/unicase/u32-ct-casefold.c: New file.
22390         * modules/unicase/u32-ct-casefold: New file.
22391
22392         New module 'unicase/u16-ct-casefold'.
22393         * lib/unicase/u16-ct-casefold.c: New file.
22394         * modules/unicase/u16-ct-casefold: New file.
22395
22396         New module 'unicase/u8-ct-casefold'.
22397         * lib/unicase/u8-ct-casefold.c: New file.
22398         * lib/unicase/u-ct-casefold.h: New file, derived from
22399         lib/unicase/u-casefold.h.
22400         * modules/unicase/u8-ct-casefold: New file.
22401
22402         New module 'unicase/u32-ct-totitle'.
22403         * lib/unicase/u32-ct-totitle.c: New file.
22404         * modules/unicase/u32-ct-totitle: New file.
22405
22406         New module 'unicase/u16-ct-totitle'.
22407         * lib/unicase/u16-ct-totitle.c: New file.
22408         * modules/unicase/u16-ct-totitle: New file.
22409
22410         New module 'unicase/u8-ct-totitle'.
22411         * lib/unicase/u8-ct-totitle.c: New file.
22412         * lib/unicase/u-ct-totitle.h: New file, derived from
22413         lib/unicase/u-totitle.h.
22414         * modules/unicase/u8-ct-totitle: New file.
22415
22416         New module 'unicase/u32-ct-tolower'.
22417         * lib/unicase/u32-ct-tolower.c: New file.
22418         * modules/unicase/u32-ct-tolower: New file.
22419
22420         New module 'unicase/u16-ct-tolower'.
22421         * lib/unicase/u16-ct-tolower.c: New file.
22422         * modules/unicase/u16-ct-tolower: New file.
22423
22424         New module 'unicase/u8-ct-tolower'.
22425         * lib/unicase/u8-ct-tolower.c: New file.
22426         * modules/unicase/u8-ct-tolower: New file.
22427
22428         New module 'unicase/u32-ct-toupper'.
22429         * lib/unicase/u32-ct-toupper.c: New file.
22430         * modules/unicase/u32-ct-toupper: New file.
22431
22432         New module 'unicase/u16-ct-toupper'.
22433         * lib/unicase/u16-ct-toupper.c: New file.
22434         * modules/unicase/u16-ct-toupper: New file.
22435
22436         New module 'unicase/u8-ct-toupper'.
22437         * lib/unicase/u8-ct-toupper.c: New file.
22438         * modules/unicase/u8-ct-toupper: New file.
22439
22440         Add context arguments to u*_casemap functions.
22441         * lib/unicase/unicasemap.h: Include unicase.h.
22442         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22443         suffix_context arguments.
22444         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22445         functions.
22446         (FUNC): Add prefix_context and suffix_context arguments. Use
22447         uc_is_cased and uc_is_case_ignorable.
22448         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22449         * lib/unicase/u16-casemap.c: Likewise.
22450         * lib/unicase/u32-casemap.c: Likewise.
22451         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22452         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22453         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22454         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22455         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22456         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22457
22458         New module 'unicase/u32-suffix-context'.
22459         * lib/unicase/u32-suffix-context.c: New file.
22460         * modules/unicase/u32-suffix-context: New file.
22461
22462         New module 'unicase/u16-suffix-context'.
22463         * lib/unicase/u16-suffix-context.c: New file.
22464         * modules/unicase/u16-suffix-context: New file.
22465
22466         New module 'unicase/u8-suffix-context'.
22467         * lib/unicase/u8-suffix-context.c: New file.
22468         * lib/unicase/u-suffix-context.h: New file.
22469         * modules/unicase/u8-suffix-context: New file.
22470
22471         New module 'unicase/empty-suffix-context'.
22472         * lib/unicase/empty-suffix-context.c: New file.
22473         * modules/unicase/empty-suffix-context: New file.
22474
22475         New module 'unicase/u32-prefix-context'.
22476         * lib/unicase/u32-prefix-context.c: New file.
22477         * modules/unicase/u32-prefix-context: New file.
22478
22479         New module 'unicase/u16-prefix-context'.
22480         * lib/unicase/u16-prefix-context.c: New file.
22481         * modules/unicase/u16-prefix-context: New file.
22482
22483         New module 'unicase/u8-prefix-context'.
22484         * lib/unicase/u8-prefix-context.c: New file.
22485         * lib/unicase/u-prefix-context.h: New file.
22486         * lib/unicase/context.h: New file.
22487         * modules/unicase/u8-prefix-context: New file.
22488
22489         New module 'unicase/empty-prefix-context'.
22490         * lib/unicase/empty-prefix-context.c: New file.
22491         * modules/unicase/empty-prefix-context: New file.
22492
22493         New module 'unicase/ignorable'.
22494         * lib/unicase/ignorable.c: New file.
22495         * modules/unicase/ignorable: New file.
22496
22497         New module 'unicase/cased'.
22498         * lib/unicase/caseprop.h: New file.
22499         * lib/unicase/cased.c: New file.
22500         * modules/unicase/cased: New file.
22501
22502         New functions for case mapping of substrings.
22503         * lib/unicase.h (casing_prefix_context_t): New type.
22504         (unicase_empty_prefix_context): New variable.
22505         (u8_casing_prefix_context, u16_casing_prefix_context,
22506         u32_casing_prefix_context, u8_casing_prefixes_context,
22507         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22508         declarations.
22509         (casing_suffix_context_t): New type.
22510         (unicase_empty_suffix_context): New variable.
22511         (u8_casing_suffix_context, u16_casing_suffix_context,
22512         u32_casing_suffix_context, u8_casing_suffixes_context,
22513         u16_casing_suffixes_context, u32_casing_suffixes_context,
22514         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22515         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22516         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22517         declarations.
22518
22519 2009-06-28  Jim Meyering  <meyering@redhat.com>
22520
22521         boostrap: indent only with spaces
22522         * build-aux/bootstrap: Indent only with spaces, never TABs.
22523
22524         bootstrap: split long lines
22525         * build-aux/bootstrap: Keep line length < 80.
22526
22527         bootstrap: sync from coreutils
22528         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22529         just as autoreconf does.  Verify a list of prerequisite
22530         package-name,version-number pairs if defined in bootstrap.conf.
22531         Refer to README-prereq, if prerequisites are not satisfied.
22532
22533 2009-06-27  Eric Blake  <ebb9@byu.net>
22534
22535         tests: add test for bogus NULL definition
22536         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22537         * tests/test-stdlib.c: Likewise.
22538         * tests/test-string.c: Likewise.
22539         * tests/test-locale.c: Likewise.
22540         * tests/test-unistd.c: Likewise.
22541         * modules/stdio-tests (Depends-on): Add verify.
22542         * modules/stdlib-tests (Depends-on): Likewise.
22543         * modules/string-tests (Depends-on): Likewise.
22544         * modules/locale-tests (Depends-on): Likewise.
22545         * modules/unistd-tests (Depends-on): Likewise.
22546
22547 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22548
22549         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
22550         self-explaining comment.
22551         * m4/selinux-selinux-h: Update serial.
22552         (gl_LIBSELINUX): New macro, adding a warning for missing development
22553         packages to code extracted from...
22554         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
22555         Add warning for missing development packages here, too.
22556
22557 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
22558
22559         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
22560
22561 2009-06-25  Eric Blake  <ebb9@byu.net>
22562
22563         version-etc: fix regression
22564         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
22565         gcc.
22566         (version_etc): Use it, to catch bugs with trailing NULL.
22567         * lib/version-etc.c (version_etc_arn): Delete unused argument.
22568         (version_etc_va): Fix logic bug.
22569         * modules/version-etc-tests: Add test.
22570         * tests/test-version-etc.c: New file.
22571         * tests/test-version-etc.sh: Likewise.
22572
22573 2009-06-25  Sam Steingold  <sds@gnu.org>
22574
22575         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
22576         mbtowc declaration.
22577
22578 2009-06-25  Eric Blake  <ebb9@byu.net>
22579
22580         fpurge: migrate into <stdio.h>
22581         * lib/fpurge.h: Delete...
22582         * lib/stdio.in.h (fpurge): ...and declare here, instead.
22583         * lib/fpurge.c (fpurge): Change declaring header.
22584         * modules/fpurge (Files): Drop deleted file.
22585         (Depends-on): Add stdio.
22586         (configure.ac): Set witness.
22587         * modules/stdio (Makefile.am): Support fpurge macros.
22588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22589         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
22590         * lib/fflush.c: Update client.
22591         * tests/test-fpurge.c: Likewise.
22592         * NEWS: Mention the change.
22593
22594 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22595
22596         * lib/argp-version-etc.c (program_authors): Add const
22597         qualifier.
22598         * lib/version-etc.c: Fix typos in the comments.
22599         * modules/argp-version-etc: Depends on version-etc.
22600
22601 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22602
22603         argp-version-etc: new module.
22604
22605         * lib/argp-version-etc.c: New file.
22606         * lib/argp-version-etc.h: New file.
22607         * modules/argp-version-etc: New file.
22608         * modules/argp-version-etc-tests: New file.
22609         * tests/test-argp-version-etc.c: New test.
22610         * tests/test-argp-version-etc-1.sh: New test.
22611
22612 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22613
22614         Provide additional interfaces and documentation for version-etc
22615         module.
22616
22617         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
22618         interfaces.
22619         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
22620         prototypes.
22621
22622 2009-06-24  Bruno Haible  <bruno@clisp.org>
22623
22624         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
22625         HAVE_LIB${NAME} macro.
22626         Reported by Sam Steingold <sds@gnu.org>.
22627
22628 2009-06-23  Simon Josefsson  <simon@josefsson.org>
22629
22630         * modules/hash-tests (test_hash_LDADD): Link to libintl when
22631         needed.
22632
22633 2009-06-21  Bruno Haible  <bruno@clisp.org>
22634
22635         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
22636         work.
22637         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
22638         together with LIB${NAME}, LTLIB${NAME}.
22639         Reported by Sam Steingold <sds@gnu.org>.
22640
22641 2009-06-20  Jim Meyering  <meyering@redhat.com>
22642
22643         tests: make sc_require_test_exit_idiom more generic
22644         * top/maint.mk (Exit_witness_file): New overridable variable.
22645         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
22646         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
22647
22648 2009-06-19  Jim Meyering  <meyering@redhat.com>
22649
22650         hash: reverse order of src/dst parameters in an internal interface
22651         * lib/hash.c (transfer_entries): Reverse order of parameters to
22652         put DST before SRC.  Adjust callers.
22653
22654         tests: test-hash: avoid wholesale duplication
22655         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
22656         Instead, use a loop and add a single conditional.
22657
22658         tests: test-hash: allow seed selection via a command line argument
22659         * tests/test-hash.c (get_seed): New function.
22660         (main): Use it.
22661
22662 2009-06-19  Eric Blake  <ebb9@byu.net>
22663
22664         hash: avoid memory leak on allocation failure
22665         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
22666         failure.  Factor repeated algorithm...
22667         (transfer_entries): ...into new helper routine.
22668         (hash_delete): React to hash_rehash return value.
22669
22670         hash: reduce memory pressure in hash_rehash no-op case
22671         * lib/hash.c (next_prime): Avoid overflow.
22672         (hash_initialize): Factor bucket size computation...
22673         (compute_bucket_size): ...into new helper function.
22674         (hash_rehash): Use new function and open coding to reduce memory
22675         pressure, and avoid a memory leak in USE_OBSTACK code.
22676         Reported by Jim Meyering.
22677
22678 2009-06-18  Eric Blake  <ebb9@byu.net>
22679
22680         hash: make rotation more obvious
22681         * modules/hash (Depends-on): Add bitrotate and stdint.
22682         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
22683         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
22684         (SIZE_MAX): Rely on headers for definition.
22685         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
22686         (raw_hasher): Use rotr_sz.
22687         Suggested by Jim Meyering.
22688
22689         hash: fix memory leak in last patch
22690         * lib/hash.c (hash_rehash): Avoid memory leak.
22691
22692         hash: avoid no-op rehashing
22693         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
22694
22695         hash: provide default callback functions
22696         * lib/hash.c (raw_hasher, raw_comparator): New functions.
22697         (hash_initialize): Use them as defaults.
22698         * tests/test-hash.c (main): Test this.
22699
22700         hash: minor optimization
22701         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
22702         when possible.
22703         (hash_initialize): Document this promise.
22704         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
22705         * tests/test-hash.c (hash_compare_strings): Test this.
22706
22707 2009-06-18  Bruno Haible  <bruno@clisp.org>
22708
22709         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
22710         going to be replaced anyway.
22711
22712 2009-06-18  Bruno Haible  <bruno@clisp.org>
22713
22714         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
22715         in one place.
22716         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
22717         be replaced anyway.
22718
22719 2009-06-18  Eric Blake  <ebb9@byu.net>
22720
22721         hash: check for resize before insertion
22722         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
22723         threshold before insertion, so that a pathological hash_rehash
22724         that fills every bucket can still trigger another rehash.
22725
22726 2009-06-18  Jim Meyering  <meyering@redhat.com>
22727
22728         hash-tests: add a loop around the small tests
22729         * tests/test-hash.c (main): Repeat small tests with selected
22730         small initial table sizes.
22731
22732 2009-06-17  Eric Blake  <ebb9@byu.net>
22733
22734         hash: minor cleanups
22735         * lib/hash.h (hash_entry): Make opaque, by moving...
22736         * lib/hash.c (hash_entry): ...here.
22737         (hash_insert): Clarify restrictions on what can be inserted.
22738         (hash_get_next): Clarify when it is safe to remove an element
22739         during traversal.
22740         (check_tuning): Skip verification when tuning is known safe.
22741         (hash_initialize): Clarify restrictions on tuning.
22742
22743 2009-06-17  Jim Meyering  <jim@meyering.net>
22744         and Eric Blake  <ebb9@byu.net>
22745
22746         hash-tests: new module
22747         * modules/hash-tests: New file.
22748         * tests/test-hash.c: New file.
22749
22750 2009-06-17  Eric Blake  <ebb9@byu.net>
22751
22752         strstr-simple: document new module
22753         * MODULES.html.sh: Document new module.
22754
22755         strstr, strcasestr: replace on platforms with broken memchr
22756         * modules/strstr: Split into...
22757         * modules/strstr-simple: ...new module that does not care about
22758         performance, but does care about glibc bug.
22759         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
22760         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
22761         if platform memchr is broken, per Debian bug 521737.
22762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
22763         memchr.
22764         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
22765         * doc/posix-functions/strstr.texi (strstr): Document the fix.
22766         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22767         * modules/mountlist (Depends-on): Add strstr-simple.
22768         * modules/gen-uni-tables (Depends-on): Likewise.
22769         * modules/argz (Depends-on): Add strstr.
22770
22771 2009-06-17  Bruno Haible  <bruno@clisp.org>
22772
22773         * modules/posix_spawn-internal (Depends-on): Add errno.
22774
22775 2009-06-17  Bruno Haible  <bruno@clisp.org>
22776
22777         Define missing ESTALE on Interix 3.5.
22778         * lib/errno.in.h (ESTALE): Assign a value if missing.
22779         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
22780         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
22781         missing.
22782         * doc/posix-headers/errno.texi: Mention the Interix bug.
22783         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
22784
22785 2009-06-15  Eric Blake  <ebb9@byu.net>
22786
22787         memchr, memchr2: add valgrind exception
22788         * lib/memchr.valgrind: New file.
22789         * lib/memchr2.valgrind: New file.
22790         * modules/memchr (Files): Distribute valgrind file.
22791         * modules/memchr2 (Files): Likewise.
22792
22793         docs: memchr is no longer obsolete
22794         * MODULES.html.sh: Move memchr from obsolete to string.h section.
22795         * lib/string.in.h (memchr): Simplify logic.
22796
22797 2009-06-14  Jim Meyering  <meyering@redhat.com>
22798
22799         link-follow: fix the "checking..." message to not mention trailing slash
22800         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
22801         never considered trailing slashes.
22802
22803 2009-06-14  Bruno Haible  <bruno@clisp.org>
22804
22805         * m4/memchr.m4: Mention also the bug on IA-64.
22806         * doc/posix-functions/memchr.texi: Likewise.
22807
22808 2009-06-12  Eric Blake  <ebb9@byu.net>
22809
22810         memchr: detect broken x86_64 and alpha implementations
22811         * modules/memchr-tests (Depends-on): Move mmap detection...
22812         * modules/memchr (Depends-on): ...here.
22813         (configure.ac): Set indicator.
22814         * lib/string.in.h (memchr): Declare replacement.
22815         * modules/string (Makefile.am): Trigger replacement.
22816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
22817         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
22818         bugs.
22819         * doc/posix-functions/memchr.texi (memchr): Document the bug.
22820         * modules/getpagesize (License): Relax license.
22821
22822 2009-06-11  Bruno Haible  <bruno@clisp.org>
22823
22824         * lib/idpriv.h: Add more references.
22825
22826 2009-06-08  Bruno Haible  <bruno@clisp.org>
22827
22828         Tests for module 'idpriv-droptemp'.
22829         * modules/idpriv-droptemp-tests: New file.
22830         * tests/test-idpriv-droptemp.sh: New file.
22831         * tests/test-idpriv-droptemp.su.sh: New file.
22832         * tests/test-idpriv-droptemp.c: New file.
22833
22834         New module 'idpriv-droptemp'.
22835         * lib/idpriv-droptemp.c: New file.
22836         * modules/idpriv-droptemp: New file.
22837
22838 2009-06-08  Bruno Haible  <bruno@clisp.org>
22839
22840         Tests for module 'idpriv-drop'.
22841         * modules/idpriv-drop-tests: New file.
22842         * tests/test-idpriv-drop.sh: New file.
22843         * tests/test-idpriv-drop.su.sh: New file.
22844         * tests/test-idpriv-drop.c: New file.
22845
22846         New module 'idpriv-drop'.
22847         * lib/idpriv.h: New file.
22848         * lib-idpriv-drop.c: New file.
22849         * m4/idpriv.m4: New file.
22850         * modules/idpriv-drop: New file.
22851
22852 2009-06-08  Bruno Haible  <bruno@clisp.org>
22853
22854         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
22855         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22856         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22857         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22858         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22859         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22860         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22861
22862 2009-06-08  Eric Blake  <ebb9@byu.net>
22863
22864         test-strstr: use memory fence, when possible
22865         * tests/test-strstr.c (main): Use memory fence, in order to be
22866         more likely to trigger Debian bug 521737.
22867         * modules/strstr-tests (Files): Pull in additional files.
22868
22869         memchr: no longer obsolete, for wider field testing
22870         * modules/memchr (Status, Notice): Delete, this module is no
22871         longer obsolete.
22872         * modules/vasnprintf (Depends-on): Add memchr.
22873
22874 2009-06-07  Jim Meyering  <meyering@redhat.com>
22875
22876         hash: declare some functions with the warn_unused_result attribute
22877         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
22878
22879 2009-06-07  Bruno Haible  <bruno@clisp.org>
22880
22881         * tests/test-alignof.c: Don't test int64_t if it does not exist.
22882         Reported by Eric Blake.
22883
22884 2009-06-06  Eric Blake  <ebb9@byu.net>
22885
22886         test-alignof: fix typo with long double
22887         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
22888         compiler error.
22889
22890 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
22891
22892         Escape non-texinfo { and }s.
22893         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
22894         markup error.
22895
22896 2009-06-04  Jim Meyering  <meyering@redhat.com>
22897
22898         gitlog-to-changelog: don't infloop on an empty commit log
22899         * build-aux/gitlog-to-changelog: Warn about an empty log message.
22900         Reported by Boris Petersen <transacid@centerim.org>.
22901
22902 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
22903
22904         version-etc: extend for packagers
22905         Add three new configure options, intended for packagers:
22906           --with-packager="packager name"
22907           --with-packager-version="packager-specific version"
22908           --with-packager-bug-reports="packager bug reporting"
22909         An example with coreutils:
22910           $ ./configure \
22911             --with-packager=Gentoo \
22912             --with-packager-bug-report=http://bugs.gentoo.org/ \
22913             --with-packager-version="patchset 1.6"
22914           $ ./src/ls --version | head -n2
22915           ls (GNU coreutils) 7.1-dirty
22916           Packaged by Gentoo (patchset 1.6)
22917         Note that the bug reporting info via --help doesn't show up because
22918         coreutils uses its own custom emit_bug_reporting_address() implementation
22919         in src/system.h.  If it didn't, it'd look like:
22920           $ ./src/ls --help | tail -n4
22921           Report bugs to <bug-coreutils@gnu.org>.
22922           Report Gentoo bugs to <http://bugs.gentoo.org/>.
22923           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
22924           General help using GNU software: <http://www.gnu.org/gethelp/>.
22925         * lib/version-etc.c: Print new information, if provided.
22926         * m4/version-etc.m4: New file.
22927         * modules/version-etc (Files): Add m4/version-etc.m4.
22928         (configure.ac): Add gl_VERSION_ETC.
22929
22930 2009-05-31  Bruno Haible  <bruno@clisp.org>
22931
22932         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
22933         and 'int64_t'.
22934         * modules/alignof-tests (Dependencies): Add stdint.
22935         Reported by Eric Blake.
22936
22937 2009-05-31  Bruno Haible  <bruno@clisp.org>
22938
22939         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
22940         restriction due to compiler bugs.
22941         Reported by Eric Blake.
22942
22943 2009-05-31  Simon Josefsson  <simon@josefsson.org>
22944             Bruno Haible  <bruno@clisp.org>
22945
22946         Fix test-alignof failure.
22947         * lib/alignof.h (alignof_slot): New macro.
22948         (alignof_type): New macro, with the same semantics as the previous
22949         'alignof'.
22950         (alignof): Alias to alignof_slot.
22951         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
22952         check that the results are usable as constant expressions.
22953
22954 2009-05-31  Bruno Haible  <bruno@clisp.org>
22955
22956         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
22957         * tests/test-memchr.c (main): Check that memchr does not read past the
22958         first occurrence of the byte.
22959         * tests/test-strstr.c (main): Update comment.
22960         Suggested by Eric Blake.
22961
22962 2009-05-30  Bruno Haible  <bruno@clisp.org>
22963
22964         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
22965         detail how to use dumpbin.
22966         Reported by David Byron <dbyron@dbyron.com>.
22967
22968 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22969
22970         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
22971
22972 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22973
22974         * m4/manywarnings.m4: Add GCC 4.4 warnings.
22975
22976 2009-05-28  Bruno Haible  <bruno@clisp.org>
22977
22978         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
22979         build-aux/ files.
22980
22981 2009-05-28  Simon Josefsson  <simon@josefsson.org>
22982
22983         * gnulib-tool (func_import): Transform license on build-aux/ files too.
22984
22985 2009-05-27  Simon Josefsson  <simon@josefsson.org>
22986
22987         * gnulib-tool (sed_transform_main_lib_file)
22988         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
22989         regexps.
22990
22991 2009-05-26  Simon Josefsson  <simon@josefsson.org>
22992
22993         * tests/test-strstr.c: Add another self-test.
22994         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
22995         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
22996
22997 2009-05-23  Bruno Haible  <bruno@clisp.org>
22998
22999         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23000         change.
23001
23002 2009-05-21  Bruno Haible  <bruno@clisp.org>
23003
23004         Simplify use of mode_t varargs.
23005         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23006         uses 'mode_t' or 'int'.
23007         * lib/openat.c (openat): Likewise.
23008         * lib/open-safer.c (open_safer): Likewise.
23009         * m4/mode_t.m4: New file.
23010         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23011         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23012         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23013         * modules/open (Files): Add m4/mode_t.m4.
23014         * modules/openat (Files): Likewise.
23015         * modules/fcntl-safer (Files): Likewise.
23016         Suggested by Eric Blake.
23017
23018 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23019
23020         * doc/glibc-functions/fallocate.texi: New file.
23021         * doc/gnulib.texi: Include it.
23022
23023 2009-05-21  Eric Blake  <ebb9@byu.net>
23024             Bruno Haible  <bruno@clisp.org>
23025
23026         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23027         invocations.
23028         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23029
23030 2009-05-21  Eric Blake  <ebb9@byu.net>
23031             Bruno Haible  <bruno@clisp.org>
23032
23033         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23034         include_next. Fix of 2008-11-20 commit.
23035         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23036         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23037         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23038         NEXT_MATH_H.
23039         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23040         instead of NEXT_MATH_H.
23041
23042 2009-05-21  Bruno Haible  <bruno@clisp.org>
23043
23044         Avoid redefinition warnings for SIZE_MAX.
23045         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23046         Reported by Simon Josefsson.
23047
23048 2009-05-21  Bruno Haible  <bruno@clisp.org>
23049
23050         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23051         AC_CACHE_VAL.
23052
23053 2009-05-20  Bruno Haible  <bruno@clisp.org>
23054
23055         Make zeroptr.h work on mingw.
23056         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23057         mprotect.
23058         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23059         * modules/memchr2-tests (configure.ac): Likewise.
23060         * modules/memcmp-tests (configure.ac): Likewise.
23061         * modules/memmem-tests (configure.ac): Likewise.
23062         * modules/memrchr-tests (configure.ac): Likewise.
23063         Reported by Simon Josefsson.
23064
23065 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23066
23067         * tests/test-glob.c: Include string.h for strcmp prototype.
23068
23069 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23070
23071         * modules/getdelim (Depends-on): Add explicit stdint, although it
23072         was implicitly already pulled in via realloc-posix.
23073         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23074
23075 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23076
23077         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23078         G. Christensen" <tgc@jupiterrise.com>.
23079         * m4/sys_socket_h.m4: Check for sa_family_t.
23080         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23081         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23082         * tests/test-sys_socket.c: Check that sa_family_t works.
23083
23084 2009-05-18  Eric Blake  <ebb9@byu.net>
23085
23086         maint.mk: allow gnulib_dir in VPATH build
23087         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23088
23089 2009-05-15  Jim Meyering  <meyering@redhat.com>
23090
23091         maint.mk: Give gnulib_dir a default definition.
23092         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23093         Thus, most packages no longer need to specify this variable in cfg.mk
23094
23095 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23096
23097         rename.m4: fix typos that would make non-mingw cross-configure fail
23098         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23099
23100 2009-05-13  Eric Blake  <ebb9@byu.net>
23101
23102         mmap-anon: avoid out-of-order autoconf expansion
23103         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23104         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23105         * modules/memchr-tests (Depends-on): Add extensions.
23106         * modules/memchr2-tests (Depends-on): Add extensions.
23107         * modules/memcmp-tests (Depends-on): Add extensions.
23108         * modules/memmem-tests (Depends-on): Add extensions.
23109         * modules/memrchr-tests (Depends-on): Add extensions.
23110
23111 2009-05-13  Bruno Haible  <bruno@clisp.org>
23112
23113         Make some tests ISO C 99 compliant.
23114         * tests/zerosize-ptr.h: New file.
23115         * tests/test-memchr.c: Include zerosize-ptr.h.
23116         (main): Use a zero-size object pointer instead of NULL.
23117         * tests/test-memchr2.c: Include zerosize-ptr.h.
23118         (main): Use a zero-size object pointer instead of NULL.
23119         * tests/test-memcmp.c: Include zerosize-ptr.h.
23120         (main): Use a zero-size object pointer instead of NULL.
23121         * tests/test-memmem.c: Include zerosize-ptr.h.
23122         (main): Use a zero-size object pointer instead of NULL.
23123         * tests/test-memrchr.c: Include zerosize-ptr.h.
23124         (main): Use a zero-size object pointer instead of NULL.
23125         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23126         m4/mmap-anon.m4.
23127         (Depends-on): Add getpagesize.
23128         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23129         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23130         m4/mmap-anon.m4.
23131         (Depends-on): Add getpagesize.
23132         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23133         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23134         m4/mmap-anon.m4.
23135         (Depends-on): Add getpagesize.
23136         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23137         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23138         m4/mmap-anon.m4.
23139         (Depends-on): Add getpagesize.
23140         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23141         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23142         m4/mmap-anon.m4.
23143         (Depends-on): Add getpagesize.
23144         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23145
23146 2009-05-12  Bruno Haible  <bruno@clisp.org>
23147
23148         Tests for module 'alignof'.
23149         * modules/alignof-tests: New file.
23150         * tests/test-alignof.c: New file.
23151
23152 2009-05-12  Bruno Haible  <bruno@clisp.org>
23153
23154         Fix alignof macro.
23155         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23156         vendor compilers that are always correct.
23157
23158 2009-05-12  Bruno Haible  <bruno@clisp.org>
23159
23160         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23161         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23162         not whether its fully works.
23163
23164 2009-05-12  Bruno Haible  <bruno@clisp.org>
23165
23166         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23167
23168 2009-05-12  Jim Meyering  <meyering@redhat.com>
23169
23170         * top/maint.mk: Adjust backslash alignment.
23171
23172 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23173
23174         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23175
23176 2009-05-11  Eric Blake  <ebb9@byu.net>
23177
23178         argp: avoid undefined behavior
23179         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23180         macros.
23181
23182 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23183
23184         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23185         user.name to prevent git commit from complaining.
23186
23187 2009-05-10  Bruno Haible  <bruno@clisp.org>
23188
23189         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23190         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23191         it rewrites every file name only once.
23192         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23193
23194 2009-05-08  Bruno Haible  <bruno@clisp.org>
23195
23196         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23197         instead of 'max'.
23198
23199 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23200
23201         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23202         sockaddr_storage test.
23203
23204 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23205
23206         * modules/sys_socket (Makefile.am): Substitute
23207         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23208         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23209         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23210         * tests/test-sys_socket.c: Check sockaddr_storage.
23211
23212 2009-05-08  Bruno Haible  <bruno@clisp.org>
23213
23214         New module 'alignof'.
23215         * lib/alignof.h: New file.
23216         * modules/alignof: New file.
23217
23218 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23219             Bruno Haible  <bruno@clisp.org>
23220
23221         Fix test-file-has-acl on FreeBSD.
23222         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23223         mask is implicitly added.
23224         * tests/test-file-has-acl.c: Include <signal.h>.
23225         (main): Terminate the test after 5 seconds.
23226         * modules/acl-tests (configure.ac): Check for alarm function.
23227
23228 2009-05-04  Bruno Haible  <bruno@clisp.org>
23229
23230         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23231         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23232         * modules/errno (configure.ac): Drop AC_REQUIRE.
23233         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23234         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23235
23236 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23237
23238         * modules/glob-tests: New module.
23239         * tests/test-glob.c: Add.
23240
23241 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23242
23243         * modules/fnmatch-tests: New module.
23244         * tests/test-fnmatch.c: Add.
23245
23246 2009-05-04  Eric Blake  <ebb9@byu.net>
23247
23248         maint: make the new no-submodule-changes rule VPATH-safe
23249         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23250
23251 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23252             Bruno Haible  <bruno@clisp.org>
23253
23254         acl: Fix infinite loop on FreeBSD.
23255         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23256         of return value from acl_get_entry.
23257         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23258         Likewise.
23259
23260 2009-05-03  Bruno Haible  <bruno@clisp.org>
23261
23262         * lib/acl-internal.h (acl_entries): Clarify return value.
23263         * lib/acl_entries.c (acl_entries): Likewise.
23264
23265 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23266
23267         Bug fix in acl module.
23268         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23269
23270 2009-05-03  Bruno Haible  <bruno@clisp.org>
23271
23272         Create gperf-generated file in the source dir, not in the build dir.
23273         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23274         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23275         * modules/unicase/locale-language (unicase/locale-languages.h):
23276         Likewise.
23277         * modules/unicase/special-casing (unicase/special-casing-table.h):
23278         Likewise.
23279         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23280         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23281         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23282         Reported by Ralf Wildenhues.
23283
23284 2009-05-03  Bruno Haible  <bruno@clisp.org>
23285
23286         * modules/fnmatch (Description, configure.ac): Taken from
23287         fnmatch-posix.
23288         * modules/fnmatch-posix: Turn into a symbolic reference to the
23289         'fnmatch' module, and deprecate.
23290         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23291
23292 2009-05-03  Bruno Haible  <bruno@clisp.org>
23293
23294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23295         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23296         Reported by Ralf Wildenhues.
23297
23298 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23299
23300         * m4/fnmatch.m4: Fix fnmatch re-define.
23301
23302 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23303
23304         priv-set: new module and tests; adapt write-any-file
23305         * lib/priv-set.c: New file.
23306         * lib/priv-set.h: New file.
23307         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23308         * lib/write-any-file.c: Simplify by using priv-set module.
23309         * m4/priv-set.m4: New file.
23310         * modules/priv-set: New file.
23311         * modules/unlinkdir: Add dependency on priv-set module.
23312         * modules/write-any-file: Likewise.
23313
23314         Tests for module 'priv-set'.
23315         * modules/priv-set-tests: New file.
23316         * tests/test-priv-set.c: New file.
23317
23318 2009-05-03  Jim Meyering  <meyering@redhat.com>
23319             Bruno Haible  <bruno@clisp.org>
23320
23321         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23322         use the converted UTF-8 variant of the name instead.
23323
23324 2009-05-03  Jim Meyering  <meyering@redhat.com>
23325
23326         tests: tighten some getdate tests
23327         * tests/test-getdate.c (main): Tighten tests: require equality,
23328         not just greater than.  Set TZ envvar to UTC0.
23329
23330 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23331
23332         getdate: correctly interpret "next monday" when run on a Monday
23333         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23334         that e.g., "next tues" (when run on a tuesday) results in a date
23335         that is one week in the future, and not today's date.
23336         I.e., add a week when the wday is the same as the current one.
23337         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23338         and earlier by Martin Bernreuther and Jan Minář.
23339         * tests/test-getdate.c (main): Check that "next DAY" is always in
23340         the future and that "last DAY" is always in the past.
23341
23342 2009-05-02  Jim Meyering  <meyering@redhat.com>
23343
23344         build: ensure that a release build fails when a submodule is unclean
23345         * top/maint.mk (no-submodule-changes): New rule.
23346         (alpha beta major): Depend on it.
23347
23348 2009-05-02  Bruno Haible  <bruno@clisp.org>
23349
23350         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23351         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23352         shell variable gl_fnmatch_required to detect which variant is
23353         requested.
23354         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23355         gl_FUNC_FNMATCH_POSIX.
23356         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23357         exclude fnmatch-posix.
23358
23359 2009-05-02  Bruno Haible  <bruno@clisp.org>
23360
23361         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23362         * modules/mbsrtowcs (License): Change to LGPLv2+.
23363         * modules/strnlen1 (License): Likewise.
23364         Reported by Simon Josefsson.
23365
23366 2009-05-02  Bruno Haible  <bruno@clisp.org>
23367
23368         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23369         "cross".
23370         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23371         gnulib-tool was called with option --source-base=lib.
23372
23373 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23374
23375         Use automake *-local hooks without commands, for extensibility.
23376         * modules/localcharset (Makefile.am): Rename install-exec-local
23377         rule to install-exec-localcharset, and make it a prerequisite of
23378         install-exec-local.  Likewise, rename the uninstall-local rule to
23379         uninstall-localcharset, and make it a prerequisite of the former.
23380
23381 2009-05-01  Bruno Haible  <bruno@clisp.org>
23382
23383         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23384         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23385         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23386         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23387         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23388         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23389         m4/locale-zh.m4, m4/codeset.m4.
23390
23391         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23392         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23393         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23394         m4/locale-zh.m4.
23395
23396         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23397         REPLACE_WCRTOMB if mbstate_t must be replaced.
23398         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23399         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23400
23401 2009-05-01  Bruno Haible  <bruno@clisp.org>
23402
23403         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23404         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23405         dngettext, dcngettext, textdomain, bindtextdomain,
23406         bind_textdomain_codeset): Undefine before redefining.
23407
23408 2009-04-30  Bruno Haible  <bruno@clisp.org>
23409
23410         Fix bug introduced on 2009-04-25.
23411         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23412         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23413         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23414         is defined.
23415         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23416         is defined.
23417         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23418         is defined.
23419         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23420
23421 2009-04-28  Bruno Haible  <bruno@clisp.org>
23422
23423         Comment tweaks.
23424         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23425         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23426         * lib/unicase.h (u*_casexfrm): Likewise.
23427         Reported by Paolo Bonzini.
23428
23429 2009-04-28  Bruno Haible  <bruno@clisp.org>
23430
23431         Fix a compilation error.
23432         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23433         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23434         Reported by Jim Meyering.
23435
23436 2009-04-27  Bruno Haible  <bruno@clisp.org>
23437
23438         New module 'libunistring'.
23439         * modules/libunistring: New file.
23440         * m4/libunistring.m4: New file.
23441         * MODULES.html.sh (Unicode string functions): Add it.
23442
23443 2009-04-27  Eric Blake  <ebb9@byu.net>
23444
23445         maint.mk: allow package-specific header to provide <config.h>
23446         * top/maint.mk (sc_require_config_h): New variable.
23447         (sc_require_config_h, sc_require_config_h_first): Use it.
23448
23449 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23450
23451         * top/maint.mk (sc_avoid_if_before_free): Except
23452         useless-if-before-free script.
23453
23454 2009-04-27  Eric Blake  <ebb9@byu.net>
23455
23456         maintainer-makefile: depend on all required helper scripts
23457         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23458         useless-if-before-free.
23459         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23460         version, rather than assuming gnulib checkout is available.
23461         Reported by Simen Josefsson.
23462
23463 2009-04-26  Bruno Haible  <bruno@clisp.org>
23464
23465         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23466         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23467         "../" or "..".
23468
23469 2009-04-26  Bruno Haible  <bruno@clisp.org>
23470
23471         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23472         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23473         AC_LIB_HAVE_LINKFLAGS.
23474
23475 2009-04-26  Bruno Haible  <bruno@clisp.org>
23476
23477         Simplify calling convention of u*_conv_from_encoding.
23478         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
23479         u32_conv_from_encoding): Expect a resultbuf argument and return the
23480         result directly as a pointer.
23481         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
23482         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
23483         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
23484         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
23485         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
23486         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23487         Update.
23488         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
23489         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
23490         * lib/vasnprintf.c (VASNPRINTF): Update.
23491         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
23492         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
23493         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
23494         * NEWS: Mention the change.
23495
23496 2009-04-26  Bruno Haible  <bruno@clisp.org>
23497
23498         Simplify calling convention of u*_conv_to_encoding.
23499         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23500         u32_conv_to_encoding): Expect a resultbuf argument and return the
23501         result directly as a pointer.
23502         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23503         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23504         freeing scaled_offsets if mem_iconveha failed.
23505         * lib/unicase/u-casexfrm.h (FUNC): Update.
23506         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23507         * lib/vasnprintf.c (VASNPRINTF): Update.
23508         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23509         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23510         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23511         * NEWS: Mention the change.
23512
23513 2009-04-26  Bruno Haible  <bruno@clisp.org>
23514
23515         Avoid test failures on AIX and OSF/1.
23516         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23517         malloc(0).
23518         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23519         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23520         Likewise.
23521         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23522         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23523         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23524         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23525         * doc/posix-functions/malloc.texi: Document the portability problem
23526         related to malloc(0).
23527
23528 2009-04-26  Bruno Haible  <bruno@clisp.org>
23529
23530         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23531         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23532         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23533
23534 2009-04-25  Bruno Haible  <bruno@clisp.org>
23535
23536         Avoid link error when creating a namespace clean library.
23537         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23538         as macro with arguments if already defined as an alias.
23539         * lib/signbitf.c (gl_signbitf): Don't undefine.
23540         * lib/signbitd.c (gl_signbitd): Don't undefine.
23541         * lib/signbitl.c (gl_signbitl): Don't undefine.
23542
23543 2009-04-25  Jim Meyering  <meyering@redhat.com>
23544
23545         vc-list-files: fix another quoting bug
23546         * build-aux/vc-list-files: Avoid sed backslash expansion
23547         of pathological directory names.
23548
23549 2009-04-25  Eric Blake  <ebb9@byu.net>
23550
23551         vc-list-files: fix shell quoting error
23552         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
23553         timestamp.
23554
23555 2009-04-25  Jim Meyering  <meyering@redhat.com>
23556
23557         vc-list-files: restore lost functionality with subdir argument
23558         * build-aux/vc-list-files: When given a non-"." sub-directory
23559         argument, substitute the $dir/ prefix back onto each resulting name.
23560         Otherwise, coreutils' root_tests check would fail.
23561
23562 2009-04-24  Eric Blake  <ebb9@byu.net>
23563
23564         vc-list-files: ignore git symlinks
23565         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
23566         than ls-files, to ignore git symlinks.
23567
23568         maint.mk: import improvements from m4
23569         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
23570         (move_if_change): Delete unused macro.
23571         (news-date-check, vc-diff-check): Support VPATH builds.
23572         (announcement): Likewise.  Split --bootstrap-tools list...
23573         (boostrap-tools): ...into separate list, which can be overridden
23574         in cfg.mk.
23575         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
23576         requiring dependency on useless-if-before-free module.
23577         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
23578         Support VPATH builds.
23579
23580 2009-04-24  Jim Meyering  <meyering@redhat.com>
23581
23582         maint.mk: remove coreutils-specific rules and variables
23583         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
23584         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
23585         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
23586
23587         maint.mk: remove obsolete rule
23588         * top/maint.mk (rel-check): Remove rule.
23589         (WGET, WGETFLAGS): Remove now-unused variables.
23590
23591 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23592
23593         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
23594         consistency.
23595
23596         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
23597         '$(PATH_SEPARATOR)' instead of ':'.
23598
23599 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23600
23601         * lib/getopt1.c (main): Use 'const' for static array.
23602
23603 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23604
23605         * top/maint.mk: Sync with coreutils.
23606         * NEWS: Explain incompatibilities.
23607
23608 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23609             Bruno Haible  <bruno@clisp.org>
23610
23611         Fix cross-compilation results.
23612         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
23613         statement, as third argument of AC_TRY_RUN.
23614         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23615         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23616         Likewise.
23617         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23618         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23619         Likewise.
23620         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23621         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
23622         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
23623
23624 2009-04-20  Bruno Haible  <bruno@clisp.org>
23625
23626         Avoid test failure on mingw.
23627         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
23628
23629 2009-04-20  Bruno Haible  <bruno@clisp.org>
23630
23631         Avoid compilation error on mingw.
23632         * modules/localename-tests (Depends-on): Add locale.
23633
23634 2009-04-19  Bruno Haible  <bruno@clisp.org>
23635
23636         Support for building a shared library on Windows platforms.
23637         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
23638         (main): Test the presence of UNINORM_NFC here.
23639         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
23640         (main): Test the presence of UNINORM_NFD here.
23641         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
23642         (main): Test the presence of UNINORM_NFKC here.
23643         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
23644         (main): Test the presence of UNINORM_NFKD here.
23645
23646 2009-04-19  Bruno Haible  <bruno@clisp.org>
23647
23648         Avoid a compiler warning.
23649         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
23650         Change type of variable 'sequence'.
23651
23652 2009-04-19  Bruno Haible  <bruno@clisp.org>
23653
23654         * modules/configmake (Makefile.am): When the contents of configmake.h
23655         does not change, arrange to preserve its modification time.
23656
23657 2009-04-17  Simon Josefsson  <simon@josefsson.org>
23658
23659         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
23660         gettext domain.
23661
23662 2009-04-16  Jim Meyering  <meyering@redhat.com>
23663
23664         useless-if-before-free: improve conversion code
23665         * build-aux/useless-if-before-free: Adjust code-in-comment to match
23666         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
23667
23668 2009-04-14  Bruno Haible  <bruno@clisp.org>
23669
23670         * modules/fcntl (Depends-on): Add extensions.
23671         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
23672
23673 2009-04-12  Ben Pfaff  <blp@gnu.org>
23674
23675         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
23676         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
23677
23678 2009-03-20  Ben Pfaff  <blp@gnu.org>
23679
23680         Make rename replace existing destinations on Windows.
23681         * m4/rename.m4: Add test for Mingw.
23682         * lib/rename.c: Add rename replacement that uses MoveFileEx with
23683         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
23684         * doc/posix-functions/rename.texi: Document.
23685
23686 2009-04-10  Bruno Haible  <bruno@clisp.org>
23687
23688         New include file "iconveh.h".
23689         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23690         * lib/striconveh.h: Include it.
23691         (enum iconv_ilseq_handler): Remove definition.
23692         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
23693         striconveh.h.
23694         * lib/striconveha.c: Include striconveh.h.
23695         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
23696         * modules/striconveh (Files): Add lib/iconveh.h.
23697         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
23698         lib/striconveh.h.
23699
23700 2009-04-10  Bruno Haible  <bruno@clisp.org>
23701
23702         * lib/uniconv.h: Update comment.
23703
23704 2009-04-10  Bruno Haible  <bruno@clisp.org>
23705
23706         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
23707         always.
23708         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
23709         * lib/unistr/u16-mbtouc-aux.c: Likewise.
23710         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
23711         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
23712         "unistring-notinline.h", so that the function gets defined always.
23713         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
23714         * lib/unistr/u8-uctomb.c: Likewise.
23715         * lib/unistr/u16-mbtouc.c: Likewise.
23716         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
23717         * lib/unistr/u16-uctomb.c: Likewise.
23718         * lib/unistr/u32-mbtouc.c: Likewise.
23719         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
23720         * lib/unistr/u32-uctomb.c: Likewise.
23721
23722 2009-04-10  Bruno Haible  <bruno@clisp.org>
23723
23724         Mark 'utime' obsolete.
23725         * modules/utime (Status, Notice): New sections.
23726         Suggested by Jim Meyering.
23727
23728         Fix cross-compile guess for utime test.
23729         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
23730         autoconf.
23731         * doc/posix-functions/utime.texi: Give more precisions.
23732         Reported by Jan <ipif@ymail.com>.
23733
23734 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
23735
23736         filevercmp: correct today's change
23737         * lib/filevercmp.c: Also handle coreutils' test inputs.
23738         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
23739
23740         Fix regression in 'filevercmp' module. Thanks Sven Joachim
23741         for reporting it.
23742         * lib/filevercmp.c: Special handle for "", "." and "..".
23743         * tests/test-filevercmp.c: Enlarge the set suite.
23744
23745 2009-04-07  Jim Meyering  <meyering@redhat.com>
23746
23747         useless-if-before-free: show how to remove braced useless free, too
23748         * build-aux/useless-if-before-free: still only in a comment, though.
23749
23750 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
23751
23752         maint.mk: import changes to syntax-check macros from coreutils
23753         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
23754         Use them in the relevant macros.
23755
23756 2009-04-06  Bruno Haible  <bruno@clisp.org>
23757
23758         Fix unportable use of bit-fields.
23759         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
23760         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
23761         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
23762
23763 2009-04-06  Bruno Haible  <bruno@clisp.org>
23764
23765         Avoid test failures on AIX and OSF/1.
23766         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
23767         that malloc(0) = NULL.
23768         * tests/unicase/test-u8-tolower.c (check): Likewise.
23769         * tests/unicase/test-u8-totitle.c (check): Likewise.
23770         * tests/unicase/test-u8-toupper.c (check): Likewise.
23771         * tests/unicase/test-u16-casefold.c (check): Likewise.
23772         * tests/unicase/test-u16-tolower.c (check): Likewise.
23773         * tests/unicase/test-u16-totitle.c (check): Likewise.
23774         * tests/unicase/test-u16-toupper.c (check): Likewise.
23775         * tests/unicase/test-u32-casefold.c (check): Likewise.
23776         * tests/unicase/test-u32-tolower.c (check): Likewise.
23777         * tests/unicase/test-u32-totitle.c (check): Likewise.
23778         * tests/unicase/test-u32-toupper.c (check): Likewise.
23779         * tests/uninorm/test-u8-nfc.c (check): Likewise.
23780         * tests/uninorm/test-u8-nfd.c (check): Likewise.
23781         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
23782         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
23783         * tests/uninorm/test-u16-nfc.c (check): Likewise.
23784         * tests/uninorm/test-u16-nfd.c (check): Likewise.
23785         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
23786         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
23787         * tests/uninorm/test-u32-nfc.c (check): Likewise.
23788         * tests/uninorm/test-u32-nfd.c (check): Likewise.
23789         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
23790         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
23791
23792 2009-04-05  Bruno Haible  <bruno@clisp.org>
23793
23794         Work around an autoconf limitation.
23795         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
23796         comment line if it would be longer than 3 KB.
23797
23798 2009-04-05  Bruno Haible  <bruno@clisp.org>
23799
23800         Avoid test failure with libiconv-1.13.
23801         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
23802         of the expected test results.
23803
23804 2009-04-05  Bruno Haible  <bruno@clisp.org>
23805
23806         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
23807         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
23808         that it should be installed.
23809
23810 2009-04-05  Bruno Haible  <bruno@clisp.org>
23811
23812         * gnulib-tool: New option --copy-file.
23813         (func_usage): Document it.
23814         (func_dest_tmpfilename): Moved out of func_import.
23815         (func_add_file, func_update_file): New functions, extracted from
23816         func_import.
23817         (func_import): Update.
23818
23819 2009-04-05  Karl Berry  <karl@gnu.org>
23820
23821         * README: prominently mention gnulib-tool.
23822         Rearrange sections so getting the code is near the top.
23823
23824 2009-04-05  Bruno Haible  <bruno@clisp.org>
23825
23826         * lib/unicase.h: Mention u*_cmp2.
23827         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23828         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
23829         * lib/unicase/ulc-casecmp.c: Likewise.
23830         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
23831         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
23832         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
23833         unistr/u8-cmp.
23834         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
23835         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
23836         unistr/u16-cmp.
23837         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
23838         unistr/u32-cmp.
23839
23840         * lib/uninorm.h: Mention u*_cmp2.
23841         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23842         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
23843         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
23844         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
23845         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
23846         unistr/u8-cmp.
23847         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
23848         unistr/u16-cmp.
23849         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
23850         unistr/u32-cmp.
23851
23852         New module 'unistr/u32-cmp2'.
23853         * lib/unistr/u32-cmp2.c: New file.
23854         * modules/unistr/u32-cmp2: New file.
23855
23856         New module 'unistr/u16-cmp2'.
23857         * lib/unistr/u16-cmp2.c: New file.
23858         * modules/unistr/u16-cmp2: New file.
23859
23860         New module 'unistr/u8-cmp2'.
23861         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
23862         * lib/unistr/u8-cmp2.c: New file.
23863         * lib/unistr/u-cmp2.h: New file.
23864         * modules/unistr/u8-cmp2: New file.
23865
23866 2009-04-05  Bruno Haible  <bruno@clisp.org>
23867
23868         * lib/unictype.h (uc_property_is_valid): New macro.
23869         * tests/unictype/test-pr_byname.c (main): Use it.
23870
23871         * lib/unistr.h: Doc fixes.
23872         * lib/uniconv.h: Doc fixes.
23873         * lib/unictype.h: Doc fixes.
23874
23875 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
23876
23877         Port coreutils 7.2 to Solaris 8.
23878
23879         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
23880         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
23881         for Solaris 8.  This is a bit of a hack, as it means it's the
23882         caller's responsibility to add -lnsl if needed, but most likely it
23883         won't be needed since only getaddrinfo uses this and getaddrinfo
23884         isn't needed on Solaris 8.
23885
23886         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
23887         problem to Solaris 8 encountered with coreutils 7.2, which
23888         resulted in a message "fnmatch.c:292: warning: passing argument 4
23889         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
23890         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
23891
23892 2009-04-03  Simon Josefsson  <simon@josefsson.org>
23893
23894         * m4/ld-version-script.m4: Add FIXME comment.
23895
23896 2009-04-02  Simon Josefsson  <simon@josefsson.org>
23897
23898         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
23899         SOVERSION variable.
23900
23901 2009-04-02  Bruno Haible  <bruno@clisp.org>
23902
23903         * Makefile (info, html, dvi, pdf): Combine the rules.
23904         Suggested by Jim Meyering.
23905
23906 2009-04-01  Bruno Haible  <bruno@clisp.org>
23907
23908         * Makefile (info, html, dvi, pdf): New targets.
23909         Reported by Reuben Thomas <rrt@sc3d.org>.
23910
23911 2009-04-01  Bruno Haible  <bruno@clisp.org>
23912
23913         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
23914         can be put into PATH.
23915         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
23916
23917 2009-04-01  Bruno Haible  <bruno@clisp.org>
23918
23919         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
23920
23921 2009-04-01  Bruno Haible  <bruno@clisp.org>
23922
23923         Rename module 'visibility'.
23924         * modules/lib-symbol-visibility: Renamed from modules/visibility.
23925         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
23926         * doc/gnulib.texi: Update.
23927         * MODULES.html.sh (Misc): Update.
23928         * NEWS: Mention the change.
23929
23930 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23931
23932         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
23933         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
23934         Eric Blake <ebb9@byu.net> for review.
23935         * MODULES.html.sh: Add lib-msvc-compat.
23936         * doc/gnulib.texi: Link to new section.
23937         * m4/ld-output-def.m4: New file.
23938         * doc/ld-output-def.texi: New file.
23939
23940 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23941
23942         Rename ld-version-script to lib-symbol-versions.  Suggested by
23943         Bruno Haible <bruno@clisp.org>.
23944         * modules/ld-version-script: Renamed to lib-symbol-versions.
23945         * doc/ld-version-script.texi: Fix module name.
23946         * MODULES.html.sh: Add lib-symbol-versions.
23947
23948 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23949
23950         * modules/u64-tests: New file.
23951         * tests/test-u64.c: New file.
23952
23953 2009-03-04  Simon Josefsson  <simon@josefsson.org>
23954
23955         * MODULES.html.sh: Mention u64.
23956         * modules/u64: New module.
23957         * modules/crypto/sha512: Depend on u64 module instead of providing
23958         u64.h.
23959
23960 2009-03-27  Eric Blake  <ebb9@byu.net>
23961
23962         test-strerror: make debugging EAI_SYSTEM easier
23963         * modules/getaddrinfo-tests (Depends-on): Add strerror.
23964         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
23965         failure was EAI_SYSTEM.
23966
23967 2009-03-25  Bruno Haible  <bruno@clisp.org>
23968
23969         Fix a problem with --enable-relocatable on Solaris 7.
23970         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
23971         since 2008-02-24.
23972
23973 2009-03-25  Eric Blake  <ebb9@byu.net>
23974
23975         test-sockets: avoid gcc warning
23976         * tests/test-sockets.c (main): Silence compiler warning.
23977
23978 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23979
23980         New modules nproc, pthread, contributed by Glen Lenker.
23981
23982         * MODULES.html.sh: Add pthread, nproc.
23983         * lib/nproc.c: New file.
23984         * lib/nproc.h: New file.
23985         * lib/pthread.in.h: New file.
23986         * m4/pthread.m4: New file.
23987         * modules/nproc: New file.
23988         * modules/pthread: New file.
23989
23990 2009-03-24  Simon Josefsson  <simon@josefsson.org>
23991
23992         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
23993         New variable.
23994
23995 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
23996
23997         filevercmp: handle simple~ and numbered.~3~ backup suffixes
23998         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
23999         * tests/test-filevercmp.c: Add tests for backup suffixes.
24000
24001 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24002
24003         * modules/stdlib (Depends-on): Add stdint, needed when defining
24004         struct random_data on, for example, HP-UX 10.20.  Reported by
24005         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24006
24007 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24008
24009         * lib/readline.c (readline): Call fflush on stdout after printing
24010         prompt.
24011
24012 2009-03-20  Bruno Haible  <bruno@clisp.org>
24013
24014         Remove dependency from 'close' module to -lws2_32 on native Windows.
24015         * lib/close-hook.h: New file.
24016         * lib/close-hook.c: New file.
24017         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24018         w32sock.h.
24019         (_gl_close_fd_maybe_socket): Remove function.
24020         (rpl_close): Invoke execute_all_close_hooks instead of
24021         _gl_close_fd_maybe_socket.
24022         * lib/sockets.c: Include close-hook.h, w32sock.h.
24023         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24024         (close_sockets_hook): New variable.
24025         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24026         (gl_sockets_cleanup): Unregister it.
24027         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24028         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24029         * modules/close-hook: New file.
24030         * modules/close (Files): Remove lib/w32sock.h.
24031         (Depends-on): Add close-hook.
24032         (Link): Remove section.
24033         * modules/sockets (Files): Add lib/w32sock.h.
24034         (Depends-on): Add close-hook.
24035         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24036         invocation.
24037         * NEWS: Mention that LIB_CLOSE is gone.
24038
24039 2009-03-23  Eric Blake  <ebb9@byu.net>
24040
24041         signal-tests: test previous patch
24042         * tests/test-signal.c: New file.
24043         * modules/signal-tests: Likewise.
24044
24045         signal.h: always support 'volatile sig_atomic_t'
24046         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24047         (gl_SIGNAL_H_DEFAULTS): Add a default.
24048         * modules/signal (Makefile.am): Substitute if needed.
24049         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24050         users can blindly add volatile.
24051         * doc/posix-headers/signal.texi (signal.h): Document it.
24052         Reported by Matthew Woehlke.
24053
24054 2009-03-23  Jim Meyering  <meyering@redhat.com>
24055
24056         pathmax: PATH_MAX: use pathconf only when available
24057         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24058         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24059         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24060         This avoids a link failure in a PSP cross-compilation environment
24061         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24062
24063         * lib/vasnprintf.c (divide): Fix typo in comment.
24064
24065 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24066
24067         * gnulib-tool (func_filter_filelist): Fix comment.
24068
24069 2009-03-20  Bruno Haible  <bruno@clisp.org>
24070
24071         Make sockets.h self-contained.
24072         * lib/sockets.c: Include sockets.h first.
24073         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24074
24075 2009-03-19  Eric Blake  <ebb9@byu.net>
24076
24077         doc: mention more functions added in cygwin 1.7.0
24078         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24079         addition.
24080         * doc/posix-functions/log2f.texi: Likewise.
24081
24082 2009-03-19  Jim Meyering  <meyering@redhat.com>
24083
24084         fsusage: avoid syntax error due to statement-before-declaration
24085         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24086         after all declarations.  Reported by Matthew Woehlke in
24087         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24088
24089 2009-03-18  Eric Blake  <ebb9@byu.net>
24090
24091         build-aux/compile: sync from automake
24092         * build-aux/compile: New file, from automake.
24093         * config/srclist.txt: Mention build-aux/compile.
24094
24095 2009-03-17  Bruno Haible  <bruno@clisp.org>
24096
24097         * lib/git-merge-changelog.c: Fix typo in comment.
24098         Reported by Reuben Thomas <rrt@sc3d.org>.
24099
24100 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24101
24102         * m4/regex.m4: update and improve help for
24103         --without-included-regex.
24104
24105 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24106
24107         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24108         failure on missing include files.
24109
24110 2009-03-17  Eric Blake  <ebb9@byu.net>
24111
24112         doc: mention more functions added in cygwin 1.7.0
24113         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24114         addition.
24115         * doc/posix-functions/fwscanf.texi: Likewise.
24116         * doc/posix-functions/swprintf.texi: Likewise.
24117         * doc/posix-functions/swscanf.texi: Likewise.
24118         * doc/posix-functions/vfwprintf.texi: Likewise.
24119         * doc/posix-functions/vfwscanf.texi: Likewise.
24120         * doc/posix-functions/vswprintf.texi: Likewise.
24121         * doc/posix-functions/vswscanf.texi: Likewise.
24122         * doc/posix-functions/vwprintf.texi: Likewise.
24123         * doc/posix-functions/vwscanf.texi: Likewise.
24124         * doc/posix-functions/wcscasecmp.texi: Likewise.
24125         * doc/posix-functions/wcsdup.texi: Likewise.
24126         * doc/posix-functions/wcsftime.texi: Likewise.
24127         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24128         * doc/posix-functions/wprintf.texi: Likewise.
24129         * doc/posix-functions/wscanf.texi: Likewise.
24130         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24131
24132 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24133
24134         maint.mk: really add $(AM_MAKEFLAGS)
24135         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24136         was inadvertently omitted in the last commit.
24137         Spotted by Bruno Haible.
24138
24139         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24140         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24141         $(AM_MAKEFLAGS)' rather than plain `make'.
24142
24143         gnulib-tool: execute $MAKE not make
24144         * gnulib-tool: Default $MAKE to 'make'.
24145         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24146         than make.  Initialize $MAKE in the do-autobuild script.
24147
24148         gnulib-tool: use $MAKE not make in generated files
24149         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24150         make, in generated files.  Initialize $MAKE in the do-autobuild
24151         script.
24152
24153         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24154
24155         GNUmakefile: disable parallelism only for multiple, recursive targets
24156         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24157         additions in the Makefile.
24158         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24159         by Automake.
24160         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24161         are listed on the command line and at least one of them is
24162         listed in $(ALL_RECURSIVE_TARGETS).
24163
24164 2009-03-14  Bruno Haible  <bruno@clisp.org>
24165
24166         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24167         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24168         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24169         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24170         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24171         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24172         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24173         unistr/u8-uctomb.
24174         * modules/unistr/u8-strchr (Depends-on): Likewise.
24175         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24176         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24177         unistr/u16-uctomb.
24178         * modules/unistr/u16-strchr (Depends-on): Likewise.
24179         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24180
24181 2009-03-12  Bruno Haible  <bruno@clisp.org>
24182
24183         Work around select() bug on Interix 3.5.
24184         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24185         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24186         * m4/select.m4: New file.
24187         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24188         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24189         * modules/select (Files): Add m4/select.m4.
24190         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24191         * modules/nanosleep (Depends-on): Add select.
24192         * modules/poll (Depends-on): Likewise.
24193         * doc/posix-functions/select.texi: Mention the Interix bug.
24194         Reported by Markus Duft <mduft@gentoo.org>.
24195
24196         * lib/select.c: Renamed from lib/winsock-select.c.
24197         * modules/select (Files): Add lib/select.c, remove
24198         lib/winsock-select.c.
24199         (configure.ac): Update.
24200
24201 2009-03-12  Jim Meyering  <meyering@redhat.com>
24202
24203         avoid gcc warnings about unused macro definitions
24204         * lib/readtokens.c (STREQ): Remove unused definition.
24205         * lib/xmalloc.c (SIZE_MAX): Likewise.
24206         * lib/openat-die.c (N_): Likewise.
24207         * lib/mountlist.c (SIZE_MAX): Remove definition.
24208         Instead, include <stdint.h>.
24209         * lib/readutmp.c: Likewise.
24210         * modules/readutmp (Depends-on): Add stdint.
24211         * modules/mountlist (Depends-on): Add stdint.
24212         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24213
24214 2009-03-10  Bruno Haible  <bruno@clisp.org>
24215
24216         Tests for module 'mbmemcasecoll'.
24217         * modules/mbmemcasecoll-tests: New file.
24218         * tests/test-mbmemcasecoll1.sh: New file.
24219         * tests/test-mbmemcasecoll2.sh: New file.
24220         * tests/test-mbmemcasecoll3.sh: New file.
24221         * tests/test-mbmemcasecoll.c: New file.
24222
24223         New module 'mbmemcasecoll'.
24224         * lib/mbmemcasecoll.h: New file.
24225         * lib/mbmemcasecoll.c: New file.
24226         * modules/mbmemcasecoll: New file.
24227
24228         * tests/test-mbmemcasecmp.h: New file, extracted from
24229         tests/test-mbmemcasecmp.c.
24230         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24231         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24232         (main): Update.
24233         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24234
24235 2009-03-09  Bruno Haible  <bruno@clisp.org>
24236
24237         Tests for module 'mbmemcasecmp'.
24238         * modules/mbmemcasecmp-tests: New file.
24239         * tests/test-mbmemcasecmp1.sh: New file.
24240         * tests/test-mbmemcasecmp2.sh: New file.
24241         * tests/test-mbmemcasecmp3.sh: New file.
24242         * tests/test-mbmemcasecmp.c: New file.
24243
24244         New module 'mbmemcasecmp'.
24245         * lib/mbmemcasecmp.h: New file.
24246         * lib/mbmemcasecmp.c: New file.
24247         * modules/mbmemcasecmp: New file.
24248
24249 2009-03-09  Bruno Haible  <bruno@clisp.org>
24250
24251         Tests for module 'unicase/ulc-casecoll'.
24252         * modules/unicase/ulc-casecoll-tests: New file.
24253         * tests/unicase/test-ulc-casecoll1.sh: New file.
24254         * tests/unicase/test-ulc-casecoll2.sh: New file.
24255         * tests/unicase/test-ulc-casecoll.c: New file.
24256
24257         New module 'unicase/ulc-casecoll'.
24258         * lib/unicase.h (ulc_casecoll): New declaration.
24259         * lib/unicase/ulc-casecoll.c: New file.
24260         * modules/unicase/ulc-casecoll: New file.
24261
24262         New module 'unicase/ulc-casexfrm'.
24263         * lib/unicase.h (ulc_casexfrm): New declaration.
24264         * lib/unicase/ulc-casexfrm.c: New file.
24265         * modules/unicase/ulc-casexfrm: New file.
24266
24267 2009-03-09  Bruno Haible  <bruno@clisp.org>
24268
24269         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24270         invocations.
24271
24272         * m4/mbscasecmp.m4: Remove file.
24273         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24274         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24275
24276         * m4/mbscasestr.m4: Remove file.
24277         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24278         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24279
24280         * m4/mbschr.m4: Remove file.
24281         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24282         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24283
24284         * m4/mbscspn.m4: Remove file.
24285         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24286         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24287
24288         * m4/mbslen.m4: Remove file.
24289         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24290         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24291
24292         * m4/mbsncasecmp.m4: Remove file.
24293         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24294         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24295
24296         * m4/mbsnlen.m4: Remove file.
24297         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24298         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24299
24300         * m4/mbspbrk.m4: Remove file.
24301         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24302         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24303
24304         * m4/mbspcasecmp.m4: Remove file.
24305         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24306         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24307
24308         * m4/mbsrchr.m4: Remove file.
24309         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24310         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24311
24312         * m4/mbssep.m4: Remove file.
24313         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24314         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24315
24316         * m4/mbsspn.m4: Remove file.
24317         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24318         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24319
24320         * m4/mbsstr.m4: Remove file.
24321         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24322         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24323
24324         * m4/mbstok_r.m4: Remove file.
24325         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24326         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24327
24328         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24329
24330         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24331         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24332
24333         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24334
24335 2009-03-08  Bruno Haible  <bruno@clisp.org>
24336
24337         Tests for module 'unicase/ulc-casecmp'.
24338         * modules/unicase/ulc-casecmp-tests: New file.
24339         * tests/unicase/test-ulc-casecmp1.sh: New file.
24340         * tests/unicase/test-ulc-casecmp2.sh: New file.
24341         * tests/unicase/test-ulc-casecmp.c: New file.
24342
24343         New module 'unicase/ulc-casecmp'.
24344         * lib/unicase.h (ulc_casecmp): New declaration.
24345         * lib/unicase/ulc-casecmp.c: New file.
24346         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24347         'const SRC_UNIT *'.
24348         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24349         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24350         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24351         * modules/unicase/ulc-casecmp: New file.
24352
24353         Tests for module 'unicase/u32-is-cased'.
24354         * modules/unicase/u32-is-cased-tests: New file.
24355         * tests/unicase/test-u32-is-cased.c: New file.
24356
24357         Tests for module 'unicase/u16-is-cased'.
24358         * modules/unicase/u16-is-cased-tests: New file.
24359         * tests/unicase/test-u16-is-cased.c: New file.
24360
24361         Tests for module 'unicase/u8-is-cased'.
24362         * modules/unicase/u8-is-cased-tests: New file.
24363         * tests/unicase/test-u8-is-cased.c: New file.
24364         * tests/unicase/test-is-cased.h: New file.
24365
24366         New module 'unicase/u32-is-cased'.
24367         * lib/unicase/u32-is-cased.c: New file.
24368         * modules/unicase/u32-is-cased: New file.
24369
24370         New module 'unicase/u16-is-cased'.
24371         * lib/unicase/u16-is-cased.c: New file.
24372         * modules/unicase/u16-is-cased: New file.
24373
24374         New module 'unicase/u8-is-cased'.
24375         * lib/unicase/u8-is-cased.c: New file.
24376         * lib/unicase/u-is-cased.h: New file.
24377         * modules/unicase/u8-is-cased: New file.
24378
24379         Tests for module 'unicase/u32-is-casefolded'.
24380         * modules/unicase/u32-is-casefolded-tests: New file.
24381         * tests/unicase/test-u32-is-casefolded.c: New file.
24382
24383         Tests for module 'unicase/u16-is-casefolded'.
24384         * modules/unicase/u16-is-casefolded-tests: New file.
24385         * tests/unicase/test-u16-is-casefolded.c: New file.
24386
24387         Tests for module 'unicase/u8-is-casefolded'.
24388         * modules/unicase/u8-is-casefolded-tests: New file.
24389         * tests/unicase/test-u8-is-casefolded.c: New file.
24390         * tests/unicase/test-is-casefolded.h: New file.
24391
24392         New module 'unicase/u32-is-casefolded'.
24393         * lib/unicase/u32-is-casefolded.c: New file.
24394         * modules/unicase/u32-is-casefolded: New file.
24395
24396         New module 'unicase/u16-is-casefolded'.
24397         * lib/unicase/u16-is-casefolded.c: New file.
24398         * modules/unicase/u16-is-casefolded: New file.
24399
24400         New module 'unicase/u8-is-casefolded'.
24401         * lib/unicase/u8-is-casefolded.c: New file.
24402         * modules/unicase/u8-is-casefolded: New file.
24403
24404         Tests for module 'unicase/u32-is-titlecase'.
24405         * modules/unicase/u32-is-titlecase-tests: New file.
24406         * tests/unicase/test-u32-is-titlecase.c: New file.
24407
24408         Tests for module 'unicase/u16-is-titlecase'.
24409         * modules/unicase/u16-is-titlecase-tests: New file.
24410         * tests/unicase/test-u16-is-titlecase.c: New file.
24411
24412         Tests for module 'unicase/u8-is-titlecase'.
24413         * modules/unicase/u8-is-titlecase-tests: New file.
24414         * tests/unicase/test-u8-is-titlecase.c: New file.
24415         * tests/unicase/test-is-titlecase.h: New file.
24416
24417         New module 'unicase/u32-is-titlecase'.
24418         * lib/unicase/u32-is-titlecase.c: New file.
24419         * modules/unicase/u32-is-titlecase: New file.
24420
24421         New module 'unicase/u16-is-titlecase'.
24422         * lib/unicase/u16-is-titlecase.c: New file.
24423         * modules/unicase/u16-is-titlecase: New file.
24424
24425         New module 'unicase/u8-is-titlecase'.
24426         * lib/unicase/u8-is-titlecase.c: New file.
24427         * modules/unicase/u8-is-titlecase: New file.
24428
24429         Tests for module 'unicase/u32-is-lowercase'.
24430         * modules/unicase/u32-is-lowercase-tests: New file.
24431         * tests/unicase/test-u32-is-lowercase.c: New file.
24432
24433         Tests for module 'unicase/u16-is-lowercase'.
24434         * modules/unicase/u16-is-lowercase-tests: New file.
24435         * tests/unicase/test-u16-is-lowercase.c: New file.
24436
24437         Tests for module 'unicase/u8-is-lowercase'.
24438         * modules/unicase/u8-is-lowercase-tests: New file.
24439         * tests/unicase/test-u8-is-lowercase.c: New file.
24440         * tests/unicase/test-is-lowercase.h: New file.
24441
24442         New module 'unicase/u32-is-lowercase'.
24443         * lib/unicase/u32-is-lowercase.c: New file.
24444         * modules/unicase/u32-is-lowercase: New file.
24445
24446         New module 'unicase/u16-is-lowercase'.
24447         * lib/unicase/u16-is-lowercase.c: New file.
24448         * modules/unicase/u16-is-lowercase: New file.
24449
24450         New module 'unicase/u8-is-lowercase'.
24451         * lib/unicase/u8-is-lowercase.c: New file.
24452         * modules/unicase/u8-is-lowercase: New file.
24453
24454         Tests for module 'unicase/u32-is-uppercase'.
24455         * modules/unicase/u32-is-uppercase-tests: New file.
24456         * tests/unicase/test-u32-is-uppercase.c: New file.
24457
24458         Tests for module 'unicase/u16-is-uppercase'.
24459         * modules/unicase/u16-is-uppercase-tests: New file.
24460         * tests/unicase/test-u16-is-uppercase.c: New file.
24461
24462         Tests for module 'unicase/u8-is-uppercase'.
24463         * modules/unicase/u8-is-uppercase-tests: New file.
24464         * tests/unicase/test-u8-is-uppercase.c: New file.
24465         * tests/unicase/test-is-uppercase.h: New file.
24466
24467         New module 'unicase/u32-is-uppercase'.
24468         * lib/unicase/u32-is-uppercase.c: New file.
24469         * modules/unicase/u32-is-uppercase: New file.
24470
24471         New module 'unicase/u16-is-uppercase'.
24472         * lib/unicase/u16-is-uppercase.c: New file.
24473         * modules/unicase/u16-is-uppercase: New file.
24474
24475         New module 'unicase/u8-is-uppercase'.
24476         * lib/unicase/u8-is-uppercase.c: New file.
24477         * modules/unicase/u8-is-uppercase: New file.
24478
24479         New module 'unicase/u32-is-invariant'.
24480         * lib/unicase/u32-is-invariant.c: New file.
24481         * modules/unicase/u32-is-invariant: New file.
24482
24483         New module 'unicase/u16-is-invariant'.
24484         * lib/unicase/u16-is-invariant.c: New file.
24485         * modules/unicase/u16-is-invariant: New file.
24486
24487         New module 'unicase/u8-is-invariant'.
24488         * lib/unicase/u8-is-invariant.c: New file.
24489         * lib/unicase/invariant.h: New file.
24490         * lib/unicase/u-is-invariant.h: New file.
24491         * modules/unicase/u8-is-invariant: New file.
24492
24493         Tests for module 'unicase/u32-casecoll'.
24494         * modules/unicase/u32-casecoll-tests: New file.
24495         * tests/unicase/test-u32-casecoll.c: New file.
24496
24497         Tests for module 'unicase/u16-casecoll'.
24498         * modules/unicase/u16-casecoll-tests: New file.
24499         * tests/unicase/test-u16-casecoll.c: New file.
24500
24501         Tests for module 'unicase/u8-casecoll'.
24502         * modules/unicase/u8-casecoll-tests: New file.
24503         * tests/unicase/test-u8-casecoll.c: New file.
24504
24505         New module 'unicase/u32-casecoll'.
24506         * lib/unicase/u32-casecoll.c: New file.
24507         * modules/unicase/u32-casecoll: New file.
24508
24509         New module 'unicase/u16-casecoll'.
24510         * lib/unicase/u16-casecoll.c: New file.
24511         * modules/unicase/u16-casecoll: New file.
24512
24513         New module 'unicase/u8-casecoll'.
24514         * lib/unicase/u8-casecoll.c: New file.
24515         * lib/unicase/u-casecoll.h: New file.
24516         * modules/unicase/u8-casecoll: New file.
24517
24518         New module 'unicase/u32-casexfrm'.
24519         * lib/unicase/u32-casexfrm.c: New file.
24520         * modules/unicase/u32-casexfrm: New file.
24521
24522         New module 'unicase/u16-casexfrm'.
24523         * lib/unicase/u16-casexfrm.c: New file.
24524         * modules/unicase/u16-casexfrm: New file.
24525
24526         New module 'unicase/u8-casexfrm'.
24527         * lib/unicase/u8-casexfrm.c: New file.
24528         * lib/unicase/u-casexfrm.h: New file.
24529         * modules/unicase/u8-casexfrm: New file.
24530
24531         Tests for module 'unicase/u32-casecmp'.
24532         * modules/unicase/u32-casecmp-tests: New file.
24533         * tests/unicase/test-u32-casecmp.c: New file.
24534
24535         Tests for module 'unicase/u16-casecmp'.
24536         * modules/unicase/u16-casecmp-tests: New file.
24537         * tests/unicase/test-u16-casecmp.c: New file.
24538
24539         Tests for module 'unicase/u8-casecmp'.
24540         * modules/unicase/u8-casecmp-tests: New file.
24541         * tests/unicase/test-u8-casecmp.c: New file.
24542         * tests/unicase/test-casecmp.h: New file.
24543
24544         New module 'unicase/u32-casecmp'.
24545         * lib/unicase/u32-casecmp.c: New file.
24546         * modules/unicase/u32-casecmp: New file.
24547
24548         New module 'unicase/u16-casecmp'.
24549         * lib/unicase/u16-casecmp.c: New file.
24550         * modules/unicase/u16-casecmp: New file.
24551
24552         New module 'unicase/u8-casecmp'.
24553         * lib/unicase/u8-casecmp.c: New file.
24554         * lib/unicase/u-casecmp.h: New file.
24555         * modules/unicase/u8-casecmp: New file.
24556
24557         Tests for module 'unicase/u32-casefold'.
24558         * modules/unicase/u32-casefold-tests: New file.
24559         * tests/unicase/test-u32-casefold.c: New file.
24560
24561         Tests for module 'unicase/u16-casefold'.
24562         * modules/unicase/u16-casefold-tests: New file.
24563         * tests/unicase/test-u16-casefold.c: New file.
24564
24565         Tests for module 'unicase/u8-casefold'.
24566         * modules/unicase/u8-casefold-tests: New file.
24567         * tests/unicase/test-u8-casefold.c: New file.
24568
24569         New module 'unicase/u32-casefold'.
24570         * lib/unicase/u32-casefold.c: New file.
24571         * modules/unicase/u32-casefold: New file.
24572
24573         New module 'unicase/u16-casefold'.
24574         * lib/unicase/u16-casefold.c: New file.
24575         * modules/unicase/u16-casefold: New file.
24576
24577         New module 'unicase/u8-casefold'.
24578         * lib/unicase/u8-casefold.c: New file.
24579         * lib/unicase/u-casefold.h: New file.
24580         * modules/unicase/u8-casefold: New file.
24581
24582         New module 'unicase/tocasefold'.
24583         * lib/unicase/casefold.h: New file.
24584         * lib/unicase/tocasefold.c: New file.
24585         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
24586         * modules/unicase/tocasefold: New file.
24587
24588         Tests for module 'unicase/u32-totitle'.
24589         * modules/unicase/u32-totitle-tests: New file.
24590         * tests/unicase/test-u32-totitle.c: New file.
24591
24592         Tests for module 'unicase/u16-totitle'.
24593         * modules/unicase/u16-totitle-tests: New file.
24594         * tests/unicase/test-u16-totitle.c: New file.
24595
24596         Tests for module 'unicase/u8-totitle'.
24597         * modules/unicase/u8-totitle-tests: New file.
24598         * tests/unicase/test-u8-totitle.c: New file.
24599
24600         New module 'unicase/u32-totitle'.
24601         * lib/unicase/u32-totitle.c: New file.
24602         * modules/unicase/u32-totitle: New file.
24603
24604         New module 'unicase/u16-totitle'.
24605         * lib/unicase/u16-totitle.c: New file.
24606         * modules/unicase/u16-totitle: New file.
24607
24608         New module 'unicase/u8-totitle'.
24609         * lib/unicase/u8-totitle.c: New file.
24610         * lib/unicase/u-totitle.h: New file.
24611         * modules/unicase/u8-totitle: New file.
24612
24613         Tests for module 'unicase/u32-tolower'.
24614         * modules/unicase/u32-tolower-tests: New file.
24615         * tests/unicase/test-u32-tolower.c: New file.
24616
24617         Tests for module 'unicase/u16-tolower'.
24618         * modules/unicase/u16-tolower-tests: New file.
24619         * tests/unicase/test-u16-tolower.c: New file.
24620
24621         Tests for module 'unicase/u8-tolower'.
24622         * modules/unicase/u8-tolower-tests: New file.
24623         * tests/unicase/test-u8-tolower.c: New file.
24624
24625         New module 'unicase/u32-tolower'.
24626         * lib/unicase/u32-tolower.c: New file.
24627         * modules/unicase/u32-tolower: New file.
24628
24629         New module 'unicase/u16-tolower'.
24630         * lib/unicase/u16-tolower.c: New file.
24631         * modules/unicase/u16-tolower: New file.
24632
24633         New module 'unicase/u8-tolower'.
24634         * lib/unicase/u8-tolower.c: New file.
24635         * modules/unicase/u8-tolower: New file.
24636
24637         Tests for module 'unicase/u32-toupper'.
24638         * modules/unicase/u32-toupper-tests: New file.
24639         * tests/unicase/test-u32-toupper.c: New file.
24640
24641         Tests for module 'unicase/u16-toupper'.
24642         * modules/unicase/u16-toupper-tests: New file.
24643         * tests/unicase/test-u16-toupper.c: New file.
24644
24645         Tests for module 'unicase/u8-toupper'.
24646         * modules/unicase/u8-toupper-tests: New file.
24647         * tests/unicase/test-u8-toupper.c: New file.
24648
24649         New module 'unicase/u32-toupper'.
24650         * lib/unicase/u32-toupper.c: New file.
24651         * modules/unicase/u32-toupper: New file.
24652
24653         New module 'unicase/u16-toupper'.
24654         * lib/unicase/u16-toupper.c: New file.
24655         * modules/unicase/u16-toupper: New file.
24656
24657         New module 'unicase/u8-toupper'.
24658         * lib/unicase/u8-toupper.c: New file.
24659         * modules/unicase/u8-toupper: New file.
24660
24661         New module 'unicase/u32-casemap'.
24662         * lib/unicase/u32-casemap.c: New file.
24663         * modules/unicase/u32-casemap: New file.
24664
24665         New module 'unicase/u16-casemap'.
24666         * lib/unicase/u16-casemap.c: New file.
24667         * modules/unicase/u16-casemap: New file.
24668
24669         New module 'unicase/u8-casemap'.
24670         * lib/unicase/unicasemap.h: New file.
24671         * lib/unicase/u8-casemap.c: New file.
24672         * lib/unicase/u-casemap.h: New file.
24673         * modules/unicase/u8-casemap: New file.
24674
24675         New module 'unicase/special-casing'.
24676         * lib/unicase/special-casing.h: New file.
24677         * lib/unicase/special-casing.c: New file.
24678         * lib/unicase/special-casing-table.gperf: New file, generated by
24679         gen-uni-tables.c.
24680         * modules/unicase/special-casing: New file.
24681
24682         Tests for module 'unicase/locale-language'.
24683         * modules/unicase/locale-language-tests: New file.
24684         * tests/unicase/test-locale-language.sh: New file.
24685         * tests/unicase/test-locale-language.c: New file.
24686
24687         New module 'unicase/locale-language'.
24688         * lib/unicase/locale-language.c: New file.
24689         * lib/unicase/locale-languages.gperf: New file.
24690         * modules/unicase/locale-language: New file.
24691
24692         Generate more tables for case conversion and case folding.
24693         * lib/gen-uni-tables.c (SCC_*): New enum items.
24694         (struct special_casing_rule): New type.
24695         (casing_rules, num_casing_rules, allocated_casing_rules): New
24696         variables.
24697         (add_casing_rule, fill_casing_rules): New functions.
24698         (struct casefold_rule): New type.
24699         (casefolding_rules, num_casefolding_rules,
24700         allocated_casefolding_rules): New variables.
24701         (fill_casefolding_rules): New function.
24702         (unicode_casefold): New variable.
24703         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
24704         sort_casing_rules, output_casing_rules): New functions.
24705         (main): Accept to more arguments: SpecialCasing.txt and
24706         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
24707         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
24708         Output mapping for casefolding.
24709
24710         * lib/unicase.h: Include stdbool.h, uninorm.h.
24711         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
24712         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
24713         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
24714         arguments.
24715         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
24716         resultp arguments.
24717         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
24718         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
24719         resultp arguments.
24720         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
24721         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
24722         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
24723         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
24724         declarations.
24725         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
24726
24727 2009-03-08  Bruno Haible  <bruno@clisp.org>
24728
24729         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24730         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
24731         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
24732         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24733
24734 2009-03-07  Bruno Haible  <bruno@clisp.org>
24735
24736         Adjust u*_normcmp, u*_normcoll API.
24737         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24738         u16_normcoll, u32_normcoll): Change failure conventions.
24739         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
24740         errno and return -1.
24741         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24742
24743 2009-03-07  Bruno Haible  <bruno@clisp.org>
24744
24745         Tests for module 'uninorm/u32-normcoll'.
24746         * modules/uninorm/u32-normcoll-tests: New file.
24747         * tests/uninorm/test-u32-normcoll.c: New file.
24748
24749         Tests for module 'uninorm/u16-normcoll'.
24750         * modules/uninorm/u16-normcoll-tests: New file.
24751         * tests/uninorm/test-u16-normcoll.c: New file.
24752
24753         Tests for module 'uninorm/u8-normcoll'.
24754         * modules/uninorm/u8-normcoll-tests: New file.
24755         * tests/uninorm/test-u8-normcoll.c: New file.
24756
24757 2009-03-07  Bruno Haible  <bruno@clisp.org>
24758
24759         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
24760         tests/uninorm/test-u32-normcmp.c.
24761         * tests/uninorm/test-u32-normcmp.c: Include it.
24762         (test_nonascii): New function, extracted from main. Add some more
24763         tests.
24764         (main): Invoke test_ascii and test_nonascii.
24765         * modules/uninorm/u32-normcmp-tests (Files): Add
24766         tests/uninorm/test-u32-normcmp.h.
24767         (Depends-on): Remove uninorm/u32-normcmp.
24768
24769         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
24770         tests/uninorm/test-u16-normcmp.c.
24771         * tests/uninorm/test-u16-normcmp.c: Include it.
24772         (test_nonascii): New function, extracted from main. Add some more
24773         tests.
24774         (main): Invoke test_ascii and test_nonascii.
24775         * modules/uninorm/u16-normcmp-tests (Files): Add
24776         tests/uninorm/test-u16-normcmp.h.
24777         (Depends-on): Remove uninorm/u16-normcmp.
24778
24779         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
24780         tests/uninorm/test-u8-normcmp.c.
24781         * tests/uninorm/test-u8-normcmp.c: Include it.
24782         (test_nonascii): New function, extracted from main. Add some more
24783         tests.
24784         (main): Invoke test_ascii and test_nonascii.
24785         * modules/uninorm/u8-normcmp-tests (Files): Add
24786         tests/uninorm/test-u8-normcmp.h.
24787         (Depends-on): Remove uninorm/u8-normcmp.
24788
24789 2009-03-07  Bruno Haible  <bruno@clisp.org>
24790
24791         New module 'uninorm/u32-normcoll'.
24792         * lib/uninorm/u32-normcoll.c: New file.
24793         * modules/uninorm/u32-normcoll: New file.
24794
24795         New module 'uninorm/u16-normcoll'.
24796         * lib/uninorm/u16-normcoll.c: New file.
24797         * modules/uninorm/u16-normcoll: New file.
24798
24799         New module 'uninorm/u8-normcoll'.
24800         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
24801         declarations.
24802         * lib/uninorm/u8-normcoll.c: New file.
24803         * lib/uninorm/u-normcoll.h: New file.
24804         * modules/uninorm/u8-normcoll: New file.
24805
24806         New module 'uninorm/u32-normxfrm'.
24807         * lib/uninorm/u32-normxfrm.c: New file.
24808         * modules/uninorm/u32-normxfrm: New file.
24809
24810         New module 'uninorm/u16-normxfrm'.
24811         * lib/uninorm/u16-normxfrm.c: New file.
24812         * modules/uninorm/u16-normxfrm: New file.
24813
24814         New module 'uninorm/u8-normxfrm'.
24815         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
24816         declarations.
24817         * lib/uninorm/u8-normxfrm.c: New file.
24818         * lib/uninorm/u-normxfrm.h: New file.
24819         * modules/uninorm/u8-normxfrm: New file.
24820
24821 2009-03-07  Bruno Haible  <bruno@clisp.org>
24822
24823         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
24824         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
24825         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
24826
24827 2009-03-07  Bruno Haible  <bruno@clisp.org>
24828
24829         New module 'memxfrm'.
24830         * lib/memxfrm.h: New file.
24831         * lib/memxfrm.c: New file.
24832         * modules/memxfrm: New file.
24833
24834 2009-03-07  Bruno Haible  <bruno@clisp.org>
24835
24836         New module 'memcmp2'.
24837         * lib/memcmp2.h: New file.
24838         * lib/memcmp2.c: New file.
24839         * modules/memcmp2: New file.
24840
24841 2009-03-07  Bruno Haible  <bruno@clisp.org>
24842
24843         Tests for module 'uninorm/decomposing-form'.
24844         * modules/uninorm/decomposing-form-tests: New file.
24845         * tests/uninorm/test-decomposing-form.c: New file.
24846
24847         New module 'uninorm/decomposing-form'.
24848         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
24849         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
24850         Add 'decomposing_variant' field.
24851         * lib/uninorm/decomposing-form.c: New file.
24852         * lib/uninorm/nfc.c (uninorm_nfc): Update.
24853         * lib/uninorm/nfd.c (uninorm_nfd): Update.
24854         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
24855         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
24856         * modules/uninorm/decomposing-form: New file.
24857         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
24858         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
24859
24860 2009-03-07  Bruno Haible  <bruno@clisp.org>
24861
24862         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
24863         strings.
24864
24865 2009-03-06  Bruno Haible  <bruno@clisp.org>
24866
24867         Tests for module 'uninorm/u32-normcmp'.
24868         * tests/uninorm/test-u32-normcmp.c: New file.
24869         * modules/uninorm/u32-normcmp-tests: New file.
24870
24871         Tests for module 'uninorm/u16-normcmp'.
24872         * tests/uninorm/test-u16-normcmp.c: New file.
24873         * modules/uninorm/u16-normcmp-tests: New file.
24874
24875         Tests for module 'uninorm/u8-normcmp'.
24876         * tests/uninorm/test-u8-normcmp.c: New file.
24877         * modules/uninorm/u8-normcmp-tests: New file.
24878
24879         New module 'uninorm/u32-normcmp'.
24880         * lib/uninorm/u32-normcmp.c: New file.
24881         * modules/uninorm/u32-normcmp: New file.
24882
24883         New module 'uninorm/u16-normcmp'.
24884         * lib/uninorm/u16-normcmp.c: New file.
24885         * modules/uninorm/u16-normcmp: New file.
24886
24887         New module 'uninorm/u8-normcmp'.
24888         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
24889         declarations.
24890         * lib/uninorm/u8-normcmp.c: New file.
24891         * lib/uninorm/u-normcmp.h: New file.
24892         * modules/uninorm/u8-normcmp: New file.
24893
24894 2009-03-06  Bruno Haible  <bruno@clisp.org>
24895
24896         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
24897         Reported by Eric Blake.
24898
24899 2009-03-06  Eric Blake  <ebb9@byu.net>
24900             Bruno Haible  <bruno@clisp.org>
24901
24902         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
24903         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
24904         condition.
24905         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24906         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
24907         condition.
24908         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24909
24910 2009-03-06  Eric Blake  <ebb9@byu.net>
24911
24912         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
24913         to avoid compiler warnings.
24914         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
24915
24916 2009-03-05  Bruno Haible  <bruno@clisp.org>
24917
24918         * tests/test-ftell.c (main): Disable test beyond end of file on
24919         FreeMiNT.
24920         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24921
24922 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
24923
24924         * lib/filevercmp.c: Move hidden files up in ordering.
24925         * tests/test-filevercmp.c: Add tests for hidden files.
24926
24927 2009-03-04  Bruno Haible  <bruno@clisp.org>
24928
24929         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
24930         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
24931         AM_CFLAGS.
24932         Reported by Simon Josefsson.
24933
24934 2009-03-03  Bruno Haible  <bruno@clisp.org>
24935
24936         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
24937         Reported by Simon Josefsson.
24938
24939         * doc/ld-version-script.texi: Update node reference.
24940
24941 2009-03-03  Bruno Haible  <bruno@clisp.org>
24942
24943         * modules/visibility (License): Change to 'unlimited'.
24944         Suggested by Simon Josefsson.
24945
24946 2009-03-03  Jim Meyering  <meyering@redhat.com>
24947
24948         unlinkdir: cannot_unlink_dir may modify process state
24949         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
24950         it's neither thread-safe nor appropriate for use in a library.
24951
24952 2009-03-03  Eric Blake  <ebb9@byu.net>
24953
24954         test-closein: silence test under Darwin
24955         * tests/test-closein.sh: Ignore stderr from cat, since we don't
24956         care if it dies from EPIPE or EBADF.
24957
24958 2009-03-03  Bruno Haible  <bruno@clisp.org>
24959
24960         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
24961         earlier.
24962         * doc/visibility.texi: Fix @node and @section.
24963
24964 2009-03-03  Simon Josefsson  <simon@josefsson.org>
24965
24966         * doc/gnulib.texi: Link to sections for ld version script and
24967         visibility.
24968         * doc/visibility.texi: Add @node and @section.
24969         * modules/ld-version-script: New module.
24970         * m4/ld-version-script.m4: New file.
24971         * doc/ld-version-script.texi: New file.
24972
24973 2009-03-02  David Lutterkort  <lutter@redhat.com>
24974
24975         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
24976         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24977
24978 2009-03-02  Bruno Haible  <bruno@clisp.org>
24979
24980         * doc/visibility.texi: Mention libtool's -export-symbols option.
24981
24982 2009-03-02  Jim Meyering  <meyering@redhat.com>
24983
24984         announce-gen: new option: --no-print-checksums
24985         * build-aux/announce-gen (usage): Describe it.
24986         (print_checksums): Print a newline here, not in the [*] footnote.
24987         (main): Honor it.
24988
24989 2009-03-01  Bruno Haible  <bruno@clisp.org>
24990
24991         Use socklen_t in the native Windows replacements prototypes.
24992         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
24993         instead of 'int'.
24994         * lib/getsockopt.c (rpl_getsockopt): Likewise.
24995         * lib/setsockopt.c (rpl_setsockopt): Likewise.
24996         * modules/getsockopt (Depends-on): Add socklen.
24997         * modules/setsockopt (Depends-on): Add socklen.
24998
24999 2009-03-01  Bruno Haible  <bruno@clisp.org>
25000
25001         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25002         least 4.2.
25003
25004 2009-03-01  Eric Blake  <ebb9@byu.net>
25005             Bruno Haible  <bruno@clisp.org>
25006
25007         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25008         error messages.
25009         * lib/wait-process.c (wait_subprocess): Omit error message about
25010         deadly signal sent to the child of termsigp != NULL.
25011
25012 2009-03-01  Eric Blake  <ebb9@byu.net>
25013
25014         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25015
25016 2009-03-01  Bruno Haible  <bruno@clisp.org>
25017
25018         Avoid a gcc warning.
25019         * tests/test-sched.c (b): Make global.
25020         Reported by Eric Blake.
25021
25022 2009-01-19  Martin Lambers  <marlam@marlam.de>
25023
25024         Provide POSIX semantics for socket timeout options on W32.
25025         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25026         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25027         * modules/setsockopt: Depend on sys_time module for struct timeval.
25028         * modules/getsockopt: Depend on sys_time module for struct timeval.
25029
25030 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25031
25032         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25033         __USE_GNU, for consistency with netdb.in.h.
25034         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25035
25036 2009-03-01  Bruno Haible  <bruno@clisp.org>
25037
25038         More support for FreeMiNT.
25039         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25040         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25041
25042 2009-03-01  Bruno Haible  <bruno@clisp.org>
25043
25044         More support for FreeMiNT.
25045         * lib/fpurge.c (fpurge): Correct last commit.
25046         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25047
25048 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25049
25050         Fix unportable awk script in vc-list-files.
25051         * build-aux/vc-list-files: In the replacement awk script, use
25052         substr with a second argument of 1, not zero.
25053         Report by Simon Josefsson.
25054
25055 2009-02-28  Bruno Haible  <bruno@clisp.org>
25056
25057         More support for FreeMiNT.
25058         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25059         to FreeMiNT today.
25060         * lib/fwriting.c (fwriting): Likewise.
25061         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25062
25063 2009-02-28  Bruno Haible  <bruno@clisp.org>
25064
25065         * tests/test-freadseek.c (main): Disable test beyond end of file on
25066         FreeMiNT.
25067         * tests/test-ftello.c (main): Likewise.
25068         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25069
25070 2009-02-28  Bruno Haible  <bruno@clisp.org>
25071
25072         Add tentative support for FreeMiNT.
25073         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25074         * lib/fpurge.c (fpurge): Likewise.
25075         * lib/freadable.c (freadable): Likewise.
25076         * lib/freading.c (freading): Likewise.
25077         * lib/freadptr.c (freadptr): Likewise.
25078         * lib/freadseek.c (freadptrinc): Likewise.
25079         * lib/fseeko.c (rpl_fseeko): Likewise.
25080         * lib/fseterr.c (fseterr): Likewise.
25081         * lib/fwritable.c (fwritable): Likewise.
25082         * lib/fwriting.c (fwriting): Likewise.
25083         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25084         Hourihane.
25085         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25086
25087 2009-02-28  Bruno Haible  <bruno@clisp.org>
25088
25089         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25090         SIGCHLD.
25091         Reported by Jim Meyering.
25092
25093 2009-02-28  Bruno Haible  <bruno@clisp.org>
25094
25095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25096         Mention the results of these tests on various platforms.
25097         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25098         order.
25099         * doc/posix-functions/printf.texi: Likewise.
25100         * doc/posix-functions/snprintf.texi: Likewise.
25101         * doc/posix-functions/sprintf.texi: Likewise.
25102         * doc/posix-functions/vfprintf.texi: Likewise.
25103         * doc/posix-functions/vprintf.texi: Likewise.
25104         * doc/posix-functions/vsnprintf.texi: Likewise.
25105         * doc/posix-functions/vsprintf.texi: Likewise.
25106         * doc/glibc-functions/obstack_printf.texi: Likewise.
25107         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25108
25109 2009-02-28  Bruno Haible  <bruno@clisp.org>
25110
25111         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25112         Reported by Loïc Minier <lool@dooz.org>.
25113
25114 2009-02-27  Bruno Haible  <bruno@clisp.org>
25115
25116         * gnulib-tool (func_import): Make the sed expression used to create the
25117         sed script for updating the .gitignore file POSIX compliant.
25118         Reported by Eric Blake.
25119
25120 2009-02-27  Bruno Haible  <bruno@clisp.org>
25121
25122         * gnulib-tool (sed): Don't alias as "sed --posix".
25123         Reported by Eric Blake.
25124
25125 2009-02-27  Bruno Haible  <bruno@clisp.org>
25126
25127         Avoid test link errors.
25128         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25129         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25130         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25131         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25133
25134 2009-02-27  Bruno Haible  <bruno@clisp.org>
25135
25136         Avoid spurious "(cached)" in configure output.
25137         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25138         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25139         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25140         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25141         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25142         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25143         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25144         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25145         Reported by Eric Blake.
25146
25147 2009-02-27  Eric Blake  <ebb9@byu.net>
25148
25149         printf: fix regression in previous patch
25150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25151
25152 2009-02-27  Bruno Haible  <bruno@clisp.org>
25153
25154         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25155         value.
25156         * lib/stdint.in.h: Likewise.
25157         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25158
25159 2009-02-27  Eric Blake  <ebb9@byu.net>
25160
25161         doc: mention more functions added in cygwin 1.7.0
25162         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25163         addition.
25164         * doc/posix-functions/open_wmemstream.texi: Likewise.
25165         * doc/posix-functions/wcsnlen.texi: Likewise.
25166         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25167         * doc/posix-functions/wcstod.texi: Likewise.
25168         * doc/posix-functions/wcstof.texi: Likewise.
25169         * doc/posix-functions/wcstoimax.texi: Likewise.
25170         * doc/posix-functions/wcstok.texi: Likewise.
25171         * doc/posix-functions/wcstoumax.texi: Likewise.
25172
25173         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25175         * doc/posix-functions/fprintf.texi: Update.
25176         * doc/posix-functions/printf.texi: Update.
25177         * doc/posix-functions/snprintf.texi: Update.
25178         * doc/posix-functions/sprintf.texi: Update.
25179         * doc/posix-functions/vfprintf.texi: Update.
25180         * doc/posix-functions/vprintf.texi: Update.
25181         * doc/posix-functions/vsnprintf.texi: Update.
25182         * doc/posix-functions/vsprintf.texi: Update.
25183         * doc/glibc-functions/obstack_printf.texi: Update.
25184         * doc/glibc-functions/obstack_vprintf.texi: Update.
25185
25186 2009-02-26  Eric Blake  <ebb9@byu.net>
25187
25188         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25189         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25190         compilation bug by using runtime conversion.
25191         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25192         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25193         * modules/ceill-tests (Files): Use nan.h.
25194         * modules/floorl-tests (Files): Likewise.
25195         * modules/frexpl-tests (Files): Likewise.
25196         * modules/isnanl-tests (Files): Likewise.
25197         * modules/ldexpl-tests (Files): Likewise.
25198         * modules/roundl-tests (Files): Likewise.
25199         * modules/truncl-tests (Files): Likewise.
25200         * tests/test-ceill.c (main): Use a working NaN.
25201         * tests/test-floorl.c (main): Likewise.
25202         * tests/test-frexpl.c (main): Likewise.
25203         * tests/test-isnan.c (test_long_double): Likewise.
25204         * tests/test-isnanl.h (main): Likewise.
25205         * tests/test-ldexpl.h (main): Likewise.
25206         * tests/test-roundl.h (main): Likewise.
25207         * tests/test-truncl.h (main): Likewise.
25208         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25209
25210 2009-02-26  Eric Blake  <ebb9@byu.net>
25211             Bruno Haible  <bruno@clisp.org>
25212
25213         Work around a *printf bug with %ls on Solaris.
25214         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25215         precision is specified, sprintf stops converting the wide string
25216         argument when the number of bytes that have been produced by this
25217         conversion equals or exceeds the precision.
25218         * doc/posix-functions/fprintf.texi: Update.
25219         * doc/posix-functions/printf.texi: Update.
25220         * doc/posix-functions/snprintf.texi: Update.
25221         * doc/posix-functions/sprintf.texi: Update.
25222         * doc/posix-functions/vfprintf.texi: Update.
25223         * doc/posix-functions/vprintf.texi: Update.
25224         * doc/posix-functions/vsnprintf.texi: Update.
25225         * doc/posix-functions/vsprintf.texi: Update.
25226         * doc/glibc-functions/obstack_printf.texi: Update.
25227         * doc/glibc-functions/obstack_vprintf.texi: Update.
25228
25229 2009-02-26  Eric Blake  <ebb9@byu.net>
25230
25231         stdlib: favor compiler check of random.h
25232         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25233         to avoid an ObjC random.h installed by Swarm.
25234
25235 2009-02-26  Bruno Haible  <bruno@clisp.org>
25236
25237         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25238         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25239         Reported by Gary V. Vaughan <gary@gnu.org>.
25240
25241 2009-02-26  Bruno Haible  <bruno@clisp.org>
25242
25243         Fix *printf behaviour regarding the %ls directive.
25244         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25245         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25246         NEED_PRINTF_DIRECTIVE_LS.
25247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25248         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25249         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25250         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25251         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25252         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25253         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25255         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25256         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25258         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25259         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25261         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25262         * doc/posix-functions/fprintf.texi: Update.
25263         * doc/posix-functions/printf.texi: Update.
25264         * doc/posix-functions/snprintf.texi: Update.
25265         * doc/posix-functions/sprintf.texi: Update.
25266         * doc/posix-functions/vfprintf.texi: Update.
25267         * doc/posix-functions/vprintf.texi: Update.
25268         * doc/posix-functions/vsnprintf.texi: Update.
25269         * doc/posix-functions/vsprintf.texi: Update.
25270         * doc/glibc-functions/obstack_printf.texi: Update.
25271         * doc/glibc-functions/obstack_vprintf.texi: Update.
25272         Reported by Eric Blake.
25273
25274 2009-02-25  Bruno Haible  <bruno@clisp.org>
25275
25276         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25277         with known value.
25278         Reported by Gary V. Vaughan <gary@gnu.org>.
25279
25280 2009-02-25  Bruno Haible  <bruno@clisp.org>
25281
25282         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25283         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25284         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25285         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25286         Reported by Gary V. Vaughan <gary@gnu.org>.
25287
25288 2009-02-25  Bruno Haible  <bruno@clisp.org>
25289
25290         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25291         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25292         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25293         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25294         Reported by Gary V. Vaughan <gary@gnu.org>.
25295
25296 2009-02-25  Eric Blake  <ebb9@byu.net>
25297
25298         tests: skip fseek/ftell tests if ungetc is broken
25299         * m4/ungetc.m4: New file.
25300         * modules/fseek-tests: Split test, so ungetc dependency is
25301         separate from rest of test.
25302         * modules/fseeko-tests: Likewise.
25303         * modules/ftell-tests: Likewise.
25304         * modules/ftello-tests: Likewise.
25305         * tests/test-fseek.c (main): Isolate ungetc dependency.
25306         * tests/test-fseeko.c (main): Likewise.
25307         * tests/test-ftell.c (main): Likewise.
25308         * tests/test-ftello.c (main): Likewise.
25309         * tests/test-fseek2.sh: New file.
25310         * tests/test-fseeko2.sh: Likewise.
25311         * tests/test-ftell2.sh: Likewise.
25312         * tests/test-ftello2.sh: Likewise.
25313
25314 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
25315
25316         test-getaddrinfo: fix usage of skip return code 77
25317         * tests/test-gettaddrinfo.c: Return skip code 77 only
25318         for first occurance of skip (4x77 is not 77)
25319
25320 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25321
25322         strtod: avoid C99 decl-after-statement
25323         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25324
25325 2009-02-24  Eric Blake  <ebb9@byu.net>
25326
25327         strtod: detect HP-UX 11.31 bug
25328         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25329         Reported by Gary V. Vaughan.
25330
25331 2009-02-23  Bruno Haible  <bruno@clisp.org>
25332
25333         Fix invalid read past end of memory block.
25334         * lib/vasnprintf.c (DCHAR_SET): Define.
25335         (local_wcslen): Define only when needed.
25336         (local_strnlen, local_wcsnlen): New functions.
25337         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25338         directives that involve a conversion ourselves.
25339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25340         wcsnlen, mbrtowc, wcrtomb.
25341         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25342         * tests/test-vasprintf-posix.c (test_function): Likewise.
25343         * tests/test-snprintf-posix.h (test_function): Likewise.
25344         * tests/test-sprintf-posix.h (test_function): Likewise.
25345         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25346
25347 2009-02-22  Bruno Haible  <bruno@clisp.org>
25348
25349         Implement new clarified decomposition of Hangul syllables.
25350         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25351         of type LTV, return only a pairwise decomposition.
25352         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25353         Likewise.
25354         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25355         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25356         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25357
25358 2009-02-22  Bruno Haible  <bruno@clisp.org>
25359
25360         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25361         zero-length results and shrink excess allocated memory.
25362         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25363         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25364         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25365         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25366         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25367         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25368         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25369         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25370         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25371         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25372         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25373         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25374
25375 2009-02-21  Bruno Haible  <bruno@clisp.org>
25376
25377         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25378         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25379         spaces after a period. Put a space between a macro name and its
25380         argument list. Trivial rewordings.
25381         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25382         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25383         (main): Return 0 explicitly.
25384
25385 2009-02-21  Bruno Haible  <bruno@clisp.org>
25386
25387         Tests for module 'uninorm/filter'.
25388         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25389         * modules/uninorm/filter-tests: New file.
25390
25391         New module 'uninorm/filter'.
25392         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25393         uninorm_filter_flush, uninorm_filter_free): New declarations.
25394         * lib/uninorm/uninorm-filter.c: New file.
25395         * modules/uninorm/filter: New file.
25396
25397 2009-02-21  Bruno Haible  <bruno@clisp.org>
25398
25399         Tests for module 'uninorm/nfkc'.
25400         * tests/uninorm/test-nfkc.c: New file.
25401         * tests/uninorm/test-u8-nfkc.c: New file.
25402         * tests/uninorm/test-u16-nfkc.c: New file.
25403         * tests/uninorm/test-u32-nfkc.c: New file.
25404         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25405         * tests/uninorm/test-u32-nfkc-big.c: New file.
25406         * modules/uninorm/nfkc-tests: New file.
25407
25408         New module 'uninorm/nfkc'.
25409         * lib/uninorm/nfkc.c: New file.
25410         * modules/uninorm/nfkc: New file.
25411
25412         Tests for module 'uninorm/nfkd'.
25413         * tests/uninorm/test-nfkd.c: New file.
25414         * tests/uninorm/test-u8-nfkd.c: New file.
25415         * tests/uninorm/test-u16-nfkd.c: New file.
25416         * tests/uninorm/test-u32-nfkd.c: New file.
25417         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25418         * tests/uninorm/test-u32-nfkd-big.c: New file.
25419         * modules/uninorm/nfkd-tests: New file.
25420
25421         New module 'uninorm/nfkd'.
25422         * lib/uninorm/nfkd.c: New file.
25423         * modules/uninorm/nfkd: New file.
25424
25425         Tests for module 'uninorm/nfc'.
25426         * tests/uninorm/test-nfc.c: New file.
25427         * tests/uninorm/test-u8-nfc.c: New file.
25428         * tests/uninorm/test-u16-nfc.c: New file.
25429         * tests/uninorm/test-u32-nfc.c: New file.
25430         * tests/uninorm/test-u32-nfc-big.sh: New file.
25431         * tests/uninorm/test-u32-nfc-big.c: New file.
25432         * modules/uninorm/nfc-tests: New file.
25433
25434         New module 'uninorm/nfc'.
25435         * lib/uninorm/nfc.c: New file.
25436         * modules/uninorm/nfc: New file.
25437
25438         Tests for module 'uninorm/nfd'.
25439         * tests/uninorm/test-nfd.c: New file.
25440         * tests/uninorm/test-u8-nfd.c: New file.
25441         * tests/uninorm/test-u16-nfd.c: New file.
25442         * tests/uninorm/test-u32-nfd.c: New file.
25443         * tests/uninorm/test-u32-nfd-big.sh: New file.
25444         * tests/uninorm/test-u32-nfd-big.c: New file.
25445         * tests/uninorm/test-u32-normalize-big.h: New file.
25446         * tests/uninorm/test-u32-normalize-big.c: New file.
25447         * tests/uninorm/NormalizationTest.txt: New file, created from
25448         Unicode 5.1.0 NormalizationTest.txt.
25449         * modules/uninorm/nfd-tests: New file.
25450
25451         New module 'uninorm/nfd'.
25452         * lib/uninorm/nfd.c: New file.
25453         * modules/uninorm/nfd: New file.
25454
25455         New module 'uninorm/u32-normalize'.
25456         * lib/uninorm/u32-normalize.c: New file.
25457         * modules/uninorm/u32-normalize: New file.
25458
25459         New module 'uninorm/u16-normalize'.
25460         * lib/uninorm/u16-normalize.c: New file.
25461         * modules/uninorm/u16-normalize: New file.
25462
25463         New module 'uninorm/u8-normalize'.
25464         * lib/uninorm/u8-normalize.c: New file.
25465         * lib/uninorm/normalize-internal.h: New file.
25466         * lib/uninorm/u-normalize-internal.h: New file.
25467         * modules/uninorm/u8-normalize: New file.
25468
25469         New module 'uninorm/decompose-internal'.
25470         * lib/uninorm/decompose-internal.c: New file.
25471         * modules/uninorm/decompose-internal: New file.
25472
25473         Tests for module 'uninorm/composition'.
25474         * tests/uninorm/test-composition.c: New file.
25475         * modules/uninorm/composition-tests: New file.
25476
25477         New module 'uninorm/composition'.
25478         * lib/uninorm/composition.c: New file.
25479         * lib/uninorm/composition-table.gperf: New file, generated by
25480         gen-uni-tables.
25481         * modules/uninorm/composition: New file.
25482
25483         Tests for module 'uninorm/compat-decomposition'.
25484         * tests/uninorm/test-compat-decomposition.c: New file.
25485         * modules/uninorm/compat-decomposition-tests: New file.
25486
25487         New module 'uninorm/compat-decomposition'.
25488         * lib/uninorm/decompose-internal.h: New file.
25489         * lib/uninorm/compat-decomposition.c: New file.
25490         * modules/uninorm/compat-decomposition: New file.
25491
25492         Tests for module 'uninorm/canonical-decomposition'.
25493         * tests/uninorm/test-canonical-decomposition.c: New file.
25494         * modules/uninorm/canonical-decomposition-tests: New file.
25495
25496         New module 'uninorm/canonical-decomposition'.
25497         * lib/uninorm/canonical-decomposition.c: New file.
25498         * modules/uninorm/canonical-decomposition: New file.
25499
25500         Tests for module 'uninorm/decomposition'.
25501         * tests/uninorm/test-decomposition.c: New file.
25502         * modules/uninorm/decomposition-tests: New file.
25503
25504         New module 'uninorm/decomposition'.
25505         * lib/uninorm/decomposition.c: New file.
25506         * modules/uninorm/decomposition: New file.
25507
25508         New module 'uninorm/decomposition-table'.
25509         * lib/uninorm/decomposition-table.h: New file.
25510         * lib/uninorm/decomposition-table.c: New file.
25511         * lib/uninorm/decomposition-table1.h: New file, generated by
25512         gen-uni-tables.
25513         * lib/uninorm/decomposition-table2.h: New file, generated by
25514         gen-uni-tables.
25515         * modules/uninorm/decomposition-table: New file.
25516
25517         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25518         (UC_DECOMP_*): New enumeration items.
25519         (get_decomposition): New function.
25520         (struct decomp_table): New type.
25521         (output_decomposition, output_decomposition_tables): New functions.
25522         (unicode_composition_exclusions): New variable.
25523         (fill_composition_exclusions, debug_output_composition_tables): New
25524         functions.
25525         (main): Accept one more argument. Invoke fill_composition_exclusions.
25526         Output decomposition and composition tables.
25527
25528         New module 'uninorm/base'.
25529         * lib/uninorm.h: New file.
25530         * lib/unictype.h: Update comment.
25531         * modules/uninorm/base: New file.
25532
25533 2009-02-21  David Lutterkort  <lutter@redhat.com>
25534
25535         Tests for module 'safe-alloc'.
25536         * tests/test-safe-alloc.c: New file.
25537         * modules/safe-alloc-tests: New file.
25538
25539         New module 'safe-alloc'.
25540         * lib/safe-alloc.h: New file.
25541         * lib/safe-alloc.c: New file.
25542         * m4/safe-alloc.m4: New file.
25543         * modules/safe-alloc: New file.
25544         * doc/safe-alloc.texi: New file.
25545         * doc/gnulib.texi: Include it.
25546         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25547         safe-alloc.
25548
25549 2009-02-18  Bruno Haible  <bruno@clisp.org>
25550
25551         Fix link error on non-glibc systems.
25552         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
25553         variable.
25554         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25555
25556 2009-02-18  Jim Meyering  <meyering@redhat.com>
25557
25558         fts: avoid used-uninitialized error due to recent change
25559         * lib/fts.c (fts_read): Guard uses of the new member,
25560         parent->fts_n_dirs_remaining, since it's not relevant for
25561         the parent of a directory specified on the command-line.
25562
25563 2009-02-17  James Youngman  <jay@gnu.org>
25564             Bruno Haible  <bruno@clisp.org>
25565
25566         * m4/include_next.m4: Reformulate comment.
25567
25568 2009-02-16  Jim Meyering  <meyering@redhat.com>
25569
25570         fts: add #if guards so that the fts_lgpl module still builds
25571         * lib/fts.c: Guard just-added hash-table-using parts with
25572         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
25573         Reported by Simon Josefsson.
25574
25575 2009-02-15  Bruno Haible  <bruno@clisp.org>
25576
25577         * modules/array-mergesort-tests: New file.
25578         * tests/test-array-mergesort.c: New file.
25579
25580         New module 'array-mergesort'.
25581         * modules/array-mergesort: New file.
25582         * lib/array-mergesort.h: New file.
25583
25584 2009-02-15  Bruno Haible  <bruno@clisp.org>
25585
25586         Fix 2009-02-07 commit.
25587         * lib/gen-uni-tables.c (output_predicate, output_category,
25588         output_combclass, output_bidi_category, output_decimal_digit,
25589         output_digit, output_numeric, output_mirror, output_scripts,
25590         output_ident_category, output_simple_mapping): Fix format directives.
25591         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
25592
25593 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
25594
25595         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
25596         fixes are available from IBM.
25597
25598 2009-02-13  Jim Meyering  <meyering@redhat.com>
25599
25600         fts: arrange not to stat non-directories in more cases
25601         This makes GNU find (when it doesn't need to stat each file)
25602         *much* more efficient at traversing reiserfs file systems.
25603         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
25604         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
25605         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
25606         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
25607         (leaf_optimization_applies): New function.
25608         (LCO_hash, LCO_compare): New helper functions.
25609         (link_count_optimize_ok): New function.
25610         (fts_stat): Initialize new member (if dir).
25611         (fts_read): Decrement parent's fts_n_dirs_remaining count if
25612         we've just stat'ed a directory.  Skip the stat call when possible.
25613         ---
25614         Note this AFS-related exchange:
25615         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
25616         and note find's pioctl call in find/fstype.c.
25617         But that is necessary only if you want to enable the
25618         optimization for AFS, and for now, I don't.
25619
25620         fts: move a function definition "up" (no semantic change)
25621         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
25622         "up" to precede upcoming use of a related function.
25623
25624 2009-02-11  Jim Meyering  <meyering@redhat.com>
25625
25626         fts: correct internal computation of nlinks (optimization-related)
25627         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
25628         whether the current entry is a directory, so don't test it.
25629
25630 2009-02-10  Bruno Haible  <bruno@clisp.org>
25631
25632         Tests for module 'uniwbrk/ulc-wordbreaks'.
25633         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
25634         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
25635         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
25636
25637         Tests for module 'uniwbrk/u32-wordbreaks'.
25638         * modules/uniwbrk/u32-wordbreaks-tests: New file.
25639         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
25640
25641         Tests for module 'uniwbrk/u16-wordbreaks'.
25642         * modules/uniwbrk/u16-wordbreaks-tests: New file.
25643         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
25644
25645         Tests for module 'uniwbrk/u8-wordbreaks'.
25646         * modules/uniwbrk/u8-wordbreaks-tests: New file.
25647         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
25648
25649 2009-02-10  Bruno Haible  <bruno@clisp.org>
25650
25651         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
25652         property.
25653         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
25654         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
25655         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
25656
25657 2009-02-10  Simon Josefsson  <simon@josefsson.org>
25658
25659         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
25660         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
25661
25662 2009-02-10  Bruno Haible  <bruno@clisp.org>
25663
25664         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
25665         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
25666         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
25667         * lib/unilbrk/u8-possible-linebreaks.c: Update.
25668         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
25669         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
25670
25671 2009-02-09  Simon Josefsson  <simon@josefsson.org>
25672
25673         * lib/sockets.h (gl_fd_to_handle): New function.
25674
25675         * tests/test-sockets.c: Call gl_fd_to_handle.
25676
25677 2009-02-09  Bruno Haible  <bruno@clisp.org>
25678
25679         * doc/havelib.texi: Document the conventions on bi-arch systems.
25680
25681 2009-02-08  Bruno Haible  <bruno@clisp.org>
25682
25683         Document the AC_LIB_LINKFLAGS macro.
25684         * doc/havelib.texi: New file, mostly written on 2005-05-24.
25685         * doc/gnulib.texi: Include it.
25686
25687 2009-02-08  Bruno Haible  <bruno@clisp.org>
25688
25689         Fix wrong order of sections, compared to TOC.
25690         * doc/gnulib.texi: Include relocatable-maint.texi after the
25691         "Regular expressions" node, not before.
25692
25693 2009-02-08  Bruno Haible  <bruno@clisp.org>
25694
25695         Tests for module 'unicase/totitle'.
25696         * modules/unicase/totitle-tests: New file.
25697
25698         Tests for module 'unicase/tolower'.
25699         * modules/unicase/tolower-tests: New file.
25700
25701         Tests for module 'unicase/toupper'.
25702         * modules/unicase/toupper-tests: New file.
25703         * tests/unicase/test-mapping-part1.h: New file.
25704         * tests/unicase/test-mapping-part2.h: New file.
25705
25706         New module 'unicase/totitle'.
25707         * modules/unicase/totitle: New file.
25708         * lib/unicase/totitle.c: New file.
25709
25710         New module 'unicase/tolower'.
25711         * modules/unicase/tolower: New file.
25712         * lib/unicase/tolower.c: New file.
25713
25714         New module 'unicase/toupper'.
25715         * modules/unicase/toupper: New file.
25716         * lib/unicase/toupper.c: New file.
25717         * lib/unicase/simple-mapping.h: New file.
25718
25719         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
25720         (mapping_table): New structure.
25721         (output_simple_mapping): New function.
25722         (main): Invoke output_simple_mapping_test and output_simple_mapping.
25723         * modules/gen-uni-tables (Description): Update.
25724         * lib/unicase/toupper.h: New file, automatically generated by
25725         gen-uni-tables.
25726         * lib/unicase/tolower.h: New file, automatically generated by
25727         gen-uni-tables.
25728         * lib/unicase/totitle.h: New file, automatically generated by
25729         gen-uni-tables.
25730         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
25731         gen-uni-tables.
25732         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
25733         gen-uni-tables.
25734         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
25735         gen-uni-tables.
25736
25737         New module 'unicase/base'.
25738         * modules/unicase/base: New file.
25739         * lib/unicase.h: New file.
25740
25741 2009-02-08  Bruno Haible  <bruno@clisp.org>
25742
25743         New module 'uniwbrk/ulc-wordbreaks'.
25744         * modules/uniwbrk/ulc-wordbreaks: New file.
25745         * lib/uniwbrk/ulc-wordbreaks.c: New file.
25746
25747         New module 'uniwbrk/u32-wordbreaks'.
25748         * modules/uniwbrk/u32-wordbreaks: New file.
25749         * lib/uniwbrk/u32-wordbreaks.c: New file.
25750
25751         New module 'uniwbrk/u16-wordbreaks'.
25752         * modules/uniwbrk/u16-wordbreaks: New file.
25753         * lib/uniwbrk/u16-wordbreaks.c: New file.
25754
25755         New module 'uniwbrk/u8-wordbreaks'.
25756         * modules/uniwbrk/u8-wordbreaks: New file.
25757         * lib/uniwbrk/u8-wordbreaks.c: New file.
25758         * lib/uniwbrk/u-wordbreaks.h: New file.
25759
25760         New module 'uniwbrk/table'.
25761         * modules/uniwbrk/table: New file.
25762         * lib/uniwbrk/wbrktable.h: New file.
25763         * lib/uniwbrk/wbrktable.c: New file.
25764
25765         New module 'uniwbrk/wordbreak-property'.
25766         * modules/uniwbrk/wordbreak-property: New file.
25767         * lib/uniwbrk/wordbreak-property.c: New file.
25768
25769         * lib/gen-uni-tables.c (WBP_*): New enum items.
25770         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
25771         (unicode_org_wbp): New variable.
25772         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
25773         New functions.
25774         (wbp_table): New structure.
25775         (output_wbp, output_wbrk_tables): New functions.
25776         (main): Accept additional argument. Invoke fill_org_wbp,
25777         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
25778         output_wbrk_tables.
25779         * modules/gen-uni-tables (Description): Update.
25780         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
25781         gen-uni-tables.
25782
25783         New module 'uniwbrk/base'.
25784         * modules/uniwbrk/base: New file.
25785         * lib/uniwbrk.h: New file.
25786
25787 2009-02-08  Bruno Haible  <bruno@clisp.org>
25788
25789         Update to Unicode 5.1.0.
25790         * lib/gen-uni-tables.c (is_property_alphabetic): Include
25791         U+2185..U+2188.
25792         (is_property_default_ignorable_code_point): Don't include characters
25793         of category Cc or Cs and not-a-characters.
25794         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
25795         U+0D79, U+109E, U+109F, U+A60C.
25796         * lib/unictype/bidi_of.h: Regenerated.
25797         * lib/unictype/blocks.h: Regenerated.
25798         * lib/unictype/categ_C.h: Regenerated.
25799         * lib/unictype/categ_Cf.h: Regenerated.
25800         * lib/unictype/categ_Cn.h: Regenerated.
25801         * lib/unictype/categ_L.h: Regenerated.
25802         * lib/unictype/categ_Ll.h: Regenerated.
25803         * lib/unictype/categ_Lm.h: Regenerated.
25804         * lib/unictype/categ_Lo.h: Regenerated.
25805         * lib/unictype/categ_Lu.h: Regenerated.
25806         * lib/unictype/categ_M.h: Regenerated.
25807         * lib/unictype/categ_Mc.h: Regenerated.
25808         * lib/unictype/categ_Me.h: Regenerated.
25809         * lib/unictype/categ_Mn.h: Regenerated.
25810         * lib/unictype/categ_N.h: Regenerated.
25811         * lib/unictype/categ_Nd.h: Regenerated.
25812         * lib/unictype/categ_Nl.h: Regenerated.
25813         * lib/unictype/categ_No.h: Regenerated.
25814         * lib/unictype/categ_P.h: Regenerated.
25815         * lib/unictype/categ_Pd.h: Regenerated.
25816         * lib/unictype/categ_Pe.h: Regenerated.
25817         * lib/unictype/categ_Pf.h: Regenerated.
25818         * lib/unictype/categ_Pi.h: Regenerated.
25819         * lib/unictype/categ_Po.h: Regenerated.
25820         * lib/unictype/categ_Ps.h: Regenerated.
25821         * lib/unictype/categ_S.h: Regenerated.
25822         * lib/unictype/categ_Sk.h: Regenerated.
25823         * lib/unictype/categ_Sm.h: Regenerated.
25824         * lib/unictype/categ_So.h: Regenerated.
25825         * lib/unictype/categ_of.h: Regenerated.
25826         * lib/unictype/combining.h: Regenerated.
25827         * lib/unictype/ctype_alnum.h: Regenerated.
25828         * lib/unictype/ctype_alpha.h: Regenerated.
25829         * lib/unictype/ctype_graph.h: Regenerated.
25830         * lib/unictype/ctype_lower.h: Regenerated.
25831         * lib/unictype/ctype_print.h: Regenerated.
25832         * lib/unictype/ctype_punct.h: Regenerated.
25833         * lib/unictype/ctype_upper.h: Regenerated.
25834         * lib/unictype/decdigit.h: Regenerated.
25835         * lib/unictype/digit.h: Regenerated.
25836         * lib/unictype/mirror.h: Regenerated.
25837         * lib/unictype/numeric.h: Regenerated.
25838         * lib/unictype/pr_alphabetic.h: Regenerated.
25839         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
25840         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
25841         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
25842         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
25843         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
25844         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
25845         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
25846         * lib/unictype/pr_combining.h: Regenerated.
25847         * lib/unictype/pr_dash.h: Regenerated.
25848         * lib/unictype/pr_decimal_digit.h: Regenerated.
25849         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
25850         * lib/unictype/pr_deprecated.h: Regenerated.
25851         * lib/unictype/pr_diacritic.h: Regenerated.
25852         * lib/unictype/pr_extender.h: Regenerated.
25853         * lib/unictype/pr_format_control.h: Regenerated.
25854         * lib/unictype/pr_grapheme_base.h: Regenerated.
25855         * lib/unictype/pr_grapheme_extend.h: Regenerated.
25856         * lib/unictype/pr_grapheme_link.h: Regenerated.
25857         * lib/unictype/pr_id_continue.h: Regenerated.
25858         * lib/unictype/pr_id_start.h: Regenerated.
25859         * lib/unictype/pr_ideographic.h: Regenerated.
25860         * lib/unictype/pr_ignorable_control.h: Regenerated.
25861         * lib/unictype/pr_lowercase.h: Regenerated.
25862         * lib/unictype/pr_math.h: Regenerated.
25863         * lib/unictype/pr_numeric.h: Regenerated.
25864         * lib/unictype/pr_other_alphabetic.h: Regenerated.
25865         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
25866         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
25867         * lib/unictype/pr_other_id_continue.h: Regenerated.
25868         * lib/unictype/pr_other_lowercase.h: Regenerated.
25869         * lib/unictype/pr_other_math.h: Regenerated.
25870         * lib/unictype/pr_punctuation.h: Regenerated.
25871         * lib/unictype/pr_sentence_terminal.h: Regenerated.
25872         * lib/unictype/pr_soft_dotted.h: Regenerated.
25873         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
25874         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
25875         * lib/unictype/pr_unified_ideograph.h: Regenerated.
25876         * lib/unictype/pr_uppercase.h: Regenerated.
25877         * lib/unictype/pr_xid_continue.h: Regenerated.
25878         * lib/unictype/pr_xid_start.h: Regenerated.
25879         * lib/unictype/pr_zero_width.h: Regenerated.
25880         * lib/unictype/scripts.h: Regenerated.
25881         * lib/unictype/scripts_byname.gperf: Regenerated.
25882         * lib/unictype/sy_java_ident.h: Regenerated.
25883         * lib/unilbrk/lbrkprop1.h: Regenerated.
25884         * lib/unilbrk/lbrkprop2.h: Regenerated.
25885         * tests/unictype/test-categ_C.c: Regenerated.
25886         * tests/unictype/test-categ_Cf.c: Regenerated.
25887         * tests/unictype/test-categ_Cn.c: Regenerated.
25888         * tests/unictype/test-categ_L.c: Regenerated.
25889         * tests/unictype/test-categ_Ll.c: Regenerated.
25890         * tests/unictype/test-categ_Lm.c: Regenerated.
25891         * tests/unictype/test-categ_Lo.c: Regenerated.
25892         * tests/unictype/test-categ_Lu.c: Regenerated.
25893         * tests/unictype/test-categ_M.c: Regenerated.
25894         * tests/unictype/test-categ_Mc.c: Regenerated.
25895         * tests/unictype/test-categ_Me.c: Regenerated.
25896         * tests/unictype/test-categ_Mn.c: Regenerated.
25897         * tests/unictype/test-categ_N.c: Regenerated.
25898         * tests/unictype/test-categ_Nd.c: Regenerated.
25899         * tests/unictype/test-categ_Nl.c: Regenerated.
25900         * tests/unictype/test-categ_No.c: Regenerated.
25901         * tests/unictype/test-categ_P.c: Regenerated.
25902         * tests/unictype/test-categ_Pd.c: Regenerated.
25903         * tests/unictype/test-categ_Pe.c: Regenerated.
25904         * tests/unictype/test-categ_Pf.c: Regenerated.
25905         * tests/unictype/test-categ_Pi.c: Regenerated.
25906         * tests/unictype/test-categ_Po.c: Regenerated.
25907         * tests/unictype/test-categ_Ps.c: Regenerated.
25908         * tests/unictype/test-categ_S.c: Regenerated.
25909         * tests/unictype/test-categ_Sk.c: Regenerated.
25910         * tests/unictype/test-categ_Sm.c: Regenerated.
25911         * tests/unictype/test-categ_So.c: Regenerated.
25912         * tests/unictype/test-ctype_alnum.c: Regenerated.
25913         * tests/unictype/test-ctype_alpha.c: Regenerated.
25914         * tests/unictype/test-ctype_graph.c: Regenerated.
25915         * tests/unictype/test-ctype_lower.c: Regenerated.
25916         * tests/unictype/test-ctype_print.c: Regenerated.
25917         * tests/unictype/test-ctype_punct.c: Regenerated.
25918         * tests/unictype/test-ctype_upper.c: Regenerated.
25919         * tests/unictype/test-decdigit.h: Regenerated.
25920         * tests/unictype/test-digit.h: Regenerated.
25921         * tests/unictype/test-numeric.h: Regenerated.
25922         * tests/unictype/test-pr_alphabetic.c: Regenerated.
25923         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
25924         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
25925         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
25926         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
25927         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
25928         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
25929         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
25930         * tests/unictype/test-pr_combining.c: Regenerated.
25931         * tests/unictype/test-pr_dash.c: Regenerated.
25932         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
25933         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
25934         * tests/unictype/test-pr_deprecated.c: Regenerated.
25935         * tests/unictype/test-pr_diacritic.c: Regenerated.
25936         * tests/unictype/test-pr_extender.c: Regenerated.
25937         * tests/unictype/test-pr_format_control.c: Regenerated.
25938         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
25939         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
25940         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
25941         * tests/unictype/test-pr_id_continue.c: Regenerated.
25942         * tests/unictype/test-pr_id_start.c: Regenerated.
25943         * tests/unictype/test-pr_ideographic.c: Regenerated.
25944         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
25945         * tests/unictype/test-pr_lowercase.c: Regenerated.
25946         * tests/unictype/test-pr_math.c: Regenerated.
25947         * tests/unictype/test-pr_numeric.c: Regenerated.
25948         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
25949         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
25950         Regenerated.
25951         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
25952         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
25953         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
25954         * tests/unictype/test-pr_other_math.c: Regenerated.
25955         * tests/unictype/test-pr_punctuation.c: Regenerated.
25956         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
25957         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
25958         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
25959         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
25960         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
25961         * tests/unictype/test-pr_uppercase.c: Regenerated.
25962         * tests/unictype/test-pr_xid_continue.c: Regenerated.
25963         * tests/unictype/test-pr_xid_start.c: Regenerated.
25964         * tests/unictype/test-pr_zero_width.c: Regenerated.
25965
25966         Update to Unicode 5.1.0.
25967         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
25968         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
25969         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
25970         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
25971         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
25972         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
25973         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
25974         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
25975         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
25976         (nonspacing_table_ind): Update.
25977         * tests/uniwidth/test-uc_width2.sh: Update expected result.
25978
25979         Update to Unicode 5.1.0.
25980         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
25981         code transform.
25982         * lib/uniname/uniname.c (unicode_character_name,
25983         unicode_name_character): Add the range 0x1Fxxx to the code transform.
25984         * lib/uniname/uninames.h: Regenerated.
25985         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
25986
25987 2009-02-07  Bruno Haible  <bruno@clisp.org>
25988
25989         Merge gen-ctype and gen-lbrk into a single program.
25990         * lib/gen-uni-tables.c: New file, incorporating
25991         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
25992         Add directory prefixes to the names of the generated files.
25993         * lib/unictype/gen-ctype.c: Remove file.
25994         * lib/unilbrk/gen-lbrk.c: Remove file.
25995         * modules/gen-uni-tables: New file.
25996         * modules/unictype/gen-ctype: Remove file.
25997         * modules/unilbrk/gen-lbrk: Remove file.
25998
25999 2009-02-07  Bruno Haible  <bruno@clisp.org>
26000
26001         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26002
26003         New module 'unistr/u32-strcoll'.
26004         * modules/unistr/u32-strcoll: New file.
26005         * lib/unistr/u32-strcoll.c: New file.
26006
26007         New module 'unistr/u16-strcoll'.
26008         * modules/unistr/u16-strcoll: New file.
26009         * lib/unistr/u16-strcoll.c: New file.
26010
26011         New module 'unistr/u8-strcoll'.
26012         * modules/unistr/u8-strcoll: New file.
26013         * lib/unistr/u8-strcoll.c: New file.
26014         * lib/unistr/u-strcoll.h: New file.
26015
26016 2009-02-07  Bruno Haible  <bruno@clisp.org>
26017
26018         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26019         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26020         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26021         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26022         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26023         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26024
26025 2009-02-07  Bruno Haible  <bruno@clisp.org>
26026
26027         Make 64-bit clean.
26028         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26029         output_combclass, output_bidi_category, output_decimal_digit,
26030         output_digit, output_numeric, output_mirror, output_scripts,
26031         output_ident_category): Use proper width specifier in format strings.
26032
26033 2009-02-07  Bruno Haible  <bruno@clisp.org>
26034
26035         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26036         failure behaviour.
26037
26038 2009-02-07  Jim Meyering  <meyering@redhat.com>
26039
26040         regex: avoid compilation failure with upcoming gcc-4.4
26041         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26042         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26043         "... error: integer overflow in preprocessor expression".
26044
26045 2009-02-05  Ben Pfaff  <blp@gnu.org>
26046
26047         Fix link errors on Windows when close module is used.
26048         * modules/close: Add $(LIB_CLOSE) to Link section.
26049         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26050         $(LIB_CLOSE) on Windows.
26051
26052 2009-02-05  Jim Meyering  <meyering@redhat.com>
26053
26054         still avoid unused-parameter warnings, but do it cleanly
26055         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26056         (get_fs_usage): Cast to void instead.
26057         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26058         (dev_from_mount_options, read_file_system_list): Cast to void.
26059         Prompted by Bruno Haible.
26060
26061 2009-02-04  Jim Meyering  <meyering@redhat.com>
26062
26063         fsusage.c: correct copyright year
26064         * lib/fsusage.c: Reflect year in which the change is pushed into
26065
26066         avoid misc. warnings
26067         * lib/fsusage.c (UNUSED_PARAM): Define.
26068         (get_fs_usage): Mark parameter "disk" as unused.
26069         * lib/getugroups.c (getgrent): Use "void" in prototype.
26070         * lib/mountlist.c: Mark unused parameters.
26071         (read_file_system_list): Declare a local with "const".
26072         * lib/nanosleep.c (getnow): Declare static.
26073         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26074
26075         dirfd: set errno upon failure
26076         * lib/dirfd.c: Include <errno.h>.
26077         Set errno to ENOTSUP when returning -1.
26078         * modules/dirfd (Depends-on): Add errno.
26079         Suggested by John Kodis <kodis@comcast.net>.
26080
26081 2009-02-01  Bruno Haible  <bruno@clisp.org>
26082
26083         Don't assume sizeof (long) >= sizeof (void *).
26084         * lib/memcmp.c: Include stdint.h.
26085         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26086         srcp2 to 'const byte *'.
26087         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26088         types to uintptr_t.
26089         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26090         * modules/memcmp (Depends-on): Add stdint.
26091         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26092
26093 2009-01-30  Eric Blake  <ebb9@byu.net>
26094
26095         fix more require-before-expand issues
26096         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26097         expand, AC_PROG_AWK.
26098         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26099
26100 2009-01-28  Eric Blake  <ebb9@byu.net>
26101
26102         version-etc: use consistent URL formatting
26103         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26104         Improve formatting.  Use fputs for string without %.
26105
26106 2009-01-28  Jim Meyering  <meyering@redhat.com>
26107
26108         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26109         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26110         "underquoted definition of NAME" from autoconf-2.59.
26111
26112 2009-01-28  Bruno Haible  <bruno@clisp.org>
26113
26114         * doc/gnulib.texi: Add "Obsolete modules" to index.
26115
26116 2009-01-28  Jim Meyering  <meyering@redhat.com>
26117
26118         useless-if-before-free: recognize more variants
26119         * build-aux/useless-if-before-free: Also recognize e.g.,
26120         if (NULL != p) free (p);
26121
26122 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26123
26124         test-getaddrinfo: skip (don't fail) this test when there's no network
26125         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26126         on the presumption that it means you lack network access.
26127
26128 2009-01-26  Jim Meyering  <meyering@redhat.com>
26129
26130         fflush: avoid warnings on modern systems
26131         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26132         pos and result, into scopes where they're used.
26133
26134 2009-01-26  Eric Blake  <ebb9@byu.net>
26135
26136         Silence warning reintroduced by recent extensions patch.
26137         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26138         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26139         autoconf.
26140
26141         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26142         * m4/00gnulib.m4: New file.
26143         * gnulib-tool (func_get_filelist): Always use it.
26144         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26145         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26146
26147 2009-01-25  Bruno Haible  <bruno@clisp.org>
26148
26149         Make test-quotearg work on MacOS X and AIX.
26150         * tests/test-quotearg.sh: New file.
26151         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26152         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26153         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26154         include <libintl.h>.
26155         (fake_locale): Remove variable.
26156         (gettext, dgettext, dcgettext): Remove functions.
26157         (main): Instead of setting a fake locale, set a real locale. Call
26158         textdomain and bindtextdomain.
26159         * modules/quotearg-tests (Files): Add the new files.
26160         (Depends-on): Add gettext, setenv, unsetenv.
26161         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26162         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26163         Augment TESTS_ENVIRONMENT.
26164
26165 2009-01-25  Bruno Haible  <bruno@clisp.org>
26166
26167         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26168         fr_FR.ISO8859-1 locale on MacOS X.
26169         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26170         ja_JP.eucJP locale on MacOS X.
26171         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26172         zh_CN.GB18030 locale on MacOS X.
26173
26174 2009-01-25  Bruno Haible  <bruno@clisp.org>
26175
26176         Avoid link errors on MacOS X 10.3.
26177         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26178         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26179
26180 2009-01-25  Bruno Haible  <bruno@clisp.org>
26181
26182         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26183         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26184         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26185         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26186         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26187         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26188         posix_spawnattr_init, posix_spawnattr_setsigmask,
26189         posix_spawnattr_setflags, posix_spawnattr_destroy.
26190
26191         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26192         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26193         * modules/execute (Files): Remove m4/posix_spawn.m4.
26194         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26195         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26196         posix_spawnattr_init, posix_spawnattr_setsigmask,
26197         posix_spawnattr_setflags, posix_spawnattr_destroy.
26198
26199 2009-01-25  Bruno Haible  <bruno@clisp.org>
26200
26201         * lib/glthread/threadlib.c: Include <stdlib.h>.
26202
26203 2009-01-25  Bruno Haible  <bruno@clisp.org>
26204
26205         * lib/glthread/threadlib.c (dummy): New declaration.
26206
26207 2009-01-25  Bruno Haible  <bruno@clisp.org>
26208
26209         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26210         multibyte characters also for the GB18030 encoding. Don't crash when
26211         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26212
26213 2009-01-25  Bruno Haible  <bruno@clisp.org>
26214
26215         Avoid redefining 'struct random_data' on OSF/1 5.1.
26216         * lib/stdlib.in.h: Include <random.h> if it exists.
26217         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26218         HAVE_RANDOM_H. Include <random.h> when testing whether
26219         'struct random_data' exists.
26220         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26221
26222 2009-01-25  Bruno Haible  <bruno@clisp.org>
26223
26224         Don't install charset.alias on MacOS X >= 10.3.
26225         * lib/localcharset.c (DARWIN7): New macro.
26226         (get_charset_aliases): Hardcode the result for Darwin7.
26227         * modules/localcharset (install-exec-local): Don't install
26228         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26229
26230 2009-01-25  Bruno Haible  <bruno@clisp.org>
26231
26232         Don't install charset.alias on mingw and Cygwin.
26233         * modules/localcharset (install-exec-local): Don't install
26234         charset.alias on mingw and Cygwin, if the file does not yet exist.
26235         The result for these platforms is hardcoded in localcharset.c.
26236
26237 2009-01-25  Bruno Haible  <bruno@clisp.org>
26238
26239         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26241         before requiring AC_USE_SYSTEM_EXTENSIONS.
26242
26243 2009-01-25  Jim Meyering  <meyering@redhat.com>
26244
26245         c-strtod: avoid warnings
26246         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26247         "assignment discards qualifiers from pointer target type" warnings.
26248
26249 2009-01-24  Bruno Haible  <bruno@clisp.org>
26250
26251         Add support for non-UTF-8 locales on MacOS X.
26252         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26253         canonical encodings. For Darwin 7 and newer, don't map traditional
26254         encodings to UTF-8.
26255         Reported by Vincent Lefevre <vincent@vinc17.org>
26256         at <http://savannah.gnu.org/bugs/?25235>.
26257
26258 2009-01-24  Bruno Haible  <bruno@clisp.org>
26259
26260         * doc/gnulib.texi (Obsolete modules): New section.
26261         Reported by Mike Frysinger <vapier@gentoo.org>.
26262
26263 2009-01-24  Bruno Haible  <bruno@clisp.org>
26264
26265         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26266         (%.dvi): New rule.
26267
26268 2009-01-24  Bruno Haible  <bruno@clisp.org>
26269
26270         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26271         Reported by Eric Blake.
26272
26273 2009-01-24  Bruno Haible  <bruno@clisp.org>
26274
26275         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26276         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26277         Reported by Gary V. Vaughan <gary@gnu.org>.
26278
26279 2009-01-24  Bruno Haible  <bruno@clisp.org>
26280
26281         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26282
26283 2009-01-23  Bruno Haible  <bruno@clisp.org>
26284
26285         Make c-strtod, c-strtold usable in libraries.
26286         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26287         (C_STRTOD): Call strdup instead of xstrdup.
26288         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26289         * modules/c-strtold (Depends-on): Likewise.
26290         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26291         * NEWS: Mention the change.
26292         Reported by Michael Gold <mgold@ncf.ca>.
26293
26294 2009-01-23  Jim Meyering  <meyering@redhat.com>
26295
26296         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26297         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26298         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26299
26300 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26301
26302         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26303         GNU CoreUtils.
26304         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26305         * modules/version-etc (Description): Update.
26306
26307 2009-01-22  Bruno Haible  <bruno@clisp.org>
26308
26309         Cache the C locale object.
26310         * lib/c-strtod.c (c_locale_cache): New variable.
26311         (c_locale): New function.
26312         (C_STRTOD): Use it, and don't call freelocale.
26313         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26314         Suggested by Paolo Bonzini.
26315
26316 2009-01-21  Bruno Haible  <bruno@clisp.org>
26317
26318         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26319         conditions other than overflow.
26320
26321 2009-01-21  Bruno Haible  <bruno@clisp.org>
26322
26323         * lib/c-strtod.c: Include errno.h.
26324         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26325         value from STRTOD_L and STRTOD.
26326
26327 2009-01-21  Bruno Haible  <bruno@clisp.org>
26328         and Jim Meyering  <meyering@redhat.com>
26329
26330         nanosleep: skip configure test (fail it) for apple universal builds
26331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26332         universal builds, assume that nanosleep does not work.
26333         * modules/nanosleep (Depends-on): Add multiarch.
26334
26335         mktime: skip configure test (fail it) for apple universal builds
26336         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26337         universal builds, assume that mktime does not work.
26338         * modules/mktime (Depends-on): Add multiarch.
26339
26340 2009-01-21  Eric Blake  <ebb9@byu.net>
26341
26342         multiarch: avoid expand-before-require warning
26343         * modules/multiarch (configure.ac): Require, rather than expand,
26344         gl_MULTIARCH.
26345         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26346         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26347         enforce that all clients require it.  Partial reversion of
26348         2008-12-29 patch.
26349
26350         error: avoid expand-before-require warning
26351         * modules/errno (configure.ac): Require, rather than expand,
26352         gl_HEADER_ERRNO_H.
26353         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26354         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26355         enforce that all clients require it.
26356
26357         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26358         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26359         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26360         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26361
26362 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26363
26364         Revert:
26365         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26366
26367         regex: do not depend on obsolete modules.
26368         * modules/regex: Remove memcmp and memmove.
26369
26370 2009-01-20  Bruno Haible  <bruno@clisp.org>
26371
26372         Make the 'link' module link on Windows NT 4.
26373         * lib/link.c (_WIN32_WINNT): Don't define.
26374         (CreateHardLinkFuncType): New type.
26375         (CreateHardLinkFunc, initialized): New variables.
26376         (initialize): New function.
26377         (link): Invoke CreateHardLink indirectly through the function pointer.
26378
26379 2009-01-20  Bruno Haible  <bruno@clisp.org>
26380
26381         Fix compilation failure on mingw.
26382         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26383
26384 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26385
26386         * doc/c-strtod.texi: Mention a couple of restrictions.
26387
26388 2009-01-20  Jim Meyering  <meyering@redhat.com>
26389
26390         gettimeofday: move more declarations out of functions
26391         * lib/gettimeofday.c: Move extern declarations of tzset and
26392         gmtime out of containing functions.  Prompted by Bruno Haible.
26393
26394 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26395
26396         regex: do not depend on obsolete modules.
26397         * modules/regex: Remove memcmp and memmove.
26398
26399 2009-01-19  Bruno Haible  <bruno@clisp.org>
26400
26401         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26402         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26403         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26404         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26405         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26406
26407 2009-01-19  Bruno Haible  <bruno@clisp.org>
26408
26409         * tests/test-link.c: Include <errno.h>.
26410         (main): Exit with code 77 when a hard link cannot be created due to
26411         the file system.
26412         * tests/test-link.sh: Skip test when a hard link cannot be created due
26413         to the file system.
26414         Suggested by Eric Blake.
26415
26416 2009-01-19  Martin Lambers  <marlam@marlam.de>
26417
26418         * modules/link-tests: New file.
26419         * tests/test-link.sh: New file.
26420         * tests/test-link.c: New file.
26421
26422 2009-01-19  Eric Blake  <ebb9@byu.net>
26423
26424         doc: mention another function added in cygwin 1.7.0
26425         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26426         Another new function in cygwin 1.7.
26427
26428 2009-01-19  Bruno Haible  <bruno@clisp.org>
26429
26430         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26431         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26432         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26433         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26434         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26435         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26436         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26437         * m4/md4.m4 (gl_MD4): Likewise.
26438         * m4/md5.m4 (gl_MD5): Likewise.
26439         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26440         * m4/sha1.m4 (gl_SHA1): Likewise.
26441         * m4/sha256.m4 (gl_SHA256): Likewise.
26442         * m4/sha512.m4 (gl_SHA512): Likewise.
26443
26444 2009-01-19  Bruno Haible  <bruno@clisp.org>
26445
26446         * modules/uniname/uniname-tests (Depends-on): Add progname.
26447         * tests/uniname/test-uninames.c: Include progname.h.
26448         (main): Call set_program_name.
26449
26450         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26451         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26452         (main): Call set_program_name.
26453
26454         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26455         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26456         (main): Call set_program_name.
26457
26458         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26459         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26460         (main): Call set_program_name.
26461
26462         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26463         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26464         (main): Call set_program_name.
26465
26466         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26467         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26468         (main): Call set_program_name.
26469
26470         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26471         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26472         (main): Call set_program_name.
26473
26474         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26475         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26476         (main): Call set_program_name.
26477
26478         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
26479         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
26480         (main): Call set_program_name.
26481
26482 2009-01-19  Eric Blake  <ebb9@byu.net>
26483
26484         test-unistd: test previous patch
26485         * tests/test-unistd.c: Test *_FILENO macros.
26486
26487         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
26488         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26489         Guarantee a definition.
26490         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
26491         * modules/unistd-safer (Depends-on): Add dependency on unistd.
26492         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
26493         * lib/dup-safer.c (STDERR_FILENO): Likewise.
26494         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26495         Likewise.
26496         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
26497         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
26498         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26499         Likewise.
26500         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
26501         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
26502         (STDERR_FILENO): Likewise.
26503         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26504         (STDERR_FILENO): Likewise.
26505         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26506         (STDERR_FILENO): Likewise.
26507         Reported by Elbert Pol.
26508
26509 2009-01-19  Eric Blake  <ebb9@byu.net>
26510
26511         doc: mention more functions added in cygwin 1.7.0
26512         * doc/posix-functions/abort.texi (abort): Update wording related
26513         to cygwin.
26514         * doc/posix-functions/daylight.texi (daylight): Likewise.
26515         * doc/posix-functions/optarg.texi (optarg): Likewise.
26516         * doc/posix-functions/optarg.texi (opterr): Likewise.
26517         * doc/posix-functions/optarg.texi (optind): Likewise.
26518         * doc/posix-functions/optarg.texi (optopt): Likewise.
26519         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26520         worked in 1.5.x, and was withdrawn in 1.7.
26521         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26522         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26523         cygwin versions.
26524         * doc/posix-functions/perror.texi (perror): Likewise.
26525         * doc/posix-functions/printf.texi (printf): Likewise.
26526         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26527         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26528         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26529         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26530         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26531         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26532         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26533         Likewise.
26534         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26535         Likewise.
26536         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26537         this function.
26538         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26539         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26540         Likewise.
26541         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26542         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26543         * doc/posix-functions/confstr.texi (confstr): Likewise.
26544         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26545         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26546         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26547         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26548         * doc/posix-functions/fputws.texi (fputws): Likewise.
26549         * doc/posix-functions/fwide.texi (fwide): Likewise.
26550         * doc/posix-functions/getwc.texi (getwc): Likewise.
26551         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
26552         * doc/posix-functions/putwc.texi (putwc): Likewise.
26553         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
26554         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
26555         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
26556         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
26557         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
26558         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
26559         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
26560         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
26561         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
26562         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
26563         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
26564
26565 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26566
26567         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
26568         * lib/ioctl.c: Include <sys/ioctl.h>.
26569
26570 2009-01-19  Simon Josefsson  <simon@josefsson.org>
26571
26572         * modules/getdate-tests (Depends-on): Add progname.
26573         * tests/test-getdate.c: Use progname module, to avoid link errors
26574         on non-glibc systems.
26575
26576 2009-01-18  Simon Josefsson  <simon@josefsson.org>
26577
26578         * modules/filenamecat-tests (Depends-on): Add progname.
26579         * modules/fstrcmp-tests (Depends-on): Likewise.
26580
26581         * tests/test-filenamecat.c: Use progname module, to avoid link
26582         errors on non-glibc systems.
26583         * tests/test-fstrcmp.c: Likewise.
26584
26585 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26586
26587         gettimeofday: avoid warning: nested extern declaration of 'localtime'
26588         * lib/gettimeofday.c: Move extern declaration out of function.
26589
26590 2009-01-18  Bruno Haible  <bruno@clisp.org>
26591
26592         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
26593         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
26594         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
26595
26596 2009-01-18  Bruno Haible  <bruno@clisp.org>
26597
26598         * lib/strftime.c (MEMPCPY): Remove unused macro.
26599         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
26600
26601 2009-01-18  Martin Lambers  <marlam@marlam.de>
26602
26603         New module 'link'.
26604         * lib/unistd.in.h (link): New declaration.
26605         * lib/link.c: New file.
26606         * m4/link.m4: New file.
26607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
26608         HAVE_LINK.
26609         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
26610         * modules/link: New file.
26611         * doc/posix-functions/link.texi: Mention the new module.
26612
26613 2009-01-18  Bruno Haible  <bruno@clisp.org>
26614
26615         * tests/test-avltree_list.c (main): Call set_program_name.
26616         * tests/test-avltree_oset.c (main): Likewise.
26617         * tests/test-obstack-printf.c: Include progname.h.
26618         (main): Call set_program_name.
26619         * tests/test-quotearg.c: Include progname.h.
26620         (main): Call set_program_name.
26621         * tests/test-xmemdup0.c: Include progname.h.
26622         (main): Call set_program_name.
26623
26624 2009-01-18  Bruno Haible  <bruno@clisp.org>
26625
26626         New module 'alphasort'.
26627         * lib/dirent.in.h (alphasort): New declaration.
26628         * lib/alphasort.c: New file, from glibc with modifications.
26629         * m4/alphasort.m4: New file.
26630         * modules/alphasort: New file.
26631         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
26632         HAVE_ALPHASORT.
26633         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
26634         HAVE_ALPHASORT.
26635         * doc/posix-functions/alphasort.texi: Mention the new module and the
26636         portability problems.
26637
26638 2009-01-18  Bruno Haible  <bruno@clisp.org>
26639
26640         New module 'scandir'.
26641         * lib/dirent.in.h (scandir): New declaration.
26642         * lib/scandir.c: New file, from glibc with modifications.
26643         * m4/scandir.m4: New file.
26644         * modules/scandir: New file.
26645         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
26646         HAVE_SCANDIR.
26647         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
26648         HAVE_SCANDIR.
26649         * doc/posix-functions/scandir.texi: Mention the new module and the
26650         portability problems.
26651
26652 2009-01-17  Bruno Haible  <bruno@clisp.org>
26653
26654         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
26655         Update documentation.
26656         (func_remove_suffix): Escape all dots in the suffix. Update
26657         documentation.
26658         (func_filter_filelist): Update documentation.
26659         Reported by Ralf Wildenhues.
26660
26661 2009-01-17  Bruno Haible  <bruno@clisp.org>
26662
26663         * modules/dprintf-posix-tests: New file.
26664         * tests/test-dprintf-posix.sh: New file.
26665         * tests/test-dprintf-posix.c: New file.
26666
26667         New modules 'dprintf', 'dprintf-posix'.
26668         * lib/stdio.in.h (dprintf): New declaration.
26669         * lib/dprintf.c: New file.
26670         * m4/dprintf.m4: New file.
26671         * m4/dprintf-posix.m4: New file.
26672         * modules/dprintf: New file.
26673         * modules/dprintf-posix: New file.
26674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
26675         HAVE_DPRINTF, REPLACE_DPRINTF.
26676         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
26677         HAVE_DPRINTF, REPLACE_DPRINTF.
26678         * doc/posix-functions/dprintf.texi: Mention the new modules.
26679
26680 2009-01-17  Bruno Haible  <bruno@clisp.org>
26681
26682         * modules/vdprintf-posix-tests: New file.
26683         * tests/test-vdprintf-posix.sh: New file.
26684         * tests/test-vdprintf-posix.c: New file.
26685
26686         New modules 'vdprintf', 'vdprintf-posix'.
26687         * lib/stdio.in.h (vdprintf): New declaration.
26688         * lib/vdprintf.c: New file.
26689         * m4/vdprintf.m4: New file.
26690         * m4/vdprintf-posix.m4: New file.
26691         * modules/vdprintf: New file.
26692         * modules/vdprintf-posix: New file.
26693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
26694         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26695         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
26696         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26697         * doc/posix-functions/vdprintf.texi: Mention the new modules.
26698
26699 2009-01-17  Bruno Haible  <bruno@clisp.org>
26700
26701         Fix replacement of fopen on mingw.
26702         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
26703         mingw.
26704
26705 2009-01-17  Bruno Haible  <bruno@clisp.org>
26706
26707         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
26708         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
26709
26710 2009-01-17  Bruno Haible  <bruno@clisp.org>
26711
26712         Avoid test-fflush2.sh failure on mingw.
26713         * tests/test-fflush2.c: Include binary-io.h.
26714         (main): Put standard input into binary mode.
26715         * modules/fflush-tests (Depends-on): Add binary-io.
26716
26717 2009-01-17  Bruno Haible  <bruno@clisp.org>
26718
26719         * lib/wchar.in.h: In another particular situation, include only the
26720         system's <wchar.h> file.
26721         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
26722         Reported by Albert Chin-A-Young <china@thewrittenword.com>
26723         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
26724
26725 2009-01-17  Bruno Haible  <bruno@clisp.org>
26726
26727         Support for stripping executables in --enable-relocatable.
26728         * build-aux/install-reloc: Expect one more argument, or an environment
26729         variable RELOC_STRIP_PROG. If set, strip the destination program and
26730         its wrapper.
26731         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
26732         RELOC_STRIP_PROG.
26733         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
26734         to set RELOCATABLE_STRIP.
26735         * NEWS: Mention the new Makefile requirement.
26736
26737 2009-01-17  Bruno Haible  <bruno@clisp.org>
26738
26739         * build-aux/install-reloc: Remove debugging information left over by
26740         C compiler on MacOS X.
26741
26742 2009-01-17  Bruno Haible  <bruno@clisp.org>
26743
26744         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
26745         * lib/progreloc.c (find_executable): Fix type of pointer passed to
26746         _NSGetExecutablePath.
26747
26748 2009-01-16  Jim Meyering  <meyering@redhat.com>
26749
26750         strerror: avoid warnings about discarding "const"
26751         * lib/strerror.c (rpl_strerror): Instead of returning a const
26752         string from each and every "case", use a variable, and add a single
26753         cast after the switch.
26754
26755 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
26756
26757         * lib/arpa_inet.in.h: Add extern "C" block for C++.
26758
26759 2009-01-16  Bruno Haible  <bruno@clisp.org>
26760
26761         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
26762         array initializer syntax that also works in C++ mode.
26763         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26764
26765 2009-01-16  Jim Meyering  <meyering@redhat.com>
26766
26767         poll: suppress a warning
26768         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
26769         to ignore "...unsigned expression < 0 is always false" warnings.
26770
26771 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
26772
26773         poll: remove declarations of unused variables
26774         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
26775         sockbuf and optlen.
26776
26777 2009-01-15  Bruno Haible  <bruno@clisp.org>
26778
26779         Make fflush-after-ungetc POSIX compliant on BSD systems.
26780         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
26781         (clear_ungetc_buffer): Implement also for other systems.
26782         (rpl_fflush): On glibc systems, invoke
26783         clear_ungetc_buffer_preserving_position. Otherwise, invoke
26784         clear_ungetc_buffer after fetching the stream's position, not before.
26785
26786 2009-01-15  Bruno Haible  <bruno@clisp.org>
26787
26788         Make fflush-after-ungetc POSIX compliant on glibc systems.
26789         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
26790         after ungetc.
26791         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
26792         (rpl_fflush): On glibc systems, simply call the system's fflush
26793         function after clearing the ungetc buffer.
26794         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
26795         Instead, lseek only to the end of file, then use the system's fseeko
26796         for the rest. On glibc systems, reset the EOF indicator bit.
26797
26798 2009-01-15  Jim Meyering  <meyering@redhat.com>
26799
26800         openmp.m4: revert quote-adding change, for portability to older autoconf
26801         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
26802         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
26803         Simon Josefsson noticed the problem when using autoconf-2.61.
26804
26805 2009-01-15  Bruno Haible  <bruno@clisp.org>
26806
26807         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
26808         * tests/test-fflush2.c (ASSERT): Always fail.
26809         (main): Add two tests for fflush() after ungetc(), taking into account
26810         the Austin Group's clarification.
26811         Suggested by Eric Blake.
26812
26813 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
26814
26815         mktime.m4: remove K&R-style function prototypes
26816         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
26817         for the Sun C++ compiler.
26818
26819 2009-01-14  Bruno Haible  <bruno@clisp.org>
26820
26821         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
26822         while including <wchar.h>.
26823         * lib/wchar.in.h: In two particular situations on HP-UX, include only
26824         the system's <wchar.h> file.
26825         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26826
26827 2009-01-14  Bruno Haible  <bruno@clisp.org>
26828
26829         * m4/csharp.m4: Don't mention gettext on the serial number line.
26830         * m4/csharpexec.m4: Likewise.
26831         * m4/eaccess.m4: Likewise.
26832         * m4/javaexec.m4: Likewise.
26833         * m4/sig_atomic_t.m4: Likewise.
26834         * m4/tmpdir.m4: Likewise.
26835         * m4/intldir.m4: Bump gettext version.
26836         * m4/lib-ld.m4: Likewise.
26837
26838 2009-01-14  Bruno Haible  <bruno@clisp.org>
26839
26840         * lib/progname.c (set_program_name): Add more comments.
26841         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26842
26843 2009-01-14  Simon Josefsson  <simon@josefsson.org>
26844
26845         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
26846         were sys/stat.h does not define it.
26847
26848 2009-01-14  Jim Meyering  <meyering@redhat.com>
26849
26850         many *.m4 files: improve m4 quoting
26851         99% of this change was performed by running the following commands:
26852         git ls-files | grep '\.m4$' | xargs perl -pi \
26853           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
26854           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26855           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26856           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
26857         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
26858         The remainder were to add Copyright dates, increment serial numbers,
26859         undo some changes in comments, exclude m4/intl.m4, and add quotes
26860         around the "1" in ",1" where the unusual spacing prohibited the
26861         above regexps from doing the job.  For more details, see
26862         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
26863         * m4/acl.m4: Modified.
26864         * m4/afs.m4: Likewise.
26865         * m4/alloca.m4: Likewise.
26866         * m4/argp.m4: Likewise.
26867         * m4/argz.m4: Likewise.
26868         * m4/atexit.m4: Likewise.
26869         * m4/bison-i18n.m4: Likewise.
26870         * m4/bison.m4: Likewise.
26871         * m4/byteswap.m4: Likewise.
26872         * m4/c-stack.m4: Likewise.
26873         * m4/c-strtod.m4: Likewise.
26874         * m4/calloc.m4: Likewise.
26875         * m4/canonicalize-lgpl.m4: Likewise.
26876         * m4/chown.m4: Likewise.
26877         * m4/clock_time.m4: Likewise.
26878         * m4/codeset.m4: Likewise.
26879         * m4/copy-file.m4: Likewise.
26880         * m4/csharp.m4: Likewise.
26881         * m4/csharpcomp.m4: Likewise.
26882         * m4/csharpexec.m4: Likewise.
26883         * m4/d-ino.m4: Likewise.
26884         * m4/d-type.m4: Likewise.
26885         * m4/dirfd.m4: Likewise.
26886         * m4/double-slash-root.m4: Likewise.
26887         * m4/eaccess.m4: Likewise.
26888         * m4/eealloc.m4: Likewise.
26889         * m4/environ.m4: Likewise.
26890         * m4/errno_h.m4: Likewise.
26891         * m4/euidaccess.m4: Likewise.
26892         * m4/execute.m4: Likewise.
26893         * m4/fatal-signal.m4: Likewise.
26894         * m4/fchdir.m4: Likewise.
26895         * m4/fcntl_h.m4: Likewise.
26896         * m4/fileblocks.m4: Likewise.
26897         * m4/filenamecat.m4: Likewise.
26898         * m4/findprog.m4: Likewise.
26899         * m4/flexmember.m4: Likewise.
26900         * m4/fnmatch.m4: Likewise.
26901         * m4/fopen.m4: Likewise.
26902         * m4/fpending.m4: Likewise.
26903         * m4/fprintf-posix.m4: Likewise.
26904         * m4/free.m4: Likewise.
26905         * m4/frexp.m4: Likewise.
26906         * m4/frexpl.m4: Likewise.
26907         * m4/fsusage.m4: Likewise.
26908         * m4/ftruncate.m4: Likewise.
26909         * m4/gc-camellia.m4: Likewise.
26910         * m4/gc-random.m4: Likewise.
26911         * m4/gc.m4: Likewise.
26912         * m4/getaddrinfo.m4: Likewise.
26913         * m4/getcwd-abort-bug.m4: Likewise.
26914         * m4/getcwd-path-max.m4: Likewise.
26915         * m4/getdate.m4: Likewise.
26916         * m4/getdomainname.m4: Likewise.
26917         * m4/getgroups.m4: Likewise.
26918         * m4/gethostname.m4: Likewise.
26919         * m4/gethrxtime.m4: Likewise.
26920         * m4/getline.m4: Likewise.
26921         * m4/getloadavg.m4: Likewise.
26922         * m4/getndelim2.m4: Likewise.
26923         * m4/getpass.m4: Likewise.
26924         * m4/gettext.m4: Likewise.
26925         * m4/gettime.m4: Likewise.
26926         * m4/gettimeofday.m4: Likewise.
26927         * m4/gnulib-common.m4: Likewise.
26928         * m4/group-member.m4: Likewise.
26929         * m4/host-os.m4: Likewise.
26930         * m4/iconv.m4: Likewise.
26931         * m4/iconv_open.m4: Likewise.
26932         * m4/inet_ntop.m4: Likewise.
26933         * m4/inet_pton.m4: Likewise.
26934         * m4/inline.m4: Likewise.
26935         * m4/intldir.m4: Likewise.
26936         * m4/intlmacosx.m4: Likewise.
26937         * m4/intmax.m4: Likewise.
26938         * m4/intmax_t.m4: Likewise.
26939         * m4/inttypes.m4: Likewise.
26940         * m4/inttypes_h.m4: Likewise.
26941         * m4/inttypes-pri.m4: Likewise.
26942         * m4/isapipe.m4: Likewise.
26943         * m4/isnand.m4: Likewise.
26944         * m4/isnanf.m4: Likewise.
26945         * m4/isnanl.m4: Likewise.
26946         * m4/javacomp.m4: Likewise.
26947         * m4/javaexec.m4: Likewise.
26948         * m4/jm-winsz1.m4: Likewise.
26949         * m4/jm-winsz2.m4: Likewise.
26950         * m4/lchown.m4: Likewise.
26951         * m4/lcmessage.m4: Likewise.
26952         * m4/ldexpl.m4: Likewise.
26953         * m4/lib-ld.m4: Likewise.
26954         * m4/lib-link.m4: Likewise.
26955         * m4/libsigsegv.m4: Likewise.
26956         * m4/link-follow.m4: Likewise.
26957         * m4/localcharset.m4: Likewise.
26958         * m4/locale-fr.m4: Likewise.
26959         * m4/locale-ja.m4: Likewise.
26960         * m4/locale-tr.m4: Likewise.
26961         * m4/locale-zh.m4: Likewise.
26962         * m4/lock.m4: Likewise.
26963         * m4/longlong.m4: Likewise.
26964         * m4/ls-mntd-fs.m4: Likewise.
26965         * m4/lstat.m4: Likewise.
26966         * m4/malloc.m4: Likewise.
26967         * m4/mathl.m4: Likewise.
26968         * m4/mbrtowc.m4: Likewise.
26969         * m4/mbstate_t.m4: Likewise.
26970         * m4/mbswidth.m4: Likewise.
26971         * m4/memchr.m4: Likewise.
26972         * m4/memcmp.m4: Likewise.
26973         * m4/memcpy.m4: Likewise.
26974         * m4/memmem.m4: Likewise.
26975         * m4/memmove.m4: Likewise.
26976         * m4/mempcpy.m4: Likewise.
26977         * m4/memrchr.m4: Likewise.
26978         * m4/memset.m4: Likewise.
26979         * m4/minmax.m4: Likewise.
26980         * m4/mkdir-slash.m4: Likewise.
26981         * m4/mkdtemp.m4: Likewise.
26982         * m4/mktime.m4: Likewise.
26983         * m4/mmap-anon.m4: Likewise.
26984         * m4/mountlist.m4: Likewise.
26985         * m4/nanosleep.m4: Likewise.
26986         * m4/nls.m4: Likewise.
26987         * m4/nocrash.m4: Likewise.
26988         * m4/open.m4: Likewise.
26989         * m4/openat.m4: Likewise.
26990         * m4/openmp.m4: Likewise.
26991         * m4/pathmax.m4: Likewise.
26992         * m4/perl.m4: Likewise.
26993         * m4/physmem.m4: Likewise.
26994         * m4/pipe.m4: Likewise.
26995         * m4/po.m4: Likewise.
26996         * m4/poll.m4: Likewise.
26997         * m4/posixtm.m4: Likewise.
26998         * m4/posixver.m4: Likewise.
26999         * m4/printf-frexp.m4: Likewise.
27000         * m4/printf-frexpl.m4: Likewise.
27001         * m4/printf-posix.m4: Likewise.
27002         * m4/printf-posix-rpl.m4: Likewise.
27003         * m4/printf.m4: Likewise.
27004         * m4/progtest.m4: Likewise.
27005         * m4/putenv.m4: Likewise.
27006         * m4/readline.m4: Likewise.
27007         * m4/readlink.m4: Likewise.
27008         * m4/readutmp.m4: Likewise.
27009         * m4/realloc.m4: Likewise.
27010         * m4/regex.m4: Likewise.
27011         * m4/relocatable.m4: Likewise.
27012         * m4/relocatable-lib.m4: Likewise.
27013         * m4/rename-dest-slash.m4: Likewise.
27014         * m4/rename.m4: Likewise.
27015         * m4/rmdir-errno.m4: Likewise.
27016         * m4/rmdir.m4: Likewise.
27017         * m4/roundf.m4: Likewise.
27018         * m4/roundl.m4: Likewise.
27019         * m4/rpmatch.m4: Likewise.
27020         * m4/save-cwd.m4: Likewise.
27021         * m4/selinux-selinux-h.m4: Likewise.
27022         * m4/setenv.m4: Likewise.
27023         * m4/settime.m4: Likewise.
27024         * m4/sig2str.m4: Likewise.
27025         * m4/sig_atomic_t.m4: Likewise.
27026         * m4/signalblocking.m4: Likewise.
27027         * m4/signbit.m4: Likewise.
27028         * m4/sigpipe.m4: Likewise.
27029         * m4/sockets.m4: Likewise.
27030         * m4/sockpfaf.m4: Likewise.
27031         * m4/st_dm_mode.m4: Likewise.
27032         * m4/stat-time.m4: Likewise.
27033         * m4/stdbool.m4: Likewise.
27034         * m4/stdint.m4: Likewise.
27035         * m4/stdint_h.m4: Likewise.
27036         * m4/stpcpy.m4: Likewise.
27037         * m4/stpncpy.m4: Likewise.
27038         * m4/strcase.m4: Likewise.
27039         * m4/strchrnul.m4: Likewise.
27040         * m4/strcspn.m4: Likewise.
27041         * m4/strdup.m4: Likewise.
27042         * m4/strftime.m4: Likewise.
27043         * m4/strndup.m4: Likewise.
27044         * m4/strnlen.m4: Likewise.
27045         * m4/strpbrk.m4: Likewise.
27046         * m4/strptime.m4: Likewise.
27047         * m4/strsep.m4: Likewise.
27048         * m4/strtod.m4: Likewise.
27049         * m4/strtoimax.m4: Likewise.
27050         * m4/strtok_r.m4: Likewise.
27051         * m4/strtol.m4: Likewise.
27052         * m4/strtoll.m4: Likewise.
27053         * m4/strtoul.m4: Likewise.
27054         * m4/strtoull.m4: Likewise.
27055         * m4/strtoumax.m4: Likewise.
27056         * m4/strverscmp.m4: Likewise.
27057         * m4/threadlib.m4: Likewise.
27058         * m4/timegm.m4: Likewise.
27059         * m4/tm_gmtoff.m4: Likewise.
27060         * m4/tmpdir.m4: Likewise.
27061         * m4/tmpfile.m4: Likewise.
27062         * m4/tzset.m4: Likewise.
27063         * m4/uintmax_t.m4: Likewise.
27064         * m4/unlinkdir.m4: Likewise.
27065         * m4/unlocked-io.m4: Likewise.
27066         * m4/uptime.m4: Likewise.
27067         * m4/userspec.m4: Likewise.
27068         * m4/utimbuf.m4: Likewise.
27069         * m4/utime.m4: Likewise.
27070         * m4/utimes-null.m4: Likewise.
27071         * m4/utimes.m4: Likewise.
27072         * m4/vararrays.m4: Likewise.
27073         * m4/vasnprintf.m4: Likewise.
27074         * m4/vfprintf-posix.m4: Likewise.
27075         * m4/vprintf-posix.m4: Likewise.
27076         * m4/wait-process.m4: Likewise.
27077         * m4/wchar_t.m4: Likewise.
27078         * m4/wint_t.m4: Likewise.
27079         * m4/write-any-file.m4: Likewise.
27080         * m4/yield.m4: Likewise.
27081
27082 2009-01-13  Bruno Haible  <bruno@clisp.org>
27083
27084         Avoid test-copy-file.sh failures when ACL support insufficient.
27085         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27086         TESTS_ENVIRONMENT.
27087         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27088         Reported by Jim Meyering.
27089
27090 2009-01-13  Bruno Haible  <bruno@clisp.org>
27091
27092         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27093         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27094         * modules/unistdio/u8-printf-parse (Files): Likewise.
27095         * modules/unistdio/u32-printf-parse (Files): Likewise.
27096         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27097
27098 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27099
27100         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27101         and m4/inttypes_h.m4 too.
27102
27103 2009-01-12  Eric Blake  <ebb9@byu.net>
27104
27105         tests: IRIX 6.2 cc can't compile -0.0 into .data
27106         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27107         rather than at compile-time.
27108         * tests/test-floorl.c (minus_zero): Likewise.
27109         * tests/test-frexpl.c (minus_zero): Likewise.
27110         * tests/test-isnan.c (minus_zerol): Likewise.
27111         * tests/test-isnanl.h (minus_zero): Likewise.
27112         * tests/test-ldexpl.c (minus_zero): Likewise.
27113         * tests/test-roundl.c (minus_zero): Likewise.
27114         * tests/test-signbit.c (minus_zerol): Likewise.
27115         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27116         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27117         * tests/test-truncl.c (minus_zero): Likewise.
27118         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27119         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27120         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27121
27122 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27123
27124         regex: fix glibc bug 9697
27125         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27126         handling.
27127
27128 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27129
27130         regex: fix glibc bug 697
27131         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27132         being NULL also if there are no backreferences.
27133
27134 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27135
27136         regex: merge glibc changes
27137         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27138         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27139         re_string_skip_chars, re_string_reconstruct): Likewise.
27140         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27141
27142 2009-01-07  Jim Meyering  <meyering@redhat.com>
27143
27144         poll: filter through cppi
27145         * lib/poll.c: Indent cpp directives to reflect nesting.
27146
27147 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27148
27149         poll: don't return uninitialized
27150         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27151
27152 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27153
27154         avoid compile failure on AIX 6.1
27155         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27156         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27157
27158 2009-01-04  Jim Meyering  <meyering@redhat.com>
27159
27160         remove duplicate inclusion of <stdio.h>
27161         * tests/test-fprintf-posix.c: Likewise.
27162         * tests/test-printf-posix.c: Likewise.
27163         * tests/test-snprintf-posix.c: Likewise.
27164         * tests/test-sprintf-posix.c: Likewise.
27165         * tests/test-vasprintf-posix.c: Likewise.
27166         * tests/test-vfprintf-posix.c: Likewise.
27167         * tests/test-vprintf-posix.c: Likewise.
27168         * tests/test-vsnprintf-posix.c: Likewise.
27169         * tests/test-vsprintf-posix.c: Likewise.
27170
27171 2009-01-03  Jim Meyering  <meyering@redhat.com>
27172
27173         gnulib-tool: fix sed-based filtering
27174         * gnulib-tool (func_filter_filelist): Remove extra backslash
27175         in sed_fff_filter definition.
27176
27177 2009-01-02  Jim Meyering  <meyering@redhat.com>
27178
27179         strftime: avoid compilation failure on Solaris 2.6
27180         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27181         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27182         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27183         be available.  Reported by Tom G. Christensen.  Details in
27184         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27185
27186 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27187             Bruno Haible  <bruno@clisp.org>
27188
27189         Speed up gnulib-tool by doing more string processing through shell
27190         built-ins.
27191         * gnulib-tool (fast_func_append): New variable.
27192         (func_remove_prefix, func_remove_suffix): New functions.
27193         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27194         (func_filter_filelist): New function.
27195         (func_get_dependencies): Use func_remove_suffix instead of sed.
27196         (func_get_automake_snippet): Use func_filter_filelist instead of a
27197         subshell and sed invocation.
27198
27199 2009-01-01  Bruno Haible  <bruno@clisp.org>
27200
27201         Fix a security bug.
27202         * gnulib-tool (func_import, import, update): Don't allow the characters
27203         '"', '$', '`', '\' in macro arguments that become part of commands that
27204         are evaluated.
27205
27206 2009-01-01  Bruno Haible  <bruno@clisp.org>
27207
27208         * gnulib-tool (func_reset_sigpipe): Add more comments.
27209
27210 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27211
27212         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27213         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27214         already know the answer.
27215
27216 2009-01-01  Jim Meyering  <meyering@redhat.com>
27217
27218         * lib/version-etc.c (version_etc_va): Update copyright year.
27219
27220 2008-12-30  Bruno Haible  <bruno@clisp.org>
27221
27222         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27223         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27224         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27225
27226 2008-12-29  Eric Blake  <ebb9@byu.net>
27227
27228         multiarch: avoid autoconf AC_REQUIRE bug
27229         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27230         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27231         2.63 and older.
27232         Reported by Bruno Haible, and analyzed in
27233         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27234
27235 2008-12-29  Bruno Haible  <bruno@clisp.org>
27236
27237         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27238         files in subdirectories correctly.
27239         Reported by Ralf Wildenhues.
27240
27241 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27242
27243         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27244         rather than 'join FILE -', for Solaris join.
27245
27246 2008-12-29  Bruno Haible  <bruno@clisp.org>
27247
27248         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27249         quoting.
27250         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27251         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27252         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27253         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27254         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27255         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27256         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27257         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27258         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27259         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27260         * m4/nls.m4 (AM_NLS): Likewise.
27261         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27262         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27263         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27264         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27265         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27266         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27267         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27268         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27269         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27270         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27271         * m4/xsize.m4 (gl_XSIZE): Likewise.
27272         Suggested by Jim Meyering.
27273
27274 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27275
27276         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27277         * lib/parse-duration.c: use a switch instead of cascading if's.
27278
27279 2008-12-29  Eric Blake  <ebb9@byu.net>
27280
27281         wchar.h: supply WEOF on Irix 5.3
27282         * lib/wchar.in.h (wint_t): Also supply WEOF.
27283         * lib/wctype.in.h (wint_t): Likewise.
27284         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27285         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27286         Reported by Tom G. Christensen.
27287
27288 2008-12-26  Bruno Haible  <bruno@clisp.org>
27289
27290         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27291         i486, i586, i686.
27292
27293 2008-12-26  Bruno Haible  <bruno@clisp.org>
27294
27295         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27296
27297 2008-12-26  Bruno Haible  <bruno@clisp.org>
27298
27299         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27300         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27301         not __STDC_CONSTANT_MACROS.
27302         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27303
27304 2008-12-25  Bruno Haible  <bruno@clisp.org>
27305
27306         Add support for universal builds to vasnprintf.
27307         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27308         universal builds, guess no.
27309         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27310         * modules/vasprintf-posix (Depends-on): Likewise.
27311         * modules/fprintf-posix (Depends-on): Likewise.
27312         * modules/vfprintf-posix (Depends-on): Likewise.
27313         * modules/snprintf-posix (Depends-on): Likewise.
27314         * modules/vsnprintf-posix (Depends-on): Likewise.
27315         * modules/sprintf-posix (Depends-on): Likewise.
27316         * modules/vsprintf-posix (Depends-on): Likewise.
27317         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27318         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27319         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27320         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27321         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27322         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27323         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27324
27325         Add support for universal builds to <inttypes.h>.
27326         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27327         _SCNu64_PREFIX): In Apple
27328         universal builds, define directly, using _LP64.
27329         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27330         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27331         * modules/inttypes (Depends-on): Add multiarch.
27332         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27333
27334         Add support for universal builds to <stdint.h>.
27335         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27336         universal builds, define directly, using _LP64.
27337         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27338         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27339         and size_t.
27340         * modules/stdint (Depends-on): Add multiarch.
27341         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27342
27343         New module 'multiarch'.
27344         * modules/multiarch: New file.
27345         * m4/multiarch.m4: New file.
27346
27347 2008-12-25  Bruno Haible  <bruno@clisp.org>
27348
27349         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27350
27351 2008-12-25  Bruno Haible  <bruno@clisp.org>
27352
27353         * modules/btowc (License): Relicense under LGPLv2+.
27354         * modules/mbsinit (License): Likewise.
27355         * modules/mbrtowc (License): Likewise.
27356         * modules/wcrtomb (License): Likewise.
27357         * modules/streq (License): Likewise.
27358         Reported by David Lutterkort <lutter@redhat.com>.
27359
27360 2008-12-23  Bruno Haible  <bruno@clisp.org>
27361
27362         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27363
27364 2008-12-23  Bruno Haible  <bruno@clisp.org>
27365
27366         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27368         GETADDRINFO_LIB, not in LIBS.
27369         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27370         * modules/canon-host (Link): Likewise.
27371         * NEWS: Mention the change.
27372         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27373         GETADDRINFO_LIB.
27374
27375 2008-12-22  Bruno Haible  <bruno@clisp.org>
27376
27377         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27378         * doc/posix-functions/iswalpha_l.texi: Likewise.
27379         * doc/posix-functions/iswblank_l.texi: Likewise.
27380         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27381         * doc/posix-functions/iswctype_l.texi: Likewise.
27382         * doc/posix-functions/iswdigit_l.texi: Likewise.
27383         * doc/posix-functions/iswgraph_l.texi: Likewise.
27384         * doc/posix-functions/iswlower_l.texi: Likewise.
27385         * doc/posix-functions/iswprint_l.texi: Likewise.
27386         * doc/posix-functions/iswpunct_l.texi: Likewise.
27387         * doc/posix-functions/iswspace_l.texi: Likewise.
27388         * doc/posix-functions/iswupper_l.texi: Likewise.
27389         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27390         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27391         * doc/posix-functions/open_wmemstream.texi: Likewise.
27392         * doc/posix-functions/swscanf.texi: Likewise.
27393         * doc/posix-functions/towctrans_l.texi: Likewise.
27394         * doc/posix-functions/towlower.texi: Likewise.
27395         * doc/posix-functions/towlower_l.texi: Likewise.
27396         * doc/posix-functions/towupper.texi: Likewise.
27397         * doc/posix-functions/towupper_l.texi: Likewise.
27398         * doc/posix-functions/vfwprintf.texi: Likewise.
27399         * doc/posix-functions/vfwscanf.texi: Likewise.
27400         * doc/posix-functions/vswscanf.texi: Likewise.
27401         * doc/posix-functions/vwprintf.texi: Likewise.
27402         * doc/posix-functions/vwscanf.texi: Likewise.
27403         * doc/posix-functions/wcpcpy.texi: Likewise.
27404         * doc/posix-functions/wcpncpy.texi: Likewise.
27405         * doc/posix-functions/wcscasecmp.texi: Likewise.
27406         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27407         * doc/posix-functions/wcscoll_l.texi: Likewise.
27408         * doc/posix-functions/wcsdup.texi: Likewise.
27409         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27410         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27411         * doc/posix-functions/wcsnlen.texi: Likewise.
27412         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27413         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27414         * doc/posix-functions/wctrans_l.texi: Likewise.
27415         * doc/posix-functions/wctype_l.texi: Likewise.
27416         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27417         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27418         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27419         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27420         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27421         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27422         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27423         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27424         * doc/glibc-functions/wcschrnul.texi: Likewise.
27425         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27426         * doc/glibc-functions/wcstod_l.texi: Likewise.
27427         * doc/glibc-functions/wcstof_l.texi: Likewise.
27428         * doc/glibc-functions/wcstol_l.texi: Likewise.
27429         * doc/glibc-functions/wcstold_l.texi: Likewise.
27430         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27431         * doc/glibc-functions/wcstoq.texi: Likewise.
27432         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27433         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27434         * doc/glibc-functions/wcstouq.texi: Likewise.
27435         * doc/glibc-functions/wmempcpy.texi: Likewise.
27436
27437 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27438             Eric Blake  <ebb9@byu.net>
27439             Paolo Bonzini  <bonzini@gnu.org>
27440             Bruno Haible  <bruno@clisp.org>
27441
27442         Make c-stack work on Haiku.
27443         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27444         (c_stack_action): Use SA_ONSTACK flag.
27445
27446 2008-12-22  Bruno Haible  <bruno@clisp.org>
27447
27448         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27449
27450 2008-12-22  Bruno Haible  <bruno@clisp.org>
27451
27452         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27453         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27454         being overridden.
27455         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27456         New macros.
27457         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27458         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27459         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27460         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27461
27462 2008-12-22  Bruno Haible  <bruno@clisp.org>
27463
27464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27465         from test code.
27466
27467 2008-12-22  Eric Blake  <ebb9@byu.net>
27468
27469         Avoid gcc warnings on cygwin.
27470         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27471         Avoid unused variable.
27472         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27473         Likewise.
27474
27475 2008-12-22  Bruno Haible  <bruno@clisp.org>
27476
27477         Remove HAVE_MBRTOWC conditionals.
27478         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
27479         (mbscasecmp): Assume mbrtowc function.
27480         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
27481         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
27482         * lib/mbschr.c: Include mbuiter.h unconditionally.
27483         (mbschr): Assume mbrtowc function.
27484         * lib/mbscspn.c: Include mbuiter.h unconditionally.
27485         (mbscspn): Assume mbrtowc function.
27486         * lib/mbslen.c: Include mbuiter.h unconditionally.
27487         (mbslen): Assume mbrtowc function.
27488         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
27489         (mbsncasecmp): Assume mbrtowc function.
27490         * lib/mbsnlen.c: Include mbiter.h unconditionally.
27491         (mbsnlen): Assume mbrtowc function.
27492         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
27493         (mbspbrk): Assume mbrtowc function.
27494         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
27495         (mbspcasecmp): Assume mbrtowc function.
27496         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
27497         (mbsrchr): Assume mbrtowc function.
27498         * lib/mbssep.c: Include mbuiter.h unconditionally.
27499         (mbssep): Assume mbrtowc function.
27500         * lib/mbsspn.c: Include mbuiter.h unconditionally.
27501         (mbsspn): Assume mbrtowc function.
27502         * lib/mbsstr.c: Include mbuiter.h unconditionally.
27503         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27504         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27505         (mbstok_r): Assume mbrtowc function.
27506         * lib/propername.c: Include mbuiter.h unconditionally.
27507         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27508         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27509         (trim2): Assume mbrtowc function.
27510         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27511         (mbsnwidth): Assume mbrtowc function.
27512         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27513         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27514         fallback definitions.
27515         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27516
27517 2008-12-22  Bruno Haible  <bruno@clisp.org>
27518
27519         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27520
27521 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27522
27523         * modules/regex: Request emulations for the mb*/wc* functions we need.
27524         * m4/regex.m4: Don't look for those functions here.
27525         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27526
27527 2008-12-22  Bruno Haible  <bruno@clisp.org>
27528
27529         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27530
27531 2008-12-21  Bruno Haible  <bruno@clisp.org>
27532
27533         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27534         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27535         (Include): Remove conditionalization.
27536         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27537         (Include): Remove conditionalization.
27538         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27539         (Include): Remove conditionalization.
27540         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27541         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27542         * NEWS: Mention the change.
27543         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27544         via Sergey Poznyakoff <gray@gnu.org.ua>.
27545
27546 2008-12-21  Bruno Haible  <bruno@clisp.org>
27547
27548         * MODULES.html.sh (Extended multibyte and wide character utilities
27549         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
27550         wcrtomb, wcsrtombs.
27551         (Support for systems lacking POSIX:2008): Add accept, bind, close,
27552         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
27553         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
27554         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
27555
27556 2008-12-21  Bruno Haible  <bruno@clisp.org>
27557
27558         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
27559
27560 2008-12-21  Bruno Haible  <bruno@clisp.org>
27561
27562         * modules/wcsnrtombs-tests: New file.
27563         * tests/test-wcsnrtombs1.sh: New file.
27564         * tests/test-wcsnrtombs2.sh: New file.
27565         * tests/test-wcsnrtombs3.sh: New file.
27566         * tests/test-wcsnrtombs4.sh: New file.
27567         * tests/test-wcsnrtombs.c: New file.
27568
27569         New module 'wcsnrtombs'.
27570         * lib/wchar.in.h (wcsnrtombs): New declaration.
27571         * lib/wcsnrtombs.c: New file.
27572         * lib/wcsrtombs-state.c: New file.
27573         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
27574         (internal_state): Remove variable.
27575         * m4/wcsnrtombs.m4: New file.
27576         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
27577         compilation units.
27578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
27579         HAVE_WCSNRTOMBS.
27580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
27581         HAVE_WCSNRTOMBS.
27582         * modules/wcsnrtombs: New file.
27583         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
27584         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
27585
27586 2008-12-21  Bruno Haible  <bruno@clisp.org>
27587
27588         * modules/wcsrtombs-tests: New file.
27589         * tests/test-wcsrtombs1.sh: New file.
27590         * tests/test-wcsrtombs2.sh: New file.
27591         * tests/test-wcsrtombs3.sh: New file.
27592         * tests/test-wcsrtombs4.sh: New file.
27593         * tests/test-wcsrtombs.c: New file.
27594
27595         New module 'wcsrtombs'.
27596         * lib/wchar.in.h (wcsrtombs): New declaration.
27597         * lib/wcsrtombs.c: New file.
27598         * m4/wcsrtombs.m4: New file.
27599         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
27600         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
27602         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27603         * modules/wcsrtombs: New file.
27604         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
27605         bugs.
27606
27607 2008-12-21  Bruno Haible  <bruno@clisp.org>
27608
27609         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
27610         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
27611         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
27612         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
27613         if not correct.
27614         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
27615         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
27616         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27617         m4/locale-zh.m4, m4/codeset.m4.
27618         * doc/posix-functions/wcrtomb.texi: Document the bug.
27619
27620 2008-12-21  Bruno Haible  <bruno@clisp.org>
27621
27622         Work around a btowc() bug on IRIX 6.5.
27623         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
27624         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
27625         REPLACE_WTOBC if not.
27626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
27627         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
27628         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
27629
27630 2008-12-21  Bruno Haible  <bruno@clisp.org>
27631
27632         * modules/wcrtomb-tests: New file.
27633         * tests/test-wcrtomb.sh: New file.
27634         * tests/test-wcrtomb.c: New file.
27635
27636         New module 'wcrtomb'.
27637         * lib/wchar.in.h (wcrtomb): New declaration.
27638         * lib/wcrtomb.c: New file.
27639         * m4/wcrtomb.m4: New file.
27640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
27641         HAVE_WCRTOMB.
27642         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
27643         HAVE_WCRTOMB.
27644         * modules/wcrtomb: New file.
27645         * doc/posix-functions/wcrtomb.texi: Mention the new module.
27646
27647 2008-12-21  Bruno Haible  <bruno@clisp.org>
27648
27649         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
27650         * modules/mbsrtowcs (Files): Likewise.
27651         * modules/wctob (Files): Likewise.
27652         * modules/c-strcase-tests (Files): Likewise.
27653         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27654         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27655         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27656         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27657         * modules/vasnprintf-posix-tests (Files): Likewise.
27658
27659 2008-12-21  William Pursell  <bill.pursell@gmail.com>
27660
27661         gitlog-to-changelog: pass all command-line arguments to git-log
27662         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
27663         it is sometimes convenient to filter the commits in various ways.
27664         gitlog-to-changelog only allows --since to specify a start date,
27665         but git-log itself supports many other filtering mechanisms.
27666         At the moment, I want to filter by branch name.  Rather than
27667         adding a --branch option to gitlog-to-changelog, it seems more
27668         flexible to simply pass all options directly to git-log and let
27669         git do the work.  Notice that this effectively makes --since a
27670         redundant option for gitlog-to-changelog, but removing it would
27671         require current usage to change since calls would then require
27672         an additional '--'.
27673
27674 2008-12-21  Bruno Haible  <bruno@clisp.org>
27675
27676         * modules/mbsnrtowcs-tests: New file.
27677         * tests/test-mbsnrtowcs1.sh: New file.
27678         * tests/test-mbsnrtowcs2.sh: New file.
27679         * tests/test-mbsnrtowcs3.sh: New file.
27680         * tests/test-mbsnrtowcs4.sh: New file.
27681         * tests/test-mbsnrtowcs.c: New file.
27682
27683         New module 'mbsnrtowcs'.
27684         * lib/wchar.in.h (mbsnrtowcs): New declaration.
27685         * lib/mbsnrtowcs.c: New file.
27686         * lib/mbsrtowcs-state.c: New file.
27687         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
27688         (internal_state): Remove variable.
27689         * m4/mbsnrtowcs.m4: New file.
27690         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
27691         compilation units.
27692         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
27693         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27694         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
27695         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27696         * modules/mbsnrtowcs: New file.
27697         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
27698         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
27699         portability problem.
27700
27701 2008-12-21  Bruno Haible  <bruno@clisp.org>
27702
27703         Work around mbsrtowcs bug.
27704         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
27705         (gl_FUNC_MBSRTOWCS): Invoke it.
27706         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27707         m4/locale-zh.m4.
27708         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
27709
27710 2008-12-21  Bruno Haible  <bruno@clisp.org>
27711
27712         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
27713
27714 2008-12-21  Bruno Haible  <bruno@clisp.org>
27715
27716         Update doc for AIX.
27717         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
27718         16-bit wchar_t type.
27719         * doc/posix-functions/btowc.texi: Likewise.
27720         * doc/posix-functions/fgetwc.texi: Likewise.
27721         * doc/posix-functions/fgetws.texi: Likewise.
27722         * doc/posix-functions/fputwc.texi: Likewise.
27723         * doc/posix-functions/fputws.texi: Likewise.
27724         * doc/posix-functions/fwide.texi: Likewise.
27725         * doc/posix-functions/fwprintf.texi: Likewise.
27726         * doc/posix-functions/fwscanf.texi: Likewise.
27727         * doc/posix-functions/getwchar.texi: Likewise.
27728         * doc/posix-functions/getwc.texi: Likewise.
27729         * doc/posix-functions/iswalnum.texi: Likewise.
27730         * doc/posix-functions/iswalpha.texi: Likewise.
27731         * doc/posix-functions/iswblank.texi: Likewise.
27732         * doc/posix-functions/iswcntrl.texi: Likewise.
27733         * doc/posix-functions/iswctype.texi: Likewise.
27734         * doc/posix-functions/iswdigit.texi: Likewise.
27735         * doc/posix-functions/iswgraph.texi: Likewise.
27736         * doc/posix-functions/iswlower.texi: Likewise.
27737         * doc/posix-functions/iswprint.texi: Likewise.
27738         * doc/posix-functions/iswpunct.texi: Likewise.
27739         * doc/posix-functions/iswspace.texi: Likewise.
27740         * doc/posix-functions/iswupper.texi: Likewise.
27741         * doc/posix-functions/iswxdigit.texi: Likewise.
27742         * doc/posix-functions/mbrtowc.texi: Likewise.
27743         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27744         * doc/posix-functions/mbstowcs.texi: Likewise.
27745         * doc/posix-functions/mbtowc.texi: Likewise.
27746         * doc/posix-functions/putwchar.texi: Likewise.
27747         * doc/posix-functions/putwc.texi: Likewise.
27748         * doc/posix-functions/swprintf.texi: Likewise.
27749         * doc/posix-functions/tolower.texi: Likewise.
27750         * doc/posix-functions/toupper.texi: Likewise.
27751         * doc/posix-functions/towctrans.texi: Likewise.
27752         * doc/posix-functions/ungetwc.texi: Likewise.
27753         * doc/posix-functions/vswprintf.texi: Likewise.
27754         * doc/posix-functions/wcrtomb.texi: Likewise.
27755         * doc/posix-functions/wcscat.texi: Likewise.
27756         * doc/posix-functions/wcschr.texi: Likewise.
27757         * doc/posix-functions/wcscmp.texi: Likewise.
27758         * doc/posix-functions/wcscoll.texi: Likewise.
27759         * doc/posix-functions/wcscpy.texi: Likewise.
27760         * doc/posix-functions/wcscspn.texi: Likewise.
27761         * doc/posix-functions/wcsftime.texi: Likewise.
27762         * doc/posix-functions/wcslen.texi: Likewise.
27763         * doc/posix-functions/wcsncat.texi: Likewise.
27764         * doc/posix-functions/wcsncmp.texi: Likewise.
27765         * doc/posix-functions/wcsncpy.texi: Likewise.
27766         * doc/posix-functions/wcspbrk.texi: Likewise.
27767         * doc/posix-functions/wcsrchr.texi: Likewise.
27768         * doc/posix-functions/wcsrtombs.texi: Likewise.
27769         * doc/posix-functions/wcsspn.texi: Likewise.
27770         * doc/posix-functions/wcsstr.texi: Likewise.
27771         * doc/posix-functions/wcstod.texi: Likewise.
27772         * doc/posix-functions/wcstof.texi: Likewise.
27773         * doc/posix-functions/wcstoimax.texi: Likewise.
27774         * doc/posix-functions/wcstok.texi: Likewise.
27775         * doc/posix-functions/wcstold.texi: Likewise.
27776         * doc/posix-functions/wcstoll.texi: Likewise.
27777         * doc/posix-functions/wcstol.texi: Likewise.
27778         * doc/posix-functions/wcstombs.texi: Likewise.
27779         * doc/posix-functions/wcstoull.texi: Likewise.
27780         * doc/posix-functions/wcstoul.texi: Likewise.
27781         * doc/posix-functions/wcstoumax.texi: Likewise.
27782         * doc/posix-functions/wcswidth.texi: Likewise.
27783         * doc/posix-functions/wcsxfrm.texi: Likewise.
27784         * doc/posix-functions/wctob.texi: Likewise.
27785         * doc/posix-functions/wctomb.texi: Likewise.
27786         * doc/posix-functions/wctrans.texi: Likewise.
27787         * doc/posix-functions/wctype.texi: Likewise.
27788         * doc/posix-functions/wcwidth.texi: Likewise.
27789         * doc/posix-functions/wmemchr.texi: Likewise.
27790         * doc/posix-functions/wmemcmp.texi: Likewise.
27791         * doc/posix-functions/wmemcpy.texi: Likewise.
27792         * doc/posix-functions/wmemmove.texi: Likewise.
27793         * doc/posix-functions/wmemset.texi: Likewise.
27794         * doc/posix-functions/wprintf.texi: Likewise.
27795         * doc/posix-functions/wscanf.texi: Likewise.
27796
27797 2008-12-21  Bruno Haible  <bruno@clisp.org>
27798
27799         Update doc for HP-UX 11.11.
27800         * doc/posix-functions/btowc.texi: Clarify that the function is missing
27801         in HP-UX version 11.00, not in all versions of HP-UX 11.
27802         * doc/posix-functions/fwide.texi: Likewise.
27803         * doc/posix-functions/fwprintf.texi: Likewise.
27804         * doc/posix-functions/fwscanf.texi: Likewise.
27805         * doc/posix-functions/inet_ntop.texi: Likewise.
27806         * doc/posix-functions/inet_pton.texi: Likewise.
27807         * doc/posix-functions/mbrlen.texi: Likewise.
27808         * doc/posix-functions/mbrtowc.texi: Likewise.
27809         * doc/posix-functions/mbsinit.texi: Likewise.
27810         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27811         * doc/posix-functions/swprintf.texi: Likewise.
27812         * doc/posix-functions/swscanf.texi: Likewise.
27813         * doc/posix-functions/towctrans.texi: Likewise.
27814         * doc/posix-functions/vfwprintf.texi: Likewise.
27815         * doc/posix-functions/vswprintf.texi: Likewise.
27816         * doc/posix-functions/vwprintf.texi: Likewise.
27817         * doc/posix-functions/wcrtomb.texi: Likewise.
27818         * doc/posix-functions/wcsrtombs.texi: Likewise.
27819         * doc/posix-functions/wcsstr.texi: Likewise.
27820         * doc/posix-functions/wctob.texi: Likewise.
27821         * doc/posix-functions/wctrans.texi: Likewise.
27822         * doc/posix-functions/wmemchr.texi: Likewise.
27823         * doc/posix-functions/wmemcmp.texi: Likewise.
27824         * doc/posix-functions/wmemcpy.texi: Likewise.
27825         * doc/posix-functions/wmemmove.texi: Likewise.
27826         * doc/posix-functions/wmemset.texi: Likewise.
27827         * doc/posix-functions/wprintf.texi: Likewise.
27828         * doc/posix-functions/wscanf.texi: Likewise.
27829
27830 2008-12-21  Bruno Haible  <bruno@clisp.org>
27831
27832         Work around a portability problem.
27833         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
27834         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
27835
27836 2008-12-20  Bruno Haible  <bruno@clisp.org>
27837
27838         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
27839         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
27840         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
27841         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
27842         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
27843
27844         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
27845         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
27846         set.
27847         (GNULIB_defined_mbstate_t): New macro.
27848         (mbsinit): Redefine if REPLACE_MBSINIT is set.
27849         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
27850         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
27851         reuses the system's mbrtowc function but works around the bugs.
27852         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
27853         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
27854         macros.
27855         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
27856         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
27857         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
27858         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
27859         REPLACE_MBSINIT if mbsinit needs to be overridden.
27860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
27861         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27862         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
27863         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27864         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27865         m4/locale-zh.m4.
27866         (Depends): Add mbsinit.
27867         * modules/mbsinit (Depends): Add mbrtowc.
27868         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
27869
27870 2008-12-20  Bruno Haible  <bruno@clisp.org>
27871
27872         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
27873         so that there are no conversion errors on AIX.
27874         * tests/test-mbsrtowcs.c (main): LIkewise.
27875
27876 2008-12-20  Bruno Haible  <bruno@clisp.org>
27877
27878         Work around wctob bug on Solaris <= 9.
27879         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
27880         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
27881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
27882         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
27883         * modules/wctob (Files): Add m4/locale-fr.m4.
27884         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
27885
27886 2008-12-20  Bruno Haible  <bruno@clisp.org>
27887
27888         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
27889         /dev/null.
27890         * tests/test-select-in.sh: Likewise.
27891         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27892
27893 2008-12-20  Bruno Haible  <bruno@clisp.org>
27894
27895         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
27896         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
27897         Cygwin 1.5.x.
27898
27899 2008-12-20  Bruno Haible  <bruno@clisp.org>
27900
27901         Ensure mbstate_t is defined on HP-UX 11.11.
27902         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
27903         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
27904         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
27905         AC_USE_SYSTEM_EXTENSIONS.
27906         * modules/fnmatch (Depends-on): Add extensions.
27907         * modules/mbrlen (Depends-on): Likewise.
27908         * modules/mbrtowc (Depends-on): Likewise.
27909         * modules/mbsinit (Depends-on): Likewise.
27910         * modules/mbsrtowcs (Depends-on): Likewise.
27911         * modules/mbswidth (Depends-on): Likewise.
27912         * modules/quotearg (Depends-on): Likewise.
27913         * modules/strftime (Depends-on): Likewise.
27914
27915 2008-12-20  Bruno Haible  <bruno@clisp.org>
27916
27917         Ensure wctob is declared on IRIX 6.5.
27918         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
27919         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
27920         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
27921         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
27922         of HAVE_WCTOB.
27923         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
27924         HAVE_WCTOB.
27925         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
27926
27927 2008-12-19  Bruno Haible  <bruno@clisp.org>
27928
27929         * modules/mbsrtowcs-tests: New file.
27930         * tests/test-mbsrtowcs1.sh: New file.
27931         * tests/test-mbsrtowcs2.sh: New file.
27932         * tests/test-mbsrtowcs3.sh: New file.
27933         * tests/test-mbsrtowcs4.sh: New file.
27934         * tests/test-mbsrtowcs.c: New file.
27935
27936         New module 'mbsrtowcs'.
27937         * lib/wchar.in.h (mbsrtowcs): New declaration.
27938         * lib/mbsrtowcs.c: New file.
27939         * m4/mbsrtowcs.m4: New file.
27940         * modules/mbsrtowcs: New file.
27941         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
27942         HAVE_MBSRTOWCS.
27943         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
27944         HAVE_MBSRTOWCS.
27945         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
27946
27947 2008-12-19  Bruno Haible  <bruno@clisp.org>
27948
27949         New module 'mbrlen'.
27950         * lib/wchar.in.h (mbrlen): New declaration.
27951         * lib/mbrlen.c: New file.
27952         * m4/mbrlen.m4: New file.
27953         * modules/mbrlen: New file.
27954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
27955         HAVE_MBRLEN.
27956         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
27957         HAVE_MBRLEN.
27958         * doc/posix-functions/mbrlen.texi: Document the new module.
27959
27960 2008-12-19  Bruno Haible  <bruno@clisp.org>
27961
27962         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
27963         * modules/mbrtowc (Depends-on): Add verify.
27964         Suggested by Paul Eggert.
27965
27966 2008-12-18  Bruno Haible  <bruno@clisp.org>
27967
27968         * modules/mbsinit-tests: New file.
27969         * tests/test-mbsinit.sh: New file.
27970         * tests/test-mbsinit.c: New file.
27971
27972 2008-12-18  Bruno Haible  <bruno@clisp.org>
27973
27974         * modules/mbrtowc-tests: New file.
27975         * tests/test-mbrtowc1.sh: New file.
27976         * tests/test-mbrtowc2.sh: New file.
27977         * tests/test-mbrtowc3.sh: New file.
27978         * tests/test-mbrtowc4.sh: New file.
27979         * tests/test-mbrtowc.c: New file.
27980
27981         New module 'mbrtowc'.
27982         * lib/wchar.in.h (mbstate_t): Override when the system does not have
27983         mbsinit and mbrtowc.
27984         (mbrtowc): New declaration.
27985         * lib/mbrtowc.c: New file.
27986         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
27987         * modules/mbrtowc: New file.
27988         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
27989         HAVE_MBRTOWC.
27990         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
27991         HAVE_MBRTOWC.
27992         * doc/posix-functions/mbrtowc.texi: Document the new module.
27993
27994 2008-12-18  Bruno Haible  <bruno@clisp.org>
27995
27996         New module 'wctob'.
27997         * lib/wchar.in.h (wctob): New declaration.
27998         * lib/wctob.c: New file.
27999         * m4/wctob.m4: New file.
28000         * modules/wctob: New file.
28001         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28002         HAVE_WCTOB.
28003         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28004         * doc/posix-functions/wctob.texi: Document the new module.
28005
28006 2008-12-18  Bruno Haible  <bruno@clisp.org>
28007
28008         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28009         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28010
28011 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28012
28013         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28014         G. Christensen" <tgc@jupiterrise.com>.
28015
28016         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28017         G. Christensen" <tgc@jupiterrise.com>.
28018
28019         * lib/flock.c: Need to include string.h.  Reported by "Tom
28020         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28021         <ebb9@byu.net>.
28022
28023 2008-12-18  Bruno Haible  <bruno@clisp.org>
28024
28025         * m4/locale-ja.m4: New file, from GNU gettext.
28026
28027 2008-12-17  Bruno Haible  <bruno@clisp.org>
28028
28029         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28030         Suggested by Eric Blake.
28031
28032 2008-12-17  Bruno Haible  <bruno@clisp.org>
28033
28034         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28035
28036 2008-12-17  Bruno Haible  <bruno@clisp.org>
28037
28038         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28039         * modules/mbsinit (Depends-on): Add verify.
28040         Suggested by Paul Eggert.
28041
28042 2008-12-17  Bruno Haible  <bruno@clisp.org>
28043
28044         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28045         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28046         gl_FUNC_MBRTOWC.
28047         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28048         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28049         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28050         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28051         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28052         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28053         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28054         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28055         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28056         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28057         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28058         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28059         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28060         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28061         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28062         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28063         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28064         * modules/trim (configure.ac): Likewise.
28065
28066 2008-12-17  Bruno Haible  <bruno@clisp.org>
28067
28068         * modules/btowc-tests: New file.
28069         * tests/test-btowc1.sh: New file.
28070         * tests/test-btowc2.sh: New file.
28071         * tests/test-btowc.c: New file.
28072
28073         New module 'btowc'.
28074         * lib/wchar.in.h (btowc): New declaration.
28075         * lib/btowc.c: New file.
28076         * m4/btowc.m4: New file.
28077         * modules/btowc: New file.
28078         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28079         HAVE_BTOWC.
28080         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28081         * doc/posix-functions/btowc.texi: Document the new module.
28082
28083 2008-12-17  Bruno Haible  <bruno@clisp.org>
28084
28085         New module 'mbsinit'.
28086         * lib/wchar.in.h (mbsinit): New declaration.
28087         * lib/mbsinit.c: New file.
28088         * m4/mbsinit.m4: New file.
28089         * modules/mbsinit: New file.
28090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28091         HAVE_MBSINIT.
28092         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28093         HAVE_MBSINIT.
28094         * doc/posix-functions/mbsinit.texi: Document the new module.
28095
28096 2008-12-16  Bruno Haible  <bruno@clisp.org>
28097
28098         * lib/unistd.in.h: Add comment.
28099         * tests/test-environ.c: Don't include <stdlib.h>.
28100
28101 2008-12-16  Bruno Haible  <bruno@clisp.org>
28102
28103         * lib/parse-duration.h (parse_duration): Document return value
28104         convention.
28105         * lib/parse-duration.c: Include specification header first. Add
28106         comments.
28107         (_): Remove macro.
28108         (parse_year_month_day, parse_hour_minute_second): Move side effects
28109         outside of strchr call.
28110         (parse_non_iso8601): Move side effects outside of isspace call.
28111         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28112         call.
28113
28114 2008-12-16  Bruno Haible  <bruno@clisp.org>
28115
28116         * tests/test-parse-duration.sh: Produce no output when the test
28117         succeeds.
28118
28119 2008-12-16  Bruno Haible  <bruno@clisp.org>
28120
28121         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28122         expressions.
28123
28124 2008-12-15  Bruno Haible  <bruno@clisp.org>
28125
28126         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28127         * doc/glibc-functions/flistxattr.texi: Likewise.
28128         * doc/glibc-functions/fopencookie.texi: Likewise.
28129         * doc/glibc-functions/fremovexattr.texi: Likewise.
28130         * doc/glibc-functions/fsetxattr.texi: Likewise.
28131         * doc/glibc-functions/getxattr.texi: Likewise.
28132         * doc/glibc-functions/lgetxattr.texi: Likewise.
28133         * doc/glibc-functions/listxattr.texi: Likewise.
28134         * doc/glibc-functions/llistxattr.texi: Likewise.
28135         * doc/glibc-functions/lremovexattr.texi: Likewise.
28136         * doc/glibc-functions/lsetxattr.texi: Likewise.
28137         * doc/glibc-functions/removexattr.texi: Likewise.
28138         * doc/glibc-functions/setxattr.texi: Likewise.
28139         * doc/posix-functions/open_memstream.texi: Likewise.
28140
28141 2008-12-15  Eric Blake  <ebb9@byu.net>
28142
28143         Update doc for cygwin 1.7.
28144         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28145         functions.
28146         * doc/posix-functions/fchmodat.texi: Likewise.
28147         * doc/posix-functions/fchownat.texi: Likewise.
28148         * doc/posix-functions/fdopendir.texi: Likewise.
28149         * doc/posix-functions/fmemopen.texi: Likewise.
28150         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28151         * doc/posix-functions/fstatat.texi: Likewise.
28152         * doc/posix-functions/futimens.texi: Likewise.
28153         * doc/posix-functions/gai_strerror.texi: Likewise.
28154         * doc/posix-functions/getaddrinfo.texi: Likewise.
28155         * doc/posix-functions/getnameinfo.texi: Likewise.
28156         * doc/posix-functions/if_freenameindex.texi: Likewise.
28157         * doc/posix-functions/if_indextoname.texi: Likewise.
28158         * doc/posix-functions/if_nameindex.texi: Likewise.
28159         * doc/posix-functions/if_nametoindex.texi: Likewise.
28160         * doc/posix-functions/insque.texi: Likewise.
28161         * doc/posix-functions/linkat.texi: Likewise.
28162         * doc/posix-functions/llrint.texi: Likewise.
28163         * doc/posix-functions/llrintf.texi: Likewise.
28164         * doc/posix-functions/llrintl.texi: Likewise.
28165         * doc/posix-functions/lockf.texi: Likewise.
28166         * doc/posix-functions/lrintl.texi: Likewise.
28167         * doc/posix-functions/mkdirat.texi: Likewise.
28168         * doc/posix-functions/mkfifoat.texi: Likewise.
28169         * doc/posix-functions/mknodat.texi: Likewise.
28170         * doc/posix-functions/mq_close.texi: Likewise.
28171         * doc/posix-functions/mq_getattr.texi: Likewise.
28172         * doc/posix-functions/mq_notify.texi: Likewise.
28173         * doc/posix-functions/mq_open.texi: Likewise.
28174         * doc/posix-functions/mq_receive.texi: Likewise.
28175         * doc/posix-functions/mq_send.texi: Likewise.
28176         * doc/posix-functions/mq_setattr.texi: Likewise.
28177         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28178         * doc/posix-functions/mq_timedsend.texi: Likewise.
28179         * doc/posix-functions/mq_unlink.texi: Likewise.
28180         * doc/posix-functions/open_memstream.texi: Likewise.
28181         * doc/posix-functions/openat.texi: Likewise.
28182         * doc/posix-functions/posix_fadvise.texi: Likewise.
28183         * doc/posix-functions/posix_fallocate.texi: Likewise.
28184         * doc/posix-functions/posix_madvise.texi: Likewise.
28185         * doc/posix-functions/posix_memalign.texi: Likewise.
28186         * doc/posix-functions/posix_openpt.texi: Likewise.
28187         * doc/posix-functions/readlinkat.texi: Likewise.
28188         * doc/posix-functions/remque.texi: Likewise.
28189         * doc/posix-functions/renameat.texi: Likewise.
28190         * doc/posix-functions/rintl.texi: Likewise.
28191         * doc/posix-functions/sem_unlink.texi: Likewise.
28192         * doc/posix-functions/shm_open.texi: Likewise.
28193         * doc/posix-functions/shm_unlink.texi: Likewise.
28194         * doc/posix-functions/signgam.texi: Likewise.
28195         * doc/posix-functions/sigset.texi: Likewise.
28196         * doc/posix-functions/stpcpy.texi: Likewise.
28197         * doc/posix-functions/stpncpy.texi: Likewise.
28198         * doc/posix-functions/strerror.texi: Likewise.
28199         * doc/posix-functions/strtod.texi: Likewise.
28200         * doc/posix-functions/symlinkat.texi: Likewise.
28201         * doc/posix-functions/unlinkat.texi: Likewise.
28202         * doc/posix-functions/utimensat.texi: Likewise.
28203         * doc/glibc-functions/bindresvport.texi: Likewise.
28204         * doc/glibc-functions/dn_expand.texi: Likewise.
28205         * doc/glibc-functions/exp10.texi: Likewise.
28206         * doc/glibc-functions/exp10f.texi: Likewise.
28207         * doc/glibc-functions/fgetxattr.texi: Likewise.
28208         * doc/glibc-functions/flistxattr.texi: Likewise.
28209         * doc/glibc-functions/fopencookie.texi: Likewise.
28210         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28211         * doc/glibc-functions/fremovexattr.texi: Likewise.
28212         * doc/glibc-functions/fsetxattr.texi: Likewise.
28213         * doc/glibc-functions/getifaddrs.texi: Likewise.
28214         * doc/glibc-functions/getxattr.texi: Likewise.
28215         * doc/glibc-functions/lgetxattr.texi: Likewise.
28216         * doc/glibc-functions/listxattr.texi: Likewise.
28217         * doc/glibc-functions/llistxattr.texi: Likewise.
28218         * doc/glibc-functions/lremovexattr.texi: Likewise.
28219         * doc/glibc-functions/lsetxattr.texi: Likewise.
28220         * doc/glibc-functions/pow10.texi: Likewise.
28221         * doc/glibc-functions/pow10f.texi: Likewise.
28222         * doc/glibc-functions/rcmd_af.texi: Likewise.
28223         * doc/glibc-functions/removexattr.texi: Likewise.
28224         * doc/glibc-functions/res_init.texi: Likewise.
28225         * doc/glibc-functions/res_mkquery.texi: Likewise.
28226         * doc/glibc-functions/res_query.texi: Likewise.
28227         * doc/glibc-functions/res_querydomain.texi: Likewise.
28228         * doc/glibc-functions/res_send.texi: Likewise.
28229         * doc/glibc-functions/rresvport_af.texi: Likewise.
28230         * doc/glibc-functions/setxattr.texi: Likewise.
28231         * doc/glibc-functions/strcasestr.texi: Likewise.
28232
28233 2008-12-15  Bruno Haible  <bruno@clisp.org>
28234
28235         Fix compilation error on OSF/1 4.0.
28236         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28237         <sys/time.h>, simply delegate to the system header.
28238         Reported by Daniel Richard G. <oss@teragram.com>.
28239
28240 2008-12-15  Bruno Haible  <bruno@clisp.org>
28241
28242         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28243         * doc/posix-functions/fchmodat.texi: Likewise.
28244         * doc/posix-functions/fchownat.texi: Likewise.
28245         * doc/posix-functions/fdopendir.texi: Likewise.
28246         * doc/posix-functions/fstatat.texi: Likewise.
28247         * doc/posix-functions/mkdirat.texi: Likewise.
28248         * doc/posix-functions/unlinkat.texi: Likewise.
28249
28250 2008-12-14  Bruno Haible  <bruno@clisp.org>
28251
28252         Update doc for POSIX:2008.
28253         * doc/posix-functions/faccessat.texi: New file.
28254         * doc/posix-functions/fchmodat.texi: New file.
28255         * doc/posix-functions/fchownat.texi: New file.
28256         * doc/posix-functions/fdopendir.texi: New file.
28257         * doc/posix-functions/fstatat.texi: New file.
28258         * doc/posix-functions/futimens.texi: New file.
28259         * doc/posix-functions/linkat.texi: New file.
28260         * doc/posix-functions/mkdirat.texi: New file.
28261         * doc/posix-functions/mkfifoat.texi: New file.
28262         * doc/posix-functions/mknodat.texi: New file.
28263         * doc/posix-functions/open_wmemstream.texi: New file.
28264         * doc/posix-functions/openat.texi: New file.
28265         * doc/posix-functions/psiginfo.texi: New file.
28266         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28267         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28268         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28269         * doc/posix-functions/readlinkat.texi: New file.
28270         * doc/posix-functions/renameat.texi: New file.
28271         * doc/posix-functions/strerror_l.texi: New file.
28272         * doc/posix-functions/symlinkat.texi: New file.
28273         * doc/posix-functions/unlinkat.texi: New file.
28274         * doc/posix-functions/utimensat.texi: New file.
28275         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28276
28277 2008-12-14  Bruno Haible  <bruno@clisp.org>
28278
28279         Update doc for POSIX:2008.
28280         * doc/posix-functions/alphasort.texi: Renamed from
28281         doc/glibc-functions/alphasort.texi.
28282         * doc/posix-functions/dirfd.texi: Renamed from
28283         doc/glibc-functions/dirfd.texi.
28284         * doc/posix-functions/dprintf.texi: Renamed from
28285         doc/glibc-functions/dprintf.texi.
28286         * doc/posix-functions/duplocale.texi: Renamed from
28287         doc/glibc-functions/duplocale.texi.
28288         * doc/posix-functions/fexecve.texi: Renamed from
28289         doc/glibc-functions/fexecve.texi.
28290         * doc/posix-functions/fmemopen.texi: Renamed from
28291         doc/glibc-functions/fmemopen.texi.
28292         * doc/posix-functions/freelocale.texi: Renamed from
28293         doc/glibc-functions/freelocale.texi.
28294         * doc/posix-functions/getdate_err.texi: Renamed from
28295         doc/glibc-functions/getdate_err.texi.
28296         * doc/posix-functions/isalnum_l.texi: Renamed from
28297         doc/glibc-functions/isalnum_l.texi.
28298         * doc/posix-functions/isalpha_l.texi: Renamed from
28299         doc/glibc-functions/isalpha_l.texi.
28300         * doc/posix-functions/isblank_l.texi: Renamed from
28301         doc/glibc-functions/isblank_l.texi.
28302         * doc/posix-functions/iscntrl_l.texi: Renamed from
28303         doc/glibc-functions/iscntrl_l.texi.
28304         * doc/posix-functions/isdigit_l.texi: Renamed from
28305         doc/glibc-functions/isdigit_l.texi.
28306         * doc/posix-functions/isgraph_l.texi: Renamed from
28307         doc/glibc-functions/isgraph_l.texi.
28308         * doc/posix-functions/islower_l.texi: Renamed from
28309         doc/glibc-functions/islower_l.texi.
28310         * doc/posix-functions/isprint_l.texi: Renamed from
28311         doc/glibc-functions/isprint_l.texi.
28312         * doc/posix-functions/ispunct_l.texi: Renamed from
28313         doc/glibc-functions/ispunct_l.texi.
28314         * doc/posix-functions/isspace_l.texi: Renamed from
28315         doc/glibc-functions/isspace_l.texi.
28316         * doc/posix-functions/isupper_l.texi: Renamed from
28317         doc/glibc-functions/isupper_l.texi.
28318         * doc/posix-functions/iswalnum_l.texi: Renamed from
28319         doc/glibc-functions/iswalnum_l.texi.
28320         * doc/posix-functions/iswalpha_l.texi: Renamed from
28321         doc/glibc-functions/iswalpha_l.texi.
28322         * doc/posix-functions/iswblank_l.texi: Renamed from
28323         doc/glibc-functions/iswblank_l.texi.
28324         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28325         doc/glibc-functions/iswcntrl_l.texi.
28326         * doc/posix-functions/iswctype_l.texi: Renamed from
28327         doc/glibc-functions/iswctype_l.texi.
28328         * doc/posix-functions/iswdigit_l.texi: Renamed from
28329         doc/glibc-functions/iswdigit_l.texi.
28330         * doc/posix-functions/iswgraph_l.texi: Renamed from
28331         doc/glibc-functions/iswgraph_l.texi.
28332         * doc/posix-functions/iswlower_l.texi: Renamed from
28333         doc/glibc-functions/iswlower_l.texi.
28334         * doc/posix-functions/iswprint_l.texi: Renamed from
28335         doc/glibc-functions/iswprint_l.texi.
28336         * doc/posix-functions/iswpunct_l.texi: Renamed from
28337         doc/glibc-functions/iswpunct_l.texi.
28338         * doc/posix-functions/iswspace_l.texi: Renamed from
28339         doc/glibc-functions/iswspace_l.texi.
28340         * doc/posix-functions/iswupper_l.texi: Renamed from
28341         doc/glibc-functions/iswupper_l.texi.
28342         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28343         doc/glibc-functions/iswxdigit_l.texi.
28344         * doc/posix-functions/isxdigit_l.texi: Renamed from
28345         doc/glibc-functions/isxdigit_l.texi.
28346         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28347         doc/glibc-functions/mbsnrtowcs.texi.
28348         * doc/posix-functions/mkdtemp.texi: Renamed from
28349         doc/glibc-functions/mkdtemp.texi.
28350         * doc/posix-functions/newlocale.texi: Renamed from
28351         doc/glibc-functions/newlocale.texi.
28352         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28353         doc/glibc-functions/nl_langinfo_l.texi.
28354         * doc/posix-functions/open_memstream.texi: Renamed from
28355         doc/glibc-functions/open_memstream.texi.
28356         * doc/posix-functions/opterr.texi: Renamed from
28357         doc/glibc-functions/opterr.texi.
28358         * doc/posix-functions/optind.texi: Renamed from
28359         doc/glibc-functions/optind.texi.
28360         * doc/posix-functions/optopt.texi: Renamed from
28361         doc/glibc-functions/optopt.texi.
28362         * doc/posix-functions/psignal.texi: Renamed from
28363         doc/glibc-functions/psignal.texi.
28364         * doc/posix-functions/scandir.texi: Renamed from
28365         doc/glibc-functions/scandir.texi.
28366         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28367         doc/glibc-functions/sched_get_priority_min.texi.
28368         * doc/posix-functions/signgam.texi: Renamed from
28369         doc/glibc-functions/signgam.texi.
28370         * doc/posix-functions/stpcpy.texi: Renamed from
28371         doc/glibc-functions/stpcpy.texi.
28372         * doc/posix-functions/stpncpy.texi: Renamed from
28373         doc/glibc-functions/stpncpy.texi.
28374         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28375         doc/glibc-functions/strcasecmp_l.texi.
28376         * doc/posix-functions/strcoll_l.texi: Renamed from
28377         doc/glibc-functions/strcoll_l.texi.
28378         * doc/posix-functions/strfmon_l.texi: Renamed from
28379         doc/glibc-functions/strfmon_l.texi.
28380         * doc/posix-functions/strftime_l.texi: Renamed from
28381         doc/glibc-functions/strftime_l.texi.
28382         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28383         doc/glibc-functions/strncasecmp_l.texi.
28384         * doc/posix-functions/strndup.texi: Renamed from
28385         doc/glibc-functions/strndup.texi.
28386         * doc/posix-functions/strnlen.texi: Renamed from
28387         doc/glibc-functions/strnlen.texi.
28388         * doc/posix-functions/strsignal.texi: Renamed from
28389         doc/glibc-functions/strsignal.texi.
28390         * doc/posix-functions/strxfrm_l.texi: Renamed from
28391         doc/glibc-functions/strxfrm_l.texi.
28392         * doc/posix-functions/timer_gettime.texi: Renamed from
28393         doc/glibc-functions/timer_gettime.texi.
28394         * doc/posix-functions/tolower_l.texi: Renamed from
28395         doc/glibc-functions/tolower_l.texi.
28396         * doc/posix-functions/toupper_l.texi: Renamed from
28397         doc/glibc-functions/toupper_l.texi.
28398         * doc/posix-functions/towctrans_l.texi: Renamed from
28399         doc/glibc-functions/towctrans_l.texi.
28400         * doc/posix-functions/towlower_l.texi: Renamed from
28401         doc/glibc-functions/towlower_l.texi.
28402         * doc/posix-functions/towupper_l.texi: Renamed from
28403         doc/glibc-functions/towupper_l.texi.
28404         * doc/posix-functions/uselocale.texi: Renamed from
28405         doc/glibc-functions/uselocale.texi.
28406         * doc/posix-functions/vdprintf.texi: Renamed from
28407         doc/glibc-functions/vdprintf.texi.
28408         * doc/posix-functions/wcpcpy.texi:
28409         Renamed from doc/glibc-functions/wcpcpy.texi.
28410         * doc/posix-functions/wcpncpy.texi: Renamed from
28411         doc/glibc-functions/wcpncpy.texi.
28412         * doc/posix-functions/wcscasecmp.texi: Renamed from
28413         doc/glibc-functions/wcscasecmp.texi.
28414         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28415         doc/glibc-functions/wcscasecmp_l.texi.
28416         * doc/posix-functions/wcscoll_l.texi: Renamed from
28417         doc/glibc-functions/wcscoll_l.texi.
28418         * doc/posix-functions/wcsdup.texi: Renamed from
28419         doc/glibc-functions/wcsdup.texi.
28420         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28421         doc/glibc-functions/wcsncasecmp.texi.
28422         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28423         doc/glibc-functions/wcsncasecmp_l.texi.
28424         * doc/posix-functions/wcsnlen.texi: Renamed from
28425         doc/glibc-functions/wcsnlen.texi.
28426         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28427         doc/glibc-functions/wcsnrtombs.texi.
28428         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28429         doc/glibc-functions/wcsxfrm_l.texi.
28430         * doc/posix-functions/wctrans_l.texi: Renamed from
28431         doc/glibc-functions/wctrans_l.texi.
28432         * doc/posix-functions/wctype_l.texi: Renamed from
28433         doc/glibc-functions/wctype_l.texi.
28434         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28435         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28436         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28437         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28438         these subsections.
28439         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28440         Remove sections.
28441
28442 2008-12-14  Bruno Haible  <bruno@clisp.org>
28443
28444         Update doc for POSIX:2008.
28445         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28446
28447 2008-12-14  Bruno Haible  <bruno@clisp.org>
28448
28449         Update doc for POSIX:2008.
28450         * doc/pastposix-functions/bcmp.texi: Renamed from
28451         doc/posix-functions/bcmp.texi.
28452         * doc/pastposix-functions/bcopy.texi: Renamed from
28453         doc/posix-functions/bcopy.texi.
28454         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28455         doc/posix-functions/bsd_signal.texi.
28456         * doc/pastposix-functions/bzero.texi: Renamed from
28457         doc/posix-functions/bzero.texi.
28458         * doc/pastposix-functions/ecvt.texi: Renamed from
28459         doc/posix-functions/ecvt.texi.
28460         * doc/pastposix-functions/fcvt.texi: Renamed from
28461         doc/posix-functions/fcvt.texi.
28462         * doc/pastposix-functions/ftime.texi: Renamed from
28463         doc/posix-functions/ftime.texi.
28464         * doc/pastposix-functions/gcvt.texi: Renamed from
28465         doc/posix-functions/gcvt.texi.
28466         * doc/pastposix-functions/getcontext.texi: Renamed from
28467         doc/posix-functions/getcontext.texi.
28468         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28469         doc/posix-functions/gethostbyaddr.texi.
28470         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28471         doc/posix-functions/gethostbyname.texi.
28472         * doc/pastposix-functions/getwd.texi: Renamed from
28473         doc/posix-functions/getwd.texi.
28474         * doc/pastposix-functions/h_errno.texi: Renamed from
28475         doc/posix-functions/h_errno.texi.
28476         * doc/pastposix-functions/index.texi: Renamed from
28477         doc/posix-functions/index.texi.
28478         * doc/pastposix-functions/makecontext.texi: Renamed from
28479         doc/posix-functions/makecontext.texi.
28480         * doc/pastposix-functions/mktemp.texi: Renamed from
28481         doc/posix-functions/mktemp.texi.
28482         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
28483         doc/posix-functions/pthread_attr_getstackaddr.texi.
28484         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
28485         doc/posix-functions/pthread_attr_setstackaddr.texi.
28486         * doc/pastposix-functions/rindex.texi: Renamed from
28487         doc/posix-functions/rindex.texi.
28488         * doc/pastposix-functions/scalb.texi: Renamed from
28489         doc/posix-functions/scalb.texi.
28490         * doc/pastposix-functions/setcontext.texi: Renamed from
28491         doc/posix-functions/setcontext.texi.
28492         * doc/pastposix-functions/swapcontext.texi: Renamed from
28493         doc/posix-functions/swapcontext.texi.
28494         * doc/pastposix-functions/ualarm.texi: Renamed from
28495         doc/posix-functions/ualarm.texi.
28496         * doc/pastposix-functions/usleep.texi: Renamed from
28497         doc/posix-functions/usleep.texi.
28498         * doc/pastposix-functions/vfork.texi: Renamed from
28499         doc/posix-functions/vfork.texi.
28500         * doc/pastposix-functions/wcswcs.texi: Renamed from
28501         doc/posix-functions/wcswcs.texi.
28502         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
28503         (Function Substitutes): Update.
28504
28505 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28506
28507         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28508         m4/strerror.m4.
28509
28510 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28511             Bruno Haible  <bruno@clisp.org>
28512
28513         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28514
28515 2008-12-13  Bruno Haible  <bruno@clisp.org>
28516
28517         * modules/strtoull (Depends-on): Remove unistd.
28518
28519 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28520
28521         * modules/strtoull (Depends-on): Add stdlib.
28522
28523 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28524
28525         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28526
28527 2008-12-10  Jim Meyering  <meyering@redhat.com>
28528
28529         gl_ASSERT: don't say assertions are disabled when they're not
28530         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28531         "checking whether to enable assertions... no", when they are in
28532         fact enabled.  This is solely a bug in the output of configure.
28533         In spite of saying "no", NDEBUG was not defined in that case.
28534         Also, as noted by Eric Blake, leave assertions enabled upon
28535         --enable-assert=INVALID.
28536
28537 2008-12-10  Bruno Haible  <bruno@clisp.org>
28538
28539         Change MODULES.html to refer to POSIX:2008 where possible.
28540         * MODULES.html.sh (POSIX2008_URL): New variable.
28541         (posix_headers): Remove sys/timeb, ucontext.
28542         (posix2001_headers): New variable.
28543         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28544         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28545         index, makecontext, mktemp, pthread_attr_getstackaddr,
28546         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28547         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28548         (posix2001_functions): New variable.
28549         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
28550         otherwise.
28551
28552 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28553
28554         add missing include to parse-duration.c
28555         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
28556         * modules/parse-duration (Depends-on): Add xalloc.
28557
28558         fix sed script reading maint.mk
28559         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
28560         (syntax-check-rules): Use it.
28561
28562 2008-12-09  Bruno Haible  <bruno@clisp.org>
28563
28564         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
28565         MacOS X 10.4/PowerPC.
28566         Reported by Simon Josefsson.
28567
28568 2008-12-08  Jim Meyering  <meyering@redhat.com>
28569
28570         work around mingw's lack of some S_IF definitions
28571         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
28572         Reported by Simon Josefsson.
28573
28574 2008-12-08  Bruno Haible  <bruno@clisp.org>
28575
28576         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
28577         applied to variables. Needed on MacOS X 10.4/PowerPC.
28578         Reported by Simon Josefsson.
28579
28580 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
28581         and Eric Blake  <ebb9@byu.net>
28582
28583         assert: honor --enable-assert
28584         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
28585         order to honor --enable-assert, rather than treating it as a
28586         synonym for --disable-assert.
28587
28588 2008-12-08  Jim Meyering  <meyering@redhat.com>
28589
28590         * lib/posixtm.c: Remove now-useless declaration of mktime.
28591
28592         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
28593
28594 2008-12-07  Bruno Haible  <bruno@clisp.org>
28595
28596         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
28597         test_once): Mark functions as static.
28598         * tests/test-tls.c (test_tls): Likewise.
28599
28600 2008-12-07  Bruno Haible  <bruno@clisp.org>
28601
28602         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
28603         iconv_register_autodetect.
28604
28605 2008-12-07  Jim Meyering  <meyering@redhat.com>
28606
28607         posixtm.c: avoid a warning
28608         * lib/posixtm.c (posixtime): Don't initialize tm0.
28609         It's no longer needed to placate gcc4's -Wuninitialized,
28610         and the attempt to placate would elicit a new warning.
28611
28612         unicodeio.c: mark unused parameters
28613         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28614         (fallback_failure_callback): Likewise.
28615
28616 2008-12-07  Bruno Haible  <bruno@clisp.org>
28617
28618         * gnulib-tool (func_create_testdir): When building the tests
28619         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
28620         Reported by Simon Josefsson.
28621
28622 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28623
28624         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
28625
28626 2008-12-06  Bruno Haible  <bruno@clisp.org>
28627
28628         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
28629         Suggested by Eric Blake.
28630
28631 2008-12-06  Bruno Haible  <bruno@clisp.org>
28632
28633         Fix a c-stack test failure on MacOS X.
28634         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
28635         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
28636         handler for SIGBUS as well.
28637         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
28638         install a signal handler for SIGBUS as well.
28639         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
28640
28641 2008-12-06  Bruno Haible  <bruno@clisp.org>
28642
28643         Advocacy documentation.
28644         * doc/gnulib-intro.texi (Benefits): New section.
28645         * doc/gnulib.texi: Update.
28646
28647 2008-12-06  Bruno Haible  <bruno@clisp.org>
28648
28649         Document the 'manywarnings' module.
28650         * doc/manywarnings.texi: New file.
28651         * doc/gnulib.texi: Include it.
28652
28653 2008-12-05  Eric Blake  <ebb9@byu.net>
28654
28655         tests: silence some gcc warnings
28656         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
28657         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28658         type mismatches.
28659
28660 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28661             Bruno Haible  <bruno@clisp.org>
28662
28663         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
28664
28665 2008-11-29  Jim Meyering  <meyering@redhat.com>
28666
28667         unicodeio.c: mark unused parameters
28668         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28669         (fallback_failure_callback): Likewise.
28670
28671         fts: fix a thinko
28672         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
28673         (set_stat_type): Return S_IF*-valued "type" directly.
28674         Prompted by James Youngman's spotting a related bug.
28675         Confirmed by further testing through find.
28676
28677         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
28678         * lib/fts.c (D_TYPE): Define.
28679         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
28680         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
28681         (s_ifmt_shift_bits): New function.
28682         (set_stat_type): New function.
28683         (fts_build): When not calling fts_stat, call set_stat_type
28684         to propagate dirent.d_type info to fts_read caller.
28685         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
28686         fts_statp->st_mode type information may be valid.
28687
28688 2008-11-28  Simon Josefsson  <simon@josefsson.org>
28689
28690         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
28691         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
28692         <sds@gnu.org>.
28693
28694 2008-11-20  Bruno Haible  <bruno@clisp.org>
28695
28696         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
28697         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
28698         INCLUDE_NEXT.
28699         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
28700         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
28701         * modules/math (Makefile.am): Substitute
28702         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
28703         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28704
28705 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28706             Bruno Haible  <bruno@clisp.org>
28707
28708         * lib/stdint.in.h: Define all type macros so that their expansion is
28709         a single typedef'ed token. Fixes a compilation failure in Boost which
28710         does "using ::int8_t;".
28711
28712 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28713
28714         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
28715         gl_MANYWARN_ALL_GCC.
28716         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
28717         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
28718         * modules/manywarnings: New file.
28719         * MODULES.html.sh: Mention manywarnings module.
28720
28721 2008-11-18  Bruno Haible  <bruno@clisp.org>
28722
28723         * doc/gnulib-tool.texi (Unit tests): New section.
28724
28725 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28726
28727         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
28728         paths like 'lib/po/foo.po'.
28729
28730 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28731
28732         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
28733         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
28734
28735 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28736
28737         * m4/warnings.m4: Use CPPFLAGS to really check whether the
28738         parameter works.
28739
28740 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28741
28742         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
28743
28744 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28745
28746         * modules/parse-duration-tests: New file.
28747         * tests/test-parse-duration.sh: New file.
28748         * tests/test-parse-duration.c: New file.
28749
28750         New module 'parse-duration'.
28751         * lib/parse-duration.h: New file.
28752         * lib/parse-duration.c: New file.
28753         * modules/parse-duration: New file.
28754
28755 2008-11-17  Bruno Haible  <bruno@clisp.org>
28756
28757         * tests/test-select-out.sh: Comment out the first pipe test.
28758         Reported by Simon Josefsson.
28759
28760 2008-11-17  Bruno Haible  <bruno@clisp.org>
28761
28762         * modules/getaddrinfo (Depends-on): Add servent, hostent.
28763         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
28764         gl_HOSTENT.
28765
28766 2008-11-17  Bruno Haible  <bruno@clisp.org>
28767
28768         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
28769         -lnetwork and -lnet. Needed for Haiku and BeOS.
28770
28771 2008-11-16  Bruno Haible  <bruno@clisp.org>
28772
28773         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
28774
28775 2008-11-16  Bruno Haible  <bruno@clisp.org>
28776
28777         Avoid test failure on Haiku.
28778         * tests/test-fsync.c: Include <errno.h>.
28779         (main): Don't require that fsync (0) fails.
28780
28781 2008-11-15  Bruno Haible  <bruno@clisp.org>
28782
28783         New module 'hostent'.
28784         * modules/hostent: New file.
28785         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
28786
28787 2008-11-15  Bruno Haible  <bruno@clisp.org>
28788
28789         New module 'servent'.
28790         * modules/servent: New file.
28791         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
28792
28793 2008-11-15  Bruno Haible  <bruno@clisp.org>
28794
28795         Avoid generating same test program with two different rules.
28796         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
28797         test-frexp to test-frexp-nolibm.
28798         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
28799         test-frexpl to test-frexpl-nolibm.
28800
28801 2008-11-15  Bruno Haible  <bruno@clisp.org>
28802
28803         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
28804         $(FREXPL_LIBM).
28805
28806 2008-11-15  Bruno Haible  <bruno@clisp.org>
28807
28808         * lib/netdb.in.h: Activate the definitions also when the system's
28809         <netdb.h> has 'struct addrinfo'.
28810         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
28811         EAI_OVERFLOW or AI_NUMERICSERV.
28812         * doc/posix-headers/netdb.texi: Document the problem.
28813
28814 2008-11-15  Bruno Haible  <bruno@clisp.org>
28815
28816         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
28817
28818         Make the 'sched' module work on platforms where <sched.h> exists but
28819         is incomplete (such as Haiku).
28820         * lib/sched.in.h; Include the system's <sched.h> if it exists.
28821         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
28822         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
28823         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
28824         HAVE_STRUCT_SCHED_PARAM.
28825         * modules/sched (Depends-on): Add include_next.
28826         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
28827         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
28828         * doc/posix-headers/sched.texi: Document the issue.
28829
28830 2008-11-13  Jim Meyering  <meyering@redhat.com>
28831
28832         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
28833         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
28834         test would fail due to the difference in the Report bugs to ...
28835         line.  The expected address is empty, "<>", while the actual
28836         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
28837
28838 2008-11-12  Bruno Haible  <bruno@clisp.org>
28839
28840         lstat: don't compile lstat.c on systems lacking lstat
28841         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
28842         which don't have lstat; this is handled by lib/sys_stat.in.h already.
28843         Reported by Daniel P. Berrange via Jim Meyering.
28844
28845 2008-11-12  Jim Meyering  <meyering@redhat.com>
28846
28847         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
28848
28849 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28850
28851         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
28852         instead.
28853
28854 2008-11-12  Bruno Haible  <bruno@clisp.org>
28855
28856         * lib/unicodeio.c: Include unistr.h.
28857         (utf8_wctomb): Remove function.
28858         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
28859
28860 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28861
28862         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
28863         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
28864         <bruno@clisp.org>.
28865         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
28866
28867 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28868
28869         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
28870         * doc/gnulib.texi: Add section for warnings.
28871
28872 2008-11-11  Bruno Haible  <bruno@clisp.org>
28873
28874         * lib/sockets.h: Add a comment.
28875
28876 2008-11-11  Karl Berry  <karl@gnu.org>
28877
28878         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
28879
28880 2008-11-11  Eric Blake  <ebb9@byu.net>
28881
28882         fdl.texi: avoid git symlinks
28883         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
28884
28885 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28886
28887         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
28888
28889 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28890
28891         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
28892         (gl_WARN_ADD): Substitute $2 if literal.
28893
28894 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28895
28896         * m4/warning.m4: Remove.
28897
28898 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28899
28900         * m4/warnings.m4: Almost complete rewrite. :-)
28901
28902 2008-11-10  Simon Josefsson  <simon@josefsson.org>
28903
28904         * modules/warnings: New module.
28905         * m4/warnings.m4: New file.
28906         * MODULES.html.sh: Mention warnings module.
28907         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
28908         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28909
28910 2008-11-10  Eric Blake  <ebb9@byu.net>
28911
28912         fdl.texi: make a symlink to the latest version
28913         * doc/standards.texi: Revert today's earlier change.
28914         * doc/fdl-1.2.texi: Rename from old fdl.texi...
28915         * doc/fdl.texi: ...and replace this with a symlink to the newer
28916         fdl-1.3.texi.
28917
28918 2008-11-10  Bruno Haible  <bruno@clisp.org>
28919
28920         * tests/test-select-fd.c (main): Accept the result file name as fourth
28921         argument.
28922         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
28923         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
28924
28925 2008-11-10  Bruno Haible  <bruno@clisp.org>
28926
28927         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
28928         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
28929         as autoconf-substituted macros.
28930         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
28931         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
28932         gl_NETDB_H_DEFAULTS. Set these variables.
28933         * modules/netdb (Makefile.am): Substitute these variables.
28934
28935 2008-11-10  Eric Blake  <ebb9@byu.net>
28936
28937         standards.texi: include correct file for FDL 1.3
28938         * doc/standards.texi (GNU Free Documentation License): Change
28939         include file to pull in FDL 1.3, not 1.2.
28940
28941         fdl.texi: revert accidental change to license
28942         * doc/fdl.texi: This is FDL 1.2, not 1.3.
28943
28944 2008-11-10  Bruno Haible  <bruno@clisp.org>
28945
28946         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
28947         cross-compiling guesses also when the native compile gives no result.
28948
28949 2008-11-10  Bruno Haible  <bruno@clisp.org>
28950
28951         * lib/spawni.c (__spawni): Force variable into the stack.
28952
28953 2008-11-10  Bruno Haible  <bruno@clisp.org>
28954
28955         Add support for Haiku.
28956         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
28957         glibc and BeOS, but also on Haiku.
28958         * lib/fpurge.c (fpurge): Likewise.
28959         * lib/freadable.c (freadable): Likewise.
28960         * lib/freadahead.c (freadahead): Likewise.
28961         * lib/freading.c (freading): Likewise.
28962         * lib/freadptr.c (freadptr): Likewise.
28963         * lib/freadseek.c (freadptrinc): Likewise.
28964         * lib/fseeko.c (rpl_fseeko): Likewise.
28965         * lib/fseterr.c (fseterr): Likewise.
28966         * lib/fwritable.c (fwritable): Likewise.
28967         * lib/fwriting.c (fwriting): Likewise.
28968         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
28969
28970 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28971
28972         * lib/config.charset: Treat Haiku like BeOS.
28973
28974 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28975
28976         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
28977         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
28978
28979 2008-11-08  Bruno Haible  <bruno@clisp.org>
28980
28981         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
28982         AC_CACHE_CHECK.
28983
28984 2008-11-08  Bruno Haible  <bruno@clisp.org>
28985
28986         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
28987
28988 2008-11-08  Bruno Haible  <bruno@clisp.org>
28989
28990         * tests/test-select-fd.c: New file.
28991         * tests/test-select-in.sh: New file.
28992         * tests/test-select-out.sh: New file.
28993         * tests/test-select-stdin.c: New file.
28994         * modules/select-tests (Files): Add the new files.
28995         (Depends-on): Add gettimeofday.
28996         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
28997         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
28998         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
28999
29000 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29001             Bruno Haible  <bruno@clisp.org>
29002
29003         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29004
29005 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29006
29007         * build-aux/pmccabe2html: Added support for C++ source files.
29008
29009 2008-11-05  Ben Pfaff  <blp@gnu.org>
29010
29011         Fix lib/close.c build on Windows.
29012         * modules/close (Files): Add lib/w32sock.h.
29013
29014 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29015
29016         Accept Bison's NEWS format.
29017         * build-aux/announce-gen (print_news_deltas): Tweak
29018         $re_prefix.
29019
29020 2008-11-04  Bruno Haible  <bruno@clisp.org>
29021
29022         * modules/random_r (Maintainer): Add glibc.
29023
29024 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29025
29026         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29027         by karl@freefriends.org (Karl Berry).
29028         * doc/alloca.texi: Likewise.
29029         * doc/c-ctype.texi: Likewise.
29030         * doc/c-strcase.texi: Likewise.
29031         * doc/c-strcaseeq.texi: Likewise.
29032         * doc/c-strcasestr.texi: Likewise.
29033         * doc/c-strstr.texi: Likewise.
29034         * doc/c-strtod.texi: Likewise.
29035         * doc/c-strtold.texi: Likewise.
29036         * doc/ctime.texi: Likewise.
29037         * doc/error.texi: Likewise.
29038         * doc/fdl.texi: Likewise.
29039         * doc/gcd.texi: Likewise.
29040         * doc/getdate.texi: Likewise.
29041         * doc/gnulib-intro.texi: Likewise.
29042         * doc/gnulib-tool.texi: Likewise.
29043         * doc/gnulib.texi: Likewise.
29044         * doc/inet_ntoa.texi: Likewise.
29045         * doc/maintain.texi: Likewise.
29046         * doc/make-stds.texi: Likewise.
29047         * doc/quote.texi: Likewise.
29048         * doc/regexprops-generic.texi: Likewise.
29049         * doc/standards.texi: Likewise.
29050         * doc/verify.texi: Likewise.
29051         * doc/visibility.texi: Likewise.
29052         * doc/gnulib.texi (GNU Free Documentation License): Include
29053         fdl-1.3.texi instead of fdl.texi.
29054
29055 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29056
29057         * doc/fdl-1.3.texi: New file, from
29058         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29059         * modules/fdl-1.3: Add.
29060         * MODULES.html.sh: Add fdl-1.3.
29061
29062 2008-11-03  Bruno Haible  <bruno@clisp.org>
29063
29064         Make determination of absolute name of header file work with AIX xlc.
29065         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29066         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29067         preprocessing.
29068         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29069         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29070
29071 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29072
29073         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29074         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29075         <ludo@gnu.org>.
29076
29077 2008-11-02  Bruno Haible  <bruno@clisp.org>
29078
29079         Mark 'strpbrk' obsolete.
29080         * modules/strpbrk (Status, Notice): New sections.
29081         * modules/strtok_r (Depends-on): Add strpbrk.
29082
29083 2008-11-02  Bruno Haible  <bruno@clisp.org>
29084
29085         Mark 'strdup' obsolete.
29086         * modules/strdup (Status, Notice): New sections.
29087         * modules/findprog (Depends-on): Add strdup.
29088         * modules/getaddrinfo (Depends-on): Likewise.
29089         * modules/localename (Depends-on): Likewise.
29090         * modules/relocatable-lib (Depends-on): Likewise.
29091         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29092         * modules/relocatable-prog (Depends-on): Likewise.
29093         * modules/trim (Depends-on): Likewise.
29094         * modules/unictype/gen-ctype (Depends-on): Likewise.
29095         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29096
29097 2008-11-02  Bruno Haible  <bruno@clisp.org>
29098
29099         Mark 'strcspn' obsolete.
29100         * modules/strcspn (Status, Notice): New sections.
29101
29102 2008-11-02  Bruno Haible  <bruno@clisp.org>
29103
29104         Mark 'rmdir' obsolete.
29105         * modules/rmdir (Status, Notice): New sections.
29106         * modules/clean-temp (Depends-on): Add rmdir.
29107         * modules/openat (Depends-on): Likewise.
29108
29109 2008-11-02  Bruno Haible  <bruno@clisp.org>
29110
29111         Mark 'raise' obsolete.
29112         * modules/raise (Status, Notice): New sections.
29113         (Include): Specify <signal.h>.
29114         * modules/stdio (Depends-on): Add raise.
29115         * modules/write (Depends-on): Likewise.
29116
29117 2008-11-02  Bruno Haible  <bruno@clisp.org>
29118
29119         Mark 'memset' obsolete.
29120         * modules/memset (Status, Notice): New sections.
29121
29122 2008-11-02  Bruno Haible  <bruno@clisp.org>
29123
29124         Mark 'memmove' obsolete.
29125         * modules/memmove (Status, Notice): New sections.
29126         * modules/argp (Depends-on): Add memmove.
29127         * modules/argz (Depends-on): Likewise.
29128         * modules/canonicalize (Depends-on): Likewise.
29129         * modules/canonicalize-lgpl (Depends-on): Likewise.
29130         * modules/fts (Depends-on): Likewise.
29131         * modules/getcwd (Depends-on): Likewise.
29132         * modules/human (Depends-on): Likewise.
29133         * modules/regex (Depends-on): Likewise.
29134         * modules/striconveh (Depends-on): Likewise.
29135         * modules/trim (Depends-on): Likewise.
29136         * modules/unistr/u8-move (Depends-on): Likewise.
29137         * modules/unistr/u16-move (Depends-on): Likewise.
29138         * modules/unistr/u32-move (Depends-on): Likewise.
29139
29140 2008-11-02  Bruno Haible  <bruno@clisp.org>
29141
29142         Mark 'memcpy' obsolete.
29143         * modules/memcpy (Status, Notice): New sections.
29144
29145 2008-11-02  Bruno Haible  <bruno@clisp.org>
29146
29147         Mark 'memcmp' obsolete.
29148         * modules/memcmp (Status, Notice): New sections.
29149         * modules/argmatch (Depends-on): Add memchr.
29150         * modules/backupfile (Depends-on): Likewise.
29151         * modules/c-strcasestr (Depends-on): Likewise.
29152         * modules/crypto/des (Depends-on): Likewise.
29153         * modules/csharpcomp (Depends-on): Likewise.
29154         * modules/fnmatch (Depends-on): Likewise.
29155         * modules/git-merge-changelog (Depends-on): Likewise.
29156         * modules/isnand (Depends-on): Likewise.
29157         * modules/isnand-nolibm (Depends-on): Likewise.
29158         * modules/isnanf (Depends-on): Likewise.
29159         * modules/isnanf-nolibm (Depends-on): Likewise.
29160         * modules/isnanl (Depends-on): Likewise.
29161         * modules/isnanl-nolibm (Depends-on): Likewise.
29162         * modules/mbchar (Depends-on): Likewise.
29163         * modules/memcoll (Depends-on): Likewise.
29164         * modules/quotearg (Depends-on): Likewise.
29165         * modules/regex (Depends-on): Likewise.
29166         * modules/relocatable-prog (Depends-on): Likewise.
29167         * modules/same (Depends-on): Likewise.
29168         * modules/signbit (Depends-on): Likewise.
29169         * modules/strcasestr-simple (Depends-on): Likewise.
29170         * modules/unictype/gen-ctype (Depends-on): Likewise.
29171         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29172         * modules/uniname/uniname (Depends-on): Likewise.
29173         * modules/unistr/u8-cmp (Depends-on): Likewise.
29174
29175 2008-11-02  Bruno Haible  <bruno@clisp.org>
29176
29177         Mark 'memchr' obsolete.
29178         * modules/memchr (Status, Notice): New sections.
29179         * modules/argp (Depends-on): Add memchr.
29180         * modules/base64 (Depends-on): Likewise.
29181         * modules/c-strcasestr (Depends-on): Likewise.
29182         * modules/chdir-long (Depends-on): Likewise.
29183         * modules/fnmatch (Depends-on): Likewise.
29184         * modules/getsubopt (Depends-on): Likewise.
29185         * modules/git-merge-changelog (Depends-on): Likewise.
29186         * modules/glob (Depends-on): Likewise.
29187         * modules/strcasestr-simple (Depends-on): Likewise.
29188         * modules/strnlen (Depends-on): Likewise.
29189
29190 2008-11-02  Bruno Haible  <bruno@clisp.org>
29191
29192         Mark 'atexit' obsolete.
29193         * modules/atexit (Status, Notice): New sections.
29194         * modules/chdir-long (Depends-on): Add atexit.
29195         * modules/wait-process (Depends-on): Likewise.
29196
29197 2008-11-02  Bruno Haible  <bruno@clisp.org>
29198
29199         * gnulib-tool: New option --with-obsolete.
29200         (func_usage): Document it.
29201         (func_modules_transitive_closure): Drop obsolete dependencies if
29202         incobsolete is not true.
29203         (func_import): Read and save the incobsolete variable to the cache.
29204
29205 2008-11-02  Bruno Haible  <bruno@clisp.org>
29206
29207         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29208         * gnulib-tool: New option --extract-status.
29209         (func_usage): Document it.
29210         (sed_extract_prog): Recognize it.
29211         (func_get_status): New function.
29212
29213 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29214
29215         * modules/sockets (License): Change from LGPL to LGPLv2+.
29216
29217 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29218
29219         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29220
29221 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29222
29223         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29224         Mention times and sys_times.
29225         * modules/sys_times, modules/sys_times-tests: New modules.
29226         * modules/times, modules/times-tests: Likewise
29227         * m4/sys_times_h.m4: New file.
29228         * lib/sys_times.in.h: Likewise
29229         * lib/times.c: Likewise.
29230         * tests/test-sys_times.c: Likewise.
29231         * tests/test-times.c: Likewise.
29232         * doc/posix-headers/sys_times.texi: Update.
29233         * doc/posix-functions/times.texi: Update.
29234
29235 2008-10-28  Jim Meyering  <meyering@redhat.com>
29236
29237         * modules/tempname (Depends-on): Add lstat.
29238
29239         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29240
29241 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29242
29243         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29244         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29245         using idiom used elsewhere in gnulib.
29246
29247 2008-10-27  Jim Meyering  <meyering@redhat.com>
29248
29249         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29250
29251 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29252
29253         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29254         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29255         programs.
29256         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29257
29258 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29259
29260         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29261
29262 2008-10-27  Bruno Haible  <bruno@clisp.org>
29263
29264         * tests/test-lstat.c: Include <stdio.h>.
29265
29266 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29267
29268         * modules/lstat-tests: New module.
29269         * tests/test-lstat.c: New file.
29270
29271 2008-10-26  Jim Meyering  <meyering@redhat.com>
29272
29273         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29274
29275 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29276             Bruno Haible  <bruno@clisp.org>
29277
29278         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29279         * modules/configmake (Include): Add a note that the include must come
29280         after all system headers.
29281         * lib/javaversion.c: Include configmake.h after all other includes.
29282
29283 2008-10-26  Bruno Haible  <bruno@clisp.org>
29284
29285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29286         HAVE_STRUCT_RANDOM_DATA to 1.
29287         (gl_STDLIB_H): Simplify.
29288
29289 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29290
29291         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29292         substitute HAVE_STRUCT_RANDOM_DATA.
29293         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29294         random_data.
29295         * modules/stdlib (Makefile.am): Substitute
29296         HAVE_STRUCT_RANDOM_DATA.
29297
29298 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29299
29300         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29301         * doc/gnulib-intro.texi (Copyright): Likewise.
29302
29303 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29304
29305         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29306         findings.
29307
29308 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29309             Bruno Haible  <bruno@clisp.org>
29310
29311         * lib/unistd.in.h: Include <winsock2.h>.
29312         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29313         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29314         Provide dummy declarations.
29315         (gethostname): Override.
29316         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29317         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29318         gl_PREREQ_SYS_H_WINSOCK2.
29319         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29320         * doc/posix-functions/gethostname.texi: More details.
29321
29322 2008-10-25  Bruno Haible  <bruno@clisp.org>
29323
29324         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29325         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29326         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29327
29328         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29329         here ...
29330         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29331         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29332         gl_UNISTD_H_DEFAULTS.
29333
29334 2008-10-25  Eric Blake  <ebb9@byu.net>
29335
29336         signbit: avoid spurious compiler failure
29337         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29338         declarations inside function.
29339
29340 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29341             Bruno Haible  <bruno@clisp.org>
29342
29343         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29344         * modules/random_r (Depends-on): Add stdint.
29345
29346 2008-10-24  Bruno Haible  <bruno@clisp.org>
29347
29348         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29349         Eggert.
29350         * modules/strerror (License): Likewise.
29351
29352 2008-10-24  Jim Meyering  <meyering@redhat.com>
29353
29354         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29355         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29356
29357 2008-10-24  Eric Blake  <ebb9@byu.net>
29358
29359         getgroups: fix compilation when getgroups is available
29360         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29361         but with <config.h> override of getgroups disabled.
29362
29363 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29364
29365         * doc/gnulib.texi (Header files): Add note about C++ problems.
29366         Explained by Bruno Haible <bruno@clisp.org>.
29367
29368 2008-10-23  Bruno Haible  <bruno@clisp.org>
29369
29370         Define a dummy SA_NODEFER macro on Interix.
29371         * lib/signal.in.h (SA_NODEFER): Define fallback.
29372         Reported by Aleksey Cheusov <cheusov@tut.by> via
29373         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29374
29375 2008-10-23  Bruno Haible  <bruno@clisp.org>
29376
29377         * modules/freadahead (License): Change to LGPLv2+.
29378         Suggested by Simon Josefsson.
29379
29380 2008-10-23  Jim Meyering  <meyering@redhat.com>
29381
29382         random_r: new module
29383         * modules/random_r: New file.
29384         * m4/random_r.m4: New file.
29385         * lib/random_r.c: New file, from glibc.
29386         * modules/random_r-tests: New file.
29387         * tests/test-random_r.c: New file.
29388         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29389          Declare.
29390         (RAND_MAX): Define.
29391         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29392         * modules/stdlib: Substitute them, too.
29393         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29394         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29395         * doc/glibc-functions/random_r.texi: Likewise.
29396         * doc/glibc-functions/setstate_r.texi: Likewise.
29397         * doc/glibc-functions/srandom_r.texi: Likewise.
29398         * config/srclist.txt: Mention it.
29399
29400 2008-10-23  David Lutterkort  <lutter@redhat.com>
29401
29402         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29403         link requirement
29404
29405 2008-10-23  Jim Meyering  <meyering@redhat.com>
29406
29407         selinux-h: mark parameters of stub functions as intentionally unused
29408         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29409         * lib/se-context.in.h: Likewise.
29410
29411 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29412
29413         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29414
29415 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29416
29417         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29418
29419 2008-10-22  Eric Blake  <ebb9@byu.net>
29420
29421         glthread/thread: avoid compiler warning
29422         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29423         Add unreachable abort to silence compiler.
29424
29425 2008-10-22  Eric Blake  <ebb9@byu.net>
29426
29427         netdb: also supply struct addrinfo for cygwin 1.5.x
29428         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29429         older cygwin.
29430         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29431         cygwin.
29432         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29433
29434 2008-10-22  Bruno Haible  <bruno@clisp.org>
29435
29436         * users.txt: Update entry about pspp.
29437
29438 2008-10-21  Bruno Haible  <bruno@clisp.org>
29439
29440         Simplification.
29441         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29442         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29443
29444         Simplification.
29445         * lib/ioctl.c (ioctl): Don't undefine.
29446         * lib/socket.c (socket): Don't undefine.
29447
29448         Remove unused module indicator macros.
29449         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29450         GNULIB_$1 as a C macro.
29451
29452         * doc/posix-functions/close.texi: Undo last change.
29453         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29454         Windows platforms.
29455
29456 2008-10-21  Bruno Haible  <bruno@clisp.org>
29457
29458         Add gethostname() declaration to <unistd.h>.
29459         * lib/unistd.in.h (gethostname): New declaration.
29460         * lib/gethostname.c: Include <unistd.h>.
29461         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29462         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29464         and HAVE_GETHOSTNAME.
29465         * modules/gethostname (Depends-on): Add unistd.
29466         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29467         (Include): Specify <unistd.h>.
29468         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29469         HAVE_GETHOSTNAME.
29470         * tests/test-gethostname.c: Include <unistd.h> first.
29471
29472 2008-10-21  Bruno Haible  <bruno@clisp.org>
29473
29474         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29475         * modules/select-tests (Depends-on): Likewise.
29476         Reported by Simon Josefsson.
29477
29478 2008-10-21  Simon Josefsson  <simon@josefsson.org>
29479
29480         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
29481         * lib/accept.c: New file, based on winsock.c.
29482         * lib/bind.c: New file, based on winsock.c.
29483         * lib/connect.c: New file, based on winsock.c.
29484         * lib/getpeername.c: New file, based on winsock.c.
29485         * lib/getsockname.c: New file, based on winsock.c.
29486         * lib/getsockopt.c: New file, based on winsock.c.
29487         * lib/ioctl.c: New file, based on winsock.c.
29488         * lib/listen.c: New file, based on winsock.c.
29489         * lib/recv.c: New file, based on winsock.c.
29490         * lib/recvfrom.c: New file, based on winsock.c.
29491         * lib/send.c: New file, based on winsock.c.
29492         * lib/sendto.c: New file, based on winsock.c.
29493         * lib/setsockopt.c: New file, based on winsock.c.
29494         * lib/shutdown.c: New file, based on winsock.c.
29495         * lib/socket.c: New file, based on winsock.c.
29496         * lib/w32sock.h: New file, based on winsock.c.
29497         * lib/winsock.c: Remove file.
29498         * modules/accept: Likewise.
29499         * modules/bind: Likewise.
29500         * modules/connect: Likewise.
29501         * modules/getpeername: Likewise.
29502         * modules/getsockname: Likewise.
29503         * modules/getsockopt: Likewise.
29504         * modules/ioctl: Likewise.
29505         * modules/listen: Likewise.
29506         * modules/recv: Likewise.
29507         * modules/recvfrom: Likewise.
29508         * modules/send: Likewise.
29509         * modules/sendto: Likewise.
29510         * modules/setsockopt: Likewise.
29511         * modules/shutdown: Likewise.
29512         * modules/socket: Use socket.c instead of winsock.c.
29513         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29514         * doc/posix-functions/accept.texi: Doc fix.
29515         * doc/posix-functions/bind.texi: Doc fix.
29516         * doc/posix-functions/close.texi: Doc fix.
29517         * doc/posix-functions/connect.texi: Doc fix.
29518         * doc/posix-functions/getpeername.texi: Doc fix.
29519         * doc/posix-functions/getsockname.texi: Doc fix.
29520         * doc/posix-functions/getsockopt.texi: Doc fix.
29521         * doc/posix-functions/ioctl.texi: Doc fix.
29522         * doc/posix-functions/listen.texi: Doc fix.
29523         * doc/posix-functions/recv.texi: Doc fix.
29524         * doc/posix-functions/recvfrom.texi: Doc fix.
29525         * doc/posix-functions/send.texi: Doc fix.
29526         * doc/posix-functions/sendto.texi: Doc fix.
29527         * doc/posix-functions/setsockopt.texi: Doc fix.
29528         * doc/posix-functions/shutdown.texi: Doc fix.
29529         * doc/posix-functions/socket.texi: Doc fix.
29530
29531 2008-10-20  Bruno Haible  <bruno@clisp.org>
29532
29533         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29534         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29535         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29536         as an alias for SIGABRT.
29537         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29538         (sigaction): Map it to SIGABRT.
29539         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29540
29541 2008-10-20  Bruno Haible  <bruno@clisp.org>
29542
29543         * lib/fts.c: Don't include lstat.h.
29544         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29545
29546         Move the lstat() declaration to <sys/stat.h>.
29547         * lib/lstat.h: Remove file.
29548         * lib/sys_stat.in.h: Add special invocation convention.
29549         (lstat): New declaration.
29550         * lib/lstat.c (orig_lstat): New function.
29551         (rpl_lstat): Use orig_lstat instead of lstat.
29552         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
29553         AC_C_INLINE. Set REPLACE_LSTAT.
29554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
29555         and REPLACE_LSTAT.
29556         * modules/lstat (Files): Remove lib/lstat.h.
29557         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29558         (Include): Specify <sys/stat.h> instead of lstat.h.
29559         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
29560         REPLACE_LSTAT.
29561         * NEWS: Mention the change.
29562
29563 2008-10-20  Bruno Haible  <bruno@clisp.org>
29564
29565         * modules/posix_spawn-tests: New file.
29566         * tests/test-posix_spawn3.c: New file.
29567
29568 2008-10-20  Bruno Haible  <bruno@clisp.org>
29569
29570         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
29571         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29572         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
29573         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29574         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
29575
29576 2008-10-20  Bruno Haible  <bruno@clisp.org>
29577
29578         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
29579         of posix_spawn on AIX 5.3.
29580
29581 2008-10-20  Bruno Haible  <bruno@clisp.org>
29582
29583         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
29584
29585 2008-10-20  Bruno Haible  <bruno@clisp.org>
29586
29587         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
29588         of AC_LANG_PROGRAM.
29589
29590 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29591
29592         * lib/netdb.in.h: Don't define GNU specific constants until they
29593         are supported or needed.  Reported by Bruno Haible
29594         <bruno@clisp.org>.
29595
29596 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29597
29598         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
29599
29600 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29601
29602         * lib/getaddrinfo.h: Remove file.
29603         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
29604         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
29605         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
29606         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
29607         * modules/netdb: Substitute GNULIB_GETADDRINFO.
29608         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
29609         * tests/test-getaddrinfo.c: Likewise.
29610         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
29611         * NEWS: Mention change.
29612
29613 2008-10-19  Bruno Haible  <bruno@clisp.org>
29614
29615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
29616
29617 2008-10-19  Bruno Haible  <bruno@clisp.org>
29618
29619         * lib/wait-process.c: Include simply <sys/wait.h>.
29620         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
29621         WIFSTOPPED): Remove fallback definitions.
29622         * modules/wait-process (Depends-on): Add sys_wait.
29623
29624         New module 'sys_wait'.
29625         * modules/sys_wait: New file.
29626         * lib/sys_wait.in.h: New file, partially copied from
29627         lib/wait-process.c.
29628         * m4/sys_wait_h.m4: New file.
29629         * doc/posix-headers/sys_wait.texi: Mention the new module.
29630
29631 2008-10-19  Bruno Haible  <bruno@clisp.org>
29632
29633         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
29634
29635 2008-10-19  Bruno Haible  <bruno@clisp.org>
29636
29637         Assume that waitpid() fills an 'int' status, not a 'union wait'.
29638         * lib/wait-process.c (WAIT_T): Remove type.
29639         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
29640         (wait_subprocess): Update.
29641
29642 2008-10-19  Bruno Haible  <bruno@clisp.org>
29643
29644         New module 'atoll'.
29645         * modules/atoll: New file.
29646         * lib/stdlib.in.h (atoll): New declaration.
29647         * lib/atoll.c: New file, from glibc with modifications.
29648         * m4/atoll.m4: New file.
29649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29650         HAVE_ATOLL.
29651         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
29652         * doc/posix-functions/atoll.texi: Mention the new module.
29653
29654 2008-10-19  Bruno Haible  <bruno@clisp.org>
29655
29656         Add strtoull() declaration to <stdlib.h>.
29657         * lib/stdlib.in.h (strtoull): New declaration.
29658         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29659         Set HAVE_STRTOULL.
29660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
29661         HAVE_STRTOULL.
29662         * modules/strtoull (Depends-on): Add stdlib.
29663         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29664         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
29665         HAVE_STRTOULL.
29666
29667 2008-10-19  Bruno Haible  <bruno@clisp.org>
29668
29669         Add strtoll() declaration to <stdlib.h>.
29670         * lib/stdlib.in.h (strtoll): New declaration.
29671         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29672         Set HAVE_STRTOLL.
29673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
29674         HAVE_STRTOLL.
29675         * modules/strtoll (Depends-on): Add stdlib.
29676         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29677         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
29678
29679 2008-10-19  Bruno Haible  <bruno@clisp.org>
29680
29681         * modules/bcopy (Depends-on): Add strings.
29682         (Include): Specify <strings.h>.
29683
29684 2008-10-19  Bruno Haible  <bruno@clisp.org>
29685
29686         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
29687
29688 2008-10-19  Bruno Haible  <bruno@clisp.org>
29689
29690         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
29691         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
29692         mingw.
29693
29694 2008-10-19  Bruno Haible  <bruno@clisp.org>
29695
29696         * lib/atanl.c: Don't include isnanl.h.
29697         * lib/cosl.c: Likewise.
29698         * lib/ldexpl.c: Likewise.
29699         * lib/logl.c: Likewise.
29700         * lib/sinl.c: Likewise.
29701         * lib/sqrtl.c: Likewise.
29702         * lib/tanl.c: Likewise.
29703
29704         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
29705         * lib/isnanf.h: Remove file.
29706         * lib/isnand.h: Remove file.
29707         * lib/isnanl.h: Remove file.
29708         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
29709         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
29710         macros.
29711         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
29712         HAVE_ISNANF, don't define it as a C macro.
29713         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
29714         HAVE_ISNAND, don't define it as a C macro.
29715         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
29716         HAVE_ISNANL, don't define it as a C macro.
29717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
29718         HAVE_ISNAN[FDL].
29719         * modules/isnanf (Files): Remove lib/isnanf.h.
29720         (Depends-on): Add math.
29721         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29722         (Include): Specify <math.h> instead of isnanf.h.
29723         * modules/isnand (Files): Remove lib/isnand.h.
29724         (Depends-on): Add math.
29725         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29726         (Include): Specify <math.h> instead of isnand.h.
29727         * modules/isnanl (Files): Remove lib/isnanl.h.
29728         (Depends-on): Add math.
29729         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29730         (Include): Specify <math.h> instead of isnanl.h.
29731         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
29732         HAVE_ISNAN[FDL].
29733         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
29734         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
29735         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
29736         * NEWS: Mention the change.
29737
29738 2008-10-18  Bruno Haible  <bruno@clisp.org>
29739
29740         Add getusershell(), setusershell(), endusershell() declarations to
29741         <unistd.h>.
29742         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
29743         declarations.
29744         * lib/getusershell.c: Include unistd.h.
29745         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
29746         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29747         HAVE_GETUSERSHELL.
29748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
29749         and HAVE_GETUSERSHELL.
29750         * modules/getusershell (Depends-on): Add unistd, extensions.
29751         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29752         (Include): Specify <unistd.h>.
29753         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
29754         HAVE_GETUSERSHELL.
29755
29756 2008-10-18  Bruno Haible  <bruno@clisp.org>
29757
29758         Add a getloadavg() declaration to <stdlib.h>.
29759         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
29760         getloadavg declaration.
29761         (getloadavg): New declaration.
29762         * lib/getloadavg.c: Include <stdlib.h> first.
29763         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
29764         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
29765         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
29766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
29767         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29768         * modules/getloadavg (Depends-on): Add stdlib, extensions.
29769         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29770         (Include): Specify <stdlib.h>.
29771         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
29772         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29773
29774 2008-10-18  Bruno Haible  <bruno@clisp.org>
29775
29776         * lib/dirchownmod.c: Don't include lchmod.h.
29777
29778         Move the lchmod() declaration to <sys/stat.h>.
29779         * lib/lchmod.h: Remove file.
29780         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
29781         (lchmod): New declaration, moved here from lib/lchown.h.
29782         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
29783         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
29784         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
29785         and HAVE_LCHMOD.
29786         * modules/lchmod (Files): Remove lib/lchmod.h.
29787         (Depends-on): Add sys_stat, extensions.
29788         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29789         (Include): Specify <sys/stat.h> instead of lchmod.h.
29790         * modules/sys_stat (Depends-on): Add link-warning.
29791         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
29792         definition of GL_LINK_WARNING.
29793         * NEWS: Mention the change.
29794
29795 2008-10-18  Bruno Haible  <bruno@clisp.org>
29796
29797         * lib/fchdir.c: Don't include dirfd.h.
29798         * lib/fts.c: Likewise.
29799         * lib/getcwd.c: Likewise.
29800         * lib/glob.c: Likewise.
29801
29802         Move the dirfd() declaration to <dirent.h>.
29803         * lib/dirfd.h: Remove file.
29804         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
29805         (dirfd): New declaration.
29806         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
29807         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
29808         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
29809         HAVE_DECL_DIRFD.
29810         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
29811         HAVE_DECL_DIRFD.
29812         * modules/dirfd (Files): Remove lib/dirfd.h.
29813         (Depends-on): Add dirent, extensions.
29814         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
29815         (Include): Specify <dirent.h> instead of dirfd.h.
29816         * modules/dirent (Depends-on): Add link-warning.
29817         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
29818         definition of GL_LINK_WARNING.
29819         * NEWS: Mention the change.
29820
29821 2008-10-18  Bruno Haible  <bruno@clisp.org>
29822
29823         Move the euidaccess() declaration to <unistd.h>.
29824         * lib/euidaccess.h: Remove file.
29825         * lib/unistd.in.h (euidaccess): New declaration.
29826         * lib/euidaccess.c: Don't include euidaccess.h.
29827         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
29828         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
29829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
29830         and HAVE_EUIDACCESS.
29831         * modules/euidaccess (Files): Remove lib/euidaccess.h.
29832         (Depends-on): Add unistd.
29833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29834         (Include): Specify <unistd.h> instead of euidaccess.h.
29835         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
29836         HAVE_EUIDACCESS.
29837         * NEWS: Mention the change.
29838
29839 2008-10-18  Bruno Haible  <bruno@clisp.org>
29840
29841         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
29842
29843         Move the getdomainname() declaration to <unistd.h>.
29844         * lib/getdomainname.h: Remove file.
29845         * lib/unistd.in.h (getdomainname): New declaration.
29846         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
29847         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29848         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29849         HAVE_GETDOMAINNAME.
29850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29851         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
29852         * modules/getdomainname (Files): Remove lib/getdomainname.h.
29853         (Depends-on): Add unistd, extensions.
29854         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29855         (Includes): Specify <unistd.h> instead of getdomainname.h.
29856         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
29857         HAVE_GETDOMAINNAME.
29858         * NEWS: Mention the change.
29859
29860 2008-10-18  Bruno Haible  <bruno@clisp.org>
29861
29862         * modules/dirent: New file.
29863         * m4/dirent_h.m4: New file.
29864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
29865         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
29866         * modules/fchdir (Files): Remove lib/dirent.in.h.
29867         (Depends-on): Add dirent.
29868         (Makefile.am): Move rules to modules/dirent.
29869         * doc/posix-headers/dirent.texi: Mention the new module.
29870
29871 2008-10-18  Bruno Haible  <bruno@clisp.org>
29872
29873         Avoid -Wunused-parameter warnings in public gnulib header files.
29874         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
29875         macro.
29876         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
29877
29878 2008-10-18  Bruno Haible  <bruno@clisp.org>
29879
29880         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
29881         * doc/glibc-functions/error.texi: Mention the module 'error'.
29882         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
29883         * doc/glibc-functions/getdomainname.texi: Mention the module
29884         'getdomainname'.
29885         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
29886         * doc/glibc-functions/getpagesize.texi: Mention the module
29887         'getpagesize'.
29888         * doc/glibc-functions/getusershell.texi: Mention the module
29889         'getusershell'.
29890         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
29891         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
29892         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
29893         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
29894         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
29895         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
29896         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
29897         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
29898         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
29899         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
29900         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
29901         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
29902         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
29903         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
29904
29905 2008-10-17  Bruno Haible  <bruno@clisp.org>
29906
29907         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
29908         HP-UX and IRIX, use -0.0L.
29909         * tests/test-ceill.c (minus_zero): Likewise.
29910         * tests/test-floorl.c (minus_zero): Likewise.
29911         * tests/test-frexpl.c (minus_zero): Likewise.
29912         * tests/test-isnan.c (minus_zerol): Likewise.
29913         * tests/test-isnanl.h (minus_zero): Likewise.
29914         * tests/test-ldexpl.c (minus_zero): Likewise.
29915         * tests/test-roundl.c (minus_zero): Likewise.
29916         * tests/test-signbit.c (minus_zerol): Likewise.
29917         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29918         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29919         * tests/test-truncl.c (minus_zero): Likewise.
29920         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29921         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29922         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
29923         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29924
29925 2008-10-17  Bruno Haible  <bruno@clisp.org>
29926
29927         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
29928         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
29929         that it gets activated only for gcc >= 3.0.
29930         * lib/dirent.in.h: Likewise.
29931         * lib/errno.in.h: Likewise.
29932         * lib/fcntl.in.h: Likewise.
29933         * lib/float.in.h: Likewise.
29934         * lib/iconv.in.h: Likewise.
29935         * lib/inttypes.in.h: Likewise.
29936         * lib/locale.in.h: Likewise.
29937         * lib/math.in.h: Likewise.
29938         * lib/netdb.in.h: Likewise.
29939         * lib/netinet_in.in.h: Likewise.
29940         * lib/search.in.h: Likewise.
29941         * lib/signal.in.h: Likewise.
29942         * lib/spawn.in.h: Likewise.
29943         * lib/stdarg.in.h: Likewise.
29944         * lib/stdint.in.h: Likewise.
29945         * lib/stdio.in.h: Likewise.
29946         * lib/stdlib.in.h: Likewise.
29947         * lib/string.in.h: Likewise.
29948         * lib/strings.in.h: Likewise.
29949         * lib/sys_file.in.h: Likewise.
29950         * lib/sys_ioctl.in.h: Likewise.
29951         * lib/sys_select.in.h: Likewise.
29952         * lib/sys_socket.in.h: Likewise.
29953         * lib/sys_stat.in.h: Likewise.
29954         * lib/sys_time.in.h: Likewise.
29955         * lib/sysexits.in.h: Likewise.
29956         * lib/time.in.h: Likewise.
29957         * lib/unistd.in.h: Likewise.
29958         * lib/wchar.in.h: Likewise.
29959         * lib/wctype.in.h: Likewise.
29960         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29961
29962 2008-10-17  Jim Meyering  <meyering@redhat.com>
29963
29964         ignore-value: don't depend on inline module
29965         * modules/ignore-value (Depends-on): Remove 'inline'.
29966         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
29967         Suggestion from Bruno Haible.
29968
29969 2008-10-17  Bruno Haible  <bruno@clisp.org>
29970
29971         New implementation of condition variables for Win32.
29972         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
29973         (gl_linked_waitqueue_t): New type.
29974         (gl_cond_t): Use it.
29975         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
29976         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
29977         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
29978         (glthread_cond_init_func, glthread_cond_wait_func,
29979         glthread_cond_timedwait_func, glthread_cond_signal_func,
29980         glthread_cond_broadcast_func, glthread_cond_destroy_func):
29981         Reimplemented on the basis of gl_linked_waitqueue_t.
29982         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
29983         gl_waitqueue_t.
29984         (gl_rwlock_t): Update.
29985         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
29986
29987 2008-10-17  Simon Josefsson  <simon@josefsson.org>
29988
29989         * modules/recvfrom (Depends-on): Add dependency on getpeername.
29990         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29991
29992 2008-10-17  Jim Meyering  <meyering@redhat.com>
29993
29994         ignore-value: new module
29995         * modules/ignore-value: New file.
29996         * lib/ignore-value.h: New file.
29997         * MODULES.html.sh (Compiler warning management): New section,
29998         just for this module.  More to come.
29999
30000 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30001
30002         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30003         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30004         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30005
30006 2008-10-16  Jim Meyering  <meyering@redhat.com>
30007
30008         openat-die.c: avoid 'no previous prototype' warning
30009         * lib/openat-die.c: Include "openat.h".
30010         Reported by Reuben Thomas <rrt@sc3d.org>.
30011
30012 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30013
30014         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30015         * lib/netdb.in.h: Fix typo.
30016         Reported by Bruno Haible  <bruno@clisp.org>
30017
30018         * lib/netdb.in.h: Include sys/socket.h for platforms without
30019         netdb.h, to get structures like hostent on MinGW.
30020         * modules/netdb (Depends-on): Add sys_socket.
30021
30022 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30023
30024         * modules/netdb, modules/netdb-tests: New file.
30025         * m4/netdb_h.m4: New file.
30026         * lib/netdb.in.h: Add, currently just an empty file pending
30027         definitions.
30028         * tests/test-netdb.c: New file.
30029         * doc/posix-headers/netdb.texi: Mention that we replace it if
30030         needed.
30031         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30032         netdb.
30033
30034 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30035
30036         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30037         with code.
30038
30039 2008-10-13  Bruno Haible  <bruno@clisp.org>
30040
30041         * lib/glthread/cond.c (glthread_cond_wait_func,
30042         glthread_cond_timedwait_func): Add a comment.
30043
30044 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30045
30046         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30047         * tests/test-select.c: Likewise,
30048
30049 2008-10-13  Bruno Haible  <bruno@clisp.org>
30050
30051         * lib/glthread/cond.c (glthread_cond_wait_func,
30052         glthread_cond_timedwait_func): Fix variable name.
30053         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30054
30055 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30056
30057         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30058         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30059         struct sockaddr.sa_len.
30060         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30061
30062 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30063
30064         * build-aux/pmccabe2html: Add css and css_url parameters.
30065
30066 2008-10-12  Bruno Haible  <bruno@clisp.org>
30067
30068         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30069         calling aclx_get.
30070         Reported by Rainer Tammer <tammer@tammer.net>.
30071
30072 2008-10-12  Bruno Haible  <bruno@clisp.org>
30073
30074         Use msvcrt aware primitives for creation/termination of Win32 threads.
30075         * lib/glthread/thread.c: Include <process.h>.
30076         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30077         (wrapper_func): Update signature.
30078         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30079
30080 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30081             Bruno Haible  <bruno@clisp.org>
30082
30083         Provide a Win32 implementation of the 'cond' module.
30084         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30085         * lib/glthread/cond.c (glthread_cond_init_func,
30086         glthread_cond_wait_func, glthread_cond_timedwait_func,
30087         glthread_cond_signal_func, glthread_cond_broadcast_func,
30088         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30089         * modules/cond (Dependencies): Add gettimeofday.
30090
30091 2008-10-11  Bruno Haible  <bruno@clisp.org>
30092
30093         Make sleep work on older versions of mingw.
30094         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30095         only whether it exists.
30096         * doc/posix-functions/sleep.texi: Mention the problem with older
30097         versions of mingw.
30098
30099 2008-10-11  Bruno Haible  <bruno@clisp.org>
30100
30101         New module 'shutdown'.
30102         * modules/shutdown: New file.
30103         * lib/sys_socket.in.h (shutdown): New declaration.
30104         * lib/winsock.c (shutdown): New function.
30105         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30106         GNULIB_SHUTDOWN.
30107         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30108         * doc/posix-functions/shutdown.texi: Document the new module.
30109
30110 2008-10-11  Jim Meyering  <meyering@redhat.com>
30111
30112         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30113
30114 2008-10-11  Bruno Haible  <bruno@clisp.org>
30115
30116         New module 'fclose'.
30117         * modules/fclose: New file.
30118         * lib/stdio.in.h (fclose): New declaration.
30119         * lib/fclose.c: New file.
30120         * m4/fclose.m4: New file.
30121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30122         REPLACE_FCLOSE.
30123         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30124         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30125         REPLACE_FCLOSE.
30126         * modules/close (Depends-on): fclose.
30127         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30128
30129 2008-10-11  Bruno Haible  <bruno@clisp.org>
30130
30131         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30132         set errno and don't call _close.
30133
30134 2008-10-10  Bruno Haible  <bruno@clisp.org>
30135
30136         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30137         ACL, not afterwards. Fixes test failure on Cygwin.
30138
30139 2008-10-09  Ben Pfaff  <blp@gnu.org>
30140
30141         * build-aux/announce-gen: Fix gnulib version related part of usage
30142         message.  Die with a useful error message if no tarballs are
30143         found.
30144
30145 2008-10-10  Jim Meyering  <meyering@redhat.com>
30146
30147         bootstrap: use git's --depth=N option only if it's supported
30148         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30149         recognize the --depth option.  Reported by Pádraig Brady.
30150
30151 2008-10-09  Bruno Haible  <bruno@clisp.org>
30152
30153         New module 'ioctl'.
30154         * modules/ioctl: New file.
30155         * lib/sys_socket.in.h (ioctl): Remove declaration.
30156         * lib/winsock.c: Include <sys/ioctl.h>.
30157         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30158         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30159         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30160         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30161         * doc/posix-functions/ioctl.texi: Mention the new module.
30162
30163 2008-10-09  Bruno Haible  <bruno@clisp.org>
30164
30165         New module 'sys_ioctl'.
30166         * lib/sys_ioctl.in.h: New file.
30167         * m4/sys_ioctl_h.m4: New file.
30168         * modules/sys_ioctl: New file.
30169         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30170
30171 2008-10-09  Bruno Haible  <bruno@clisp.org>
30172
30173         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30174         * lib/winsock.c: Include <stdarg.h>.
30175         (rpl_ioctl): Change to second argument 'int' and then varargs.
30176
30177 2008-10-09  Bruno Haible  <bruno@clisp.org>
30178
30179         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30180         when the sys_socket module is present and the system has <winsock2.h>.
30181
30182 2008-10-09  Bruno Haible  <bruno@clisp.org>
30183
30184         * doc/posix-functions/close.texi: Mention module 'close' instead of
30185         module 'sys_socket'.
30186
30187 2008-10-09  Bruno Haible  <bruno@clisp.org>
30188
30189         * doc/glibc-headers/sys_ioctl.texi: New file.
30190         * doc/gnulib.texi: Include it.
30191
30192 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30193             Bruno Haible  <bruno@clisp.org>
30194
30195         Combine the two replacements of 'close'.
30196         * lib/sys_socket.in.h (close): Define to a reminder to include
30197         <unistd.h>.
30198         (_gl_close_fd_maybe_socket): New declaration.
30199         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30200         * lib/winsock.c (close): Remove undefinition.
30201         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30202         needed for the gnulib module 'close'.
30203         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30204         define to an error symbol or to a warning, if suitable.
30205         * lib/close.c: Include <sys/socket.h>.
30206         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30207         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30208         UNISTD_H_HAVE_WINSOCK2_H.
30209         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30211         UNISTD_H_HAVE_WINSOCK2_H.
30212         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30213         (configure.ac): Set a module indicator.
30214         (Makefile.am): Substitute GNULIB_CLOSE.
30215         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30216         * modules/poll-tests (Depends-on): Add close.
30217         * modules/select-tests (Depends-on): Likewise.
30218
30219 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30220             Bruno Haible  <bruno@clisp.org>
30221
30222         New module 'close'.
30223         * modules/close: New file.
30224         * lib/unistd.in.h (close): Move declaration out of the
30225         FCHDIR_REPLACEMENT scope.
30226         (_gl_unregister_fd): New declaration.
30227         * lib/close.c: New file.
30228         * lib/fchdir.c (rpl_close): Remove function.
30229         * m4/close.m4: New file.
30230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30231         close.
30232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30233         REPLACE_CLOSE.
30234         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30235         REPLACE_CLOSE.
30236         * modules/fchdir (Depends-on): Add close.
30237
30238 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30239             Bruno Haible  <bruno@clisp.org>
30240
30241         * lib/fcntl.in.h (open): Simplify conditionals.
30242         (_gl_register_fd): New declaration.
30243         * lib/fchdir.c (rpl_open): Remove function.
30244         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30245         also.
30246         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30248         open.
30249
30250 2008-10-09  Jim Meyering  <meyering@redhat.com>
30251
30252         GNUmakefile: use the more name-space-friendly "_version"
30253         * top/GNUmakefile (_dummy): Update.
30254         (_version): Rename from "version".
30255
30256 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30257             Bruno Haible  <bruno@clisp.org>
30258
30259         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30260         rpl_close.
30261         (_gl_register_fd): New function, extracted from rpl_open.
30262         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30263         (rpl_open, rpl_opendir): Use _gl_register_fd.
30264
30265 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30266
30267         Fix organization of 'open' replacement.
30268         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30269         (gl_FUNC_OPEN): Use it.
30270         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30271
30272 2008-10-08  Bruno Haible  <bruno@clisp.org>
30273
30274         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30275
30276 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30277
30278         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30279         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30280         listen).
30281
30282 2008-10-08  Eric Blake  <ebb9@byu.net>
30283
30284         GNUmakefile: add 'make version' target
30285         * top/GNUmakefile (_curr-ver): Split version update rules...
30286         (version): ...into a target.
30287
30288 2008-10-07  Bruno Haible  <bruno@clisp.org>
30289
30290         Use a more portable replacement expression for -0.0L.
30291         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30292         instead of -0.0L. Fix m4 quotation.
30293
30294         * tests/test-signbit.c: Include <float.h>.
30295         (minus_zero): New variable.
30296         (test_signbitl): Use minus_zero instead of -zero.
30297         * modules/signbit-tests (Depends-on): Add float.
30298
30299         * tests/test-ceill.c: Include <float.h>.
30300         (zero): Remove variable.
30301         (minus_zero): New variable.
30302         (main): Use minus_zero instead of -zero.
30303         * modules/ceill-tests (Depends-on): Add float.
30304
30305         * tests/test-floorl.c: Include <float.h>.
30306         (zero): Remove variable.
30307         (minus_zero): New variable.
30308         (main): Use minus_zero instead of -zero.
30309         * modules/floorl-tests (Depends-on): Add float.
30310
30311         * tests/test-roundl.c: Include <float.h>.
30312         (zero): Remove variable.
30313         (minus_zero): New variable.
30314         (main): Use minus_zero instead of -zero.
30315         * modules/roundl-tests (Depends-on): Add float.
30316
30317         * tests/test-truncl.c: Include <float.h>.
30318         (zero): Remove variable.
30319         (minus_zero): New variable.
30320         (main): Use minus_zero instead of -zero.
30321         * modules/truncl-tests (Depends-on): Add float.
30322
30323         * tests/test-frexpl.c (zero): Remove variable.
30324         (minus_zero): New variable.
30325         (main): Use minus_zero instead of -zero.
30326         * modules/frexpl-tests (Depends-on): Add float.
30327
30328         * tests/test-isnan.c (zerol): Remove variable.
30329         (minus_zerol): New variable.
30330         (test_long_double): Use minus_zerol instead of -zerol.
30331         * modules/isnan-tests (Depends-on): Add float.
30332
30333         * tests/test-isnanl.h (zero): Remove variable.
30334         (minus_zero): New variable.
30335         (main): Use minus_zero instead of -zero.
30336         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30337         * modules/isnanl-tests (Depends-on): Add float.
30338
30339         * tests/test-ldexpl.c (zero): Remove variable.
30340         (minus_zero): New variable.
30341         (main): Use minus_zero instead of -zero.
30342         * modules/ldexpl-tests (Depends-on): Add float.
30343
30344         * tests/test-snprintf-posix.h (zerol): Remove variable.
30345         (minus_zerol): New variable.
30346         (test_function): Use minus_zerol instead of -zerol.
30347         * modules/snprintf-posix-tests (Depends-on): Add float.
30348         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30349
30350         * tests/test-sprintf-posix.h (zerol): Remove variable.
30351         (minus_zerol): New variable.
30352         (test_function): Use minus_zerol instead of -zerol.
30353         * modules/sprintf-posix-tests (Depends-on): Add float.
30354         * modules/vsprintf-posix-tests (Depends-on): Add float.
30355
30356         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30357         (minus_zerol): New variable.
30358         (test_function): Use minus_zerol instead of -zerol.
30359         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30360
30361         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30362         (minus_zerol): New variable.
30363         (test_function): Use minus_zerol instead of -zerol.
30364         * modules/vasprintf-posix-tests (Depends-on): Add float.
30365
30366 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30367
30368         * MODULES.html.sh (Support for building documentation): Mention
30369         pmccabe2html.  Sort entries.
30370
30371         Add pmccabe2html module, from gnupdf.
30372         * build-aux/pmccabe.css: New file.
30373         * build-aux/pmccabe2html: New file.
30374         * m4/pmccabe2html.m4: New file.
30375         * modules/pmccabe2html: New file.
30376
30377 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30378
30379         flock: new module
30380         * MODULES.html.sh: Add to list of modules.
30381         * lib/flock.c: flock implementation for Windows and Unix systems
30382         which have fcntl.
30383         * doc/glibc-functions/flock.texi: Update documentation.
30384         * lib/sys_file.in.h: <sys/file.h> header file.
30385         * m4/flock.m4: M4 macros.
30386         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30387         * modules/flock: flock module.
30388         * modules/flock-tests: flock tests module.
30389         * modules/sys_file: sys/file.h module.
30390         * tests/test-flock.c: test suite for flock.
30391
30392 2008-10-06  Jim Meyering  <meyering@redhat.com>
30393
30394         bootstrap: check for LT_INIT more portably still ;-)
30395         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30396         Spotted by Bruno Haible.
30397
30398 2008-10-06  Eric Blake  <ebb9@byu.net>
30399
30400         test-signbit: avoid tripping Irix cc bug on -0.0L
30401         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30402         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30403         entire testsuite consistent and avoids an Irix 6.2 bug.
30404
30405 2008-10-05  Bruno Haible  <bruno@clisp.org>
30406             Jim Meyering  <jim@meyering.net>
30407
30408         Add an option for ignoring EPIPE during close_stdout.
30409         * lib/closeout.h: Include <stdbool.h>.
30410         (close_stdout_set_ignore_EPIPE): New declaration.
30411         * lib/closeout.c: Include <stdbool.h>.
30412         (ignore_EPIPE): New variable.
30413         (close_stdout_set_ignore_EPIPE): New function.
30414         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30415         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30416         failure.
30417         * modules/closeout (Depends-on): Add stdbool.
30418
30419 2008-10-05  Bruno Haible  <bruno@clisp.org>
30420
30421         * modules/accept: New file.
30422         * modules/bind: New file.
30423         * modules/connect: New file.
30424         * modules/getpeername: New file.
30425         * modules/getsockname: New file.
30426         * modules/getsockopt: New file.
30427         * modules/listen: New file.
30428         * modules/recv: New file.
30429         * modules/recvfrom: New file.
30430         * modules/send: New file.
30431         * modules/sendto: New file.
30432         * modules/setsockopt: New file.
30433         * modules/socket: New file.
30434         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30435         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30436         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30437         the particular module is requested. Add a link warning when the
30438         particular module is not requested.
30439         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30440         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30441         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30442         the particular module is requested.
30443         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30444         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30445         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30446         * modules/sys_socket (Depends-on): Add link-warning.
30447         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30448         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30449         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30450         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30451         GL_LINK_WARNING.
30452         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30453         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30454         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30455         * doc/posix-functions/getpeername.texi: Mention the new module
30456         'getpeername'.
30457         * doc/posix-functions/getsockname.texi: Mention the new module
30458         'getsockname'.
30459         * doc/posix-functions/getsockopt.texi: Mention the new module
30460         'getsockopt'.
30461         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30462         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30463         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30464         * doc/posix-functions/send.texi: Mention the new module 'send'.
30465         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30466         * doc/posix-functions/setsockopt.texi: Mention the new module
30467         'setsockopt'.
30468         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30469         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30470         listen, connect, accept.
30471         * modules/select-tests (Depends-on): Likewise.
30472
30473 2008-10-05  Bruno Haible  <bruno@clisp.org>
30474
30475         * lib/winsock.c (strerror): Remove unused #undef.
30476         (rpl_close): Remove unused local variable.
30477
30478         * modules/sys_socket (Depends-on); Add errno.
30479
30480 2008-10-05  Bruno Haible  <bruno@clisp.org>
30481
30482         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
30483         (select): Add a link warning when the 'select' module is not used.
30484         * modules/sys_select (Depends-on): Add link-warning.
30485         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
30486         Suggested by Paolo Bonzini.
30487
30488 2008-10-05  Jim Meyering  <meyering@redhat.com>
30489
30490         bootstrap: check for LT_INIT more portably
30491         * build-aux/bootstrap: Avoid using grep -E, since it's not
30492         portable enough.  Suggestion from Bruno Haible.
30493
30494 2008-10-05  Bruno Haible  <bruno@clisp.org>
30495
30496         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
30497         as being fixed by gnulib.
30498
30499 2008-10-05  Bruno Haible  <bruno@clisp.org>
30500
30501         * modules/select-tests: New file, mostly copied from
30502         modules/sys_select-tests.
30503         * tests/test-select.c: New file, mostly copied from
30504         tests/test-sys_select.c.
30505         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30506         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30507         (Makefile.am): Remove test_sys_select_LDADD.
30508
30509         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30510         to an undefined symbol, for an error message.
30511         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30512         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30513         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30514         winsock-select.c here.
30515         * modules/sys_select (Files): Remove lib/winsock-select.c.
30516         (Depends-on): Remove alloca.
30517         (Makefile.am): Substitute GNULIB_SELECT.
30518         * modules/select: New file.
30519         * doc/posix-functions/select.texi: Update.
30520
30521 2008-10-05  Bruno Haible  <bruno@clisp.org>
30522
30523         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30524         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30525         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30526         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30527         getdtablesize.
30528         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30529         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30530
30531 2008-10-05  Bruno Haible  <bruno@clisp.org>
30532
30533         * modules/getdtablesize-tests: New file.
30534         * tests/test-getdtablesize.c: New file.
30535
30536         New module 'getdtablesize'.
30537         * lib/unistd.in.h (getdtablesize): New declaration.
30538         * lib/getdtablesize.c: New file.
30539         * m4/getdtablesize.m4: New file.
30540         * modules/getdtablesize: New file.
30541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30542         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30543         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30544         HAVE_GETDTABLESIZE.
30545         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30546
30547 2008-10-05  Bruno Haible  <bruno@clisp.org>
30548
30549         * modules/sched (Makefile.am): Fix typo.
30550         Reported by Simon Josefsson.
30551
30552 2008-10-05  Jim Meyering  <meyering@redhat.com>
30553
30554         bootstrap: check for LT_INIT, too
30555         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
30556         are deprecated.  Suggestion from Ralf Wildenhues.
30557
30558 2008-10-05  Bruno Haible  <bruno@clisp.org>
30559
30560         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
30561         overriding them by ours.
30562         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
30563
30564 2008-10-05  Jim Meyering  <meyering@redhat.com>
30565
30566         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
30567         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
30568         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
30569
30570 2008-10-04  Bruno Haible  <bruno@clisp.org>
30571
30572         * modules/dup2 (License): Change to LGPLv2+.
30573         * modules/sleep (License): Likewise.
30574         * modules/perror (License): Likewise.
30575         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
30576         Blake.
30577         * modules/signal (License): Likewise.
30578         * modules/sigprocmask (License): Likewise.
30579         * modules/raise (License): Change to LGPLv2+, with approval by Jim
30580         Meyering.
30581
30582 2008-10-04  Bruno Haible  <bruno@clisp.org>
30583
30584         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
30585         Reported by Rainer Tammer <tammer@tammer.net>.
30586
30587 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
30588             Bruno Haible  <bruno@clisp.org>
30589
30590         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
30591         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
30592         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
30593
30594 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
30595
30596         filevercmp: new module
30597         * lib/filevercmp.h: New function filevercmp comparing version strings.
30598         * lib/filevercmp.c: Implementation of filevercmp function.
30599         * modules/filevercmp: Module metadata.
30600         * tests/test-filevercmp.c: Unit test for new module.
30601         * modules/filevercmp-tests: Unit test metadata.
30602         * MODULES.html.sh: Add filevercmp module.
30603
30604 2008-10-03  Bruno Haible  <bruno@clisp.org>
30605
30606         * lib/c-ctype.h: Add comment.
30607         Reported by Jim Meyering.
30608
30609 2008-10-02  Bruno Haible  <bruno@clisp.org>
30610
30611         * modules/posix_spawn-internal (Depends-on): Add 'open'.
30612
30613 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30614
30615         * build-aux/bootstrap: Allow renaming bootstrap, and change the
30616         name of bootstrap.conf accordingly.
30617
30618 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30619
30620         * build-aux/bootstrap: Install git-merge-changelog configuration
30621         items into .gitconfig if needed.
30622
30623 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30624
30625         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
30626         git repository, and initialize/update it accordingly.
30627
30628 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
30629
30630         * modules/fsync-tests: New file.
30631         * tests/test-fsync.c: New file.
30632
30633         New module 'fsync'.
30634         * lib/fsync.c: New file.
30635         * m4/fsync.m4: New file.
30636         * modules/fsync: New file.
30637         * lib/unistd.in.h (fsync): New declaration.
30638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
30639         GNULIB_FSYNC and HAVE_FSYNC.
30640         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
30641         * MODULES.html.sh (posix_functions): Add fsync.
30642         * doc/posix-functions/fsync.texi: Mention the new module.
30643
30644 2008-10-02  Jim Meyering  <meyering@redhat.com>
30645
30646         fts.c: sync with similar code from coreutils' remove.c
30647         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
30648         Guard also with "#if defined __linux__", since for now at least,
30649         this code is Linux-kernel-specific.
30650
30651 2008-10-02  Jim Meyering  <meyering@redhat.com>
30652
30653         fts: bug fixes
30654         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
30655         Include <sys/vfs.h>, not <sys/statfs.h>.
30656
30657         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
30658         Include <sys/vfs.h>, not <sys/statfs.h>.
30659
30660 2008-10-01  Bruno Haible  <bruno@clisp.org>
30661
30662         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
30663         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
30664         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
30665         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
30666         * doc/posix-functions/posix_spawnp.texi: Likewise.
30667         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
30668         whether posix_spawn actually works.
30669         * m4/pipe.m4 (gl_PIPE): Likewise.
30670         * modules/execute (Files): Add m4/posix_spawn.m4.
30671         * modules/pipe (Files): Add m4/posix_spawn.m4.
30672         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
30673
30674 2008-10-01  Jim Meyering  <meyering@redhat.com>
30675
30676         remove trailing spaces
30677         * NEWS: Likewise.
30678         * lib/poll.c (poll): Likewise.
30679         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
30680         * lib/winsock.c (rpl_close): Likewise.
30681         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
30682         * modules/yield: Likewise.
30683         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
30684         * tests/test-sys_select.c (connect_to_socket): Likewise.
30685
30686         fts.c: adjust a new interface to be more generally useful
30687         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
30688         (fts_build): Adjust caller.
30689
30690 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30691
30692         * modules/cond-tests: New file.
30693         * tests/test-cond.c: New file.
30694
30695 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30696             Bruno Haible  <bruno@clisp.org>
30697
30698         * modules/cond (Dependencies): Add errno, time.
30699         * lib/glthread/cond.h: Include <time.h>.
30700         (gl_cond_define, gl_cond_define_initialized): Use the same definition
30701         across platforms.
30702
30703 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30704             Bruno Haible  <bruno@clisp.org>
30705
30706         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
30707
30708 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30709             Bruno Haible  <bruno@clisp.org>
30710
30711         * modules/tls-tests (Depends-on): Add thread, yield.
30712         (configure.ac): Remove all checks.
30713         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
30714         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30715         gl_thread_self): Remove definitions. Include glthread/thread.h and
30716         glthread/yield.h instead.
30717         (test_tls): Pass an additional NULL argument to gl_thread_join.
30718
30719 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30720             Bruno Haible  <bruno@clisp.org>
30721
30722         * modules/lock-tests (Depends-on): Add thread, yield.
30723         (configure.ac): Remove all checks.
30724         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
30725         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30726         gl_thread_self): Remove definitions. Include glthread/thread.h and
30727         glthread/yield.h instead.
30728         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
30729         additional NULL argument to gl_thread_join.
30730
30731 2008-09-30  Bruno Haible  <bruno@clisp.org>
30732
30733         Fix the Win32 implementation of the 'thread' module.
30734         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
30735         pointer type.
30736         (gl_thread_self): Invoke gl_thread_self_func.
30737         (gl_thread_self_func): New declaration.
30738         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
30739         (do_init_self_key, init_self_key): New functions.
30740         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
30741         Remove some fields.
30742         (running_threads, running_lock): Remove variables.
30743         (get_current_thread_handle): New function.
30744         (gl_thread_self_func, wrapper_func, glthread_create_func,
30745         glthread_join_func, gl_thread_exit_func): Largely rewritten and
30746         simplified.
30747
30748 2008-09-30  Bruno Haible  <bruno@clisp.org>
30749
30750         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
30751         files.
30752
30753 2008-09-30  Jim Meyering  <meyering@redhat.com>
30754
30755         fts.m4: correct the test for statfs.f_type
30756         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
30757         when checking for statfs.f_type.
30758
30759 2008-09-15  Simon Josefsson  <simon@josefsson.org>
30760
30761         tests: avoid some compiler warnings
30762         * tests/test-memchr.c (main): Pass NULL indirectly.
30763         * tests/test-getdate.c (main): Remove unused variable 'ret'.
30764
30765 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
30766
30767         getdate.y: disallow countable dayshifts like "4 yesterday ago"
30768         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
30769         exactly specified dayshifts.
30770         (dayshift): New rule.
30771         (rel): Add dayshift.
30772         (relative_time_table) [tomorrow, yesterday, today, now]:
30773         Use tDAY_SHIFT in place of tDAY_UNIT.
30774         * tests/test-getdate.c: Add tests for now-disallowed countable
30775         dayshifts, e.g., "4 yesterday ago".
30776
30777 2008-09-29  Bruno Haible  <bruno@clisp.org>
30778
30779         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
30780         * tests/test-posix_spawn1.in.sh: Renamed from
30781         tests/test-posix_spawn.in.sh.
30782         * tests/test-posix_spawn2.c: New file.
30783         * tests/test-posix_spawn2.in.sh: New file.
30784         * modules/posix_spawnp-tests (Files): Update.
30785         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
30786
30787 2008-09-29  Bruno Haible  <bruno@clisp.org>
30788
30789         Propagate effects of putenv/setenv/unsetenv to child processes.
30790         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
30791         * lib/pipe.c (create_pipe): Likewise.
30792
30793 2008-09-29  Bruno Haible  <bruno@clisp.org>
30794
30795         Enable use of shell scripts as executables in mingw.
30796         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
30797         run the program as a shell script.
30798         * lib/pipe.c (create_pipe): Likewise.
30799         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
30800         resulting array.
30801
30802 2008-09-29  Eric Blake  <ebb9@byu.net>
30803
30804         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
30805
30806 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
30807
30808         * doc/posix-functions/accept.texi: Update mingw problems.
30809         * doc/posix-functions/bind.texi: Update mingw problems.
30810         * doc/posix-functions/close.texi: Update mingw problems.
30811         * doc/posix-functions/connect.texi: Update mingw problems.
30812         * doc/posix-functions/getpeername.texi: Update mingw problems.
30813         * doc/posix-functions/getsockname.texi: Update mingw problems.
30814         * doc/posix-functions/getsockopt.texi: Update mingw problems.
30815         * doc/posix-functions/ioctl.texi: Update mingw problems.
30816         * doc/posix-functions/listen.texi: Update mingw problems.
30817         * doc/posix-functions/recv.texi: Update mingw problems.
30818         * doc/posix-functions/recvfrom.texi: Update mingw problems.
30819         * doc/posix-functions/select.texi: Update mingw problems.
30820         * doc/posix-functions/send.texi: Update mingw problems.
30821         * doc/posix-functions/sendto.texi: Update mingw problems.
30822         * doc/posix-functions/setsockopt.texi: Update mingw problems.
30823         * doc/posix-functions/socket.texi: Update mingw problems.
30824
30825 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
30826             Bruno Haible  <bruno@clisp.org>
30827
30828         * lib/sys_select.in.h: Include sys/time.h.
30829         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
30830         * modules/sys_select: Depend on sys_time.
30831         * tests/test-sys_select.c: Test that sys/select.h defines struct
30832         timeval fully.
30833
30834 2008-09-29  Bruno Haible  <bruno@clisp.org>
30835
30836         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
30837         * lib/sys_select.in.h: Likewise.
30838
30839 2008-09-29  Bruno Haible  <bruno@clisp.org>
30840
30841         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
30842
30843 2008-09-29  Bruno Haible  <bruno@clisp.org>
30844
30845         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
30846         Set LIBSOCKET instead of augmenting LIBS.
30847         * modules/sockets (Link): New section.
30848         * modules/sockets-tests (test_sockets_LDADD): New variable.
30849         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
30850         * modules/poll-tests (test_poll_LDADD): New variable.
30851         * NEWS: Document the change.
30852
30853 2008-09-29  Bruno Haible  <bruno@clisp.org>
30854
30855         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
30856         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
30857         ARPA_INET_H directly.
30858         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30859
30860 2008-09-28  Bruno Haible  <bruno@clisp.org>
30861
30862         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
30863         from gl_HEADER_SYS_SOCKET.
30864         (gl_HEADER_SYS_SOCKET): Invoke it.
30865         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30866
30867 2008-09-28  Bruno Haible  <bruno@clisp.org>
30868
30869         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
30870         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
30871         Needed on OSF/1 4.0.
30872
30873 2008-09-28  Bruno Haible  <bruno@clisp.org>
30874
30875         Override open more carefully.
30876         * lib/open.c (orig_open): New function.
30877         (rpl_open): Use orig_open instead of open.
30878         * lib/fcntl.in.h: Add special invocation convention.
30879         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
30880         (gl_FUNC_OPEN): Invoke it.
30881
30882         Override freopen more carefully.
30883         * lib/freopen.c (orig_freopen): New function.
30884         (rpl_freopen): Use orig_freopen instead of freopen.
30885         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
30886         (gl_FUNC_FREOPEN): Invoke it.
30887
30888         Override fopen more carefully.
30889         * lib/fopen.c (orig_fopen): New function.
30890         (rpl_fopen): Use orig_fopen instead of fopen.
30891         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
30892         (gl_FUNC_FOPEN): Invoke it.
30893         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
30894
30895 2008-09-28  Bruno Haible  <bruno@clisp.org>
30896
30897         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
30898         SIGPIPE.
30899
30900 2008-09-28  Bruno Haible  <bruno@clisp.org>
30901
30902         * tests/test-sigaction.c (handler, main): Disable the check whether
30903         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
30904         glibc systems with LinuxThreads.
30905
30906 2008-09-28  Bruno Haible  <bruno@clisp.org>
30907
30908         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
30909
30910         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
30911         with AIX xlc.
30912         * lib/fcntl.in.h (open): Likewise.
30913         Reported by Rainer Tammer <tammer@tammer.net>.
30914
30915 2008-09-28  Bruno Haible  <bruno@clisp.org>
30916
30917         * modules/posix_spawnp-tests: New file.
30918         * tests/test-posix_spawn.c: New file.
30919         * tests/test-posix_spawn.in.sh: New file.
30920
30921         New module 'posix_spawnp'.
30922         * modules/posix_spawnp: New file.
30923         * lib/spawnp.c: New file, from GNU libc with modifications.
30924         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
30925
30926         New module 'posix_spawn'.
30927         * modules/posix_spawn: New file.
30928         * lib/spawn.c: New file, from GNU libc with modifications.
30929         * doc/posix-functions/posix_spawn.texi: Mention the new module.
30930
30931         New module 'posix_spawnattr_destroy'.
30932         * modules/posix_spawnattr_destroy: New file.
30933         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
30934         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
30935         module.
30936
30937         New module 'posix_spawnattr_setsigmask'.
30938         * modules/posix_spawnattr_setsigmask: New file.
30939         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
30940         modifications.
30941         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
30942         new module.
30943
30944         New module 'posix_spawnattr_getsigmask'.
30945         * modules/posix_spawnattr_getsigmask: New file.
30946         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
30947         modifications.
30948         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
30949         new module.
30950
30951         New module 'posix_spawnattr_setsigdefault'.
30952         * modules/posix_spawnattr_setsigdefault: New file.
30953         * lib/spawnattr_setdefault.c: New file, from GNU libc with
30954         modifications.
30955         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
30956         new module.
30957
30958         New module 'posix_spawnattr_getsigdefault'.
30959         * modules/posix_spawnattr_getsigdefault: New file.
30960         * lib/spawnattr_getdefault.c: New file, from GNU libc with
30961         modifications.
30962         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
30963         new module.
30964
30965         New module 'posix_spawnattr_setschedpolicy'.
30966         * modules/posix_spawnattr_setschedpolicy: New file.
30967         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
30968         modifications.
30969         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
30970         new module.
30971
30972         New module 'posix_spawnattr_getschedpolicy'.
30973         * modules/posix_spawnattr_getschedpolicy: New file.
30974         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
30975         modifications.
30976         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
30977         new module.
30978
30979         New module 'posix_spawnattr_setschedparam'.
30980         * modules/posix_spawnattr_setschedparam: New file.
30981         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
30982         modifications.
30983         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
30984         new module.
30985
30986         New module 'posix_spawnattr_getschedparam'.
30987         * modules/posix_spawnattr_getschedparam: New file.
30988         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
30989         modifications.
30990         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
30991         new module.
30992
30993         New module 'posix_spawnattr_setpgroup'.
30994         * modules/posix_spawnattr_setpgroup: New file.
30995         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
30996         modifications.
30997         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
30998         module.
30999
31000         New module 'posix_spawnattr_getpgroup'.
31001         * modules/posix_spawnattr_getpgroup: New file.
31002         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31003         modifications.
31004         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31005         module.
31006
31007         New module 'posix_spawnattr_setflags'.
31008         * modules/posix_spawnattr_setflags: New file.
31009         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31010         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31011         module.
31012
31013         New module 'posix_spawnattr_getflags'.
31014         * modules/posix_spawnattr_getflags: New file.
31015         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31016         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31017         module.
31018
31019         New module 'posix_spawnattr_init'.
31020         * modules/posix_spawnattr_init: New file.
31021         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31022         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31023         module.
31024
31025         New module 'posix_spawn_file_actions_destroy'.
31026         * modules/posix_spawn_file_actions_destroy: New file.
31027         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31028         modifications.
31029         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31030         the new module.
31031
31032         New module 'posix_spawn_file_actions_addopen'.
31033         * modules/posix_spawn_file_actions_addopen: New file.
31034         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31035         modifications.
31036         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31037         the new module.
31038
31039         New module 'posix_spawn_file_actions_adddup2'.
31040         * modules/posix_spawn_file_actions_adddup2: New file.
31041         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31042         modifications.
31043         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31044         the new module.
31045
31046         New module 'posix_spawn_file_actions_addclose'.
31047         * modules/posix_spawn_file_actions_addclose: New file.
31048         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31049         modifications.
31050         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31051         the new module.
31052
31053         New module 'posix_spawn_file_actions_init'.
31054         * modules/posix_spawn_file_actions_init: New file.
31055         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31056         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31057         new module.
31058
31059         New module 'posix_spawn-internal'.
31060         * modules/posix_spawn-internal: New file.
31061         * lib/spawn_int.h: New file, from GNU libc with modifications.
31062         * lib/spawni.c: New file, from GNU libc with modifications.
31063         * m4/posix_spawn.m4: New file.
31064
31065         New module 'spawn'.
31066         * modules/spawn: New file.
31067         * lib/spawn.in.h: New file, from GNU libc with modifications.
31068         * m4/spawn_h.m4: New file.
31069         * doc/posix-headers/spawn.texi: Mention the new module.
31070
31071 2008-09-28  Bruno Haible  <bruno@clisp.org>
31072
31073         * modules/sched-tests: New file.
31074         * tests/test-sched.c: New file.
31075
31076         New module 'sched'.
31077         * modules/sched: New file.
31078         * lib/sched.in.h: New file.
31079         * m4/sched_h.m4: New file.
31080         * doc/posix-headers/sched.texi: Mention the new module.
31081
31082 2008-09-27  Eric Blake  <ebb9@byu.net>
31083
31084         Fix previous patch, and tweak references to $0.
31085         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31086         (func_version, func_gnulib_dir): Don't call this program
31087         gnulib-tool.
31088         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31089         with using $0 in function.
31090         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31091         (func_fatal_error): Reuse the name the user invoked us with.
31092
31093 2008-09-27  Bruno Haible  <bruno@clisp.org>
31094
31095         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31096         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31097         (gl_ICONV_H): Not here.
31098         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31099         instead of assigning ICONV_H directly.
31100
31101         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31103         WCHAR_H directly.
31104
31105 2008-09-27  Bruno Haible  <bruno@clisp.org>
31106
31107         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31108         * modules/arpa_inet (Depends-on): Add link-warning.
31109         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31110         * modules/unistd (Makefile.am): Likewise.
31111
31112 2008-09-26  Bruno Haible  <bruno@clisp.org>
31113
31114         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31115         variables.
31116         (func_version): Essentially copied from gnulib-tool.
31117         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31118         func_readlink): Copied from gnulib-tool.
31119
31120 2008-09-26  Bruno Haible  <bruno@clisp.org>
31121
31122         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31123         invoking git-version-gen.
31124
31125 2008-09-26  Bruno Haible  <bruno@clisp.org>
31126
31127         * posix-modules: Update to directory names changed on 2008-01-19.
31128         Remove commas in output before splitting into words. No more need to
31129         avoid 'ftruncate' since 2007-02-19.
31130
31131 2008-09-26  Bruno Haible  <bruno@clisp.org>
31132
31133         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31134
31135 2008-09-26  Bruno Haible  <bruno@clisp.org>
31136
31137         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31138         * modules/fwriteerror (Depends-on): Add errno.
31139
31140 2008-09-26  Bruno Haible  <bruno@clisp.org>
31141
31142         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31143         * tests/test-vc-list-files-cvs.sh: Likewise.
31144
31145 2008-09-26  Bruno Haible  <bruno@clisp.org>
31146
31147         * doc/posix-headers/sys_resource.texi: Reorder items.
31148
31149 2008-09-26  Jim Meyering  <meyering@redhat.com>
31150
31151         fts: tweak inode comparison function
31152         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31153         inode numbers, as documented.
31154
31155         fts: sort dirent entries on inode number before traversing
31156         This avoids a quadratic, seek-related performance penalty when
31157         operating on a directory containing many entries (measurable at 10k;
31158         3.5 hours at 2 million entries with a cold cache) on certain types
31159         of file systems, including ext3 and ext4, but not tmpfs.
31160         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31161         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31162         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31163         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31164         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31165         (fts_build): Set the stat.st_ino member from D_INO.
31166         If it is likely to be useful, sort dirent entries on inode number.
31167
31168         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31169         and the struct statfs.f_type member.
31170         * modules/fts (Depends-on): Add d-ino.
31171
31172 2008-09-26  Bruno Haible  <bruno@clisp.org>
31173
31174         * modules/sigpipe-die (Depends-on): Add sigpipe.
31175
31176         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31177         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31178         and GNULIB_STDIO_H_SIGPIPE are set.
31179         * lib/stdio-write.c: New file.
31180         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31181         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31182         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31183         REPLACE_STDIO_WRITE_FUNCS.
31184         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31185         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31186         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31187         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31188         * modules/stdio (Files): Add lib/stdio-write.c.
31189         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31190         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31191         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31192         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31193         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31194         REPLACE_FPRINTF_POSIX.
31195         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31196         REPLACE_PRINTF_POSIX.
31197         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31198         REPLACE_VFPRINTF_POSIX.
31199         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31200         REPLACE_VPRINTF_POSIX.
31201         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31202         SIGPIPE issue.
31203         * doc/posix-functions/fputc.texi: Likewise.
31204         * doc/posix-functions/fputs.texi: Likewise.
31205         * doc/posix-functions/fwrite.texi: Likewise.
31206         * doc/posix-functions/printf.texi: Likewise.
31207         * doc/posix-functions/putc.texi: Likewise.
31208         * doc/posix-functions/putchar.texi: Likewise.
31209         * doc/posix-functions/puts.texi: Likewise.
31210         * doc/posix-functions/vfprintf.texi: Likewise.
31211         * doc/posix-functions/vprintf.texi: Likewise.
31212
31213         * modules/safe-write (Depends-on): Add write.
31214
31215         * modules/sigpipe-tests: New file.
31216         * tests/test-sigpipe.c: New file.
31217         * tests/test-sigpipe.sh: New file.
31218
31219         * modules/write: New file.
31220         * lib/unistd.in.h: Include <sys/types.h>.
31221         (write): New declaration.
31222         * lib/write.c: New file.
31223         * m4/write.m4: New file.
31224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31225         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31226         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31227         GNULIB_WRITE, REPLACE_WRITE.
31228         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31229         and the SIGPIPE issue.
31230
31231         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31232         (raise): New declaration.
31233         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31234         (ext_signal): New function.
31235         (rpl_raise): New function.
31236         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31237         GNULIB_SIGNAL_H_SIGPIPE.
31238         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31239         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31240
31241         * modules/sigpipe: New file.
31242         * m4/sigpipe.m4: New file.
31243
31244 2008-09-25  Derek Price  <derek@ximbiot.com>
31245             Bruno Haible  <bruno@clisp.org>
31246
31247         * gnulib-tool (func_import): Report all license incompatibilities, not
31248         just the first one.
31249
31250 2008-09-25  Bruno Haible  <bruno@clisp.org>
31251
31252         * gnulib-tool (func_import): When computing the edits, consider not
31253         only the Makefile.ams that exist but also those that will be generated.
31254
31255 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31256
31257         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31258         fixes gnulib-tool --test warning about duplicate dependency.
31259
31260 2008-09-25  Bruno Haible  <bruno@clisp.org>
31261
31262         * gnulib-tool: Don't ask the user to perform edits in the generated
31263         Makefile.ams.
31264         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31265         apply to the Makefile.am being generated.
31266         (func_emit_tests_Makefile_am): Execute edits that apply to the
31267         Makefile.am being generated.
31268         (func_import): Setup list of Makefile.am edits before emitting the
31269         Makefile.ams, not at the end.
31270         (func_create_testdir): Update.
31271         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31272
31273 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31274
31275         * gnulib-tool (func_import): Store the --tests-base option in the
31276         comment in gnulib-cache.m4.
31277
31278 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31279
31280         * NEWS: Document increased portability that sys_select now provides.
31281
31282         * lib/sys_select.in.h: Install select wrapper.
31283         * lib/sys_socket.in.h: Use more descriptive name when there is no
31284         select wrapper.
31285         * lib/winsock-select.c: New.
31286         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31287         Require gl_HEADER_SYS_SOCKET.
31288         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31289         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31290         * tests/test-sys_select.c: Add functional tests.
31291
31292 2008-09-24  Eric Blake  <ebb9@byu.net>
31293
31294         open, fopen: close fd leak in last patch
31295         * lib/open.c (rpl_open): Close fd before returning error.
31296         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31297         * doc/posix-functions/open.texi (open): Document that Irix also
31298         has the bug.
31299         * doc/posix-functions/fopen.texi (fopen): Likewise.
31300         Reported by Paolo Bonzini.
31301
31302 2008-09-24  Bruno Haible  <bruno@clisp.org>
31303
31304         Ensure that a filename ending in a slash cannot be used to access a
31305         non-directory.
31306         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31307         to check whether it's really a directory.
31308         * lib/fopen.c: Include fcntl.h, unistd.h.
31309         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31310         and fdopen().
31311         * modules/fopen (Depends-on): Add unistd.
31312         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31313         * tests/test-fopen.c (main): Likewise.
31314         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31315         * doc/posix-functions/fopen.texi: Likewise.
31316         Reported by Eric Blake.
31317
31318 2008-09-23  Eric Blake  <ebb9@byu.net>
31319
31320         c-stack: avoid compiler optimizations when provoking overflow
31321         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31322         recursion harder to optimize, to ensure a stack overflow occurs.
31323         * tests/test-c-stack.c (recurse): Likewise.
31324         Borrowed from libsigsegv.
31325
31326         c-stack: work around Irix sigaltstack bug
31327         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31328         whether sigaltstack uses wrong end of stack_t (copied in part from
31329         libsigsegv).
31330         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31331         Irix bug, without requiring an over-allocation.
31332         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31333         bug.
31334
31335         fopen: document mingw bug on directories
31336         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31337         not allowing a stream visiting a directory, even though reading
31338         from such a stream is not portable.
31339
31340 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31341
31342         * lib/poll.c: Rewrite.
31343         * modules/poll: Depend on alloca.
31344
31345 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31346
31347         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31348         instead define prototypes for a full set of wrappers.  Ensure
31349         that Cygwin does not use the compatibility code, which is only
31350         for MinGW.
31351         * lib/winsock.c: New.
31352         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31353         * modules/sys_socket: Add lib/winsock.c.
31354
31355         * modules/poll-tests: Add errno and perror.
31356         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31357
31358 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31359
31360         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31361
31362 2008-09-23  Bruno Haible  <bruno@clisp.org>
31363
31364         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31365         * doc/glibc-functions/*: Likewise.
31366
31367 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31368
31369         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31370         success.
31371
31372 2008-09-22  Eric Blake  <ebb9@byu.net>
31373             Bruno Haible  <bruno@clisp.org>
31374
31375         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31376         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31377         supply %A but mishandle pseudo-NaN.
31378         Reported by Simon Josefsson.
31379
31380 2008-09-21  Bruno Haible  <bruno@clisp.org>
31381
31382         * tests/test-lock.c (main): Tweak skip message.
31383         * tests/test-tls.c (main): Likewise.
31384
31385 2008-09-21  Bruno Haible  <bruno@clisp.org>
31386
31387         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31388         whether 'struct sigaction' has sa_sigaction here...
31389         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31390         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31391
31392 2008-09-21  Bruno Haible  <bruno@clisp.org>
31393
31394         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31395         section.
31396         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31397         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31398         the new section.
31399         (Support for obsolete systems lacking POSIX:2001): New section.
31400         (String handling <string.h>): Move strdup to the new section.
31401         Suggested by Simon Josefsson and Paolo Bonzini.
31402
31403 2008-09-21  Bruno Haible  <bruno@clisp.org>
31404
31405         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31406         exponents in %e and %g results on 'long double'. Needed for mingw's
31407         improved *printf functions.
31408         * tests/test-vasprintf-posix.c (test_function): Likewise.
31409         * tests/test-snprintf-posix.h (test_function): Likewise.
31410         * tests/test-sprintf-posix.h (test_function): Likewise.
31411         Reported by Eric Blake.
31412
31413 2008-09-21  Bruno Haible  <bruno@clisp.org>
31414
31415         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31416         * tests/test-sprintf-posix.h (test_function): Likewise.
31417
31418 2008-09-21  Bruno Haible  <bruno@clisp.org>
31419
31420         * modules/getpass (Depends-on): Add strdup-posix.
31421
31422         New module 'strdup-posix'.
31423         * modules/strdup-posix: New file.
31424         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31425         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31427         REPLACE_STRDUP.
31428         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31429         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31430         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31431         strdup-posix.
31432
31433         * modules/strdup (Depends-on): Remove malloc-posix.
31434
31435 2008-09-20  Bruno Haible  <bruno@clisp.org>
31436
31437         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31438         Wildenhues.
31439
31440 2008-09-20  Bruno Haible  <bruno@clisp.org>
31441
31442         Ensure that wint_t gets defined on IRIX 5.3.
31443         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31444         * lib/wctype.in.h (wint_t): Likewise.
31445         (__wctype_wint_t): Remove type.
31446         (isw*): Use wint_t instead of __wctype_wint_t.
31447         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31448         * modules/wchar (Files): Add m4/wint_t.m4.
31449         (Makefile.am): Substitute HAVE_WINT_T.
31450         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31451         * tests/test-wctype.c: Check that wint_t is defined.
31452         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31453         * doc/posix-headers/wctype.texi: Likewise.
31454         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31455
31456 2008-09-18  Bruno Haible  <bruno@clisp.org>
31457
31458         * gnulib-tool (func_exit): Update comment.
31459
31460 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31461
31462         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31463         assumes strdup exists and does not depend on strdup to return
31464         ENOMEM on out of memory conditions.
31465
31466 2008-09-18  Bruno Haible  <bruno@clisp.org>
31467
31468         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
31469         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31470         digits for the exponent.
31471
31472 2008-09-18  Jim Meyering  <meyering@redhat.com>
31473             Bruno Haible  <bruno@clisp.org>
31474
31475         * lib/vasnprintf.c (decimal_point_char): Define also if
31476         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31477
31478 2008-09-16  Bruno Haible  <bruno@clisp.org>
31479         and Eric Blake  <ebb9@byu.net>
31480
31481         vasnprintf: support Irix 5.3
31482         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
31483         that mishandle long double infinity.
31484         Reported by Tom G. Christensen.
31485
31486 2008-09-16  Bruno Haible  <bruno@clisp.org>
31487
31488         * doc/glibc-functions/scandir.texi: Mention the function is missing on
31489         Solaris 9.
31490         * doc/glibc-functions/alphasort.texi: Likewise.
31491         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
31492
31493 2008-09-16  Jim Meyering  <meyering@redhat.com>
31494
31495         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
31496         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
31497         a umask modification leak out of a subshell.  Otherwise, the
31498         opensolaris /bin/sh would be accepted and thus cause unwarranted
31499         failures in the coreutils test suite.
31500
31501 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
31502
31503         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31504         to succeed.
31505
31506 2008-09-16  Jim Meyering  <meyering@redhat.com>
31507
31508         avoid spurious test failure when library is built without ACL support
31509         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31510         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31511         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31512         * tests/test-copy-acl.sh: Likewise.
31513
31514 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31515
31516         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31517         based on character occurrence counts.
31518
31519 2008-09-15  Eric Blake  <ebb9@byu.net>
31520
31521         tests: avoid some compiler warnings
31522         * tests/test-memchr.c (main): Pass NULL indirectly.
31523         * tests/test-closein.c (main): Avoid unused variable.
31524
31525 2008-09-15  Bruno Haible  <bruno@clisp.org>
31526
31527         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31528         are missing on OpenBSD 4.0 individually.
31529         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31530
31531 2008-09-15  Bruno Haible  <bruno@clisp.org>
31532
31533         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31534         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31535         * doc/posix-functions/perror.texi: Likewise.
31536         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31537         is missing.
31538         Reported by Eric Blake.
31539
31540         * lib/errno.in.h: Use replacement values >= 2000.
31541         Reported by Eric Blake.
31542
31543 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31544
31545         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31546         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31547         limit.
31548         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31549         compareseq was aborted.
31550
31551 2008-09-14  Bruno Haible  <bruno@clisp.org>
31552
31553         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
31554         yvec_edit_count.
31555         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
31556         (fstrcmp_bounded): Simplify result computation accordingly.
31557
31558 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31559
31560         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
31561         (fstrcmp): Define in terms of fstrcmp_bounded.
31562         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
31563         lower_bound argument.
31564         Return quickly if the result is certainly < lower_bound.
31565         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
31566
31567 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31568
31569         * lib/diffseq.h (EARLY_ABORT): New macro.
31570         (compareseq): Change return type to bool. Return true when EARLY_ABORT
31571         evaluates to true.
31572
31573 2008-09-14  Bruno Haible  <bruno@clisp.org>
31574
31575         * modules/perror-tests: New file.
31576         * tests/test-perror.sh: New file.
31577         * tests/test-perror.c: New file.
31578
31579         New module 'perror'.
31580         * lib/stdio.in.h (perror): New declaration.
31581         * lib/perror.c: New file.
31582         * m4/perror.m4: New file.
31583         * modules/perror: New file.
31584         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
31585         * doc/posix-functions/perror.texi: Mention the perror module.
31586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
31587         REPLACE_PERROR.
31588         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
31589         REPLACE_PERROR.
31590
31591 2008-09-14  Bruno Haible  <bruno@clisp.org>
31592
31593         * modules/stdio (Makefile.am): Reorder to match the order in
31594         lib/stdio.in.h.
31595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31596
31597 2008-09-13  Bruno Haible  <bruno@clisp.org>
31598
31599         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
31600
31601 2008-09-13  Bruno Haible  <bruno@clisp.org>
31602
31603         Extend strerror to cover the added errno values.
31604         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
31605         (rpl_strerror): Provide error messages for the added errno values and
31606         for the WSA* values.
31607         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
31608         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
31609         strerror.
31610         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
31611         * modules/strerror (Depends-on): Add errno.
31612         * doc/posix-functions/strerror.texi: Document the change.
31613         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
31614         and EOVERFLOW.
31615
31616 2008-09-13  Bruno Haible  <bruno@clisp.org>
31617
31618         * modules/EOVERFLOW: Remove file.
31619         * m4/eoverflow.m4: Remove file.
31620         * modules/EOVERFLOW-tests: Remove file.
31621         * tests/test-EOVERFLOW.c: Remove file.
31622         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
31623         * modules/ftell (Depends-on): Likewise.
31624         * modules/getdelim (Depends-on): Likewise.
31625         * modules/getugroups (Depends-on): Likewise.
31626         * modules/poll (Depends-on): Likewise.
31627         * modules/snprintf (Depends-on): Likewise.
31628         * modules/sprintf-posix (Depends-on): Likewise.
31629         * modules/vasnprintf (Depends-on): Likewise.
31630         * modules/vasprintf (Depends-on): Likewise.
31631         * modules/vfprintf-posix (Depends-on): Likewise.
31632         * modules/vsnprintf (Depends-on): Likewise.
31633         * modules/vsprintf-posix (Depends-on): Likewise.
31634         * modules/xvasprintf (Depends-on): Likewise.
31635         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31636         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
31637         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
31638         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
31639         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31640         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
31641         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
31642         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
31643         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31644         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
31645         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
31646         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
31647         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31648         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
31649         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
31650         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
31651         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31652         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
31653         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
31654         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
31655         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31656         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
31657         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
31658         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
31659         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
31660         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31661         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
31662         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
31663         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
31664         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
31665         * MODULES.html.sh: Remove EOVERFLOW.
31666         * NEWS: Mention the change.
31667
31668 2008-09-13  Bruno Haible  <bruno@clisp.org>
31669
31670         * modules/errno-tests: New file.
31671         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
31672
31673         * lib/errno.in.h: New file.
31674         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
31675         * modules/errno: New file.
31676         * doc/posix-headers/errno.texi: Update documentation.
31677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
31678
31679 2008-09-13  Bruno Haible  <bruno@clisp.org>
31680
31681         * tests/test-poll.c: Use #if for native Windows, rather than testing
31682         __MSVCRT__.
31683
31684 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31685             Bruno Haible  <bruno@clisp.org>
31686
31687         * lib/glob.c: Don't include <pwd.h> on native Windows.
31688         (WINDOWS32): New macro.
31689         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
31690
31691 2008-09-13  Bruno Haible  <bruno@clisp.org>
31692
31693         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
31694         (ETIMEDOUT): Remove macro.
31695         (glthread_cond_timedwait_multithreaded): New declaration.
31696         (glthread_cond_timedwait): Use it.
31697         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
31698         (glthread_cond_timedwait_multithreaded): New function.
31699
31700 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31701
31702         * modules/poll-tests: Do not check for io.h.
31703         * tests/test-poll.c: Check for __MSVCRT__ instead.
31704
31705 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31706
31707         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
31708         * modules/poll-tests: Add inet_pton, stdbool, sockets.
31709         * tests/test-poll.c: Use them.  Use _pipe on Windows.
31710
31711 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31712
31713         * modules/poll-tests: New.
31714         * tests/test-poll.c: New.
31715
31716 2008-09-12  Eric Blake  <ebb9@byu.net>
31717
31718         frexp: test for NetBSD failure on -0.0
31719         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
31720         not all, bugs from NetBSD 3.0 have been fixed.
31721         * doc/posix-functions/frexp.texi (frexp): Document bug.
31722         Reported by Thomas Klausner.
31723
31724         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
31725         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
31726         literal -0.0.
31727         Reported by Jonathan C. Patschke <jp@centtech.com>.
31728
31729 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31730
31731         * lib/glthread/cond.h: Use dummy implementation also if
31732         USE_WIN32_THREADS.
31733
31734 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31735
31736         * modules/fnmatch-posix (License): Change to LGPLv2+.
31737         * modules/fnmatch-gnu (License): Likewise.
31738
31739 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31740
31741         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
31742
31743 2008-09-11  Jim Meyering  <meyering@redhat.com>
31744
31745         * users.txt: Add gtk-vnc.
31746
31747 2008-09-08  Simon Josefsson  <simon@josefsson.org>
31748
31749         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
31750         rotate amounts.
31751
31752         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
31753         required for 16-bit and 8-bit rotates.
31754         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
31755         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
31756         UINT8_MAX instead of hard-coded constants.
31757         Suggested by Paul Eggert.
31758
31759 2008-09-07  Bruno Haible  <bruno@clisp.org>
31760
31761         * tests/test-striconveh.c (main): Check behaviour when converting from
31762         UTF-7.
31763
31764         Make striconveh work better with stateful encodings.
31765         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
31766         that iconv does not increment the inptr when returning -1/EINVAL.
31767
31768 2008-09-07  Bruno Haible  <bruno@clisp.org>
31769
31770         * build-aux/config.rpath: Update according to libtool-2.2.6.
31771         * build-aux/config.libpath: Likewise.
31772
31773 2008-09-06  Bruno Haible  <bruno@clisp.org>
31774
31775         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
31776         * lib/freadptr.c (freadptr): Likewise.
31777         * lib/freadseek.c (freadptrinc): Likewise.
31778         Reported by Simon Josefsson.
31779
31780 2008-09-06  Bruno Haible  <bruno@clisp.org>
31781
31782         * modules/freadptr (License): Change to LGPLv2+.
31783         * modules/freadseek (License): Likewise.
31784         Suggested by Eric Blake.
31785
31786         * modules/memchr2 (License): Change to LGPLv2+.
31787         Approved by Eric Blake.
31788
31789 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31790             Bruno Haible  <bruno@clisp.org>
31791
31792         Make gnulib-tool work with native 'sed' on AIX.
31793         * gnulib-tool (sed_noop): New variable.
31794         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
31795         func_add_or_update, func_create_testdir): Use it to initialize sed
31796         script variables.
31797         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31798
31799 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
31800             Bruno Haible  <bruno@clisp.org>
31801
31802         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
31803         also works after #include directives.
31804
31805 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
31806
31807         getdate.y: reject an out-of-range timezone value
31808         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
31809         the range [-24...+24].  When specified with only one or two digits,
31810         * tests/test-getdate.c: Tests for the fix.
31811         * doc/getdate.texi: Document this change.
31812
31813 2008-09-03  Bruno Haible  <bruno@clisp.org>
31814
31815         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
31816
31817 2008-09-02  Simon Josefsson  <simon@josefsson.org>
31818
31819         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
31820         <bruce.korb@gmail.com> with ideas from Ben Pfaff
31821         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
31822         Blake <ebb9@byu.net>.
31823
31824         * tests/test-bitrotate.c: Add more test vectors.
31825
31826 2008-09-02  Eric Blake  <ebb9@byu.net>
31827
31828         vasnprintf-posix: handle large precision via %.*d
31829         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
31830         when handling it ourselves.
31831         * tests/test-vasnprintf-posix.c (test_function): Add test.
31832         * tests/test-snprintf-posix.h (test_function): Likewise.
31833         * tests/test-sprintf-posix.h (test_function): Likewise.
31834         * tests/test-vasprintf-posix.c (test_function): Likewise.
31835         Reported by Alain Guibert.
31836
31837 2008-09-01  Eric Blake  <ebb9@byu.net>
31838
31839         c-stack: make configure-time check more robust
31840         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
31841         successful sigaction call.
31842         Reported by Tom G. Christensen.
31843
31844 2008-09-01  Bruno Haible  <bruno@clisp.org>
31845
31846         New module 'findprog-lgpl'.
31847         * modules/findprog-lgpl: New file.
31848         * lib/findprog-lgpl.c: New file.
31849         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
31850         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
31851         to decide whether to use strdup or xstrdup, concatenated_filename or
31852         xconcatenated_filename.
31853
31854 2008-09-01  Bruno Haible  <bruno@clisp.org>
31855
31856         Split module 'concat-filename' into 'concat-filename' (LGPL) and
31857         'xconcat-filename' (GPL).
31858         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
31859         (License): Change to LGPLv2+.
31860         * modules/xconcat-filename: New file.
31861         * lib/concat-filename.h (concatenated_filename): Change specification.
31862         (xconcatenated_filename): New declaration.
31863         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
31864         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
31865         memory situations.
31866         * lib/xconcat-filename.c: New file.
31867         * NEWS: Mention the change.
31868         * lib/findprog.c: Include concat-filename.h, not filename.h.
31869         (find_in_path): Use xconcatenated_filename instead of
31870         concatenated_filename.
31871         * lib/javacomp.c: Include concat-filename.h, not filename.h.
31872         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31873         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31874         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31875         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
31876         instead of concatenated_filename.
31877         * lib/javaexec.c: Include concat-filename.h, not filename.h.
31878         (execute_java_class): Use xconcatenated_filename instead of
31879         concatenated_filename.
31880         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
31881         * modules/javacomp (Depends-on): Likewise.
31882         * modules/javaexec (Depends-on): Likewise.
31883
31884 2008-09-01  Bruno Haible  <bruno@clisp.org>
31885
31886         Split module 'filename' into 'filename' and 'concat-filename'.
31887         * modules/filename: Keep only lib/filename.h.
31888         (License): Change to LGPLv2+.
31889         * modules/concat-filename: New file, extracted from modules/filename.
31890         * lib/filename.h (concatenated_filename): Remove declaration.
31891         * lib/concat-filename.h: New file, extracted from lib/filename.h.
31892         * lib/concat-filename.c: Include concat-filename.h.
31893         * NEWS: Mention the change.
31894
31895 2008-09-01  Simon Josefsson  <simon@josefsson.org>
31896
31897         * lib/bitrotate.h (rotl8, rotr8): Add.
31898
31899         * modules/bitrotate (configure.ac): Need
31900         AC_REQUIRE([AC_C_INLINE]).
31901         (Description): Mention stdint.h.  Reported by Bruno Haible
31902         <bruno@clisp.org>.
31903
31904         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
31905         Paolo Bonzini <bonzini@gnu.org>.
31906
31907 2008-08-31  Bruno Haible  <bruno@clisp.org>
31908
31909         Assume Solaris specific bi-arch conventions on Solaris systems.
31910         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
31911         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
31912         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
31913         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
31914         like acl_libdirstem.
31915         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
31916         acl_libdirstem.
31917         * NEWS: Mention the change.
31918         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
31919
31920 2008-08-31  Jim Meyering  <meyering@redhat.com>
31921
31922         * lib/strftime.h: Add comments describing the two added arguments.
31923
31924         remove duplicate #include directives
31925         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
31926         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
31927
31928 2008-08-31  Bruno Haible  <bruno@clisp.org>
31929
31930         New module 'sigpipe-die'.
31931         * modules/sigpipe-die: New file.
31932         * lib/sigpipe-die.h: New file.
31933         * lib/sigpipe-die.c: New file.
31934         * MODULES.html.sh (Signal handling): Add sigpipe-die.
31935
31936 2008-08-31  Bruno Haible  <bruno@clisp.org>
31937
31938         Don't override previously installed signal handlers.
31939         * lib/fatal-signal.c (saved_sigactions): New variable.
31940         (uninstall_handlers): Reset the signal to the saved handler, not
31941         to SIG_DFL (except when ignored).
31942         (install_handlers): Save the previous handlers.
31943
31944 2008-08-30  Bruno Haible  <bruno@clisp.org>
31945
31946         * gnulib-tool (func_reset_sigpipe): New function.
31947         (func_get_automake_snippet, func_modules_transitive_closure,
31948         func_import): Invoke it before a join command that reads from stdin,
31949         to avoid "echo: write error: Broken pipe" error messages on stderr.
31950         Reported by Sam Steingold <sds@gnu.org>.
31951
31952 2008-08-30  Bruno Haible  <bruno@clisp.org>
31953
31954         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
31955         Code copied from m4/open.m4.
31956         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
31957         access and the filename ends in a slash. Code copied from lib/open.c.
31958         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
31959         * tests/test-fopen.c (main): Check against bug with trailing slash.
31960
31961 2008-08-29  Bruno Haible  <bruno@clisp.org>
31962
31963         Avoid some "gcc -pedantic" warnings.
31964         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
31965         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
31966         * lib/dirent.in.h: Likewise.
31967         * lib/fcntl.in.h: Likewise.
31968         * lib/float.in.h: Likewise.
31969         * lib/iconv.in.h: Likewise.
31970         * lib/inttypes.in.h: Likewise.
31971         * lib/locale.in.h: Likewise.
31972         * lib/math.in.h: Likewise.
31973         * lib/netinet_in.in.h: Likewise.
31974         * lib/search.in.h: Likewise.
31975         * lib/signal.in.h: Likewise.
31976         * lib/stdarg.in.h: Likewise.
31977         * lib/stdint.in.h: Likewise.
31978         * lib/stdio.in.h: Likewise.
31979         * lib/stdlib.in.h: Likewise.
31980         * lib/string.in.h: Likewise.
31981         * lib/strings.in.h: Likewise.
31982         * lib/sys_select.in.h: Likewise.
31983         * lib/sys_socket.in.h: Likewise.
31984         * lib/sys_stat.in.h: Likewise.
31985         * lib/sys_time.in.h: Likewise.
31986         * lib/sysexits.in.h: Likewise.
31987         * lib/time.in.h: Likewise.
31988         * lib/unistd.in.h: Likewise.
31989         * lib/wchar.in.h: Likewise.
31990         * lib/wctype.in.h: Likewise.
31991         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
31992         * modules/fchdir (Makefile.am): Likewise.
31993         * modules/fcntl (Makefile.am): Likewise.
31994         * modules/float (Makefile.am): Likewise.
31995         * modules/iconv_open (Makefile.am): Likewise.
31996         * modules/inttypes (Makefile.am): Likewise.
31997         * modules/locale (Makefile.am): Likewise.
31998         * modules/math (Makefile.am): Likewise.
31999         * modules/netinet_in (Makefile.am): Likewise.
32000         * modules/search (Makefile.am): Likewise.
32001         * modules/signal (Makefile.am): Likewise.
32002         * modules/stdarg (Makefile.am): Likewise.
32003         * modules/stdint (Makefile.am): Likewise.
32004         * modules/stdio (Makefile.am): Likewise.
32005         * modules/stdlib (Makefile.am): Likewise.
32006         * modules/string (Makefile.am): Likewise.
32007         * modules/strings (Makefile.am): Likewise.
32008         * modules/sys_select (Makefile.am): Likewise.
32009         * modules/sys_socket (Makefile.am): Likewise.
32010         * modules/sys_stat (Makefile.am): Likewise.
32011         * modules/sys_time (Makefile.am): Likewise.
32012         * modules/sysexits (Makefile.am): Likewise.
32013         * modules/time (Makefile.am): Likewise.
32014         * modules/unistd (Makefile.am): Likewise.
32015         * modules/wchar (Makefile.am): Likewise.
32016         * modules/wctype (Makefile.am): Likewise.
32017         Reported by Reuben Thomas <rrt@sc3d.org>.
32018
32019 2008-08-29  Bruno Haible  <bruno@clisp.org>
32020
32021         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32022         any more.
32023
32024 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32025
32026         * MODULES.html.sh (Misc): Add bitrotate.
32027
32028         * modules/bitrotate: New file.
32029
32030         * lib/bitrotate.h: New file.
32031
32032         * modules/bitrotate-tests: New file.
32033
32034         * tests/test-bitrotate.c: New file.
32035
32036         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32037         on the bitrotate module.
32038
32039         * lib/arctwo.c: Use new bitrotate module.
32040
32041 2008-08-29  Jim Meyering  <meyering@redhat.com>
32042
32043         bootstrap: merge changes from coreutils
32044         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32045         of copied files.  Remove a kludge, now that this is fixed.
32046         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32047         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32048         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32049
32050 2008-08-29  Bruno Haible  <bruno@clisp.org>
32051
32052         * MODULES.html.sh: Remove --cvs-urls option.
32053
32054 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32055
32056         maint.mk: adjust to file name change
32057         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32058
32059 2008-08-28  Jim Meyering  <meyering@redhat.com>
32060
32061         * modules/getndelim2 (License): Relicense to LGPLv2+.
32062         Approved by Richard Stallman for the version of 1995, and by
32063         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32064
32065 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32066
32067         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32068         dummy if one is not available.  Do not touch them if
32069         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32070         (getc_maybe_unlocked): New.
32071         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32072
32073 2008-08-26  Eric Blake  <ebb9@byu.net>
32074
32075         doc/INSTALL: resync from autoconf
32076         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32077         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32078         moving...
32079         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32080         * INSTALL: Regenerate.
32081         * INSTALL.ISO: New file.
32082         * INSTALL.UTF-8: Likewise.
32083
32084 2008-08-26  Jim Meyering  <meyering@redhat.com>
32085
32086         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32087         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32088         these definitions conditional, so that they may be overridden, too.
32089
32090 2008-08-26  Bruno Haible  <bruno@clisp.org>
32091
32092         Generate INSTALL file variants with prettier quotes.
32093         * doc/Makefile (INSTALL_PRELUDE): New macro.
32094         (INSTALL): Use it.
32095         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32096
32097 2008-08-26  Bruno Haible  <bruno@clisp.org>
32098
32099         Run makeinfo in an English locale.
32100         * doc/Makefile (MAKEINFO): New variable.
32101
32102 2008-08-26  Bruno Haible  <bruno@clisp.org>
32103
32104         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32105         Suggested by Eric Blake.
32106
32107 2008-08-25  Bruno Haible  <bruno@clisp.org>
32108
32109         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32110
32111 2008-08-25  Eric Blake  <ebb9@byu.net>
32112
32113         c-stack: test that stack overflow can be caught
32114         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32115         that platform allows handling stack overflow; at least OS/2 EMX
32116         has sigaltstack, but crashes before transferring control to
32117         handler on stack overflow.
32118         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32119         check for HAVE_STACK_OVERFLOW_HANDLING.
32120         Reported by Elbert Pol.
32121
32122 2008-08-25  Bruno Haible  <bruno@clisp.org>
32123
32124         * doc/posix-functions/strftime.texi: Fix description of strftime
32125         module.
32126
32127 2008-08-24  Bruno Haible  <bruno@clisp.org>
32128
32129         * tests/uniwidth/test-uc_width2.c: New file.
32130         * tests/uniwidth/test-uc_width2.sh: New file.
32131         * modules/uniwidth/width-tests (Files): Add the new files.
32132         (TESTS): Add uniwidth/test-uc_width2.sh.
32133         (TESTS_ENVIRONMENT): New variable.
32134         (check_PROGRAMS): Add test-uc_width2.
32135         (test_uc_width2_SOURCES): New variable.
32136
32137         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32138         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32139         not 0x00AB.
32140         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32141
32142 2008-08-22  Eric Blake  <ebb9@byu.net>
32143
32144         test-lock, test-tls: mention why a test is skipped
32145         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32146         skipped.
32147         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32148
32149         count-one-bits: relax license
32150         * modules/count-one-bits (License): Relicense to LGPLv2+.
32151         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32152
32153 2008-08-22  Andreas Schwab  <schwab@suse.de>
32154
32155         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32156         Remove spurious space in assignment.
32157
32158 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32159
32160         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32161         Paul Eggert <eggert@CS.UCLA.EDU>.
32162
32163 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32164
32165         * modules/gettext: Add m4/threadlib.m4.
32166
32167 2008-08-19  Eric Blake  <ebb9@byu.net>
32168
32169         test-c-stack: fix compilation failure on FreeBSD 5.0
32170         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32171         headers before <sys/resource.h>.
32172         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32173         the bug.
32174         Reported by Nelson H. F. Beebe.
32175
32176         strverscmp: migrate from "strverscmp.h" to <string.h>
32177         * modules/string (Makefile.am): Add new hooks.
32178         * modules/strverscmp (Files): Remove strverscmp.h.
32179         (Depends-on): Add string.
32180         (configure.ac): Add indicator.
32181         (Include): Mention new header.
32182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32183         defaults.
32184         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32185         results.
32186         * lib/strverscmp.h: Delete.
32187         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32188         * tests/test-strverscmp.c (includes): Adjust client.
32189         * lib/check-version.c (includes): Likewise.
32190         * NEWS: Document the change.
32191
32192         strverscmp: add unit test
32193         * modules/strverscmp-tests: New file.
32194         * tests/test-strverscmp.c: Likewise.
32195
32196 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32197
32198         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32199         regarding Windows crypto stuff, from Mono.
32200
32201 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32202
32203         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32204         if present, for intel RND.  Return error on failures.
32205
32206 2008-08-18  Ben Pfaff  <blp@gnu.org>
32207
32208         gitlog-to-changelog: give better diagnostic for failed pipe-open
32209         * build-aux/gitlog-to-changelog: Improve error message: suggest
32210         that the version of Git may be too old.
32211
32212 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32213
32214         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32215         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32216
32217 2008-08-18  Bruno Haible  <bruno@clisp.org>
32218
32219         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32220         pthread_in_use().
32221
32222 2008-08-18  Bruno Haible  <bruno@clisp.org>
32223
32224         * lib/glthread/threadlib.c: Include <pthread.h>.
32225
32226 2008-08-18  Bruno Haible  <bruno@clisp.org>
32227
32228         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32229         glthread_recursive_lock_* macros.
32230         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32231         Fix syntax error.
32232
32233 2008-08-18  Bruno Haible  <bruno@clisp.org>
32234
32235         * lib/glthread/thread.c: Avoid forcing a context switch right after
32236         thread creation.
32237
32238 2008-08-17  Bruno Haible  <bruno@clisp.org>
32239
32240         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32241         * lib/glthread/thread.h: Provide Win32 specific implementation.
32242         * modules/thread (Files): Add lib/glthread/thread.c.
32243         (Depends-on): Add lock.
32244         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32245
32246 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32247
32248         New module 'yield'.
32249         * modules/yield: New file.
32250         * lib/glthread/yield.h: New file.
32251         * m4/yield.m4: New file.
32252         * MODULES.html.sh (Multithreading): Add yield.
32253
32254 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32255
32256         New module 'thread'.
32257         * modules/thread: New file.
32258         * lib/glthread/thread.h: New file.
32259         * m4/thread.m4: New file.
32260         * MODULES.html.sh (Multithreading): Add thread.
32261
32262 2008-08-17  Bruno Haible  <bruno@clisp.org>
32263
32264         * lib/glthread/lock.h: Include <stdlib.h> always.
32265         * lib/glthread/tls.h: Likewise.
32266         * lib/glthread/cond.h: Likewise.
32267
32268 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32269
32270         New module 'cond'.
32271         * modules/cond: New file.
32272         * lib/glthread/cond.h: New file.
32273         * lib/glthread/cond.c: New file.
32274         * m4/cond.m4: New file.
32275         * MODULES.html.sh (Multithreading): Add cond.
32276
32277 2008-08-16  Eric Blake  <ebb9@byu.net>
32278
32279         c-stack: fix regression on Irix 5.3 from 2008-06-21
32280         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32281         sa_sigaction...
32282         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32283         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32284         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32285         * modules/signal (Makefile.am): Use the value.
32286         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32287         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32288         * doc/posix-headers/signal.texi (signal.h): Document this
32289         portability issue.
32290         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32291         Reported by Tom G. Christensen.
32292
32293 2008-08-17  Bruno Haible  <bruno@clisp.org>
32294
32295         New module 'threadlib'.
32296         * modules/threadlib: New file.
32297         * lib/glthread/threadlib.c: New file, extracted from
32298         lib/glthread/lock.c.
32299         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32300         functions.
32301         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32302         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32303         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32304         macros.
32305         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32306         (gl_DISABLE_THREADS): Remove macro.
32307         * modules/lock (Files): Remove build-aux/config.rpath.
32308         (Depends-on): Remove havelib. Add threadlib.
32309         (configure.ac-early): Remove section.
32310         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32311         * modules/tls (Depends-on): Remove lock. Add threadlib.
32312         (Link): New section, copied from threadlib.
32313         * MODULES.html.sh (Multithreading): Add threadlib.
32314
32315 2008-08-14  Bruno Haible  <bruno@clisp.org>
32316
32317         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32318         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32319         glthread_rwlock_unlock, glthread_rwlock_destroy,
32320         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32321         glthread_recursive_lock_destroy): Define as macros always.
32322         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32323         glthread_lock_lock.
32324         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32325         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32326         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32327         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32328         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32329         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32330         (glthread_recursive_lock_lock_func): Renamed from
32331         glthread_recursive_lock_lock.
32332         (glthread_recursive_lock_unlock_func): Renamed from
32333         glthread_recursive_lock_unlock.
32334         (glthread_recursive_lock_destroy_func): Renamed from
32335         glthread_recursive_lock_destroy.
32336
32337 2008-08-14  Bruno Haible  <bruno@clisp.org>
32338
32339         * lib/glthread/lock.h: Renamed from lib/lock.h.
32340         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32341         * lib/glthread/tls.h: Renamed from lib/tls.h.
32342         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32343         * lib/fstrcmp.c: Update includes.
32344         * lib/strsignal.c: Update includes.
32345         * modules/lock (Files, Makefile.am): Update.
32346         (Include): Change to "glthread/lock.h".
32347         * modules/tls (Files, Makefile.am): Update.
32348         (Include): Change to "glthread/tls.h".
32349         * tests/test-lock.c: Update includes.
32350         * tests/test-tls.c: Update includes.
32351         * NEWS: Mention the renamed header files.
32352
32353 2008-08-11  Jim Meyering  <meyering@redhat.com>
32354
32355         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32356
32357 2008-08-11  Eric Blake  <ebb9@byu.net>
32358
32359         test-c-stack: avoid C99-ism
32360         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32361         before statement.
32362         Reported by Alain Guibert.
32363
32364 2008-08-10  Jim Meyering  <meyering@redhat.com>
32365
32366         ensure that return value of uinttostr et al are not ignored
32367         * lib/inttostr.h (__GNUC_PREREQ): Define.
32368         (__attribute_warn_unused_result__): Define.
32369         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32370
32371 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32372
32373         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32374         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32375
32376 2008-08-07  Jim Meyering  <meyering@redhat.com>
32377
32378         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32379
32380         * modules/mkstemp (License): Relicense under LGPLv2+.
32381         * modules/tempname (License): Likewise.
32382
32383 2008-08-06  Bruno Haible  <bruno@clisp.org>
32384
32385         * lib/poll.c (poll): Further micro-optimization.
32386
32387 2008-08-06  Jim Meyering  <meyering@redhat.com>
32388
32389         inet_pton.c: use locale-independent tolower
32390         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32391         (inet_pton6): Use c_tolower rather than tolower.
32392         * modules/inet_pton (Depends-on): Add c-ctype.
32393
32394 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32395
32396         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32397         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32398
32399 2008-08-06  Jim Meyering  <meyering@redhat.com>
32400
32401         * modules/inet_pton (License): Relicense under LGPLv2+.
32402
32403 2008-08-03  Bruno Haible  <bruno@clisp.org>
32404
32405         Additional non-aborting API for lock and tls.
32406         * lib/lock.h: Include <errno.h>.
32407         (glthread_lock_init): New macro/function.
32408         (gl_lock_init): Define as wrapper around glthread_lock_init.
32409         (glthread_lock_lock): New macro/function.
32410         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32411         (glthread_lock_unlock): New macro/function.
32412         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32413         (glthread_lock_destroy): New macro/function.
32414         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32415         (glthread_rwlock_init): New macro/function.
32416         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32417         (glthread_rwlock_rdlock): New macro/function.
32418         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32419         (glthread_rwlock_wrlock): New macro/function.
32420         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32421         (glthread_rwlock_unlock): New macro/function.
32422         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32423         (glthread_rwlock_destroy): New macro/function.
32424         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32425         (glthread_recursive_lock_init): New macro/function.
32426         (gl_recursive_lock_init): Define as wrapper around
32427         glthread_recursive_lock_init.
32428         (glthread_recursive_lock_lock): New macro/function.
32429         (gl_recursive_lock_lock): Define as wrapper around
32430         glthread_recursive_lock_lock.
32431         (glthread_recursive_lock_unlock): New macro/function.
32432         (gl_recursive_lock_unlock): Define as wrapper around
32433         glthread_recursive_lock_unlock.
32434         (glthread_recursive_lock_destroy): New macro/function.
32435         (gl_recursive_lock_destroy): Define as wrapper around
32436         glthread_recursive_lock_destroy.
32437         (glthread_once): New macro/function.
32438         (gl_once): Define as wrapper around glthread_once.
32439         Update function declarations.
32440         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32441         glthread_rwlock_init. Return error code.
32442         (glthread_rwlock_rdlock_multithreaded): Renamed from
32443         glthread_rwlock_rdlock. Return error code.
32444         (glthread_rwlock_wrlock_multithreaded): Renamed from
32445         glthread_rwlock_wrlock. Return error code.
32446         (glthread_rwlock_unlock_multithreaded): Renamed from
32447         glthread_rwlock_unlock. Return error code.
32448         (glthread_rwlock_destroy_multithreaded): Renamed from
32449         glthread_rwlock_destroy. Return error code.
32450         (glthread_recursive_lock_init_multithreaded): Renamed from
32451         glthread_recursive_lock_init. Return error code.
32452         (glthread_recursive_lock_lock_multithreaded): Renamed from
32453         glthread_recursive_lock_lock. Return error code.
32454         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32455         glthread_recursive_lock_unlock. Return error code.
32456         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32457         glthread_recursive_lock_destroy. Return error code.
32458         (glthread_once_call): Make static.
32459         (glthread_once_multithreaded): Renamed from glthread_once.
32460         * lib/tls.h: Include <errno.h>.
32461         (glthread_tls_key_init): New macro/function.
32462         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32463         (glthread_tls_set): New macro/function.
32464         (gl_tls_set): Define as wrapper around glthread_tls_set.
32465         (glthread_tls_key_destroy): New macro/function.
32466         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32467         Update function declarations.
32468         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32469         glthread_tls_get.
32470         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32471
32472 2008-08-04  Eric Blake  <ebb9@byu.net>
32473
32474         gnumakefile: use space, not TAB, outside of targets
32475         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32476
32477 2008-08-02  Jim Meyering  <meyering@redhat.com>
32478
32479         getdate.y: avoid locale-dependent date parsing failure
32480         In Turkish locales, getdate would fail to recognize keywords
32481         containing a lowercase "i".  The solution is not to rely on
32482         locale-sensitive case-conversion.
32483         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
32484         (lookup_word): Use c_toupper in place of toupper.
32485         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
32486         Reported by Vefa Bicakci <bicave@superonline.com> in
32487         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
32488         * modules/getdate (Depends-on): Add c-ctype.
32489
32490 2008-08-02  Bruno Haible  <bruno@clisp.org>
32491
32492         * gnulib-tool (func_import): When updating or creating a .gitignore
32493         file, prepend each added line with a slash, and ignore leading slashes
32494         from the existing lines.
32495         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32496
32497 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32498
32499         Portability fix for GNU make 3.79.1.
32500         * top/GNUmakefile: Avoid 'else COND', which older GNU make
32501         versions do not understand.
32502
32503 2008-08-01  Bruno Haible  <bruno@clisp.org>
32504
32505         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32506         * tests/test-isnanf.h (zero): New variable.
32507         (main): Avoid literal -0.0f.
32508         * tests/test-isnand.h (zero): New variable.
32509         (main): Avoid literal -0.0.
32510         * tests/test-isnanl.h (zero): New variable.
32511         (main): Avoid literal -0.0L.
32512         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32513         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32514         -0.0, -0.0L.
32515         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32516         (test_signbitd): Avoid literal -0.0.
32517         (test_signbitl): Avoid literal -0.0L.
32518         * tests/test-ceilf1.c (zero): New variable.
32519         (main): Avoid literal -0.0f.
32520         * tests/test-ceill.c (zero): New variable.
32521         (main): Avoid literal -0.0L.
32522         * tests/test-floorf1.c (zero): New variable.
32523         (main): Avoid literal -0.0f.
32524         * tests/test-floorl.c (zero): New variable.
32525         (main): Avoid literal -0.0L.
32526         * tests/test-roundf1.c (zero): New variable.
32527         (main): Avoid literal -0.0f.
32528         * tests/test-round1.c (zero): New variable.
32529         (main): Avoid literal -0.0.
32530         * tests/test-roundl.c (zero): New variable.
32531         (main): Avoid literal -0.0L.
32532         * tests/test-truncf1.c (zero): New variable.
32533         (main): Avoid literal -0.0f.
32534         * tests/test-trunc1.c (zero): New variable.
32535         (main): Avoid literal -0.0.
32536         * tests/test-truncl.c (zero): New variable.
32537         (main): Avoid literal -0.0L.
32538         * tests/test-frexp.c (zero): New variable.
32539         (main): Avoid literal -0.0.
32540         * tests/test-frexpl.c (zero): New variable.
32541         (main): Avoid literal -0.0L.
32542         * tests/test-ldexpl.c (zero): New variable.
32543         (main): Avoid literal -0.0L.
32544         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32545         (zerod, zerol): New variables.
32546         (test_function): Avoid literals -0.0, -0.0L.
32547         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32548         (zerod, zerol): New variables.
32549         (test_function): Avoid literals -0.0, -0.0L.
32550         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32551         (zerod, zerol): New variables.
32552         (test_function): Avoid literals -0.0, -0.0L.
32553         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32554         (zerod, zerol): New variables.
32555         (test_function): Avoid literals -0.0, -0.0L.
32556         * tests/test-strtod.c (zero): New variable.
32557         (main): Avoid literal -0.0.
32558         Reported by Jonathan C. Patschke <jp@centtech.com>.
32559
32560 2008-07-31  Jim Meyering  <meyering@redhat.com>
32561
32562         sha256.h: correct definition of SHA224_DIGEST_SIZE
32563         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
32564         Reported by Paulie Pena IV <paulie4@gmail.com>.
32565         Define as 224 / 8, rather than as a literal.
32566         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
32567         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
32568         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
32569
32570 2008-07-31  Bruno Haible  <bruno@clisp.org>
32571
32572         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
32573         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
32574         Reported by Jonathan Patschke <jp@centtech.com>.
32575
32576 2008-07-31  Bruno Haible  <bruno@clisp.org>
32577
32578         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
32579         Reported by Paolo Bonzini <bonzini@gnu.org>.
32580
32581 2008-07-30  Eric Blake  <ebb9@byu.net>
32582
32583         test-strtod: allow compilation without -lm
32584         * tests/test-strtod.c (main): Avoid link dependence on fabs.
32585         Reported by Dennis Clarke <blastwave@gmail.com>.
32586
32587 2008-07-28  Jim Meyering  <meyering@redhat.com>
32588
32589         bootstrap: work also when there are no .po files in po/
32590         * build-aux/bootstrap (update_po_files): Complete the change
32591         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
32592
32593 2008-07-27  Jim Meyering  <meyering@redhat.com>
32594
32595         * users.txt: Add zile.
32596
32597 2008-07-26  Ben Pfaff  <blp@gnu.org>
32598
32599         Add missing dependencies on new m4/exponent[fdl].m4 files.
32600         * modules/isnanf-nolibm: Add m4/exponentf.m4.
32601         * modules/isnand-nolibm: Add m4/exponentd.m4.
32602         * modules/isnanl-nolibm: Add m4/exponentl.m4.
32603         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
32604         m4/isnan[fdl].m4, because the macros actually used moved.
32605         Reported by Jim Meyering.
32606
32607 2008-07-14  Ben Pfaff  <blp@gnu.org>
32608
32609         Add isinf module.
32610         * lib/isinf.c: New file.
32611         * lib/math.in.h: Define isinf macro if we have decided to replace
32612         it.
32613         * m4/isinf.m4: New file.
32614         * m4/math_h.m4: Initialize and substitute variables for isinf
32615         module.
32616         * modules/isinf: New file.
32617         * modules/isinf-tests: New file.
32618         * modules/math: Add substitutions for new module.
32619         * tests/test-isinf.c: New file.
32620         * doc/posix-functions/isinf.texi: Mention new module.
32621         * MODULES.html.sh: Mention new module.
32622
32623 2008-07-14  Ben Pfaff  <blp@gnu.org>
32624
32625         Factor out some macros for use by additional modules.
32626         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
32627         exponentf.m4.
32628         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
32629         exponentd.m4.
32630         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
32631         file exponentl.m4.
32632         * m4/exponentf.m4: New file.
32633         * m4/exponentd.m4: New file.
32634         * m4/exponentl.m4: New file.
32635         * modules/isnanf: Use new file m4/exponentf.m4.
32636         * modules/isnand: Use new file m4/exponentd.m4.
32637         * modules/isnanl: Use new file m4/exponentl.m4.
32638
32639 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
32640
32641         mktime.c: normalize tp->tm_isdst value to -1/0/1.
32642         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
32643         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
32644         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
32645
32646         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
32647         readlink on platforms without PATH_MAX.
32648
32649 2008-07-21  Eric Blake  <ebb9@byu.net>
32650
32651         Warn, not fail, on stale version.
32652         * top/GNUmakefile (_curr-ver): Tone down previous patch.
32653
32654         Don't allow installation with stale devel version number.
32655         * top/GNUmakefile (_is-install-target): New macro.
32656         (_curr-ver): Forbid installation with stale version number.
32657
32658 2008-07-20  Bruno Haible  <bruno@clisp.org>
32659
32660         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
32661         TESTS_ENVIRONMENT.
32662         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
32663
32664 2008-07-20  Bruno Haible  <bruno@clisp.org>
32665
32666         * lib/c-stack.h (c_stack_action): Add documentation.
32667         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
32668
32669 2008-07-20  Bruno Haible  <bruno@clisp.org>
32670
32671         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
32672         * modules/readlink (License): Likewise.
32673
32674 2008-07-17  Eric Blake  <ebb9@byu.net>
32675
32676         * modules/c-stack (Link): Fix typo.
32677
32678         Make c-stack use libsigsegv, when available.
32679         * modules/c-stack (Depends-on): Add libsigsegv.
32680         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
32681         needed.
32682         * lib/c-stack.c (SIGSTKSZ): Define fallback.
32683         (segv_handler, overflow_handler, c_stack_action)
32684         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
32685         implementation when libsigsegv is available, but only when using
32686         the library is necessary.
32687         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
32688         comment, explaining why XSI check fails on Linux.
32689         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
32690         * tests/test-c-stack2.sh: Tweak skip message.
32691         * NEWS: Document new link-time requirements.
32692
32693 2008-07-16  Eric Blake  <ebb9@byu.net>
32694
32695         c-stack: Expose false positives when not using libsigsegv.
32696         * modules/c-stack-tests (Files): Expand test.
32697         * tests/test-c-stack.c (main): Add means to conditionally trigger
32698         non-overflow SIGSEGV.
32699         * tests/test-c-stack2.sh: New file.
32700
32701 2008-07-14  Bruno Haible  <bruno@clisp.org>
32702
32703         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
32704         Reported by Eric Blake.
32705
32706 2008-07-14  Sam Steingold  <sds@gnu.org>
32707             Bruno Haible  <bruno@clisp.org>
32708
32709         New module libsigsegv.
32710         * modules/libsigsegv: New file.
32711         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
32712         modifications.
32713         * MODULES.html.sh (Signal handling): New section.
32714
32715 2008-07-14  Bruno Haible  <bruno@clisp.org>
32716
32717         * modules/unictype/ctype-* (Description): Add the word "function".
32718         Improves the resulting doc in MODULES.html.
32719
32720 2008-07-12  Ben Pfaff  <blp@gnu.org>
32721
32722         Add longlong module.
32723         * modules/longlong: New file.
32724
32725 2008-07-12  Bruno Haible  <bruno@clisp.org>
32726
32727         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
32728         to empty.
32729
32730 2008-07-10  Ben Pfaff  <blp@gnu.org>
32731
32732         Add isnan module.
32733         * doc/posix-functions/isnan.texi: Mention new module.
32734         * lib/math.in.h: Define isnan macro if we have decided to replace
32735         it.
32736         * m4/isnan.m4: New file.
32737         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
32738         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
32739         also.
32740         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
32741         redundancy.
32742         * m4/math_h.m4: Initialize and substitute variables for isnan
32743         module.
32744         * modules/isnan: New file.
32745         * modules/isnan-tests: New file.
32746         * modules/math: Add substitutions for new module.
32747         * tests/test-isnan.c: New file.
32748         * MODULES.html.sh: Mention new module.
32749
32750 2008-07-10  Ben Pfaff  <blp@gnu.org>
32751
32752         Add isnanf module.
32753         * lib/isnanf.m4: New file.
32754         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
32755         (gl_HAVE_ISNANF_IN_LIBM): New macro.
32756         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
32757         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
32758         * modules/isnanf: New file.
32759         * modules/isnanf-tests: New file.
32760         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
32761         files.
32762         * tests/test-isnanf-nolibm.c: factored most of its contents into
32763         new file tests/test-isnanf.h.
32764         * tests/test-isnanf.h: New file.
32765         * tests/test-isnanf.c: New file.
32766         * MODULES.html.sh: Mention new module.
32767         * doc/glibc-functions/isnanf.texi: Mention new module.
32768
32769 2008-07-10  Ben Pfaff  <blp@gnu.org>
32770
32771         Add isnand module.
32772         * lib/isnand.h: New file.
32773         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
32774         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
32775         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
32776         functionality also.
32777         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
32778         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
32779         (gl_HAVE_ISNAND_IN_LIBM): New macro.
32780         * modules/isnand: New file.
32781         * modules/isnand-tests: New file.
32782         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
32783         files.
32784         * tests/test-isnand-nolibm.c: factored most of its contents into
32785         new file tests/test-isnand.h.
32786         * tests/test-isnand.h: New file.
32787         * tests/test-isnand.c: New file.
32788         * MODULES.html.sh: Mention new module.
32789
32790 2008-07-10  Ben Pfaff  <blp@gnu.org>
32791
32792         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
32793         * lib/isnand.h: Rename lib/isnand-nolibm.h.
32794         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
32795         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
32796         * modules/isnanf-nolibm: Update references to renamed files.
32797         * modules/isnand-nolibm: Likewise.
32798         * modules/isnanf-nolibm-tests: Likewise.
32799         * modules/isnand-nolibm-tests: Likewise.
32800         * lib/frexp.c: Likewise.
32801         * lib/isfinite.c: Likewise.
32802         * lib/signbitd.c: Likewise.
32803         * lib/signbitf.c: Likewise.
32804         * lib/vasnprintf.c: Likewise.
32805         * tests/test-ceilf1.c: Likewise.
32806         * tests/test-ceilf2.c: Likewise.
32807         * tests/test-floorf1.c: Likewise.
32808         * tests/test-floorf2.c: Likewise.
32809         * tests/test-frexp.c: Likewise.
32810         * tests/test-round1.c: Likewise.
32811         * tests/test-round2.c: Likewise.
32812         * tests/test-roundf1.c: Likewise.
32813         * tests/test-strtod.c: Likewise.
32814         * tests/test-trunc1.c: Likewise.
32815         * tests/test-trunc2.c: Likewise.
32816         * tests/test-truncf1.c: Likewise.
32817         * tests/test-truncf2.c: Likewise.
32818         * NEWS: Mention the renamed header files.
32819
32820 2008-07-11  Jim Meyering  <meyering@redhat.com>
32821
32822         vc-list-files: make the last-resort awk code more portable
32823         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
32824         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
32825         does not support it.
32826
32827 2008-07-10  Eric Blake  <ebb9@byu.net>
32828
32829         Work with tar's bootstrap.
32830         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
32831         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
32832         an m4 comment.
32833
32834 2008-07-09  Jim Meyering  <meyering@redhat.com>
32835
32836         posix-shell.m4: fix typo that made this test malfunction
32837         * m4/posix-shell.m4: Remove capitalization in variable name.
32838
32839 2008-07-08  Bruno Haible  <bruno@clisp.org>
32840
32841         * m4/onceonly.m4: Update comments.
32842         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32843
32844 2008-07-04  Jim Meyering  <meyering@redhat.com>
32845
32846         * users.txt: Add vc-dwim.
32847         (bison, coreutils): Use the gitweb URL.
32848
32849 2008-07-03  Jim Meyering  <meyering@redhat.com>
32850
32851         * users.txt: Add libffcall.  From Sam Steingold.
32852
32853 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
32854
32855         getdate.y: do not ignore TZ with relative day, month or year offset
32856         * lib/getdate.y (get_date): Move the tz-handling block to follow the
32857         relative-date-handling, since otherwise, the latter would clobber the
32858         sole output (an updated Start value) of the tz-handling block.
32859         * tests/test-getdate.c: Tests for the fix
32860
32861 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32862
32863         Recognize 'foo_LIBRARIES += libgnu.a'.
32864         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
32865         makefile snippet has already specified an installation location,
32866         also using '+='.
32867
32868 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
32869
32870         getdate.y: factor out common actions
32871         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
32872         Use them in place of open-coded actions.
32873
32874 2008-07-01  Simon Josefsson  <simon@josefsson.org>
32875
32876         Add self-test for getdate module.
32877         * modules/getdate-tests: New file.
32878         * tests/test-getdate.c: New file.
32879
32880 2008-06-29  Bruno Haible  <bruno@clisp.org>
32881
32882         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
32883         .gitignore.
32884         Reported by Sylvain Beucler <beuc@beuc.net>.
32885
32886 2008-06-29  Bruno Haible  <bruno@clisp.org>
32887
32888         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
32889         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
32890
32891 2008-06-29  Bruno Haible  <bruno@clisp.org>
32892
32893         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
32894         EXTRA_DIST.
32895         Reported by Sylvain Beucler <beuc@beuc.net>.
32896
32897 2008-06-26  Jim Meyering  <meyering@redhat.com>
32898
32899         make several modules depend on the "open" module
32900         This provides slightly increased consistency when opening-for-write
32901         the name of a non-directory spelled with a trailing slash.
32902         * modules/chdir-safer: Likewise.
32903         * modules/chown: Likewise.
32904         * modules/clean-temp: Likewise.
32905         * modules/copy-file: Likewise.
32906         * modules/fchdir: Likewise.
32907         * modules/fcntl-safer: Likewise.
32908         * modules/pipe: Likewise.
32909         * modules/utime: Likewise.
32910         Prompted by Eric Blake and Bruno Haible.
32911
32912 2008-06-24  Andreas Schwab  <schwab@suse.de>
32913
32914         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
32915         literals can be used as initializers for global variables.
32916
32917 2008-06-23  Eric Blake  <ebb9@byu.net>
32918
32919         Make gnulib-cache.m4 easier to diff.
32920         * gnulib-tool (func_import): Allow newlines when reading cached
32921         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
32922
32923 2008-06-23  Bruno Haible  <bruno@clisp.org>
32924
32925         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
32926         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
32927         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
32928         m4/signalblocking.m4.
32929         (gl_PREREQ_SIGACTION): Don't invoke it.
32930         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
32931         gl_PREREQ_SIG_HANDLER_H.
32932         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32933         Don't check for sigaction here.
32934
32935 2008-06-23  Bruno Haible  <bruno@clisp.org>
32936
32937         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
32938         (install_handlers): Don't set the SA_RESETHAND flag.
32939
32940 2008-06-23  Bruno Haible  <bruno@clisp.org>
32941
32942         * m4/sigaction.m4: Comment fixes.
32943         * lib/signal.in.h: Likewise.
32944
32945 2008-06-23  Eric Blake  <ebb9@byu.net>
32946
32947         Fix typo.
32948         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
32949
32950         Avoid SA_ namespace.
32951         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
32952         Reported by Ralf Wildenhues.
32953
32954         Avoid test failure due to SA_RESTORER.
32955         * tests/test-sigaction.c (SA_MASK): New macro.
32956         (main): Avoid failing due to extension flags being set.
32957         Reported by Jim Meyering.
32958
32959         Revert use of sig-handler.h in sigprocmask.c.
32960         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
32961         it requires the existence of struct sigaction.
32962         * lib/sigprocmask.c (handler_t): Restore typedef.
32963         (rpl_signal, old_handlers): Use local type.
32964
32965 2008-06-22  Bruno Haible  <bruno@clisp.org>
32966
32967         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
32968         conditionally.
32969         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32970
32971 2008-06-22  Bruno Haible  <bruno@clisp.org>
32972
32973         * doc/posix-functions/siginterrupt.texi: Move note.
32974
32975         * lib/signal.in.h (SA_RESTART): New macro.
32976         * lib/sigaction.c: Update comment.
32977
32978         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
32979
32980         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
32981         (gl_PREREQ_SIGPROCMASK): Invoke it.
32982         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
32983
32984         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
32985
32986         * lib/sigprocmask.c: Update a comment.
32987
32988 2008-06-21  Eric Blake  <ebb9@byu.net>
32989
32990         Use sigaction module rather than signal().
32991         * modules/c-stack (Depends-on): Add sigaction.
32992         * modules/fatal-signal (Depends-on): Likewise.
32993         * modules/nanosleep (Depends-on): Likewise.
32994         * modules/sigprocmask (Files): Add sig-handler.h.
32995         * modules/sigaction (Files): Likewise.
32996         * lib/sig-handler.h (get_handler): New file, suggested by Paul
32997         Eggert.
32998         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
32999         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33000         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33001         (init_fatal_signals): Likewise.
33002         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33003         (siginterrupt): Delete fallback.
33004         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33005         instead.
33006         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33007         siginterrupt.
33008
33009         New module sigaction, for mingw.
33010         * modules/sigaction: New module...
33011         * modules/sigaction-tests: ...and its test.
33012         * m4/sigaction.m4: New file.
33013         * lib/sigaction.c: Likewise.
33014         * tests/test-sigaction.c: Likewise.
33015         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33016         * modules/signal (Makefile.am): Likewise.
33017         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33018         needed.
33019         * doc/posix-headers/signal.texi (signal.h): Mention provided
33020         types.
33021         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33022         that sigaction is preferable.
33023         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33024         module.
33025         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33026         sigaction.
33027
33028         Improve robustness of sigprocmask by overriding signal.
33029         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33030         is in use.
33031         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33032         (SIGKILL, SIGSTOP): Provide fallbacks.
33033         (rpl_signal): Implement.
33034         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33035         signal can be called inside handlers.
33036
33037         Fix nanosleep module on mingw.
33038         * modules/nanosleep (Depends-on): Add sys_select.
33039         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33040
33041         Fix licensing of sigprocmask.
33042         * modules/raise (License): Relicense as LGPL.
33043
33044 2008-06-21  Bruno Haible  <bruno@clisp.org>
33045
33046         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33047         result if it contains question marks.
33048         Reported by Michael Geng <linux@michaelgeng.de>.
33049
33050 2008-06-19  Bruno Haible  <bruno@clisp.org>
33051
33052         Fix CVS-ism.
33053         * doc/gnulib.texi: Include updated-stamp.texi.
33054         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33055         (updated-stamp.texi): New rule.
33056         (gnulib.info): Depend on it.
33057         * doc/.gitignore: Add updated-stamp.texi.
33058         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33059
33060 2008-06-19  Bruno Haible  <bruno@clisp.org>
33061
33062         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33063         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33064
33065 2008-06-19  Eric Blake  <ebb9@byu.net>
33066
33067         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33068         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33069         Reported by Stepan Kasal.
33070
33071 2008-06-18  Bruno Haible  <bruno@clisp.org>
33072
33073         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33074         Reported by Eric Blake.
33075
33076 2008-06-18  Eric Blake  <ebb9@byu.net>
33077
33078         Work around cygwin 1.5.25 strsignal bug.
33079         * tests/test-strsignal.c: Allow for const char *.
33080         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33081
33082 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33083
33084         * users.txt: Update URL to article and add author/date
33085         information.
33086
33087 2008-06-17  Bruno Haible  <bruno@clisp.org>
33088
33089         New macro gl_DISABLE_THREADS.
33090         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33091         if the user did not pass --enable-threads or --disable-threads option.
33092         (gl_DISABLE_THREADS): New macro.
33093         Reported by Eric Blake <ebb9@byu.net>.
33094
33095 2008-06-17  Bruno Haible  <bruno@clisp.org>
33096
33097         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33098         when the macro ignores it.
33099         Based on a patch by Eric Blake <ebb9@byu.net>.
33100
33101 2008-06-17  Bruno Haible  <bruno@clisp.org>
33102
33103         * modules/tls (License): Change to LGPLv2+.
33104         Reported by Eric Blake.
33105
33106 2008-06-17  Eric Blake  <ebb9@byu.net>
33107
33108         Simplify c-stack prerequisites.
33109         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33110         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33111         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33112         check.
33113         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33114         <sys/resource.h>.
33115
33116         Move c-stack test into testsuite.
33117         * modules/c-stack-tests: New file.
33118         * lib/c-stack.c [DEBUG]: Move test program...
33119         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33120         fail test if sigaltstack is lacking.
33121         * tests/test-c-stack.sh: New driver file.
33122
33123 2008-06-16  Eric Blake  <ebb9@byu.net>
33124
33125         Use raise module consistently.
33126         * modules/fatal-signal (Depends-on): Add raise.
33127         * modules/sigprocmask (Depends-on): Likewise.
33128         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33129         * lib/sigprocmask.c (sigprocmask): Likewise.
33130         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33131         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33132
33133         Fix compliance bug in sigpending.
33134         * lib/sigprocmask.c (sigpending): Return pending array via
33135         parameter, not return value.
33136
33137 2008-06-14  Eric Blake  <ebb9@byu.net>
33138
33139         Improve obstack-printf test code.
33140         * tests/test-obstack-printf.c (test_function): Fix comment, and
33141         simplify usage of obstack_* in macros.  Add a test for coverage.
33142         Reported by Bruno Haible.
33143
33144 2008-06-14  Bruno Haible  <bruno@clisp.org>
33145
33146         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33147         array size as a constant, not as a const variable.
33148         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33149         AC_USE_SYSTEM_EXTENSIONS.
33150         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33151         Test whether the obstack_printf function actually exists.
33152         * modules/obstack-printf (Depends-on): Add extensions.
33153         (Include): Remove obstack.h.
33154         * modules/obstack-printf-posix (Depends-on): Add extensions.
33155         (Include): Remove obstack.h.
33156
33157 2008-06-13  Eric Blake  <ebb9@byu.net>
33158
33159         Add obstack-printf and obstack-printf-posix modules.
33160         * modules/obstack-printf: New file.
33161         * modules/obstack-printf-posix: Likewise.
33162         * MODULES.html.sh (Misc): Mention them.
33163         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33164         Likewise.
33165         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33166         Likewise.
33167         * modules/stdio (Makefile.am): Accomodate new modules.
33168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33169         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33170         Declare.
33171         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33172         functions.
33173         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33174         (gl_REPLACE_OBSTACK_PRINTF): New macros
33175         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33176         * tests/test-obstack-printf.c: New file.
33177         * modules/obstack-printf-tests: Likewise.
33178         * modules/obstack-printf-posix-tests: Likewise.
33179
33180 2008-06-11  Bruno Haible  <bruno@clisp.org>
33181
33182         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33183         * lib/open.c: Include errno.h.
33184         (open): Fail when attempting to write to a file that has a trailing
33185         slash.
33186         * tests/test-open.c (main): Test against trailing slash bug.
33187         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33188
33189 2008-06-10  Bruno Haible  <bruno@clisp.org>
33190
33191         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33192         for $? to work inside the trap command, with various /bin/sh-s.
33193         * tests/test-vc-list-files-cvs.sh: Likewise.
33194
33195 2008-06-10  Bruno Haible  <bruno@clisp.org>
33196
33197         * lib/acl-internal.h: Don't include gettext.h here.
33198         * lib/set-mode-acl.c: Include gettext.h here.
33199         * lib/copy-acl.c: Likewise.
33200
33201 2008-06-10  Bruno Haible  <bruno@clisp.org>
33202
33203         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33204         * lib/wait-process.c (wait_subprocess): Likewise.
33205         * lib/execute.h (execute): Add termsigp argument.
33206         * lib/execute.c (execute): Likewise.
33207         * lib/csharpcomp.c (compile_csharp_using_pnet,
33208         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33209         * lib/csharpexec.c (execute_csharp_using_pnet,
33210         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33211         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33212         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33213         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33214         is_jikes_present): Update.
33215         * lib/javaexec.c (execute_java_class): Update.
33216         * lib/javaversion.c (execute_and_read_line): Update.
33217         * NEWS: Document the changes.
33218         Reported by Eric Blake.
33219
33220 2008-06-10  Eric Blake  <ebb9@byu.net>
33221
33222         Add missing include.
33223         * tests/test-strstr.c (includes): Add <signal.h>.
33224         * tests/test-strcasestr.c (includes): Likewise.
33225         * tests/test-memmem.c (includes): Likewise.
33226
33227 2008-06-10  Bruno Haible  <bruno@clisp.org>
33228
33229         * lib/wait-process.c (wait_subprocess): Add an assertion.
33230
33231 2008-06-10  Bruno Haible  <bruno@clisp.org>
33232
33233         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33234
33235 2008-06-10  Bruno Haible  <bruno@clisp.org>
33236
33237         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33238         using alarm().
33239         * tests/test-strcasestr.c (main): Likewise.
33240         * tests/test-strstr.c (main): Likewise.
33241
33242 2008-06-09  Bruno Haible  <bruno@clisp.org>
33243
33244         Work around the Solaris 10 ACE ACLs ABI change.
33245         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33246         declare if ACL_NO_TRIVIAL is present.
33247         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33248         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33249         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33250         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33251         define if ACL_NO_TRIVIAL is present.
33252         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33253         and use the current ABI.
33254         (file_has_acl): Use same #if condition as elsewhere.
33255         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33256         in use, and use the current ABI.
33257         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33258         Reported by Jim Meyering.
33259
33260 2008-06-09  Eric Blake  <ebb9@byu.net>
33261
33262         Work around environments that (stupidly) ignore SIGALRM.
33263         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33264         before using alarm().
33265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33266         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33267         Reported by Ian Beckwith <ianb@erislabs.net>.
33268
33269         Produce autobuild blurb earlier in log.
33270         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33271
33272 2008-06-09  Jim Meyering  <meyering@redhat.com>
33273         and OndÅ™ej Vašík  <ovasik@redhat.com>
33274
33275         utimens.c: correct kernel bug work-around
33276         OndÅ™ej Vašík found that the invalid return value of 280 indicates
33277         failure, not success, and the kernel bug we're trying to work
33278         around affects not just the utimensat call, but also the fallback
33279         futimens call.
33280         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33281         not success.
33282         [HAVE_FUTIMENS]: Use the same work-around, here.
33283
33284 2008-06-09  Jim Meyering  <meyering@redhat.com>
33285
33286         add more guards around definition of ACE_-related code
33287         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33288         ALLOW and ACE_OWNER are also defined.
33289
33290 2008-06-08  Bruno Haible  <bruno@clisp.org>
33291
33292         * lib/acl-internal.h: Add me as co-author.
33293         * lib/file-has-acl.c: Likewise.
33294         * lib/set-mode-acl.c: Likewise.
33295         * lib/copy-acl.c: Likewise.
33296
33297 2008-06-08  Bruno Haible  <bruno@clisp.org>
33298
33299         Add support for AIX ACLs.
33300         * lib/acl-internal.h (acl_nontrivial): New declaration.
33301         * lib/file-has-acl.c (acl_nontrivial): New function.
33302         (file_has_acl): Add implementation using AIX 4 ACL API.
33303         * lib/set-mode-acl.c (qset_acl): Likewise.
33304         * lib/copy-acl.c (qcopy_acl): Likewise.
33305
33306 2008-06-08  Bruno Haible  <bruno@clisp.org>
33307
33308         Add support for HP-UX ACLs.
33309         * lib/acl-internal.h (acl_nontrivial): New declaration.
33310         * lib/file-has-acl.c (acl_nontrivial): New function.
33311         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33312         * lib/set-mode-acl.c (qset_acl): Likewise.
33313         * lib/copy-acl.c (qcopy_acl): Likewise.
33314
33315 2008-06-08  Bruno Haible  <bruno@clisp.org>
33316
33317         Add support for Cygwin ACLs.
33318         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33319         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33320         the chmod_or_fchmod call.
33321         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33322
33323 2008-06-08  Bruno Haible  <bruno@clisp.org>
33324
33325         Fix bug with setuid modes in Solaris 10+ code.
33326         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33327         succeeded, when the mode contains some special bits.
33328
33329 2008-06-08  Bruno Haible  <bruno@clisp.org>
33330
33331         Add support for Solaris 7..10 ACLs.
33332         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33333         declarations.
33334         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33335         functions.
33336         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33337         * lib/set-mode-acl.c (qset_acl): Likewise.
33338         * lib/copy-acl.c (qcopy_acl): Likewise.
33339
33340 2008-06-08  Bruno Haible  <bruno@clisp.org>
33341
33342         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33343         declaration.
33344         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33345         (acl_access_nontrivial): Remove MacOS X case.
33346         (file_has_acl): Use acl_extended_nontrivial.
33347         * lib/copy-acl.c (qcopy_acl): Likewise.
33348
33349 2008-06-08  Bruno Haible  <bruno@clisp.org>
33350
33351         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33352
33353 2008-06-08  Jim Meyering  <meyering@redhat.com>
33354
33355         * modules/acl (Maintainer): Add Bruno Haible.
33356
33357 2008-06-07  Bruno Haible  <bruno@clisp.org>
33358
33359         Improve support for Tru64 ACLs.
33360         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33361         ACL on OSF/1.
33362
33363 2008-06-07  Bruno Haible  <bruno@clisp.org>
33364
33365         Add support for MacOS X ACLs.
33366         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33367         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33368         * lib/set-mode-acl.c (qset_acl): Likewise.
33369         * lib/copy-acl.c (qcopy_acl): Likewise.
33370
33371 2008-06-07  Bruno Haible  <bruno@clisp.org>
33372
33373         Fix memory leak introduced on 2008-05-22.
33374         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33375         use.
33376
33377 2008-06-07  Bruno Haible  <bruno@clisp.org>
33378
33379         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33380         to construct an empty ACL.
33381
33382 2008-06-07  Bruno Haible  <bruno@clisp.org>
33383
33384         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33385         precisely.
33386         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33387
33388 2008-06-07  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33391         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33392
33393 2008-06-07  Bruno Haible  <bruno@clisp.org>
33394
33395         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33396         regardless of POSIX.
33397         * doc/posix-functions/_longjmp.texi: Likewise.
33398         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33399         SystemV platform in this case.
33400
33401 2008-06-06  Eric Blake  <ebb9@byu.net>
33402
33403         Document abort() bugs.
33404         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33405
33406         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33407         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33408         sigsetjmp.
33409         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33410         siglongjmp, but only as a macro.
33411         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33412         is obsolete.
33413         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33414
33415         Tweak documentation to cover cygwin argz bugs.
33416         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33417         argz bug fix; no code change needed since no cygwin releases
33418         occurred between the last fix and the bug being tested.
33419         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33420         module and recently fixed cygwin bugs.
33421         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33422         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33423         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33424         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33425         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33426         Likewise.
33427         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33428         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33429         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33430         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33431         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33432         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33433         Likewise.
33434
33435         Avoid gcc warning on cygwin.
33436         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33437         !ACL_NO_TRIVIAL]: Avoid unused variable.
33438
33439 2008-06-05  Eric Blake  <ebb9@byu.net>
33440
33441         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33442         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33443         git-version-gen fails to come up with a version.
33444         Reported by Simon Josefsson.
33445
33446 2008-06-05  Jim Meyering  <meyering@redhat.com>
33447             Paul Eggert  <eggert@cs.ucla.edu>
33448
33449         utimens.c: work around a probable Linux kernel bug
33450         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33451         appears to be a kernel bug that causes utimensat to return 280
33452         instead of 0, indicating success.
33453
33454 2008-06-04  Bruno Haible  <bruno@clisp.org>
33455
33456         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33457         2008-06-01 commit.
33458
33459 2008-06-04  Bruno Haible  <bruno@clisp.org>
33460
33461         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33462         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33463         (file_has_acl): Use it. Save errno afterwards.
33464         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33465
33466 2008-06-03  Bruno Haible  <bruno@clisp.org>
33467
33468         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33469         draft code. Simplify #ifs.
33470         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33471         Put Solaris code after POSIX-draft code. Fix comments regarding
33472         Solaris 10, HP-UX. Mention Cygwin.
33473         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33474
33475 2008-06-03  Eric Blake  <ebb9@byu.net>
33476
33477         Provide fallback for older kernels.
33478         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
33479         Provide runtime fallback if kernel lacks support.
33480         Reported by Mike Frysinger.
33481
33482 2008-06-02  Bruno Haible  <bruno@clisp.org>
33483
33484         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
33485         it exists.
33486
33487 2008-06-02  Bruno Haible  <bruno@clisp.org>
33488
33489         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
33490         * lib/copy-acl.c (qcopy_acl): Update comment.
33491
33492 2008-06-02  Bruno Haible  <bruno@clisp.org>
33493
33494         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
33495         like ACL APIs.
33496
33497 2008-06-02  Bruno Haible  <bruno@clisp.org>
33498
33499         * tests/test-file-has-acl.sh: Use different code for Cygwin.
33500         * tests/test-set-mode-acl.sh: Likewise.
33501         * tests/test-copy-acl.sh: Likewise.
33502         * tests/test-copy-file.sh: Likewise.
33503
33504 2008-06-02  Bruno Haible  <bruno@clisp.org>
33505
33506         * tests/test-file-has-acl.sh: Remove unused code.
33507
33508 2008-06-01  Bruno Haible  <bruno@clisp.org>
33509
33510         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33511         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33512         messages.
33513         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33514
33515 2008-06-01  Bruno Haible  <bruno@clisp.org>
33516
33517         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33518         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33519         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33520         APIs.
33521         * modules/acl-tests (configure.ac): Remove tests now contained in
33522         m4/acl.m4.
33523
33524 2008-06-02  Jim Meyering  <meyering@redhat.com>
33525
33526         announce-gen: use a better key-server host name
33527         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33528         it may be more consistently reliable.  Suggested by Werner Koch
33529         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33530
33531 2008-06-01  Bruno Haible  <bruno@clisp.org>
33532
33533         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33534         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33535
33536 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33537
33538         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33539
33540 2008-06-01  Bruno Haible  <bruno@clisp.org>
33541
33542         New ACL tests.
33543         * tests/test-file-has-acl.sh: New file.
33544         * tests/test-file-has-acl.c: New file.
33545         * tests/test-set-mode-acl.sh: New file.
33546         * tests/test-set-mode-acl.c: New file.
33547         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33548         * tests/test-copy-acl.c: New file.
33549         * modules/acl-tests: New file, based on modules/copy-file-tests.
33550         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
33551         (Depends-on): Add acl-tests.
33552         (configure.ac): Remove checks.
33553         (Makefile.am): Don't create test-sameacls program here any more.
33554
33555 2008-06-01  Bruno Haible  <bruno@clisp.org>
33556
33557         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
33558         * tests/test-sameacls.c: Include progname.h.
33559         (main): Invoke set_program_name. Portability fixes for MacOS X,
33560         Solaris, HP-UX.
33561
33562 2008-06-01  Bruno Haible  <bruno@clisp.org>
33563
33564         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
33565         function.
33566         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
33567
33568 2008-06-01  Bruno Haible  <bruno@clisp.org>
33569
33570         * modules/rpmatch (Depends-on): Add strdup.
33571
33572 2008-06-01  Bruno Haible  <bruno@clisp.org>
33573
33574         * lib/pipe.c: Include unistd-safer.h.
33575         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
33576         * modules/pipe (Depends-on): Add unistd-safer.
33577
33578 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33579
33580         * modules/autobuild (configure.ac): Call AB_INIT.
33581
33582 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33583
33584         * tests/test-getaddrinfo.c: Don't print debug messages by default.
33585         Suggested by Bruno Haible <bruno@clisp.org>.
33586
33587 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33588
33589         * tests/test-base64.c: Cast size_t to unsigned long when invoking
33590         printf.  Use %lu instead of %d.  Reported by Bruno Haible
33591         <bruno@clisp.org>.
33592
33593 2008-05-29  Eric Blake  <ebb9@byu.net>
33594
33595         Prefer new POSIX 200x interfaces over futimesat.
33596         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
33597         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
33598         when available.
33599         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
33600
33601 2008-05-28  Bruno Haible  <bruno@clisp.org>
33602
33603         * modules/stpcpy (License): Change to LGPLv2+.
33604         Requested by David Lutterkort <dlutter@redhat.com>.
33605
33606 2008-05-27  Bruno Haible  <bruno@clisp.org>
33607
33608         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
33609         current mingw.
33610         Reported by Jose E. Marchesi <jemarch@gnu.org>.
33611
33612 2008-05-27  Bruno Haible  <bruno@clisp.org>
33613
33614         * modules/iconv_open (Link): New section, from module 'iconv'.
33615         * modules/striconv (Link): Likewise.
33616         * modules/striconveh (Link): Likewise.
33617         * modules/xstriconv (Link): Likewise.
33618         * modules/unicodeio (Link): Likewise.
33619         * modules/propername (Link): Likewise.
33620         Reported by Jim Meyering.
33621
33622 2008-05-26  Jim Meyering  <meyering@redhat.com>
33623
33624         sha256: do not artificially restrict buffer length to be < 2^32
33625         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
33626         uint32_t to size_t.
33627         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
33628         to match.
33629
33630         avoid unaligned access errors, e.g., on sparc
33631         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
33632         direct access through a possibly-unaligned uint64* pointer.
33633         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
33634         direct access through a possibly-unaligned uint32* pointer.
33635         Prompted by this patch from Tom "spot" Callaway:
33636         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
33637
33638         sha512.c: fix typo in comment
33639         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
33640
33641 2008-05-25  Bruno Haible  <bruno@clisp.org>
33642
33643         * lib/set-mode-acl.c: Renamed from lib/acl.c.
33644         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
33645         (Makefile.am): Update lib_SOURCES.
33646
33647 2008-05-25  Bruno Haible  <bruno@clisp.org>
33648
33649         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
33650
33651 2008-05-25  Jim Meyering  <meyering@redhat.com>
33652
33653         useless-if-before-free: freed expr may have white-space differences
33654         * build-aux/useless-if-before-free: Recognize cases in which the
33655         freed expression differs from the tested one in embedded white
33656         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
33657         $1 was used, so we can't make any regexp shy.  Improved tests now
33658         detect this.
33659
33660         useless-if-before-free: accept white space in the expression.
33661         * build-aux/useless-if-before-free: For now, any white space
33662         in the expression must be identical in the free argument.
33663
33664         useless-if-before-free: efficiency tweak
33665         * build-aux/useless-if-before-free: Make the expression-matching
33666         regexp "shy".
33667         Make the *outer* regexp shy, not the expr-matching one.
33668
33669         update code-in-comment to accept cast of free arg
33670         * build-aux/useless-if-before-free: Update regexp.
33671
33672 2008-05-25  Bruno Haible  <bruno@clisp.org>
33673
33674         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
33675         * modules/copy-file-tests (Files, Makefile.am): Update.
33676         * tests/test-copy-file.c (func_test_copy): Update.
33677
33678 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
33679
33680         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
33681
33682 2008-05-23  Bruno Haible  <bruno@clisp.org>
33683
33684         Improve support for ACLs on OSF/1.
33685         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
33686         Remove fallback for unknown flavors of ACLs.
33687
33688 2008-05-22  Bruno Haible  <bruno@clisp.org>
33689
33690         Add support for ACLs on OSF/1.
33691         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
33692         replacements.
33693         (acl_free_text): New macro fallback.
33694         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33695         acl_free.
33696         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
33697         acl_free_text function. Require AC_C_INLINE.
33698
33699 2008-05-22  Bruno Haible  <bruno@clisp.org>
33700
33701         Make copy_acl work on MacOS X 10.5.
33702         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
33703         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
33704         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
33705         If MODE_INSIDE_ACL, don't assume that every system has the same text
33706         representation for ACLs as FreeBSD.
33707         * lib/copy-acl.c (copy_acl): Add support for platforms with
33708         !MODE_INSIDE_ACL.
33709         * lib/file-has-acl.c (file_has_acl): Likewise.
33710         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
33711         FreeBSD, MacOS X, or IRIX, respectively.
33712
33713 2008-05-22  Bruno Haible  <bruno@clisp.org>
33714
33715         * lib/acl.h: Don't include <sys/acl.h>.
33716         (GETACLCNT): Move fallback to lib/acl-internal.h.
33717         * lib/acl-internal.h: Include <sys/acl.h> here.
33718         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
33719
33720 2008-05-22  Bruno Haible  <bruno@clisp.org>
33721
33722         Split off copy_acl function to separate file.
33723         * lib/copy-acl.c: New file, extracted from lib/acl.c.
33724         * lib/acl.c (copy_acl): Moved function to separate file.
33725         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
33726         * modules/acl (Files): Add lib/copy-acl.c.
33727         (Makefiles.am): Augment lib_SOURCES.
33728
33729 2008-05-22  Bruno Haible  <bruno@clisp.org>
33730
33731         * modules/copy-file-tests: New file.
33732         * tests/test-copy-file.sh: New file.
33733         * tests/test-copy-file.c: New file.
33734         * tests/test-copy-file-sameacls.c: New file.
33735
33736 2008-05-22  Eric Blake  <ebb9@byu.net>
33737
33738         Avoid gcc warning.
33739         * tests/test-memcmp.c (main): Pass NULL indirectly.
33740
33741 2008-05-21  Bruno Haible  <bruno@clisp.org>
33742
33743         Add reference doc about ACLs.
33744         * doc/acl-resources.txt: New file.
33745         * doc/acl-cygwin.txt: New file.
33746
33747 2008-05-21  Bruno Haible  <bruno@clisp.org>
33748
33749         Avoid one more warning from gcc.
33750         * lib/vasnprintf.c (IF_LINT): Update comments.
33751         (VASNPRINTF): Use it also for the 'prefix' array initializer.
33752
33753 2008-05-21  Jim Meyering  <meyering@redhat.com>
33754
33755         avoid a warning from gcc
33756         * lib/vasnprintf.c (IF_LINT): Define.
33757         (scale10_round_decimal_long_double):
33758         Use it to avoid a "may be used uninitialized" warning.
33759         (scale10_round_decimal_double): Likewise.
33760
33761 2008-05-21  Simon Josefsson  <simon@josefsson.org>
33762
33763         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
33764         declared.
33765
33766 2008-05-20  Bruno Haible  <bruno@clisp.org>
33767
33768         * tests/test-memcmp.c (main): Test also the sign of the result. Test
33769         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
33770
33771 2008-05-20  Simon Josefsson  <simon@josefsson.org>
33772
33773         * modules/memcmp-tests: New file.
33774         * tests/test-memcmp.c: New file.
33775
33776 2008-05-19  Bruno Haible  <bruno@clisp.org>
33777
33778         * modules/propername (Notice, configure.ac): Put quoted "..." into
33779         --keyword option.
33780         * lib/propername.h: Update comments accordingly.
33781         Reported by Eric Blake.
33782
33783 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
33784
33785         * modules/getpass-gnu (Depends-on): Add fseeko.
33786
33787 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33788
33789         * modules/base64-tests: New file.
33790
33791 2008-05-19  Bo Borgerson <gigabo@gmail.com>
33792
33793         * lib/base64.c (base64_decode_ctx): If a decode context structure
33794         was passed in use it to ignore newlines.  If a context structure
33795         was _not_ passed in, continue to treat newlines as garbage (this
33796         is the historical behavior).  Formerly base64_decode.
33797         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33798         takes a decode context structure.
33799         * lib/base64.h (base64_decode): Macro for four-argument calls.
33800         (base64_decode_alloc): Likewise.
33801         * lib/base64.c (base64_decode_ctx): If a decode context structure
33802         was passed in use it to ignore newlines.  If a context structure
33803         was _not_ passed in, continue to treat newlines as garbage (this
33804         is the historical behavior).  Formerly base64_decode.
33805         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33806         takes a decode context structure.
33807         * lib/base64.h (base64_decode): Macro for four-argument calls.
33808         (base64_decode_alloc): Likewise.
33809
33810 2008-05-19  Jim Meyering  <meyering@redhat.com>
33811
33812         avoid a warning from gcc
33813         * lib/trim.c (IF_LINT): Define.
33814         (trim2): Use it to avoid a "may be used uninitialized" warning.
33815
33816         Fix doc typo.
33817         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
33818
33819 2008-05-19  Bruno Haible  <bruno@clisp.org>
33820
33821         * doc/glibc-functions/getpass.texi: Document limits of other
33822         implementations.
33823
33824 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33825             Bruno Haible <bruno@clisp.org>
33826
33827         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
33828
33829 2008-05-18  Bruno Haible  <bruno@clisp.org>
33830
33831         * modules/propername: New file, from GNU gettext.
33832         * lib/propername.h: New file, from GNU gettext.
33833         * lib/propername.c: New file, from GNU gettext.
33834         * MODULES.html.sh (Internationalization functions): Add propername.
33835
33836 2008-05-16  Jim Meyering  <meyering@redhat.com>
33837             Bruno Haible  <bruno@clisp.org>
33838
33839         Avoid some warnings from "gcc -Wshadow".
33840         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
33841
33842 2008-05-15  Eric Blake  <ebb9@byu.net>
33843
33844         Extend previous patch to cygwin 1.7.0.
33845         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
33846         fast implementation in cygwin >= 1.7.0.
33847         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33849
33850 2008-05-15  Bruno Haible  <bruno@clisp.org>
33851
33852         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
33853         implementation in glibc >= 2.9.
33854         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33855         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33856
33857 2008-05-15  Bruno Haible  <bruno@clisp.org>
33858
33859         * MODULES.html.sh (Internationalization functions): Remove linebreak.
33860         (Unicode string functions): Add unilbrk/*.
33861         Reported by Karl Berry.
33862
33863 2008-05-15  Eric Blake  <ebb9@byu.net>
33864
33865         Fix violation of <stdbool.h> replacement in regex.
33866         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
33867         * lib/regexec.c (re_search_internal): Likewise.
33868         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
33869
33870 2008-05-15  Jim Meyering  <meyering@redhat.com>
33871
33872         avoid distracting test output when git or cvs is not found
33873         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
33874         * tests/test-vc-list-files-git.sh: Likewise.
33875
33876 2008-05-15  Eric Blake  <ebb9@byu.net>
33877
33878         Glibc finally accepted the memmem speedup code, bugzilla #5514.
33879         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
33880         glibc version.
33881         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33882         * doc/posix-functions/strstr.texi (strstr): Likewise.
33883         * lib/str-two-way.h (MAX): Sychronize with glibc.
33884
33885 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
33886
33887         * lib/regcomp.c (optimize_utf8): Add a note on why we test
33888         opr.ctx_type.
33889         (calc_first): Initialize constraint field.
33890         (duplicate_node_closure): Use it instead of special casing ANCHORS.
33891         Fix grammar.
33892         (duplicate_node): Merge constraint field for all node types.
33893         (calc_eclosure_iter): Look at constraint field for all node types.
33894         * lib/regex_internal.c (create_cd_newstate): Don't look at
33895         opr.ctx_type.
33896
33897 2008-05-14  Bruno Haible  <bruno@clisp.org>
33898
33899         Help GCC to do better code generation.
33900         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
33901         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
33902         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
33903         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
33904         Declare with attribute 'malloc' if supported.
33905
33906 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
33907
33908         use "echo STR|wc -c" rather than unportable "expr length STR"
33909         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
33910         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
33911
33912 2008-05-14  Jim Meyering  <meyering@redhat.com>
33913
33914         use dd ibs=$n count=1 ... rather than less-portable head -c$n
33915         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
33916         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
33917         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
33918         via Collin Lasse.
33919
33920 2008-05-14  Eric Blake  <ebb9@byu.net>
33921
33922         Avoid quadratic growth in gl_LIBSOURCES.
33923         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
33924         Suggested by Bruno Haible.
33925
33926         Test xmemdup0.
33927         * modules/xmemdup0-tests: New file.
33928         * tests/test-xmemdup0.c: Likewise.
33929
33930 2008-05-13  Eric Blake  <ebb9@byu.net>
33931
33932         Split xmemdup0 into its own module.
33933         * modules/xmemdup0: New file.
33934         * lib/xmemdup0.h: Likewise.
33935         * lib/xmemdup0.c: Likewise.
33936         * MODULES.html.sh (Memory management functions): Add xmemdup0.
33937         * lib/xalloc.h (xmemdup0): Remove.
33938         * lib/xmalloc.c (xmemdup0): Likewise.
33939
33940 2008-05-13  Eric Blake  <ebb9@byu.net>
33941             Bruno Haible  <bruno@clisp.org>
33942
33943         Reduce number of forks required during autoconf.
33944         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
33945         and gl_LIBSOURCES_DIR.
33946         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
33947         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
33948         m4_syscmd per file.
33949         <m4_foreach_w>: Move...
33950         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
33951
33952 2008-05-13  Eric Blake  <ebb9@byu.net>
33953
33954         * gnulib-tool: Fix various comment typos.
33955
33956 2008-05-12  Bruno Haible  <bruno@clisp.org>
33957
33958         Tailor the linebreaking algorithm.
33959         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
33960
33961 2008-05-12  Bruno Haible  <bruno@clisp.org>
33962
33963         Update to Unicode 5.0.0.
33964         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33965         LBP_JV, LBP_JT. Redistribute values.
33966         (unilbrk_table): Change size.
33967         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
33968         Unicode TR#14 rev. 22.
33969         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33970         LBP_JV, LBP_JT. Redistribute values.
33971         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
33972         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
33973         Update.
33974         * lib/unilbrk/lbrkprop1.h: Regenerated.
33975         * lib/unilbrk/lbrkprop2.h: Regenerated.
33976         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
33977         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
33978         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
33979         Likewise.
33980         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
33981         Likewise.
33982         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
33983         result.
33984         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
33985         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
33986         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
33987         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
33988         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
33989         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
33990
33991 2008-05-11  Bruno Haible  <bruno@clisp.org>
33992
33993         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
33994
33995 2008-05-11  Bruno Haible  <bruno@clisp.org>
33996
33997         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
33998         * modules/unilbrk/gen-lbrk: New file.
33999
34000 2008-05-11  Bruno Haible  <bruno@clisp.org>
34001
34002         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34003         * m4/sha512.m4 (gl_SHA512): Likewise.
34004
34005 2008-05-11  Jim Meyering  <meyering@redhat.com>
34006
34007         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34008         * modules/crypto/sha256: New file.
34009         * modules/crypto/sha512: Likewise.
34010         * lib/sha256.c: Likewise.
34011         * lib/sha256.h: Likewise.
34012         * lib/sha512.c: Likewise.
34013         * lib/sha512.h: Likewise.
34014         * lib/u64.h: Likewise.
34015         * m4/sha256.m4: Likewise.
34016         * m4/sha512.m4: Likewise.
34017         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34018
34019 2008-05-10  Bruno Haible  <bruno@clisp.org>
34020
34021         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34022         (Input/Output <stdio.h>): Add xprintf.
34023         (Signal handling <signal.h>): Add strsignal.
34024         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34025         (Core language properties): Add func.
34026         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34027         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34028         strings.
34029         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34030         (Input/output): New section.
34031         (File system functions): Add openat-die, stat-macros.
34032         (Networking functions): Add sockets.
34033         (Unicode string functions): Add unictype/*.
34034         (Support for building libraries and executables): Add gperf.
34035         (Support for building documentation): Add agpl-3.0.
34036         (Misc): Add nocrash.
34037
34038 2008-05-10  Bruno Haible  <bruno@clisp.org>
34039
34040         * modules/unictype/gen-ctype: New file.
34041
34042 2008-05-10  Jim Meyering  <meyering@redhat.com>
34043
34044         Make chdir-safer.c more efficient on a system with no symlinks.
34045         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34046         also if ELOOP is zero.  Suggested by Bruno Haible.
34047
34048         Make chdir-safer.c slightly safer.
34049         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34050         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34051
34052         Avoid compile failure on systems without ELOOP (like mingw).
34053         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34054         Reported by Bruno Haible.
34055
34056 2008-05-10  Bruno Haible  <bruno@clisp.org>
34057
34058         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34059         (is_utf8_encoding): Use a case-insensitive comparison.
34060         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34061         streq.
34062
34063 2008-05-10  Bruno Haible  <bruno@clisp.org>
34064
34065         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34066         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34067         * lib/unilbrk/ulc-common.h (iconv_string_length,
34068         iconv_string_keeping_offsets): Remove declarations.
34069         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34070         Don't include <iconv.h>, streq.h, xsize.h.
34071         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34072         conversion.
34073         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34074         <iconv.h>, streq.h, xsize.h.
34075         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34076         conversion.
34077         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34078         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34079         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34080         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34081
34082 2008-05-10  Bruno Haible  <bruno@clisp.org>
34083
34084         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34085         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34086
34087         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34088         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34089
34090         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34091         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34092
34093         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34094         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34095
34096         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34097         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34098
34099         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34100         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34101
34102         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34103         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34104
34105         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34106         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34107
34108 2008-05-10  Bruno Haible  <bruno@clisp.org>
34109
34110         Split up 'linebreak' module.
34111         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34112         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34113         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34114         modifications.
34115         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34116         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34117         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34118         lib/linebreak.c.
34119         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34120         lib/linebreak.c.
34121         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34122         lib/linebreak.c.
34123         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34124         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34125         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34126         lib/linebreak.c.
34127         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34128         lib/linebreak.c.
34129         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34130         lib/linebreak.c.
34131         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34132         lib/linebreak.c.
34133         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34134         lib/linebreak.c.
34135         * modules/unilbrk/base: New file.
34136         * modules/unilbrk/tables: New file.
34137         * modules/unilbrk/u8-possible-linebreaks: New file.
34138         * modules/unilbrk/u16-possible-linebreaks: New file.
34139         * modules/unilbrk/u32-possible-linebreaks: New file.
34140         * modules/unilbrk/ulc-common: New file.
34141         * modules/unilbrk/ulc-possible-linebreaks: New file.
34142         * modules/unilbrk/u8-width-linebreaks: New file.
34143         * modules/unilbrk/u16-width-linebreaks: New file.
34144         * modules/unilbrk/u32-width-linebreaks: New file.
34145         * modules/unilbrk/ulc-width-linebreaks: New file.
34146         * lib/linebreak.h: Remove file.
34147         * lib/linebreak.c: Remove file.
34148         * m4/linebreak.m4: Remove file.
34149         * modules/linebreak: Remove file.
34150         * NEWS: Mention the changes.
34151
34152 2008-05-09  Eric Blake  <ebb9@byu.net>
34153
34154         Add xmemdup0.
34155         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34156         implementation.
34157         * lib/xmalloc.c (xmemdup0): New C implementation.
34158
34159 2008-05-08  Bruno Haible  <bruno@clisp.org>
34160
34161         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34162
34163 2008-05-07  Eric Blake  <ebb9@byu.net>
34164
34165         Support cross-compilation of <wctype.h>.
34166         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34167         AC_CACHE_CHECK.
34168
34169 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34170
34171         * build-aux/vc-list-files: Add support for bzr.
34172
34173 2008-05-03  Jim Meyering  <meyering@redhat.com>
34174
34175         avoid failed assertion with tight malloc
34176         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34177
34178 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34179
34180         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34181         are needed from arpa/inet.h.
34182         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34183         Reported by Bruno Haible.
34184
34185 2008-05-02  Jim Meyering  <meyering@redhat.com>
34186
34187         avoid compilation error on FreeBSD 6
34188         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34189
34190 2008-05-01  Jim Meyering  <meyering@redhat.com>
34191
34192         useless-if-before-free: correct --help's exit status description
34193         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34194         for one or more matches, etc.  Reported by Bruno Haible.
34195
34196         vc-list-files: make the stand-alone gnulib test work
34197         * modules/vc-list-files-tests (configure.ac):
34198         Define and AC_SUBST abs_aux_dir.
34199         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34200         $(abs_top_srcdir) to each script and having each of them
34201         duplicate the work of setting PATH, set PATH here, using
34202         the new variable, abs_aux_dir instead.
34203         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34204         * tests/test-vc-list-files-git.sh: Likewise.
34205         Reported by Bruno Haible.
34206
34207 2008-05-01  Bruno Haible  <bruno@clisp.org>
34208
34209         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34210         reallocation. Rename 'done' to 'found_delimiter'.
34211
34212 2008-05-01  Jim Meyering  <meyering@redhat.com>
34213
34214         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34215         * build-aux/vc-list-files: Use `...`, not $(...).
34216
34217 2008-04-30  Jim Meyering  <meyering@redhat.com>
34218
34219         add tests for vc-list-files
34220         * modules/vc-list-files-tests: New module.
34221         * tests/test-vc-list-files-cvs.sh: New file.
34222         * tests/test-vc-list-files-git.sh: New file.
34223
34224         avoid a warning from gcc
34225         * lib/getndelim2.c (IF_LINT): Define.
34226         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34227
34228         vc-list-files: work properly with build-aux/cvsu, too
34229         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34230         to all cvs-based clauses.
34231
34232         vc-list-files: work properly in the CVS+awk case, too
34233         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34234
34235         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34236         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34237         take more than one file argument, so .  Add quotes, just in case $dir
34238         ever contains a shell meta-character.  Prompted by Soren Hansen in
34239         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34240
34241 2008-04-29  Eric Blake  <ebb9@byu.net>
34242
34243         Optimize getndelim2 to use block operations when possible.
34244         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34245         freadseek, and memchr2.
34246         * lib/getndelim2.c (getndelim2): Use them for block reads.
34247
34248 2008-04-29  Bruno Haible  <bruno@clisp.org>
34249
34250         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34251         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34252         * modules/inet_ntop (Depends-on): Add extensions.
34253         * modules/inet_pton (Depends-on): Likewise.
34254         Reported by Simon Josefsson.
34255
34256 2008-04-29  Jim Meyering  <meyering@redhat.com>
34257
34258         When the is more than one match in a block, match all of them.
34259         * build-aux/useless-if-before-free: Iterate through each block
34260         until there are no more matches.
34261
34262         Fix broken useless-if-before-free script.
34263         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34264         the expression to match cast of argument to free-like function.
34265
34266 2008-04-29  Eric Blake  <ebb9@byu.net>
34267
34268         Use new header.
34269         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34270
34271 2008-04-29  Jim Meyering  <meyering@redhat.com>
34272
34273         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34274         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34275         by gnulib to exist and to declare e.g., inet_ntop.
34276         Don't include "inet_ntop.h", now removed.
34277
34278         * m4/arpa_inet_h.m4: Remove trailing blanks.
34279
34280 2008-04-29  Eric Blake  <ebb9@byu.net>
34281
34282         Silence valgrind on safe reads beyond potential array bounds.
34283         * lib/rawmemchr.valgrind: New file.
34284         * lib/strchrnul.valgrind: Likewise.
34285         * modules/rawmemchr (Files): Distribute new file.
34286         * modules/strchrnul (Files): Likewise.
34287         Suggested by Bruno Haible.
34288
34289 2008-04-29  Bruno Haible  <bruno@clisp.org>
34290
34291         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34292         (inet_ntop, inet_pton): Change portability warning's wording.
34293         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34294         Invoke gl_CHECK_NEXT_HEADERS.
34295         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34296         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34297         set ARPA_INET_H.
34298         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34299         * modules/arpa_inet (Description): No longer only for systems that
34300         lack it.
34301         (Depends-on): Add include_next.
34302         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34303         HAVE_ARPA_INET_H.
34304
34305 2008-04-29  Jim Meyering  <meyering@redhat.com>
34306
34307         * modules/mkdir (License): Re-license as LGPLv2+.
34308
34309 2008-04-29  Bruno Haible  <bruno@clisp.org>
34310
34311         * modules/rawmemchr (Maintainer): Set to Eric.
34312         * modules/strchrnul (Maintainer): Likewise.
34313
34314 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34315
34316         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34317         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34318
34319         * modules/arpa_inet (arpa/inet.h): Use them.
34320
34321 2008-04-28  Eric Blake  <ebb9@byu.net>
34322
34323         Test getndelim2.
34324         * modules/getndelim2-tests: New file.
34325         * tests/test-getndelim2.c: Likewise.
34326         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34327         stream.
34328         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34329
34330         * MODULES.html.sh: Document new module.
34331
34332 2008-04-20  Bruno Haible  <bruno@clisp.org>
34333
34334         * lib/c-stack.c (die): Use raise.
34335         * modules/c-stack (Depends-on): Add raise.
34336
34337 2008-04-28  Bruno Haible  <bruno@clisp.org>
34338
34339         Expect rpmatch to be declared.
34340         * lib/yesno.c (rpmatch): Remove declaration.
34341
34342         Declare rpmatch.
34343         * lib/stdlib.in.h (rpmatch): New declaration.
34344         * lib/rpmatch.c: Include <stdlib.h> first.
34345         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34346         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34348         HAVE_RPMATCH.
34349         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34351         (Include): Set to <stdlib.h>.
34352         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34353         HAVE_RPMATCH.
34354         * NEWS: Document the change.
34355
34356 2008-04-28  Bruno Haible  <bruno@clisp.org>
34357
34358         Change rpmatch to use nl_langinfo when appropriate.
34359         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34360         (N_): New macro.
34361         (localized_pattern): New function/macro.
34362         (try): Remove match, nomatch arguments. Copy the pattern into safe
34363         memory before caching it.
34364         (rpmatch): Use localized_pattern. Add translator comments.
34365         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34366         Suggested by Eric Blake.
34367         * modules/rpmatch (Depends-on): Add stdbool.
34368
34369 2008-04-28  Eric Blake  <ebb9@byu.net>
34370
34371         Add rawmemchr module, matching glibc.
34372         * modules/string (Makefile.am): New indicator.
34373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34374         * lib/string.in.h (rawmemchr): Declare when appropriate.
34375         * modules/rawmemchr: New file.
34376         * m4/rawmemchr.m4: Likewise.
34377         * lib/rawmemchr.c: Likewise.
34378         * modules/rawmemchr-tests: Likewise.
34379         * tests/test-rawmemchr.c: Likewise.
34380         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34381         module.
34382         * modules/strchrnul (Depends-on): Add rawmemchr.
34383         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34384
34385         Whitespace cleanup.
34386         * tests/test-strchrnul.c: Reindent.
34387         * lib/strchrnul.c: Likewise.
34388
34389         Optimize and test strchrnul.
34390         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34391         * modules/strchrnul-tests: New file.
34392         * tests/test-strchrnul.c: Likewise.
34393
34394         Remove intprops dependency.
34395         * modules/memchr (Depends-on): Remove intprops.
34396         * modules/memrchr (Depends-on): Likewise.
34397         * modules/memchr2 (Depends-on): Likewise.
34398         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34399         * lib/memrchr.c (__memrchr): Likewise.
34400         * lib/memrchr2.c (memchr2): Likewise.
34401         Reported by Simon Josefsson.
34402
34403 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34404
34405         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34406         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34407
34408 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34409
34410         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34411
34412         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34413
34414         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34415
34416         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34417         declarations.
34418         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34419
34420         * m4/inet_pton.m4: Don't check for header files.
34421
34422         * m4/inet_ntop.m4: Don't check for header files.
34423
34424 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34425
34426         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34427         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34428         trigger for cygwin).
34429         Reported by Bruno Haible  <bruno@clisp.org>.
34430
34431 2008-04-28  Bruno Haible  <bruno@clisp.org>
34432
34433         * doc/posix-functions/strdup.texi: Mention mingw problem.
34434
34435 2008-04-27  Bruno Haible  <bruno@clisp.org>
34436
34437         * modules/stat-time-tests (Depends-on): Add sleep.
34438         * tests/test-stat-time.c (force_unlink): New function.
34439         (cleanup): Use it.
34440         (test_mtime): Remove the ctime related tests.
34441         (test_ctime): New function, containing the ctime related tests.
34442         (main): Call test_ctime, except on native Windows platforms.
34443
34444 2008-04-27  Bruno Haible  <bruno@clisp.org>
34445
34446         * lib/rpmatch.c (rpmatch): Add some comments.
34447         Reported by James Youngman <jay@gnu.org>.
34448
34449 2008-04-27  Bruno Haible  <bruno@clisp.org>
34450
34451         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34452         quiet NaNs.
34453
34454 2008-04-27  Bruno Haible  <bruno@clisp.org>
34455
34456         Make test-yesno.sh work on mingw.
34457         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34458         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34459         (main): Set stdin to binary mode.
34460         * modules/yesno-tests (Depends-on): Add binary-io.
34461
34462 2008-04-27  Bruno Haible  <bruno@clisp.org>
34463
34464         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34465         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34466         argument that lie outside the IEEE 854 domain.
34467         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34468         (gl_ISFINITE): Use it.
34469         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34470
34471 2008-04-27  Bruno Haible  <bruno@clisp.org>
34472
34473         Allow local renaming in config.h.
34474         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34475
34476 2008-04-27  Bruno Haible  <bruno@clisp.org>
34477
34478         * lib/memchr.c (__memchr): Change type of 'i'.
34479         * lib/memchr2.c (memchr2): Likewise.
34480
34481 2008-04-26  Eric Blake  <ebb9@byu.net>
34482         and Bruno Haible  <bruno@clisp.org>
34483
34484         Optimize and test memrchr.
34485         * modules/memrchr (Depends-on): Add intprops.
34486         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
34487         * modules/memrchr-tests: New file.
34488         * tests/test-memrchr.c: New file.
34489
34490 2008-04-26  Bruno Haible  <bruno@clisp.org>
34491
34492         Add tentative support for DragonFly BSD.
34493         * lib/stdio-impl.h: Add macros for DragonFly BSD.
34494         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
34495         fp.
34496         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34497         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
34498         * lib/fpurge.c (fpurge): Likewise.
34499         * lib/freadable.c (freaadable): Likewise.
34500         * lib/freadahead.c (freadahead): Likewise.
34501         * lib/freading.c (freading): Likewise.
34502         * lib/freadptr.c (freadptr): Likewise.
34503         * lib/freadseek.c (freadptrinc): Likewise.
34504         * lib/fseeko.c (fseeko): Likewise.
34505         * lib/fseterr.c (fseterr): Likewise.
34506         * lib/fwritable.c (fwritable): Likewise.
34507         * lib/fwriting.c (fwriting): Likewise.
34508
34509 2008-04-26  Bruno Haible  <bruno@clisp.org>
34510
34511         * lib/stdio-impl.h: New file.
34512         * lib/fbufmode.c: Include stdio-impl.h.
34513         (fbufmode): Use fp_, remove redundant #defines.
34514         * lib/fflush.c: Include stdio-impl.h.
34515         (clear_ungetc_buffer): Remove redundant #defines.
34516         * lib/fpurge.c: Include stdio-impl.h.
34517         (fpurge): Remove redundant #defines.
34518         * lib/freadable.c: Include stdio-impl.h.
34519         (freadable): Remove redundant #defines.
34520         * lib/freadahead.c: Include stdio-impl.h.
34521         (freadahead): Remove redundant #defines.
34522         * lib/freading.c: Include stdio-impl.h.
34523         (freading): Remove redundant #defines.
34524         * lib/freadptr.c: Include stdio-impl.h.
34525         (freadptr): Remove redundant #defines.
34526         * lib/freadseek.c: Include stdio-impl.h.
34527         (freadptrinc): Remove redundant #defines.
34528         * lib/fseeko.c: Include stdio-impl.h.
34529         (rpl_fseeko): Remove redundant #defines.
34530         * lib/fseterr.c: Include stdio-impl.h.
34531         (fseterr): Remove redundant #defines.
34532         * lib/fwritable.c: Include stdio-impl.h.
34533         (fwritable: Remove redundant #defines.
34534         * lib/fwriting.c: Include stdio-impl.h.
34535         (fwriting): Remove redundant #defines.
34536         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34537         * modules/fflush (Files): Likewise.
34538         * modules/fpurge (Files): Likewise.
34539         * modules/freadable (Files): Likewise.
34540         * modules/freadahead (Files): Likewise.
34541         * modules/freading (Files): Likewise.
34542         * modules/freadptr (Files): Likewise.
34543         * modules/freadseek (Files): Likewise.
34544         * modules/fseeko (Files): Likewise.
34545         * modules/fseterr (Files): Likewise.
34546         * modules/fwritable (Files): Likewise.
34547         * modules/fwriting (Files): Likewise.
34548
34549 2008-04-26  Bruno Haible  <bruno@clisp.org>
34550
34551         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34552         restore_seek_optimization, update_fpos_cache): New functions, extracted
34553         from rpl_fflush.
34554         (rpl_fflush): Use them.
34555         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
34556         (gl_REPLACE_FFLUSH): Use it.
34557
34558 2008-04-26  Bruno Haible  <bruno@clisp.org>
34559
34560         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
34561         on Solaris.
34562         * tests/test-xstrtoimax.sh: Likewise.
34563         * tests/test-xstrtoumax.sh: Likewise.
34564         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34565
34566 2008-04-26  Bruno Haible  <bruno@clisp.org>
34567
34568         * modules/memchr-tests: New file.
34569         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
34570
34571 2008-04-26  Eric Blake  <ebb9@byu.net>
34572             Bruno Haible  <bruno@clisp.org>
34573
34574         * lib/memchr.c: Include intprops.h.
34575         (__memchr): Optimize parallel detection of matching bytes. Rename local
34576         variables. Add explanatory comments.
34577
34578 2008-04-26  Bruno Haible  <bruno@clisp.org>
34579
34580         Fix module 'memchr', broken since 2000-10-28.
34581         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
34582
34583 2008-04-26  Bruno Haible  <bruno@clisp.org>
34584
34585         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
34586         comments.
34587
34588 2008-04-25  Eric Blake  <ebb9@byu.net>
34589
34590         Use native fstatat on cygwin 1.7.0.
34591         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
34592         first.
34593
34594 2008-04-23  Eric Blake  <ebb9@byu.net>
34595
34596         Improve memchr2 performance.
34597         * lib/memchr2.c (memchr2): Further optimize parallel detection of
34598         NUL bytes.
34599         * modules/memchr2 (Depends-on): Use intprops.h.
34600
34601 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34602
34603         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
34604         an inline function instead of a CPP macro.  Patch by Ben Pfaff
34605         <blp@cs.stanford.edu>.
34606
34607 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34608
34609         * lib/arpa_inet.in.h: New file.
34610
34611         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
34612         (Makefile.am): Sed in substitute header file.
34613
34614         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
34615         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
34616
34617         * modules/inet_ntop (configure.ac): Use
34618         gl_ARPA_INET_MODULE_INDICATOR.
34619
34620         * modules/inet_pton (configure.ac): Use
34621         gl_ARPA_INET_MODULE_INDICATOR.
34622
34623 2008-04-22  Jim Meyering  <meyering@redhat.com>
34624
34625         * modules/verify (License): Re-license as LGPLv2+.
34626
34627 2008-04-22  Simon Josefsson  <simon@josefsson.org>
34628
34629         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
34630         parameter to void* as per POSIX standard (MinGW uses char*).
34631
34632 2008-04-21  Bruno Haible  <bruno@clisp.org>
34633
34634         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34635         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34636         Define to replacements if REPLACE_ISWCNTRL is 1.
34637         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
34638         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
34639         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
34640         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
34641         what it fixes.
34642         * doc/posix-functions/iswalpha.texi: Likewise.
34643         * doc/posix-functions/iswblank.texi: Likewise.
34644         * doc/posix-functions/iswcntrl.texi: Likewise.
34645         * doc/posix-functions/iswdigit.texi: Likewise.
34646         * doc/posix-functions/iswgraph.texi: Likewise.
34647         * doc/posix-functions/iswlower.texi: Likewise.
34648         * doc/posix-functions/iswprint.texi: Likewise.
34649         * doc/posix-functions/iswpunct.texi: Likewise.
34650         * doc/posix-functions/iswspace.texi: Likewise.
34651         * doc/posix-functions/iswupper.texi: Likewise.
34652         * doc/posix-functions/iswxdigit.texi: Likewise.
34653         Reported by Alain Guibert.
34654
34655 2008-04-21  Bruno Haible  <bruno@clisp.org>
34656
34657         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
34658         Patch by Alain Guibert.
34659
34660 2008-04-21  Bruno Haible  <bruno@clisp.org>
34661
34662         Fix test failures on mingw.
34663         * tests/test-xstrtol.c (print_no_progname): New function.
34664         (main): Install it in error_print_progname hook.
34665         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
34666         * tests/test-xstrtoimax.sh: Likewise.
34667         * tests/test-xstrtoumax.sh: Likewise.
34668
34669 2008-04-21  Bruno Haible  <bruno@clisp.org>
34670
34671         Fix test failure on mingw.
34672         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
34673
34674 2008-04-21  Bruno Haible  <bruno@clisp.org>
34675
34676         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
34677         Actually assign a value.
34678
34679 2008-04-20  Bruno Haible  <bruno@clisp.org>
34680
34681         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
34682         take 2.
34683         * lib/canonicalize.c (canonicalize_file_name): Elide if the
34684         'canonicalize-lgpl' module is also used.
34685         * lib/canonicalize-lgpl.c: Undo last change.
34686         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
34687
34688 2008-04-20  Bruno Haible  <bruno@clisp.org>
34689
34690         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
34691         config.h. Provide _mkdir based fallback for mingw.
34692         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
34693         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
34694         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
34695         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
34696         rather than defining mkdir in config.h.
34697         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
34698         (gl_SYS_STAT_H_DEFAULTS): New macro.
34699         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
34700         HAVE_IO_H any more.
34701         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
34702         HAVE_DECL_MKDIR and HAVE_IO_H.
34703
34704 2008-04-20  Bruno Haible  <bruno@clisp.org>
34705
34706         * lib/isapipe.c: Port to native Windows platforms.
34707
34708 2008-04-20  Bruno Haible  <bruno@clisp.org>
34709
34710         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
34711
34712 2008-04-21  Eric Blake  <ebb9@byu.net>
34713
34714         Work around preprocessors that don't handle UINTMAX_MAX.
34715         * lib/memchr2.c (memchr2): Avoid embedded #if.
34716         Reported by Alain Guibert, fix suggested by Bruno Haible.
34717
34718 2008-04-21  Simon Josefsson  <simon@josefsson.org>
34719
34720         * doc/posix-functions/strftime.texi (strftime): Explain better
34721         Windows incompatibility.  Suggested by Micah Cowan
34722         <micah@cowan.name>.
34723
34724 2008-04-20  Bruno Haible  <bruno@clisp.org>
34725
34726         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
34727         unistr/u8-mblen.
34728
34729 2008-04-20  Bruno Haible  <bruno@clisp.org>
34730
34731         Fix test failure on platforms with non-GNU iconv.
34732         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
34733         (U_TO_U8): Use it, rather than u16_to_u8.
34734         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
34735         units at the end of the input string.
34736         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
34737
34738 2008-04-20  Bruno Haible  <bruno@clisp.org>
34739
34740         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
34741         when the resulting length is 0.
34742         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
34743
34744 2008-04-20  Bruno Haible  <bruno@clisp.org>
34745
34746         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
34747         works.
34748         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
34749
34750 2008-04-20  Bruno Haible  <bruno@clisp.org>
34751
34752         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
34753         * modules/tsearch-tests (configure.ac): Test for initstate function.
34754
34755 2008-04-20  Bruno Haible  <bruno@clisp.org>
34756
34757         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
34758         for nlink_t if missing.
34759         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
34760
34761 2008-04-19  Bruno Haible  <bruno@clisp.org>
34762
34763         Work around snprintf bug on Linux libc5.
34764         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
34765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34766         gl_SNPRINTF_SIZE1.
34767         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34768         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
34769         that test failed.
34770         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34771         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
34772         * modules/snprintf (Files): Add m4/printf.m4.
34773         * modules/vsnprintf (Files): Likewise.
34774         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
34775         * doc/posix-functions/vsnprintf.texi: Likewise.
34776
34777 2008-04-19  Bruno Haible  <bruno@clisp.org>
34778
34779         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
34780         from 0.0058 to less than 10^-7.
34781
34782 2008-04-19  Bruno Haible  <bruno@clisp.org>
34783
34784         Fix rounding when a precision is given.
34785         * lib/vasnprintf.c (is_borderline): New function.
34786         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
34787         9...9x.
34788         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
34789         %e, %g.
34790         * tests/test-vasprintf-posix.c (test_function): Likewise.
34791         * tests/test-snprintf-posix.h (test_function): Likewise.
34792         * tests/test-sprintf-posix.h (test_function): Likewise.
34793         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
34794         * tests/test-printf-posix.h (test_function): Likewise.
34795         * tests/test-printf-posix.output: Update.
34796         Reported by John Darrington <john@darrington.wattle.id.au> via
34797         Ben Pfaff <blp@cs.stanford.edu>.
34798
34799 2008-04-18  Simon Josefsson  <simon@josefsson.org>
34800
34801         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
34802         Suggested by Bruno Haible <bruno@clisp.org>.
34803
34804 2008-04-17  Bruno Haible  <bruno@clisp.org>
34805
34806         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
34807         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
34808         implementation.
34809         Patch by Bruce Merry <bmerry@gmail.com>.
34810
34811 2008-04-17  Simon Josefsson  <simon@josefsson.org>
34812
34813         * doc/posix-functions/strftime.texi (strftime): Mention that %e
34814         doesn't work under Windows.
34815
34816 2008-04-16  Bruno Haible  <bruno@clisp.org>
34817
34818         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
34819         New macros.
34820         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
34821         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
34822         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
34823         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
34824         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
34825         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
34826         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
34827         macros.
34828         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
34829         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
34830         Northern Sotho, Uighur.
34831
34832 2008-04-16  Bruno Haible  <bruno@clisp.org>
34833
34834         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
34835         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
34836         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
34837         Reported by Daniel Bergström <daniel@octocode.com>.
34838
34839 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
34840             Bruno Haible  <bruno@clisp.org>
34841
34842         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
34843         function.
34844         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
34845         New functions, mostly extracted from gl_locale_name_default.
34846         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
34847
34848 2008-04-16  Eric Blake  <ebb9@byu.net>
34849
34850         Adjust strtod detection to catch glibc 2.7 bug.
34851         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
34852         Reported by John Gatewood Ham.
34853
34854 2008-04-16  Bruno Haible  <bruno@clisp.org>
34855
34856         Add tentative support for Linux libc5.
34857         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
34858         * lib/fpurge.c (fpurge): Likewise.
34859         * lib/freadable.c (freadable): Likewise.
34860         * lib/freadahead.c (freadahead): Likewise.
34861         * lib/freading.c (freading): Likewise.
34862         * lib/freadptr.c (freadptr): Likewise.
34863         * lib/freadseek.c (freadptrinc): Likewise.
34864         * lib/fseeko.c (rpl_fseeko): Likewise.
34865         * lib/fseterr.c (fseterr): Likewise.
34866         * lib/fwritable.c (fwritable): Likewise.
34867         * lib/fwriting.c (fwriting): Likewise.
34868         Reported by Alain Guibert <alguibert+bts@free.fr>.
34869
34870 2008-04-15  Bruno Haible  <bruno@clisp.org>
34871
34872         * modules/mathl (configure.ac): Define module indicator.
34873
34874 2008-04-15  Bruno Haible  <bruno@clisp.org>
34875
34876         * lib/logl.c (logl): Remove unused variables.
34877
34878 2008-04-15  Bruno Haible  <bruno@clisp.org>
34879
34880         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
34881         fails.
34882
34883 2008-04-15  Bruno Haible  <bruno@clisp.org>
34884
34885         * lib/trim.c (trim2): Fix argument of isspace() macro.
34886
34887 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
34888
34889         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
34890         to 0.
34891         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
34892
34893 2008-04-14  Bruno Haible  <bruno@clisp.org>
34894
34895         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
34896         AC_LANG_PROGRAM argument.
34897         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
34898         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
34899         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34900         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34901         * m4/math_h.m4 (gl_MATH_H): Likewise.
34902         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
34903         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34904         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34905         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
34906         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34907         * m4/regex.m4 (gl_REGEX): Likewise.
34908         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
34909         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
34910         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34911         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
34912         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34913         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34915         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34916
34917 2008-04-14  Jim Meyering  <meyering@redhat.com>
34918
34919         test-strtod: fix typos: s/abs/fabs/
34920         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
34921
34922 2008-04-13  Bruno Haible  <bruno@clisp.org>
34923
34924         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
34925         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
34926         module is also used and while not building the reloc-wrapper.
34927
34928 2008-04-13  Bruno Haible  <bruno@clisp.org>
34929
34930         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
34931
34932 2008-04-13  Bruno Haible  <bruno@clisp.org>
34933
34934         Fix AIX compilation failure introduced on 2008-04-02.
34935         * tests/test-frexp.c (exp): Undefine before redefining.
34936         * tests/test-frexpl.c (exp): Likewise.
34937
34938 2008-04-13  Bruno Haible  <bruno@clisp.org>
34939
34940         Work around a HP-UX stdio bug.
34941         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
34942         * tests/test-ftello.c (main): Likewise.
34943         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
34944         * doc/posix-functions/ftello.texi: Likewise.
34945
34946 2008-04-13  Bruno Haible  <bruno@clisp.org>
34947
34948         Make test-signbit pass on HP-UX/hppa.
34949         * tests/test-signbit.c (minus_zerol): New variable.
34950         (test_signbitl): Use it.
34951
34952 2008-04-13  Bruno Haible  <bruno@clisp.org>
34953
34954         Make truncl work on OSF/1 4.0.
34955         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
34956         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34957         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
34959         HAVE_DECL_TRUNCL.
34960         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
34961         HAVE_DECL_TRUNCL.
34962         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
34963
34964 2008-04-13  Bruno Haible  <bruno@clisp.org>
34965
34966         * lib/unictype.h: Remove trailing comma from enumeration definitions.
34967
34968 2008-04-13  Bruno Haible  <bruno@clisp.org>
34969
34970         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
34971         expression, so as to avoid HP-UX 11 cc compiler bug.
34972
34973 2008-04-13  Bruno Haible  <bruno@clisp.org>
34974
34975         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
34976
34977 2008-04-13  Bruno Haible  <bruno@clisp.org>
34978
34979         * lib/git-merge-changelog.c: Remove empty declaration outside of
34980         functions.
34981
34982 2008-04-13  Bruno Haible  <bruno@clisp.org>
34983
34984         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
34985
34986 2008-04-13  Bruno Haible  <bruno@clisp.org>
34987
34988         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
34989         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
34990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
34991         also if it exists but lacks definitions of the SHUT_* macros.
34992         * modules/sys_socket (Description): Update.
34993         Reported by Elbert Pol <e.pol@chello.nl>.
34994
34995 2008-04-13  Bruno Haible  <bruno@clisp.org>
34996
34997         * lib/localcharset.c (OS2): Don't redefine if already defined.
34998         Reported by Elbert Pol <e.pol@chello.nl>.
34999
35000 2008-04-13  Bruno Haible  <bruno@clisp.org>
35001
35002         * lib/binary-io.h [__EMX__]: Include <io.h>.
35003         Reported by Elbert Pol <e.pol@chello.nl>.
35004
35005 2008-04-12  Bruno Haible  <bruno@clisp.org>
35006
35007         * lib/fpucw.h: Enable the definitions also for x86_64.
35008         Needed for NetBSD/x86_64.
35009         Reported by Thomas Klausner <tk@giga.or.at>.
35010
35011 2008-04-12  Bruno Haible  <bruno@clisp.org>
35012
35013         * tests/test-strtod.c: Include isnand.h.
35014         (main): Use isnand instead of isnan.
35015         Reported by Jim Meyering.
35016
35017 2008-04-12  Bruno Haible  <bruno@clisp.org>
35018
35019         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35020         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35021
35022 2008-04-12  Jim Meyering  <meyering@redhat.com>
35023
35024         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35025
35026 2008-04-12  Bruno Haible  <bruno@clisp.org>
35027
35028         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35029         Reported by Elbert Pol <e.pol@chello.nl>.
35030
35031 2008-04-12  Eric Blake  <ebb9@byu.net>
35032
35033         Work around Solaris 10 math.h bug.
35034         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35035         (gl_MATH_H_DEFAULTS): Set up default.
35036         * modules/math (Makefile.am): Replace new indicators.
35037         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35038         * tests/test-math.c (main): Test this.
35039         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35040         * doc/posix-headers/math.texi (math.h): Mention bug.
35041         Reported by Nelson H. F. Beebe and Jim Meyering.
35042
35043 2008-04-11  Bruno Haible  <bruno@clisp.org>
35044
35045         Adapt to future versions of Apple GCC.
35046         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35047         Reported by Peter O'Gorman <peter@pogma.com>.
35048
35049 2008-04-11  Bruno Haible  <bruno@clisp.org>
35050
35051         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35052
35053 2008-04-11  Bruno Haible  <bruno@clisp.org>
35054
35055         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35056
35057         * modules/getaddrinfo-tests (Makefile.am): Define
35058         test_getaddrinfo_LDADD.
35059
35060 2008-04-11  Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35063         (init): Fix syntax error.
35064         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35065         is declared.
35066
35067 2008-04-11  Bruno Haible  <bruno@clisp.org>
35068
35069         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35070         * modules/glob (Depends-on): Add stdbool.
35071
35072 2008-04-11  Bruno Haible  <bruno@clisp.org>
35073
35074         * lib/trim.c: Include <string.h>.
35075
35076 2008-04-11  Eric Blake  <ebb9@byu.net>
35077
35078         Avoid compile failure on OS/2.
35079         * lib/regex_internal.h (internal_function): Disable optimization
35080         on OS/2 (__EMX__), where it caused compiler error.
35081         Reported by Elbert Pol.
35082
35083 2008-04-11  Bruno Haible  <bruno@clisp.org>
35084
35085         Flush the standard error stream before aborting. Needed on mingw.
35086         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35087         * tests/test-array_list.c (ASSERT): Likewise.
35088         * tests/test-array_oset.c (ASSERT): Likewise.
35089         * tests/test-avltree_list.c (ASSERT): Likewise.
35090         * tests/test-avltree_oset.c (ASSERT): Likewise.
35091         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35092         * tests/test-binary-io.c (ASSERT): Likewise.
35093         * tests/test-byteswap.c (ASSERT): Likewise.
35094         * tests/test-c-ctype.c (ASSERT): Likewise.
35095         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35096         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35097         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35098         * tests/test-c-strstr.c (ASSERT): Likewise.
35099         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35100         * tests/test-canonicalize.c (ASSERT): Likewise.
35101         * tests/test-carray_list.c (ASSERT): Likewise.
35102         * tests/test-ceilf1.c (ASSERT): Likewise.
35103         * tests/test-ceilf2.c (ASSERT): Likewise.
35104         * tests/test-ceill.c (ASSERT): Likewise.
35105         * tests/test-count-one-bits.c (ASSERT): Likewise.
35106         * tests/test-fbufmode.c (ASSERT): Likewise.
35107         * tests/test-fflush2.c (ASSERT): Likewise.
35108         * tests/test-floorf1.c (ASSERT): Likewise.
35109         * tests/test-floorf2.c (ASSERT): Likewise.
35110         * tests/test-floorl.c (ASSERT): Likewise.
35111         * tests/test-fopen.c (ASSERT): Likewise.
35112         * tests/test-fpending.c (ASSERT): Likewise.
35113         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35114         * tests/test-fpurge.c (ASSERT): Likewise.
35115         * tests/test-freadable.c (ASSERT): Likewise.
35116         * tests/test-freadahead.c (ASSERT): Likewise.
35117         * tests/test-freading.c (ASSERT): Likewise.
35118         * tests/test-freadptr.c (ASSERT): Likewise.
35119         * tests/test-freadptr2.c (ASSERT): Likewise.
35120         * tests/test-freadseek.c (ASSERT): Likewise.
35121         * tests/test-freopen.c (ASSERT): Likewise.
35122         * tests/test-frexp.c (ASSERT): Likewise.
35123         * tests/test-frexpl.c (ASSERT): Likewise.
35124         * tests/test-fseek.c (ASSERT): Likewise.
35125         * tests/test-fseeko.c (ASSERT): Likewise.
35126         * tests/test-fstrcmp.c (ASSERT): Likewise.
35127         * tests/test-ftell.c (ASSERT): Likewise.
35128         * tests/test-ftello.c (ASSERT): Likewise.
35129         * tests/test-func.c (ASSERT): Likewise.
35130         * tests/test-fwritable.c (ASSERT): Likewise.
35131         * tests/test-fwriting.c (ASSERT): Likewise.
35132         * tests/test-getdelim.c (ASSERT): Likewise.
35133         * tests/test-getline.c (ASSERT): Likewise.
35134         * tests/test-i-ring.c (ASSERT): Likewise.
35135         * tests/test-iconv-utf.c (ASSERT): Likewise.
35136         * tests/test-iconv.c (ASSERT): Likewise.
35137         * tests/test-isfinite.c (ASSERT): Likewise.
35138         * tests/test-isnand.c (ASSERT): Likewise.
35139         * tests/test-isnanf.c (ASSERT): Likewise.
35140         * tests/test-isnanl.h (ASSERT): Likewise.
35141         * tests/test-ldexpl.c (ASSERT): Likewise.
35142         * tests/test-linked_list.c (ASSERT): Likewise.
35143         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35144         * tests/test-localename.c (ASSERT): Likewise.
35145         * tests/test-lseek.c (ASSERT): Likewise.
35146         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35147         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35148         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35149         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35150         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35151         * tests/test-mbschr.c (ASSERT): Likewise.
35152         * tests/test-mbscspn.c (ASSERT): Likewise.
35153         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35154         * tests/test-mbspbrk.c (ASSERT): Likewise.
35155         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35156         * tests/test-mbsrchr.c (ASSERT): Likewise.
35157         * tests/test-mbsspn.c (ASSERT): Likewise.
35158         * tests/test-mbsstr1.c (ASSERT): Likewise.
35159         * tests/test-mbsstr2.c (ASSERT): Likewise.
35160         * tests/test-mbsstr3.c (ASSERT): Likewise.
35161         * tests/test-memchr2.c (ASSERT): Likewise.
35162         * tests/test-memmem.c (ASSERT): Likewise.
35163         * tests/test-open.c (ASSERT): Likewise.
35164         * tests/test-printf-frexp.c (ASSERT): Likewise.
35165         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35166         * tests/test-printf-posix.c (ASSERT): Likewise.
35167         * tests/test-quotearg.c (ASSERT): Likewise.
35168         * tests/test-rbtree_list.c (ASSERT): Likewise.
35169         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35170         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35171         * tests/test-round1.c (ASSERT): Likewise.
35172         * tests/test-roundf1.c (ASSERT): Likewise.
35173         * tests/test-roundl.c (ASSERT): Likewise.
35174         * tests/test-signbit.c (ASSERT): Likewise.
35175         * tests/test-sleep.c (ASSERT): Likewise.
35176         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35177         * tests/test-snprintf.c (ASSERT): Likewise.
35178         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35179         * tests/test-stat-time.c (ASSERT): Likewise.
35180         * tests/test-strcasestr.c (ASSERT): Likewise.
35181         * tests/test-strerror.c (ASSERT): Likewise.
35182         * tests/test-striconv.c (ASSERT): Likewise.
35183         * tests/test-striconveh.c (ASSERT): Likewise.
35184         * tests/test-striconveha.c (ASSERT): Likewise.
35185         * tests/test-strsignal.c (ASSERT): Likewise.
35186         * tests/test-strstr.c (ASSERT): Likewise.
35187         * tests/test-strtod.c (ASSERT): Likewise.
35188         * tests/test-trunc1.c (ASSERT): Likewise.
35189         * tests/test-trunc2.c (ASSERT): Likewise.
35190         * tests/test-truncf1.c (ASSERT): Likewise.
35191         * tests/test-truncf2.c (ASSERT): Likewise.
35192         * tests/test-truncl.c (ASSERT): Likewise.
35193         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35194         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35195         * tests/test-vasnprintf.c (ASSERT): Likewise.
35196         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35197         * tests/test-vasprintf.c (ASSERT): Likewise.
35198         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35199         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35200         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35201         * tests/test-vsnprintf.c (ASSERT): Likewise.
35202         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35203         * tests/test-wcwidth.c (ASSERT): Likewise.
35204         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35205         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35206         * tests/test-xvasprintf.c (ASSERT): Likewise.
35207         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35208         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35209         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35210         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35211         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35212         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35213         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35214         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35215         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35216         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35217         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35218         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35219         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35220         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35221         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35222         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35223         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35224         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35225         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35226         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35227         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35228         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35229         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35230         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35231         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35232         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35233         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35234         * tests/unictype/test-combining.c (ASSERT): Likewise.
35235         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35236         * tests/unictype/test-digit.c (ASSERT): Likewise.
35237         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35238         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35239         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35240         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35241         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35242         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35243         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35244         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35245         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35246         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35247         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35248         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35249         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35250         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35251         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35252         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35253         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35254         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35255         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35256         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35257         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35258         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35259         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35260         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35261         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35262         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35263         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35264         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35265         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35266         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35267         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35268         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35269         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35270         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35271         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35272         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35273         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35274         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35275         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35276         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35277         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35278         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35279         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35280         Reported by Eric Blake.
35281
35282 2008-04-11  Bruno Haible  <bruno@clisp.org>
35283
35284         * lib/wchar.in.h: Tweak comment.
35285
35286 2008-04-11  Bruno Haible  <bruno@clisp.org>
35287
35288         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35289         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35290         gl_COMMON.
35291         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35292
35293 2008-04-11  Bruno Haible  <bruno@clisp.org>
35294
35295         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35296
35297 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35298
35299         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35300         of attempting to use non-existing /dev/*random.  Based on patch
35301         from Adam Strzelecki <ono@java.pl> in
35302         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35303
35304 2008-04-08  Bruno Haible  <bruno@clisp.org>
35305
35306         Add tentative support for emx+gcc.
35307         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35308         * lib/fpurge.c (fpurge): Likewise.
35309         * lib/freadable.c (freadable): Likewise.
35310         * lib/freadahead.c (freadahead): Likewise.
35311         * lib/freading.c (freading): Likewise.
35312         * lib/freadptr.c (freadptr): Likewise.
35313         * lib/freadseek.c (freadptrinc): Likewise.
35314         * lib/fseeko.c (rpl_fseeko): Likewise.
35315         * lib/fseterr.c (fseterr): Likewise.
35316         * lib/fwritable.c (fwritable): Likewise.
35317         * lib/fwriting.c (fwriting): Likewise.
35318         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35319
35320 2008-04-09  Eric Blake  <ebb9@byu.net>
35321
35322         Avoid some autoconf warnings.
35323         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35324         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35325         * m4/afs.m4 (gl_AFS): Likewise.
35326         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35327         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35328         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35329         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35330         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35331         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35332         (AC_CHECK_DECLS_ONCE): Likewise.
35333         Rename file...
35334         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35335         gnulib-tool requires autoconf 2.59 or better.
35336         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35337
35338 2008-04-08  Eric Blake  <ebb9@byu.net>
35339
35340         Use 'git describe --match' if present (added in git 1.5.5).
35341         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35342         if possible.
35343
35344 2008-04-08  Bruno Haible  <bruno@clisp.org>
35345
35346         Add tentative support for OpenServer.
35347         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35348         _ptr, _cnt.
35349         * lib/fpurge.c (fpurge): Likewise.
35350         * lib/freadable.c (freadable): Likewise.
35351         * lib/freadahead.c (freadahead): Likewise.
35352         * lib/freading.c (freading): Likewise.
35353         * lib/freadptr.c (freadptr): Likewise.
35354         * lib/freadseek.c (freadptrinc): Likewise.
35355         * lib/fseeko.c (rpl_fseeko): Likewise.
35356         * lib/fseterr.c (fseterr): Likewise.
35357         * lib/fwritable.c (fwritable): Likewise.
35358         * lib/fwriting.c (fwriting): Likewise.
35359         Reported by Roger Cornelius <rac@tenzing.org> and
35360         Brian K. White <brian@aljex.com>.
35361
35362 2008-04-06  Jim Meyering  <meyering@redhat.com>
35363
35364         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35365
35366 2008-04-06  Bruno Haible  <bruno@clisp.org>
35367
35368         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35369         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35370         * tests/test-printf-posix.sh: Likewise.
35371         * tests/test-vfprintf-posix.sh: Likewise.
35372         * tests/test-vprintf-posix.sh: Likewise.
35373         * tests/test-xprintf-posix.sh: Likewise.
35374
35375 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35376
35377         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35378         hide error from 'ls', needed on OS/2.
35379         Report by Elbert Pol <elbert.pol@gmail.com>.
35380
35381 2008-04-04  Eric Blake  <ebb9@byu.net>
35382
35383         Make test-fseeko.c failures meaningful.
35384         * tests/test-fseeko.c: Print line number on failure.
35385         * tests/test-fseek.c: Likewise.
35386         Reported by Nelson H. F. Beebe.
35387
35388         Improve strtod bug detection check.
35389         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35390         required for Solaris 10.
35391         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35392
35393 2008-04-04  Bruno Haible  <bruno@clisp.org>
35394
35395         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35396         by m4/setenv.m4.
35397
35398 2008-04-03  Eric Blake  <ebb9@byu.net>
35399
35400         Ensure sane .version contents.
35401         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35402         version string.
35403         * build-aux/git-version-gen: Improve documentation.
35404
35405         Make GNU make output nicer.
35406         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35407         MAKECMDGOALS to enforce message for all command line targets.  Set
35408         srcdir for use in maint.mk.
35409
35410         Another maintainer tweak.
35411         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35412         a target that regenerates version.
35413
35414 2008-04-03  Jim Meyering  <meyering@redhat.com>
35415
35416         vc-list-files: don't cause coreutils "make po-check" failure
35417         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35418
35419 2008-04-03  Eric Blake  <ebb9@byu.net>
35420
35421         Allow VPATH usage of vc-list-files.
35422         * build-aux/vc-list-files (scriptversion): Add timestamp.
35423         (options): Add --help, --version, -C.
35424         (CVS): Support installed cvsu.
35425
35426 2008-04-02  Bruno Haible  <bruno@clisp.org>
35427
35428         Avoid some "statement with no effect" warnings from gcc.
35429         * tests/test-wctype.c (main): Explicitly ignore unused values.
35430         Reported by Jim Meyering.
35431
35432 2008-04-02  Jim Meyering  <meyering@redhat.com>
35433
35434         Avoid some warnings from "gcc -Wshadow".
35435         * tests/test-frexp.c (exp): Define to a different identifier.
35436         * tests/test-frexpl.c (exp): Likewise.
35437
35438 2008-04-03  Jim Meyering  <meyering@redhat.com>
35439
35440         bootstrap: remove dangling *.[ch] symlinks from lib
35441         * build-aux/bootstrap [dangling symlink removal]: Move find's
35442         -depth option to precede all others, to avoid a warning.
35443         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35444
35445 2008-04-02  Bruno Haible  <bruno@clisp.org>
35446
35447         Avoid some warnings from "gcc -Wshadow".
35448         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35449         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35450         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35451         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35452         Reported by Jim Meyering.
35453
35454 2008-04-01  Bruno Haible  <bruno@clisp.org>
35455
35456         Fix test to work on IRIX 6.5 with cc.
35457         * tests/test-math.c (numeric_equal): New function.
35458         (main): Use it.
35459
35460 2008-04-01  Bruno Haible  <bruno@clisp.org>
35461
35462         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35463
35464 2008-04-01  Bruno Haible  <bruno@clisp.org>
35465
35466         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35467         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35468         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35469         (Depends-on): Remove math.
35470
35471         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35472         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35473         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35474         (Depends-on): Remove math.
35475
35476         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35477         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35478         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
35479         (Depends-on): Remove math.
35480         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
35481         (Depends-on): Remove math.
35482
35483         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
35484         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35485         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
35486         (Depends-on): Remove math.
35487         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35488         (Depends-on): Remove math.
35489
35490         * tests/test-round1.c: Include nan.h.
35491         (main): Use NaNd instead of NAN.
35492         * modules/round-tests (Files): Add tests/nan.h.
35493
35494         * tests/test-trunc1.c: Include nan.h.
35495         (main): Use NaNd instead of NAN.
35496         * modules/trunc-tests (Files): Add tests/nan.h.
35497
35498         * tests/test-roundf1.c: Include nan.h.
35499         (main): Use NaNf instead of NAN.
35500         * modules/roundf-tests (Files): Add tests/nan.h.
35501
35502         * tests/test-truncf1.c: Include nan.h.
35503         (main): Use NaNf instead of NAN.
35504         * modules/truncf-tests (Files): Add tests/nan.h.
35505
35506         * tests/test-ceilf1.c: Include nan.h.
35507         (main): Use NaNf instead of NAN.
35508         * modules/ceilf-tests (Files): Add tests/nan.h.
35509
35510         * tests/test-floorf1.c: Include nan.h.
35511         (main): Use NaNf instead of NAN.
35512         * modules/floorf-tests (Files): Add tests/nan.h.
35513
35514         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35515         (main): Use NaNf instead of NAN.
35516         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35517
35518         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35519         (main): Use NaNd instead of NAN.
35520         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35521
35522         * tests/test-frexp.c: Include nan.h.
35523         (main): Use NaNd instead of NAN.
35524         * modules/frexp-tests (Files): Add tests/nan.h.
35525
35526         * lib/isnan.c: Don't include <math.h>.
35527         (FUNC): Don't use NAN macro.
35528         * modules/isnand-nolibm (Depends-on): Remove math.
35529         * modules/isnanf-nolibm (Depends-on): Remove math.
35530         * modules/isnanl (Depends-on): Remove math.
35531         * modules/isnanl-nolibm (Depends-on): Remove math.
35532
35533         * tests/nan.h: New file.
35534
35535 2008-04-01  Eric Blake  <ebb9@byu.net>
35536
35537         Fix typos.
35538         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35539         values to be the right type.
35540
35541         For now, cater to gnulib strtod inaccuracies.
35542         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35543         fractional results.  While not as nice from a QoI perspective, it
35544         is a quicker patch than correctly implementing decimal to binary
35545         rounding.
35546
35547 2008-03-31  Eric Blake  <ebb9@byu.net>
35548
35549         Guarantee a definition of NAN.
35550         * lib/math.in.h (NAN): Define if missing.
35551         * tests/test-math.c (main): Test it.
35552         * doc/posix-headers/math.texi (math.h): Document this.
35553         * lib/isnan.c (rpl_isnand): Use it.
35554         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
35555         * tests/test-floorf1.c (NaN): Likewise.
35556         * tests/test-frexp.c (NaN): Likewise.
35557         * tests/test-isnand.c (NaN): Likewise.
35558         * tests/test-isnanf.c (NaN): Likewise.
35559         * tests/test-round1.c (NaN): Likewise.
35560         * tests/test-roundf1.c (NaN): Likewise.
35561         * tests/test-snprintf-posix.h (NaN): Likewise.
35562         * tests/test-sprintf-posix.h (NaN): Likewise.
35563         * tests/test-trunc1.c (NaN): Likewise.
35564         * tests/test-truncf1.c (NaN): Likewise.
35565         * tests/test-vasnprintf-posix.c (NaN): Likewise.
35566         * tests/test-vasprintf-posix.c (NaN): Likewise.
35567         * modules/isnand-nolibm (Depends-on): Add math.
35568         * modules/isnanf-nolibm (Depends-on): Likewise.
35569         * modules/isnanl (Depends-on): Likewise.
35570         * modules/isnanl-nolibm (Depends-on): Likewise.
35571         * modules/snprintf-posix-tests (Depends-on): Likewise.
35572         * modules/sprintf-posix-tests (Depends-on): Likewise.
35573         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
35574         * modules/vsprintf-posix-tests (Depends-on): Likewise.
35575         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
35576         * modules/vasprintf-posix-tests (Depends-on): Likewise.
35577
35578 2008-03-31  Bruno Haible  <bruno@clisp.org>
35579
35580         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
35581         * doc/posix-functions/strtod.texi: Likewise.
35582
35583 2008-03-31  Bruno Haible  <bruno@clisp.org>
35584
35585         * tests/test-strtod.c (main): Don't use C99 syntax.
35586
35587 2008-03-31  Bruno Haible  <bruno@clisp.org>
35588
35589         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
35590         Reported by Eric Blake.
35591
35592 2008-03-31  Jim Meyering  <meyering@redhat.com>
35593
35594         Don't compare actual signbit return values.
35595         * tests/test-strtod.c (main): Rather, compare only their
35596         zero/non-zero nature.
35597
35598 2008-03-31  Eric Blake  <ebb9@byu.net>
35599
35600         More strtod documentation.
35601         * doc/posix-functions/strtod.texi (strtod): Interpret more test
35602         failures as distinct bugs.
35603
35604 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35605
35606         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
35607         Problem reported by Erik Benada in
35608         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
35609
35610 2008-03-30  Bruno Haible  <bruno@clisp.org>
35611
35612         * tests/test-strtod.c: Add comments about which assertion fails on which
35613         platform.
35614         * doc/posix-functions/strtod.texi: Add info about many more platforms.
35615
35616 2008-03-30  Eric Blake  <ebb9@byu.net>
35617
35618         Test signbit behavior on zeros.
35619         * tests/test-signbit.c (test_signbitf): Add tests for zero.
35620         (test_signbitd, test_signbitl): Likewise.
35621
35622         More strtod touchups.
35623         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
35624         sign of negative underflow, for now.  Use .5, not .1.
35625         * doc/posix-functions/strtod.texi (strtod): Mention these
35626         limitations.
35627         Reported by Jim Meyering.
35628
35629 2008-03-30  Bruno Haible  <bruno@clisp.org>
35630
35631         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
35632         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
35633
35634 2008-03-30  Bruno Haible  <bruno@clisp.org>
35635
35636         Avoid failure when attempting to return empty iconv results on some
35637         platforms.
35638         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
35639         allocation, don't report ENOMEM when the resulting string is empty.
35640
35641 2008-03-30  Bruno Haible  <bruno@clisp.org>
35642
35643         Fix buffer overrun.
35644         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
35645         Don't consider the width for tmp_length. Check count against tmp_length
35646         before doing the padding. Ensure enough allocation during padding.
35647
35648 2008-03-30  Eric Blake  <ebb9@byu.net>
35649
35650         strtod touchups.
35651         * lib/strtod.c (strtod): Avoid compiler warnings.
35652         Reported by Jim Meyering.
35653
35654 2008-03-30  Bruno Haible  <bruno@clisp.org>
35655
35656         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
35657         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
35658         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
35659         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
35660         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
35661         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
35662         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35663         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
35664
35665         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
35666         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
35667         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
35668         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
35669         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
35670         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
35671         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
35672         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
35673
35674         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
35675         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
35676         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
35677         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
35678         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
35679         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
35680         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
35681         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
35682
35683         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
35684         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
35685
35686         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
35687         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
35688
35689         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
35690         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
35691
35692         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
35693         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
35694         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
35695
35696         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
35697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
35698         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
35699
35700         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
35701         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
35702         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
35703
35704         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
35705         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
35706         * modules/vasprintf (Depends-on): Add EOVERFLOW.
35707
35708         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
35709         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
35710         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
35711         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
35712         (Depends-on): Add EOVERFLOW.
35713         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
35714         (Depends-on): Add EOVERFLOW.
35715         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35716         (Depends-on): Add EOVERFLOW.
35717         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35718         (Depends-on): Add EOVERFLOW.
35719         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35720         (Depends-on): Add EOVERFLOW.
35721         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35722         (Depends-on): Add EOVERFLOW.
35723         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35724         (Depends-on): Add EOVERFLOW.
35725         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35726         (Depends-on): Add EOVERFLOW.
35727
35728         * lib/sprintf.c (EOVERFLOW): Remove fallback.
35729         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
35730         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
35731
35732         * lib/snprintf.c (EOVERFLOW): Remove fallback.
35733         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
35734         * modules/snprintf (Depends-on): Add EOVERFLOW.
35735
35736         * lib/poll.c (EOVERFLOW): Remove fallback.
35737         * modules/poll (Depends-on): Add EOVERFLOW.
35738
35739         * lib/getugroups.c (EOVERFLOW): Remove fallback.
35740         * modules/getugroups (Depends-on): Add EOVERFLOW.
35741
35742         * lib/getdelim.c (EOVERFLOW): Remove fallback.
35743         * modules/getdelim (Depends-on): Add EOVERFLOW.
35744
35745         * lib/ftell.c (EOVERFLOW): Remove fallback.
35746         * modules/ftell (Depends-on): Add EOVERFLOW.
35747
35748         * lib/fprintf.c (EOVERFLOW): Remove fallback.
35749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
35750         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
35751
35752         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
35753
35754         * modules/EOVERFLOW-tests: New file.
35755         * tests/test-EOVERFLOW.c: New file.
35756
35757         * modules/EOVERFLOW: New file.
35758         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
35759
35760 2008-03-30  Bruno Haible  <bruno@clisp.org>
35761
35762         Fix bug introduced on 2007-06-10.
35763         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
35764         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
35765
35766 2008-03-30  Bruno Haible  <bruno@clisp.org>
35767
35768         Improve freadseek's efficiency after ungetc.
35769         * lib/freadseek.c: Include freadahead.h.
35770         (freadptrinc): New function, extracted from freadseek.
35771         (freadseek): Use it in a loop. Use freadahead to determine the number
35772         of loop iterations.
35773         * modules/freadseek (Depends-on): Add freadahead.
35774         (configure.ac): Require AC_C_INLINE.
35775
35776 2008-03-30  Bruno Haible  <bruno@clisp.org>
35777
35778         * lib/freadseek.c (freadseek): Don't ignore the return value of
35779         freadptr.
35780
35781 2008-03-29  Eric Blake  <ebb9@byu.net>
35782
35783         Add hex float support.
35784         * modules/strtod (Depends-on): Add c-ctype.
35785         (Link): Mention POW_LIB.
35786         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
35787         whitespace between 'e' and exponent.
35788         * tests/test-strtod.c (main): Enable hex float tests.
35789         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
35790         now provides.
35791
35792         Document various strtod bugs, with some fixes.
35793         * doc/posix-functions/strtod.texi (strtod): Document bugs with
35794         "-0x", "inf", "nan", and hex constants.
35795         * doc/posix-functions/atof.texi (atof): Likewise.
35796         * modules/stdlib (Makefile.am): Support strtod.
35797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35798         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
35799         detect additional strtod bugs.
35800         * lib/stdlib.in.h (rpl_strtod): Add declarations.
35801         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
35802         bool where appropriate.  Parse 'inf' and 'nan'.
35803         * tests/test-strtod.c: New file.
35804         * modules/strtod (Depends-on): Add stdbool, stdlib.
35805         (configure.ac): Turn on module indicator.
35806         * modules/strtod-tests: New module.
35807
35808 2008-03-29  Eric Blake  <ebb9@byu.net>
35809
35810         Fix ftell on mingw.
35811         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
35812         * modules/ftell-tests (Depends-on): Add binary-io.
35813         * modules/ftello-tests (Depends-on): Likewise.
35814         * tests/test-ftell.c (main): Enhance test to cover behavior after
35815         ungetc.  Enforce binary mode.
35816         * tests/test-ftello.c (main): Likewise.
35817
35818         Pass test-freadseek on cygwin.
35819         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
35820         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
35821         ungetc buffer.
35822
35823         * tests/test-fflush2.c (main): Fix typo.
35824
35825 2008-03-29  Bruno Haible  <bruno@clisp.org>
35826
35827         * tests/test-fflush2.c (main): Temporarily disable the contents of
35828         this test.
35829         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
35830         Reported by Eric Blake.
35831
35832 2008-03-28  Simon Josefsson  <simon@josefsson.org>
35833
35834         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
35835         (GC_SHA224_DIGEST_SIZE): Add.
35836
35837         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
35838         (gc_hash_digest_length): Likewise.
35839         (gc_hash_buffer): Likewise.
35840
35841 2008-03-25  Bruno Haible  <bruno@clisp.org>
35842
35843         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
35844         detail which gettext release to use.
35845         Reported by Simon Josefsson.
35846
35847 2008-03-26  Jim Meyering  <meyering@redhat.com>
35848
35849         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
35850         * modules/gnumakefile (clean-GNUmakefile): Also, use
35851         test ... && ... || : syntax rather than if-then ... fi.
35852
35853         gnumakefile: Don't double-quote-expand $(VPATH) value.
35854         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
35855
35856 2008-03-24  Eric Blake  <ebb9@byu.net>
35857
35858         Alter GNUmakefile to install into top directory.
35859         * modules/maintainer-makefile: Split, and add dependency...
35860         * modules/gnumakefile: to this new module.
35861         * build-aux/GNUmakefile: Move...
35862         * top/GNUmakefile: ...here.
35863         * build-aux/maint.mk: Move...
35864         * top/maint.mk: ...here.
35865         * MODULES.html.sh (Support for maintaining...): Document new
35866         module.
35867
35868 2008-03-23  Bruno Haible  <bruno@clisp.org>
35869
35870         * gnulib-tool: New options --vc-files, --no-vc-files.
35871         (func_usage): Document them.
35872         (vc_files): New variable.
35873         (func_import): Consider vc_files.
35874         (func_create_testdir): Set vc_files to empty.
35875         Suggested by Jim Meyering and Karl Berry.
35876
35877 2008-03-23  Bruno Haible  <bruno@clisp.org>
35878
35879         Fix regex compilation error on HP-UX 11.
35880         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
35881         * modules/regex (Files): Add m4/mbstate_t.m4.
35882         Reported by Ton Voon <ton.voon@altinity.com>.
35883
35884 2008-03-23  Bruno Haible  <bruno@clisp.org>
35885
35886         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
35887
35888 2008-03-23  Eric Blake  <ebb9@byu.net>
35889             Bruno Haible  <bruno@clisp.org>
35890
35891         Install files from top/ in the destination directory.
35892         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35893         augmentation also for the files from top/.
35894         (func_import, func_create_testdir): Rewrite file names:
35895         top/filename -> filename.
35896
35897 2008-03-23  Bruno Haible  <bruno@clisp.org>
35898
35899         Tweak "gnulib --version" output.
35900         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
35901
35902 2008-03-23  Bruno Haible  <bruno@clisp.org>
35903
35904         Tweak "gnulib --version" output.
35905         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
35906         rather than contents of ChangeLog, when possible.
35907
35908 2008-03-21  Eric Blake  <ebb9@byu.net>
35909
35910         More --version tweaks.
35911         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
35912         date of last ChangeLog entry.
35913
35914 2008-03-21  Jim Meyering  <meyering@redhat.com>
35915
35916         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
35917
35918 2008-03-20  Eric Blake  <ebb9@byu.net>
35919
35920         VPATH fix.
35921         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
35922
35923 2008-03-20  Simon Josefsson  <simon@josefsson.org>
35924
35925         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
35926         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
35927
35928 2008-03-20  Eric Blake  <ebb9@byu.net>
35929
35930         Sync GNUmakefile with coreutils.
35931         * build-aux/GNUmakefile (have-Makefile): Rename...
35932         (_have-Makefile): ...to this, for namespace consideration.
35933         (GNUmakefile.cfg): Include, if present.
35934         (_autoreconf): Define a default.
35935         (_is-dist-target): New rule for rebuilds to pick up intra-release
35936         version.
35937         (maint-cfg.mk): Rename...
35938         (cfg.mk): ...to this.
35939
35940 2008-03-18  Jim Meyering  <meyering@redhat.com>
35941
35942         New script and module: mktempd
35943         * MODULES.html.sh (maint+release support): Add mktempd.
35944         * build-aux/mktempd: New file.
35945         * modules/mktempd: New file.
35946
35947 2008-03-15  Jim Meyering  <meyering@redhat.com>
35948
35949         Undo last change.
35950         * lib/sha1.c, lib/md5.c: 63 != ~63.
35951         Reported by Andreas Schwab.
35952
35953         sha1.c, md5.c: Hoist a redundant expression.
35954         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
35955         "ctx->buflen" only once, before calling *_process_block.
35956         * lib/md5.c (md5_process_bytes): Likewise.
35957
35958 2008-03-14  Eric Blake  <ebb9@byu.net>
35959
35960         Bump copyright year in files generated by gnulib-tool.
35961         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
35962         gnulib-tool, rather than hard-coding it.
35963
35964         Fix 'gnulib-tool --version' output to work with git.
35965         * gnulib-tool (func_gnulib_dir): New function, extracted from...
35966         (startup): ...here.
35967         (func_version): Use it to invoke git-version-gen, rather than
35968         relying on CVS keyword expansion.  Modernize wording.
35969         (cvsdatestamp, last_checkin_date, version): Kill unused
35970         variables.
35971
35972 2008-03-12  Jim Meyering  <meyering@redhat.com>
35973
35974         Recognize optional cast of the argument to free.
35975         * build-aux/useless-if-before-free: Update regexps.
35976
35977         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
35978
35979 2008-03-11  Bruno Haible  <bruno@clisp.org>
35980
35981         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
35982         by a single package.
35983         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
35984         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
35985         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
35986         Reported by Sam Steingold <sds@gnu.org>.
35987
35988 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35989
35990         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
35991         repositories.
35992
35993 2008-03-11  Bruno Haible  <bruno@clisp.org>
35994
35995         Avoid conflicts between local macro definitions.
35996         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
35997         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
35998
35999 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36000             Bruno Haible  <bruno@clisp.org>
36001
36002         Make va_copy work with some version of xlc on AIX 5.1.
36003         * lib/stdarg.in.h: New file.
36004         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36005         On AIX, use a <stdarg.h> file substitute.
36006         * modules/stdarg (Files): Add lib/stdarg.in.h.
36007         (Depends-on): Add include_next.
36008         (Makefile.am): Build a stdarg.h substitute if requested.
36009         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36010
36011 2008-03-10  Bruno Haible  <bruno@clisp.org>
36012
36013         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36014         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36015         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36016
36017 2008-03-10  Bruno Haible  <bruno@clisp.org>
36018
36019         * modules/stdlib (Depends-on): Add include_next, remove
36020         absolute-header.
36021
36022 2008-03-09  Bruno Haible  <bruno@clisp.org>
36023
36024         * lib/freadahead.h (freadahead): Document more precisely.
36025         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36026         the sum of both buffer sizes.
36027         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36028         * NEWS: Document the change.
36029
36030 2008-03-09  Bruno Haible  <bruno@clisp.org>
36031
36032         Extend freadptr to return also the buffer size.
36033         * lib/freadptr.h (freadptr): Add sizep argument.
36034         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36035         (freadptr): Add sizep argument. Determine buffer size like freadahead
36036         does.
36037         * tests/test-freadptr.c: Don't include freadahead.h.
36038         (main): Adapt for new calling convention of freadptr.
36039         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36040         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36041         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36042         tests/test-freadptr2.sh.
36043         (Depends): Remove freadahead.
36044         (TESTS): Add test-freadptr2.sh.
36045         (check_PROGRAMS): Add test-freadptr2.
36046
36047 2008-03-09  Bruno Haible  <bruno@clisp.org>
36048
36049         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36050         Report and solution by Simon Josefsson.
36051
36052 2008-03-06  Bruno Haible  <bruno@clisp.org>
36053
36054         Make fflush after ungetc work on BSD platforms.
36055         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36056         * tests/test-fflush2.c: New file.
36057         * tests/test-fflush2.sh: New file.
36058         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36059         tests/test-fflush2.c.
36060         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36061         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36062
36063 2008-03-06  Eric Blake  <ebb9@byu.net>
36064
36065         Likewise for ftello.
36066         * modules/ftello (Dependencies): Add extensions.
36067         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36068
36069 2008-03-06  Bruno Haible  <bruno@clisp.org>
36070
36071         * modules/fseeko (Dependencies): Add extensions.
36072         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36073         Needed on glibc systems.
36074
36075 2008-03-06  Bruno Haible  <bruno@clisp.org>
36076
36077         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36078         email address.
36079         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36080
36081 2008-03-06  Bruno Haible  <bruno@clisp.org>
36082
36083         * users.txt: Add libgnupdf.
36084
36085 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36086
36087         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36088         (Header File Substitutes, Function Substitutes,
36089         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36090         (Build robot for gnulib): Fix typo.
36091
36092 2008-03-06  Bruno Haible  <bruno@clisp.org>
36093
36094         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36095         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36096
36097 2008-03-06  Bruno Haible  <bruno@clisp.org>
36098
36099         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36100         * doc/gnulib.texi: Include it.
36101
36102 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36103
36104         * modules/func (License): Change license to unlimited; there was
36105         no LGPL parts in the module anyway.
36106
36107 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36108
36109         * modules/__func__: Renamed to modules/func.
36110         * modules/__func__-tests: Renamed to modules/func-tests.
36111         * tests/test-__func__.c: Renamed to tests/test-func.c.
36112         * m4/__func__.m4: Renamed to m4/func.m4.
36113         * doc/gnulib.texi (__func__): Section renamed to func.
36114         Suggested by Eric Blake <ebb9@byu.net>.
36115
36116 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36117
36118         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36119         about __func__.  Make example self-contained.  Suggested by Eric
36120         Blake <ebb9@byu.net>.
36121
36122         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36123         Suggested by Eric Blake <ebb9@byu.net>.
36124
36125 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36126
36127         * modules/__func__: New file.
36128         * modules/__func__-tests: New file.
36129         * tests/test-__func__.c: New file.
36130         * m4/__func__.m4: New file.
36131         * doc/gnulib.texi (__func__): Document __func__ module.
36132
36133 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36134
36135         * modules/byteswap (License): Re-license as LGPLv2+.
36136
36137 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36138
36139         * doc/Makefile: Add pdf target.
36140
36141 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36142
36143         * modules/inline (License): Use 'unlimited', since there are only
36144         *.m4 files in this module.
36145
36146 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36147             Bruno Haible  <bruno@clisp.org>
36148
36149         Add support for HP C 7.1 on OpenVMS 8.3.
36150         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36151
36152 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36153
36154         Update VMS specifics.
36155         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36156
36157 2008-03-02  Jim Meyering  <meyering@redhat.com>
36158
36159         Remove the last dependency on the "free" module.
36160         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36161         Reported by Bob Proulx.
36162
36163         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36164
36165         Remove useless "if" tests before free.  Deprecate "free" module.
36166         * doc/posix-functions/free.texi: Mention that this
36167         module is no longer useful.
36168         * modules/free (Notice): Say this module is obsolete.
36169         * modules/readutmp (Depends-on): Remove free.
36170         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36171         * lib/putenv.c (putenv): Likewise.
36172         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36173         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36174         * tests/test-c-strcasestr.c (main): Likewise.
36175         * tests/test-c-strstr.c (main): Likewise.
36176         * tests/test-mbscasestr1.c (main): Likewise.
36177         * tests/test-mbscasestr2.c (main): Likewise.
36178         * tests/test-mbsstr1.c (main): Likewise.
36179         * tests/test-mbsstr2.c (main): Likewise.
36180         * tests/test-memmem.c (main): Likewise.
36181         * tests/test-strcasestr.c (main): Likewise.
36182         * tests/test-striconv.c (main): Likewise.
36183         * tests/test-striconveh.c (main): Likewise.
36184         * tests/test-striconveha.c (main): Likewise.
36185         * tests/test-strstr.c (main): Likewise.
36186
36187         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36188
36189         bootstrap: sync from coreutils again
36190         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36191
36192 2008-03-01  Jim Meyering  <meyering@redhat.com>
36193
36194         bootstrap: sync from coreutils
36195         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36196         also when the target doesn't exist.
36197
36198 2008-03-01  Eric Blake  <ebb9@byu.net>
36199
36200         Fix bugs in last patch.
36201         * lib/memchr2.c (memchr2): Fix typo.
36202         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36203         extension.
36204         Reported by Bruce Korb.
36205
36206         New module 'memchr2'.
36207         * modules/memchr2: New file.
36208         * modules/memchr2-tests: Likewise.
36209         * lib/memchr2.h: Likewise.
36210         * lib/memchr2.c: Likewise, based on memchr.c.
36211         * tests/test-memchr2.c: New test.
36212         * MODULES.html.sh (String handling): Add memchr2.
36213
36214 2008-02-29  Bruno Haible  <bruno@clisp.org>
36215
36216         * modules/freadseek-tests: New file.
36217         * tests/test-freadseek.sh: New file.
36218         * tests/test-freadseek.c: New file.
36219
36220         New module 'freadseek'.
36221         * modules/freadseek: New file.
36222         * lib/freadseek.h: New file.
36223         * lib/freadseek.c: New file.
36224         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36225
36226 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36227
36228         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36229         wydawca.
36230
36231         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36232         program_invocation_name and program_invocation_short_name are
36233         present.
36234
36235 2008-02-28  Bruno Haible  <bruno@clisp.org>
36236
36237         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36238         * tests/test-freadptr.sh: Also test non-seekable stdin.
36239
36240 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36241
36242         * build-aux/bootstrap (source_base, m4_base)
36243         (doc_base, tests_base): New variables.
36244         (gnulib_tool_options): Do not hardcode base directories, use
36245         the above variables instead.
36246
36247 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36248
36249         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36250
36251 2008-02-28  Bruno Haible  <bruno@clisp.org>
36252
36253         * modules/freadptr-tests: New file.
36254         * tests/test-freadptr.sh: New file.
36255         * tests/test-freadptr.c: New file.
36256
36257         New module 'freadptr'.
36258         * modules/freadptr: New file.
36259         * lib/freadptr.h: New file.
36260         * lib/freadptr.c: New file.
36261         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36262
36263 2008-02-26  Karl Berry  <karl@freefriends.org>
36264
36265         Sync from Libtool:
36266         * libltdl/argz.c (argz_add, argz_count): New functions.
36267         * libltdl/argz.in.h: Declare them.
36268         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36269
36270 2008-02-22  Bruno Haible  <bruno@clisp.org>
36271
36272         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36273         is a pointer type.  Needed for HP-UX 10.
36274         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36275         * doc/posix-functions/gmtime_r.texi: Likewise.
36276         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36277
36278 2008-02-24  Bruno Haible  <bruno@clisp.org>
36279
36280         * modules/environ-tests: New file.
36281         * tests/test-environ.c: New file.
36282
36283         New module 'environ'.
36284         * modules/environ: New file.
36285         * lib/unistd.in.h (environ): New declaration.
36286         * m4/environ.m4: New file.
36287         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36288         after use.
36289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36290         HAVE_DECL_ENVIRON.
36291         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36292         HAVE_DECL_ENVIRON.
36293         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36294         wrong claim that 'environ' is missing on some systems.
36295         * modules/execute (Depends-on): Add environ.
36296         * lib/execute.c (environ): Remove fallback declaration.
36297         * modules/pipe (Depends-on): Add environ.
36298         * lib/pipe.c (environ): Remove fallback declaration.
36299         * modules/setenv (Depends-on): Add environ.
36300         * lib/setenv.c (environ): Remove fallback declaration.
36301         * modules/unsetenv (Depends-on): Add environ.
36302         * lib/unsetenv.c (environ): Remove fallback declaration.
36303         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36304         m4/environ.m4.
36305         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36306         (gl_PREREQ_UNSETENV): Likewise.
36307
36308 2008-02-24  Bruno Haible  <bruno@clisp.org>
36309
36310         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36311
36312 2008-02-20  Bob Proulx  <bob@proulx.com>
36313
36314         Enable use of older two part flavor 'git describe'.
36315         * build-aux/git-version-gen: If using the older two part flavor of
36316         git version then recreate the third part now present in the
36317         newer three part flavor of git describe.
36318
36319 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36320
36321         * lib/fts.c (fts_build): Typo correction to comment.
36322
36323 2008-02-17  Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36326         generating no-op conflicts.
36327
36328 2008-02-17  Bruno Haible  <bruno@clisp.org>
36329
36330         Speed up by 10%.
36331         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36332         result_entries, rather than an index-based loop.
36333
36334 2008-02-17  Bruno Haible  <bruno@clisp.org>
36335
36336         Speed up by 25%.
36337         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36338         'hashcode_cached'.
36339         (entry_create): New function.
36340         (entry_hashcode): Use the cached hashcode if possible.
36341         (read_changelog_file, try_split_merged_entry): Use entry_create.
36342
36343 2008-02-17  Bruno Haible  <bruno@clisp.org>
36344
36345         Speed up from O(n^2) to O(n) for long ChangeLog files.
36346         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36347         (read_changelog_file): Change implementation of entries_reversed list
36348         to rbtreehash.
36349         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36350
36351 2008-02-17  Bruno Haible  <bruno@clisp.org>
36352
36353         New option --split-merged-entry.
36354         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36355         (find_paragraph_end, try_split_merged_entry): New functions.
36356         (long_options): Add option --split-merged-entry.
36357         (usage): Document option --split-merged-entry.
36358         (main): Implement option --split-merged-entry.
36359         Reported by Eric Blake.
36360
36361 2008-02-17  Bruno Haible  <bruno@clisp.org>
36362
36363         * lib/git-merge-changelog.c: Include c-strstr.h.
36364         (main): Support the "git pull --rebase" situation.
36365         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36366         Reported by Eric Blake.
36367
36368 2008-02-16  Eric Blake  <ebb9@byu.net>
36369
36370         Avoid doubling \ in common case of "c-maybe" quoting style.
36371         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36372         eliding outer quotes.
36373         * lib/quotearg.h: Document this.
36374         * tests/test-quotearg.c (result_strings, inputs, results_g)
36375         (flag_results, locale_results): Test it by adding a new string to
36376         each test group.
36377         (compare_strings): Test new string.
36378
36379 2008-02-13  Eric Blake  <ebb9@byu.net>
36380
36381         Avoid trigraph quoting in default output.
36382         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36383         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36384         unless explicitly requested.
36385         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36386
36387 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36388
36389         Don't rely on signed integer overflowing to negative value.
36390         * lib/getugroups.c (getugroups): Include <limits.h>.
36391         Instead, compare against INT_MAX, and increment only if the test passes.
36392
36393 2008-02-13  Jim Meyering  <meyering@redhat.com>
36394         and Eric Blake  <ebb9@byu.net>
36395
36396         Avoid shadowing warning and compile errors on Linux.
36397         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36398         forwarding macros on Linux.
36399         (dcgettext): Define a stub, for Linux.
36400         (results_g, main): Avoid warnings.
36401
36402 2008-02-12  Eric Blake  <ebb9@byu.net>
36403
36404         Silence warning in last patch.
36405         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36406
36407         Quotearg part 4: add tests, fix c-maybe colon quoting.
36408         * lib/quotearg.h: Improve documentation.
36409         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36410         escapes when adding outer quotes.  When quoting trigraphs, use
36411         valid C notation.  When quoting NUL, omit extra characters if next
36412         character is not digit.  Alter prototype.
36413         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36414         callers.
36415         * modules/quotearg-tests: New module.
36416         * tests/test-quotearg.c: New test.
36417
36418 2008-02-07  Eric Blake  <ebb9@byu.net>
36419
36420         Quotearg part 3: add flag to control outer quote elision.
36421         * lib/quotearg.h (c_maybe_quoting_style): New style.
36422         (enum quoting_flags): Better documentation of flags.
36423         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36424         c-maybe style.
36425         (quotearg_buffer_restyled): Handle new flag to elide outer
36426         quotes.
36427
36428         Quotearg part 2: add flag that can control NUL elision.
36429         * lib/quotearg.h (set_quoting_flags): New prototype.
36430         * lib/quotearg.c (struct quoting_options): Add flag field.
36431         (set_quoting_flags): New function.
36432         (quotearg_buffer_restyled): Add flags parameter.
36433         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36434         (quotearg_n_options): Set the flag, since length cannot be
36435         returned.
36436         (quoting_options_from_style): Default flags correctly.
36437
36438         Quotearg part 1: more wrappers, restore quotearg_char state.
36439         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36440         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36441         (quotearg_colon_mem): New wrappers.
36442         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36443         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36444         functions.
36445         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36446         (quotearg_colon_mem): New functions.
36447
36448 2008-02-11  Bruno Haible  <bruno@clisp.org>
36449
36450         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36451         library in the current directory: it does not work with parallel make.
36452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36453
36454 2008-02-11  Bruno Haible  <bruno@clisp.org>
36455
36456         * .gitattributes: New file.
36457
36458 2008-02-11  Jim Meyering  <meyering@redhat.com>
36459
36460         useless-if-before-free: Fix reversed exit values.
36461         * build-aux/useless-if-before-free: Use correct values
36462         for EXIT_MATCH and EXIT_NO_MATCH.
36463
36464         * build-aux/useless-if-before-free: Close stdout carefully.
36465
36466 2008-02-10  Bruno Haible  <bruno@clisp.org>
36467
36468         New module 'git-merge-changelog'.
36469         * modules/git-merge-changelog: New file.
36470         * lib/git-merge-changelog.c: New file.
36471
36472 2008-02-10  Jim Meyering  <meyering@redhat.com>
36473
36474         useless-if-before-free: New option: --list (-l).
36475
36476         useless-if-before-free: Don't exit immediately upon open failure.
36477         * build-aux/useless-if-before-free: Exit 2 for errors.
36478         Upon failure to open a file, don't exit immediately.
36479         Rather, just warn and continue with any remaining files.
36480
36481 2008-02-10  Bruno Haible  <bruno@clisp.org>
36482
36483         New abstract list operation 'node_set_value'.
36484         * lib/gl_list.h (gl_list_node_set_value): New function.
36485         (struct gl_list_implementation): New field node_set_value.
36486         * lib/gl_list.c (gl_list_node_set_value): New function.
36487         * lib/gl_array_list.c (gl_array_node_set_value): New function.
36488         (gl_array_list_implementation): Update.
36489         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
36490         (gl_carray_list_implementation): Update.
36491         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
36492         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36493         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36494         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
36495         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36496         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36497         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36498         Update.
36499         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36500         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
36501         (gl_sublist_list_implementation): Update.
36502
36503 2008-02-10  Bruno Haible  <bruno@clisp.org>
36504
36505         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36506         Needed when ELEMENT is #defined to 'some_type *'.
36507
36508 2008-02-10  Jim Meyering  <meyering@redhat.com>
36509
36510         New script and module: useless-if-before-free
36511         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36512         * build-aux/useless-if-before-free: New file.
36513         * modules/useless-if-before-free: New file.
36514
36515         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36516
36517         xstrtol_error: Fix typo.
36518         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36519         s/exit_failure/exit_status/.
36520
36521 2008-02-09  Jim Meyering  <meyering@redhat.com>
36522
36523         New script and module: gitlog-to-changelog
36524         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36525         * modules/gitlog-to-changelog: New file.
36526         * build-aux/gitlog-to-changelog: New file.
36527
36528 2008-02-08  Jim Meyering  <meyering@redhat.com>
36529
36530         Avoid two "parameter unused" warnings.
36531         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36532         Mark "st" as used.
36533
36534         Use "git COMMAND", not "git-COMMAND".
36535         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36536         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36537         * build-aux/git-version-gen: Use "git status", not "git-status".
36538
36539 2008-02-07  Bruno Haible  <bruno@clisp.org>
36540
36541         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36542         Avoids a crash on Windows Vista.
36543         Reported by Adam Strzelecki <ono@java.pl> via
36544         Simon Josefsson <simon@josefsson.org>.
36545
36546 2008-02-06  Bruno Haible  <bruno@clisp.org>
36547
36548         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36549         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
36550         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
36551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
36552         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36553         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36554         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
36555         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
36556         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36557         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36558         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36559         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36560         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36561         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36563         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
36564         left-adjust flag.
36565         * tests/test-snprintf-posix.h (test_function): Likewise.
36566         * tests/test-sprintf-posix.h (test_function): Likewise.
36567         * tests/test-vasprintf-posix.c (test_function): Likewise.
36568         * doc/posix-functions/fprintf.texi: Update.
36569         * doc/posix-functions/printf.texi: Update.
36570         * doc/posix-functions/snprintf.texi: Update.
36571         * doc/posix-functions/sprintf.texi: Update.
36572         * doc/posix-functions/vfprintf.texi: Update.
36573         * doc/posix-functions/vprintf.texi: Update.
36574         * doc/posix-functions/vsnprintf.texi: Update.
36575         * doc/posix-functions/vsprintf.texi: Update.
36576         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36577
36578 2008-02-06  Bruno Haible  <bruno@clisp.org>
36579
36580         Fix bug introduced on 2008-01-26.
36581         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
36582
36583 2008-02-06  Bruno Haible  <bruno@clisp.org>
36584
36585         Fix bug introduced on 2007-06-10.
36586         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
36587         !NEED_PRINTF_FLAG_ZERO.
36588
36589 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
36590
36591         getloadavg: use libperfstat on AIX5
36592         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
36593
36594 2008-02-03  Bruno Haible  <bruno@clisp.org>
36595
36596         * lib/diffseq.h: Add comments about required #includes.
36597         Reported by Michael Biggs <gnulib@doubleplum.net>.
36598
36599 2008-02-01  Bruno Haible  <bruno@clisp.org>
36600
36601         * users.txt: Add gnuit.
36602
36603 2008-01-31  Bruno Haible  <bruno@clisp.org>
36604
36605         * lib/md4.c (set_uint32): Mark as inline.
36606         * lib/md5.c (set_uint32): Likewise.
36607         * lib/sha1.c (set_uint32): Likewise.
36608         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
36609         * m4/md5.m4 (gl_MD5): Likewise.
36610         * m4/sha1.m4 (gl_SHA1): Likewise.
36611
36612 2008-01-31  Jim Meyering  <meyering@redhat.com>
36613
36614         Use "sizeof VAR", rather than a literal "4".
36615         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
36616         * lib/md4.c (md4_read_ctx): Likewise.
36617         * lib/sha1.c (sha1_read_ctx): Likewise.
36618
36619 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36620
36621         * tests/test-sha1.c: New file, based on test-md5.c.
36622
36623         * modules/crypto/sha1-tests: New file.
36624
36625 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36626
36627         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
36628
36629 2008-01-31  Jim Meyering  <meyering@redhat.com>
36630
36631         Prefer "sizeof v" over the equivalent "4".
36632         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
36633         * lib/md5.c (set_uint32): Likewise.
36634         * lib/sha1.c (set_uint32): Likewise.
36635
36636 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36637
36638         * lib/sha1.c (set_uint32): Mark function as static.
36639
36640 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36641
36642         md2: clarify comments to say that alignment is not required.
36643         * lib/md2.h: Remove warning about alignment in comment.
36644         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
36645         never been required.
36646
36647 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36648
36649         md4: adapt alignment constraint fix from sha1.
36650         * lib/md4.c (set_uint32): New function, from sha1.c
36651         (md4_read_ctx): Use it.
36652         (md4_finish_ctx): Doc fix.
36653         * lib/md4.h: Doc fix.
36654
36655 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36656
36657         md5: adapt alignment constraint fix from sha1.
36658         * lib/md5.c (set_uint32): New function, from sha1.c
36659         (md5_read_ctx): Use it.
36660         (md5_finish_ctx): Doc fix.
36661         * lib/md5.h: Doc fix.
36662
36663 2008-01-30  Peter Palfrader  <weasel@debian.org>
36664
36665         sha1: remove the result buffer alignment constraint
36666         * lib/sha1.c (set_uint32): New function.
36667         (sha1_read_ctx): Rewrite to remove the result buffer alignment
36668         constraint.
36669         (sha1_finish_ctx): Remove comment warning about alignment constraint.
36670         * lib/sha1.h: Likewise.
36671
36672 2008-01-30  Andreas Schwab  <schwab@suse.de>
36673             Bruno Haible  <bruno@clisp.org>
36674
36675         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
36676         correct definition of LDBL_MIN_EXP.
36677
36678 2008-01-30  Karl Berry  <karl@gnu.org>
36679
36680         * config/srclist-update: try to preserve x bit on updates.
36681         * config/srclistvars.sh: update for karl.
36682
36683 2008-01-29  Jim Meyering  <meyering@redhat.com>
36684
36685         vasnprintf.c: Avoid warning about unused label
36686         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
36687         "overflow" label definition and associated code with the
36688         same cpp condition that guards the sole use of that label.
36689
36690 2008-01-26  Bruno Haible  <bruno@clisp.org>
36691
36692         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
36693         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
36694         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
36695         * lib/isnanl-nolibm.h (isnanl): Likewise.
36696         Reported by Paul Eggert <eggert@cs.ucla.edu>.
36697
36698 2008-01-26  Bruno Haible  <bruno@clisp.org>
36699
36700         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
36701         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
36702
36703 2008-01-26  Bruno Haible  <bruno@clisp.org>
36704
36705         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
36706         GCC >= 4.0 built-in.
36707         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
36708
36709 2008-01-26  Bruno Haible  <bruno@clisp.org>
36710
36711         Rename isnan, applicable to 'double' only, to isnand.
36712         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
36713         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
36714         (configure.ac): Update.
36715         (Include): Replace "isnan.h" with "isnand.h".
36716         * m4/isnand.m4: Renamed from m4/isnan.m4.
36717         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
36718         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
36719         instead of isnan.c.
36720         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
36721         instead of HAVE_ISNAN_IN_LIBC.
36722         (isnand): Renamed from isnan.
36723         * lib/isnand.c: New file.
36724         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
36725         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
36726         (Makefile.am): Update.
36727         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
36728         Include isnand.h instead of isnan.h.
36729         (main): Test isnand instead of isnan.
36730         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
36731         isnan-nolibm.
36732         * modules/frexp (Depends-on): Likewise.
36733         * modules/frexp-tests (Depends-on): Likewise.
36734         * modules/frexp-nolibm (Depends-on): Likewise.
36735         * modules/frexp-nolibm-tests (Depends-on): Likewise.
36736         * modules/isfinite (Depends-on): Likewise.
36737         * modules/round-tests (Depends-on): Likewise.
36738         * modules/signbit (Depends-on): Likewise.
36739         * modules/signbit-tests (Depends-on): Likewise.
36740         * modules/snprintf-posix (Depends-on): Likewise.
36741         * modules/sprintf-posix (Depends-on): Likewise.
36742         * modules/trunc-tests (Depends-on): Likewise.
36743         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36744         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36745         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36746         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36747         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36748         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36749         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36750         * modules/vasnprintf-posix (Depends-on): Likewise.
36751         * modules/vasprintf-posix (Depends-on): Likewise.
36752         * modules/vfprintf-posix (Depends-on): Likewise.
36753         * modules/vsnprintf-posix (Depends-on): Likewise.
36754         * modules/vsprintf-posix (Depends-on): Likewise.
36755         * lib/frexp.c: Include isnand.h instead of isnan.h.
36756         (ISNAN): Set to isnand instead of isnan.
36757         * lib/isfinite.c: Include isnand.h instead of isnan.h.
36758         (gl_isfinited): Use isnand instead of isnan.
36759         * lib/signbitd.c: Include isnand.h instead of isnan.h.
36760         (gl_signbitd): Use isnand instead of isnan.
36761         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
36762         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
36763         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
36764         (main): Use isnand instead of isnan.
36765         * tests/test-round1.c: Include isnand.h.
36766         (main): Use isnand instead of isnan.
36767         * tests/test-round2.c: Include isnand.h instead of isnan.h.
36768         (ISNAN): Set to isnand instead of isnan.
36769         * tests/test-trunc1.c: Include isnand.h.
36770         (main): Use isnand instead of isnan.
36771         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
36772         (equal): Use isnand instead of isnan.
36773         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
36774         isnand-nolibm.
36775         * NEWS: Mention the change.
36776
36777 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36778             Bruno Haible  <bruno@clisp.org>
36779
36780         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
36781         the GCC builtins for signbits are present and set
36782         REPLACE_SIGNBIT_USING_GCC if so.
36783         * lib/math.in.h (signbit): Define using GCC builtins if
36784         REPLACE_SIGNBIT_USING_GCC is set.
36785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
36786         REPLACE_SIGNBIT_USING_GCC.
36787         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
36788
36789 2008-01-25  Jim Meyering  <meyering@redhat.com>
36790
36791         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
36792         * lib/poll.c: Include <config.h>, not "config.h".
36793         * tests/test-getaddrinfo.c: Likewise.
36794
36795 2008-01-25  Simon Josefsson  <simon@josefsson.org>
36796
36797         * modules/sockets-tests: New file.
36798
36799 2008-01-24  Simon Josefsson  <simon@josefsson.org>
36800
36801         * modules/sockets: New module, can be used to call WSA_Startup and
36802         WSA_Cleanup when needed.
36803
36804         * lib/sockets.h, lib/sockets.c: New files.
36805
36806         * m4/sockets.m4: New file.
36807
36808         * tests/test-sockets.c: New file.
36809
36810 2008-01-19  Bruno Haible  <bruno@clisp.org>
36811
36812         * doc/posix-headers: Renamed from doc/headers.
36813         * doc/posix-functions: Renamed from doc/functions.
36814         * doc/gnulib.texi: Update.
36815
36816 2008-01-19  Bruno Haible  <bruno@clisp.org>
36817
36818         * doc/glibc-functions/strcasestr.texi: Include contents of
36819         doc/functions/strcasestr.texi, fixing the list of platforms.
36820         * doc/functions/strcasestr.texi: Remove file.
36821
36822 2008-01-19  Bruno Haible  <bruno@clisp.org>
36823
36824         * doc/glibc-functions/memmem.texi: Include contents of
36825         doc/functions/memmem.texi.
36826         * doc/functions/memmem.texi: Remove file.
36827
36828 2008-01-18  Bruno Haible  <bruno@clisp.org>
36829
36830         * doc/glibc-functions/*.texi: New files.
36831         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
36832         to use the new files.
36833
36834 2008-01-17  Bruno Haible  <bruno@clisp.org>
36835
36836         * tests/test-gethostname.c (main): Fix printf statement.
36837
36838 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36839
36840         * modules/gethostname-tests: New file.
36841
36842         * tests/test-gethostname.c: New file.
36843
36844 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36845
36846         * lib/gethostname.c: Include string.h unconditionally, strncpy is
36847         used by the UNAME case.  Reported by Bruno Haible
36848         <bruno@clisp.org>.
36849
36850 2008-01-17  Eric Blake  <ebb9@byu.net>
36851
36852         Convert c-strcasestr to be more efficient.
36853         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
36854         (Depends-on): Add c-strcase, remove malloca, strnlen.
36855         * tests/test-c-strcasestr.c (main): Enhance test.
36856         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
36857
36858 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36859
36860         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
36861         Use it in creating po/Makevars.
36862
36863 2008-01-15  Simon Josefsson  <simon@josefsson.org>
36864
36865         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
36866         Applications that requires it should initialize libgcrypt
36867         manually.
36868
36869 2008-01-16  Simon Josefsson  <simon@josefsson.org>
36870
36871         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
36872
36873 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36874
36875         Fix problem with getdate on mingw32 reported by Simon Josefsson
36876         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
36877         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
36878         tzname", when deciding whether to declare tzname.
36879         * lib/strftime.c (tzname): Likewise.
36880
36881 2008-01-15  Bruno Haible  <bruno@clisp.org>
36882
36883         Work around a MacOS X 10.5 bug in frexpl().
36884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
36885         * doc/functions/frexpl.texi: Document the bug.
36886         Reported by Elias Pipping <pipping@gentoo.org>.
36887
36888 2008-01-14  Eric Blake  <ebb9@byu.net>
36889
36890         Touch up previous patch.
36891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
36892         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
36893
36894         Convert strcasestr module to use Two-Way algorithm.
36895         * modules/strcasestr-simple: New module, based on the old
36896         strcasestr, but with Two-Way rather than KMP.
36897         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
36898         * lib/string.in.h (rpl_strcasestr): Declare.
36899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
36900         performance.
36901         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
36902         * modules/string (Makefile.am): Support strcasestr.
36903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36904         * modules/strcasestr-tests (Depends-on): Check for alarm.
36905         * tests/test-strcasestr.c: Augment test.
36906         * lib/str-two-way.h: Clean up stray macro.
36907         * NEWS: Document new module.
36908         * MODULES.html.sh (string handling): Likewise.
36909         * doc/functions/strcasestr.texi: New file.
36910         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
36911         here, since it is not a POSIX function.
36912
36913 2008-01-14  Colin Watson  <cjwatson@debian.org>
36914             Bruno Haible  <bruno@clisp.org>
36915
36916         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
36917         works fine; if not, set REPLACE_STRSIGNAL.
36918         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
36919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36920         REPLACE_STRSIGNAL.
36921         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
36922         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
36923         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
36924
36925 2008-01-14  Bruno Haible  <bruno@clisp.org>
36926
36927         * modules/strsignal (Include): Change to <string.h>.
36928
36929 2008-01-14  Colin Watson  <cjwatson@debian.org>
36930
36931         * modules/argp (Notice): Add a notice recommending to change
36932         XGETTEXT_OPTIONS.
36933         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
36934
36935 2008-01-13  Colin Watson  <cjwatson@debian.org>
36936
36937         * modules/strsignal-tests: New file.
36938         * tests/test-strsignal.c: New file.
36939
36940         * lib/strsignal.c: New file, from glibc with modifications.
36941         * lib/siglist.h: New file, from glibc with modifications.
36942         * lib/string.in.h (strsignal): New declaration.
36943         * m4/strsignal.m4: New file.
36944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36945         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
36946         * modules/strsignal: New file.
36947         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
36948         HAVE_DECL_STRSIGNAL.
36949
36950 2008-01-13  Bruno Haible  <bruno@clisp.org>
36951
36952         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
36953         locale encoding is not ASCII. Needed for OpenBSD 4.0.
36954         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36955         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36956
36957 2008-01-13  Bruno Haible  <bruno@clisp.org>
36958
36959         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
36960         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
36961         * lib/argp.h (__attribute__): Likewise.
36962         * lib/c-stack.c (__attribute__): Likewise.
36963         * lib/error.h (__attribute__): Likewise.
36964         * lib/fts.c (__attribute__): Likewise.
36965         * lib/openat.h (__attribute__): Likewise.
36966         * lib/stdio.in.h (__attribute__): Likewise.
36967         * lib/string.in.h (__attribute__): Likewise.
36968         * lib/utimens.c (__attribute__): Likewise.
36969         * lib/vasnprintf.h (__attribute__): Likewise.
36970         * lib/xalloc.h (__attribute__): Likewise.
36971         * lib/xprintf.h (__attribute__): Likewise.
36972         * lib/xstrtol.h (__attribute__): Likewise.
36973         * lib/xvasprintf.h (__attribute__): Likewise.
36974
36975 2008-01-12  Bruno Haible  <bruno@clisp.org>
36976
36977         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
36978         * doc/glibc-headers/a.out.texi: New file.
36979         * doc/glibc-headers/aliases.texi: New file.
36980         * doc/glibc-headers/alloca.texi: New file.
36981         * doc/glibc-headers/ar.texi: New file.
36982         * doc/glibc-headers/argp.texi: New file.
36983         * doc/glibc-headers/argz.texi: New file.
36984         * doc/glibc-headers/byteswap.texi: New file.
36985         * doc/glibc-headers/crypt.texi: New file.
36986         * doc/glibc-headers/endian.texi: New file.
36987         * doc/glibc-headers/envz.texi: New file.
36988         * doc/glibc-headers/err.texi: New file.
36989         * doc/glibc-headers/error.texi: New file.
36990         * doc/glibc-headers/execinfo.texi: New file.
36991         * doc/glibc-headers/fpu_control.texi: New file.
36992         * doc/glibc-headers/fstab.texi: New file.
36993         * doc/glibc-headers/fts.texi: New file.
36994         * doc/glibc-headers/getopt.texi: New file.
36995         * doc/glibc-headers/ieee754.texi: New file.
36996         * doc/glibc-headers/ifaddrs.texi: New file.
36997         * doc/glibc-headers/libintl.texi: New file.
36998         * doc/glibc-headers/mcheck.texi: New file.
36999         * doc/glibc-headers/mntent.texi: New file.
37000         * doc/glibc-headers/obstack.texi: New file.
37001         * doc/glibc-headers/paths.texi: New file.
37002         * doc/glibc-headers/printf.texi: New file.
37003         * doc/glibc-headers/pty.texi: New file.
37004         * doc/glibc-headers/resolv.texi: New file.
37005         * doc/glibc-headers/shadow.texi: New file.
37006         * doc/glibc-headers/sysexits.texi: New file.
37007         * doc/glibc-headers/ttyent.texi: New file.
37008
37009 2008-01-12  Jim Meyering  <meyering@redhat.com>
37010
37011         announce-gen: emit Gnulib's git-based version string.
37012         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37013         New option --gnulib-version=V, where V is expected to be
37014         the output of running git describe in the gnulib directory.
37015         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37016         not useful, and plan to stop publishing an xdelta file with each
37017         coreutils release.
37018
37019         * build-aux/announce-gen: Also check for lzma-compressed files.
37020
37021 2008-01-11  Bruno Haible  <bruno@clisp.org>
37022
37023         * tests/test-memmem.c (main): Increase maximum allowed time.
37024         * tests/test-strstr.c (main): Likewise.
37025
37026 2008-01-11  Bruno Haible  <bruno@clisp.org>
37027
37028         * doc/functions/memmem.texi: Add more precisions about platforms.
37029         * doc/functions/strstr.texi: Likewise.
37030
37031 2008-01-10  Eric Blake  <ebb9@byu.net>
37032
37033         * m4/strstr.m4: Delete cruft from copy-n-paste.
37034         Reported by Bruno Haible.
37035
37036 2008-01-10  Bruno Haible  <bruno@clisp.org>
37037
37038         Make c-strstr rely on strstr.
37039         * lib/c-strstr.c: Don't include str-kmp.h.
37040         (c_strstr): Define in terms of strstr.
37041         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37042         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37043
37044 2008-01-10  Bruno Haible  <bruno@clisp.org>
37045
37046         * doc/gnulib.texi (String Functions in C Locale): New section.
37047         * doc/c-ctype.texi: New file.
37048         * doc/c-strcase.texi: New file.
37049         * doc/c-strcaseeq.texi: New file.
37050         * doc/c-strcasestr.texi: New file.
37051         * doc/c-strstr.texi: New file.
37052         * doc/c-strtod.texi: New file.
37053         * doc/c-strtold.texi: New file.
37054
37055 2008-01-10  Eric Blake  <ebb9@byu.net>
37056
37057         * lib/relocatable.h: Fix a comment.
37058
37059 2008-01-10  Eric Blake  <ebb9@byu.net>
37060
37061         Share two-way algorithm.
37062         * lib/str-two-way.h: New file, merged from...
37063         * lib/memmem.c: ...here...
37064         * lib/strstr.c: ...and here.
37065         * modules/memmem (Files): Use it.
37066         * modules/strstr (Files): Likewise.
37067
37068         Avoid quadratic strstr implementations.
37069         * lib/strstr.c: New file.
37070         * m4/strstr.m4: Likewise.
37071         * modules/strstr: Likewise.
37072         * modules/strstr-tests: Likewise.
37073         * tests/test-strstr.c: Likewise.
37074         * lib/string.in.h (rpl_strstr): Declare.
37075         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37077         * modules/string (Makefile.am): Likewise.
37078         * MODULES.html.sh (string handling): Mention new module.
37079         * doc/functions/strstr.texi (strstr): Document the bug.
37080
37081 2008-01-10  Bruno Haible  <bruno@clisp.org>
37082
37083         * lib/relocatable.h (relocate): State whether result is freshly
37084         allocated or not.
37085         * lib/relocatable.c (relocate): Return a freshly allocated string
37086         instead of a pointer to a privately held string.
37087         Reported by Sylvain Beucler <beuc@gnu.org>.
37088
37089 2008-01-10  Colin Watson  <cjwatson@debian.org>
37090
37091         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37092         s/S_ISNLK/S_ISLNK/.
37093
37094 2008-01-09  Bruno Haible  <bruno@clisp.org>
37095
37096         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37097         and other files.
37098         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37099         if it's only a guess.
37100         * modules/memmem: Simplify by depending on memmem-simple.
37101
37102 2008-01-09  Bruno Haible  <bruno@clisp.org>
37103
37104         Work around OpenBSD 4.0 tdelete() bug.
37105         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37106         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37107         macros and don't redefine the enum values.
37108         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37109         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37110         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37111
37112 2008-01-09  Bruno Haible  <bruno@clisp.org>
37113
37114         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37115         (main): Don't perform the tests if setlocale did not install a UTF-8
37116         locale. Needed on OpenBSD 4.0.
37117         * modules/wcwidth-tests (Depends-on): Add localcharset.
37118
37119 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37120
37121         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37122         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37123         * NEWS: announce this.
37124         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37125
37126 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37127         and Eric Blake  <ebb9@byu.net>
37128
37129         Add memmem-simple module.
37130         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37131         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37132         * modules/memmem-simple: New file.
37133         * modules/memmem (Description): Tweak.
37134         * MODULES.html.sh (string handling): Mention new module.
37135         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37136         addressed by memmem-simple.
37137         * NEWS: Document the difference.
37138
37139 2008-01-09  Eric Blake  <ebb9@byu.net>
37140
37141         Give gcc some memmem optimization hints.
37142         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37143         (strcasestr): Declare as pure.
37144         * modules/memmem (Maintainer): Claim my implementation.
37145
37146 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37147
37148         Support AIX 6.1 and higher.
37149         * build-aux/config.libpath: Likewise.
37150         * build-aux/config.rpath: Likewise.
37151
37152 2008-01-08  Jim Meyering  <meyering@redhat.com>
37153             Bruno Haible  <bruno@clisp.org>
37154
37155         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37156         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37157         Reported by Peter Fales in
37158         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37159
37160 2008-01-08  Bruno Haible  <bruno@clisp.org>
37161
37162         * modules/unictype/category-of (Depends-on): Add
37163         unictype/category-none.
37164         * modules/unictype/category-and-tests (Depends-on): Add
37165         unictype/category-{L,N,Lu,Nd}.
37166         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37167         * modules/unictype/category-or-tests (Depends-on): Add
37168         unictype/category-{L,N}.
37169         * modules/unictype/category-name-tests (Depends-on): Add
37170         unictype/category-{Z,Nl}.
37171         Reported by Simon Josefsson.
37172
37173 2008-01-08  Bruno Haible  <bruno@clisp.org>
37174
37175         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37176         convention better.
37177         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37178         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37179         Reported by Peter Miller <millerp@canb.auug.org.au>.
37180
37181 2008-01-08  Eric Blake  <ebb9@byu.net>
37182
37183         Rewrite memmem to guarantee linear complexity without malloc.
37184         * lib/memmem.c (memmem): Use Two-Way rather than
37185         Knuth-Morris-Pratt, to allow O(1) space usage.
37186         (critical_factorization, two_way_short_needle)
37187         (two_way_long_needle): New functions.
37188         (knuth_morris_pratt): Delete.
37189         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37190         Add stdint.
37191         * tests/test-memmem.c (main): Add tests for periodic needle and
37192         sublinear performance.
37193         * doc/functions/memmem.texi (memmem): Document other deficiencies
37194         in cygwin and older glibc.
37195
37196 2008-01-08  Bruno Haible  <bruno@clisp.org>
37197
37198         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37199         augmentation.
37200
37201 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37202
37203         Add a configure time option: --disable-acl.
37204         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37205         AC_ARG_ENABLE(acl).
37206
37207 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37208
37209         * tests/test-localename.c: Don't include obsolete "setenv.h".
37210
37211         * modules/localename-tests (Depends-on): Need unsetenv.
37212
37213 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37214
37215         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37216
37217 2008-01-06  Colin Watson  <cjwatson@debian.org>
37218
37219         * users.txt: Add man-db.
37220
37221 2008-01-07  Bruno Haible  <bruno@clisp.org>
37222
37223         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37224         previous section name.
37225
37226 2008-01-07  Bruno Haible  <bruno@clisp.org>
37227
37228         * lib/progname.c (set_program_name): Don't strip off a leading
37229         "lt-" prefix outside a .libs directory.
37230         Suggested by Paul Eggert.
37231
37232 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37233             Bruno Haible  <bruno@clisp.org>
37234
37235         Improve memory cleanup in 'relocatable' module.
37236         * lib/relocatable.h (compute_curr_prefix): Change return type to
37237         'char *'.
37238         * lib/relocatable.c (compute_curr_prefix): Change return type to
37239         'char *'. Free curr_installdir after use.
37240         (relocate): Free curr_prefix_better after use.
37241         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37242
37243 2008-01-01  Bruno Haible  <bruno@clisp.org>
37244
37245         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37246         failure on older glibc systems.
37247         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37248
37249 2008-01-05  Eric Blake  <ebb9@byu.net>
37250
37251         Avoid quadratic system memmem.
37252         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37253         Reported by Ralf Wildenhues.
37254
37255         Fix memmem test for mingw.
37256         * modules/memmem-tests (configure.ac): Check for alarm.
37257         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37258         it.
37259         * doc/functions/memmem.texi: New file.
37260         * doc/gnulib.texi (Function Substitutes): Add memmem.
37261         Reported by Bruno Haible.
37262
37263 2008-01-04  Bruno Haible  <bruno@clisp.org>
37264
37265         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37266         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37267         gl_HEADER_STRING_H_DEFAULTS.
37268
37269 2008-01-04  Eric Blake  <ebb9@byu.net>
37270
37271         Shorten duration of memmem test.
37272         * tests/test-memmem.c (main): Use alarm to declare failure if test
37273         is taking too long.
37274         Reported by Ralf Wildenhues.
37275
37276 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37277
37278         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37279         string, needed by strerror.
37280
37281 2008-01-03  Colin Watson  <cjwatson@debian.org>
37282             Bruno Haible  <bruno@clisp.org>
37283
37284         * doc/gnulib-tool.texi (Localization): New section.
37285
37286 2008-01-02  Bruno Haible  <bruno@clisp.org>
37287
37288         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37289         variables to 'unsigned char *' type.
37290         Reported by Paul Eggert.
37291
37292 2008-01-02  Jim Meyering  <jim@meyering.net>
37293
37294         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37295
37296 2007-12-31  Jim Meyering  <jim@meyering.net>
37297
37298         Avoid use of private FTS type name.
37299         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37300
37301 2007-12-30  Karl Berry  <karl@gnu.org>
37302
37303         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37304         work around defect in Texinfo and/or the standalone Info browser.
37305
37306 2007-12-30  Bruno Haible  <bruno@clisp.org>
37307
37308         Unify 5 copies of the KMP code.
37309         * lib/str-kmp.h: New file.
37310         * lib/c-strcasestr.c: Include str-kmp.h.
37311         (knuth_morris_pratt): Remove function.
37312         (c_strcasestr): Update.
37313         * lib/c-strstr.c: Include str-kmp.h.
37314         (knuth_morris_pratt): Remove function.
37315         (c_strcasestr): Update.
37316         * lib/mbscasestr.c: Include str-kmp.h.
37317         (knuth_morris_pratt_unibyte): Remove function.
37318         * lib/mbsstr.c: Include str-kmp.h.
37319         (knuth_morris_pratt_unibyte): Remove function.
37320         * lib/strcasestr.c: Include str-kmp.h.
37321         (knuth_morris_pratt): Remove function.
37322         (strcasestr): Update.
37323         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37324         * modules/c-strstr (Files): Likewise.
37325         * modules/mbscasestr (Files): Likewise.
37326         * modules/mbsstr (Files): Likewise.
37327         * modules/strcasestr (Files): Likewise.
37328         Suggested by Paul Eggert.
37329
37330 2007-12-30  Bruno Haible  <bruno@clisp.org>
37331
37332         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37333         defined.
37334
37335 2007-12-30  Bruno Haible  <bruno@clisp.org>
37336
37337         * lib/xmalloca.h: Include xalloc.h.
37338         (xnmalloca): New macro.
37339
37340 2007-12-30  Bruno Haible  <bruno@clisp.org>
37341
37342         * lib/malloca.h (nmalloca): New macro.
37343         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37344         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37345         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37346         knuth_morris_pratt_multibyte): Likewise.
37347         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37348         knuth_morris_pratt_multibyte): Likewise.
37349         * lib/memmem.c (knuth_morris_pratt): Likewise.
37350         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37351
37352 2007-12-25  Bruno Haible  <bruno@clisp.org>
37353
37354         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37355         * lib/glob.c: Don't include openat.h.
37356         (link_exists2_p): Add back the code that deals with the
37357         !GLOB_ALTDIRFUNC case.
37358         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37359         let it do the filename concatenation.
37360         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37361         * modules/glob (Depends-on): Remove openat.
37362
37363 2007-12-31  Bruno Haible  <bruno@clisp.org>
37364
37365         * modules/dirfd (License): Change to LGPLv2+.
37366         Approved by Jim Meyering.
37367
37368 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37369
37370         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37371         when multiplying M by sizeof (size_t).
37372
37373 2007-12-10  Martin Lambers  <marlam@marlam.de>
37374
37375         Override getpagesize on mingw.
37376         * lib/getpagesize.c: New file.
37377         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37378         * modules/getpagesize (Files): Add lib/getpagesize.c.
37379         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37381         REPLACE_GETPAGESIZE.
37382         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37383
37384 2007-12-25  Bruno Haible  <bruno@clisp.org>
37385
37386         * modules/localcharset (Notice): New field.
37387         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37388         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37389
37390 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37391             Bruno Haible  <bruno@clisp.org>
37392
37393         Avoid using the syntax symbol() in formatted documentation.
37394         * MODULES.html.sh (func_module): When replacing symbol() with a
37395         hyperlink, remove the parentheses. Show an error if some remain.
37396         Recognize and render the '...' syntax.
37397         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37398         Rework. Add paragraph about GCC's inlining.
37399         * doc/alloca.texi: Likewise.
37400         * doc/error.texi: Remove parentheses from symbol reference.
37401         * doc/gnulib-intro.texi: Likewise.
37402         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37403         * modules/fnmatch (Description): Reword to say "the ... function".
37404         * modules/full-read (Description): Likewise.
37405         * modules/full-write (Description): Likewise.
37406         * modules/safe-read (Description): Likewise.
37407         * modules/safe-write (Description): Likewise.
37408         * modules/strchrnul (Description): Likewise.
37409         * modules/trim (Description): Likewise.
37410         * modules/error (Description): Remove parentheses from symbol
37411         references.
37412         * modules/verror (Description): Likewise.
37413         Reported by Karl Berry.
37414
37415 2007-12-25  Bruno Haible  <bruno@clisp.org>
37416
37417         Fixup after 2007-10-16 commit.
37418         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37419
37420 2007-12-24  Bruno Haible  <bruno@clisp.org>
37421
37422         Make --enable-relocatable work with DESTDIR.
37423         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37424         to compute installdir from destprog.
37425         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37426         also set the RELOC_DESTDIR variable.
37427         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37428
37429 2007-12-24  Bruno Haible  <bruno@clisp.org>
37430
37431         Fix link error due to xalloc_die().
37432         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37433         of xreadlink.
37434         * lib/relocwrapper.c: Update comments.
37435         * build-aux/install-reloc: Remove xreadlink.c from file list.
37436         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37437         xreadlink.c.
37438         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37439
37440 2007-12-24  Bruno Haible  <bruno@clisp.org>
37441
37442         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37443         * lib/setenv.h: Remove file.
37444         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37445         lib/setenv.h.
37446         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37447         (Depends-on): Add stdlib.
37448         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37449         gl_FUNC_UNSETENV.
37450         (Include): Replace setenv.h with <stdlib.h>.
37451         * modules/unsetenv: New file.
37452         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37453         * lib/unsetenv.c: Include <stdlib.h> first.
37454         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37455         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37456         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37457         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37458         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37459         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37461         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37462         * doc/functions/unsetenv.texi: Update.
37463         * modules/xsetenv (Depends-on): Add unsetenv.
37464         * modules/getdate (Depends-on): Likewise.
37465         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37466         * lib/xsetenv.c: Don't include setenv.h.
37467         * lib/getdate.y: Likewise.
37468         * lib/relocwrapper.c: Likewise.
37469         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37470         (Depends-on): Add stdlib.
37471         * NEWS: Mention the changes.
37472         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37473
37474 2007-12-23  Bruno Haible  <bruno@clisp.org>
37475
37476         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37477         indentation.
37478
37479 2007-12-23  Bruno Haible  <bruno@clisp.org>
37480
37481         * lib/c-strcasestr.c: Add more comments.
37482         * lib/c-strstr.c: Likewise.
37483         * lib/mbscasestr.c: Likewise.
37484         * lib/mbsstr.c: Likewise.
37485         * lib/strcasestr.c: Likewise.
37486         * lib/memmem.c: Likewise.
37487
37488 2007-12-23  Bruno Haible  <bruno@clisp.org>
37489
37490         * tests/test-memmem.c: Include <string.h> first.
37491
37492 2007-12-22  Bruno Haible  <bruno@clisp.org>
37493
37494         * gnulib-tool (func_create_testdir): Change $auxdir while generating
37495         the contents of $testsbase.
37496         Reported by Ralf Wildenhues.
37497
37498 2007-12-22  Bruno Haible  <bruno@clisp.org>
37499
37500         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
37501         two variables local_ldadd_before, local_ldadd_last.
37502
37503 2007-12-20  Eric Blake  <ebb9@byu.net>
37504
37505         Work around circular library issue when cross-compiling.
37506         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37507         that progname.o does not need to pull in rpl_memcmp.
37508
37509 2007-12-19  Eric Blake  <ebb9@byu.net>
37510
37511         Fix memmem to avoid O(n^2) worst-case complexity.
37512         * lib/memmem.c (knuth_morris_pratt): New function.
37513         (memmem): Use it if first few naive iterations fail.
37514         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37515         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37516         * modules/memchr (License): Likewise.
37517         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37518         malloca.
37519         * tests/test-memmem.c: Rewrite, borrowing ideas from
37520         test-mbsstr1.c; the old version wouldn't even compile!
37521         * modules/memmem-tests: New file.
37522         * lib/string.in.h (rpl_memmem): Add declaration.
37523         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37525         REPLACE_MEMMEM.
37526
37527 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37528
37529         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37530         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37531         before any system include files, and undef after them all.  This
37532         should fix a problem on VMS reported by John E. Malmberg in
37533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37534
37535 2007-12-17  Eric Blake  <ebb9@byu.net>
37536
37537         Revert addition of verify, for BSD/OS.
37538         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37539         can't handle large files, for the sake of obsolete platforms.
37540         * modules/fseeko (Depends-on): Remove verify.
37541         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37542         * doc/functions/ftello.texi (ftello): Likewise.
37543         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37544         Reported by Larry Jones.
37545
37546 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37547
37548         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37549         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
37550
37551 2007-12-17  Jim Meyering  <meyering@redhat.com>
37552
37553         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
37554         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
37555         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
37556         * modules/getcwd (Depends-on): Add openat.
37557         Reported by Petr Salinger.
37558
37559 2007-12-17  Bruno Haible  <bruno@clisp.org>
37560
37561         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
37562         avoid a segmentation fault of the configure test on x86_64 systems.
37563
37564 2007-12-15  Jim Meyering  <meyering@redhat.com>
37565
37566         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
37567
37568 2007-12-13  Eric Blake  <ebb9@byu.net>
37569
37570         Another fseek test.
37571         * tests/test-fseek.c (main): Also test ungetc handling.
37572         * tests/test-fseeko.c (main): Likewise.
37573         * modules/fseeko (Depends-on): Add verify.
37574         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
37575         large.
37576         Reported by Larry Jones.
37577
37578         Fix fseeko on mingw.
37579         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
37580         seek.
37581
37582         Beef up fseek tests.
37583         * tests/test-fseek.c (main): Also test eof handling.
37584         * tests/test-fseeko.c (main): Likewise.
37585         Reported by Larry Jones.
37586
37587 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
37588
37589         Fix fseeko on BSD-based platforms.
37590         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
37591         successful seek.
37592
37593 2007-12-12  Eric Blake  <ebb9@byu.net>
37594
37595         Allow circular dependency of separate libtests.a
37596         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
37597         when use_libtests.
37598
37599 2007-12-11  Eric Blake  <ebb9@byu.net>
37600
37601         Fix bug with -0.0L in previous patch.
37602         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
37603         * tests/test-isnan.c (main): Also test on zeroes.
37604         * tests/test-isnanf.c (main): Likewise.
37605         * tests/test-isnanl.h (main): Likewise.
37606
37607         Detect pseudo-denormals on x86 even when cross-compiling.
37608         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
37609         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
37610         invalid bit patterns that happen to satisfy ==.
37611
37612         Avoid link failures with separate libtests.a.
37613         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
37614         last, to satisfy circular dependencies.
37615
37616 2007-12-11  Eric Blake  <ebb9@byu.net>
37617         and Bruno Haible  <bruno@clisp.org>
37618
37619         Fix OpenBSD 4.0 <float.h> handling of long double.
37620         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
37621         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
37622         * doc/headers/float.texi (float.h): Document OpenBSD bug.
37623
37624 2007-12-11  Jim Meyering  <meyering@redhat.com>
37625
37626         * users.txt: Add libvirt.
37627
37628         Support versions of autoconf prior to 2.59c.
37629         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
37630         if it is not already defined.
37631
37632 2007-12-09  Bruno Haible  <bruno@clisp.org>
37633
37634         Let 'gnulib-tool --import' collect sources needed for the tests in
37635         tests/ rather than in lib/.
37636         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
37637         argument. If true, add rules to generate libtests.a, and put libtests.a
37638         into $(LDADD). Consider source files in subdirectories and set
37639         uses_subdirs.
37640         (func_emit_initmacro_start, func_emit_initmacro_end,
37641         func_emit_initmacro_done): Pass all arguments explicitly.
37642         (func_import): Determine two module lists main_modules,
37643         testsrelated_modules. Determine use_libtests. Determine two variables
37644         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
37645         instead of just sed_transform_lib_file. Determine two variables
37646         main_files and testsrelated_files. Compute 'files' as the union of
37647         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
37648         func_add_or_update. In the generated gnulib-comp.m4, collect the
37649         object files for tests/ in different variables than those for lib/.
37650         Substitute LIBTESTS_LIBDEPS.
37651         (func_create_testdir): Combine the uses_subdirs results from
37652         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
37653
37654 2007-12-09  Bruno Haible  <bruno@clisp.org>
37655
37656         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
37657         the build-aux directory.
37658
37659 2007-12-09  Bruno Haible  <bruno@clisp.org>
37660
37661         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
37662         introduced on 2006-09-09.
37663
37664 2007-12-07  Jim Meyering  <meyering@redhat.com>
37665
37666         Let these macros work also with autoconf-2.59.
37667         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
37668         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
37669         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37670
37671 2007-12-06  Jim Meyering  <meyering@redhat.com>
37672
37673         Avoid a configure-time syntax error in gl_FUNC_ACL.
37674         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
37675         function in each branch, before testing the cache variable.
37676
37677 2007-12-04  Eric Blake  <ebb9@byu.net>
37678
37679         Make scripts executable.
37680         * build-aux/config.guess: Add execute permissions.
37681         * build-aux/config.sub: Likewise.
37682         * build-aux/gendocs.sh: Likewise.
37683
37684         Fix frexp on mingw.
37685         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
37686         cross-compiling.
37687         * doc/functions/frexp.texi (frexp): Document the bug.
37688
37689         Make cygwin fseeko check more reliable.
37690         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
37691         version numbers, rather than unrelated feature check.
37692         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
37693         * doc/functions/ftello.texi (ftello): Likewise.
37694         Reported by Bruno Haible.
37695
37696         * m4/strerror.m4: Bump version number.
37697
37698 2007-12-03  Bruno Haible  <bruno@clisp.org>
37699
37700         * doc/functions/mprotect.texi: Mention the mingw problem.
37701
37702 2007-12-03  Eric Blake  <ebb9@byu.net>
37703
37704         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
37705         REPLACE_STRERROR is initialized before this macro.
37706
37707 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37708
37709         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
37710         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
37711         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
37712         put -lsec in even for programs other than 'ls'.  This fixes a problem
37713         for gettext reported by Bruno Haible in
37714         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
37715         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
37716         Add support for Solaris 10.  This isn't efficient, but should get the
37717         job done for now.
37718
37719 2007-12-03  James Youngman  <jay@gnu.org>
37720
37721         * doc/regexprops-generic.texi: change "an close-group" to "a
37722         close-group" and "illegal" to "not allowed".
37723
37724 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37725
37726         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
37727         pr_byname.h. Needed for the rare case when the maintainer has done
37728         "make maintainer-clean" in the source directory and then attempts a
37729         build outside the source directory.
37730         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
37731         scripts_byname.h.
37732
37733 2007-12-02  Martin Lambers <marlam@marlam.de>
37734             Bruno Haible  <bruno@clisp.org>
37735
37736         * lib/getpagesize.h: Remove file.
37737         * lib/unistd.in.h: Include declaration of getpagesize here.
37738         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
37739         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
37740         HAVE_SYS_PARAM_H.
37741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
37742         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37743         * modules/getpagesize (Files): Remove lib/getpagesize.h.
37744         (Depends-on): Add unistd.
37745         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37746         (Include): Use <unistd.h> instead of getpagesize.h.
37747         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
37748         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37749         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
37750         gl_GETPAGESIZE invocation, already handled by module dependency.
37751         * lib/pagealign_alloc.c: Don't include getpagesize.h.
37752
37753 2007-12-02  Bruno Haible  <bruno@clisp.org>
37754
37755         * modules/strings-tests: New file.
37756         * tests/test-strings.c: New file.
37757
37758         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
37759         * lib/strings.in.h: New file.
37760         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
37761         * m4/strings_h.m4: New file.
37762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
37763         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
37764         * modules/strings: New file.
37765         * modules/string (Makefile.am): Update.
37766         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
37767         Reported by Karl Berry.
37768
37769 2007-12-01  Eric Blake  <ebb9@byu.net>
37770
37771         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
37772         accomodate fix in cygwin 1.5.25.
37773
37774 2007-12-01  Jim Meyering  <meyering@redhat.com>
37775
37776         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
37777         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
37778         that would inhibit utf8-optimization of a regexp containing line-
37779         or buffer-anchors, e.g., `^', `$'.
37780
37781 2007-11-30  Bruno Haible  <bruno@clisp.org>
37782
37783         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
37784         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
37785         glthread_recursive_lock_init.
37786         * lib/lock.c (glthread_recursive_lock_init)
37787         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
37788         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37789
37790 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
37791
37792         New function qset_acl, like set_acl but with syscall semantics.
37793         * lib/acl.h (qset_acl): New decl.
37794         * lib/acl.c (qset_acl): New function.
37795         (set_acl): Use new function.  Use more-consistent diagnostics.
37796
37797 2007-11-28  Jim Meyering  <meyering@redhat.com>
37798
37799         * modules/physmem (License): Change from GPL to LGPLv2+.
37800
37801 2007-11-26  Bruno Haible  <bruno@clisp.org>
37802
37803         * lib/vasnprintf.c (decode_long_double): Don't abort if the
37804         'long double' type has excess precision.
37805         Reported by Jim Meyering in
37806         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
37807
37808 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37809
37810         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
37811         Sync from <http://gnu.org/licenses>.
37812         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
37813         with license text from same location.
37814         * doc/maintain.texi, doc/standards.texi:  Sync from
37815         <http://savannah.gnu.org/projects/gnustandards>.
37816
37817 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
37818         and Jim Meyering  <meyering@redhat.com>
37819
37820         Adjust getdate' grammar to accept a slightly more regular language.
37821         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
37822         Before, the former was rejected.
37823         * lib/getdate.y (digits_to_date_time): New function, factored
37824         out of ...
37825         (number): ...here.  Just call digits_to_date_time.
37826         (hybrid): New non-terminal to handle an <unsigned number,
37827         signed relative offset> sequence consistently.
37828
37829 2007-11-18  Jim Meyering  <meyering@redhat.com>
37830
37831         Pull my changes from coreutils:
37832         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
37833         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
37834         use of $gnulib_tool_option_extras, so that it's separated from the
37835         preceding argument.
37836
37837         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
37838         * build-aux/bootstrap (cp_mark_as_generated): Create any required
37839         parent destination directories before copying a file into place.
37840
37841 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37842
37843         bootstrap: work also with 4-argument variant of AC_INIT
37844         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
37845
37846 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37847
37848         Port test-getaddrinfo to Solaris.
37849         Problem reported by Bruno Haible in
37850         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
37851         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
37852         explanation of setting 'hints'.
37853         Don't reject an implementation merely because it returns EAI_SERVICE.
37854         (EAI_SERVICE): Define to 0 if not defined.
37855
37856 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37857
37858         The license of gnu-make and posix-shell is now "GPLed build tool".
37859         * modules/gnu-make (License): Likewise.
37860         * modules/posix-shell (License): Likewise.
37861
37862         New module posix-shell, for determining a POSIX shell
37863         or perhaps something that is close enough to a POSIX shell.
37864         * m4/posix-shell.m4: New file.
37865         * modules/posix-shell: New file.
37866
37867         * MODULES.html.sh: Mention new module.
37868
37869         New module gnu-make, for determining whether we're using GNU Make.
37870         * m4/gnu-make.m4: New file.
37871         * modules/gnu-make: New file.
37872         * MODULES.html.sh: Mention new module.
37873
37874 2007-11-14  Jim Meyering  <meyering@redhat.com>
37875
37876         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
37877         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
37878         use this macro to create a function _definition_.
37879         Remove useless "#undef ARGMATCH_DIE".
37880
37881 2007-11-14  Bruno Haible  <bruno@clisp.org>
37882
37883         * lib/config.charset: Update for OpenBSD 4.1.
37884         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
37885
37886 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
37887
37888         Document 64-bit #if problems in stdint.texi.
37889         * doc/headers/stdint.texi (stdint.h): Mention problems with
37890         64-bit-#if, and how to work around them.
37891
37892         Don't insist on 'long long int' support in the preprocessor.  It
37893         breaks too many things.  For example, PRIdMAX still uses a 'long
37894         long int' format with the latest Sun compiler, even though
37895         HAVE_LONG_LONG_INT isn't defined due to that compiler's
37896         preprocessor problem.  This causes the latest coreutils to dump
37897         core on Solaris 10 sparc with the Sun C compiler.
37898         Instead, fix the 2007-10-16 problem in a different way, by evaluating
37899         the troublesome expressions at configure-time, not at #if-time.
37900         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
37901         preprocessor.
37902         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
37903         compile-time C checks, done at 'configure'-time.
37904         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
37905         * modules/inttypes (Makefile): Substitute the new symbols that
37906         gl_INTTYPES_H now generates.
37907         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
37908
37909 2007-11-12  Bruno Haible  <bruno@clisp.org>
37910
37911         Tests for Unicode character classification functions.
37912
37913         * modules/unictype/bidicategory-byname-tests: New file.
37914         * modules/unictype/bidicategory-name-tests: New file.
37915         * modules/unictype/bidicategory-of-tests: New file.
37916         * modules/unictype/bidicategory-test-tests: New file.
37917         * modules/unictype/block-list-tests: New file.
37918         * modules/unictype/block-of-tests: New file.
37919         * modules/unictype/block-test-tests: New file.
37920         * modules/unictype/category-C-tests: New file.
37921         * modules/unictype/category-Cc-tests: New file.
37922         * modules/unictype/category-Cf-tests: New file.
37923         * modules/unictype/category-Cn-tests: New file.
37924         * modules/unictype/category-Co-tests: New file.
37925         * modules/unictype/category-Cs-tests: New file.
37926         * modules/unictype/category-L-tests: New file.
37927         * modules/unictype/category-Ll-tests: New file.
37928         * modules/unictype/category-Lm-tests: New file.
37929         * modules/unictype/category-Lo-tests: New file.
37930         * modules/unictype/category-Lt-tests: New file.
37931         * modules/unictype/category-Lu-tests: New file.
37932         * modules/unictype/category-M-tests: New file.
37933         * modules/unictype/category-Mc-tests: New file.
37934         * modules/unictype/category-Me-tests: New file.
37935         * modules/unictype/category-Mn-tests: New file.
37936         * modules/unictype/category-N-tests: New file.
37937         * modules/unictype/category-Nd-tests: New file.
37938         * modules/unictype/category-Nl-tests: New file.
37939         * modules/unictype/category-No-tests: New file.
37940         * modules/unictype/category-P-tests: New file.
37941         * modules/unictype/category-Pc-tests: New file.
37942         * modules/unictype/category-Pd-tests: New file.
37943         * modules/unictype/category-Pe-tests: New file.
37944         * modules/unictype/category-Pf-tests: New file.
37945         * modules/unictype/category-Pi-tests: New file.
37946         * modules/unictype/category-Po-tests: New file.
37947         * modules/unictype/category-Ps-tests: New file.
37948         * modules/unictype/category-S-tests: New file.
37949         * modules/unictype/category-Sc-tests: New file.
37950         * modules/unictype/category-Sk-tests: New file.
37951         * modules/unictype/category-Sm-tests: New file.
37952         * modules/unictype/category-So-tests: New file.
37953         * modules/unictype/category-Z-tests: New file.
37954         * modules/unictype/category-Zl-tests: New file.
37955         * modules/unictype/category-Zp-tests: New file.
37956         * modules/unictype/category-Zs-tests: New file.
37957         * modules/unictype/category-and-not-tests: New file.
37958         * modules/unictype/category-and-tests: New file.
37959         * modules/unictype/category-byname-tests: New file.
37960         * modules/unictype/category-name-tests: New file.
37961         * modules/unictype/category-none-tests: New file.
37962         * modules/unictype/category-of-tests: New file.
37963         * modules/unictype/category-or-tests: New file.
37964         * modules/unictype/category-test-withtable-tests: New file.
37965         * modules/unictype/combining-class-tests: New file.
37966         * modules/unictype/ctype-alnum-tests: New file.
37967         * modules/unictype/ctype-alpha-tests: New file.
37968         * modules/unictype/ctype-blank-tests: New file.
37969         * modules/unictype/ctype-cntrl-tests: New file.
37970         * modules/unictype/ctype-digit-tests: New file.
37971         * modules/unictype/ctype-graph-tests: New file.
37972         * modules/unictype/ctype-lower-tests: New file.
37973         * modules/unictype/ctype-print-tests: New file.
37974         * modules/unictype/ctype-punct-tests: New file.
37975         * modules/unictype/ctype-space-tests: New file.
37976         * modules/unictype/ctype-upper-tests: New file.
37977         * modules/unictype/ctype-xdigit-tests: New file.
37978         * modules/unictype/decimal-digit-tests: New file.
37979         * modules/unictype/digit-tests: New file.
37980         * modules/unictype/mirror-tests: New file.
37981         * modules/unictype/numeric-tests: New file.
37982         * modules/unictype/property-alphabetic-tests: New file.
37983         * modules/unictype/property-ascii-hex-digit-tests: New file.
37984         * modules/unictype/property-bidi-arabic-digit-tests: New file.
37985         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
37986         * modules/unictype/property-bidi-block-separator-tests: New file.
37987         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
37988         * modules/unictype/property-bidi-common-separator-tests: New file.
37989         * modules/unictype/property-bidi-control-tests: New file.
37990         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
37991         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
37992         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
37993         * modules/unictype/property-bidi-european-digit-tests: New file.
37994         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
37995         * modules/unictype/property-bidi-left-to-right-tests: New file.
37996         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
37997         * modules/unictype/property-bidi-other-neutral-tests: New file.
37998         * modules/unictype/property-bidi-pdf-tests: New file.
37999         * modules/unictype/property-bidi-segment-separator-tests: New file.
38000         * modules/unictype/property-bidi-whitespace-tests: New file.
38001         * modules/unictype/property-byname-tests: New file.
38002         * modules/unictype/property-combining-tests: New file.
38003         * modules/unictype/property-composite-tests: New file.
38004         * modules/unictype/property-currency-symbol-tests: New file.
38005         * modules/unictype/property-dash-tests: New file.
38006         * modules/unictype/property-decimal-digit-tests: New file.
38007         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38008         * modules/unictype/property-deprecated-tests: New file.
38009         * modules/unictype/property-diacritic-tests: New file.
38010         * modules/unictype/property-extender-tests: New file.
38011         * modules/unictype/property-format-control-tests: New file.
38012         * modules/unictype/property-grapheme-base-tests: New file.
38013         * modules/unictype/property-grapheme-extend-tests: New file.
38014         * modules/unictype/property-grapheme-link-tests: New file.
38015         * modules/unictype/property-hex-digit-tests: New file.
38016         * modules/unictype/property-hyphen-tests: New file.
38017         * modules/unictype/property-id-continue-tests: New file.
38018         * modules/unictype/property-id-start-tests: New file.
38019         * modules/unictype/property-ideographic-tests: New file.
38020         * modules/unictype/property-ids-binary-operator-tests: New file.
38021         * modules/unictype/property-ids-trinary-operator-tests: New file.
38022         * modules/unictype/property-ignorable-control-tests: New file.
38023         * modules/unictype/property-iso-control-tests: New file.
38024         * modules/unictype/property-join-control-tests: New file.
38025         * modules/unictype/property-left-of-pair-tests: New file.
38026         * modules/unictype/property-line-separator-tests: New file.
38027         * modules/unictype/property-logical-order-exception-tests: New file.
38028         * modules/unictype/property-lowercase-tests: New file.
38029         * modules/unictype/property-math-tests: New file.
38030         * modules/unictype/property-non-break-tests: New file.
38031         * modules/unictype/property-not-a-character-tests: New file.
38032         * modules/unictype/property-numeric-tests: New file.
38033         * modules/unictype/property-other-alphabetic-tests: New file.
38034         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38035         * modules/unictype/property-other-grapheme-extend-tests: New file.
38036         * modules/unictype/property-other-id-continue-tests: New file.
38037         * modules/unictype/property-other-id-start-tests: New file.
38038         * modules/unictype/property-other-lowercase-tests: New file.
38039         * modules/unictype/property-other-math-tests: New file.
38040         * modules/unictype/property-other-uppercase-tests: New file.
38041         * modules/unictype/property-paired-punctuation-tests: New file.
38042         * modules/unictype/property-paragraph-separator-tests: New file.
38043         * modules/unictype/property-pattern-syntax-tests: New file.
38044         * modules/unictype/property-pattern-white-space-tests: New file.
38045         * modules/unictype/property-private-use-tests: New file.
38046         * modules/unictype/property-punctuation-tests: New file.
38047         * modules/unictype/property-quotation-mark-tests: New file.
38048         * modules/unictype/property-radical-tests: New file.
38049         * modules/unictype/property-sentence-terminal-tests: New file.
38050         * modules/unictype/property-soft-dotted-tests: New file.
38051         * modules/unictype/property-space-tests: New file.
38052         * modules/unictype/property-terminal-punctuation-tests: New file.
38053         * modules/unictype/property-test-tests: New file.
38054         * modules/unictype/property-titlecase-tests: New file.
38055         * modules/unictype/property-unassigned-code-value-tests: New file.
38056         * modules/unictype/property-unified-ideograph-tests: New file.
38057         * modules/unictype/property-uppercase-tests: New file.
38058         * modules/unictype/property-variation-selector-tests: New file.
38059         * modules/unictype/property-white-space-tests: New file.
38060         * modules/unictype/property-xid-continue-tests: New file.
38061         * modules/unictype/property-xid-start-tests: New file.
38062         * modules/unictype/property-zero-width-tests: New file.
38063         * modules/unictype/scripts-tests: New file.
38064         * modules/unictype/syntax-c-ident-tests: New file.
38065         * modules/unictype/syntax-c-whitespace-tests: New file.
38066         * modules/unictype/syntax-java-ident-tests: New file.
38067         * modules/unictype/syntax-java-whitespace-tests: New file.
38068         * tests/unictype/test-bidi_byname.c: New file.
38069         * tests/unictype/test-bidi_name.c: New file.
38070         * tests/unictype/test-bidi_of.c: New file.
38071         * tests/unictype/test-bidi_test.c: New file.
38072         * tests/unictype/test-block_list.c: New file.
38073         * tests/unictype/test-block_of.c: New file.
38074         * tests/unictype/test-block_test.c: New file.
38075         * tests/unictype/test-categ_and.c: New file.
38076         * tests/unictype/test-categ_and_not.c: New file.
38077         * tests/unictype/test-categ_byname.c: New file.
38078         * tests/unictype/test-categ_name.c: New file.
38079         * tests/unictype/test-categ_none.c: New file.
38080         * tests/unictype/test-categ_of.c: New file.
38081         * tests/unictype/test-categ_or.c: New file.
38082         * tests/unictype/test-categ_test_withtable.c: New file.
38083         * tests/unictype/test-combining.c: New file.
38084         * tests/unictype/test-decdigit.c: New file.
38085         * tests/unictype/test-digit.c: New file.
38086         * tests/unictype/test-mirror.c: New file.
38087         * tests/unictype/test-numeric.c: New file.
38088         * tests/unictype/test-pr_byname.c: New file.
38089         * tests/unictype/test-pr_test.c: New file.
38090         * tests/unictype/test-predicate-part1.h: New file.
38091         * tests/unictype/test-predicate-part2.h: New file.
38092         * tests/unictype/test-scripts.c: New file.
38093         * tests/unictype/test-sy_c_ident.c: New file.
38094         * tests/unictype/test-sy_java_ident.c: New file.
38095
38096         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38097         for Unicode 5.0.0.
38098         * tests/unictype/test-categ_Cc.c: Likewise.
38099         * tests/unictype/test-categ_Cf.c: Likewise.
38100         * tests/unictype/test-categ_Cn.c: Likewise.
38101         * tests/unictype/test-categ_Co.c: Likewise.
38102         * tests/unictype/test-categ_Cs.c: Likewise.
38103         * tests/unictype/test-categ_L.c: Likewise.
38104         * tests/unictype/test-categ_Ll.c: Likewise.
38105         * tests/unictype/test-categ_Lm.c: Likewise.
38106         * tests/unictype/test-categ_Lo.c: Likewise.
38107         * tests/unictype/test-categ_Lt.c: Likewise.
38108         * tests/unictype/test-categ_Lu.c: Likewise.
38109         * tests/unictype/test-categ_M.c: Likewise.
38110         * tests/unictype/test-categ_Mc.c: Likewise.
38111         * tests/unictype/test-categ_Me.c: Likewise.
38112         * tests/unictype/test-categ_Mn.c: Likewise.
38113         * tests/unictype/test-categ_N.c: Likewise.
38114         * tests/unictype/test-categ_Nd.c: Likewise.
38115         * tests/unictype/test-categ_Nl.c: Likewise.
38116         * tests/unictype/test-categ_No.c: Likewise.
38117         * tests/unictype/test-categ_P.c: Likewise.
38118         * tests/unictype/test-categ_Pc.c: Likewise.
38119         * tests/unictype/test-categ_Pd.c: Likewise.
38120         * tests/unictype/test-categ_Pe.c: Likewise.
38121         * tests/unictype/test-categ_Pf.c: Likewise.
38122         * tests/unictype/test-categ_Pi.c: Likewise.
38123         * tests/unictype/test-categ_Po.c: Likewise.
38124         * tests/unictype/test-categ_Ps.c: Likewise.
38125         * tests/unictype/test-categ_S.c: Likewise.
38126         * tests/unictype/test-categ_Sc.c: Likewise.
38127         * tests/unictype/test-categ_Sk.c: Likewise.
38128         * tests/unictype/test-categ_Sm.c: Likewise.
38129         * tests/unictype/test-categ_So.c: Likewise.
38130         * tests/unictype/test-categ_Z.c: Likewise.
38131         * tests/unictype/test-categ_Zl.c: Likewise.
38132         * tests/unictype/test-categ_Zp.c: Likewise.
38133         * tests/unictype/test-categ_Zs.c: Likewise.
38134         * tests/unictype/test-ctype_alnum.c: Likewise.
38135         * tests/unictype/test-ctype_alpha.c: Likewise.
38136         * tests/unictype/test-ctype_blank.c: Likewise.
38137         * tests/unictype/test-ctype_cntrl.c: Likewise.
38138         * tests/unictype/test-ctype_digit.c: Likewise.
38139         * tests/unictype/test-ctype_graph.c: Likewise.
38140         * tests/unictype/test-ctype_lower.c: Likewise.
38141         * tests/unictype/test-ctype_print.c: Likewise.
38142         * tests/unictype/test-ctype_punct.c: Likewise.
38143         * tests/unictype/test-ctype_space.c: Likewise.
38144         * tests/unictype/test-ctype_upper.c: Likewise.
38145         * tests/unictype/test-ctype_xdigit.c: Likewise.
38146         * tests/unictype/test-decdigit.h: Likewise.
38147         * tests/unictype/test-digit.h: Likewise.
38148         * tests/unictype/test-numeric.h: Likewise.
38149         * tests/unictype/test-pr_alphabetic.c: Likewise.
38150         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38151         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38152         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38153         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38154         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38155         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38156         * tests/unictype/test-pr_bidi_control.c: Likewise.
38157         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38158         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38159         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38160         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38161         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38162         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38163         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38164         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38165         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38166         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38167         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38168         * tests/unictype/test-pr_combining.c: Likewise.
38169         * tests/unictype/test-pr_composite.c: Likewise.
38170         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38171         * tests/unictype/test-pr_dash.c: Likewise.
38172         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38173         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38174         * tests/unictype/test-pr_deprecated.c: Likewise.
38175         * tests/unictype/test-pr_diacritic.c: Likewise.
38176         * tests/unictype/test-pr_extender.c: Likewise.
38177         * tests/unictype/test-pr_format_control.c: Likewise.
38178         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38179         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38180         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38181         * tests/unictype/test-pr_hex_digit.c: Likewise.
38182         * tests/unictype/test-pr_hyphen.c: Likewise.
38183         * tests/unictype/test-pr_id_continue.c: Likewise.
38184         * tests/unictype/test-pr_id_start.c: Likewise.
38185         * tests/unictype/test-pr_ideographic.c: Likewise.
38186         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38187         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38188         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38189         * tests/unictype/test-pr_iso_control.c: Likewise.
38190         * tests/unictype/test-pr_join_control.c: Likewise.
38191         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38192         * tests/unictype/test-pr_line_separator.c: Likewise.
38193         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38194         * tests/unictype/test-pr_lowercase.c: Likewise.
38195         * tests/unictype/test-pr_math.c: Likewise.
38196         * tests/unictype/test-pr_non_break.c: Likewise.
38197         * tests/unictype/test-pr_not_a_character.c: Likewise.
38198         * tests/unictype/test-pr_numeric.c: Likewise.
38199         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38200         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38201         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38202         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38203         * tests/unictype/test-pr_other_id_start.c: Likewise.
38204         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38205         * tests/unictype/test-pr_other_math.c: Likewise.
38206         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38207         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38208         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38209         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38210         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38211         * tests/unictype/test-pr_private_use.c: Likewise.
38212         * tests/unictype/test-pr_punctuation.c: Likewise.
38213         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38214         * tests/unictype/test-pr_radical.c: Likewise.
38215         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38216         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38217         * tests/unictype/test-pr_space.c: Likewise.
38218         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38219         * tests/unictype/test-pr_titlecase.c: Likewise.
38220         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38221         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38222         * tests/unictype/test-pr_uppercase.c: Likewise.
38223         * tests/unictype/test-pr_variation_selector.c: Likewise.
38224         * tests/unictype/test-pr_white_space.c: Likewise.
38225         * tests/unictype/test-pr_xid_continue.c: Likewise.
38226         * tests/unictype/test-pr_xid_start.c: Likewise.
38227         * tests/unictype/test-pr_zero_width.c: Likewise.
38228         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38229         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38230
38231 2007-11-12  Bruno Haible  <bruno@clisp.org>
38232
38233         Unicode character classification functions.
38234         * lib/unictype.h: New file.
38235         * modules/unictype/base: New file.
38236         * modules/unictype/category-L: New file.
38237         * modules/unictype/category-Lu: New file.
38238         * modules/unictype/category-Ll: New file.
38239         * modules/unictype/category-Lt: New file.
38240         * modules/unictype/category-Lm: New file.
38241         * modules/unictype/category-Lo: New file.
38242         * modules/unictype/category-M: New file.
38243         * modules/unictype/category-Mn: New file.
38244         * modules/unictype/category-Mc: New file.
38245         * modules/unictype/category-Me: New file.
38246         * modules/unictype/category-N: New file.
38247         * modules/unictype/category-Nd: New file.
38248         * modules/unictype/category-Nl: New file.
38249         * modules/unictype/category-No: New file.
38250         * modules/unictype/category-P: New file.
38251         * modules/unictype/category-Pc: New file.
38252         * modules/unictype/category-Pd: New file.
38253         * modules/unictype/category-Ps: New file.
38254         * modules/unictype/category-Pe: New file.
38255         * modules/unictype/category-Pi: New file.
38256         * modules/unictype/category-Pf: New file.
38257         * modules/unictype/category-Po: New file.
38258         * modules/unictype/category-S: New file.
38259         * modules/unictype/category-Sm: New file.
38260         * modules/unictype/category-Sc: New file.
38261         * modules/unictype/category-Sk: New file.
38262         * modules/unictype/category-So: New file.
38263         * modules/unictype/category-Z: New file.
38264         * modules/unictype/category-Zs: New file.
38265         * modules/unictype/category-Zl: New file.
38266         * modules/unictype/category-Zp: New file.
38267         * modules/unictype/category-C: New file.
38268         * modules/unictype/category-Cc: New file.
38269         * modules/unictype/category-Cf: New file.
38270         * modules/unictype/category-Cs: New file.
38271         * modules/unictype/category-Co: New file.
38272         * modules/unictype/category-Cn: New file.
38273         * modules/unictype/category-or: New file.
38274         * modules/unictype/category-of: New file.
38275         * modules/unictype/category-test: New file.
38276         * modules/unictype/category-test-withtable: New file.
38277         * modules/unictype/category-byname: New file.
38278         * modules/unictype/category-none: New file.
38279         * modules/unictype/category-and: New file.
38280         * modules/unictype/category-and-not: New file.
38281         * modules/unictype/category-name: New file.
38282         * modules/unictype/combining-class: New file.
38283         * modules/unictype/category-all: New file.
38284         * modules/unictype/bidicategory-all: New file.
38285         * modules/unictype/bidicategory-byname: New file.
38286         * modules/unictype/bidicategory-name: New file.
38287         * modules/unictype/bidicategory-of: New file.
38288         * modules/unictype/bidicategory-test: New file.
38289         * modules/unictype/decimal-digit: New file.
38290         * modules/unictype/digit: New file.
38291         * modules/unictype/numeric: New file.
38292         * modules/unictype/mirror: New file.
38293         * modules/unictype/property-white-space: New file.
38294         * modules/unictype/property-alphabetic: New file.
38295         * modules/unictype/property-other-alphabetic: New file.
38296         * modules/unictype/property-not-a-character: New file.
38297         * modules/unictype/property-default-ignorable-code-point: New file.
38298         * modules/unictype/property-other-default-ignorable-code-point: New
38299         file.
38300         * modules/unictype/property-deprecated: New file.
38301         * modules/unictype/property-logical-order-exception: New file.
38302         * modules/unictype/property-variation-selector: New file.
38303         * modules/unictype/property-private-use: New file.
38304         * modules/unictype/property-unassigned-code-value: New file.
38305         * modules/unictype/property-uppercase: New file.
38306         * modules/unictype/property-other-uppercase: New file.
38307         * modules/unictype/property-lowercase: New file.
38308         * modules/unictype/property-other-lowercase: New file.
38309         * modules/unictype/property-titlecase: New file.
38310         * modules/unictype/property-soft-dotted: New file.
38311         * modules/unictype/property-id-start: New file.
38312         * modules/unictype/property-other-id-start: New file.
38313         * modules/unictype/property-id-continue: New file.
38314         * modules/unictype/property-other-id-continue: New file.
38315         * modules/unictype/property-xid-start: New file.
38316         * modules/unictype/property-xid-continue: New file.
38317         * modules/unictype/property-pattern-white-space: New file.
38318         * modules/unictype/property-pattern-syntax: New file.
38319         * modules/unictype/property-join-control: New file.
38320         * modules/unictype/property-grapheme-base: New file.
38321         * modules/unictype/property-grapheme-extend: New file.
38322         * modules/unictype/property-other-grapheme-extend: New file.
38323         * modules/unictype/property-grapheme-link: New file.
38324         * modules/unictype/property-bidi-control: New file.
38325         * modules/unictype/property-bidi-left-to-right: New file.
38326         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38327         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38328         * modules/unictype/property-bidi-european-digit: New file.
38329         * modules/unictype/property-bidi-eur-num-separator: New file.
38330         * modules/unictype/property-bidi-eur-num-terminator: New file.
38331         * modules/unictype/property-bidi-arabic-digit: New file.
38332         * modules/unictype/property-bidi-common-separator: New file.
38333         * modules/unictype/property-bidi-block-separator: New file.
38334         * modules/unictype/property-bidi-segment-separator: New file.
38335         * modules/unictype/property-bidi-whitespace: New file.
38336         * modules/unictype/property-bidi-non-spacing-mark: New file.
38337         * modules/unictype/property-bidi-boundary-neutral: New file.
38338         * modules/unictype/property-bidi-pdf: New file.
38339         * modules/unictype/property-bidi-embedding-or-override: New file.
38340         * modules/unictype/property-bidi-other-neutral: New file.
38341         * modules/unictype/property-hex-digit: New file.
38342         * modules/unictype/property-ascii-hex-digit: New file.
38343         * modules/unictype/property-ideographic: New file.
38344         * modules/unictype/property-unified-ideograph: New file.
38345         * modules/unictype/property-radical: New file.
38346         * modules/unictype/property-ids-binary-operator: New file.
38347         * modules/unictype/property-ids-trinary-operator: New file.
38348         * modules/unictype/property-zero-width: New file.
38349         * modules/unictype/property-space: New file.
38350         * modules/unictype/property-non-break: New file.
38351         * modules/unictype/property-iso-control: New file.
38352         * modules/unictype/property-format-control: New file.
38353         * modules/unictype/property-dash: New file.
38354         * modules/unictype/property-hyphen: New file.
38355         * modules/unictype/property-punctuation: New file.
38356         * modules/unictype/property-line-separator: New file.
38357         * modules/unictype/property-paragraph-separator: New file.
38358         * modules/unictype/property-quotation-mark: New file.
38359         * modules/unictype/property-sentence-terminal: New file.
38360         * modules/unictype/property-terminal-punctuation: New file.
38361         * modules/unictype/property-currency-symbol: New file.
38362         * modules/unictype/property-math: New file.
38363         * modules/unictype/property-other-math: New file.
38364         * modules/unictype/property-paired-punctuation: New file.
38365         * modules/unictype/property-left-of-pair: New file.
38366         * modules/unictype/property-combining: New file.
38367         * modules/unictype/property-composite: New file.
38368         * modules/unictype/property-decimal-digit: New file.
38369         * modules/unictype/property-numeric: New file.
38370         * modules/unictype/property-diacritic: New file.
38371         * modules/unictype/property-extender: New file.
38372         * modules/unictype/property-ignorable-control: New file.
38373         * modules/unictype/property-test: New file.
38374         * modules/unictype/property-byname: New file.
38375         * modules/unictype/property-all: New file.
38376         * modules/unictype/scripts: New file.
38377         * modules/unictype/scripts-all: New file.
38378         * modules/unictype/block-of: New file.
38379         * modules/unictype/block-test: New file.
38380         * modules/unictype/block-list: New file.
38381         * modules/unictype/block-all: New file.
38382         * modules/unictype/syntax-c-whitespace: New file.
38383         * modules/unictype/syntax-java-whitespace: New file.
38384         * modules/unictype/syntax-c-ident: New file.
38385         * modules/unictype/syntax-java-ident: New file.
38386         * modules/unictype/ctype-alnum: New file.
38387         * modules/unictype/ctype-alpha: New file.
38388         * modules/unictype/ctype-cntrl: New file.
38389         * modules/unictype/ctype-digit: New file.
38390         * modules/unictype/ctype-graph: New file.
38391         * modules/unictype/ctype-lower: New file.
38392         * modules/unictype/ctype-print: New file.
38393         * modules/unictype/ctype-punct: New file.
38394         * modules/unictype/ctype-space: New file.
38395         * modules/unictype/ctype-upper: New file.
38396         * modules/unictype/ctype-xdigit: New file.
38397         * modules/unictype/ctype-blank: New file.
38398         * lib/unictype/bidi_byname.c: New file.
38399         * lib/unictype/bidi_name.c: New file.
38400         * lib/unictype/bidi_of.c: New file.
38401         * lib/unictype/bidi_test.c: New file.
38402         * lib/unictype/bitmap.h: New file.
38403         * lib/unictype/block_test.c: New file.
38404         * lib/unictype/blocks.c: New file.
38405         * lib/unictype/categ_C.c: New file.
38406         * lib/unictype/categ_Cc.c: New file.
38407         * lib/unictype/categ_Cf.c: New file.
38408         * lib/unictype/categ_Cn.c: New file.
38409         * lib/unictype/categ_Co.c: New file.
38410         * lib/unictype/categ_Cs.c: New file.
38411         * lib/unictype/categ_L.c: New file.
38412         * lib/unictype/categ_Ll.c: New file.
38413         * lib/unictype/categ_Lm.c: New file.
38414         * lib/unictype/categ_Lo.c: New file.
38415         * lib/unictype/categ_Lt.c: New file.
38416         * lib/unictype/categ_Lu.c: New file.
38417         * lib/unictype/categ_M.c: New file.
38418         * lib/unictype/categ_Mc.c: New file.
38419         * lib/unictype/categ_Me.c: New file.
38420         * lib/unictype/categ_Mn.c: New file.
38421         * lib/unictype/categ_N.c: New file.
38422         * lib/unictype/categ_Nd.c: New file.
38423         * lib/unictype/categ_Nl.c: New file.
38424         * lib/unictype/categ_No.c: New file.
38425         * lib/unictype/categ_P.c: New file.
38426         * lib/unictype/categ_Pc.c: New file.
38427         * lib/unictype/categ_Pd.c: New file.
38428         * lib/unictype/categ_Pe.c: New file.
38429         * lib/unictype/categ_Pf.c: New file.
38430         * lib/unictype/categ_Pi.c: New file.
38431         * lib/unictype/categ_Po.c: New file.
38432         * lib/unictype/categ_Ps.c: New file.
38433         * lib/unictype/categ_S.c: New file.
38434         * lib/unictype/categ_Sc.c: New file.
38435         * lib/unictype/categ_Sk.c: New file.
38436         * lib/unictype/categ_Sm.c: New file.
38437         * lib/unictype/categ_So.c: New file.
38438         * lib/unictype/categ_Z.c: New file.
38439         * lib/unictype/categ_Zl.c: New file.
38440         * lib/unictype/categ_Zp.c: New file.
38441         * lib/unictype/categ_Zs.c: New file.
38442         * lib/unictype/categ_and.c: New file.
38443         * lib/unictype/categ_and_not.c: New file.
38444         * lib/unictype/categ_byname.c: New file.
38445         * lib/unictype/categ_name.c: New file.
38446         * lib/unictype/categ_none.c: New file.
38447         * lib/unictype/categ_of.c: New file.
38448         * lib/unictype/categ_or.c: New file.
38449         * lib/unictype/categ_test.c: New file.
38450         * lib/unictype/combining.c: New file.
38451         * lib/unictype/ctype_alnum.c: New file.
38452         * lib/unictype/ctype_alpha.c: New file.
38453         * lib/unictype/ctype_blank.c: New file.
38454         * lib/unictype/ctype_cntrl.c: New file.
38455         * lib/unictype/ctype_digit.c: New file.
38456         * lib/unictype/ctype_graph.c: New file.
38457         * lib/unictype/ctype_lower.c: New file.
38458         * lib/unictype/ctype_print.c: New file.
38459         * lib/unictype/ctype_punct.c: New file.
38460         * lib/unictype/ctype_space.c: New file.
38461         * lib/unictype/ctype_upper.c: New file.
38462         * lib/unictype/ctype_xdigit.c: New file.
38463         * lib/unictype/decdigit.c: New file.
38464         * lib/unictype/digit.c: New file.
38465         * lib/unictype/identsyntaxmap.h: New file.
38466         * lib/unictype/mirror.c: New file.
38467         * lib/unictype/numeric.c: New file.
38468         * lib/unictype/pr_alphabetic.c: New file.
38469         * lib/unictype/pr_ascii_hex_digit.c: New file.
38470         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38471         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38472         * lib/unictype/pr_bidi_block_separator.c: New file.
38473         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38474         * lib/unictype/pr_bidi_common_separator.c: New file.
38475         * lib/unictype/pr_bidi_control.c: New file.
38476         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38477         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
38478         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
38479         * lib/unictype/pr_bidi_european_digit.c: New file.
38480         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
38481         * lib/unictype/pr_bidi_left_to_right.c: New file.
38482         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
38483         * lib/unictype/pr_bidi_other_neutral.c: New file.
38484         * lib/unictype/pr_bidi_pdf.c: New file.
38485         * lib/unictype/pr_bidi_segment_separator.c: New file.
38486         * lib/unictype/pr_bidi_whitespace.c: New file.
38487         * lib/unictype/pr_byname.c: New file.
38488         * lib/unictype/pr_byname.gperf: New file.
38489         * lib/unictype/pr_combining.c: New file.
38490         * lib/unictype/pr_composite.c: New file.
38491         * lib/unictype/pr_currency_symbol.c: New file.
38492         * lib/unictype/pr_dash.c: New file.
38493         * lib/unictype/pr_decimal_digit.c: New file.
38494         * lib/unictype/pr_default_ignorable_code_point.c: New file.
38495         * lib/unictype/pr_deprecated.c: New file.
38496         * lib/unictype/pr_diacritic.c: New file.
38497         * lib/unictype/pr_extender.c: New file.
38498         * lib/unictype/pr_format_control.c: New file.
38499         * lib/unictype/pr_grapheme_base.c: New file.
38500         * lib/unictype/pr_grapheme_extend.c: New file.
38501         * lib/unictype/pr_grapheme_link.c: New file.
38502         * lib/unictype/pr_hex_digit.c: New file.
38503         * lib/unictype/pr_hyphen.c: New file.
38504         * lib/unictype/pr_id_continue.c: New file.
38505         * lib/unictype/pr_id_start.c: New file.
38506         * lib/unictype/pr_ideographic.c: New file.
38507         * lib/unictype/pr_ids_binary_operator.c: New file.
38508         * lib/unictype/pr_ids_trinary_operator.c: New file.
38509         * lib/unictype/pr_ignorable_control.c: New file.
38510         * lib/unictype/pr_iso_control.c: New file.
38511         * lib/unictype/pr_join_control.c: New file.
38512         * lib/unictype/pr_left_of_pair.c: New file.
38513         * lib/unictype/pr_line_separator.c: New file.
38514         * lib/unictype/pr_logical_order_exception.c: New file.
38515         * lib/unictype/pr_lowercase.c: New file.
38516         * lib/unictype/pr_math.c: New file.
38517         * lib/unictype/pr_non_break.c: New file.
38518         * lib/unictype/pr_not_a_character.c: New file.
38519         * lib/unictype/pr_numeric.c: New file.
38520         * lib/unictype/pr_other_alphabetic.c: New file.
38521         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38522         * lib/unictype/pr_other_grapheme_extend.c: New file.
38523         * lib/unictype/pr_other_id_continue.c: New file.
38524         * lib/unictype/pr_other_id_start.c: New file.
38525         * lib/unictype/pr_other_lowercase.c: New file.
38526         * lib/unictype/pr_other_math.c: New file.
38527         * lib/unictype/pr_other_uppercase.c: New file.
38528         * lib/unictype/pr_paired_punctuation.c: New file.
38529         * lib/unictype/pr_paragraph_separator.c: New file.
38530         * lib/unictype/pr_pattern_syntax.c: New file.
38531         * lib/unictype/pr_pattern_white_space.c: New file.
38532         * lib/unictype/pr_private_use.c: New file.
38533         * lib/unictype/pr_punctuation.c: New file.
38534         * lib/unictype/pr_quotation_mark.c: New file.
38535         * lib/unictype/pr_radical.c: New file.
38536         * lib/unictype/pr_sentence_terminal.c: New file.
38537         * lib/unictype/pr_soft_dotted.c: New file.
38538         * lib/unictype/pr_space.c: New file.
38539         * lib/unictype/pr_terminal_punctuation.c: New file.
38540         * lib/unictype/pr_test.c: New file.
38541         * lib/unictype/pr_titlecase.c: New file.
38542         * lib/unictype/pr_unassigned_code_value.c: New file.
38543         * lib/unictype/pr_unified_ideograph.c: New file.
38544         * lib/unictype/pr_uppercase.c: New file.
38545         * lib/unictype/pr_variation_selector.c: New file.
38546         * lib/unictype/pr_white_space.c: New file.
38547         * lib/unictype/pr_xid_continue.c: New file.
38548         * lib/unictype/pr_xid_start.c: New file.
38549         * lib/unictype/pr_zero_width.c: New file.
38550         * lib/unictype/scripts.c: New file.
38551         * lib/unictype/sy_c_ident.c: New file.
38552         * lib/unictype/sy_c_whitespace.c: New file.
38553         * lib/unictype/sy_java_ident.c: New file.
38554         * lib/unictype/sy_java_whitespace.c: New file.
38555
38556         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
38557         Unicode 5.0.0.
38558         * lib/unictype/blocks.h: Likewise.
38559         * lib/unictype/categ_C.h: Likewise.
38560         * lib/unictype/categ_Cc.h: Likewise.
38561         * lib/unictype/categ_Cf.h: Likewise.
38562         * lib/unictype/categ_Cn.h: Likewise.
38563         * lib/unictype/categ_Co.h: Likewise.
38564         * lib/unictype/categ_Cs.h: Likewise.
38565         * lib/unictype/categ_L.h: Likewise.
38566         * lib/unictype/categ_Ll.h: Likewise.
38567         * lib/unictype/categ_Lm.h: Likewise.
38568         * lib/unictype/categ_Lo.h: Likewise.
38569         * lib/unictype/categ_Lt.h: Likewise.
38570         * lib/unictype/categ_Lu.h: Likewise.
38571         * lib/unictype/categ_M.h: Likewise.
38572         * lib/unictype/categ_Mc.h: Likewise.
38573         * lib/unictype/categ_Me.h: Likewise.
38574         * lib/unictype/categ_Mn.h: Likewise.
38575         * lib/unictype/categ_N.h: Likewise.
38576         * lib/unictype/categ_Nd.h: Likewise.
38577         * lib/unictype/categ_Nl.h: Likewise.
38578         * lib/unictype/categ_No.h: Likewise.
38579         * lib/unictype/categ_P.h: Likewise.
38580         * lib/unictype/categ_Pc.h: Likewise.
38581         * lib/unictype/categ_Pd.h: Likewise.
38582         * lib/unictype/categ_Pe.h: Likewise.
38583         * lib/unictype/categ_Pf.h: Likewise.
38584         * lib/unictype/categ_Pi.h: Likewise.
38585         * lib/unictype/categ_Po.h: Likewise.
38586         * lib/unictype/categ_Ps.h: Likewise.
38587         * lib/unictype/categ_S.h: Likewise.
38588         * lib/unictype/categ_Sc.h: Likewise.
38589         * lib/unictype/categ_Sk.h: Likewise.
38590         * lib/unictype/categ_Sm.h: Likewise.
38591         * lib/unictype/categ_So.h: Likewise.
38592         * lib/unictype/categ_Z.h: Likewise.
38593         * lib/unictype/categ_Zl.h: Likewise.
38594         * lib/unictype/categ_Zp.h: Likewise.
38595         * lib/unictype/categ_Zs.h: Likewise.
38596         * lib/unictype/categ_of.h: Likewise.
38597         * lib/unictype/combining.h: Likewise.
38598         * lib/unictype/ctype_alnum.h: Likewise.
38599         * lib/unictype/ctype_alpha.h: Likewise.
38600         * lib/unictype/ctype_blank.h: Likewise.
38601         * lib/unictype/ctype_cntrl.h: Likewise.
38602         * lib/unictype/ctype_digit.h: Likewise.
38603         * lib/unictype/ctype_graph.h: Likewise.
38604         * lib/unictype/ctype_lower.h: Likewise.
38605         * lib/unictype/ctype_print.h: Likewise.
38606         * lib/unictype/ctype_punct.h: Likewise.
38607         * lib/unictype/ctype_space.h: Likewise.
38608         * lib/unictype/ctype_upper.h: Likewise.
38609         * lib/unictype/ctype_xdigit.h: Likewise.
38610         * lib/unictype/decdigit.h: Likewise.
38611         * lib/unictype/digit.h: Likewise.
38612         * lib/unictype/mirror.h: Likewise.
38613         * lib/unictype/numeric.h: Likewise.
38614         * lib/unictype/pr_alphabetic.h: Likewise.
38615         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38616         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38617         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38618         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38619         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38620         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38621         * lib/unictype/pr_bidi_control.h: Likewise.
38622         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38623         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38624         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38625         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38626         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38627         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38628         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38629         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38630         * lib/unictype/pr_bidi_pdf.h: Likewise.
38631         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38632         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38633         * lib/unictype/pr_combining.h: Likewise.
38634         * lib/unictype/pr_composite.h: Likewise.
38635         * lib/unictype/pr_currency_symbol.h: Likewise.
38636         * lib/unictype/pr_dash.h: Likewise.
38637         * lib/unictype/pr_decimal_digit.h: Likewise.
38638         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38639         * lib/unictype/pr_deprecated.h: Likewise.
38640         * lib/unictype/pr_diacritic.h: Likewise.
38641         * lib/unictype/pr_extender.h: Likewise.
38642         * lib/unictype/pr_format_control.h: Likewise.
38643         * lib/unictype/pr_grapheme_base.h: Likewise.
38644         * lib/unictype/pr_grapheme_extend.h: Likewise.
38645         * lib/unictype/pr_grapheme_link.h: Likewise.
38646         * lib/unictype/pr_hex_digit.h: Likewise.
38647         * lib/unictype/pr_hyphen.h: Likewise.
38648         * lib/unictype/pr_id_continue.h: Likewise.
38649         * lib/unictype/pr_id_start.h: Likewise.
38650         * lib/unictype/pr_ideographic.h: Likewise.
38651         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38652         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38653         * lib/unictype/pr_ignorable_control.h: Likewise.
38654         * lib/unictype/pr_iso_control.h: Likewise.
38655         * lib/unictype/pr_join_control.h: Likewise.
38656         * lib/unictype/pr_left_of_pair.h: Likewise.
38657         * lib/unictype/pr_line_separator.h: Likewise.
38658         * lib/unictype/pr_logical_order_exception.h: Likewise.
38659         * lib/unictype/pr_lowercase.h: Likewise.
38660         * lib/unictype/pr_math.h: Likewise.
38661         * lib/unictype/pr_non_break.h: Likewise.
38662         * lib/unictype/pr_not_a_character.h: Likewise.
38663         * lib/unictype/pr_numeric.h: Likewise.
38664         * lib/unictype/pr_other_alphabetic.h: Likewise.
38665         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38666         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38667         * lib/unictype/pr_other_id_continue.h: Likewise.
38668         * lib/unictype/pr_other_id_start.h: Likewise.
38669         * lib/unictype/pr_other_lowercase.h: Likewise.
38670         * lib/unictype/pr_other_math.h: Likewise.
38671         * lib/unictype/pr_other_uppercase.h: Likewise.
38672         * lib/unictype/pr_paired_punctuation.h: Likewise.
38673         * lib/unictype/pr_paragraph_separator.h: Likewise.
38674         * lib/unictype/pr_pattern_syntax.h: Likewise.
38675         * lib/unictype/pr_pattern_white_space.h: Likewise.
38676         * lib/unictype/pr_private_use.h: Likewise.
38677         * lib/unictype/pr_punctuation.h: Likewise.
38678         * lib/unictype/pr_quotation_mark.h: Likewise.
38679         * lib/unictype/pr_radical.h: Likewise.
38680         * lib/unictype/pr_sentence_terminal.h: Likewise.
38681         * lib/unictype/pr_soft_dotted.h: Likewise.
38682         * lib/unictype/pr_space.h: Likewise.
38683         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38684         * lib/unictype/pr_titlecase.h: Likewise.
38685         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38686         * lib/unictype/pr_unified_ideograph.h: Likewise.
38687         * lib/unictype/pr_uppercase.h: Likewise.
38688         * lib/unictype/pr_variation_selector.h: Likewise.
38689         * lib/unictype/pr_white_space.h: Likewise.
38690         * lib/unictype/pr_xid_continue.h: Likewise.
38691         * lib/unictype/pr_xid_start.h: Likewise.
38692         * lib/unictype/pr_zero_width.h: Likewise.
38693         * lib/unictype/scripts.h: Likewise.
38694         * lib/unictype/scripts_byname.gperf: Likewise.
38695         * lib/unictype/sy_c_ident.h: Likewise.
38696         * lib/unictype/sy_c_whitespace.h: Likewise.
38697         * lib/unictype/sy_java_ident.h: Likewise.
38698         * lib/unictype/sy_java_whitespace.h: Likewise.
38699
38700         * lib/unictype/Makefile: New file.
38701         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
38702         glibc.
38703         * lib/unictype/3level.h: New file, copied from glibc.
38704         * lib/unictype/3levelbit.h: New file.
38705
38706 2007-11-11  Bruno Haible  <bruno@clisp.org>
38707
38708         * modules/gperf: New file.
38709         * modules/iconv_open (Depends-on): Add it.
38710         (Makefile.am): Remove the GPERF definition.
38711
38712 2007-11-11  Bruno Haible  <bruno@clisp.org>
38713
38714         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
38715         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
38716
38717 2007-11-11  Bruno Haible  <bruno@clisp.org>
38718
38719         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
38720         (usage): Remove function.
38721
38722 2007-11-11  Bruno Haible  <bruno@clisp.org>
38723
38724         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
38725         gl_FUNC_CEILF_LIBS.
38726         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
38727         gl_FUNC_CEIL_LIBS.
38728         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
38729         gl_FUNC_CEILL_LIBS.
38730         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
38731         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
38732         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
38733
38734 2007-11-11  Bruno Haible  <bruno@clisp.org>
38735
38736         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
38737         roundf were declared but do not exist on functions.
38738         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
38739         roundl were declared but do not exist on functions.
38740         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
38741         HAVE_FLOORL_AND_CEILL, respectively.
38742         Needed for Sun C on Solaris 10.
38743
38744 2007-11-11  Bruno Haible  <bruno@clisp.org>
38745
38746         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
38747         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
38748         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
38749         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
38750         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
38751         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
38752         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
38753         HAVE_DECL_ROUNDF.
38754         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
38755         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
38756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
38757         of HAVE_DECL_ROUND*.
38758         * modules/math (Makefile.am): Update.
38759
38760 2007-11-10  Bruno Haible  <bruno@clisp.org>
38761
38762         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
38763         ptrdiff_t as m4/intl.m4.
38764
38765 2007-11-10  Jim Meyering  <meyering@redhat.com>
38766
38767         Avoid link failure for the argmatch test.
38768         * tests/test-argmatch.c (usage): Define function to avoid a link
38769         failure: argmatch_die requires a usage function.
38770
38771 2007-11-09  Bruno Haible  <bruno@clisp.org>
38772
38773         * doc/functions/snprintf.texi: Mention BeOS deficiency.
38774         * doc/functions/vsnprintf.texi: Likewise.
38775         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
38776         with a size argument < 2.
38777
38778 2007-11-09  Bruno Haible  <bruno@clisp.org>
38779
38780         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
38781         buffer. Fixes an inefficiency introduced on 2007-11-03.
38782
38783 2007-11-09  Bruno Haible  <bruno@clisp.org>
38784
38785         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
38786         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
38787
38788 2007-11-08  Jim Meyering  <meyering@redhat.com>
38789
38790         Change cache variable name prefix "jm_" to "gl_" everywhere.
38791         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
38792         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
38793         * m4/uptime.m4: s/gl_/jm_/
38794
38795 2007-11-07  Bruno Haible  <bruno@clisp.org>
38796
38797         Update to GNU gettext 0.17.
38798         * m4/intl.m4: Update to GNU gettext 0.17.
38799         * m4/po.m4: Likewise.
38800         * modules/gettext (Files): Remove m4/ulonglong.m4.
38801         (configure.ac): Require gettext infrastructure from version 0.17.
38802
38803 2007-11-06  Bruno Haible  <bruno@clisp.org>
38804
38805         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
38806         symbolic values are not defined in a public header.
38807         * lib/freadable.c (freadable) [QNX]: Likewise.
38808         * lib/freadahead.c (freadahead) [QNX]: Likewise.
38809         * lib/freading.c (freading) [QNX]: Likewise.
38810         * lib/fseterr.c (fseterr) [QNX]: Likewise.
38811         * lib/fwritable.c (fwritable) [QNX]: Likewise.
38812         * lib/fwriting.c (fwriting) [QNX]: Likewise.
38813         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
38814         Reported by Alain Magloire.
38815
38816         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
38817
38818 2007-11-05  Bruno Haible  <bruno@clisp.org>
38819
38820         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
38821         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
38822         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
38823         Reported by Eric Blake.
38824
38825 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38826             Bruno Haible  <bruno@clisp.org>
38827
38828         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
38829         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
38830         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
38831         (malloc): Undefine also before including <stdlib.h>.
38832         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
38833         Needed on OSF/1 4.0.
38834
38835 2007-11-05  Jim Meyering  <meyering@redhat.com>
38836
38837         git-version-gen: sync from coreutils.
38838         * build-aux/git-version-gen: Add comments.
38839         Change the first '-' to '.' in the snapshot version string,
38840         e.g., 6.9-377-08144 -> 6.9.377-08144
38841         Remove first parameter.
38842         Don't declare a version "-dirty" merely because a time
38843         stamp has changed.
38844
38845 2007-11-04  Bruno Haible  <bruno@clisp.org>
38846
38847         * lib/lock.h: Protect all macro definitions containing an 'if'
38848         statement through a "do { ... } while (0)".
38849         * lib/tls.h: Likewise.
38850
38851 2007-11-04  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
38854
38855 2007-11-04  Bruno Haible  <bruno@clisp.org>
38856
38857         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
38858         * modules/fprintf-posix (Depends-on): Add nocrash.
38859         * modules/snprintf-posix (Depends-on): Likewise.
38860         * modules/sprintf-posix (Depends-on): Likewise.
38861         * modules/vasnprintf-posix (Depends-on): Likewise.
38862         * modules/vasprintf-posix (Depends-on): Likewise.
38863         * modules/vfprintf-posix (Depends-on): Likewise.
38864         * modules/vsnprintf-posix (Depends-on): Likewise.
38865         * modules/vsprintf-posix (Depends-on): Likewise.
38866         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38867         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38868         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38869         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38870         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38871         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38872         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38873
38874 2007-11-04  Bruno Haible  <bruno@clisp.org>
38875
38876         * modules/nocrash: New file.
38877         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
38878         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
38879
38880 2007-11-04  Bruno Haible  <bruno@clisp.org>
38881
38882         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
38883         precision handling.
38884         * tests/test-vasprintf-posix.c (test_function): Likewise.
38885         * tests/test-snprintf-posix.h (test_function): Likewise.
38886         * tests/test-sprintf-posix.h (test_function): Likewise.
38887
38888         Fix *printf behaviour for large precisions on mingw and BeOS.
38889         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
38890         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
38891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
38892         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38894         gl_PRINTF_PRECISION and test its result. Invoke
38895         gl_PREREQ_VASNPRINTF_PRECISION.
38896         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38898         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38903         * doc/functions/fprintf.texi: Update.
38904         * doc/functions/printf.texi: Update.
38905         * doc/functions/snprintf.texi: Update.
38906         * doc/functions/sprintf.texi: Update.
38907         * doc/functions/vfprintf.texi: Update.
38908         * doc/functions/vprintf.texi: Update.
38909         * doc/functions/vsnprintf.texi: Update.
38910         * doc/functions/vsprintf.texi: Update.
38911
38912 2007-11-04  Bruno Haible  <bruno@clisp.org>
38913
38914         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
38915
38916 2007-11-04  Bruno Haible  <bruno@clisp.org>
38917
38918         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
38919         Reported by Sylvain Beucler <beuc@gnu.org>.
38920
38921 2007-11-03  Bruno Haible  <bruno@clisp.org>
38922
38923         * tests/test-fprintf-posix2.sh: New file.
38924         * tests/test-fprintf-posix2.c: New file.
38925         * modules/fprintf-posix-tests (Files): Add them.
38926         (TESTS): Add test-fprintf-posix2.sh.
38927         (configure.ac): Check for getrlimit and setrlimit.
38928         (check_PROGRAMS): Add test-fprintf-posix2.
38929
38930         * tests/test-printf-posix2.sh: New file.
38931         * tests/test-printf-posix2.c: New file.
38932         * modules/printf-posix-tests (Files): Add them.
38933         (TESTS): Add test-printf-posix2.sh.
38934         (configure.ac): Check for getrlimit and setrlimit.
38935         (check_PROGRAMS): Add test-printf-posix2.
38936
38937         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
38938         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
38939         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
38940         (decode_double): New function, copied from decode_long_double.
38941         (scale10_round_decimal_decoded): New function, extracted from
38942         scale10_round_decimal_long_double.
38943         (scale10_round_decimal_long_double): Use it.
38944         (scale10_round_decimal_double): New function.
38945         (floorlog10): New function.
38946         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
38947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
38948         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38949         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38950         gl_PRINTF_ENOMEM and test its result. Invoke
38951         gl_PREREQ_VASNPRINTF_ENOMEM.
38952         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38953         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38954         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38956         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38957         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38958         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38959         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
38960         * modules/snprintf-posix (Depends-on): Likewise.
38961         * modules/sprintf-posix (Depends-on): Likewise.
38962         * modules/vasnprintf-posix (Depends-on): Likewise.
38963         * modules/vasprintf-posix (Depends-on): Likewise.
38964         * modules/vfprintf-posix (Depends-on): Likewise.
38965         * modules/vsnprintf-posix (Depends-on): Likewise.
38966         * modules/vsprintf-posix (Depends-on): Likewise.
38967         * doc/functions/fprintf.texi: Update.
38968         * doc/functions/printf.texi: Update.
38969         * doc/functions/snprintf.texi: Update.
38970         * doc/functions/sprintf.texi: Update.
38971         * doc/functions/vfprintf.texi: Update.
38972         * doc/functions/vprintf.texi: Update.
38973         * doc/functions/vsnprintf.texi: Update.
38974         * doc/functions/vsprintf.texi: Update.
38975
38976 2007-11-03  Bruno Haible  <bruno@clisp.org>
38977
38978         * modules/frexp-nolibm-tests: New file.
38979
38980         * modules/frexp-nolibm: New file.
38981         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
38982
38983 2007-11-03  Bruno Haible  <bruno@clisp.org>
38984
38985         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
38986         value is C99 compliant.
38987         Needed for OSF/1 5.1.
38988
38989 2007-11-03  Bruno Haible  <bruno@clisp.org>
38990
38991         Fix out-of-memory handling of vasnprintf.
38992         * lib/printf-parse.c: Include <errno.h>.
38993         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
38994         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
38995         is already set.
38996
38997 2007-11-02  Eric Blake  <ebb9@byu.net>
38998
38999         Fix tests on cygwin.
39000         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39001
39002 2007-11-01  Bruno Haible  <bruno@clisp.org>
39003
39004         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39005         warning.
39006         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39007         needed for POSIX compatibility.
39008
39009 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39010
39011         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39012         for compatibility with GNU.
39013
39014 2007-11-01  Bruno Haible  <bruno@clisp.org>
39015
39016         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39017         (putenv): Renamed from rpl_putenv. Change argument type from
39018         'const char *' to 'char *'.
39019         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39020         of defining putenv in config.h, just set REPLACE_PUTENV.
39021         * modules/putenv (Depends-on): Add stdlib.
39022         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39023         (Include): Use <stdlib.h>.
39024         * lib/stdlib.in.h (putenv): New declaration.
39025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39026         REPLACE_PUTENV.
39027         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39028         REPLACE_PUTENV.
39029         Needed for MacOS X 10.5.0.
39030         Reported by Peter O'Gorman <peter@pogma.com>.
39031
39032 2007-11-01  Jim Meyering  <meyering@redhat.com>
39033
39034         Treat an empty date string exactly like "0".
39035         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39036         if the remaining date string (to be parsed) is empty, use "0".
39037         Reported by Mischa Molhoek and discussed in this thread:
39038         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39039
39040 2007-10-31  Bruno Haible  <bruno@clisp.org>
39041
39042         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39043         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39044         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39045         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39046         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39047         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39048
39049 2007-10-31  Bruno Haible  <bruno@clisp.org>
39050
39051         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39052         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39053         (AC_TYPE_LONG_LONG_INT): Use it.
39054         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39055         it as well.
39056         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39057         to m4/longlong.m4.
39058         * modules/stdint (Files): Remove m4/ulonglong.m4.
39059         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39060         m4/ulonglong.m4.
39061         * modules/strtoumax (Files): Likewise.
39062
39063 2007-10-30  Bruno Haible  <bruno@clisp.org>
39064
39065         * modules/xvasprintf-posix: New file.
39066         Suggested by Eric Blake.
39067
39068 2007-10-30  Bruno Haible  <bruno@clisp.org>
39069
39070         * modules/xprintf-posix-tests: New file.
39071         * tests/test-xprintf-posix.sh: New file.
39072         * tests/test-xprintf-posix.c: New file.
39073         * tests/test-xfprintf-posix.c: New file.
39074
39075         * modules/xprintf-posix: New file.
39076
39077 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39078
39079         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39080         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39081         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39082
39083 2007-10-29  Bruno Haible  <bruno@clisp.org>
39084
39085         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39086         contain the special marker '_cv_'.
39087         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39088         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39089         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39090         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39091         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39092         Reported by Ralf Wildenhues.
39093
39094 2007-10-29  Bruno Haible  <bruno@clisp.org>
39095
39096         * gnulib-tool (func_import): When --lgpl is not specified, set
39097         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39098         GPLv3.
39099         Reported by Simon Josefsson.
39100
39101 2007-10-28  Bruno Haible  <bruno@clisp.org>
39102
39103         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39104         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39105         HAVE_DECL_ISFINITE.
39106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39107         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39108         HAVE_DECL_ISFINITE.
39109
39110 2007-10-28  Bruno Haible  <bruno@clisp.org>
39111
39112         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39113         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39114
39115 2007-10-28  Bruno Haible  <bruno@clisp.org>
39116
39117         Fix link errors with Sun C 5.0 on Solaris 10.
39118         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39119         function is declared but not present in the compiler's libm.
39120         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39121         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39122         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39123         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39124         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39125         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39126         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39128         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39129         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39130         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39131         HAVE_DECL_FLOORL.
39132
39133 2007-10-28  Bruno Haible  <bruno@clisp.org>
39134
39135         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39136         gl_FUNC_FLOORL. Cache the result.
39137         (gl_FUNC_FLOORL): Use it.
39138         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39139         gl_FUNC_CEILL. Cache the result.
39140         (gl_FUNC_CEILL): Use it.
39141
39142         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39143         gl_FUNC_FLOOR. Cache the result.
39144         (gl_FUNC_FLOOR): Use it.
39145         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39146         gl_FUNC_CEIL. Cache the result.
39147         (gl_FUNC_CEIL): Use it.
39148
39149         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39150         gl_FUNC_FLOORF. Cache the result.
39151         (gl_FUNC_FLOORF): Use it.
39152         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39153         gl_FUNC_CEILF. Cache the result.
39154         (gl_FUNC_CEILF): Use it.
39155
39156 2007-10-28  Bruno Haible  <bruno@clisp.org>
39157
39158         * gnulib-tool: Allow specifying the LGPL version number through
39159         --lgpl=2 or --lgpl=3.
39160         (func_usage): Document --lgpl with argument.
39161         Handle --lgpl=... arguments.
39162         (func_import): Recognize also gl_LGPL calls with an argument. When
39163         --lgpl=2 is used and the module's license is just LGPL, report an
39164         error. Set sed_transform_lib_file according to the lgpl variable. In
39165         the generated files, use --lgpl or gl_LGPL invocations with argument,
39166         if necessary.
39167         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39168         an LGPv2+ license.
39169         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39170         gl_LGPL macro.
39171
39172 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39173             Bruno Haible  <bruno@clisp.org>
39174
39175         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39176         (u16_uctomb_aux): Likewise.
39177         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39178         !HAVE_INLINE.
39179         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39180
39181 2007-10-28  Bruno Haible  <bruno@clisp.org>
39182
39183         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39184         Invoke AM_GETTEXT_OPTION if it exists.
39185         * modules/vasprintf: Likewise.
39186         * modules/verror: Likewise.
39187         * modules/xprintf: Likewise.
39188         * modules/xvasprintf: Likewise.
39189
39190 2007-10-27  Ben Pfaff  <blp@gnu.org>
39191
39192         * lib/math.in.h: Define isfinite macro and prototypes for
39193         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39194         implementations.
39195         * m4/math_h.m4: New substitutions for isfinite module.
39196         * lib/isfinite.c: New file.
39197         * m4/isfinite.m4: New file.
39198         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39199         * modules/isfinite: New file.
39200         * modules/isfinite-tests: New file.
39201         * tests/tests-isfinite.c: New file.
39202         * doc/functions/isfinite.texi: Mention isfinite module.
39203         * MODULES.html.sh: Mention new module.
39204
39205 2007-10-27  Ben Pfaff  <blp@gnu.org>
39206
39207         Ralf Wildenhues reported that Tru64 4.0D declares the round
39208         functions but does not have definitions.
39209         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39210         cannot be found in any library, set the output variable to
39211         "missing" instead of "".
39212         * m4/round.m4: Also use our substitute if we cannot find round in
39213         any library, even if it is declared.
39214         * m4/roundf.m4: Likewise for roundf.
39215         * m4/roundl.m4: Likewise for roundl.
39216         * lib/math.in.h: Undefine roundf, round, roundl before defining
39217         their replacements, to allow for hypothetical systems where these
39218         may be defined as macros but not available in libraries.
39219
39220 2007-10-27  Bruno Haible  <bruno@clisp.org>
39221
39222         * doc/gnulib.texi: Invoke @firstparagraphindent.
39223         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39224         changes in gnulib.
39225         (Source changes): New section.
39226
39227 2007-10-26  Bruno Haible  <bruno@clisp.org>
39228
39229         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39230         borrowed from autoconf.
39231
39232 2007-10-26  Bruno Haible  <bruno@clisp.org>
39233
39234         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39235         strerror returned the empty string. Needed on HP-UX 11.00.
39236
39237 2007-10-24  Micah Cowan  <micah@cowan.name>
39238
39239         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39240         * build-aux/bootstrap: Remove support for now-unnecessary option,
39241         --cvs-user, and envvars CVS_USER, CVS_RSH.
39242
39243 2007-10-24  Jim Meyering  <meyering@redhat.com>
39244
39245         Avoid diagnostics from sha1sum when there is no cached checksum.
39246         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39247         if the po.s1 file hasn't been created yet.
39248
39249         * build-aux/bootstrap: Sync from coreutils:
39250         2007-10-24  Jim Meyering  <meyering@redhat.com>
39251         Get gnulib from the git repository, not from an obsolete cvs one.
39252         * build-aux/bootstrap: Suggestion from Micah Cowan.
39253         2007-10-04  Jim Meyering  <jim@meyering.net>
39254         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39255         (update_po_files): Work also when there are no .po files in po/.
39256
39257 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39258
39259         * README: Append ".git" to git and cg examples.
39260         Problem reported by Benoit Sigoure.
39261
39262 2007-10-23  Micah Cowan  <micah@cowan.name>
39263
39264         * users.txt: Add wget.
39265
39266 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39267
39268         Fix linking of some unistdio tests on FreeBSD.
39269         * modules/unistdio/u16-vsnprintf-tests
39270         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39271         * modules/unistdio/u16-vsprintf-tests
39272         (test_u16_vsnprintf1_LDADD): Likewise.
39273         * modules/unistdio/u32-vsnprintf-tests
39274         (test_u32_vsnprintf1_LDADD): Likewise.
39275         * modules/unistdio/u32-vsprintf-tests
39276         (test_u32_vsprintf1_LDADD): Likewise.
39277         * modules/unistdio/u8-vsnprintf-tests
39278         (test_u8_vsnprintf1_LDADD): Likewise.
39279         * modules/unistdio/u8-vsprintf-tests
39280         (test_u8_vsprintf1_LDADD): Likewise.
39281         * modules/unistdio/ulc-vsnprintf-tests
39282         (test_ulc_vsnprintf1_LDADD): Likewise.
39283         * modules/unistdio/ulc-vsprintf-tests
39284         (test_ulc_vsprintf1_LDADD): Likewise.
39285
39286         Fix linking of some uniconv tests on FreeBSD.
39287         * modules/uniconv/u16-conv-from-enc-tests
39288         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39289         * modules/uniconv/u16-conv-to-enc-tests
39290         (test_u16_conv_to_enc_LDADD): Likewise.
39291         * modules/uniconv/u16-strconv-from-enc-tests
39292         (test_u16_strconv_from_enc_LDADD): Likewise.
39293         * modules/uniconv/u16-strconv-to-enc-tests
39294         (test_u16_strconv_to_enc_LDADD): Likewise.
39295         * modules/uniconv/u32-conv-from-enc-tests
39296         (test_u32_conv_from_enc_LDADD): Likewise.
39297         * modules/uniconv/u32-conv-to-enc-tests
39298         (test_u32_conv_to_enc_LDADD): Likewise.
39299         * modules/uniconv/u32-strconv-from-enc-tests
39300         (test_u32_strconv_from_enc_LDADD): Likewise.
39301         * modules/uniconv/u32-strconv-to-enc-tests
39302         (test_u32_strconv_to_enc_LDADD): Likewise.
39303         * modules/uniconv/u8-conv-from-enc-tests
39304         (test_u8_conv_from_enc_LDADD): Likewise.
39305         * modules/uniconv/u8-conv-to-enc-tests
39306         (test_u8_conv_to_enc_LDADD): Likewise.
39307         * modules/uniconv/u8-strconv-from-enc-tests
39308         (test_u8_strconv_from_enc_LDADD): Likewise.
39309         * modules/uniconv/u8-strconv-to-enc-tests
39310         (test_u8_strconv_to_enc_LDADD): Likewise.
39311
39312 2007-10-22  Bruno Haible  <bruno@clisp.org>
39313
39314         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39315         size.
39316
39317 2007-10-22  Eric Blake  <ebb9@byu.net>
39318
39319         Tweak x*printf documentation.
39320         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39321         variable name and comments.
39322         Suggested by Bruno Haible.
39323
39324 2007-10-22  Bruno Haible  <bruno@clisp.org>
39325
39326         * lib/acl.c (copy_acl): Fix file name in comment.
39327
39328 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39329
39330         Fix Tru64 problem with stdbool.h.
39331         * lib/stdbool.in.h (false, true):
39332         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39333         Don't declare as an enum in this situation; it runs afoul of Tru64.
39334         Problem reported by Steven M. Schweda in
39335         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39336
39337 2007-10-22  Eric Blake  <ebb9@byu.net>
39338
39339         Also wrap vf?printf.
39340         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39341         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39342         (xvprintf, xvfprintf): New functions.
39343
39344 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39345
39346         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39347         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39348
39349         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39350         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39351
39352 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39353
39354         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39355         by Bruno Haible.
39356
39357 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39358
39359         * lib/getloadavg.c
39360         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39361         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39362
39363         * tests/test-i-ring.c: Work for C89.
39364
39365 2007-10-22  Bruno Haible  <bruno@clisp.org>
39366
39367         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39368         -1u, in preprocessor expression, so that we don't test for the bug
39369         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39371
39372 2007-10-22  Eric Blake  <ebb9@byu.net>
39373
39374         * tests/test-yesno.sh: Silence stderr during test.
39375
39376 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39377
39378         * modules/crypto/gc-camellia: New file.
39379
39380         * m4/gc-camellia.m4: New file.
39381
39382         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39383
39384         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39385
39386 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39387
39388         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39389         --help to stdout.  Reported by sms@antinode.org (Steven
39390         M. Schweda).
39391
39392 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39393
39394         * users.txt: Fix link to libksba.
39395
39396 2007-10-21  Ben Pfaff  <blp@gnu.org>
39397
39398         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39399         round.c roundf implementation that depends on floorf and ceilf to
39400         be tested unconditionally.
39401
39402 2007-10-21  Ben Pfaff  <blp@gnu.org>
39403
39404         * m4/check-libm-func.m4: Removed.
39405         * m4/check-math-lib.m4: New file.
39406         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39407         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39408         definition and lack of AC_LIBOBJ([roundf]).
39409         * m4/roundl.m4: Ditto, and similarly for roundl.
39410         * modules/round: Reference new m4 file.
39411         * modules/roundf: Ditto.
39412         * modules/roundl: Ditto.
39413         * tests/test-round2.c (main): Use ROUND instead of round.
39414         Bug report from Bruno Haible.
39415
39416 2007-10-21  Bruno Haible  <bruno@clisp.org>
39417
39418         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39419         context.
39420
39421 2007-10-21  Bruno Haible  <bruno@clisp.org>
39422
39423         * tests/test-wcwidth.c (main): Allow negative result for some control
39424         characters.
39425
39426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39427         Needed on OSF/1 5.1.
39428
39429 2007-10-21  Bruno Haible  <bruno@clisp.org>
39430
39431         * tests/test-floorf1.c: Include isnanf.h.
39432         (main): Use isnanf() instead of isnan().
39433         * tests/test-ceilf1.c: Include isnanf.h.
39434         (main): Use isnanf() instead of isnan().
39435         * tests/test-truncf1.c: Include isnanf.h.
39436         (main): Use isnanf() instead of isnan().
39437         * tests/test-roundf1.c: Include isnanf.h.
39438         (main): Use isnanf() instead of isnan().
39439
39440 2007-10-21  Eric Blake  <ebb9@byu.net>
39441
39442         * users.txt: Update URL for m4.
39443
39444 2007-10-21  Bruno Haible  <bruno@clisp.org>
39445
39446         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39447
39448 2007-10-21  Bruno Haible  <bruno@clisp.org>
39449
39450         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39451         Git's management files if the CVS files are not present.
39452
39453 2007-10-20  Bruno Haible  <bruno@clisp.org>
39454
39455         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39456         gcc-3.4.x.
39457
39458 2007-10-20  Ben Pfaff  <blp@gnu.org>
39459
39460         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39461         implementations.
39462         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39463         * lib/round.c: New file.
39464         * lib/roundf.c: New file.
39465         * lib/roundl.c: New file.
39466         * m4/round.m4: New file.
39467         * m4/roundf.m4: New file.
39468         * m4/roundl.m4: New file.
39469         * m4/check-libm-func-m4: New file.
39470         * modules/math: Replace round, roundf, roundl related @VARS@ in
39471         math.in.h.
39472         * modules/round: New file.
39473         * modules/round-tests: New file.
39474         * modules/roundf: New file.
39475         * modules/roundf-tests: New file.
39476         * modules/roundl: New file.
39477         * modules/roundl-tests: New file.
39478         * tests/test-round1.c: New file.
39479         * tests/test-round2.c: New file.
39480         * tests/test-roundf1.c: New file.
39481         * tests/test-roundf2.c: New file.
39482         * tests/test-roundl.c: New file.
39483         * doc/functions/round.texi: Mention round module.
39484         * doc/functions/roundf.texi: Mention roundf module.
39485         * doc/functions/roundl.texi: Mention roundl module.
39486         * MODULES.html.sh: Mention new modules.
39487         Thanks to Bruno Haible for suggestions.
39488
39489 2007-10-20  Jim Meyering  <meyering@redhat.com>
39490
39491         * lib/xprintf.c: Include <config.h> unconditionally.
39492
39493         Change xprintf's license to GPL.
39494         * modules/xprintf (License): s/LGPL/GPL/, since this module
39495         depends on modules (exit and exitfail) which are GPL.
39496         Suggestion from Bruno Haible.
39497
39498         xprintf fixes.
39499         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
39500         Use a clearer diagnostic.
39501         Patch from Bruno Haible.
39502
39503 2007-10-20  Bruno Haible  <bruno@clisp.org>
39504
39505         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39506         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39508
39509 2007-10-20  Bruno Haible  <bruno@clisp.org>
39510
39511         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39512         precision in the comparison result > x - 1 or similar.
39513         * tests/test-ceilf2.c (correct_result_p): Likewise.
39514         * tests/test-truncf2.c (correct_result_p): Likewise.
39515         * tests/test-trunc2.c (correct_result_p): Likewise.
39516         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39517
39518 2007-10-20  Bruno Haible  <bruno@clisp.org>
39519
39520         * modules/ceil: New file.
39521         * m4/ceil.m4: New file.
39522         * doc/functions/ceil.texi: Mention the 'ceil' module.
39523
39524 2007-10-20  Bruno Haible  <bruno@clisp.org>
39525
39526         * modules/floor: New file.
39527         * m4/floor.m4: New file.
39528         * doc/functions/floor.texi: Mention the 'floor' module.
39529
39530 2007-10-20  Bruno Haible  <bruno@clisp.org>
39531
39532         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39533         of %a.
39534         * modules/floorf-tests (Depends-on): Likewise.
39535         * modules/truncf-tests (Depends-on): Likewise.
39536         * modules/trunc-tests (Depends-on): Likewise.
39537         Reported by Ben Pfaff.
39538
39539 2007-10-19  Jim Meyering  <meyering@redhat.com>
39540
39541         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39542         Don't bother testing specific errno values.  Just test ferror.
39543
39544         New module: xprintf
39545         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39546
39547 2007-10-19  Bruno Haible  <bruno@clisp.org>
39548
39549         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
39550         syntax.
39551         * modules/javaexec (Makefile.am): Likewise.
39552         * modules/relocatable-prog (Makefile.am): Likewise.
39553         Suggested by Jim Meyering.
39554
39555 2007-10-18  Bruno Haible  <bruno@clisp.org>
39556
39557         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
39558         Reported by Jim Meyering.
39559
39560 2007-10-18  Eric Blake  <ebb9@byu.net>
39561
39562         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
39563
39564 2007-10-18  Bruno Haible  <bruno@clisp.org>
39565
39566         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
39567         the format string into writable memory. Needed in Fortify conditions.
39568
39569 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
39570             Bruno Haible  <bruno@clisp.org>
39571
39572         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
39573         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
39574         * modules/trim (Depends-on): Add mbchar.
39575         (configure.ac): Add gl_FUNC_MBRTOWC.
39576         (Makefile.am): Augment lib_SOURCES.
39577
39578 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39579
39580         Modify glob.c to use fstatat and dirfd, to simplify it.
39581         Suggested by Eric Blake.
39582         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
39583         Don't include <stdbool.h>; not used.
39584         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
39585         (link_exists_p): Simplify implementation, since we can now assume
39586         dirfd and fstatat.
39587         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
39588
39589 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39590
39591         * gnulib-tool (func_get_dependencies): Fix sed script to
39592         match only tests.
39593
39594 2007-10-17  Bruno Haible  <bruno@clisp.org>
39595
39596         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
39597         allow locale names without encoding suffix.
39598         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39599         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39600
39601 2007-10-16  Bruno Haible  <bruno@clisp.org>
39602
39603         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
39604         * lib/getgroups.c (getgroups): Likewise.
39605         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
39606
39607 2007-10-16  Bruno Haible  <bruno@clisp.org>
39608
39609         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
39610         * modules/malloc-posix (License): Likewise.
39611         * modules/realloc-posix (License): Likewise.
39612         * modules/calloc-posix (License): Likewise.
39613         * modules/intprops (License): Change from GPL to LGPL, with
39614         Paul Eggert's approval.
39615
39616 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39617
39618         Merge glibc changes into lib/glob.c.
39619
39620         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
39621         2007-10-15 04:59:03 UTC.  Here are the changes:
39622
39623         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
39624
39625         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
39626
39627         * lib/glob.c: Add some branch prediction throughout.
39628
39629         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
39630
39631         [BZ #5103]
39632         * lib/glob.c (glob): Recognize patterns starting \/.
39633
39634         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
39635
39636         [BZ #3996]
39637         * lib/glob.c (attribute_hidden): Define if not defined.
39638         (glob): Unescape dirname, filename or username when needed and not
39639         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
39640         is NULL.  Handle unescaped [ in pattern without closing ].
39641         Don't pass GLOB_CHECK down to recursive glob for directories.
39642         (__glob_pattern_type): New function.
39643         (__glob_pattern_p): Implement using __glob_pattern_type.
39644         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
39645         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
39646         Remove unreachable code.
39647
39648         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
39649
39650         * lib/glob.c (glob_in_dir): Add some comments and asserts to
39651         explain why there are no leaks.
39652
39653         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
39654
39655         [BZ #3253]
39656         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
39657         time, rather allocate increasingly bigger arrays of pointers, if
39658         possible with alloca, if too large with malloc.
39659
39660 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39661
39662         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
39663         Problem reported by H.Merijn Brand in
39664         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
39665         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
39666         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39667
39668 2007-10-15  Bruno Haible  <bruno@clisp.org>
39669
39670         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
39671         with explicit rpl_ prefix.
39672         * lib/fopen.c (fopen): Likewise.
39673         * lib/freopen.c (freopen): Likewise.
39674         * lib/iconv.c (iconv): Likewise.
39675         * lib/iconv_close.c (iconv_close): Likewise.
39676
39677 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39678
39679         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
39680
39681 2007-10-15  Bruno Haible  <bruno@clisp.org>
39682
39683         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
39684         <stddef.h> instead of <stdlib.h> since we only need NULL.
39685         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39686
39687 2007-10-15  Bruno Haible  <bruno@clisp.org>
39688
39689         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
39690         Replace paragraph talking about LIBOBJS.
39691         Reported by Colin Watson <cjwatson@debian.org>.
39692
39693 2007-10-15  Bruno Haible  <bruno@clisp.org>
39694
39695         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
39696         <stdlib.h> before using NULL.
39697
39698 2007-10-15  Simon Josefsson  <simon@josefsson.org>
39699
39700         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
39701         Reported by Albert Chin <china@thewrittenword.com>.
39702
39703 2007-10-14  Bruno Haible  <bruno@clisp.org>
39704
39705         * modules/iconv_open-utf-tests: New file.
39706         * tests/test-iconv-utf.c: New file.
39707
39708         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
39709         * modules/iconv_open-utf: New file.
39710         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
39711         (iconv, iconv_close): New declarations.
39712         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
39713         be defined.
39714         (iconv_open): Add special handling of conversion between UTF-8 and
39715         UTF-{16,32}{BE,LE}.
39716         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
39717         * lib/iconv_close.c: New file.
39718         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
39719         gl_FUNC_ICONV_OPEN.
39720         (gl_FUNC_ICONV_OPEN): Use it.
39721         (gl_FUNC_ICONV_OPEN_UTF): New macro.
39722         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
39723         and REPLACE_ICONV_UTF.
39724         * modules/iconv_open (Depends-on): Add c-strcase.
39725         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
39726         ICONV_CONST.
39727         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
39728
39729 2007-10-13  Albert Chin  <china@thewrittenword.com>
39730             Bruno Haible  <bruno@clisp.org>
39731
39732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
39733         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
39734
39735 2007-10-13  Bruno Haible  <bruno@clisp.org>
39736
39737         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
39738         defined, use the ISO C99 inline semantics.
39739         * lib/argp.h (ARGP_EI): Likewise.
39740
39741 2007-10-13  Bruno Haible  <bruno@clisp.org>
39742
39743         Handle 'inline' change in gcc 4.3.0.
39744         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
39745         argp_fmtstream_write, argp_fmtstream_set_lmargin,
39746         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
39747         argp_fmtstream_point): Disable 'extern' declaration if the function
39748         definition is going to be provided inline.
39749         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
39750         semantics, not the ISO C99 inline semantics.
39751         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
39752         'extern' declaration if the function definition is going to be provided
39753         inline.
39754         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
39755         the GNU C inline semantics, not the ISO C99 inline semantics. With
39756         GCC 4.2, avoid a warning.
39757
39758 2007-10-13  Bruno Haible  <bruno@clisp.org>
39759
39760         * lib/freading.h (freading): Enable the use of __freading for
39761         glibc >= 2.7.
39762         * lib/freading.c (freading): Likewise.
39763
39764 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39765
39766         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
39767         "warning: C99 inline functions are not supported; using GNU89".
39768
39769 2007-10-12  Bruno Haible  <bruno@clisp.org>
39770
39771         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
39772         of 2.
39773         * tests/test-ceilf2.c: New file.
39774         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
39775
39776         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
39777         * modules/ceilf-tests: Update.
39778
39779 2007-10-12  Bruno Haible  <bruno@clisp.org>
39780
39781         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
39782         of 2.
39783         * tests/test-floorf2.c: New file.
39784         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
39785
39786         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
39787         * modules/floorf-tests: Update.
39788
39789 2007-10-12  Bruno Haible  <bruno@clisp.org>
39790
39791         * tests/test-trunc2.c: New file.
39792         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
39793
39794         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
39795         * modules/trunc-tests: Update.
39796
39797 2007-10-12  Bruno Haible  <bruno@clisp.org>
39798
39799         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
39800         of 2.
39801         * tests/test-truncf2.c: New file.
39802         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
39803
39804         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
39805         * modules/truncf-tests: Update.
39806
39807 2007-10-11  Eric Blake  <ebb9@byu.net>
39808
39809         Don't claim strerror is broken on Interix.
39810         * doc/functions/strerror.texi (strerror): Known broken systems are
39811         now Solaris 8, and not Interix.
39812         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
39813         Interix on cross-compile.
39814         Reported by Martin Koeppe in
39815         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
39816
39817 2007-10-11  Bruno Haible  <bruno@clisp.org>
39818
39819         * modules/i-ring-tests: New file.
39820         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
39821         instead of assert.
39822
39823 2007-10-11  Bruno Haible  <bruno@clisp.org>
39824
39825         * modules/filenamecat-tests: New file.
39826         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
39827         * lib/filenamecat.c: Remove test code.
39828
39829 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39830
39831         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
39832
39833         * lib/strerror.c: Include <string.h> always, to test interface,
39834         and to remove the need for the dummy.
39835         Include intprops.h to compute width instead of doing it ourselves
39836         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
39837         (strerror): Define it to return NULL if there's no system strerror.
39838         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
39839         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
39840         ancient pre-strerror Unix systems well any more.  Saying "unknown
39841         system error" is enough.
39842         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
39843         simpler strerror.c implementation.
39844         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
39845         Simplify the tests to reflect the simpler strerror implementation.
39846         * modules/strerror (Depends-on): Add intprops.
39847
39848 2007-10-09  Eric Blake  <ebb9@byu.net>
39849
39850         Silence test-fpending.
39851         * modules/fpending-tests (Files): Add wrapper script.
39852         * tests/test-fpending.sh: New file.
39853
39854 2007-10-09  Bruno Haible  <bruno@clisp.org>
39855
39856         * MODULES.html.sh (func_module): Don't create a hyperlink for
39857         function names like 'printf_frexp'.
39858         (Misc): Add crc, memxor.
39859         (Characteristics of floating types): New section.
39860         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
39861         isnanf-nolibm, signbit, trunc, truncf, truncl.
39862         (Enhancements for ISO C 99 functions): New subsection Input/output.
39863         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
39864         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
39865         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
39866         (Compatibility checks for POSIX:2001 functions): Add clock-time.
39867         (Enhancements for POSIX:2001 functions): Add chdir-long.
39868         (File system functions): Add areadlink, chdir-safer, read-file.
39869         Remove cycle-check.
39870         (File system as inode set): New section.
39871         (Date and time): Add gethrxtime.
39872         (Multithreading): Add openmp.
39873         (Internationalization functions): Add localename.
39874         (Unicode string functions): Add unistr/u*-mbsnlen.
39875         (Support for maintaining and releasing projects): Add git-version-gen.
39876         (Lone files): Remove directories.
39877
39878 2007-10-08  Ben Pfaff  <blp@gnu.org>
39879
39880         * lib/xmalloca.h: Fix typo in comment.
39881
39882 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39883
39884         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
39885         when avoiding problems with integer overflow.  Use a portable test
39886         instead.
39887
39888 2007-10-08  Simon Josefsson  <simon@josefsson.org>
39889
39890         * modules/dummy (License): Change to LGPLv2+.
39891         * modules/float (License): Likewise
39892         * modules/realloc (License): Likewise
39893         * modules/stdlib (License): Likewise
39894
39895 2007-10-07  Bruno Haible  <bruno@clisp.org>
39896
39897         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
39898         * floor.c (TWO_MANT_DIG): Likewise.
39899         * ceil.c (TWO_MANT_DIG): Likewise.
39900         Reported by Ben Pfaff.
39901
39902 2007-10-07  Bruno Haible  <bruno@clisp.org>
39903
39904         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
39905         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
39906         * lib/frexp.c (FUNC): Likewise.
39907         * lib/printf-frexp.h (printf_frexp): Likewise.
39908         * lib/printf-frexpl.h (printf_frexpl): Likewise.
39909         * lib/printf-frexp.c (FUNC): Likewise.
39910         Suggested by Jim Meyering.
39911
39912 2007-10-07  Jim Meyering  <meyering@redhat.com>
39913
39914         Make xnanosleep's integer overflow test more robust.
39915         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
39916         so that gcc-4.3.0 doesn't optimize away this test for overflow.
39917
39918 2007-10-07  Bruno Haible  <bruno@clisp.org>
39919
39920         * NEWS: Mention the license change.
39921
39922         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
39923         abbreviations in the modules files.
39924
39925         Change copyright notice from GPLv2+ to GPLv3+.
39926         * README: Change copyright notice.
39927         * MODULES.html.sh: Likewise.
39928         * build-aux/bootstrap.conf: Likewise.
39929         * build-aux/config.libpath: Likewise.
39930         * build-aux/csharpcomp.sh.in: Likewise.
39931         * build-aux/csharpexec.sh.in: Likewise.
39932         * build-aux/install-reloc: Likewise.
39933         * build-aux/javacomp.sh.in: Likewise.
39934         * build-aux/javaexec.sh.in: Likewise.
39935         * build-aux/ldd.sh.in: Likewise.
39936         * build-aux/reloc-ldflags: Likewise.
39937         * build-aux/relocatable.sh.in: Likewise.
39938         * build-aux/x-to-1.in: Likewise.
39939         * check-module: Likewise.
39940         * config/srclistvars.sh: Likewise.
39941         * gnulib-tool: Likewise.
39942         * lib/acl-internal.h: Likewise.
39943         * lib/acl.c: Likewise.
39944         * lib/acl.h: Likewise.
39945         * lib/acl_entries.c: Likewise.
39946         * lib/areadlink-with-size.c: Likewise.
39947         * lib/areadlink.c: Likewise.
39948         * lib/areadlink.h: Likewise.
39949         * lib/argmatch.c: Likewise.
39950         * lib/argmatch.h: Likewise.
39951         * lib/argp-ba.c: Likewise.
39952         * lib/argp-eexst.c: Likewise.
39953         * lib/argp-fmtstream.c: Likewise.
39954         * lib/argp-fmtstream.h: Likewise.
39955         * lib/argp-fs-xinl.c: Likewise.
39956         * lib/argp-help.c: Likewise.
39957         * lib/argp-namefrob.h: Likewise.
39958         * lib/argp-parse.c: Likewise.
39959         * lib/argp-pin.c: Likewise.
39960         * lib/argp-pv.c: Likewise.
39961         * lib/argp-pvh.c: Likewise.
39962         * lib/argp-xinl.c: Likewise.
39963         * lib/argp.h: Likewise.
39964         * lib/at-func.c: Likewise.
39965         * lib/atanl.c: Likewise.
39966         * lib/backupfile.c: Likewise.
39967         * lib/backupfile.h: Likewise.
39968         * lib/basename.c: Likewise.
39969         * lib/binary-io.h: Likewise.
39970         * lib/byteswap.in.h: Likewise.
39971         * lib/c-stack.c: Likewise.
39972         * lib/c-stack.h: Likewise.
39973         * lib/c-strcasestr.c: Likewise.
39974         * lib/c-strcasestr.h: Likewise.
39975         * lib/c-strstr.c: Likewise.
39976         * lib/c-strstr.h: Likewise.
39977         * lib/c-strtod.c: Likewise.
39978         * lib/calloc.c: Likewise.
39979         * lib/canon-host.c: Likewise.
39980         * lib/canon-host.h: Likewise.
39981         * lib/canonicalize-lgpl.c: Likewise.
39982         * lib/canonicalize.c: Likewise.
39983         * lib/canonicalize.h: Likewise.
39984         * lib/ceil.c: Likewise.
39985         * lib/ceilf.c: Likewise.
39986         * lib/ceill.c: Likewise.
39987         * lib/chdir-long.c: Likewise.
39988         * lib/chdir-long.h: Likewise.
39989         * lib/chdir-safer.c: Likewise.
39990         * lib/chdir-safer.h: Likewise.
39991         * lib/chown.c: Likewise.
39992         * lib/classpath.c: Likewise.
39993         * lib/classpath.h: Likewise.
39994         * lib/clean-temp.c: Likewise.
39995         * lib/clean-temp.h: Likewise.
39996         * lib/cloexec.c: Likewise.
39997         * lib/close-stream.c: Likewise.
39998         * lib/closein.c: Likewise.
39999         * lib/closein.h: Likewise.
40000         * lib/closeout.c: Likewise.
40001         * lib/closeout.h: Likewise.
40002         * lib/concat-filename.c: Likewise.
40003         * lib/copy-file.c: Likewise.
40004         * lib/copy-file.h: Likewise.
40005         * lib/count-one-bits.h: Likewise.
40006         * lib/crc.c: Likewise.
40007         * lib/crc.h: Likewise.
40008         * lib/creat-safer.c: Likewise.
40009         * lib/csharpcomp.c: Likewise.
40010         * lib/csharpcomp.h: Likewise.
40011         * lib/csharpexec.c: Likewise.
40012         * lib/csharpexec.h: Likewise.
40013         * lib/cycle-check.c: Likewise.
40014         * lib/cycle-check.h: Likewise.
40015         * lib/diacrit.c: Likewise.
40016         * lib/diacrit.h: Likewise.
40017         * lib/diffseq.h: Likewise.
40018         * lib/dirchownmod.c: Likewise.
40019         * lib/dirent.in.h: Likewise.
40020         * lib/dirfd.c: Likewise.
40021         * lib/dirfd.h: Likewise.
40022         * lib/dirname.c: Likewise.
40023         * lib/dirname.h: Likewise.
40024         * lib/dummy.c: Likewise.
40025         * lib/dup-safer.c: Likewise.
40026         * lib/dup2.c: Likewise.
40027         * lib/eealloc.h: Likewise.
40028         * lib/error.c: Likewise.
40029         * lib/error.h: Likewise.
40030         * lib/euidaccess.c: Likewise.
40031         * lib/exclude.c: Likewise.
40032         * lib/exclude.h: Likewise.
40033         * lib/execute.c: Likewise.
40034         * lib/execute.h: Likewise.
40035         * lib/exitfail.c: Likewise.
40036         * lib/exitfail.h: Likewise.
40037         * lib/expl.c: Likewise.
40038         * lib/fatal-signal.c: Likewise.
40039         * lib/fatal-signal.h: Likewise.
40040         * lib/fbufmode.c: Likewise.
40041         * lib/fbufmode.h: Likewise.
40042         * lib/fchdir.c: Likewise.
40043         * lib/fchmodat.c: Likewise.
40044         * lib/fchownat.c: Likewise.
40045         * lib/fcntl--.h: Likewise.
40046         * lib/fcntl-safer.h: Likewise.
40047         * lib/fcntl.in.h: Likewise.
40048         * lib/fd-safer.c: Likewise.
40049         * lib/fflush.c: Likewise.
40050         * lib/file-has-acl.c: Likewise.
40051         * lib/file-set.c: Likewise.
40052         * lib/file-type.c: Likewise.
40053         * lib/file-type.h: Likewise.
40054         * lib/fileblocks.c: Likewise.
40055         * lib/filemode.c: Likewise.
40056         * lib/filemode.h: Likewise.
40057         * lib/filename.h: Likewise.
40058         * lib/filenamecat.c: Likewise.
40059         * lib/filenamecat.h: Likewise.
40060         * lib/findprog.c: Likewise.
40061         * lib/findprog.h: Likewise.
40062         * lib/float.in.h: Likewise.
40063         * lib/floor.c: Likewise.
40064         * lib/floorf.c: Likewise.
40065         * lib/floorl.c: Likewise.
40066         * lib/fopen-safer.c: Likewise.
40067         * lib/fopen.c: Likewise.
40068         * lib/fpending.c: Likewise.
40069         * lib/fpending.h: Likewise.
40070         * lib/fprintf.c: Likewise.
40071         * lib/fprintftime.h: Likewise.
40072         * lib/fpucw.h: Likewise.
40073         * lib/fpurge.c: Likewise.
40074         * lib/fpurge.h: Likewise.
40075         * lib/freadable.c: Likewise.
40076         * lib/freadable.h: Likewise.
40077         * lib/freadahead.c: Likewise.
40078         * lib/freadahead.h: Likewise.
40079         * lib/freading.c: Likewise.
40080         * lib/freading.h: Likewise.
40081         * lib/free.c: Likewise.
40082         * lib/freopen.c: Likewise.
40083         * lib/frexp.c: Likewise.
40084         * lib/frexpl.c: Likewise.
40085         * lib/fseek.c: Likewise.
40086         * lib/fseterr.c: Likewise.
40087         * lib/fseterr.h: Likewise.
40088         * lib/fstatat.c: Likewise.
40089         * lib/fstrcmp.c: Likewise.
40090         * lib/fstrcmp.h: Likewise.
40091         * lib/fsusage.c: Likewise.
40092         * lib/fsusage.h: Likewise.
40093         * lib/ftell.c: Likewise.
40094         * lib/ftello.c: Likewise.
40095         * lib/fts-cycle.c: Likewise.
40096         * lib/fts.c: Likewise.
40097         * lib/fts_.h: Likewise.
40098         * lib/full-read.c: Likewise.
40099         * lib/full-read.h: Likewise.
40100         * lib/full-write.c: Likewise.
40101         * lib/full-write.h: Likewise.
40102         * lib/fwritable.c: Likewise.
40103         * lib/fwritable.h: Likewise.
40104         * lib/fwriteerror.c: Likewise.
40105         * lib/fwriteerror.h: Likewise.
40106         * lib/fwriting.c: Likewise.
40107         * lib/fwriting.h: Likewise.
40108         * lib/gcd.c: Likewise.
40109         * lib/gcd.h: Likewise.
40110         * lib/getcwd.c: Likewise.
40111         * lib/getdate.h: Likewise.
40112         * lib/getdate.y: Likewise.
40113         * lib/getdomainname.c: Likewise.
40114         * lib/getdomainname.h: Likewise.
40115         * lib/getgroups.c: Likewise.
40116         * lib/gethostname.c: Likewise.
40117         * lib/gethrxtime.c: Likewise.
40118         * lib/gethrxtime.h: Likewise.
40119         * lib/getloadavg.c: Likewise.
40120         * lib/getndelim2.c: Likewise.
40121         * lib/getndelim2.h: Likewise.
40122         * lib/getnline.c: Likewise.
40123         * lib/getnline.h: Likewise.
40124         * lib/getopt.c: Likewise.
40125         * lib/getopt.in.h: Likewise.
40126         * lib/getopt1.c: Likewise.
40127         * lib/getopt_int.h: Likewise.
40128         * lib/getpagesize.h: Likewise.
40129         * lib/getsubopt.c: Likewise.
40130         * lib/gettime.c: Likewise.
40131         * lib/getugroups.c: Likewise.
40132         * lib/getugroups.h: Likewise.
40133         * lib/getusershell.c: Likewise.
40134         * lib/gl_anyavltree_list1.h: Likewise.
40135         * lib/gl_anyavltree_list2.h: Likewise.
40136         * lib/gl_anyhash_list1.h: Likewise.
40137         * lib/gl_anyhash_list2.h: Likewise.
40138         * lib/gl_anylinked_list1.h: Likewise.
40139         * lib/gl_anylinked_list2.h: Likewise.
40140         * lib/gl_anyrbtree_list1.h: Likewise.
40141         * lib/gl_anyrbtree_list2.h: Likewise.
40142         * lib/gl_anytree_list1.h: Likewise.
40143         * lib/gl_anytree_list2.h: Likewise.
40144         * lib/gl_anytree_oset.h: Likewise.
40145         * lib/gl_anytreehash_list1.h: Likewise.
40146         * lib/gl_anytreehash_list2.h: Likewise.
40147         * lib/gl_array_list.c: Likewise.
40148         * lib/gl_array_list.h: Likewise.
40149         * lib/gl_array_oset.c: Likewise.
40150         * lib/gl_array_oset.h: Likewise.
40151         * lib/gl_avltree_list.c: Likewise.
40152         * lib/gl_avltree_list.h: Likewise.
40153         * lib/gl_avltree_oset.c: Likewise.
40154         * lib/gl_avltree_oset.h: Likewise.
40155         * lib/gl_avltreehash_list.c: Likewise.
40156         * lib/gl_avltreehash_list.h: Likewise.
40157         * lib/gl_carray_list.c: Likewise.
40158         * lib/gl_carray_list.h: Likewise.
40159         * lib/gl_linked_list.c: Likewise.
40160         * lib/gl_linked_list.h: Likewise.
40161         * lib/gl_linkedhash_list.c: Likewise.
40162         * lib/gl_linkedhash_list.h: Likewise.
40163         * lib/gl_list.c: Likewise.
40164         * lib/gl_list.h: Likewise.
40165         * lib/gl_oset.c: Likewise.
40166         * lib/gl_oset.h: Likewise.
40167         * lib/gl_rbtree_list.c: Likewise.
40168         * lib/gl_rbtree_list.h: Likewise.
40169         * lib/gl_rbtree_oset.c: Likewise.
40170         * lib/gl_rbtree_oset.h: Likewise.
40171         * lib/gl_rbtreehash_list.c: Likewise.
40172         * lib/gl_rbtreehash_list.h: Likewise.
40173         * lib/gl_sublist.c: Likewise.
40174         * lib/gl_sublist.h: Likewise.
40175         * lib/group-member.c: Likewise.
40176         * lib/group-member.h: Likewise.
40177         * lib/hard-locale.c: Likewise.
40178         * lib/hard-locale.h: Likewise.
40179         * lib/hash-pjw.c: Likewise.
40180         * lib/hash-pjw.h: Likewise.
40181         * lib/hash-triple.c: Likewise.
40182         * lib/hash.c: Likewise.
40183         * lib/hash.h: Likewise.
40184         * lib/human.c: Likewise.
40185         * lib/human.h: Likewise.
40186         * lib/i-ring.c: Likewise.
40187         * lib/i-ring.h: Likewise.
40188         * lib/idcache.c: Likewise.
40189         * lib/imaxabs.c: Likewise.
40190         * lib/imaxdiv.c: Likewise.
40191         * lib/inet_pton.c: Likewise.
40192         * lib/inet_pton.h: Likewise.
40193         * lib/intprops.h: Likewise.
40194         * lib/inttostr.c: Likewise.
40195         * lib/inttostr.h: Likewise.
40196         * lib/inttypes.in.h: Likewise.
40197         * lib/isapipe.c: Likewise.
40198         * lib/isdir.c: Likewise.
40199         * lib/isnan.c: Likewise.
40200         * lib/isnan.h: Likewise.
40201         * lib/isnanf.c: Likewise.
40202         * lib/isnanf.h: Likewise.
40203         * lib/isnanl-nolibm.h: Likewise.
40204         * lib/isnanl.c: Likewise.
40205         * lib/isnanl.h: Likewise.
40206         * lib/javacomp.c: Likewise.
40207         * lib/javacomp.h: Likewise.
40208         * lib/javaexec.c: Likewise.
40209         * lib/javaexec.h: Likewise.
40210         * lib/javaversion.c: Likewise.
40211         * lib/javaversion.h: Likewise.
40212         * lib/javaversion.java: Likewise.
40213         * lib/lbrkprop.h: Likewise.
40214         * lib/lchmod.h: Likewise.
40215         * lib/lchown.c: Likewise.
40216         * lib/ldexpl.c: Likewise.
40217         * lib/linebreak.c: Likewise.
40218         * lib/linebreak.h: Likewise.
40219         * lib/linebuffer.c: Likewise.
40220         * lib/linebuffer.h: Likewise.
40221         * lib/locale.in.h: Likewise.
40222         * lib/logl.c: Likewise.
40223         * lib/long-options.c: Likewise.
40224         * lib/long-options.h: Likewise.
40225         * lib/lstat.c: Likewise.
40226         * lib/lstat.h: Likewise.
40227         * lib/math.in.h: Likewise.
40228         * lib/mbchar.c: Likewise.
40229         * lib/mbchar.h: Likewise.
40230         * lib/mbfile.h: Likewise.
40231         * lib/mbiter.h: Likewise.
40232         * lib/mbscasecmp.c: Likewise.
40233         * lib/mbscasestr.c: Likewise.
40234         * lib/mbschr.c: Likewise.
40235         * lib/mbscspn.c: Likewise.
40236         * lib/mbslen.c: Likewise.
40237         * lib/mbsncasecmp.c: Likewise.
40238         * lib/mbsnlen.c: Likewise.
40239         * lib/mbspbrk.c: Likewise.
40240         * lib/mbspcasecmp.c: Likewise.
40241         * lib/mbsrchr.c: Likewise.
40242         * lib/mbssep.c: Likewise.
40243         * lib/mbsspn.c: Likewise.
40244         * lib/mbsstr.c: Likewise.
40245         * lib/mbstok_r.c: Likewise.
40246         * lib/mbswidth.c: Likewise.
40247         * lib/mbswidth.h: Likewise.
40248         * lib/mbuiter.h: Likewise.
40249         * lib/memcasecmp.c: Likewise.
40250         * lib/memcasecmp.h: Likewise.
40251         * lib/memchr.c: Likewise.
40252         * lib/memcmp.c: Likewise.
40253         * lib/memcoll.c: Likewise.
40254         * lib/memcoll.h: Likewise.
40255         * lib/memcpy.c: Likewise.
40256         * lib/memrchr.c: Likewise.
40257         * lib/mkancesdirs.c: Likewise.
40258         * lib/mkdir-p.c: Likewise.
40259         * lib/mkdir-p.h: Likewise.
40260         * lib/mkdir.c: Likewise.
40261         * lib/mkdirat.c: Likewise.
40262         * lib/mkdtemp.c: Likewise.
40263         * lib/mkstemp-safer.c: Likewise.
40264         * lib/mkstemp.c: Likewise.
40265         * lib/modechange.c: Likewise.
40266         * lib/modechange.h: Likewise.
40267         * lib/mountlist.c: Likewise.
40268         * lib/mountlist.h: Likewise.
40269         * lib/mpsort.c: Likewise.
40270         * lib/nanosleep.c: Likewise.
40271         * lib/obstack.c: Likewise.
40272         * lib/obstack.h: Likewise.
40273         * lib/open-safer.c: Likewise.
40274         * lib/open.c: Likewise.
40275         * lib/openat-die.c: Likewise.
40276         * lib/openat-priv.h: Likewise.
40277         * lib/openat-proc.c: Likewise.
40278         * lib/openat.c: Likewise.
40279         * lib/openat.h: Likewise.
40280         * lib/pagealign_alloc.c: Likewise.
40281         * lib/pagealign_alloc.h: Likewise.
40282         * lib/physmem.c: Likewise.
40283         * lib/physmem.h: Likewise.
40284         * lib/pipe-safer.c: Likewise.
40285         * lib/pipe.c: Likewise.
40286         * lib/pipe.h: Likewise.
40287         * lib/posixtm.c: Likewise.
40288         * lib/posixtm.h: Likewise.
40289         * lib/posixver.c: Likewise.
40290         * lib/printf-frexp.c: Likewise.
40291         * lib/printf-frexp.h: Likewise.
40292         * lib/printf-frexpl.c: Likewise.
40293         * lib/printf-frexpl.h: Likewise.
40294         * lib/printf.c: Likewise.
40295         * lib/progname.c: Likewise.
40296         * lib/progname.h: Likewise.
40297         * lib/progreloc.c: Likewise.
40298         * lib/putenv.c: Likewise.
40299         * lib/quote.c: Likewise.
40300         * lib/quote.h: Likewise.
40301         * lib/quotearg.c: Likewise.
40302         * lib/quotearg.h: Likewise.
40303         * lib/raise.c: Likewise.
40304         * lib/readline.c: Likewise.
40305         * lib/readline.h: Likewise.
40306         * lib/readlink.c: Likewise.
40307         * lib/readtokens.c: Likewise.
40308         * lib/readtokens.h: Likewise.
40309         * lib/readtokens0.c: Likewise.
40310         * lib/readtokens0.h: Likewise.
40311         * lib/readutmp.c: Likewise.
40312         * lib/readutmp.h: Likewise.
40313         * lib/realloc.c: Likewise.
40314         * lib/relocwrapper.c: Likewise.
40315         * lib/rename-dest-slash.c: Likewise.
40316         * lib/rename.c: Likewise.
40317         * lib/rmdir.c: Likewise.
40318         * lib/rpmatch.c: Likewise.
40319         * lib/safe-read.c: Likewise.
40320         * lib/safe-read.h: Likewise.
40321         * lib/safe-write.c: Likewise.
40322         * lib/safe-write.h: Likewise.
40323         * lib/same-inode.h: Likewise.
40324         * lib/same.c: Likewise.
40325         * lib/same.h: Likewise.
40326         * lib/save-cwd.c: Likewise.
40327         * lib/save-cwd.h: Likewise.
40328         * lib/savedir.c: Likewise.
40329         * lib/savedir.h: Likewise.
40330         * lib/savewd.c: Likewise.
40331         * lib/savewd.h: Likewise.
40332         * lib/search.in.h: Likewise.
40333         * lib/setenv.c: Likewise.
40334         * lib/setenv.h: Likewise.
40335         * lib/settime.c: Likewise.
40336         * lib/sh-quote.c: Likewise.
40337         * lib/sh-quote.h: Likewise.
40338         * lib/sig2str.c: Likewise.
40339         * lib/sig2str.h: Likewise.
40340         * lib/signal.in.h: Likewise.
40341         * lib/signbitd.c: Likewise.
40342         * lib/signbitf.c: Likewise.
40343         * lib/signbitl.c: Likewise.
40344         * lib/sigprocmask.c: Likewise.
40345         * lib/sincosl.c: Likewise.
40346         * lib/sleep.c: Likewise.
40347         * lib/sprintf.c: Likewise.
40348         * lib/sqrtl.c: Likewise.
40349         * lib/stat-time.h: Likewise.
40350         * lib/stdio--.h: Likewise.
40351         * lib/stdio-safer.h: Likewise.
40352         * lib/stdlib--.h: Likewise.
40353         * lib/stdlib-safer.h: Likewise.
40354         * lib/stdlib.in.h: Likewise.
40355         * lib/stpcpy.c: Likewise.
40356         * lib/stpncpy.c: Likewise.
40357         * lib/strchrnul.c: Likewise.
40358         * lib/strcspn.c: Likewise.
40359         * lib/strerror.c: Likewise.
40360         * lib/strftime.c: Likewise.
40361         * lib/strftime.h: Likewise.
40362         * lib/striconveh.c: Likewise.
40363         * lib/striconveh.h: Likewise.
40364         * lib/striconveha.c: Likewise.
40365         * lib/striconveha.h: Likewise.
40366         * lib/stripslash.c: Likewise.
40367         * lib/strnlen1.c: Likewise.
40368         * lib/strnlen1.h: Likewise.
40369         * lib/strtod.c: Likewise.
40370         * lib/strtoimax.c: Likewise.
40371         * lib/strtok_r.c: Likewise.
40372         * lib/strtol.c: Likewise.
40373         * lib/strtoll.c: Likewise.
40374         * lib/strtoul.c: Likewise.
40375         * lib/strtoull.c: Likewise.
40376         * lib/sysexits.in.h: Likewise.
40377         * lib/tempname.c: Likewise.
40378         * lib/tempname.h: Likewise.
40379         * lib/timespec.h: Likewise.
40380         * lib/tls.c: Likewise.
40381         * lib/tls.h: Likewise.
40382         * lib/tmpdir.c: Likewise.
40383         * lib/tmpdir.h: Likewise.
40384         * lib/tmpfile-safer.c: Likewise.
40385         * lib/tmpfile.c: Likewise.
40386         * lib/trigl.c: Likewise.
40387         * lib/trigl.h: Likewise.
40388         * lib/trim.c: Likewise.
40389         * lib/trim.h: Likewise.
40390         * lib/trunc.c: Likewise.
40391         * lib/truncf.c: Likewise.
40392         * lib/truncl.c: Likewise.
40393         * lib/tsearch.c: Likewise.
40394         * lib/unicodeio.c: Likewise.
40395         * lib/unicodeio.h: Likewise.
40396         * lib/unistd--.h: Likewise.
40397         * lib/unistd-safer.h: Likewise.
40398         * lib/unistdio/ulc-fprintf.c: Likewise.
40399         * lib/unistdio/ulc-vfprintf.c: Likewise.
40400         * lib/unlinkdir.c: Likewise.
40401         * lib/unlinkdir.h: Likewise.
40402         * lib/unlocked-io.h: Likewise.
40403         * lib/unsetenv.c: Likewise.
40404         * lib/userspec.c: Likewise.
40405         * lib/utime.c: Likewise.
40406         * lib/utimecmp.c: Likewise.
40407         * lib/utimecmp.h: Likewise.
40408         * lib/utimens.c: Likewise.
40409         * lib/verify.h: Likewise.
40410         * lib/verror.c: Likewise.
40411         * lib/verror.h: Likewise.
40412         * lib/version-etc-fsf.c: Likewise.
40413         * lib/version-etc.c: Likewise.
40414         * lib/version-etc.h: Likewise.
40415         * lib/vfprintf.c: Likewise.
40416         * lib/vprintf.c: Likewise.
40417         * lib/vsprintf.c: Likewise.
40418         * lib/w32spawn.h: Likewise.
40419         * lib/wait-process.c: Likewise.
40420         * lib/wait-process.h: Likewise.
40421         * lib/wcwidth.c: Likewise.
40422         * lib/write-any-file.c: Likewise.
40423         * lib/xalloc-die.c: Likewise.
40424         * lib/xalloc.h: Likewise.
40425         * lib/xasprintf.c: Likewise.
40426         * lib/xgetcwd.c: Likewise.
40427         * lib/xgetcwd.h: Likewise.
40428         * lib/xgetdomainname.c: Likewise.
40429         * lib/xgetdomainname.h: Likewise.
40430         * lib/xgethostname.c: Likewise.
40431         * lib/xmalloc.c: Likewise.
40432         * lib/xmalloca.c: Likewise.
40433         * lib/xmalloca.h: Likewise.
40434         * lib/xmemcoll.c: Likewise.
40435         * lib/xnanosleep.c: Likewise.
40436         * lib/xreadlink.c: Likewise.
40437         * lib/xreadlink.h: Likewise.
40438         * lib/xsetenv.c: Likewise.
40439         * lib/xsetenv.h: Likewise.
40440         * lib/xstriconv.c: Likewise.
40441         * lib/xstriconv.h: Likewise.
40442         * lib/xstrndup.c: Likewise.
40443         * lib/xstrndup.h: Likewise.
40444         * lib/xstrtod.c: Likewise.
40445         * lib/xstrtod.h: Likewise.
40446         * lib/xstrtol-error.c: Likewise.
40447         * lib/xstrtol.c: Likewise.
40448         * lib/xstrtol.h: Likewise.
40449         * lib/xtime.h: Likewise.
40450         * lib/xvasprintf.c: Likewise.
40451         * lib/xvasprintf.h: Likewise.
40452         * lib/yesno.c: Likewise.
40453         * lib/yesno.h: Likewise.
40454         * posix-modules: Likewise.
40455         * tests/test-alloca-opt.c: Likewise.
40456         * tests/test-arcfour.c: Likewise.
40457         * tests/test-arctwo.c: Likewise.
40458         * tests/test-argmatch.c: Likewise.
40459         * tests/test-argp-2.sh: Likewise.
40460         * tests/test-argp.c: Likewise.
40461         * tests/test-arpa_inet.c: Likewise.
40462         * tests/test-array_list.c: Likewise.
40463         * tests/test-array_oset.c: Likewise.
40464         * tests/test-atexit.c: Likewise.
40465         * tests/test-avltree_list.c: Likewise.
40466         * tests/test-avltree_oset.c: Likewise.
40467         * tests/test-avltreehash_list.c: Likewise.
40468         * tests/test-base64.c: Likewise.
40469         * tests/test-binary-io.c: Likewise.
40470         * tests/test-byteswap.c: Likewise.
40471         * tests/test-c-ctype.c: Likewise.
40472         * tests/test-c-strcasecmp.c: Likewise.
40473         * tests/test-c-strcasestr.c: Likewise.
40474         * tests/test-c-strncasecmp.c: Likewise.
40475         * tests/test-c-strstr.c: Likewise.
40476         * tests/test-canonicalize-lgpl.c: Likewise.
40477         * tests/test-canonicalize.c: Likewise.
40478         * tests/test-carray_list.c: Likewise.
40479         * tests/test-ceilf.c: Likewise.
40480         * tests/test-ceill.c: Likewise.
40481         * tests/test-count-one-bits.c: Likewise.
40482         * tests/test-crc.c: Likewise.
40483         * tests/test-dirname.c: Likewise.
40484         * tests/test-fbufmode.c: Likewise.
40485         * tests/test-fcntl.c: Likewise.
40486         * tests/test-fflush.c: Likewise.
40487         * tests/test-floorf.c: Likewise.
40488         * tests/test-floorl.c: Likewise.
40489         * tests/test-fopen.c: Likewise.
40490         * tests/test-fprintf-posix.c: Likewise.
40491         * tests/test-fprintf-posix.h: Likewise.
40492         * tests/test-fpurge.c: Likewise.
40493         * tests/test-freadable.c: Likewise.
40494         * tests/test-freadahead.c: Likewise.
40495         * tests/test-freading.c: Likewise.
40496         * tests/test-freopen.c: Likewise.
40497         * tests/test-frexp.c: Likewise.
40498         * tests/test-frexpl.c: Likewise.
40499         * tests/test-fseek.c: Likewise.
40500         * tests/test-fseeko.c: Likewise.
40501         * tests/test-fseterr.c: Likewise.
40502         * tests/test-fstrcmp.c: Likewise.
40503         * tests/test-ftell.c: Likewise.
40504         * tests/test-ftello.c: Likewise.
40505         * tests/test-fwritable.c: Likewise.
40506         * tests/test-fwriting.c: Likewise.
40507         * tests/test-getaddrinfo.c: Likewise.
40508         * tests/test-getpass.c: Likewise.
40509         * tests/test-gettimeofday.c: Likewise.
40510         * tests/test-hmac-md5.c: Likewise.
40511         * tests/test-hmac-sha1.c: Likewise.
40512         * tests/test-iconv.c: Likewise.
40513         * tests/test-iconvme.c: Likewise.
40514         * tests/test-inttypes.c: Likewise.
40515         * tests/test-isnan.c: Likewise.
40516         * tests/test-isnanf.c: Likewise.
40517         * tests/test-isnanl-nolibm.c: Likewise.
40518         * tests/test-isnanl.c: Likewise.
40519         * tests/test-isnanl.h: Likewise.
40520         * tests/test-ldexpl.c: Likewise.
40521         * tests/test-linked_list.c: Likewise.
40522         * tests/test-linkedhash_list.c: Likewise.
40523         * tests/test-locale.c: Likewise.
40524         * tests/test-localename.c: Likewise.
40525         * tests/test-lock.c: Likewise.
40526         * tests/test-lseek.c: Likewise.
40527         * tests/test-malloca.c: Likewise.
40528         * tests/test-math.c: Likewise.
40529         * tests/test-mbscasecmp.c: Likewise.
40530         * tests/test-mbscasestr1.c: Likewise.
40531         * tests/test-mbscasestr2.c: Likewise.
40532         * tests/test-mbscasestr3.c: Likewise.
40533         * tests/test-mbscasestr4.c: Likewise.
40534         * tests/test-mbschr.c: Likewise.
40535         * tests/test-mbscspn.c: Likewise.
40536         * tests/test-mbsncasecmp.c: Likewise.
40537         * tests/test-mbspbrk.c: Likewise.
40538         * tests/test-mbspcasecmp.c: Likewise.
40539         * tests/test-mbsrchr.c: Likewise.
40540         * tests/test-mbsspn.c: Likewise.
40541         * tests/test-mbsstr1.c: Likewise.
40542         * tests/test-mbsstr2.c: Likewise.
40543         * tests/test-mbsstr3.c: Likewise.
40544         * tests/test-md5.c: Likewise.
40545         * tests/test-memmem.c: Likewise.
40546         * tests/test-netinet_in.c: Likewise.
40547         * tests/test-open.c: Likewise.
40548         * tests/test-printf-frexp.c: Likewise.
40549         * tests/test-printf-frexpl.c: Likewise.
40550         * tests/test-printf-posix.c: Likewise.
40551         * tests/test-printf-posix.h: Likewise.
40552         * tests/test-rbtree_list.c: Likewise.
40553         * tests/test-rbtree_oset.c: Likewise.
40554         * tests/test-rbtreehash_list.c: Likewise.
40555         * tests/test-read-file.c: Likewise.
40556         * tests/test-rijndael.c: Likewise.
40557         * tests/test-search.c: Likewise.
40558         * tests/test-signbit.c: Likewise.
40559         * tests/test-sleep.c: Likewise.
40560         * tests/test-snprintf-posix.c: Likewise.
40561         * tests/test-snprintf-posix.h: Likewise.
40562         * tests/test-snprintf.c: Likewise.
40563         * tests/test-sprintf-posix.c: Likewise.
40564         * tests/test-sprintf-posix.h: Likewise.
40565         * tests/test-stat-time.c: Likewise.
40566         * tests/test-stdbool.c: Likewise.
40567         * tests/test-stdint.c: Likewise.
40568         * tests/test-stdio.c: Likewise.
40569         * tests/test-stdlib.c: Likewise.
40570         * tests/test-stpncpy.c: Likewise.
40571         * tests/test-strcasestr.c: Likewise.
40572         * tests/test-striconv.c: Likewise.
40573         * tests/test-striconveh.c: Likewise.
40574         * tests/test-striconveha.c: Likewise.
40575         * tests/test-string.c: Likewise.
40576         * tests/test-sys_select.c: Likewise.
40577         * tests/test-sys_socket.c: Likewise.
40578         * tests/test-sys_stat.c: Likewise.
40579         * tests/test-sys_time.c: Likewise.
40580         * tests/test-sysexits.c: Likewise.
40581         * tests/test-time.c: Likewise.
40582         * tests/test-tls.c: Likewise.
40583         * tests/test-trunc.c: Likewise.
40584         * tests/test-truncf.c: Likewise.
40585         * tests/test-truncl.c: Likewise.
40586         * tests/test-unistd.c: Likewise.
40587         * tests/test-vasnprintf-posix.c: Likewise.
40588         * tests/test-vasnprintf-posix2.c: Likewise.
40589         * tests/test-vasnprintf.c: Likewise.
40590         * tests/test-vasprintf-posix.c: Likewise.
40591         * tests/test-vasprintf.c: Likewise.
40592         * tests/test-verify.c: Likewise.
40593         * tests/test-vfprintf-posix.c: Likewise.
40594         * tests/test-vprintf-posix.c: Likewise.
40595         * tests/test-vsnprintf-posix.c: Likewise.
40596         * tests/test-vsnprintf.c: Likewise.
40597         * tests/test-vsprintf-posix.c: Likewise.
40598         * tests/test-wchar.c: Likewise.
40599         * tests/test-wctype.c: Likewise.
40600         * tests/test-wcwidth.c: Likewise.
40601         * tests/test-xstrtol.c: Likewise.
40602         * tests/test-xvasprintf.c: Likewise.
40603         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40604         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40605         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40606         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40607         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40608         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40609         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40610         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40611         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40612         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40613         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40614         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40615         * tests/uniname/test-uninames.c: Likewise.
40616         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40617         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
40618         * tests/unistdio/test-u16-printf1.h: Likewise.
40619         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40620         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40621         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40622         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40623         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40624         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40625         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40626         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
40627         * tests/unistdio/test-u32-printf1.h: Likewise.
40628         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40629         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40630         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40631         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40632         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40633         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40634         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40635         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
40636         * tests/unistdio/test-u8-printf1.h: Likewise.
40637         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40638         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40639         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40640         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40641         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40642         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40643         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40644         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
40645         * tests/unistdio/test-ulc-printf1.h: Likewise.
40646         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40647         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40648         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40649         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40650         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40651         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40652         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40653         * tests/uniwidth/test-u16-width.c: Likewise.
40654         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40655         * tests/uniwidth/test-u32-width.c: Likewise.
40656         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40657         * tests/uniwidth/test-u8-width.c: Likewise.
40658         * tests/uniwidth/test-uc_width.c: Likewise.
40659         * config/srclist-update: Likewise.
40660         (fixlicense): Update to GPLv3+.
40661
40662         Change copyright notice from LGPLv2.1+ to LGPLv3+.
40663         * tests/test-tsearch.c: Change copyright notice.
40664
40665         Change copyright notice from LGPLv2.0+ to LGPLv3+.
40666         * lib/c-strcaseeq.h: Change copyright notice.
40667         * lib/streq.h: Likewise.
40668         * lib/uniconv.h: Likewise.
40669         * lib/uniconv/u-conv-from-enc.h: Likewise.
40670         * lib/uniconv/u-conv-to-enc.h: Likewise.
40671         * lib/uniconv/u-strconv-from-enc.h: Likewise.
40672         * lib/uniconv/u-strconv-to-enc.h: Likewise.
40673         * lib/uniconv/u16-conv-from-enc.c: Likewise.
40674         * lib/uniconv/u16-conv-to-enc.c: Likewise.
40675         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
40676         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
40677         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
40678         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
40679         * lib/uniconv/u32-conv-from-enc.c: Likewise.
40680         * lib/uniconv/u32-conv-to-enc.c: Likewise.
40681         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
40682         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
40683         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
40684         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
40685         * lib/uniconv/u8-conv-from-enc.c: Likewise.
40686         * lib/uniconv/u8-conv-to-enc.c: Likewise.
40687         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
40688         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
40689         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
40690         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
40691         * lib/uniname.h: Likewise.
40692         * lib/uniname/uniname.c: Likewise.
40693         * lib/unistdio.h: Likewise.
40694         * lib/unistdio/u-asnprintf.h: Likewise.
40695         * lib/unistdio/u-asprintf.h: Likewise.
40696         * lib/unistdio/u-printf-args.c: Likewise.
40697         * lib/unistdio/u-printf-args.h: Likewise.
40698         * lib/unistdio/u-printf-parse.h: Likewise.
40699         * lib/unistdio/u-snprintf.h: Likewise.
40700         * lib/unistdio/u-sprintf.h: Likewise.
40701         * lib/unistdio/u-vasprintf.h: Likewise.
40702         * lib/unistdio/u-vsnprintf.h: Likewise.
40703         * lib/unistdio/u-vsprintf.h: Likewise.
40704         * lib/unistdio/u16-asnprintf.c: Likewise.
40705         * lib/unistdio/u16-asprintf.c: Likewise.
40706         * lib/unistdio/u16-printf-parse.c: Likewise.
40707         * lib/unistdio/u16-snprintf.c: Likewise.
40708         * lib/unistdio/u16-sprintf.c: Likewise.
40709         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
40710         * lib/unistdio/u16-u16-asprintf.c: Likewise.
40711         * lib/unistdio/u16-u16-snprintf.c: Likewise.
40712         * lib/unistdio/u16-u16-sprintf.c: Likewise.
40713         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
40714         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
40715         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
40716         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
40717         * lib/unistdio/u16-vasnprintf.c: Likewise.
40718         * lib/unistdio/u16-vasprintf.c: Likewise.
40719         * lib/unistdio/u16-vsnprintf.c: Likewise.
40720         * lib/unistdio/u16-vsprintf.c: Likewise.
40721         * lib/unistdio/u32-asnprintf.c: Likewise.
40722         * lib/unistdio/u32-asprintf.c: Likewise.
40723         * lib/unistdio/u32-printf-parse.c: Likewise.
40724         * lib/unistdio/u32-snprintf.c: Likewise.
40725         * lib/unistdio/u32-sprintf.c: Likewise.
40726         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
40727         * lib/unistdio/u32-u32-asprintf.c: Likewise.
40728         * lib/unistdio/u32-u32-snprintf.c: Likewise.
40729         * lib/unistdio/u32-u32-sprintf.c: Likewise.
40730         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
40731         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
40732         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
40733         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
40734         * lib/unistdio/u32-vasnprintf.c: Likewise.
40735         * lib/unistdio/u32-vasprintf.c: Likewise.
40736         * lib/unistdio/u32-vsnprintf.c: Likewise.
40737         * lib/unistdio/u32-vsprintf.c: Likewise.
40738         * lib/unistdio/u8-asnprintf.c: Likewise.
40739         * lib/unistdio/u8-asprintf.c: Likewise.
40740         * lib/unistdio/u8-printf-parse.c: Likewise.
40741         * lib/unistdio/u8-snprintf.c: Likewise.
40742         * lib/unistdio/u8-sprintf.c: Likewise.
40743         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
40744         * lib/unistdio/u8-u8-asprintf.c: Likewise.
40745         * lib/unistdio/u8-u8-snprintf.c: Likewise.
40746         * lib/unistdio/u8-u8-sprintf.c: Likewise.
40747         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
40748         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
40749         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
40750         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
40751         * lib/unistdio/u8-vasnprintf.c: Likewise.
40752         * lib/unistdio/u8-vasprintf.c: Likewise.
40753         * lib/unistdio/u8-vsnprintf.c: Likewise.
40754         * lib/unistdio/u8-vsprintf.c: Likewise.
40755         * lib/unistdio/ulc-asnprintf.c: Likewise.
40756         * lib/unistdio/ulc-asprintf.c: Likewise.
40757         * lib/unistdio/ulc-printf-parse.c: Likewise.
40758         * lib/unistdio/ulc-snprintf.c: Likewise.
40759         * lib/unistdio/ulc-sprintf.c: Likewise.
40760         * lib/unistdio/ulc-vasnprintf.c: Likewise.
40761         * lib/unistdio/ulc-vasprintf.c: Likewise.
40762         * lib/unistdio/ulc-vsnprintf.c: Likewise.
40763         * lib/unistdio/ulc-vsprintf.c: Likewise.
40764         * lib/unistr.h: Likewise.
40765         * lib/unistr/u-cpy-alloc.h: Likewise.
40766         * lib/unistr/u-cpy.h: Likewise.
40767         * lib/unistr/u-endswith.h: Likewise.
40768         * lib/unistr/u-move.h: Likewise.
40769         * lib/unistr/u-set.h: Likewise.
40770         * lib/unistr/u-startswith.h: Likewise.
40771         * lib/unistr/u-stpcpy.h: Likewise.
40772         * lib/unistr/u-stpncpy.h: Likewise.
40773         * lib/unistr/u-strcat.h: Likewise.
40774         * lib/unistr/u-strcpy.h: Likewise.
40775         * lib/unistr/u-strcspn.h: Likewise.
40776         * lib/unistr/u-strdup.h: Likewise.
40777         * lib/unistr/u-strlen.h: Likewise.
40778         * lib/unistr/u-strncat.h: Likewise.
40779         * lib/unistr/u-strncpy.h: Likewise.
40780         * lib/unistr/u-strnlen.h: Likewise.
40781         * lib/unistr/u-strpbrk.h: Likewise.
40782         * lib/unistr/u-strspn.h: Likewise.
40783         * lib/unistr/u-strstr.h: Likewise.
40784         * lib/unistr/u-strtok.h: Likewise.
40785         * lib/unistr/u16-check.c: Likewise.
40786         * lib/unistr/u16-chr.c: Likewise.
40787         * lib/unistr/u16-cmp.c: Likewise.
40788         * lib/unistr/u16-cpy-alloc.c: Likewise.
40789         * lib/unistr/u16-cpy.c: Likewise.
40790         * lib/unistr/u16-endswith.c: Likewise.
40791         * lib/unistr/u16-mblen.c: Likewise.
40792         * lib/unistr/u16-mbsnlen.c: Likewise.
40793         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40794         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40795         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40796         * lib/unistr/u16-mbtouc.c: Likewise.
40797         * lib/unistr/u16-mbtoucr.c: Likewise.
40798         * lib/unistr/u16-move.c: Likewise.
40799         * lib/unistr/u16-next.c: Likewise.
40800         * lib/unistr/u16-prev.c: Likewise.
40801         * lib/unistr/u16-set.c: Likewise.
40802         * lib/unistr/u16-startswith.c: Likewise.
40803         * lib/unistr/u16-stpcpy.c: Likewise.
40804         * lib/unistr/u16-stpncpy.c: Likewise.
40805         * lib/unistr/u16-strcat.c: Likewise.
40806         * lib/unistr/u16-strchr.c: Likewise.
40807         * lib/unistr/u16-strcmp.c: Likewise.
40808         * lib/unistr/u16-strcpy.c: Likewise.
40809         * lib/unistr/u16-strcspn.c: Likewise.
40810         * lib/unistr/u16-strdup.c: Likewise.
40811         * lib/unistr/u16-strlen.c: Likewise.
40812         * lib/unistr/u16-strmblen.c: Likewise.
40813         * lib/unistr/u16-strmbtouc.c: Likewise.
40814         * lib/unistr/u16-strncat.c: Likewise.
40815         * lib/unistr/u16-strncmp.c: Likewise.
40816         * lib/unistr/u16-strncpy.c: Likewise.
40817         * lib/unistr/u16-strnlen.c: Likewise.
40818         * lib/unistr/u16-strpbrk.c: Likewise.
40819         * lib/unistr/u16-strrchr.c: Likewise.
40820         * lib/unistr/u16-strspn.c: Likewise.
40821         * lib/unistr/u16-strstr.c: Likewise.
40822         * lib/unistr/u16-strtok.c: Likewise.
40823         * lib/unistr/u16-to-u32.c: Likewise.
40824         * lib/unistr/u16-to-u8.c: Likewise.
40825         * lib/unistr/u16-uctomb-aux.c: Likewise.
40826         * lib/unistr/u16-uctomb.c: Likewise.
40827         * lib/unistr/u32-check.c: Likewise.
40828         * lib/unistr/u32-chr.c: Likewise.
40829         * lib/unistr/u32-cmp.c: Likewise.
40830         * lib/unistr/u32-cpy-alloc.c: Likewise.
40831         * lib/unistr/u32-cpy.c: Likewise.
40832         * lib/unistr/u32-endswith.c: Likewise.
40833         * lib/unistr/u32-mblen.c: Likewise.
40834         * lib/unistr/u32-mbsnlen.c: Likewise.
40835         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40836         * lib/unistr/u32-mbtouc.c: Likewise.
40837         * lib/unistr/u32-mbtoucr.c: Likewise.
40838         * lib/unistr/u32-move.c: Likewise.
40839         * lib/unistr/u32-next.c: Likewise.
40840         * lib/unistr/u32-prev.c: Likewise.
40841         * lib/unistr/u32-set.c: Likewise.
40842         * lib/unistr/u32-startswith.c: Likewise.
40843         * lib/unistr/u32-stpcpy.c: Likewise.
40844         * lib/unistr/u32-stpncpy.c: Likewise.
40845         * lib/unistr/u32-strcat.c: Likewise.
40846         * lib/unistr/u32-strchr.c: Likewise.
40847         * lib/unistr/u32-strcmp.c: Likewise.
40848         * lib/unistr/u32-strcpy.c: Likewise.
40849         * lib/unistr/u32-strcspn.c: Likewise.
40850         * lib/unistr/u32-strdup.c: Likewise.
40851         * lib/unistr/u32-strlen.c: Likewise.
40852         * lib/unistr/u32-strmblen.c: Likewise.
40853         * lib/unistr/u32-strmbtouc.c: Likewise.
40854         * lib/unistr/u32-strncat.c: Likewise.
40855         * lib/unistr/u32-strncmp.c: Likewise.
40856         * lib/unistr/u32-strncpy.c: Likewise.
40857         * lib/unistr/u32-strnlen.c: Likewise.
40858         * lib/unistr/u32-strpbrk.c: Likewise.
40859         * lib/unistr/u32-strrchr.c: Likewise.
40860         * lib/unistr/u32-strspn.c: Likewise.
40861         * lib/unistr/u32-strstr.c: Likewise.
40862         * lib/unistr/u32-strtok.c: Likewise.
40863         * lib/unistr/u32-to-u16.c: Likewise.
40864         * lib/unistr/u32-to-u8.c: Likewise.
40865         * lib/unistr/u32-uctomb.c: Likewise.
40866         * lib/unistr/u8-check.c: Likewise.
40867         * lib/unistr/u8-chr.c: Likewise.
40868         * lib/unistr/u8-cmp.c: Likewise.
40869         * lib/unistr/u8-cpy-alloc.c: Likewise.
40870         * lib/unistr/u8-cpy.c: Likewise.
40871         * lib/unistr/u8-endswith.c: Likewise.
40872         * lib/unistr/u8-mblen.c: Likewise.
40873         * lib/unistr/u8-mbsnlen.c: Likewise.
40874         * lib/unistr/u8-mbtouc-aux.c: Likewise.
40875         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40876         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40877         * lib/unistr/u8-mbtouc.c: Likewise.
40878         * lib/unistr/u8-mbtoucr.c: Likewise.
40879         * lib/unistr/u8-move.c: Likewise.
40880         * lib/unistr/u8-next.c: Likewise.
40881         * lib/unistr/u8-prev.c: Likewise.
40882         * lib/unistr/u8-set.c: Likewise.
40883         * lib/unistr/u8-startswith.c: Likewise.
40884         * lib/unistr/u8-stpcpy.c: Likewise.
40885         * lib/unistr/u8-stpncpy.c: Likewise.
40886         * lib/unistr/u8-strcat.c: Likewise.
40887         * lib/unistr/u8-strchr.c: Likewise.
40888         * lib/unistr/u8-strcmp.c: Likewise.
40889         * lib/unistr/u8-strcpy.c: Likewise.
40890         * lib/unistr/u8-strcspn.c: Likewise.
40891         * lib/unistr/u8-strdup.c: Likewise.
40892         * lib/unistr/u8-strlen.c: Likewise.
40893         * lib/unistr/u8-strmblen.c: Likewise.
40894         * lib/unistr/u8-strmbtouc.c: Likewise.
40895         * lib/unistr/u8-strncat.c: Likewise.
40896         * lib/unistr/u8-strncmp.c: Likewise.
40897         * lib/unistr/u8-strncpy.c: Likewise.
40898         * lib/unistr/u8-strnlen.c: Likewise.
40899         * lib/unistr/u8-strpbrk.c: Likewise.
40900         * lib/unistr/u8-strrchr.c: Likewise.
40901         * lib/unistr/u8-strspn.c: Likewise.
40902         * lib/unistr/u8-strstr.c: Likewise.
40903         * lib/unistr/u8-strtok.c: Likewise.
40904         * lib/unistr/u8-to-u16.c: Likewise.
40905         * lib/unistr/u8-to-u32.c: Likewise.
40906         * lib/unistr/u8-uctomb-aux.c: Likewise.
40907         * lib/unistr/u8-uctomb.c: Likewise.
40908         * lib/unitypes.h: Likewise.
40909         * lib/uniwidth.h: Likewise.
40910         * lib/uniwidth/cjk.h: Likewise.
40911         * lib/uniwidth/u16-strwidth.c: Likewise.
40912         * lib/uniwidth/u16-width.c: Likewise.
40913         * lib/uniwidth/u32-strwidth.c: Likewise.
40914         * lib/uniwidth/u32-width.c: Likewise.
40915         * lib/uniwidth/u8-strwidth.c: Likewise.
40916         * lib/uniwidth/u8-width.c: Likewise.
40917         * lib/uniwidth/width.c: Likewise.
40918
40919 2007-10-07  Bruno Haible  <bruno@clisp.org>
40920
40921         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
40922         The file is still under LGPL (see modules/inttypes).
40923
40924 2007-10-06  Bruno Haible  <bruno@clisp.org>
40925
40926         * modules/trunc (Dependencies): Add 'extensions'.
40927         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
40928         Reported by Ben Pfaff <blp@gnu.org>.
40929
40930 2007-10-06  Bruno Haible  <bruno@clisp.org>
40931
40932         * modules/freopen-tests: New file.
40933         * tests/test-freopen.c: New file.
40934
40935         * modules/fopen-tests: New file.
40936         * tests/test-fopen.c: New file.
40937
40938         * modules/fopen: New file.
40939         * lib/fopen.c: New file.
40940         * m4/fopen.m4: New file.
40941         * modules/freopen: New file.
40942         * lib/freopen.c: New file.
40943         * m4/freopen.m4: New file.
40944         * lib/stdio.in.h (fopen, freopen): New declarations.
40945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
40946         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40947         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
40948         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40949         * doc/functions/fopen.texi: Mention the 'fopen' module.
40950         * doc/functions/freopen.texi: Mention the 'freopen' module.
40951
40952 2007-10-06  Bruno Haible  <bruno@clisp.org>
40953
40954         * modules/open-tests: New file.
40955         * tests/test-open.c: New file.
40956
40957         * modules/open: New file.
40958         * lib/open.c: New file.
40959         * m4/open.m4: New file.
40960         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
40961         lib/open.c does.
40962         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
40963         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
40964         macros.
40965         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
40966         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
40967         REPLACE_OPEN.
40968         * doc/functions/open.texi: Mention the 'open' module.
40969
40970 2007-10-04  Bruno Haible  <bruno@clisp.org>
40971
40972         * modules/ceill-tests: New file.
40973         * tests/test-ceill.c: New file.
40974
40975         * modules/ceill: New file.
40976         * lib/ceill.c: Replace entire file.
40977         * m4/ceill.m4: New file.
40978         * lib/math.in.h (ceill): Replace declaration.
40979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
40980         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
40981         * doc/functions/ceill.texi: Mention the 'ceill' module.
40982         * modules/mathl (Files): Remove lib/ceill.c.
40983         (Depends-on): Add ceill.
40984
40985 2007-10-04  Bruno Haible  <bruno@clisp.org>
40986
40987         * modules/ceilf-tests: New file.
40988         * tests/test-ceilf.c: New file.
40989
40990         * modules/ceilf: New file.
40991         * lib/ceil.c: New file.
40992         * lib/ceilf.c: New file.
40993         * m4/ceilf.m4: New file.
40994         * lib/math.in.h (ceilf): New declaration.
40995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
40996         HAVE_DECL_CEILF.
40997         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
40998         HAVE_DECL_CEILF.
40999         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41000
41001 2007-10-04  Bruno Haible  <bruno@clisp.org>
41002
41003         * modules/floorl-tests: New file.
41004         * tests/test-floorl.c: New file.
41005
41006         * modules/floorl: New file.
41007         * lib/floorl.c: Replace entire file.
41008         * m4/floorl.m4: New file.
41009         * lib/math.in.h (floorl): Replace declaration.
41010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41011         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41012         * doc/functions/floorl.texi: Mention the 'floorl' module.
41013         * modules/mathl (Files): Remove lib/floorl.c.
41014         (Depends-on): Add floorl.
41015
41016 2007-10-04  Bruno Haible  <bruno@clisp.org>
41017
41018         * modules/floorf-tests: New file.
41019         * tests/test-floorf.c: New file.
41020
41021         * modules/floorf: New file.
41022         * lib/floor.c: New file.
41023         * lib/floorf.c: New file.
41024         * m4/floorf.m4: New file.
41025         * lib/math.in.h (floorf): New declaration.
41026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41027         HAVE_DECL_FLOORF.
41028         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41029         HAVE_DECL_FLOORF.
41030         * doc/functions/floorf.texi: Mention the 'floorf' module.
41031
41032 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41033             Bruno Haible  <bruno@clisp.org>
41034
41035         Advertise for the Git server instead of the CVS server.
41036         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41037         repository instead of the CVS one.
41038         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41039         about all VCS systems generically.
41040         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41041
41042 2007-10-04  Bruno Haible  <bruno@clisp.org>
41043
41044         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41045         means.
41046         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41047
41048 2007-10-04  Bruno Haible  <bruno@clisp.org>
41049
41050         * modules/truncl-tests: New file.
41051         * tests/test-truncl.c: New file.
41052
41053         * modules/truncl: New file.
41054         * lib/truncl.c: New file.
41055         * m4/truncl.m4: New file.
41056         * lib/math.in.h (truncl): New declaration.
41057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41058         HAVE_DECL_TRUNCL.
41059         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41060         HAVE_DECL_TRUNCL.
41061         * doc/functions/truncl.texi: Mention the 'truncl' module.
41062
41063 2007-10-04  Bruno Haible  <bruno@clisp.org>
41064
41065         * modules/truncf-tests: New file.
41066         * tests/test-truncf.c: New file.
41067
41068         * modules/truncf: New file.
41069         * lib/trunc.c: Make paramerizable through USE_* macros.
41070         * lib/truncf.c: New file.
41071         * m4/truncf.m4: New file.
41072         * lib/math.in.h (truncf): New declaration.
41073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41074         HAVE_DECL_TRUNCF.
41075         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41076         HAVE_DECL_TRUNCF.
41077         * doc/functions/truncf.texi: Mention the 'truncf' module.
41078
41079 2007-10-03  Bruno Haible  <bruno@clisp.org>
41080
41081         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41082         augmentation also for tests modules.
41083         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41084         * modules/atexit-tests (Makefile.am): Likewise.
41085         * modules/binary-io-tests (Makefile.am): Likewise.
41086         * modules/c-strcase-tests (Makefile.am): Likewise.
41087         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41088         * modules/canonicalize-tests (Makefile.am): Likewise.
41089         * modules/closein-tests (Makefile.am): Likewise.
41090         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41091         * modules/freadahead-tests (Makefile.am): Likewise.
41092         * modules/fseek-tests (Makefile.am): Likewise.
41093         * modules/fseeko-tests (Makefile.am): Likewise.
41094         * modules/ftell-tests (Makefile.am): Likewise.
41095         * modules/ftello-tests (Makefile.am): Likewise.
41096         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41097         * modules/isnanl-tests (Makefile.am): Likewise.
41098         * modules/lseek-tests (Makefile.am): Likewise.
41099         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41100         * modules/mbscasestr-tests (Makefile.am): Likewise.
41101         * modules/mbschr-tests (Makefile.am): Likewise.
41102         * modules/mbscspn-tests (Makefile.am): Likewise.
41103         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41104         * modules/mbspbrk-tests (Makefile.am): Likewise.
41105         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41106         * modules/mbsrchr-tests (Makefile.am): Likewise.
41107         * modules/mbsspn-tests (Makefile.am): Likewise.
41108         * modules/mbsstr-tests (Makefile.am): Likewise.
41109         * modules/printf-posix-tests (Makefile.am): Likewise.
41110         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41111         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41112         * modules/tsearch-tests (Makefile.am): Likewise.
41113         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41114         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41115         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41116         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41117         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41118         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41119         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41120         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41121         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41122         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41123         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41124         * modules/xstrtol-tests (Makefile.am): Likewise.
41125         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41126         * modules/yesno-tests (Makefile.am): Likewise.
41127
41128 2007-10-03  Bruno Haible  <bruno@clisp.org>
41129
41130         * modules/trunc-tests: New file.
41131         * tests/test-trunc.c: New file.
41132
41133         * modules/trunc: New file.
41134         * lib/trunc.c: New file.
41135         * m4/trunc.m4: New file.
41136         * lib/math.in.h (trunc): New declaration.
41137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41138         HAVE_DECL_TRUNC.
41139         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41140         HAVE_DECL_TRUNC.
41141         * doc/functions/trunc.texi: Mention the 'trunc' module.
41142
41143 2007-10-03  Bruno Haible  <bruno@clisp.org>
41144
41145         * tests/test-fpending.c: New file, mostly copied
41146         from coreutils/lib/t-fpending.c.
41147         * modules/fpending-tests: New file.
41148
41149 2007-10-03  Bruno Haible  <bruno@clisp.org>
41150
41151         Port the stdio extensions to QNX (untested).
41152         * lib/fseterr.c (fseterr): Add support for QNX.
41153         * lib/fbufmode.c (fbufmode): Likewise.
41154         * lib/freadable.c (freadable): Likewise.
41155         * lib/fwritable.c (fwritable): Likewise.
41156         * lib/freading.c (freading): Likewise.
41157         * lib/fwriting.c (fwriting): Likewise.
41158         * lib/freadahead.c (freadahed): Likewise.
41159         * lib/fpurge.c (fpurge): Likewise.
41160         * lib/fseeko.c (rpl_fseeko): Likewise.
41161
41162 2007-10-03  Bruno Haible  <bruno@clisp.org>
41163             Jim Meyering  <jim@meyering.net>
41164             Eric Blake  <ebb9@byu.net>
41165
41166         * doc/relocatable.texi: Use @command instead of @program.
41167
41168 2007-10-02  Jim Meyering  <jim@meyering.net>
41169
41170         Perform one more "_.h" -> ".in.h" substitution.
41171         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41172         instead of unistd_.h here, too.
41173
41174 2007-10-01  Bruno Haible  <bruno@clisp.org>
41175
41176         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41177         Needed for the alloca-opt module.
41178
41179 2007-09-30  Bruno Haible  <bruno@clisp.org>
41180
41181         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41182         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41183         alloca_.h.
41184         * lib/argz.in.h: Renamed from lib/argz_.h.
41185         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41186         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41187         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41188         byteswap_.h.
41189         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41190         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41191         dirent_.h.
41192         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41193         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41194         fcntl_.h.
41195         * lib/float.in.h: Renamed from lib/float_.h.
41196         * modules/float (Files, Makefile.am): Use float.in.h instead of
41197         float_.h.
41198         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41199         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41200         fnmatch_.h.
41201         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41202         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41203         getopt_.h.
41204         * lib/glob.in.h: Renamed from lib/glob_.h.
41205         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41206         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41207         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41208         iconv_.h.
41209         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41210         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41211         inttypes_.h.
41212         * lib/locale.in.h: Renamed from lib/locale_.h.
41213         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41214         locale_.h.
41215         * lib/math.in.h: Renamed from lib/math_.h.
41216         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41217         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41218         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41219         of netinet_in_.h. Add dependency.
41220         * lib/poll.in.h: Renamed from lib/poll_.h.
41221         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41222         * lib/search.in.h: Renamed from lib/search_.h.
41223         * modules/search (Files, Makefile.am): Use search.in.h instead of
41224         search_.h.
41225         * lib/signal.in.h: Renamed from lib/signal_.h.
41226         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41227         _signal.h.
41228         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41229         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41230         stdbool_.h.
41231         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41232         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41233         stdint_.h.
41234         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41235         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41236         stdio_.h.
41237         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41238         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41239         stdlib_.h.
41240         * lib/string.in.h: Renamed from lib/string_.h.
41241         * modules/string (Files, Makefile.am): Use string.in.h instead of
41242         string_.h.
41243         * doc/gnulib-tool.texi (Initial import): Update.
41244         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41245         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41246         of sys_select_.h. Add dependency.
41247         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41248         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41249         of sys_socket_.h.
41250         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41251         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41252         sys_stat_.h.
41253         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41254         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41255         sys_time_.h.
41256         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41257         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41258         sysexits_.h.
41259         * lib/time.in.h: Renamed from lib/time_.h.
41260         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41261         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41262         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41263         unistd_.h.
41264         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41265         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41266         wchar_.h.
41267         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41268         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41269         wctype_.h.
41270         * build-aux/bootstrap (slurp): Update.
41271         * lib/.cppi-disable: Update.
41272
41273 2007-09-30  Bruno Haible  <bruno@clisp.org>
41274
41275         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41276         Needed on BeOS.
41277
41278 2007-09-30  Bruno Haible  <bruno@clisp.org>
41279
41280         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41281
41282 2007-09-29  Bruno Haible  <bruno@clisp.org>
41283
41284         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41285
41286 2007-09-29  Bruno Haible  <bruno@clisp.org>
41287
41288         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41289         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41290         * build-aux/install-reloc: Compile also areadlink.c.
41291         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41292
41293 2007-09-29  Bruno Haible  <bruno@clisp.org>
41294
41295         * gnulib-tool (func_emit_initmacro_done): Indentation.
41296
41297 2007-09-29  Bruno Haible  <bruno@clisp.org>
41298
41299         * README: Add CVS checkout update instructions.
41300         Info from Bob Proulx <bob@proulx.com>.
41301
41302 2007-09-28  Eric Blake  <ebb9@byu.net>
41303
41304         Provide move-if-change.
41305         * build-aux/move-if-change: New file, based on best practice
41306         rather than any canonical upstream location.
41307
41308 2007-09-28  Jim Meyering  <jim@meyering.net>
41309
41310         Fix canonicalize loop-detection corner case.
41311         Do not attempt to stat the symlink values stored via seen_triple.
41312         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41313         on linux-2.6.18, (but not 2.6.22).
41314         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41315         triple_compare.  The former compares dev,ino,filename, while the latter
41316         would actually stat dirname(filename) when dev and ino were equal.
41317         * lib/hash-triple.c: Install <string.h>.
41318         (STREQ): Define.
41319         (triple_compare_ino_str): New function.
41320         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41321
41322 2007-09-28  Eric Blake  <ebb9@byu.net>
41323
41324         Enforce that AC_REPLACE_FUNCS files exist.
41325         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41326         override check for typos.
41327
41328         Fix test-closein on Solaris 10.
41329         * tests/test-closein.c (main): Don't assume stdin can be inherited
41330         closed on all systems.
41331         * tests/test-closein.sh: Likewise.
41332         Reported by Piotr Tarnowski.
41333
41334 2007-09-28  Jim Meyering  <jim@meyering.net>
41335
41336         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41337
41338 2007-09-27  Jim Meyering  <jim@meyering.net>
41339
41340         canonicalize: Avoid a false-positive cycle failure.
41341         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41342         Sort.  Remove cycle-check.
41343         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41344         not cycle-check.h.
41345         (seen_triple): New function.
41346         (canonicalize_filename_mode): Use it instead of cycle-check.
41347         * tests/test-canonicalize.c: Add a test for this bug.
41348         * tests/test-canonicalize.sh: Set up and run the test.
41349
41350         New module, file-set, from coreutils.
41351         * modules/file-set: Define it.
41352         * lib/file-set.c, lib/file-set.h: Implement.
41353
41354         New module, hash-triple, from coreutils.
41355         * modules/hash-triple: Define it.
41356         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41357
41358 2007-09-25  Eric Blake  <ebb9@byu.net>
41359
41360         Fix strerror on Interix.
41361         * lib/string_.h (strerror): Declare replacement.
41362         * doc/functions/strerror.texi (strerror): Document the Interix
41363         shortcoming.
41364         * modules/string (Makefile.am): Support new hooks.
41365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41366         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41367         gl_FUNC_STRERROR_SEPARATE.
41368         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41369         * lib/strerror.c (rpl_strerror): Provide replacement.
41370         * modules/strerror (Depends-on): Add string.
41371         (configure.ac): Detect use of module.
41372         * tests/test-strerror.c: New file.
41373         * modules/strerror-tests: New test module.
41374         * modules/argp (Depends-on): Add strerror.
41375         * modules/error (Depends-on): Likewise.
41376         Reported by Martin Koeppe.
41377
41378 2007-09-24  Bruno Haible  <bruno@clisp.org>
41379
41380         * README: Update git instructions.
41381
41382 2007-09-24  Eric Blake  <ebb9@byu.net>
41383
41384         Revert fpending breakage from 2007-09-08.
41385         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41386         __fpending.c.
41387
41388 2007-09-24  Jim Meyering  <jim@meyering.net>
41389
41390         filenamecat.c: Add a test.
41391         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41392         showing how the function works when DIR is the empty string.
41393
41394 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41395
41396         * tests/test-canonicalize.sh: Turn on executable bit.
41397
41398 2007-09-19  Eric Blake  <ebb9@byu.net>
41399
41400         * README: Update CVS instructions.
41401
41402 2007-09-18  Bruno Haible  <bruno@clisp.org>
41403
41404         * modules/areadlink: New file.
41405         * lib/areadlink.h (areadlink): New declaration.
41406         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41407
41408 2007-09-17  Jim Meyering  <jim@meyering.net>
41409
41410         * lib/savewd.c (ESTALE) [!defined]: Define.
41411         Reported to be required on Interix by Martin Koeppe.
41412
41413 2007-09-17  Bruno Haible  <bruno@clisp.org>
41414
41415         * gnulib-tool (func_version): Use $version.
41416
41417 2007-09-16  Bruno Haible  <bruno@clisp.org>
41418
41419         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41420         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41421         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41422         Reported by Greg Schafer <gschafer@zip.com.au>.
41423
41424 2007-09-15  Bruno Haible  <bruno@clisp.org>
41425
41426         * gnulib-tool (sed): Try a little harder to make bash understand the
41427         alias.
41428         Reported by Bruce Korb <bruce.korb@gmail.com>.
41429
41430 2007-09-13  Eric Blake  <ebb9@byu.net>
41431
41432         * ChangeLog: Remove conflict markers.
41433
41434 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41435
41436         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41437         Reported by Bruno Haible <bruno@clisp.org>.
41438
41439 2007-09-12  Bruno Haible  <bruno@clisp.org>
41440
41441         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41442         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41443         is not defined.
41444
41445 2007-09-12  Eric Blake  <ebb9@byu.net>
41446
41447         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41448         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41449         Autoconf definition.
41450         * modules/euidaccess (Depends-on): Add extensions, for
41451         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41452         * modules/fnmatch (Depends-on): Likewise.
41453         * modules/getaddrinfo (Depends-on): Likewise.
41454         * modules/getdelim (Depends-on): Likewise.
41455         * modules/getline (Depends-on): Likewise.
41456         * modules/getsubopt (Depends-on): Likewise.
41457         * modules/gettext (Depends-on): Likewise.
41458         * modules/group-member (Depends-on): Likewise.
41459         * modules/mbchar (Depends-on): Likewise.
41460         * modules/memmem (Depends-on): Likewise.
41461         * modules/mempcpy (Depends-on): Likewise.
41462         * modules/memrchr (Depends-on): Likewise.
41463         * modules/pagealign_alloc (Depends-on): Likewise.
41464         * modules/readutmp (Depends-on): Likewise.
41465         * modules/stpcpy (Depends-on): Likewise.
41466         * modules/stpncpy (Depends-on): Likewise.
41467         * modules/strchrnul (Depends-on): Likewise.
41468         * modules/strndup (Depends-on): Likewise.
41469         * modules/strsep (Depends-on): Likewise.
41470         * modules/strverscmp (Depends-on): Likewise.
41471         * modules/vasprintf (Depends-on): Likewise.
41472         * modules/wcwidth (Depends-on): Likewise.
41473         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41474         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41475         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41476         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41477         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41478         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41479         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
41480         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41481         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
41482         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
41483         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41484         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41485         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41486         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41487         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
41488         * m4/readutmp.m4 (gl_READUTMP): Likewise.
41489         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41490         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41491         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41492         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41493         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41494         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41495         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41496         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
41497         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
41498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41499         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
41500         so that lock.m4 can be used in gettext without extensions module.
41501
41502 2007-09-11  Bruno Haible  <bruno@clisp.org>
41503
41504         * m4/isc-posix.m4: Remove file.
41505         Suggested by Eric Blake.
41506
41507 2007-09-11  Eric Blake  <ebb9@byu.net>
41508
41509         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41510
41511 2007-09-10  Bruno Haible  <bruno@clisp.org>
41512
41513         * posix-modules: Fix typo in error message.
41514         Reported by Matt <mkraai@beckman.com>.
41515
41516 2007-09-09  Bruno Haible  <bruno@clisp.org>
41517
41518         * doc/functions/getdelim.texi: Update list of platforms lacking the
41519         function.
41520         * doc/functions/getline.texi: Likewise.
41521
41522 2007-09-09  Jim Meyering  <jim@meyering.net>
41523
41524         * lib/hash.c (hash_initialize): Detect calloc failure.
41525         Reported by Bruno Haible.
41526
41527 2007-09-09  Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41530         malloc or realloc fails.
41531
41532 2007-09-09  Bruno Haible  <bruno@clisp.org>
41533
41534         * modules/getcwd (Depends-on): Add malloc-posix.
41535         * modules/glob (Depends-on): Likewise.
41536         * modules/putenv (Depends-on): Likewise.
41537         * modules/strdup (Depends-on): Likewise.
41538         * modules/getdelim (Depends-on): Add realloc-posix.
41539         * modules/read-file (Depends-on): Likewise.
41540
41541 2007-09-09  Bruno Haible  <bruno@clisp.org>
41542
41543         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41544         (gl_FUNC_MALLOC_POSIX): Require it.
41545         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41546         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41547         * modules/realloc (Files): Add m4/malloc.m4.
41548         * modules/calloc (Files): Likewise.
41549
41550 2007-09-09  Bruno Haible  <bruno@clisp.org>
41551
41552         * modules/malloc-posix: New file.
41553         * modules/malloc (Depends-on): Add malloc-posix.
41554         * lib/malloc.c: Include errno.h.
41555         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
41556         and a POSIX-compatible malloc into a single function. Set ENOMEM
41557         when returning NULL.
41558         * m4/malloc.m4: New file.
41559         * doc/functions/malloc.texi: Mention the malloc-posix module.
41560         * lib/stdlib_.h (malloc): New declaration.
41561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41562         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
41563         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
41564         and HAVE_MALLOC_POSIX.
41565
41566 2007-09-09  Bruno Haible  <bruno@clisp.org>
41567
41568         * modules/realloc-posix: New file.
41569         * modules/realloc (Depends-on): Add realloc-posix.
41570         * lib/realloc.c: Include errno.h.
41571         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
41572         and a POSIX-compatible realloc into a single function. Set ENOMEM
41573         when returning NULL.
41574         * m4/realloc.m4: New file.
41575         * doc/functions/realloc.texi: Mention the realloc-posix module.
41576         * lib/stdlib_.h (realloc): New declaration.
41577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41578         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
41579         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
41580         and HAVE_REALLOC_POSIX.
41581
41582 2007-09-09  Bruno Haible  <bruno@clisp.org>
41583
41584         * modules/calloc-posix: New file.
41585         * modules/calloc (Depends-on): Add calloc-posix.
41586         * lib/calloc.c: Include errno.h.
41587         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
41588         and a POSIX-compatible calloc into a single function. Set ENOMEM
41589         when returning NULL.
41590         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
41591         * doc/functions/calloc.texi: Mention the calloc-posix module.
41592         * lib/stdlib_.h (calloc): New declaration.
41593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41594         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
41595         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
41596         and HAVE_CALLOC_POSIX.
41597
41598 2007-09-09  Bruno Haible  <bruno@clisp.org>
41599
41600         Allow for modules to show an arbitrary notice.
41601         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
41602         * gnulib-tool: New option --extract-notice.
41603         (func_usage): Document it.
41604         (sed_extract_prog): Update.
41605         (func_get_notice): New function.
41606         (func_modules_notice): New function.
41607         (func_import, func_create_testdir): Invoke it.
41608         Suggested by Jim Meyering.
41609
41610 2007-09-09  Bruno Haible  <bruno@clisp.org>
41611
41612         * gnulib-tool: New options --verbose, --quiet.
41613         (func_usage): Document them.
41614         (verbose): New variable.
41615         (func_execute_command): New function.
41616         (func_import): Don't show the module list and the file list if
41617         $verbose < 0.
41618         (func_create_testdir): Likewise. Use func_execute_command.
41619         (func_create_megatestdir): Use func_execute_command.
41620
41621 2007-09-08  Bruno Haible  <bruno@clisp.org>
41622
41623         * gnulib-tool (func_import): Prefer rsync over wget when available,
41624         for fetching the PO files.
41625
41626 2007-09-08  Bruno Haible  <bruno@clisp.org>
41627
41628         * posix-modules: New file. Portions copied from gnulib-tool.
41629         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
41630
41631 2007-09-08  Jim Meyering  <jim@meyering.net>
41632
41633         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
41634         * lib/fpending.h: Rename from __fpending.h.
41635         * lib/fpending.c: Rename from __fpending.c.
41636         Include "fpending.h", not "__fpending.h".
41637         * lib/__fpending.h, lib/__fpending.c: Remove files.
41638         * modules/fpending (Files): Reflect new file names.
41639         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
41640
41641 2007-09-08  Bruno Haible  <bruno@clisp.org>
41642
41643         * m4/inttypes-h.m4: Remove stub file.
41644
41645 2007-09-07  Simon Josefsson  <simon@josefsson.org>
41646
41647         * doc/headers/stdint.texi: Discuss #include_next issue.
41648
41649 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41650
41651         * build-aux/bootstrap: Remove obsolete comment about wget --help.
41652
41653 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41654
41655         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
41656         in variable name.
41657
41658 2007-09-03  Jim Meyering  <jim@meyering.net>
41659
41660         New module: git-version-gen.
41661         * modules/git-version-gen: New file.
41662
41663         Import changes from coreutils for bootstrap script.
41664
41665         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
41666
41667         bootstrap: uses rsync to download the .po files
41668         * build-aux/bootstrap (po_download_command_format): New global.
41669         (download_po_files): Use rsync.
41670         (update_po_files): Don't remove .po files after download,
41671         so future rsync runs can take advantage of the copies.
41672
41673         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
41674
41675         Solve the unnecessary-.po-file-regeneration problem once and for all.
41676         * build-aux/bootstrap (download_po_files): New function, renamed from
41677         get_translations.  Now, downloads, but doesn't update LINGUAS.
41678         (update_po_files): New function.
41679
41680         bootstrap: Ignore more.
41681         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
41682         uniwidth to e.g., lib/.gitignore.
41683         (slurp): Handle the sys_stat_.h -> sys mapping, too.
41684
41685         * build-aux/bootstrap: New setting: vc_ignore.
41686         (insert_sorted_if_absent): Create $file if absent.
41687         Adapt to new, possibly empty, list: $vc_ignore.
41688
41689         bootstrap: generate more ignorable names
41690         * build-aux/bootstrap (slurp): When generating ignorable names,
41691         also map .sin to .sed, .gperf to .c, and .y to .c.
41692
41693 2007-09-03  Jim Meyering  <jim@meyering.net>
41694
41695         * build-aux/git-version-gen: New file, from coreutils.  For details, see
41696         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
41697
41698 2007-09-02  Bruno Haible  <bruno@clisp.org>
41699
41700         Fix mis-recognition of 'mcs' on QNX 6.
41701         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
41702         output contains the string "Mono".
41703         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
41704         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
41705
41706 2007-09-01  Bruno Haible  <bruno@clisp.org>
41707
41708         Fix collision between uniwidth/* and linebreak modules.
41709         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
41710         u32_width): Remove declarations.
41711         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
41712         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
41713         streq3, streq2, streq1, streq0): Remove functions.
41714         (STREQ): Remove macro.
41715         (is_cjk_encoding): Remove function.
41716         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
41717         (uc_width, u8_width, u16_width, u32_width): Remove functions.
41718         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
41719         * NEWS: Document the change.
41720
41721 2007-09-01  Bruno Haible  <bruno@clisp.org>
41722
41723         * lib/streq.h: Add double-inclusion guard.
41724
41725 2007-09-01  Karl Berry  <karl@gnu.org>
41726
41727         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
41728
41729 2007-08-28  Jim Meyering  <jim@meyering.net>
41730
41731         Rename mreadlink_with_size to areadlink_with_size.
41732         * NEWS: Document the change.
41733         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
41734         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
41735         * lib/mreadlink.h: Rename this to...
41736         * lib/areadlink.h: ...this.
41737         * modules/mreadlink-with-size: Rename this to...
41738         * modules/areadlink-with-size: ...this.
41739         * lib/canonicalize.c: Reflect the renaming.
41740         * modules/canonicalize: Likewise.
41741
41742 2007-08-26  Bruno Haible  <bruno@clisp.org>
41743
41744         * gnulib-tool (func_import): When deciding which files to remove,
41745         consider also dangling symbolic links.
41746         Reported by Eric Blake.
41747
41748 2007-08-26  Bruno Haible  <bruno@clisp.org>
41749
41750         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
41751
41752 2007-08-23  Simon Josefsson  <simon@josefsson.org>
41753
41754         * lib/readline.c: Don't include getline.h, the prototype is now
41755         found in stdio.h.
41756
41757 2007-08-23  Jim Meyering  <jim@meyering.net>
41758
41759         Getdelim touchup.
41760         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
41761         around the funlockfile call, since funlockfile never sets errno.
41762         Don't set errno upon failed realloc.
41763
41764 2007-08-22  Eric Blake  <ebb9@byu.net>
41765
41766         Getline touchups.
41767         * lib/getdelim.c (getdelim): Revert regression that required *n to
41768         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
41769         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
41770         getdelim, rather than whether implementation is missing.
41771         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
41772         * lib/stdio_.h (getline): Also declare if replacement is
41773         required.
41774         * doc/functions/getdelim.texi: New file.
41775         * doc/functions/getline.texi: Likewise.
41776         * doc/gnulib.texi (Function Substitutes): Add new files.
41777         Reported by Bruno Haible.
41778
41779 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
41780
41781         * users.txt: Add Guile.
41782
41783 2007-08-22  Eric Blake  <ebb9@byu.net>
41784
41785         * tests/test-getdelim.c (main): Use remove, not unlink.
41786         * tests/test-getline.c (main): Likewise.
41787
41788         Move getline and getdelim into stdio.h, per POSIX 200x.
41789         * modules/getline (Files): Remove getline.h.
41790         (Depends-on): Add stdio.
41791         (configure.ac): Add module indicator.
41792         * modules/getdelim (Files): Remove getdelim.h.
41793         (Depends-on): Add stdio.
41794         (configure.ac): Add module indicator.
41795         * modules/stdio (Makefile.am): Work with new indicators.
41796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41797         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
41798         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41799         * lib/getdelim.h: Delete.
41800         * lib/getline.h: Delete.
41801         * lib/stdio_.h (getdelim, getline): Declare.
41802         * modules/getdelim-tests: New module.
41803         * modules/getline-tests: Likewise.
41804         * tests/test-getdelim.c: New file.
41805         * tests/test-getline.c: Likewise.
41806         * NEWS: Document the change.
41807         * lib/getline.c: Update choice of header.
41808         * lib/csharpcomp.c: Likewise.
41809         * lib/getpass.c: Likewise.
41810         * lib/javacomp.c: Likewise.
41811         * lib/javaversion.c: Likewise.
41812         * lib/yesno.c: Likewise.
41813         * lib/getdelim.c: Likewise.
41814         (getdelim): Set errno on failure, and avoid memory leak.
41815
41816 2007-08-19  Bruno Haible  <bruno@clisp.org>
41817
41818         * modules/closein (Depends-on): Add freadahead.
41819         * lib/closein.c: Include freadahead.h.
41820         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
41821         is zero.
41822
41823 2007-08-19  Bruno Haible  <bruno@clisp.org>
41824
41825         * modules/freadahead-tests: New file.
41826         * tests/test-freadahead.sh: New file.
41827         * tests/test-freadahead.c: New file.
41828
41829         * modules/freadahead: New file.
41830         * lib/freadahead.h: New file.
41831         * lib/freadahead.c: New file.
41832         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
41833         fbufmode, fpurge, freadable, fwritable.
41834
41835 2007-08-19  Eric Blake  <ebb9@byu.net>
41836
41837         Test yesno in combination with closein.
41838         * lib/yesno.c (yesno): Document use of stdin.
41839         * modules/yesno-tests (Files): New module.
41840         * tests/test-yesno.c (main): New file.
41841         * tests/test-yesno.sh: Likewise.
41842
41843 2007-08-19  Bruno Haible  <bruno@clisp.org>
41844
41845         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
41846         * lib/fseeko.c (rpl_fseeko): Likewise.
41847         * lib/fseterr.c (fseterr): Likewise.
41848
41849 2007-08-19  Bruno Haible  <bruno@clisp.org>
41850
41851         * tests/test-lseek.c (main): Disable a test for BeOS.
41852         * doc/functions/lseek.texi: Document the BeOS bug.
41853
41854 2007-08-19  Bruno Haible  <bruno@clisp.org>
41855             Eric Blake  <ebb9@byu.net>
41856
41857         * lib/lseek.c: Include <sys/stat.h>.
41858         (rpl_lseek): Add workaround code also for Unix platforms.
41859         Needed for BeOS.
41860         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
41861         * doc/functions/lseek.texi: Document BeOS definiency.
41862
41863 2007-08-18  Bruno Haible  <bruno@clisp.org>
41864
41865         * modules/fstrcmp-tests: New file.
41866         * tests/test-fstrcmp.c: New file.
41867
41868 2007-08-18  Bruno Haible  <bruno@clisp.org>
41869
41870         * modules/fstrcmp: New file, from GNU gettext with modifications.
41871         * lib/fstrcmp.h: New file, from GNU gettext.
41872         * lib/fstrcmp.c: New file, from GNU gettext.
41873         * MODULES.html.sh (String handling): Add fstrcmp.
41874
41875 2007-08-18  Bruno Haible  <bruno@clisp.org>
41876
41877         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
41878         'bool'.
41879         (diag, compareseq): Remove const from the ctxt argument.
41880         (USE_HEURISTIC): Undefine at the end.
41881
41882 2007-08-18  Jim Meyering  <jim@meyering.net>
41883
41884         New file: lib/idcache.h
41885         * NEWS: Mention the addition.
41886         * modules/idcache (Files): Add lib/idcache.h
41887         * lib/idcache.c: Include "idcache.h".
41888         Don't include <sys/types.h>.
41889         Add a FIXME comment.
41890         Move file-scoped "static" declarations to the top.
41891         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
41892
41893 2007-08-17  Bruno Haible  <bruno@clisp.org>
41894         and Paul Eggert  <eggert@cs.ucla.edu>
41895
41896         * MODULES.html.sh: Add diffseq.
41897         * modules/diffseq: New file.
41898         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
41899         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
41900
41901 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41902
41903         Import changes from coreutils for bootstrap script.
41904
41905         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
41906
41907         * build-aux/bootstrap (slurp): Work even in environments where
41908         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
41909         current code does not slurp files whose names start with ".", and
41910         this looks like it might be a troublesome area.
41911
41912         2007-07-11  Jim Meyering  <jim@meyering.net>
41913
41914         If there's a GPL vN copyright comment, require that N == 3.
41915
41916         2007-07-08  Jim Meyering  <jim@meyering.net>
41917
41918         Run the coreutils-specific code only if tests/Makefile.am.in exists.
41919         * build-aux/bootstrap (mam_template): Move definition out of loop.
41920
41921         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
41922
41923         * build-aux/bootstrap (symlink_to_dir): Rename function from
41924         symlink_to_gnulib.  Add a directory parameter.  Update all
41925         callers.
41926         (cp_mark_as_generated): Also check for -- and link to -- files in
41927         gl/.
41928
41929         2007-07-08  Jim Meyering  <jim@meyering.net>
41930
41931         Adapt to deeper hierarchy in gnulib.
41932         * build-aux/bootstrap (symlink_to_dir): If the destination
41933         directory doesn't exist, create it. This is required at least for
41934         "lib/uniwidth/cjk.h".
41935
41936         2007-05-15  Jim Meyering  <jim@meyering.net>
41937
41938         * build-aux/bootstrap: Now that generated Makefile.am files
41939         are no longer under version control, they must be created at
41940         bootstrap time.
41941
41942 2007-08-14  Ben Pfaff  <blp@gnu.org>
41943
41944         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
41945
41946 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41947
41948         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
41949         given the changes below.
41950         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
41951         even on hosts that have padding bits beyond the supported 64.
41952
41953 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41954
41955         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
41956         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
41957         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
41958         depends on it.
41959         (xstrtol_error): Remove.
41960         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
41961         but with a different signature.
41962         (ATTRIBUTE_NORETURN, __attribute__): New macros.
41963         * lib/xstrtol-error.c: Include exitfail.h.
41964         (xstrtol_fatal): New function, with a different signature from the
41965         old xstrtol_error, so that the caller need not worry about passing
41966         in an exit status, or about storage management of the option argument.
41967         (xstrtol_error): Now a static function.  Redo signature to
41968         implement xstrtol_fatal.  Output the correct number of hyphens in
41969         front of the option so that the caller need not worry about
41970         storage management.
41971         (N_): New macro.
41972         (_): Remove; not used now.
41973         * modules/xstrtol: Depend on getopt.
41974         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
41975         of old STRTOL_FATAL_ERROR macro.
41976         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
41977         of test program.
41978         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
41979         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
41980
41981 2007-08-08  Eric Blake  <ebb9@byu.net>
41982
41983         * lib/xstrtol-error.c: Add missing include.
41984
41985         Move xstrtol messages into gnulib domain, when --pobase is used.
41986         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
41987         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
41988         * modules/xstrtol (Files): Distribute new file.
41989         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
41990         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
41991         * tests/test-xstrtol.c: ...into new file.
41992         * tests/test-xstrtoul.c: Also test xstrtoul.
41993         * tests/test-xstrtoimax.c: Also test xstrtoimax.
41994         * tests/test-xstrtoumax.c: Also test xstrtoumax.
41995         * tests/test-xstrtol.sh: Drive the tests.
41996         * tests/test-xstrtoimax.sh: Likewise.
41997         * tests/test-xstrtoumax.sh: Likewise.
41998         * modules/xstrtol-tests: New module.
41999         * modules/xstrtoimax-tests: Likewise.
42000         * modules/xstrtoumax-tests: Likewise.
42001
42002 2007-08-08  Jim Meyering  <jim@meyering.net>
42003
42004         New function: mfile_name_concat.
42005         * lib/filenamecat.c (mfile_name_concat): New function, just like
42006         file_name_concat, but return NULL upon failure rather than exiting
42007         with a diagnostic.
42008         * lib/filenamecat.h: Declare it.
42009
42010 2007-08-07  Bruno Haible  <bruno@clisp.org>
42011
42012         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42013         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42014         warning from gcc.
42015         Reported by Eric Blake.
42016
42017 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42018
42019         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42020         * modules/crypto/arcfour (License): Likewise.
42021         * modules/crypto/des-tests (License): Likewise.
42022         * modules/crypto/gc-arctwo-tests (License): Likewise.
42023         * modules/crypto/gc-des-tests (License): Likewise.
42024         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42025         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42026         * modules/crypto/gc-md2-tests (License): Likewise.
42027         * modules/crypto/gc-md4-tests (License): Likewise.
42028         * modules/crypto/gc-md5-tests (License): Likewise.
42029         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42030         * modules/crypto/gc-rijndael-tests (License): Likewise.
42031         * modules/crypto/gc-sha1-tests (License): Likewise.
42032         * modules/crypto/gc-tests (License): Likewise.
42033         * modules/crypto/hmac-md5 (License): Likewise.
42034         * modules/crypto/hmac-sha1 (License): Likewise.
42035         * modules/crypto/md2-tests (License): Likewise.
42036         * modules/crypto/md4-tests (License): Likewise.
42037         * modules/crypto/md5 (License): Likewise.
42038         * modules/crypto/rijndael (License): Likewise.
42039         * modules/crypto/sha1 (License): Likewise.
42040         * modules/memxor (License): Likewise.
42041
42042 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42043         and Bruno Haible  <bruno@clisp.org>
42044
42045         * NEWS: Describe interface changes to human, xstrtol.
42046         * lib/human.h: Include <xstrtol.h>.
42047         (human_options): Return enum strtol_error, not int.  Remove
42048         bool arg; take int * instead.
42049         * lib/human.c: Don't include "gettext.h".
42050         (_): Remove; no longer used.
42051         Don't include <xstrtol.h>, since human.h does it.
42052         (human_options): Adjust to abovementioned interface changes.
42053         Do not report error to stderr; that's now the caller's
42054         responsibility.
42055         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42056         interface change.
42057         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42058         Str, Argument_type_string.  All uses changed.  Put " argument"
42059         in diagnostics to make them clearer.  Change wording of suffix
42060         message for clarity.
42061         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42062         Argument_type_string.
42063         (STRTOL_FATAL_WARN): Remove; no longer used.
42064         * modules/human (Depends-on): Remove gettext-h.
42065
42066 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42067
42068         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42069
42070 2007-07-31  Bruno Haible  <bruno@clisp.org>
42071
42072         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42073         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42074         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42075
42076 2007-07-31  Bruno Haible  <bruno@clisp.org>
42077
42078         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42079         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42080
42081 2007-07-30  Bruno Haible  <bruno@clisp.org>
42082
42083         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42084         * modules/c-ctype (License): Likewise.
42085         * modules/c-strcase (License): Likewise.
42086         * modules/check-version (License): Likewise.
42087         * modules/iconv (License): Likewise.
42088         * modules/iconv_open (License): Likewise.
42089         * modules/read-file (License): Likewise.
42090         * modules/striconv (License): Likewise.
42091         * modules/strverscmp (License): Likewise.
42092         * modules/vasprintf (License): Likewise.
42093         * modules/crypto/des (License): Likewise.
42094         * modules/crypto/gc (License): Likewise.
42095         * modules/crypto/gc-arcfour (License): Likewise.
42096         * modules/crypto/gc-arctwo (License): Likewise.
42097         * modules/crypto/gc-des (License): Likewise.
42098         * modules/crypto/gc-hmac-md5 (License): Likewise.
42099         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42100         * modules/crypto/gc-md2 (License): Likewise.
42101         * modules/crypto/gc-md4 (License): Likewise.
42102         * modules/crypto/gc-md5 (License): Likewise.
42103         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42104         * modules/crypto/gc-random (License): Likewise.
42105         * modules/crypto/gc-rijndael (License): Likewise.
42106         * modules/crypto/gc-sha1 (License): Likewise.
42107         * modules/crypto/md2 (License): Likewise.
42108         * modules/crypto/md4 (License): Likewise.
42109
42110 2007-07-30  Jim Meyering  <jim@meyering.net>
42111
42112         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42113         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42114         it has valid stat data.  This bug would cause du not to count the
42115         sizes of inaccessible directories.
42116         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42117         in <http://bugzilla.redhat.com/250077>.
42118
42119 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42120             Bruno Haible  <bruno@clisp.org>
42121
42122         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42123         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42124         #include_next, gives a diagnostic about it, but reports no error in
42125         the exit code.
42126         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42127
42128 2007-07-24  Ben Pfaff  <blp@gnu.org>
42129
42130         Improve name: "count-one-bits" is better than "popcount".
42131         * MODULES.html.sh: Update name.
42132         * lib/popcount.h: Renamed lib/count-one-bits.h.
42133         (popcount): Renamed count_one_bits.
42134         (popcountl): Renamed count_one_bits_l.
42135         (popcountll): Renamed count_one_bits_ll.
42136         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42137         * modules/popcount: Renamed module/count-one-bits.
42138         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42139         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42140
42141 2007-07-23  Ben Pfaff  <blp@gnu.org>
42142
42143         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42144         better code generation, and add U to large constants to avoid
42145         warnings, in non-GCC case.
42146         Suggested by Bruno Haible.
42147
42148 2007-07-23  Ben Pfaff  <blp@gnu.org>
42149
42150         * lib/popcount.h: Use verify_true instead of if...abort.
42151         * modules/popcount: Depend on verify module.
42152         Suggested by Jim Meyering.
42153
42154 2007-07-23  Bruno Haible  <bruno@clisp.org>
42155
42156         * gnulib-tool (func_import): Create a .cvsignore file also when the
42157         directory is not yet in CVS but the toplevel directory is. When
42158         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42159         Reported by Karl Berry.
42160
42161 2007-07-22  Ben Pfaff  <blp@gnu.org>
42162
42163         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42164         case.
42165         Suggested by Eric Blake.
42166
42167 2007-07-22  Ben Pfaff  <blp@gnu.org>
42168
42169         New module: popcount.
42170         * MODULES.html.sh: Add popcount.
42171         * modules/popcount: New file.
42172         * modules/popcount-tests: New file.
42173         * tests/test-popcount.c: New file.
42174         * lib/popcount.h: New file.
42175         * m4/popcount.m4: New file.
42176
42177 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42178
42179         * build-aux/announce-gen: Update to GPLv3.
42180
42181         * build-aux/config.guess: Update from config.
42182
42183 2007-07-21  Bruno Haible  <bruno@clisp.org>
42184
42185         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42186         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42187
42188 2007-07-20  Jim Meyering  <jim@meyering.net>
42189
42190         * check-module: Diagnose a self-dependency.
42191
42192 2007-07-19  Bruno Haible  <bruno@clisp.org>
42193
42194         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42195         empty.
42196         Reported by Eric Blake.
42197
42198 2007-07-18  Bruno Haible  <bruno@clisp.org>
42199
42200         * gnulib-tool: New options --po-base, --po-domain.
42201         (func_usage): Document them.
42202         (pobase, po_domain): New variables.
42203         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42204         DEFAULT_TEXT_DOMAIN.
42205         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42206         (func_import): Consider pobase and po_domain. Create a po/ directory.
42207         (func_create_testdir): Set pobase and po_domain to empty.
42208         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42209         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42210
42211 2007-07-18  Bruno Haible  <bruno@clisp.org>
42212
42213         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42214         EXTRA_DIST augmentation for files in build-aux/.
42215
42216 2007-07-16  Bruno Haible  <bruno@clisp.org>
42217
42218         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42219         * modules/getdelim (License): Likewise.
42220
42221 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42222
42223         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42224         * modules/d-type (License): Likewise.
42225         * modules/extensions (License): Likewise.
42226         * modules/fnmatch (License): Likewise.
42227         * modules/fseeko (License): Likewise.
42228         * modules/getaddrinfo (License): Likewise.
42229         * modules/getline (License): Likewise.
42230         * modules/getlogin_r (License): Likewise.
42231         * modules/getpass (License): Likewise.
42232         * modules/gettimeofday (License): Likewise.
42233         * modules/glob (License): Likewise.
42234         * modules/inet_ntop (License): Likewise.
42235         * modules/malloc (License): Likewise.
42236         * modules/malloca (License): Likewise.
42237         * modules/memmem (License): Likewise.
42238         * modules/mempcpy (License): Likewise.
42239         * modules/memset (License): Likewise.
42240         * modules/minmax (License): Likewise.
42241         * modules/mktime (License): Likewise.
42242         * modules/netinet_in (License): Likewise.
42243         * modules/pathmax (License): Likewise.
42244         * modules/poll (License): Likewise.
42245         * modules/regex (License): Likewise.
42246         * modules/snprintf (License): Likewise.
42247         * modules/stdbool (License): Likewise.
42248         * modules/stdint (License): Likewise.
42249         * modules/stdio (License): Likewise.
42250         * modules/strcase (License): Likewise.
42251         * modules/strcasestr (License): Likewise.
42252         * modules/strdup (License): Likewise.
42253         * modules/string (License): Likewise.
42254         * modules/strndup (License): Likewise.
42255         * modules/strnlen (License): Likewise.
42256         * modules/strpbrk (License): Likewise.
42257         * modules/strptime (License): Likewise.
42258         * modules/strsep (License): Likewise.
42259         * modules/sys_select (License): Likewise.
42260         * modules/sys_socket (License): Likewise.
42261         * modules/sys_stat (License): Likewise.
42262         * modules/sys_time (License): Likewise.
42263         * modules/time (License): Likewise.
42264         * modules/time_r (License): Likewise.
42265         * modules/timegm (License): Likewise.
42266         * modules/unistd (License): Likewise.
42267         * modules/vsnprintf (License): Likewise.
42268         * modules/wctype (License): Likewise.
42269
42270 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42271
42272         * modules/argz (License): LGPLv2+.
42273
42274 2007-07-15  Karl Berry  <karl@gnu.org>
42275
42276         * doc/gnulib.texi: revise node structure per new fdl.texi.
42277
42278 2007-07-14  Bruno Haible  <bruno@clisp.org>
42279
42280         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42281         the output file.
42282         * lib/uniname/uninames.h: Regenerated.
42283
42284 2007-07-14  Karl Berry  <karl@gnu.org>
42285
42286         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42287         omitting sectioning and index commands.
42288
42289 2007-07-13  Bruno Haible  <bruno@clisp.org>
42290
42291         New gnulib-tool option --more-symlinks.
42292         * gnulib-tool (func_usage): Document --more-symlinks.
42293         (do_copyrights): New variable.
42294         Recognize option --more-symlinks.
42295         (func_import): Don't add a copyright notice transform to
42296         sed_transform_lib_file if do_copyrights is empty.
42297
42298 2007-07-13  Bruno Haible  <bruno@clisp.org>
42299
42300         * lib/vasnprintf.c (decimal_point_char): Define also if
42301         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42302         && !NEED_PRINTF_DIRECTIVE_A.
42303         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42304         Gary V. Vaughan <gary@gnu.org>.
42305
42306 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42307
42308         * lib/inttypes_.h: Undo previous change, since it was fixed
42309         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42310
42311 2007-07-13  Bruno Haible  <bruno@clisp.org>
42312
42313         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42314         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42315
42316 2007-07-13  Jim Meyering  <jim@meyering.net>
42317
42318         df: Don't fail for Tru64's "file-on-file mount".
42319         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42320         so we fall through and use statfs instead.  Details here:
42321         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42322         Reported by Albert Chin.
42323
42324 2007-07-13  Bruno Haible  <bruno@clisp.org>
42325
42326         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42327         * modules/configmake (License): Likewise.
42328         * modules/gettext (License): Likewise.
42329         * modules/gettext-h (License): Likewise.
42330         * modules/include_next (License): Likewise.
42331         * modules/link-warning (License): Likewise.
42332         * modules/localcharset (License): Likewise.
42333         * modules/localename (License): Likewise.
42334         * modules/lock (License): Likewise.
42335         * modules/relocatable-lib-lgpl (License): Likewise.
42336         * modules/size_max (License): Likewise.
42337         * modules/vasnprintf (License): Likewise.
42338         * modules/wchar (License): Likewise.
42339         * modules/xsize (License): Likewise.
42340
42341 2007-07-13  Bruno Haible  <bruno@clisp.org>
42342
42343         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42344         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42345
42346 2007-07-12  Bruno Haible  <bruno@clisp.org>
42347
42348         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42349         in the modules files.
42350
42351 2007-07-11  Karl Berry  <karl@gnu.org>
42352
42353         * MODULES.html.sh (func_module): use
42354          sed -e '\|^'"${includefile}"'$|d'
42355          instead of /.../d, to avoid errors on $includefile's containing /.
42356
42357 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42358
42359         * gnulib-tool (func_import): Avoid duplication of --avoid
42360         statements
42361         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42362         names to `_' in variable names.
42363
42364 2007-07-10  Eric Blake  <ebb9@byu.net>
42365
42366         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42367         * NEWS: Document this change.
42368
42369 2007-07-08  Bruno Haible  <bruno@clisp.org>
42370
42371         Update to Unicode 5.0.
42372         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42373         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42374         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42375         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42376         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42377         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42378         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42379         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42380         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42381         U+10A3F, U+1D242..U+1D244.
42382         (nonspacing_table_ind): Update.
42383         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42384         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42385
42386 2007-07-08  Bruno Haible  <bruno@clisp.org>
42387
42388         Update to Unicode 5.0.
42389         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42390         code transform. Extend the name index field of unicode_name_to_code and
42391         unicode_code_to_name from 16 to 24 bits.
42392         * lib/uniname/uniname.c (unicode_character_name,
42393         unicode_name_character): Add the range 0x12xxx to the code transform.
42394         * lib/uniname/uninames.h: Regenerated.
42395         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42396
42397 2007-07-07  Bruno Haible  <bruno@clisp.org>
42398
42399         * modules/wcwidth-tests: New file.
42400         * tests/test-wcwidth.c: New file.
42401
42402         Work around MacOS X wcwidth() bug.
42403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42404         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42405         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42406         original wcwidth in non-UTF-8 locales.
42407         * modules/wcwidth (Depends-on): Add localcharset, streq,
42408         uniwidth/width.
42409         * doc/functions/wcwidth.texi: Update.
42410
42411 2007-07-07  Bruno Haible  <bruno@clisp.org>
42412
42413         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42414         (wcwidth): New declaration.
42415         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42416         macros.
42417         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42418         here. Prepare for creating <wchar.h> unconditionally.
42419         * modules/wchar (Depends-on): Add link-warning.
42420         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42421         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42422         * lib/wcwidth.h: Remove file.
42423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42424         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42425         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42426         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42427         (Include): Replace wcwidth.h with <wchar.h>.
42428         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42429         * lib/mbchar.h: Don't include wcwidth.h.
42430         * lib/mbswidth.c: Likewise.
42431         * NEWS: Mention the change.
42432
42433 2007-07-07  Bruno Haible  <bruno@clisp.org>
42434
42435         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42436         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42437         definition with an external declaration.
42438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42439         defined as a function. Remove AC_C_INLINE requirement.
42440         * modules/wcwidth (Files): Add lib/wcwidth.c.
42441         (Makefile.am): Remove redundant statement.
42442
42443 2007-07-07  Bruno Haible  <bruno@clisp.org>
42444
42445         * MODULES.html.sh (Unicode string functions): Add the new modules.
42446
42447         * tests/uniwidth/test-u32-strwidth.c: New file.
42448         * modules/uniwidth/u32-strwidth-tests: New file.
42449
42450         * lib/uniwidth/u32-strwidth.c: New file.
42451         * modules/uniwidth/u32-strwidth: New file.
42452
42453         * tests/uniwidth/test-u16-strwidth.c: New file.
42454         * modules/uniwidth/u16-strwidth-tests: New file.
42455
42456         * lib/uniwidth/u16-strwidth.c: New file.
42457         * modules/uniwidth/u16-strwidth: New file.
42458
42459         * tests/uniwidth/test-u8-strwidth.c: New file.
42460         * modules/uniwidth/u8-strwidth-tests: New file.
42461
42462         * lib/uniwidth/u8-strwidth.c: New file.
42463         * modules/uniwidth/u8-strwidth: New file.
42464
42465         * tests/uniwidth/test-u32-width.c: New file.
42466         * modules/uniwidth/u32-width-tests: New file.
42467
42468         * lib/uniwidth/u32-width.c: New file.
42469         * modules/uniwidth/u32-width: New file.
42470
42471         * tests/uniwidth/test-u16-width.c: New file.
42472         * modules/uniwidth/u16-width-tests: New file.
42473
42474         * lib/uniwidth/u16-width.c: New file.
42475         * modules/uniwidth/u16-width: New file.
42476
42477         * tests/uniwidth/test-u8-width.c: New file.
42478         * modules/uniwidth/u8-width-tests: New file.
42479
42480         * lib/uniwidth/u8-width.c: New file.
42481         * modules/uniwidth/u8-width: New file.
42482
42483         * tests/uniwidth/test-uc_width.c: New file.
42484         * modules/uniwidth/width-tests: New file.
42485
42486         * lib/uniwidth/width.c: New file, from GNU libiconv.
42487         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
42488         * modules/uniwidth/width: New file.
42489
42490         * lib/uniwidth.h: New file, from GNU libiconv.
42491         * modules/uniwidth/base: New file.
42492
42493 2007-07-07  Bruno Haible  <bruno@clisp.org>
42494
42495         * lib/uniname.h: New file, from GNU gettext.
42496         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
42497         * lib/uniname/uninames.h: New file, from GNU gettext.
42498         * lib/uniname/uniname.c: New file, from GNU gettext.
42499         * tests/uniname/test-uninames.sh: New file.
42500         * tests/uniname/test-uninames.c: New file, from GNU gettext.
42501         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
42502         * modules/uniname/base: New file.
42503         * modules/uniname/uniname: New file.
42504         * modules/uniname/uniname-tests: New file.
42505         * MODULES.html.sh (Unicode string functions): Add the new modules.
42506
42507 2007-07-06  Bruno Haible  <bruno@clisp.org>
42508
42509         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42510
42511 2007-07-06  Bruno Haible  <bruno@clisp.org>
42512
42513         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42514         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42515         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42516         include <sys/time.h>.
42517         Reported by Eric Blake.
42518
42519 2007-07-06  Eric Blake  <ebb9@byu.net>
42520
42521         Fix testing canonicalize on cygwin.
42522         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42523         Revert patch from 2007-06-19.
42524         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42525         canonicalize module is also in use.
42526         * tests/test-canonicalize.c: New file.
42527         * tests/test-canonicalize.sh: Likewise.
42528         * modules/canonicalize-tests: Likewise.
42529
42530 2007-07-06  Jim Meyering  <jim@meyering.net>
42531
42532         * lib/getugroups.c (getugroups): Detect getgrent failure.
42533         Adjust comment to reflect reality: this function may return -1.
42534
42535 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42536
42537         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42538         the new TP address.
42539         (usage): Fix typo
42540         (gnulib_mk): New variable.
42541
42542 2007-07-05  Jim Meyering  <jim@meyering.net>
42543
42544         Don't let endgrent clobber errno, no matter how improbable.
42545         * lib/getugroups.c (getugroups): Save and restore errno around
42546         endgrent call.
42547
42548         Close the group DB even when failing with 2^31 or more members.
42549         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
42550
42551 2007-07-04  Jim Meyering  <jim@meyering.net>
42552
42553         * lib/getugroups.h: New file.
42554         * lib/getugroups.c: Include "getugroups.h".
42555         Remove uses of "register" keyword.
42556         Move local variable, "cp", down into scope where used.
42557         Give "username" parameter the "const" attribute.
42558         * modules/getugroups (Files): Add lib/getugroups.h
42559
42560 2007-07-04  Karl Berry  <karl@gnu.org>
42561
42562         * MODULES.html.sh (func_all_modules): Complete rename of
42563         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
42564
42565 2007-07-02  Bruno Haible  <bruno@clisp.org>
42566
42567         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
42568         mode, when inttypes.h comes from gnulib.
42569         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42570
42571 2007-07-02  Simon Josefsson  <simon@josefsson.org>
42572
42573         * NEWS: Mention lgpl module name change.
42574
42575         * modules/lgpl-2.1: Renamed from lgpl.
42576
42577         * NEWS: Mention gpl module name change.
42578
42579         * modules/gpl-3.0: New file, based on gpl-2.0.
42580
42581         * modules/gpl-2.0: Renamed from gpl.
42582
42583         * modules/gpl: Fix filename, doc/gpl.texi is now found at
42584         doc/gpl-2.0.texi.
42585
42586 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42587
42588         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
42589         #define __STDC_LIMIT_MACROS temporarily while including
42590         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
42591         Problem reported by Joel E. Denny in
42592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
42593
42594 2007-07-01  Bruno Haible  <bruno@clisp.org>
42595
42596         * lib/unistdio.h: New file.
42597         * lib/unistdio/u-asnprintf.h: New file.
42598         * lib/unistdio/u-asprintf.h: New file.
42599         * lib/unistdio/u-printf-args.c: New file.
42600         * lib/unistdio/u-printf-args.h: New file.
42601         * lib/unistdio/u-printf-parse.h: New file.
42602         * lib/unistdio/u-snprintf.h: New file.
42603         * lib/unistdio/u-sprintf.h: New file.
42604         * lib/unistdio/u-vasprintf.h: New file.
42605         * lib/unistdio/u-vsnprintf.h: New file.
42606         * lib/unistdio/u-vsprintf.h: New file.
42607         * lib/unistdio/ulc-asnprintf.c: New file.
42608         * lib/unistdio/ulc-asprintf.c: New file.
42609         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
42610         * lib/unistdio/ulc-printf-parse.c: New file.
42611         * lib/unistdio/ulc-snprintf.c: New file.
42612         * lib/unistdio/ulc-sprintf.c: New file.
42613         * lib/unistdio/ulc-vasnprintf.c: New file.
42614         * lib/unistdio/ulc-vasprintf.c: New file.
42615         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
42616         * lib/unistdio/ulc-vsnprintf.c: New file.
42617         * lib/unistdio/ulc-vsprintf.c: New file.
42618         * lib/unistdio/u8-asnprintf.c: New file.
42619         * lib/unistdio/u8-asprintf.c: New file.
42620         * lib/unistdio/u8-printf-parse.c: New file.
42621         * lib/unistdio/u8-snprintf.c: New file.
42622         * lib/unistdio/u8-sprintf.c: New file.
42623         * lib/unistdio/u8-vasnprintf.c: New file.
42624         * lib/unistdio/u8-vasprintf.c: New file.
42625         * lib/unistdio/u8-vsnprintf.c: New file.
42626         * lib/unistdio/u8-vsprintf.c: New file.
42627         * lib/unistdio/u8-u8-asnprintf.c: New file.
42628         * lib/unistdio/u8-u8-asprintf.c: New file.
42629         * lib/unistdio/u8-u8-snprintf.c: New file.
42630         * lib/unistdio/u8-u8-sprintf.c: New file.
42631         * lib/unistdio/u8-u8-vasnprintf.c: New file.
42632         * lib/unistdio/u8-u8-vasprintf.c: New file.
42633         * lib/unistdio/u8-u8-vsnprintf.c: New file.
42634         * lib/unistdio/u8-u8-vsprintf.c: New file.
42635         * lib/unistdio/u16-asnprintf.c: New file.
42636         * lib/unistdio/u16-asprintf.c: New file.
42637         * lib/unistdio/u16-printf-parse.c: New file.
42638         * lib/unistdio/u16-snprintf.c: New file.
42639         * lib/unistdio/u16-sprintf.c: New file.
42640         * lib/unistdio/u16-vasnprintf.c: New file.
42641         * lib/unistdio/u16-vasprintf.c: New file.
42642         * lib/unistdio/u16-vsnprintf.c: New file.
42643         * lib/unistdio/u16-vsprintf.c: New file.
42644         * lib/unistdio/u16-u16-asnprintf.c: New file.
42645         * lib/unistdio/u16-u16-asprintf.c: New file.
42646         * lib/unistdio/u16-u16-snprintf.c: New file.
42647         * lib/unistdio/u16-u16-sprintf.c: New file.
42648         * lib/unistdio/u16-u16-vasnprintf.c: New file.
42649         * lib/unistdio/u16-u16-vasprintf.c: New file.
42650         * lib/unistdio/u16-u16-vsnprintf.c: New file.
42651         * lib/unistdio/u16-u16-vsprintf.c: New file.
42652         * lib/unistdio/u32-asnprintf.c: New file.
42653         * lib/unistdio/u32-asprintf.c: New file.
42654         * lib/unistdio/u32-printf-parse.c: New file.
42655         * lib/unistdio/u32-snprintf.c: New file.
42656         * lib/unistdio/u32-sprintf.c: New file.
42657         * lib/unistdio/u32-vasnprintf.c: New file.
42658         * lib/unistdio/u32-vasprintf.c: New file.
42659         * lib/unistdio/u32-vsnprintf.c: New file.
42660         * lib/unistdio/u32-vsprintf.c: New file.
42661         * lib/unistdio/u32-u32-asnprintf.c: New file.
42662         * lib/unistdio/u32-u32-asprintf.c: New file.
42663         * lib/unistdio/u32-u32-snprintf.c: New file.
42664         * lib/unistdio/u32-u32-sprintf.c: New file.
42665         * lib/unistdio/u32-u32-vasnprintf.c: New file.
42666         * lib/unistdio/u32-u32-vasprintf.c: New file.
42667         * lib/unistdio/u32-u32-vsnprintf.c: New file.
42668         * lib/unistdio/u32-u32-vsprintf.c: New file.
42669         * tests/unistdio/test-ulc-asnprintf1.c: New file.
42670         * tests/unistdio/test-ulc-asnprintf1.h: New file.
42671         * tests/unistdio/test-ulc-printf1.h: New file.
42672         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
42673         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
42674         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
42675         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
42676         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
42677         * tests/unistdio/test-ulc-vasprintf1.c: New file.
42678         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
42679         * tests/unistdio/test-ulc-vsprintf1.c: New file.
42680         * tests/unistdio/test-u8-asnprintf1.c: New file.
42681         * tests/unistdio/test-u8-asnprintf1.h: New file.
42682         * tests/unistdio/test-u8-printf1.h: New file.
42683         * tests/unistdio/test-u8-vasnprintf1.c: New file.
42684         * tests/unistdio/test-u8-vasnprintf2.c: New file.
42685         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
42686         * tests/unistdio/test-u8-vasnprintf3.c: New file.
42687         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
42688         * tests/unistdio/test-u8-vasprintf1.c: New file.
42689         * tests/unistdio/test-u8-vsnprintf1.c: New file.
42690         * tests/unistdio/test-u8-vsprintf1.c: New file.
42691         * tests/unistdio/test-u16-asnprintf1.c: New file.
42692         * tests/unistdio/test-u16-asnprintf1.h: New file.
42693         * tests/unistdio/test-u16-printf1.h: New file.
42694         * tests/unistdio/test-u16-vasnprintf1.c: New file.
42695         * tests/unistdio/test-u16-vasnprintf2.c: New file.
42696         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
42697         * tests/unistdio/test-u16-vasnprintf3.c: New file.
42698         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
42699         * tests/unistdio/test-u16-vasprintf1.c: New file.
42700         * tests/unistdio/test-u16-vsnprintf1.c: New file.
42701         * tests/unistdio/test-u16-vsprintf1.c: New file.
42702         * tests/unistdio/test-u32-asnprintf1.c: New file.
42703         * tests/unistdio/test-u32-asnprintf1.h: New file.
42704         * tests/unistdio/test-u32-printf1.h: New file.
42705         * tests/unistdio/test-u32-vasnprintf1.c: New file.
42706         * tests/unistdio/test-u32-vasnprintf2.c: New file.
42707         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
42708         * tests/unistdio/test-u32-vasnprintf3.c: New file.
42709         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
42710         * tests/unistdio/test-u32-vasprintf1.c: New file.
42711         * tests/unistdio/test-u32-vsnprintf1.c: New file.
42712         * tests/unistdio/test-u32-vsprintf1.c: New file.
42713         * modules/unistdio/base: New file.
42714         * modules/unistdio/u-printf-args: New file.
42715         * modules/unistdio/ulc-asnprintf: New file.
42716         * modules/unistdio/ulc-asprintf: New file.
42717         * modules/unistdio/ulc-fprintf: New file.
42718         * modules/unistdio/ulc-printf-parse: New file.
42719         * modules/unistdio/ulc-snprintf: New file.
42720         * modules/unistdio/ulc-sprintf: New file.
42721         * modules/unistdio/ulc-vasnprintf: New file.
42722         * modules/unistdio/ulc-vasprintf: New file.
42723         * modules/unistdio/ulc-vfprintf: New file.
42724         * modules/unistdio/ulc-vsnprintf: New file.
42725         * modules/unistdio/ulc-vsprintf: New file.
42726         * modules/unistdio/u8-asnprintf: New file.
42727         * modules/unistdio/u8-asprintf: New file.
42728         * modules/unistdio/u8-printf-parse: New file.
42729         * modules/unistdio/u8-snprintf: New file.
42730         * modules/unistdio/u8-sprintf: New file.
42731         * modules/unistdio/u8-vasnprintf: New file.
42732         * modules/unistdio/u8-vasprintf: New file.
42733         * modules/unistdio/u8-vsnprintf: New file.
42734         * modules/unistdio/u8-vsprintf: New file.
42735         * modules/unistdio/u8-u8-asnprintf: New file.
42736         * modules/unistdio/u8-u8-asprintf: New file.
42737         * modules/unistdio/u8-u8-snprintf: New file.
42738         * modules/unistdio/u8-u8-sprintf: New file.
42739         * modules/unistdio/u8-u8-vasnprintf: New file.
42740         * modules/unistdio/u8-u8-vasprintf: New file.
42741         * modules/unistdio/u8-u8-vsnprintf: New file.
42742         * modules/unistdio/u8-u8-vsprintf: New file.
42743         * modules/unistdio/u16-asnprintf: New file.
42744         * modules/unistdio/u16-asprintf: New file.
42745         * modules/unistdio/u16-printf-parse: New file.
42746         * modules/unistdio/u16-snprintf: New file.
42747         * modules/unistdio/u16-sprintf: New file.
42748         * modules/unistdio/u16-vasnprintf: New file.
42749         * modules/unistdio/u16-vasprintf: New file.
42750         * modules/unistdio/u16-vsnprintf: New file.
42751         * modules/unistdio/u16-vsprintf: New file.
42752         * modules/unistdio/u16-u16-asnprintf: New file.
42753         * modules/unistdio/u16-u16-asprintf: New file.
42754         * modules/unistdio/u16-u16-snprintf: New file.
42755         * modules/unistdio/u16-u16-sprintf: New file.
42756         * modules/unistdio/u16-u16-vasnprintf: New file.
42757         * modules/unistdio/u16-u16-vasprintf: New file.
42758         * modules/unistdio/u16-u16-vsnprintf: New file.
42759         * modules/unistdio/u16-u16-vsprintf: New file.
42760         * modules/unistdio/u32-asnprintf: New file.
42761         * modules/unistdio/u32-asprintf: New file.
42762         * modules/unistdio/u32-printf-parse: New file.
42763         * modules/unistdio/u32-snprintf: New file.
42764         * modules/unistdio/u32-sprintf: New file.
42765         * modules/unistdio/u32-vasnprintf: New file.
42766         * modules/unistdio/u32-vasprintf: New file.
42767         * modules/unistdio/u32-vsnprintf: New file.
42768         * modules/unistdio/u32-vsprintf: New file.
42769         * modules/unistdio/u32-u32-asnprintf: New file.
42770         * modules/unistdio/u32-u32-asprintf: New file.
42771         * modules/unistdio/u32-u32-snprintf: New file.
42772         * modules/unistdio/u32-u32-sprintf: New file.
42773         * modules/unistdio/u32-u32-vasnprintf: New file.
42774         * modules/unistdio/u32-u32-vasprintf: New file.
42775         * modules/unistdio/u32-u32-vsnprintf: New file.
42776         * modules/unistdio/u32-u32-vsprintf: New file.
42777         * modules/unistdio/ulc-asnprintf-tests: New file.
42778         * modules/unistdio/ulc-vasnprintf-tests: New file.
42779         * modules/unistdio/ulc-vasprintf-tests: New file.
42780         * modules/unistdio/ulc-vsnprintf-tests: New file.
42781         * modules/unistdio/ulc-vsprintf-tests: New file.
42782         * modules/unistdio/u8-asnprintf-tests: New file.
42783         * modules/unistdio/u8-vasnprintf-tests: New file.
42784         * modules/unistdio/u8-vasprintf-tests: New file.
42785         * modules/unistdio/u8-vsnprintf-tests: New file.
42786         * modules/unistdio/u8-vsprintf-tests: New file.
42787         * modules/unistdio/u16-asnprintf-tests: New file.
42788         * modules/unistdio/u16-vasnprintf-tests: New file.
42789         * modules/unistdio/u16-vasprintf-tests: New file.
42790         * modules/unistdio/u16-vsnprintf-tests: New file.
42791         * modules/unistdio/u16-vsprintf-tests: New file.
42792         * modules/unistdio/u32-asnprintf-tests: New file.
42793         * modules/unistdio/u32-vasnprintf-tests: New file.
42794         * modules/unistdio/u32-vasprintf-tests: New file.
42795         * modules/unistdio/u32-vsnprintf-tests: New file.
42796         * modules/unistdio/u32-vsprintf-tests: New file.
42797         * MODULES.html.sh (Unicode string functions): Add the new modules.
42798
42799 2007-07-01  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/sprintf.c (sprintf): Limit the available length estimation,
42802         to avoid address wraparound.
42803         * lib/vsprintf.c (vsprintf): Likewise.
42804         * modules/sprintf-posix (Dependencies): Add stdint.
42805         * modules/vsprintf-posix (Dependencies): Likewise.
42806
42807 2007-07-01  Bruno Haible  <bruno@clisp.org>
42808
42809         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
42810         Windows PATH as well. Conservative double-quoting. Comments.
42811
42812 2007-07-01  Bruno Haible  <bruno@clisp.org>
42813             Eric Blake  <ebb9@byu.net>
42814             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42815
42816         * gnulib-tool (self_abspathname): Fix algorithm to cope with
42817         empty components in $PATH, denoting '.'.
42818
42819 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42820
42821         * gnulib-tool: Fix indentation.
42822         (func_create_megatestdir): Likewise.
42823         Report by Bruno Haible.
42824
42825 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42826
42827         Sync from Automake.
42828         * build-aux/gnupload: Fix shell portability issues with for loops.
42829         Report by Karl Berry.
42830
42831 2007-06-29  Simon Josefsson  <simon@josefsson.org>
42832
42833         * build-aux/maint.mk (POURL): Use translationproject.org.
42834
42835 2007-06-27  Simon Josefsson  <simon@josefsson.org>
42836             Bruno Haible  <bruno@clisp.org>
42837
42838         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
42839         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
42840         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
42841         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
42842         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
42843
42844 2007-06-27  Bruno Haible  <bruno@clisp.org>
42845
42846         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
42847         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
42848
42849 2007-06-26  Karl Berry  <karl@gnu.org>
42850
42851         * MODULES.html.sh: remove xreadlink-with-size.
42852
42853 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42854
42855         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
42856         method that I hope also handles the double-include problem noted
42857         by Bruno Haible in
42858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
42859
42860 2007-06-23  Bruno Haible  <bruno@clisp.org>
42861
42862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42863         Don't let the 'mostlyclean' target fail if the last subdirectory could
42864         not be removed.
42865         Reported by Karl Berry.
42866
42867 2007-06-23  Bruno Haible  <bruno@clisp.org>
42868
42869         * gnulib-tool (echo): Add a speedier workaround for ksh.
42870         * tests/test-echo.sh: Likewise.
42871
42872 2007-06-23  Bruno Haible  <bruno@clisp.org>
42873
42874         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
42875         * tests/test-echo.sh: Likewise.
42876
42877 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42878
42879         * gnulib-tool (IFS): Initialize early, so we don't set it to
42880         empty later.
42881         (self_abspathname): Rewrite algorithm to set it, reindent.
42882         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
42883         (func_create_megatestdir): Merge some sed scripts.
42884
42885 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42886
42887         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
42888         exposed by Sun Studio 11 cc on Solaris 8.
42889
42890 2007-06-22  Bruno Haible  <bruno@clisp.org>
42891
42892         * gnulib-tool (echo): Ensure the echo primitive does not interpret
42893         backslashes.
42894         * tests/test-echo.sh: New file.
42895
42896 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42897
42898         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
42899         simplify `sed_replace_build_aux' scripts, they are portable but
42900         echoing them with `echo' is not.
42901         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
42902
42903 2007-06-21  Karl Berry  <karl@gnu.org>
42904
42905         * config/srclist.txt: guess we can't handle the licenses via
42906         srclist at the moment.
42907
42908 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
42909
42910         * MODULES.html.sh: Add include_next.
42911         * modules/include_next: New file.
42912
42913 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42914
42915         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
42916         INCLUDE_NEXT.
42917         (gl_CHECK_NEXT_HEADERS): New macro.
42918         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
42919         the obsolescent gl_ABSOLUTE_HEADER.
42920         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
42921         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
42922         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42923         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42924         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
42925         * m4/math_h.m4 (gl_MATH_H): Likewise.
42926         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42927         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42928         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
42929         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42930         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
42931         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
42932         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
42933         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42934         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
42936         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
42937         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42938         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
42939         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42940         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42941         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42942         * m4/inttypes.m4 (gl_INTTYPES_H): Define
42943         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
42944         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
42945         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
42946         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
42947         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
42948         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
42949         * lib/float_.h: Likewise.
42950         * lib/inttypes_.h: Likewise.
42951         * lib/math_.h: Likewise.
42952         * lib/search_.h: Likewise.
42953         * lib/signal_.h: Likewise.
42954         * lib/stdint_.h: Likewise.
42955         * lib/stdio_.h: Likewise.
42956         * lib/stdlib_.h: Likewise.
42957         * lib/string_.h: Likewise.
42958         * lib/sys_stat_.h: Likewise.
42959         * lib/sys_time_.h: Likewise.
42960         * lib/time_.h: Likewise.
42961         * lib/unistd_.h: Likewise.
42962         * lib/wchar_.h: Likewise.
42963         * lib/wctype_.h: Likewise.
42964         * lib/dirent_.h: Likewise.
42965         * lib/iconv_.h: Likewise.
42966         * lib/locale_.h: Likewise.
42967         * lib/netinet_in_.h: Likewise.
42968         * lib/sys_select_.h: Likewise.
42969         * lib/sys_socket_.h: Likewise.
42970         * lib/sysexits_.h: Likewise.
42971         * modules/fcntl (Depends-on): Depend on include_next, not
42972         absolute_header.
42973         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
42974         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
42975         * modules/fchdir: Likewise.
42976         * modules/float: Likewise.
42977         * modules/iconv_open: Likewise.
42978         * modules/inttypes: Likewise.
42979         * modules/locale: Likewise.
42980         * modules/math: Likewise.
42981         * modules/netinet_in: Likewise.
42982         * modules/search: Likewise.
42983         * modules/signal: Likewise.
42984         * modules/stdint: Likewise.
42985         * modules/stdio: Likewise.
42986         * modules/stdlib: Likewise.
42987         * modules/string: Likewise.
42988         * modules/sys_select: Likewise.
42989         * modules/sys_socket: Likewise.
42990         * modules/sys_stat: Likewise.
42991         * modules/sys_time: Likewise.
42992         * modules/sysexits: Likewise.
42993         * modules/time: Likewise.
42994         * modules/unistd: Likewise.
42995         * modules/wchar: Likewise.
42996         * modules/wctype: Likewise.
42997         * modules/sys_stat: Change maintainer to "all".
42998         * modules/unistd: Likewise.
42999
43000 2007-06-20  Karl Berry  <karl@gnu.org>
43001
43002         * config/srclist.txt: track www changes in license files.
43003
43004 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43005
43006         * build-aux/bootstrap: Remove stray dot.
43007         Make sure build_aux settings are honored when linking
43008         gnulib_extra_files.
43009
43010 2007-06-19  Eric Blake  <ebb9@byu.net>
43011
43012         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43013         Allow compilation on cygwin.
43014
43015 2007-06-19  Jim Meyering  <jim@meyering.net>
43016
43017         xreadlink-with-size: Remove module.  No longer used.
43018         Ex-callers now use xreadlink or mreadlink-with-size.
43019         * modules/xreadlink-with-size: Remove module.
43020         * lib/xreadlink-with-size.c: Remove file.
43021         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43022         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43023         just before the function definition *is* accurate.
43024
43025         Eliminate one way canonicalize_filename_mode could exit.
43026         * lib/canonicalize.c (canonicalize_filename_mode):
43027         Use mreadlink_with_size, not xreadlink_with_size.
43028
43029 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43030
43031         Detect porting problems to FreeBSD/arm, which has time_t wider than
43032         long int.  Original problem reported for GNU diff by Xin Li in
43033         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43034         * modules/getdate (Depends-on): Add intprops, verify.
43035         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43036         is an integer type no wider than long int.
43037
43038 2007-06-18  Jim Meyering  <jim@meyering.net>
43039
43040         New module: mreadlink-with-size.
43041         * MODULES.html.sh: Add mreadlink-with-size.
43042         * modules/mreadlink-with-size: New module
43043         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43044         not xreadlink-with-size.
43045         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43046
43047 2007-06-16  Bruno Haible  <bruno@clisp.org>
43048
43049         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43050         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43051         Reported by Gary V. Vaughan <gary@gnu.org>.
43052
43053 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43054
43055         Revamp lchown so that it lives in unistd.h where it belongs.
43056         * lib/lchown.h: Remove.
43057         * lib/dirchownmod.c: Don't include lib/lchown.h.
43058         * lib/fchownat.c: Likewise.
43059         * lib/openat.c: Likewise.
43060         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43061         does not follow symlinks.
43062         (EOPNOTSUPP): Define if not defined.
43063         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43064         is defined to 0.
43065         (lchown): New decl.
43066         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43067         Do not check for lchown decl.
43068         Set REPLACE_LCHOWN.
43069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43070         REPLACE_LCHOWN.
43071         * modules/chown: Make it clear it follows symlinks.
43072         * modules/lchown: Make it clear it doesn't follow symlinks.
43073         (Files): Remove lib/lchown.h
43074         (Depends-on): Add unistd.
43075         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43076         (Include): Include <unistd.h>, not "lchown.h".
43077         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43078         REPLACE_LCHOWN.
43079
43080 2007-06-15  Jim Meyering  <jim@meyering.net>
43081
43082         Change license (GPL to LGPL) of fsusage and dependents.
43083         * modules/fsusage (License): Change to LGPL.
43084         * modules/full-read (License): Likewise.
43085         * modules/full-write (License): Likewise.
43086         * modules/safe-read (License): Likewise.
43087         * modules/safe-write (License): Likewise.
43088
43089 2007-06-14  Ben Pfaff  <blp@gnu.org>
43090
43091         Missing part of allocsa -> malloca transition.
43092         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43093         gl_MALLOCA.
43094
43095 2007-06-12  Bruno Haible  <bruno@clisp.org>
43096
43097         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43098         to ia64, x86_64, i386.
43099         Reported by Eric Blake.
43100
43101 2007-06-12  Bruno Haible  <bruno@clisp.org>
43102
43103         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43104         cross-compiling to x86_64.
43105
43106 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43107
43108         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43109         glitch reported by Ralf Wildenhues in
43110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43111
43112         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43113         Vin Shelton.
43114
43115 2007-06-11  Bruno Haible  <bruno@clisp.org>
43116
43117         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43118         replacement string.
43119         Reported by Eric Blake.
43120
43121 2007-06-10  Bruno Haible  <bruno@clisp.org>
43122
43123         Prepare vasnprintf code for use with Unicode strings.
43124         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43125         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43126         TYPE_U32_STRING.
43127         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43128         a_u32_string variants.
43129         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43130         * lib/printf-args.c: Don't include config.h and the specification
43131         header if PRINTF_FETCHARGS is already defined.
43132         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43133         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43134         TYPE_U16_STRING, TYPE_U32_STRING.
43135         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43136         u16_directive, u16_directives, u32_directive, u32_directives): New
43137         types.
43138         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43139         New declarations.
43140         * lib/printf-parse.c: Don't include config.h and the specification
43141         header if PRINTF_PARSE is already defined. Eliminate the set of
43142         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43143         them now. Include c-ctype.h.
43144         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43145         directive and CHAR_T_ONLY_ASCII.
43146         * lib/vasnprintf.c: Don't include config.h and the specification header
43147         if VASNPRINTF is already defined.
43148         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43149         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43150         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43151         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43152         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43153         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43154         code accordingly.
43155         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43156         pad_ourselves also in this case, with the 'c' and 's' directives, and
43157         with a different notion of "width".
43158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43159
43160 2007-06-10  Bruno Haible  <bruno@clisp.org>
43161
43162         * modules/unistr/u32-mbsnlen: New file.
43163         * lib/unistr/u32-mbsnlen.c: New file.
43164
43165         * modules/unistr/u16-mbsnlen: New file.
43166         * lib/unistr/u16-mbsnlen.c: New file.
43167
43168         * modules/unistr/u8-mbsnlen: New file.
43169         * lib/unistr/u8-mbsnlen.c: New file.
43170
43171         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43172         declarations.
43173
43174 2007-06-10  Bruno Haible  <bruno@clisp.org>
43175
43176         * lib/string_.h (mbsnlen): New declaration.
43177         * lib/mbsnlen.c: New file.
43178         * m4/mbsnlen.m4: New file.
43179         * modules/mbsnlen: New file.
43180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43181         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43182         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43183
43184 2007-06-10  Bruno Haible  <bruno@clisp.org>
43185
43186         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43187
43188 2007-06-10  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43191         * lib/mbuiter.h: Likewise.
43192
43193 2007-06-10  Bruno Haible  <bruno@clisp.org>
43194
43195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43196         declaration.
43197
43198 2007-06-10  Karl Berry  <karl@gnu.org>
43199
43200         * config/srclist.txt: remove gettext entries, Bruno prefers
43201         to update individually.
43202
43203 2007-06-10  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43206         'maxlen'. Ensure only length + width bytes are allocated, not
43207         length + 1 + width.
43208
43209 2007-06-09  Bruno Haible  <bruno@clisp.org>
43210
43211         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43212         (CHAR_T): Remove macro.
43213         (VASNPRINTF): Update.
43214
43215 2007-06-09  Bruno Haible  <bruno@clisp.org>
43216
43217         * MODULES.html.sh (Unicode string functions): Add the new modules.
43218
43219         * modules/uniconv/u32-conv-to-enc: New file.
43220         * lib/uniconv/u32-conv-to-enc.c: New file.
43221         * modules/uniconv/u32-conv-to-enc-tests: New file.
43222         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43223
43224         * modules/uniconv/u16-conv-to-enc: New file.
43225         * lib/uniconv/u16-conv-to-enc.c: New file.
43226         * lib/uniconv/u-conv-to-enc.h: New file.
43227         * modules/uniconv/u16-conv-to-enc-tests: New file.
43228         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43229
43230         * modules/uniconv/u8-conv-to-enc: New file.
43231         * lib/uniconv/u8-conv-to-enc.c: New file.
43232         * modules/uniconv/u8-conv-to-enc-tests: New file.
43233         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43234
43235         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43236         u32_conv_to_encoding): New declarations.
43237
43238 2007-06-09  Bruno Haible  <bruno@clisp.org>
43239
43240         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43241
43242 2007-06-09  Bruno Haible  <bruno@clisp.org>
43243
43244         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43245         * modules/malloca: Renamed from modules/allocsa, updated.
43246         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43247         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43248         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43249         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43250         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43251         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43252         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43253         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43254         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43255         * modules/c-strcasestr (Depends-on): Update.
43256         * lib/c-strcasestr.c: Update.
43257         * modules/c-strstr (Depends-on): Update.
43258         * lib/c-strstr.c: Update.
43259         * modules/canonicalize-lgpl (Depends-on): Update.
43260         * lib/canonicalize-lgpl.c: Update.
43261         * modules/clean-temp (Depends-on): Update.
43262         * lib/clean-temp.c: Update.
43263         * modules/csharpcomp (Depends-on): Update.
43264         * lib/csharpcomp.c: Update.
43265         * modules/csharpexec (Depends-on): Update.
43266         * lib/csharpexec.c: Update.
43267         * modules/javacomp (Depends-on): Update.
43268         * lib/javacomp.c: Update.
43269         * modules/javaexec (Depends-on): Update.
43270         * lib/javaexec.c: Update.
43271         * modules/mbscasestr (Depends-on): Update.
43272         * lib/mbscasestr.c: Update.
43273         * modules/mbsstr (Depends-on): Update.
43274         * lib/mbsstr.c: Update.
43275         * modules/setenv (Depends-on): Update.
43276         * lib/setenv.c: Update.
43277         * modules/strcasestr (Depends-on): Update.
43278         * lib/strcasestr.c: Update.
43279         * modules/striconveha (Depends-on): Update.
43280         * lib/striconveha.c: Update.
43281         * modules/relocatable-prog-wrapper (Files): Update.
43282         * lib/relocwrapper.c: Update.
43283         * build-aux/install-reloc: Update.
43284         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43285
43286 2007-06-08  Bruno Haible  <bruno@clisp.org>
43287
43288         Port to uClibc.
43289         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43290         * lib/fpurge.c (fpurge): Likewise.
43291         * lib/freading.c (freading): Likewise.
43292         * lib/fseeko.c (rpl_fseeko): Likewise.
43293         * lib/fseterr.c (fseterr): Likewise.
43294         * lib/fwriting.c (fwriting): Likewise.
43295         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43296
43297 2007-06-08  Bruno Haible  <bruno@clisp.org>
43298
43299         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43300         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43301         * modules/gettext (Files): Add m4/intlmacosx.m4.
43302
43303 2007-06-07  Bruno Haible  <bruno@clisp.org>
43304
43305         * modules/localename-tests: New file.
43306         * tests/test-localename.c: New file.
43307
43308         New module 'localename'.
43309         * lib/localename.h: New file.
43310         * lib/localename.c: New file, from GNU gettext.
43311         * m4/localename.m4: New file.
43312         * modules/localename: New file.
43313
43314 2007-06-07  Bruno Haible  <bruno@clisp.org>
43315
43316         Work around the lack of <wchar.h> on some builds of uClibc.
43317         * doc/headers/wchar.texi: Update.
43318         * lib/wchar_.h: Include <wchar.h> only if it exists.
43319         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43320         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43321         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43322         doesn't exist.
43323         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43324         * modules/mbfile (Depends-on): Add wchar.
43325         * modules/mbiter (Depends-on): Likewise.
43326         * modules/mbuiter (Depends-on): Likewise.
43327         Reported by Simon Josefsson.
43328
43329 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43330
43331         Work around problem reported by Steven M. Schweda in
43332         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43333         Tru64 5.1B with the Compaq compiler environment installed declares
43334         an 'isblank' function but does not define it in the C library.
43335         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43336         * lib/regex_internal.h (isblank): Likewise.
43337         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43338         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43339
43340 2007-06-05  Bruno Haible  <bruno@clisp.org>
43341
43342         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43343         ia64.
43344         * modules/printf-safe: New file.
43345         * modules/fprintf-posix (Depends-on): Add printf-safe.
43346         * modules/printf-posix (Depends-on): Likewise.
43347         * modules/snprintf-posix (Depends-on): Likewise.
43348         * modules/sprintf-posix (Depends-on): Likewise.
43349         * modules/vasnprintf-posix (Depends-on): Likewise.
43350         * modules/vasprintf-posix (Depends-on): Likewise.
43351         * modules/vfprintf-posix (Depends-on): Likewise.
43352         * modules/vprintf-posix (Depends-on): Likewise.
43353         * modules/vsnprintf-posix (Depends-on): Likewise.
43354         * modules/vsprintf-posix (Depends-on): Likewise.
43355         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43356         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43357         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43358         "no" on i386, x86_64, ia64.
43359         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43360         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43361         on i386, x86_64, ia64.
43362         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43363         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43364         on i386, x86_64, ia64.
43365         * tests/test-vasnprintf-posix.c: Include float.h.
43366         (LDBL80_WORDS): New macro.
43367         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43368         on i386, x86_64, ia64.
43369         * tests/test-vasprintf-posix.c: Include float.h.
43370         (LDBL80_WORDS): New macro.
43371         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43372         on i386, x86_64, ia64.
43373         * tests/test-snprintf-posix.c: Include float.h.
43374         * tests/test-sprintf-posix.c: Likewise.
43375         * tests/test-vsnprintf-posix.c: Likewise.
43376         * tests/test-vsprintf-posix.c: Likewise.
43377
43378 2007-06-05  Bruno Haible  <bruno@clisp.org>
43379
43380         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43381         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43382         non-IEEE numbers on i386, x86_64, ia64.
43383         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43384         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43385         * tests/test-isnanl.h: Include float.h.
43386         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43387
43388 2007-06-05  Bruno Haible  <bruno@clisp.org>
43389
43390         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43391         also the %a / %A. Handle the %a / %A code before this extra handling.
43392
43393 2007-06-05  Bruno Haible  <bruno@clisp.org>
43394
43395         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43396         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43397
43398 2007-06-05  Bruno Haible  <bruno@clisp.org>
43399
43400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43401         typo in variable name.
43402
43403 2007-06-05  Eric Blake  <ebb9@byu.net>
43404
43405         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43406         Reported by Simon Josefsson.
43407
43408 2007-06-04  Bruno Haible  <bruno@clisp.org>
43409
43410         Avoid test failures on some PowerPC platforms.
43411         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43412         Define differently for PowerPC.
43413         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43414         Reported by Gary V. Vaughan <gary@gnu.org>.
43415
43416 2007-06-02  Bruno Haible  <bruno@clisp.org>
43417
43418         Fix test-stdint failure on FreeBSD/ia64.
43419         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43420         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43421         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43422         * doc/headers/stdint.texi: Update.
43423
43424 2007-06-01  Bruno Haible  <bruno@clisp.org>
43425
43426         * tests/test-binary-io.c (main): Pass a third argument to open().
43427         Reported by Gary V. Vaughan <gary@gnu.org>.
43428
43429 2007-06-01  Bruno Haible  <bruno@clisp.org>
43430
43431         * doc/functions/frexpl.texi: Update for mingw.
43432
43433 2007-06-01  Bruno Haible  <bruno@clisp.org>
43434
43435         * tests/test-lseek.c (main): Disable test of errno for invalid third
43436         argument.
43437         * doc/functions/lseek.texi: Update.
43438         Reported by Gary V. Vaughan <gary@gnu.org>.
43439
43440 2007-05-28  Bruno Haible  <bruno@clisp.org>
43441
43442         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43443
43444 2007-05-31  Eric Blake  <ebb9@byu.net>
43445
43446         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43447         cross compiling.
43448
43449 2007-05-30  Eric Blake  <ebb9@byu.net>
43450         and Bruno Haible  <bruno@clisp.org>
43451
43452         Work around mingw test failures exposed by m4-1.4.9b.
43453         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43454         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43455         moment.
43456
43457 2007-05-30  Bruno Haible  <bruno@clisp.org>
43458
43459         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43460         assuming that they are closed. Needed on HP-UX 11.
43461
43462 2007-05-29  Bruno Haible  <bruno@clisp.org>
43463
43464         Fix a problem with #include_next.
43465         * lib/dirent_.h: Split the double-inclusion guard.
43466         * lib/fcntl_.h: Likewise.
43467         * lib/float_.h: Likewise.
43468         * lib/iconv_.h: Likewise.
43469         * lib/inttypes_.h: Likewise.
43470         * lib/locale_.h: Likewise.
43471         * lib/math_.h: Likewise.
43472         * lib/netinet_in_.h: Likewise.
43473         * lib/search_.h: Likewise.
43474         * lib/signal_.h: Likewise.
43475         * lib/stdint_.h: Likewise.
43476         * lib/stdio_.h: Likewise.
43477         * lib/stdlib_.h: Likewise.
43478         * lib/string_.h: Likewise.
43479         * lib/sys_select_.h: Likewise.
43480         * lib/sys_socket_.h: Likewise.
43481         * lib/sys_stat_.h: Likewise.
43482         * lib/sys_time_.h: Likewise.
43483         * lib/sysexits_.h: Likewise.
43484         * lib/time_.h: Likewise.
43485         * lib/unistd_.h: Likewise.
43486         * lib/wchar_.h: Likewise.
43487         * lib/wctype_.h: Likewise.
43488
43489 2007-05-29  Bruno Haible  <bruno@clisp.org>
43490
43491         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
43492         for the moment.
43493
43494 2007-05-29  Bruno Haible  <bruno@clisp.org>
43495
43496         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
43497         invocation.
43498         Reported by Eric Blake.
43499
43500 2007-05-29  Bruno Haible  <bruno@clisp.org>
43501
43502         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
43503         compiling case.
43504
43505 2007-05-29  Eric Blake  <ebb9@byu.net>
43506             Bruno Haible  <bruno@clisp.org>
43507
43508         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43509         cross compiles.
43510
43511 2007-05-28  Eric Blake  <ebb9@byu.net>
43512
43513         * modules/closein-tests (test_closein_LDADD): Support test on
43514         cygwin with libtool.
43515
43516 2007-05-28  Bruno Haible  <bruno@clisp.org>
43517
43518         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43519         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43520         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43521         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43522         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43523         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43524         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43525         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43526         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43527
43528 2007-05-28  Eric Blake  <ebb9@byu.net>
43529
43530         Unconditionally include <config.h> in unit tests.
43531         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43532         * tests/test-allocsa.c, tests/test-arcfour.c,
43533         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43534         tests/test-array_list.c, tests/test-array_oset.c,
43535         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43536         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43537         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43538         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43539         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43540         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43541         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43542         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43543         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43544         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43545         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43546         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43547         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43548         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43549         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
43550         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
43551         test-md5.c, test-memmem.c, test-printf-posix.c,
43552         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
43553         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
43554         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
43555         test-strcasestr.c, test-striconv.c, test-striconveh.c,
43556         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
43557         test-vasnprintf-posix2.c, test-vasnprintf.c,
43558         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
43559         test-vfprintf-posix.c, test-vprintf-posix.c,
43560         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
43561         test-xvasprintf.c: Likewise.
43562
43563 2007-05-28  Bruno Haible  <bruno@clisp.org>
43564
43565         * gnulib-tool (func_import): Remember the --with-tests command-line
43566         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
43567         Reported by Eric Blake.
43568
43569 2007-05-28  Bruno Haible  <bruno@clisp.org>
43570
43571         * modules/ftell-tests: New file.
43572         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
43573         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
43574
43575         * lib/ftell.c: New file.
43576         * modules/ftell: New file.
43577         * m4/ftell.m4: New file.
43578         * doc/functions/ftell.texi: Update.
43579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
43580         REPLACE_FTELL.
43581         * lib/stdio_.h (rpl_ftell): New declaration.
43582         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
43583         REPLACE_FTELL.
43584
43585 2007-05-28  Eric Blake  <ebb9@byu.net>
43586
43587         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
43588
43589 2007-05-28  Bruno Haible  <bruno@clisp.org>
43590
43591         * modules/fseek-tests: New file.
43592         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
43593         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
43594
43595         * lib/fseek.c: New file.
43596         * modules/fseek: New file.
43597         * m4/fseek.m4: New file.
43598         * doc/functions/fseek.texi: Update.
43599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
43600         REPLACE_FSEEK.
43601         * lib/stdio_.h (rpl_fseek): New declaration.
43602         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
43603         REPLACE_FSEEK.
43604
43605 2007-05-28  Bruno Haible  <bruno@clisp.org>
43606
43607         * lib/stdio_.h (fflush): More comments.
43608
43609 2007-05-28  Bruno Haible  <bruno@clisp.org>
43610
43611         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
43612         runtime test.
43613
43614 2007-05-28  Eric Blake  <ebb9@byu.net>
43615
43616         Improve lseek module.
43617         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
43618         * lib/unistd_.h (lseek): Scale back link warning message.
43619         * tests/test-lseek.c: Beef up test.
43620         * tests/test-lseek.sh: Exercise more facets of lseek.
43621         Reported by Bruno Haible.
43622
43623 2007-05-28  Bruno Haible  <bruno@clisp.org>
43624
43625         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
43626         to define.
43627
43628 2007-05-27  Bruno Haible  <bruno@clisp.org>
43629
43630         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
43631
43632 2007-05-27  Bruno Haible  <bruno@clisp.org>
43633
43634         * modules/openmp: New file.
43635         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
43636         Noah Misch.
43637
43638 2007-05-26  Bruno Haible  <bruno@clisp.org>
43639
43640         * modules/chdir-long (Depends-on): Add fchdir.
43641         * modules/chdir-safer (Depends-on): Likewise.
43642         * modules/fts (Depends-on): Likewise.
43643         * modules/fts-lgpl (Depends-on): Likewise.
43644         * modules/openat (Depends-on): Likewise.
43645         * modules/savewd (Depends-on): Likewise.
43646
43647 2007-05-24  Eric Blake  <ebb9@byu.net>
43648
43649         Fix lseek on mingw.
43650         * modules/lseek: New module.
43651         * m4/lseek.m4: New file.
43652         * lib/lseek.c: New file.
43653         * modules/lseek-tests: New file.
43654         * tests/test-lseek.c: New file.
43655         * tests/test-lseek.sh: New file.
43656         * MODULES.html.sh: Document lseek module.
43657         * modules/fflush (Depends-on): Add lseek, fseeko.
43658         * modules/fseeko (Depends-on): Likewise.
43659         * modules/ftello (Depends-on): Likewise.
43660         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
43661         broken.
43662         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
43663         broken.
43664         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
43665         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
43666         * lib/ftello.c (rpl_ftello): Likewise.
43667         * tests/test-fseeko.c (main): Test this.
43668         * tests/test-fseeko.sh: Likewise.
43669         * tests/test-ftello.c (main): Likewise.
43670         * tests/test-ftello.sh: Likewise.
43671         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
43672         implies replacing fseek.
43673         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
43674         HAVE_FTELLO.
43675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
43676         * modules/unistd (Makefile.am): Likewise.
43677         * lib/unistd_.h (lseek): Declare a replacement.
43678         * doc/functions/lseek.texi (lseek): Document this fix.
43679         * doc/functions/fseek.texi (fseek): Likewise.
43680         * doc/functions/ftell.texi (ftell): Likewise.
43681
43682 2007-05-24  Bruno Haible  <bruno@clisp.org>
43683
43684         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
43685         in the printed representation of a NaN.
43686         * tests/test-vasprintf-posix.c (test_function): Likewise.
43687         * tests/test-snprintf-posix.h (test_function): Likewise.
43688         * tests/test-sprintf-posix.h (test_function): Likewise.
43689         Reported by Eric Blake.
43690
43691 2007-05-23  Eric Blake  <ebb9@byu.net>
43692
43693         Fix fseeko/ftello on cygwin 1.5.24.
43694         * doc/functions/fseeko.texi (fseeko): Document the fix.
43695         * doc/functions/ftello.texi (ftello): Document the fix.
43696         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
43697         * doc/functions/stdout.text (stdout): New file.
43698         * doc/functions/stderr.text (stderr): New file.
43699         * doc/gnulib.texi (Function Substitutes): Use new files.
43700         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
43701         prior to 1.7.0.
43702         * tests/test-ftello.c (main): Likewise for ftello.
43703         * tests/test-fseeko.sh: New file.
43704         * tests/test-ftello.sh: New file.
43705         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
43706         with seekable stdin.
43707         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
43708         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
43709         (gl_REPLACE_FSEEKO): New macro.
43710         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
43711         * modules/fseeko (Files): Distribute fseeko.c.
43712         * modules/ftello (Files): Distribute ftello.c.
43713         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
43714         mode.
43715         * lib/ftello.c (rpl_ftello): New file.
43716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
43717         fseeko, ftello.
43718         (gl_STDIN_LARGE_OFFSET): New macro.
43719         * modules/stdio (Makefile.am): Perform the replacement.
43720         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
43721
43722 2007-05-23  Bruno Haible  <bruno@clisp.org>
43723
43724         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
43725         GNULIB_POSIXCHECK is defined.
43726
43727 2007-05-21  Bruno Haible  <bruno@clisp.org>
43728
43729         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
43730         Check also the output for NaN arguments. When cross-compiling, guess
43731         no on IRIX.
43732         * lib/vasnprintf.c: Update comments.
43733         * tests/test-vasnprintf-posix.c (strisnan): New function.
43734         (test_function): Use it.
43735         * tests/test-vasprintf-posix.c (strisnan): New function.
43736         (test_function): Use it.
43737         * tests/test-snprintf-posix.h (strisnan): New function.
43738         (test_function): Use it.
43739         * tests/test-sprintf-posix.h (strisnan): New function.
43740         (test_function): Use it.
43741         Reported by Eric Blake.
43742
43743 2007-05-20  Bruno Haible  <bruno@clisp.org>
43744
43745         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
43746         numbers that fails on BeOS.
43747         * doc/functions/frexpl.texi: Update.
43748
43749 2007-05-20  Jim Meyering  <jim@meyering.net>
43750
43751         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
43752         forced upon us by glibc-2.6.
43753
43754 2007-05-20  Bruno Haible  <bruno@clisp.org>
43755
43756         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
43757         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
43758         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
43759         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
43760         NEED_PRINTF_INFINITE.
43761         (is_infinitel): New function.
43762         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
43763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
43764         gl_PREREQ_VASNPRINTF_INFINITE.
43765         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
43766         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43767         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
43768         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
43769         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
43770         gl_PREREQ_VASNPRINTF_INFINITE.
43771         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43772         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43775         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43777         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43778         * doc/functions/fprintf.texi: Update.
43779         * doc/functions/printf.texi: Update.
43780         * doc/functions/snprintf.texi: Update.
43781         * doc/functions/sprintf.texi: Update.
43782         * doc/functions/vfprintf.texi: Update.
43783         * doc/functions/vprintf.texi: Update.
43784         * doc/functions/vsnprintf.texi: Update.
43785         * doc/functions/vsprintf.texi: Update.
43786
43787 2007-05-20  Bruno Haible  <bruno@clisp.org>
43788
43789         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
43790         was not found in libc.
43791         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43792
43793 2007-05-20  Bruno Haible  <bruno@clisp.org>
43794
43795         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43796         printed as "-nan" instead of "nan".
43797         * tests/test-vasprintf-posix.c (test_function): Likewise.
43798         * tests/test-snprintf-posix.h (test_function): Likewise.
43799         * tests/test-sprintf-posix.h (test_function): Likewise.
43800         Needed for HP-UX 11.
43801
43802 2007-05-20  Jim Meyering  <jim@meyering.net>
43803
43804         Fix buggy test for the fchownat-deref bug.
43805         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
43806         symlink required for the run-test.  Without it, this test would
43807         always declare that fchownat doesn't work, and client code would
43808         unnecessarily use the replacement function with fixed libc.
43809         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
43810         Reported by Greg Schafer.
43811
43812 2007-05-19  Bruno Haible  <bruno@clisp.org>
43813
43814         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
43815         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
43816         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
43817         Needed for IRIX 6.5 and Solaris 2.5.1.
43818
43819 2007-05-19  Bruno Haible  <bruno@clisp.org>
43820
43821         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
43822         (test_function): Skip tests involving -0.0 on platforms where
43823         -0.0 = 0.0.
43824         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
43825         (test_function): Skip tests involving -0.0 on platforms where
43826         -0.0 = 0.0.
43827         * tests/test-snprintf-posix.h (have_minus_zero): New function.
43828         (test_function): Skip tests involving -0.0 on platforms where
43829         -0.0 = 0.0.
43830         * tests/test-sprintf-posix.h (have_minus_zero): New function.
43831         (test_function): Skip tests involving -0.0 on platforms where
43832         -0.0 = 0.0.
43833         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
43834         tests.
43835         * tests/test-printf-posix.h (test_function): Likewise.
43836         * tests/test-printf-posix.output: Remove all -0.0 related results.
43837         Needed for IRIX 6.5.
43838
43839 2007-05-19  Bruno Haible  <bruno@clisp.org>
43840
43841         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43842         printed as "nan0x7fffffff" instead of "nan".
43843         * tests/test-vasprintf-posix.c (test_function): Likewise.
43844         * tests/test-snprintf-posix.h (test_function): Likewise.
43845         * tests/test-sprintf-posix.h (test_function): Likewise.
43846         * tests/test-fprintf-posix.h (NaN): Remove macro.
43847         (test_function): Remove all NaN related tests.
43848         * tests/test-printf-posix.h (NaN): Remove macro.
43849         (test_function): Remove all NaN related tests.
43850         * tests/test-printf-posix.output: Remove all NaN related results.
43851         Needed for IRIX 6.5.
43852
43853 2007-05-19  Bruno Haible  <bruno@clisp.org>
43854
43855         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
43856         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43857
43858 2007-05-19  Bruno Haible  <bruno@clisp.org>
43859
43860         * lib/float_.h: New file.
43861         * m4/float_h.m4: New file.
43862         * modules/float: New file.
43863         * modules/isnanl (Dependencies): Add float.
43864         * modules/isnanl-nolibm (Dependencies): Likewise.
43865         * modules/mathl (Dependencies): Likewise.
43866         * modules/printf-frexpl (Dependencies): Likewise.
43867         * modules/signbit (Dependencies): Likewise.
43868         * modules/vasnprintf (Dependencies): Likewise.
43869         * doc/headers/float.texi: Update.
43870
43871 2007-05-19  Jim Meyering  <jim@meyering.net>
43872
43873         * lib/utimens.c (gl_futimens): Rename from futimens,
43874         now that glibc-2.6 declares futimens.
43875         * lib/utimens.h: Likewise.
43876
43877 2007-05-19  Bruno Haible  <bruno@clisp.org>
43878
43879         Avoid test failures on mingw.
43880         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
43881         * tests/test-printf-posix.sh: Likewise.
43882         * tests/test-vfprintf-posix.sh: Likewise.
43883         * tests/test-vprintf-posix.sh: Likewise.
43884
43885 2007-05-19  Bruno Haible  <bruno@clisp.org>
43886
43887         Fix *printf result for NaN, Inf, -0.0 on mingw.
43888         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
43889         * lib/vasnprintf.c: Include math.h and isnan.h.
43890         (is_infinite_or_zero): New function.
43891         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
43892         values in the %f, %F, %e, %E, %g, %G directives.
43893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
43894         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43895         gl_PRINTF_INFINITE and test its result. Invoke
43896         gl_PREREQ_VASNPRINTF_INFINITE.
43897         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43898         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43904         * doc/functions/fprintf.texi: Update.
43905         * doc/functions/printf.texi: Update.
43906         * doc/functions/snprintf.texi: Update.
43907         * doc/functions/sprintf.texi: Update.
43908         * doc/functions/vfprintf.texi: Update.
43909         * doc/functions/vprintf.texi: Update.
43910         * doc/functions/vsnprintf.texi: Update.
43911         * doc/functions/vsprintf.texi: Update.
43912
43913 2007-05-19  Bruno Haible  <bruno@clisp.org>
43914
43915         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
43916         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
43917         Instead of multiplying with 10^k, set extra_zeroes to k.
43918         (scale10_round_long_double): Remove function.
43919
43920 2007-05-18  Bruno Haible  <bruno@clisp.org>
43921
43922         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
43923         introduced on 2007-05-06.
43924
43925 2007-05-18  Bruno Haible  <bruno@clisp.org>
43926
43927         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
43928         %g directives.
43929         * tests/test-vasprintf-posix.c (test_function): Likewise.
43930         * tests/test-snprintf-posix.h (test_function): Likewise.
43931         * tests/test-sprintf-posix.h (test_function): Likewise.
43932
43933 2007-05-18  Bruno Haible  <bruno@clisp.org>
43934
43935         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
43936         (strmatch): New function.
43937         (test_function): Test the %f directive on numbers of various exponents.
43938         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
43939         (strmatch): New function.
43940         (test_function): Test the %f directive on numbers of various exponents.
43941         * tests/test-snprintf-posix.h (strmatch): New function.
43942         (test_function): Test the %f directive on numbers of various exponents.
43943         * tests/test-sprintf-posix.h (strmatch): New function.
43944         (test_function): Test the %f directive on numbers of various exponents.
43945         * tests/test-snprintf-posix.c (SIZEOF): New macro.
43946         * tests/test-sprintf-posix.c (SIZEOF): New macro.
43947         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
43948         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
43949
43950 2007-05-18  Bruno Haible  <bruno@clisp.org>
43951
43952         Add support for 'long double' number output.
43953         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
43954         * lib/vasnprintf.c: Include math.h and float+.h.
43955         (mp_limb_t): New type.
43956         (GMP_LIMB_BITS): New macro.
43957         (mp_twolimb_t): New type.
43958         (GMP_TWOLIMB_BITS): New macro.
43959         (mpn_t): New type.
43960         (multiply, divide, convert_to_decimal, decode_long_double,
43961         scale10_round_long_double, scale10_round_decimal_long_double,
43962         floorlog10l): New functions.
43963         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
43964         for the %f, %F, %e, %E, %g, %G directives.
43965         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
43966         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43967         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
43968         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
43969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43976         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
43977         * modules/snprintf-posix (Depends-on): Likewise.
43978         * modules/sprintf-posix (Depends-on): Likewise.
43979         * modules/vasnprintf-posix (Depends-on): Likewise.
43980         * modules/vasprintf-posix (Depends-on): Likewise.
43981         * modules/vfprintf-posix (Depends-on): Likewise.
43982         * modules/vsnprintf-posix (Depends-on): Likewise.
43983         * modules/vsprintf-posix (Depends-on): Likewise.
43984         * modules/vasnprintf (Files): Add lib/float+.h.
43985         * doc/functions/fprintf.texi: Update.
43986         * doc/functions/printf.texi: Update.
43987         * doc/functions/snprintf.texi: Update.
43988         * doc/functions/sprintf.texi: Update.
43989         * doc/functions/vfprintf.texi: Update.
43990         * doc/functions/vprintf.texi: Update.
43991         * doc/functions/vsnprintf.texi: Update.
43992         * doc/functions/vsprintf.texi: Update.
43993
43994 2007-05-18  Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
43997
43998 2007-05-18  Bruno Haible  <bruno@clisp.org>
43999
44000         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44001         for printing 64-bit integers. Needed for mingw.
44002
44003 2007-05-18  Bruno Haible  <bruno@clisp.org>
44004
44005         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44006         gl_FUNC_FREXPL_WORKS.
44007         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44008
44009 2007-05-18  Bruno Haible  <bruno@clisp.org>
44010
44011         * modules/frexpl-nolibm-tests: New file.
44012
44013         * modules/frexpl-nolibm: New file.
44014         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44015
44016 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44017
44018         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44019         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44020         GCC 4.2, which otherwise issues a lot of warnings.
44021         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44022         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44023         Likewise.
44024         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44025         * modules/iconv_open (iconv.h): Likewise.
44026         * modules/locale (locale.h): Likewise.
44027         * modules/netinet_in (netinet/in.h): Likewise.
44028         * modules/sys_select (sys_select.h): Likewise.
44029         * modules/sys_socket (sys/socket.h): Likewise.
44030         * modules/sys_stat (sys/stat.h): Likewise.
44031         * modules/sysexits (sysexits.h): Likewise.
44032         * modules/unistd (unistd.h): Likewise.
44033
44034 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44035
44036         * modules/closein-tests (Makefile.am): Distribute
44037         `test-closein.sh'.
44038
44039 2007-05-17  Bruno Haible  <bruno@clisp.org>
44040
44041         * tests/test-printf-posix.output: Renamed from
44042         tests/test-fprintf-posix.out.
44043         * modules/fprintf-posix-tests: Update.
44044         * modules/printf-posix-tests: Update.
44045         * modules/vfprintf-posix-tests: Update.
44046         * modules/vprintf-posix-tests: Update.
44047         * tests/test-fprintf-posix.sh: Update.
44048         * tests/test-printf-posix.sh: Update.
44049         * tests/test-vfprintf-posix.sh: Update.
44050         * tests/test-vprintf-posix.sh: Update.
44051         Reported by Ralf Wildenhues.
44052
44053 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44054
44055         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44056         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44057         GCC 4.2, which otherwise issues a lot of warnings.
44058         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44059         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44060         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44061         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44062         it should no longer be needed.
44063         * lib/string_.h: Likewise.
44064         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44065         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44066         * modules/inttypes (inttypes.h): Likewise.
44067         * modules/math (math.h): Likewise.
44068         * modules/search (search.h): Likewise.
44069         * modules/signal (signal.h): Likewise.
44070         * modules/stdint (stdint.h): Likewise.
44071         * modules/stdio (stdio.h): Likewise.
44072         * modules/stdlib (stdlib.h): Likewise.
44073         * modules/string (string.h): Likewise.
44074         * modules/sys_time (sys/time.h): Likewise.
44075         * modules/time (time.h): Likewise.
44076         * modules/wchar (wchar.h): Likewise.
44077         * modules/wctype (wtype.h): Likewise.
44078
44079 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44080
44081         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44082
44083 2007-05-13  Bruno Haible  <bruno@clisp.org>
44084
44085         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44086         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44087         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44088         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44089         (gl_PREREQ_STRTOK_R): Don't require it here.
44090
44091 2007-05-13  Bruno Haible  <bruno@clisp.org>
44092
44093         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44094         when used in C++ mode.
44095
44096 2007-05-12  Bruno Haible  <bruno@clisp.org>
44097
44098         * lib/linebuffer.h: Tweak doc.
44099         * lib/linebuffer.c: Likewise.
44100
44101 2007-05-12  James Youngman  <jay@gnu.org>
44102
44103         * lib/linebuffer.c (readlinebuffer_delim): New function,
44104         like readlinebuffer, but use a caller-specified delimiter.
44105         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44106         as the delimiter.
44107         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44108
44109 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44110
44111         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44112         * modules/openat (Files): Remove openat-die.c.
44113         (Depends-on): Add openat-die.
44114         * modules/openat-die: New module.
44115
44116 2007-05-06  Bruno Haible  <bruno@clisp.org>
44117
44118         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44119         Update with info about Cygwin.
44120         * doc/functions/fprintf.texi: Update.
44121         * doc/functions/printf.texi: Update.
44122         * doc/functions/snprintf.texi: Update.
44123         * doc/functions/sprintf.texi: Update.
44124         * doc/functions/vfprintf.texi: Update.
44125         * doc/functions/vprintf.texi: Update.
44126         * doc/functions/vsnprintf.texi: Update.
44127         * doc/functions/vsprintf.texi: Update.
44128         Reported by Eric Blake.
44129
44130 2007-05-06  Bruno Haible  <bruno@clisp.org>
44131
44132         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44133         padding ourselves for the floating-point directives.
44134         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44136         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44137         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44138         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44139         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44143         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44145         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44146         * tests/test-snprintf-posix.h (test_function): Also check the width
44147         and some flags in the %f directive.
44148         * tests/test-sprintf-posix.h (test_function): Likewise.
44149         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44150         * tests/test-vasprintf-posix.c (test_function): Likewise.
44151         * doc/functions/fprintf.texi: Update.
44152         * doc/functions/printf.texi: Update.
44153         * doc/functions/snprintf.texi: Update.
44154         * doc/functions/sprintf.texi: Update.
44155         * doc/functions/vfprintf.texi: Update.
44156         * doc/functions/vprintf.texi: Update.
44157         * doc/functions/vsnprintf.texi: Update.
44158         * doc/functions/vsprintf.texi: Update.
44159
44160 2007-05-06  Bruno Haible  <bruno@clisp.org>
44161
44162         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44163         pass the ' flag character to sprintf or snprintf.
44164         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44167         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44168         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44170         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44171         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44172         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44173         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44174         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44175         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44176         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44177         flag.
44178         * tests/test-sprintf-posix.h (test_function): Likewise.
44179         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44180         * tests/test-vasprintf-posix.c (test_function): Likewise.
44181         * doc/functions/fprintf.texi: Update.
44182         * doc/functions/printf.texi: Update.
44183         * doc/functions/snprintf.texi: Update.
44184         * doc/functions/sprintf.texi: Update.
44185         * doc/functions/vfprintf.texi: Update.
44186         * doc/functions/vprintf.texi: Update.
44187         * doc/functions/vsnprintf.texi: Update.
44188         * doc/functions/vsprintf.texi: Update.
44189
44190 2007-05-01  Bruno Haible  <bruno@clisp.org>
44191
44192         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44193
44194 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44195
44196         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44197         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44198
44199 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44200
44201         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44202         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44203         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44204
44205 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44206
44207         * lib/argp-help.c (struct hol_entry): New member `ord'.
44208         (HOL_ENTRY_PTRCMP): Use ord for comparison
44209         (hol_sort): Initialize ord.
44210
44211 2007-05-01  Bruno Haible  <bruno@clisp.org>
44212
44213         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44214         Reported by Eric Blake.
44215         * doc/gnulib.texi (Function Substitutes): Update.
44216
44217 2007-05-01  Bruno Haible  <bruno@clisp.org>
44218
44219         * doc/functions.texi: Remove file, now redundant through
44220         doc/functions/*.texi.
44221
44222 2007-05-01  Bruno Haible  <bruno@clisp.org>
44223
44224         * modules/argp (Depends-on): Add sleep.
44225
44226 2007-05-01  Bruno Haible  <bruno@clisp.org>
44227
44228         * modules/sleep-tests: New file.
44229         * tests/test-sleep.c: New file.
44230
44231         * modules/sleep: New file.
44232         * lib/sleep.c: New file.
44233         * m4/sleep.m4: New file.
44234         * lib/unistd_.h (sleep): New declaration.
44235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44236         HAVE_SLEEP.
44237         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44238         * doc/functions/sleep.texi: Document the sleep module.
44239
44240 2007-05-01  Bruno Haible  <bruno@clisp.org>
44241
44242         * lib/sigprocmask.h: Remove file.
44243         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44244         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44245         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44246         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44247         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44248         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44249         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44250         HAVE_SIGSET_T as a shell variable.
44251         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44252         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44253         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44254         (Depends-on): Add signal. Remove verify.
44255         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44256         (Include): Mention <signal.h> instead of sigprocmask.h.
44257         * NEWS: Mention the change.
44258         * lib/fatal-signal.c: Don't include sigprocmask.h.
44259
44260 2007-05-01  Bruno Haible  <bruno@clisp.org>
44261
44262         * modules/signal: New file.
44263         * lib/signal_.h: New file.
44264         * m4/signal_h.m4: New file.
44265
44266 2007-05-01  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44269         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44270         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44271         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44272
44273 2007-05-01  Bruno Haible  <bruno@clisp.org>
44274
44275         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44276         configure time.
44277         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44278         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44279         * modules/sys_stat (Makefile.am): Substitute their values into
44280         sys/stat.h.
44281
44282 2007-05-01  Bruno Haible  <bruno@clisp.org>
44283
44284         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44285         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44286         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44287
44288 2007-05-01  Bruno Haible  <bruno@clisp.org>
44289
44290         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44291         'assert' module here.
44292
44293 2007-05-01  Bruno Haible  <bruno@clisp.org>
44294
44295         * doc/functions/*.texi: New files.
44296         * doc/functions/google-ranking.txt: New file.
44297         * doc/gnulib.texi (Function Substitutes): New chapter.
44298         (ctime, inet_ntoa): Remove sections.
44299         * doc/ctime.texi: Remove file.
44300         * doc/inet_ntoa.texi: Remove file.
44301         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44302         dependencies.
44303         (%.info): New rule, specifying a --reference-limit.
44304
44305 2007-05-01  Bruno Haible  <bruno@clisp.org>
44306
44307         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44308
44309 2007-05-01  Bruno Haible  <bruno@clisp.org>
44310
44311         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44312         the portability of 'mkdir' to mingw systems.
44313
44314 2007-05-01  Bruno Haible  <bruno@clisp.org>
44315
44316         * doc/headers/google-ranking.txt: New file.
44317
44318 2007-04-30  Eric Blake  <ebb9@byu.net>
44319
44320         Prefer fseeko to fseek.
44321         * modules/getpass (Depends-on): Add fseeko.
44322         * lib/getpass.c (getpass): Use fseeko, not fseek.
44323
44324 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44325
44326         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44327         assumes the sorting is stable, while most qsort implementations
44328         are not.  Use argument addresses to ensure they never compare as
44329         equal.
44330
44331         * tests/test-argp-2.sh (usage-indent test): Fix output
44332         (func_compare): Restore diff options
44333         * tests/test-argp.c: Restore #include "progname.h"
44334
44335 2007-04-29  Bruno Haible  <bruno@clisp.org>
44336
44337         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44338         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44339         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44341         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44342         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44343         (TESTS, check_PROGRAMS): Add test-snprintf.
44344         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44345         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44346         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44347         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44348         assertions that fail on HP-UX, OSF/1, or IRIX.
44349         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44350
44351 2007-04-29  Bruno Haible  <bruno@clisp.org>
44352
44353         * MODULES.html.sh (posix_functions): Remove 'contents'.
44354
44355 2007-04-29  Karl Berry  <karl@gnu.org>
44356
44357         * config/srclist.txt (gendocs_template_min): new entry.
44358
44359 2007-04-29  Bruno Haible  <bruno@clisp.org>
44360
44361         Work around fpurge bug on BSD systems.
44362         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44363         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44364         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44365         fpurge to rpl_fpurge if the system already has this function.
44366         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44367         the case where the system already has this function. Correct invariants
44368         on BSD systems.
44369         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44370         BSD systems.
44371
44372 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44373
44374         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44375         proposed by Sven Verdoolaege.
44376
44377         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44378         options.
44379         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44380         (usage and help tests): Update
44381
44382 2007-04-29  Bruno Haible  <bruno@clisp.org>
44383
44384         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44385         Print more information in case of failure. Disable a test on BeOS.
44386
44387 2007-04-29  Bruno Haible  <bruno@clisp.org>
44388
44389         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44390         This helps debugging on systems on which no gdb is available.
44391
44392 2007-04-29  Bruno Haible  <bruno@clisp.org>
44393
44394         * lib/freading.h: Improve comments.
44395         * lib/fwriting.h: Likewise.
44396         * tests/test-freading.c (main): Don't check freading immediately after
44397         repositioning. Needed for glibc.
44398
44399 2007-04-29  Bruno Haible  <bruno@clisp.org>
44400
44401         * lib/freading.c (freading): Trivial simplification.
44402
44403 2007-04-28  Bruno Haible  <bruno@clisp.org>
44404
44405         * tests/test-fwriting.c (main): Also test the interaction between
44406         fflush and fwriting.
44407         * modules/fwriting-tests (Depends-on): Add fflush.
44408
44409         * tests/test-freading.c (main): Also test the interaction between
44410         fflush and freading.
44411         * modules/freading-tests (Depends-on): Add fflush.
44412
44413 2007-04-28  Bruno Haible  <bruno@clisp.org>
44414
44415         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44416         fseeko and ftello.
44417         Suggested by Eric Blake.
44418
44419 2007-04-28  Jim Meyering  <jim@meyering.net>
44420
44421         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44422         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44423         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44424
44425 2007-04-27  Eric Blake  <ebb9@byu.net>
44426
44427         * doc/headers/assert.texi (assert.h): Document assert module use.
44428
44429 2007-04-27  Bruno Haible  <bruno@clisp.org>
44430
44431         * doc/headers/*.texi: New files.
44432         * doc/gnulib.texi (Header File Substitutes): New chapter.
44433         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44434         dependencies.
44435         (standards.info ,standards.html, standards.dvi): Update dependencies.
44436         (mostlyclean, clean): New targets.
44437
44438 2007-04-27  Bruno Haible  <bruno@clisp.org>
44439
44440         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44441         * modules/sysexits (Files, Makefile.am): Update.
44442
44443         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44444         * modules/sys_socket (Files, Makefile.am): Update.
44445
44446         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44447         * modules/sys_stat (Files, Makefile.am): Update.
44448
44449 2007-04-27  Eric Blake  <ebb9@byu.net>
44450
44451         * lib/freading.h: Improve comments.
44452         * lib/fwriting.h: Likewise.
44453         * lib/fflush.c: Likewise.
44454
44455         Fix closein for mingw.
44456         * modules/closein-tests: Add tests for closein.
44457         * tests/test-closein.c: New file.
44458         * tests/test-closein.sh: Likewise.
44459         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44460         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44461
44462 2007-04-27  Bruno Haible  <bruno@clisp.org>
44463
44464         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44465         version is < 6.
44466         * lib/math_.h [__DECC]: Likewise.
44467         * lib/stdio_.h [__DECC]: Likewise.
44468         * lib/stdlib_.h [__DECC]: Likewise.
44469         * lib/string_.h [__DECC]: Likewise.
44470         * lib/time_.h [__DECC]: Likewise.
44471         * lib/wchar_.h [__DECC]: Likewise.
44472         * lib/wctype_.h [__DECC]: Likewise.
44473
44474 2007-04-27  Bruno Haible  <bruno@clisp.org>
44475
44476         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44477
44478 2007-04-27  Bruno Haible  <bruno@clisp.org>
44479
44480         * lib/fflush.c: Add comments.
44481         * modules/fpurge-tests (Depends-on): Add fflush.
44482         * modules/freadable-tests (Depends-on): Likewise.
44483         * modules/fwritable-tests (Depends-on): Likewise.
44484
44485 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
44486
44487         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
44488         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
44489         Report by Bruno Haible <bruno@clisp.org>.
44490
44491 2007-04-26  Eric Blake  <ebb9@byu.net>
44492
44493         Fix fflush on mingw.
44494         * modules/fflush (Depends-on): Add freading.
44495         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
44496         but unread data.
44497
44498 2007-04-26  Eric Blake  <ebb9@byu.net>
44499         and Bruno Haible  <bruno@clisp.org>
44500
44501         Implement freading and fwriting.
44502         * lib/freading.c: New file.
44503         * lib/freading.h: Likewise.
44504         * m4/freading.m4: Likewise.
44505         * modules/freading: Likewise.
44506         * modules/freading-tests: Likewise.
44507         * tests/test-freading.c: Likewise.
44508         * lib/fwriting.c: New file.
44509         * lib/fwriting.h: Likewise.
44510         * m4/fwriting.m4: Likewise.
44511         * modules/fwriting: Likewise.
44512         * modules/fwriting-tests: Likewise.
44513         * tests/test-fwriting.c: Likewise.
44514         * MODULES.html.sh (File stream based Input/Output): Mention them.
44515
44516 2007-04-26  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44519         'long' when we assume it.
44520         Suggested by Eric Blake.
44521
44522 2007-04-26  Bruno Haible  <bruno@clisp.org>
44523
44524         Ensure fseeko, ftello are declared on glibc systems.
44525         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44526         * modules/fseeko (configure.ac-early): Likewise.
44527         * modules/ftello (configure.ac-early): Likewise.
44528         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44529         AC_FUNC_FSEEKO for this.
44530         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44531         (gl_CHECK_FSEEKO): Remove macro.
44532
44533 2007-04-26  Bruno Haible  <bruno@clisp.org>
44534
44535         * tests/test-fflush.c (main): Also check the ftell result after
44536         fflush and fseek/fseeko.
44537         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44538         file descriptor position cache in the stream.
44539         * lib/fseeko.c (rpl_fseeko): Likewise.
44540
44541 2007-04-26  Bruno Haible  <bruno@clisp.org>
44542
44543         * modules/fflush-tests (Depends-on): Add fseeko.
44544
44545 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44546             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44547
44548         * lib/argz_.h: ensure error_t definition is obtained in same
44549         mechanism system argz.h would have.
44550         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
44551         argz facilities are known bad.  Err on the side of caution if
44552         cross-compiling.
44553
44554 2007-04-25  Eric Blake  <ebb9@byu.net>
44555
44556         * lib/fpurge.c (includes): Use stdlib.h for free.
44557         * tests/test-fflush.c (main): Also test fflush-fseeko.
44558
44559 2007-04-25  Bruno Haible  <bruno@clisp.org>
44560
44561         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
44562         * lib/fseeko.c: New file.
44563         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
44564         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44565         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
44566         gl_FUNC_FSEEKO.
44567         (gl_FUNC_FSEEKO): Invoke it.
44568         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
44569         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
44570         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
44571
44572 2007-04-25  Bruno Haible  <bruno@clisp.org>
44573
44574         * modules/fflush (Depends-on): Add ftello.
44575
44576 2007-04-25  Bruno Haible  <bruno@clisp.org>
44577
44578         * modules/ftello-tests: New file.
44579         * tests/test-ftello.c: New file.
44580
44581         * modules/ftello: New file.
44582         * m4/ftello.m4: New file.
44583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
44584         HAVE_FTELLO.
44585         * lib/stdio_.h (ftello): New declaration.
44586         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
44587         HAVE_FTELLO.
44588
44589 2007-04-25  Bruno Haible  <bruno@clisp.org>
44590
44591         * modules/fseeko-tests: New file.
44592         * tests/test-fseeko.c: New file.
44593
44594         * modules/fseeko: New file.
44595         * m4/fseeko.m4: New file.
44596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
44597         HAVE_FSEEKO.
44598         * lib/stdio_.h (fseeko): New declaration.
44599         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
44600         HAVE_FSEEKO.
44601
44602 2007-04-25  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
44605
44606 2007-04-25  Bruno Haible  <bruno@clisp.org>
44607
44608         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
44609         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
44610         * tests/test-unistd.c: Likewise.
44611         * tests/test-fcntl.c: Likewise.
44612
44613 2007-04-23  Eric Blake  <ebb9@byu.net>
44614
44615         * lib/fflush.c: Fix missing include.
44616         Reported by Bruno Haible.
44617
44618 2007-04-23  Bruno Haible  <bruno@clisp.org>
44619
44620         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
44621         Reported by Eric Blake.
44622
44623 2007-04-23  Bruno Haible  <bruno@clisp.org>
44624
44625         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
44626
44627 2007-04-23  Bruno Haible  <bruno@clisp.org>
44628
44629         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
44630
44631 2007-04-23  Bruno Haible  <bruno@clisp.org>
44632
44633         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
44634         Needed on HP-UX 11.
44635
44636 2007-04-16  Eric Blake  <ebb9@byu.net>
44637
44638         Make fflush rely on fpurge.
44639         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
44640         open coding all variants.
44641         * modules/fflush (Depends-on): Add fpurge and unistd.
44642         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
44643         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
44644
44645         Fix --with-tests compilation on cygwin.
44646         * modules/argmatch-tests (Makefile.am): List gnulib library first
44647         in LDADD.
44648         * modules/argp-tests (Makefile.am): Likewise.
44649         * modules/array-list-tests (Makefile.am): Likewise.
44650         * modules/array-oset-tests (Makefile.am): Likewise.
44651         * modules/avltree-list-tests (Makefile.am): Likewise.
44652         * modules/avltree-oset-tests (Makefile.am): Likewise.
44653         * modules/avltreehash-list-tests (Makefile.am): Likewise.
44654         * modules/carray-list-tests (Makefile.am): Likewise.
44655         * modules/dirname-tests (Makefile.am): Likewise.
44656         * modules/frexp-tests (Makefile.am): Likewise.
44657         * modules/isnanl-tests (Makefile.am): Likewise.
44658         * modules/linked-list-tests (Makefile.am): Likewise.
44659         * modules/linkedhash-list-tests (Makefile.am): Likewise.
44660         * modules/lock-tests (Makefile.am): Likewise.
44661         * modules/rbtree-list-tests (Makefile.am): Likewise.
44662         * modules/rbtree-oset-tests (Makefile.am): Likewise.
44663         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
44664         * modules/tls-tests (Makefile.am): Likewise.
44665         * modules/tsearch-tests (Makefile.am): Likewise.
44666         * modules/xvasprintf-tests (Makefile.am): Likewise.
44667
44668         Fix fpurge for cygwin.
44669         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
44670         value.
44671         * modules/fpurge-tests (Depends-on): Clean up trash.
44672
44673 2007-04-16  Simon Josefsson  <simon@josefsson.org>
44674
44675         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
44676
44677         * m4/autobuild.m4: Re-indent.
44678
44679 2007-04-13  Bruno Haible  <bruno@clisp.org>
44680
44681         * modules/fpurge-tests: New file.
44682         * tests/test-fpurge.c: New file.
44683
44684         * modules/fpurge: New file.
44685         * lib/fpurge.h: New file.
44686         * lib/fpurge.c: New file.
44687         * m4/fpurge.m4: New file.
44688
44689 2007-04-13  Bruno Haible  <bruno@clisp.org>
44690
44691         * modules/fbufmode-tests: New file.
44692         * tests/test-fbufmode.c: New file.
44693
44694         * modules/fbufmode: New file.
44695         * lib/fbufmode.h: New file.
44696         * lib/fbufmode.c: New file.
44697         * m4/fbufmode.m4: New file.
44698
44699 2007-04-13  Bruno Haible  <bruno@clisp.org>
44700
44701         * modules/fwritable-tests: New file.
44702         * tests/test-fwritable.c: New file.
44703
44704         * modules/fwritable: New file.
44705         * lib/fwritable.h: New file.
44706         * lib/fwritable.c: New file.
44707         * m4/fwritable.m4: New file.
44708
44709 2007-04-13  Bruno Haible  <bruno@clisp.org>
44710
44711         * modules/freadable-tests: New file.
44712         * tests/test-freadable.c: New file.
44713
44714         * modules/freadable: New file.
44715         * lib/freadable.h: New file.
44716         * lib/freadable.c: New file.
44717         * m4/freadable.m4: New file.
44718
44719 2007-04-13  Bruno Haible  <bruno@clisp.org>
44720
44721         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
44722         MOSTLYCLEANFILES.
44723
44724 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44725
44726         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
44727         gzip bootstrap.conf to avoid dragging in i18n machinery.
44728         (gnulib_tool_option): Use it.
44729
44730 2007-04-13  Bruno Haible  <bruno@clisp.org>
44731
44732         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
44733         %F directives.
44734         * tests/test-vasprintf-posix.c (test_function): Likewise.
44735         * tests/test-snprintf-posix.h (test_function): Likewise.
44736         * tests/test-sprintf-posix.h (test_function): Likewise.
44737         * tests/test-fprintf-posix.h (test_function): Likewise.
44738         * tests/test-printf-posix.h (test_function): Likewise.
44739         * tests/test-fprintf-posix.out: Likewise.
44740
44741 2007-04-13  Bruno Haible  <bruno@clisp.org>
44742
44743         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
44744         * modules/tls-tests (configure.ac): Likewise.
44745         Reported by Arto C. Nirkko <anirkko@insel.ch>.
44746
44747 2007-04-13  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/tls.c (glthread_tls_get): Fix return type.
44750         Patch by Arto C. Nirkko <anirkko@insel.ch>.
44751
44752 2007-04-12  Eric Blake  <ebb9@byu.net>
44753
44754         * modules/gettime (Depends-on): Remove gettime.
44755         Reported by Dmitry V. Levin.
44756
44757 2007-04-12  Bruno Haible  <bruno@clisp.org>
44758
44759         * modules/fflush (Include): Mention <stdio.h>.
44760         * modules/strtoimax (Include): Mention <inttypes.h>.
44761         * modules/strtoumax (Include): Likewise.
44762
44763 2007-04-12  Eric Blake  <ebb9@byu.net>
44764
44765         * .cvsignore: New file.
44766         * .gitignore: Likewise.
44767
44768 2007-04-12  Bruno Haible  <bruno@clisp.org>
44769
44770         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
44771         not before, since $(LDADD) often contains libgnu.a.
44772         * modules/striconv-tests (test_striconv_LDADD): Likewise.
44773         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
44774         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
44775         Needed on Cygwin.
44776
44777 2007-04-12  Eric Blake  <ebb9@byu.net>
44778
44779         Work around glibc's failure to flush stdin on fclose.
44780         * lib/closein.c (close_stdin): Flush stdin before closing.
44781
44782         Work around glibc's failure to reset seekable stdin on exit.
44783         * modules/closein: New module.
44784         * lib/closein.c: New file.
44785         * lib/closein.h: Likewise.
44786         * m4/closein.m4: Likewise.
44787         * MODULES.html.sh (File stream based Input/Output): Document it.
44788
44789 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44790
44791         * gnulib-tool: Rename generated 'autobuild' script to
44792         'do-autobuild' in --create-megatestdir output.
44793
44794         * doc/gnulib.texi (Build robot for gnulib): Fix.
44795
44796 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44797
44798         * modules/sysexits (Depends-on): Add absolute-header.
44799
44800 2007-04-12  Eric Blake  <ebb9@byu.net>
44801
44802         No need to preserve errno on success.
44803         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
44804         Reported by Bruno Haible.
44805
44806 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44807
44808         * MODULES.html.sh (Support for maintaining and releasing
44809         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
44810
44811 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44812
44813         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
44814
44815 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44816
44817         * modules/autobuild: New module.
44818
44819         * m4/autobuild.m4: New file.
44820
44821 2007-04-11  Bruno Haible  <bruno@clisp.org>
44822
44823         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
44824         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
44825         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
44826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
44827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44828         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44829         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44830         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44831         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44832         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
44834         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44835         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
44837         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44838         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44839         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
44840         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44841         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
44843         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44844         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44845         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
44846         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44847         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44848         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
44849         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44850         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44851         Reported by Eric Blake.
44852
44853 2007-04-11  Bruno Haible  <bruno@clisp.org>
44854
44855         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
44856
44857 2007-04-10  Bruno Haible  <bruno@clisp.org>
44858
44859         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
44860         for NaN and Infinity. Needed on FreeBSD 6.1.
44861         * tests/test-vasnprintf-posix.c (test_function): Undo last change
44862         regarding results for "%010a" of Infinity and NaN.
44863         * tests/test-vasprintf-posix.c (test_function): Likewise.
44864         * tests/test-snprintf-posix.h (test_function): Likewise.
44865         * tests/test-sprintf-posix.h (test_function): Likewise.
44866         * tests/test-fprintf-posix.h (test_function): Likewise.
44867         * tests/test-printf-posix.h (test_function): Likewise.
44868         * tests/test-fprintf-posix.out: Likewise.
44869
44870 2007-04-10  Bruno Haible  <bruno@clisp.org>
44871
44872         * modules/locale-tests: New file.
44873         * tests/test-locale.c: New file.
44874
44875         * modules/locale: New file.
44876         * lib/locale_.h: New file.
44877         * m4/locale_h.m4: New file.
44878
44879 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
44880             Bruno Haible  <bruno@clisp.org>
44881
44882         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
44883         be determined, test for availability of the copysignf, copysign,
44884         copysignl functions.
44885         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
44886         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
44887         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
44888
44889 2007-04-09  Eric Blake  <ebb9@byu.net>
44890
44891         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
44892         * modules/stdio (Makefile.am): Support fflush.
44893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44894         * modules/fflush: New file.
44895         * lib/fflush.c: Likewise.
44896         * m4/fflush.m4: Likewise.
44897         * modules/fflush-tests: New test.
44898         * tests/test-fflush.c: Likewise.
44899         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
44900
44901 2007-04-06  Bruno Haible  <bruno@clisp.org>
44902
44903         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
44904         (VASNPRINTF): Use signbit for faster determination whether to print a
44905         minus sign.
44906         * modules/vasnprintf (Files): Remove lib/float+.h.
44907         * modules/fprintf-posix (Depends-on): Add signbit.
44908         * modules/snprintf-posix (Depends-on): Likewise.
44909         * modules/sprintf-posix (Depends-on): Likewise.
44910         * modules/vasnprintf-posix (Depends-on): Likewise.
44911         * modules/vasprintf-posix (Depends-on): Likewise.
44912         * modules/vfprintf-posix (Depends-on): Likewise.
44913         * modules/vsnprintf-posix (Depends-on): Likewise.
44914         * modules/vsprintf-posix (Depends-on): Likewise.
44915
44916 2007-04-06  Bruno Haible  <bruno@clisp.org>
44917
44918         * tests/test-frexp.c (main): Test also the sign bit of zero results.
44919         * tests/test-frexpl.c (main): Likewise.
44920         * tests/test-ldexpl.c (main): Likewise.
44921         * modules/frexp-tests (Depends-on): Add signbit.
44922         * modules/frexpl-tests (Depdends-on): Likewise.
44923         * modules/ldexpl-tests (Depdends-on): Likewise.
44924
44925 2007-04-06  Bruno Haible  <bruno@clisp.org>
44926
44927         * modules/signbit-tests: New file.
44928         * tests/test-signbit.c: New file.
44929
44930         * modules/signbit: New file.
44931         * lib/signbitf.c: New file.
44932         * lib/signbitd.c: New file.
44933         * lib/signbitl.c: New file.
44934         * m4/signbit.m4: New file.
44935         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
44936         (signbit): New macro.
44937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
44938         REPLACE_SIGNBIT.
44939         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
44940         REPLACE_FREXPL into math.h.
44941
44942 2007-04-06  Bruno Haible  <bruno@clisp.org>
44943
44944         * modules/isnanf-nolibm-tests: New file.
44945         * tests/test-isnanf.c: New file.
44946
44947         * modules/isnanf-nolibm: New file.
44948         * lib/isnanf.h: New file.
44949         * lib/isnanf.c: New file.
44950         * lib/isnan.c: Consider the USE_FLOAT macro.
44951         * m4/isnanf.m4: New file.
44952
44953 2007-04-06  Bruno Haible  <bruno@clisp.org>
44954
44955         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
44956         (Link): New section.
44957
44958         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
44959
44960 2007-04-06  Bruno Haible  <bruno@clisp.org>
44961
44962         Assume the 'long double' type.
44963         * m4/longdouble.m4: Remove file.
44964         * config/srclist.txt: Don't mention longdouble.m4.
44965         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
44966         * lib/float+.h: Likewise.
44967         * lib/frexp.c: Likewise.
44968         * lib/printf-args.h: Likewise.
44969         * lib/printf-args.c: Likewise.
44970         * lib/printf-frexp.c: Likewise.
44971         * lib/printf-parse.c: Likewise.
44972         * lib/vasnprintf.c: Likewise.
44973         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
44974         * m4/intl.m4: Likewise.
44975         * m4/isnanl.m4: Likewise.
44976         * m4/printf.m4: Likewise.
44977         * m4/printf-frexpl.m4: Likewise.
44978         * m4/vasnprintf.m4: Likewise.
44979         * modules/allocsa (Files): Remove m4/longdouble.m4.
44980         * modules/gettext (Files): Likewise.
44981         * modules/relocatable-prog-wrapper (Files): Likewise.
44982         * modules/vasnprintf (Files): Likewise.
44983         * modules/isnanl (Files): Likewise.
44984         (Include): Simplify.
44985         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
44986         (Include): Simplify.
44987         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
44988         (Include): Simplify.
44989         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
44990         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44991         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
44992         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44993         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44994         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44995         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
44996         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44997         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
44998         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
44999         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45000         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45001         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45002         * tests/test-isnanl.c: Likewise.
45003         * tests/test-snprintf-posix.h: Likewise.
45004         * tests/test-sprintf-posix.h: Likewise.
45005         * tests/test-vasnprintf-posix.c: Likewise.
45006         * tests/test-vasnprintf-posix2.c: Likewise.
45007         * tests/test-vasprintf-posix.c: Likewise.
45008
45009 2007-04-06  Bruno Haible  <bruno@clisp.org>
45010
45011         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45012         * lib/math_.h [__DECC]: Include the overridden include file through
45013         #include_next, outside the double-inclusion guard.
45014         * lib/stdio_.h [__DECC]: Likewise.
45015         * lib/stdlib_.h [__DECC]: Likewise.
45016         * lib/string_.h [__DECC]: Likewise.
45017         * lib/time_.h [__DECC]: Likewise.
45018         * lib/wchar_.h [__DECC]: Likewise.
45019         * lib/wctype_.h [__DECC]: Likewise.
45020         * lib/inttypes_.h [__DECC]: Likewise.
45021         Reported by Albert Chin <china@thewrittenword.com> in
45022         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45023
45024 2007-04-04  Eric Blake  <ebb9@byu.net>
45025
45026         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45027         1.5.x.
45028
45029 2007-04-04  Bruno Haible  <bruno@clisp.org>
45030
45031         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45032         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45033
45034 2007-04-04  Bruno Haible  <bruno@clisp.org>
45035
45036         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45037         results for "%010a" of Infinity and NaN.
45038         * tests/test-vasprintf-posix.c (test_function): Likewise.
45039         * tests/test-snprintf-posix.h (test_function): Likewise.
45040         * tests/test-sprintf-posix.h (test_function): Likewise.
45041         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45042         * tests/test-printf-posix.h (test_function): Likewise.
45043         * tests/test-fprintf-posix.out: Update.
45044         Needed for FreeBSD 6.1.
45045
45046 2007-04-04  Bruno Haible  <bruno@clisp.org>
45047
45048         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45049         directly used by the gnulib modules nor by gnulib-tool.
45050
45051 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45052
45053         * DEPENDENCIES: Give overall description of version dependency
45054         desirability.  Use more-typical names for apps.
45055         Add shell, coreutils, diffutils, grep, tar, gzip.
45056
45057 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45058
45059         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45060
45061 2007-04-04  Karl Berry  <karl@gnu.org>
45062
45063         * MODULES.html.sh (func_module): missing '.
45064
45065 2007-04-03  Bruno Haible  <bruno@clisp.org>
45066
45067         * modules/argmatch-tests (Makefile.am): New variable
45068         test_argmatch_LDADD.
45069         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45070         * modules/array-list-tests (Makefile.am): New variable
45071         test_array_list_LDADD.
45072         * modules/array-oset-tests (Makefile.am): New variable
45073         test_array_oset_LDADD.
45074         * modules/avltree-list-tests (Makefile.am): New variable
45075         test_avltree_list_LDADD.
45076         * modules/avltree-oset-tests (Makefile.am): New variable
45077         test_avltree_oset_LDADD.
45078         * modules/avltreehash-list-tests (Makefile.am): New variable
45079         test_avltreehash_list_LDADD.
45080         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45081         test_canonicalize_lgpl_LDADD.
45082         * modules/carray-list-tests (Makefile.am): New variable
45083         test_carray_list_LDADD.
45084         * modules/dirname-tests (Makefile.am): New variable
45085         test_dirname_LDADD.
45086         * modules/linked-list-tests (Makefile.am): New variable
45087         test_linked_list_LDADD.
45088         * modules/linkedhash-list-tests (Makefile.am): New variable
45089         test_linkedhash_list_LDADD.
45090         * modules/rbtree-list-tests (Makefile.am): New variable
45091         test_rbtree_list_LDADD.
45092         * modules/rbtree-oset-tests (Makefile.am): New variable
45093         test_rbtree_oset_LDADD.
45094         * modules/rbtreehash-list-tests (Makefile.am): New variable
45095         test_rbtreehash_list_LDADD.
45096         * modules/xvasprintf-tests (Makefile.am): New variable
45097         test_xvasprintf_LDADD.
45098         Reported by Eric Blake.
45099
45100 2007-04-03  Eric Blake  <ebb9@byu.net>
45101
45102         * DEPENDENCIES: Weaken m4 requirements.
45103
45104 2007-04-03  Bruno Haible  <bruno@clisp.org>
45105
45106         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45107         * modules/isnanl-tests (configure.ac): Likewise.
45108
45109 2007-04-03  Ben Pfaff  <blp@gnu.org>
45110
45111         * modules/iconv_open: Add $(srcdir)/ to source directory
45112         references in Makefile fragments that call gperf, to fix VPATH
45113         builds.
45114
45115 2007-04-03  Bruno Haible  <bruno@clisp.org>
45116
45117         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45118         * lib/ldexpl.c: Undo last change.
45119
45120 2007-04-03  Bruno Haible  <bruno@clisp.org>
45121
45122         * modules/printf-frexpl (Depends-on): Undo last change.
45123         (Files): Add m4/ldexpl.m4.
45124
45125 2007-04-03  Bruno Haible  <bruno@clisp.org>
45126
45127         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45128         * modules/isnanl (Link): New section.
45129
45130         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45131         * modules/frexp (Link): New section.
45132
45133         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45134         * modules/frexpl (Link): New section.
45135
45136         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45137         * modules/ldexpl (Link): New section.
45138
45139 2007-04-03  Bruno Haible  <bruno@clisp.org>
45140
45141         * modules/TEMPLATE-EXTENDED: New file.
45142         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45143
45144 2007-04-03  Bruno Haible  <bruno@clisp.org>
45145
45146         * DEPENDENCIES: New file.
45147         Suggested by Simon Josefsson.
45148
45149 2007-04-03  Bruno Haible  <bruno@clisp.org>
45150
45151         * doc/gnulib.texi: Escape @.
45152
45153 2007-04-03  James Youngman  <jay@gnu.org>
45154         and Paul Eggert  <eggert@cs.ucla.edu>
45155
45156         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45157         birthtime on all systems that have birthtime, not just those which
45158         use st_birthtimensec rather than st_birthtim.  Putting zero in
45159         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45160         that the birth time is not available for files on an NFS mount.
45161
45162 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45163
45164         * modules/memxor: Move back from crypto/, suggested by Bruno.
45165         * modules/crypto/hmac-sha1: Fix memxor dependency.
45166
45167         * modules/crypto/gc: Moved from ../.
45168
45169 2007-04-02  Eric Blake  <ebb9@byu.net>
45170
45171         * lib/ldexpl.c (includes): Avoid libm.
45172
45173         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45174
45175 2007-04-02  Bruno Haible  <bruno@clisp.org>
45176
45177         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45178         on IRIX.
45179
45180 2007-04-02  Bruno Haible  <bruno@clisp.org>
45181
45182         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45183         x86 or x86_64 platforms running MacOS X.
45184         Reported by Ryan Schmidt <@ryandesign.com>.
45185
45186 2007-04-02  Bruno Haible  <bruno@clisp.org>
45187
45188         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45189         i386.
45190
45191 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45192
45193         * modules/crypto/arcfour: Moved from ../.
45194         * modules/crypto/arcfour-tests: Moved from ../.
45195         * modules/crypto/arctwo: Moved from ../.
45196         * modules/crypto/arctwo-tests: Moved from ../.
45197         * modules/crypto/des: Moved from ../.
45198         * modules/crypto/des-tests: Moved from ../.
45199         * modules/crypto/gc-arcfour: Moved from ../.
45200         * modules/crypto/gc-arcfour-tests: Moved from ../.
45201         * modules/crypto/gc-arctwo: Moved from ../.
45202         * modules/crypto/gc-arctwo-tests: Moved from ../.
45203         * modules/crypto/gc-des: Moved from ../.
45204         * modules/crypto/gc-des-tests: Moved from ../.
45205         * modules/crypto/gc-hmac-md5: Moved from ../.
45206         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45207         * modules/crypto/gc-hmac-sha1: Moved from ../.
45208         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45209         * modules/crypto/gc-md2: Moved from ../.
45210         * modules/crypto/gc-md2-tests: Moved from ../.
45211         * modules/crypto/gc-md4: Moved from ../.
45212         * modules/crypto/gc-md4-tests: Moved from ../.
45213         * modules/crypto/gc-md5: Moved from ../.
45214         * modules/crypto/gc-md5-tests: Moved from ../.
45215         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45216         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45217         * modules/crypto/gc-random: Moved from ../.
45218         * modules/crypto/gc-rijndael: Moved from ../.
45219         * modules/crypto/gc-rijndael-tests: Moved from ../.
45220         * modules/crypto/gc-sha1: Moved from ../.
45221         * modules/crypto/gc-sha1-tests: Moved from ../.
45222         * modules/crypto/gc-tests: Moved from ../.
45223         * modules/crypto/hmac-md5: Moved from ../.
45224         * modules/crypto/hmac-md5-tests: Moved from ../.
45225         * modules/crypto/hmac-sha1: Moved from ../.
45226         * modules/crypto/hmac-sha1-tests: Moved from ../.
45227         * modules/crypto/md2: Moved from ../.
45228         * modules/crypto/md2-tests: Moved from ../.
45229         * modules/crypto/md4: Moved from ../.
45230         * modules/crypto/md4-tests: Moved from ../.
45231         * modules/crypto/md5: Moved from ../.
45232         * modules/crypto/md5-tests: Moved from ../.
45233         * modules/crypto/memxor: Moved from ../.
45234         * modules/crypto/rijndael: Moved from ../.
45235         * modules/crypto/rijndael-tests: Moved from ../.
45236         * modules/crypto/sha1: Moved from ../.
45237
45238 2007-03-30  James Youngman  <jay@gnu.org>
45239
45240         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45241         rename() to change the ctime of a file (because ctime is unaffected
45242         by rename on jfs2 on AIX 5.1).
45243         (main): Start by doing cleanup, in case a previous run failed leaving
45244         test files behind.
45245
45246 2007-03-31  Bruno Haible  <bruno@clisp.org>
45247
45248         Support old proprietary implementations of iconv.
45249         * modules/iconv_open: New file.
45250         * lib/iconv_.h: New file.
45251         * m4/iconv_h.m4: New file.
45252         * lib/iconv_open.c: New file.
45253         * lib/iconv_open-aix.gperf: New file.
45254         * lib/iconv_open-hpux.gperf: New file.
45255         * lib/iconv_open-irix.gperf: New file.
45256         * lib/iconv_open-osf.gperf: New file.
45257         * m4/iconv_open.m4: New file.
45258         * modules/linebreak (Depends-on): Add iconv_open.
45259         * modules/striconv (Depends-on): Likewise.
45260         * modules/striconveh (Depends-on): Likewise.
45261         * modules/unicodeio (Depends-on): Likewise.
45262         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45263         (iconv_t)(-1).
45264         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45265         conversion if cd is (iconv_t)(-1).
45266         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45267         is not possible.
45268
45269 2007-03-31  Bruno Haible  <bruno@clisp.org>
45270
45271         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45272         work on Solaris either. Protect also second use of "autodetect_jp".
45273
45274 2007-03-31  Bruno Haible  <bruno@clisp.org>
45275
45276         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45277         the function is not present.
45278
45279 2007-03-31  Bruno Haible  <bruno@clisp.org>
45280
45281         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45282         the function is not present.
45283
45284 2007-03-31  Bruno Haible  <bruno@clisp.org>
45285
45286         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45287         a bug in HP-UX iconv_open().
45288
45289 2007-03-31  Bruno Haible  <bruno@clisp.org>
45290
45291         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45292         (Mathematics <math.h>): New section, add fpieee.
45293         (Input/output <stdio.h>): Add fseterr.
45294         (Mathematics <math.h>): New section, add printf-frexp.
45295         (Container data structures): Add sublist.
45296         (Core language properties): Add fpucw, inline.
45297         (Functions for greatest-width integer types <inttypes.h>): Add
45298         imaxabs, imaxdiv, inttypes.
45299         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45300         isnanl-nolibm, ldexp.
45301         (Mathematics <math.h>): New section, add printf-frexpl.
45302         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45303         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45304         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45305         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45306         (Unicode string functions): Add unistr/u*-mbtoucr.
45307         (Java): Add javacomp-script, javaexec-script.
45308         (C#): Add csharpcomp-script, csharpexec-script.
45309         (Support for building libraries and executables): Add havelib,
45310         relocatable-*.
45311         (Support for maintaining and releasing projects): Renamed from
45312         'Support for maintaining and release projects'. Add announce-gen.
45313
45314 2007-03-31  Bruno Haible  <bruno@clisp.org>
45315
45316         * README: Talk primarily about git.
45317         (git and CVS): Renamed from CVS.
45318         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45319         gnulib is available through git.
45320         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45321
45322 2007-03-30  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45325         * lib/poll_.h: Likewise.
45326         * lib/stat_.h: Likewise.
45327         * lib/sys_time_.h: Likewise.
45328         * lib/sysexit_.h: Likewise.
45329         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45330         * lib/stdbool_.h: Likewise.
45331         * lib/byteswap_.h: Add double-inclusion guard.
45332
45333 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45334
45335         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45336
45337 2007-03-30  Karl Berry  <karl@gnu.org>
45338
45339         * config/srclist-update: double space after USA in the license
45340         substitution, since that's how it's usually (?) written.
45341
45342 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45343
45344         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45345         reported by Bruno Haible.
45346
45347 2007-03-29  Bruno Haible  <bruno@clisp.org>
45348
45349         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45350         a bug in AIX iconv().
45351
45352 2007-03-29  Bruno Haible  <bruno@clisp.org>
45353
45354         * modules/ldexpl-tests: New file.
45355         * tests/test-ldexpl.c: New file.
45356
45357 2007-03-29  Bruno Haible  <bruno@clisp.org>
45358
45359         * lib/ldexpl.c: Include fpucw.h.
45360         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45361         multiplication.
45362         * modules/ldexpl (Depends-on): Add fpucw.
45363
45364 2007-03-29  Bruno Haible  <bruno@clisp.org>
45365
45366         * modules/ldexpl: New file.
45367         * m4/ldexpl.m4: New file.
45368         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45369         set.
45370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45371         REPLACE_LDEXPL.
45372         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45373         REPLACE_LDEXPL.
45374         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45375         gl_FUNC_LDEXPL_WORKS.
45376         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45377         * modules/mathl (Files): Remove lib/ldexpl.c.
45378         (Depends-on): Add ldexpl.
45379
45380 2007-03-29  Bruno Haible  <bruno@clisp.org>
45381
45382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45383
45384 2007-03-29  Bruno Haible  <bruno@clisp.org>
45385
45386         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45387         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45388         and possibly also HP-UX.
45389         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45390         work on AIX, IRIX, HP-UX, OSF/1.
45391         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45392         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45393         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45394         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45395         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45396         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45397
45398 2007-03-29  Bruno Haible  <bruno@clisp.org>
45399
45400         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45401
45402 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45403
45404         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45405         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45406
45407 2007-03-29  Eric Blake  <ebb9@byu.net>
45408
45409         * lib/acl-internal.h: Remove redundant include.
45410         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45411         Cygwin when a file is locked.
45412
45413 2007-03-29  Bruno Haible  <bruno@clisp.org>
45414
45415         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45416         file.
45417         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45418
45419 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45420
45421         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45422         try to remove a parent directory if the child couldn't be removed
45423         (except for the first rmdir, which could fail because the child
45424         doesn't exist).  Problem reported by Jeff Blaine in
45425         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45426
45427 2007-03-28  Bruno Haible  <bruno@clisp.org>
45428
45429         * lib/striconveh.c (utf8conv_carefully): New function.
45430         (mem_cd_iconveh_internal): Invoke it.
45431
45432 2007-03-28  Bruno Haible  <bruno@clisp.org>
45433
45434         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45435         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45436         input.
45437         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45438         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45439         unistr/u8-uctomb.
45440
45441 2007-03-28  Bruno Haible  <bruno@clisp.org>
45442
45443         * modules/unistr/u8-mbtoucr: New file.
45444         * lib/unistr/u8-mbtoucr.c: New file.
45445         * modules/unistr/u16-mbtoucr: New file.
45446         * lib/unistr/u16-mbtoucr.c: New file.
45447         * modules/unistr/u16-mbtoucr: New file.
45448         * lib/unistr/u16-mbtoucr.c: New file.
45449         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45450
45451 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45452             Bruno Haible  <bruno@clisp.org>
45453
45454         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45455         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45456         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45457
45458         * m4/stdio_h.m4: Add stubs for vasprintf too.
45459
45460         * modules/stdio: Support vasprintf in sed command.
45461
45462         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45463         vasprintf.h.  Add stdio module indicator.
45464
45465         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45466         vasprintf.h.
45467
45468         * lib/vasprintf.h: File removed.
45469
45470         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45471         * lib/vasprintf.c: Ditto.
45472         * lib/xvasprintf.c: Ditto.
45473         * tests/test-vasprintf-posix.c: Ditto.
45474         * tests/test-vasprintf.c: Ditto.
45475
45476 2007-03-27  Bruno Haible  <bruno@clisp.org>
45477
45478         Make vasnprintf multithread-safe.
45479         * lib/vasnprintf.c (decimal_point_char): New function.
45480         (VASNPRINTF): Use it.
45481         Suggested by Simon Josefsson.
45482
45483 2007-03-27  Eric Blake  <ebb9@byu.net>
45484
45485         Support sub-second birthtime on cygwin.
45486         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
45487         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
45488         (get_stat_birthtime): Also work with st_birthtim.
45489
45490 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
45491
45492         * lib/stat-time.h (USE_BIRTHTIME): Remove.
45493         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
45494         (get_stat_birthtime_ns): Do not try to use "spare" fields.
45495         (get_stat_birthtime_ns): Simplify compile-time tests.
45496         (get_stat_birthtime): Change the API to look like
45497         get_stat_mtime etc., except return a negative tv_nsec on error.
45498         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
45499         Don't check for "spare" fields.
45500         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
45501         or for struct stat.st_birthtime, as these tests aren't used.
45502         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
45503
45504 2007-03-27  Bruno Haible  <bruno@clisp.org>
45505
45506         * lib/stat-time.h: Include <sys/stat.h>.
45507
45508 2007-03-27  James Youngman  <jay@gnu.org>
45509
45510         * lib/stat-time.h (get_stat_birthtime): New function for
45511           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45512         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45513           and its variants.
45514         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45515         * modules/stat-time-test: New file.
45516         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45517
45518 2007-03-26  Bruno Haible  <bruno@clisp.org>
45519
45520         Better support of signalling NaNs.
45521         * lib/atanl.c: Include isnanl.h.
45522         (atanl): Perform test for NaN at the beginning of the function and
45523         through a call to isnanl.
45524         * lib/cosl.c: Include isnanl.h.
45525         (cosl): Perform test for NaN at the beginning of the function and
45526         through a call to isnanl.
45527         * lib/ldexpl.c: Include isnanl.h.
45528         (ldexpl): Perform test for NaN through a call to isnanl.
45529         * lib/logl.c: Include isnanl.h.
45530         (logl): Perform test for NaN at the beginning of the function and
45531         through a call to isnanl.
45532         * lib/sinl.c: Include isnanl.h.
45533         (sinl): Perform test for NaN at the beginning of the function and
45534         through a call to isnanl.
45535         * lib/sqrtl.c: Include isnanl.h.
45536         (sqrtl): Perform test for NaN at the beginning of the function and
45537         through a call to isnanl.
45538         * lib/tanl.c: Include isnanl.h.
45539         (tanl): Perform test for NaN at the beginning of the function and
45540         through a call to isnanl.
45541         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45542         * modules/mathl (Depends-on): Add isnanl.
45543
45544 2007-03-26  Eric Blake  <ebb9@byu.net>
45545
45546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45547         regression in logic sense of previous patch.
45548
45549 2007-03-26  Bruno Haible  <bruno@clisp.org>
45550
45551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
45552         unportable shell command "if ! ...".
45553         Reported by Ralf Wildenhues.
45554
45555 2007-03-25  Bruno Haible  <bruno@clisp.org>
45556
45557         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
45558         <sysexits.h> file, and only add EX_CONFIG.
45559         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
45560         absolute file name and whether it is sufficient. Substitute also
45561         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
45562         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
45563         ABSOLUTE_SYSEXITS_H into sysexits.h.
45564
45565 2007-03-25  Bruno Haible  <bruno@clisp.org>
45566
45567         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
45568         hints is NULL.
45569
45570 2007-03-25  Bruno Haible  <bruno@clisp.org>
45571
45572         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
45573         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
45574
45575 2007-03-25  Bruno Haible  <bruno@clisp.org>
45576
45577         * lib/vasnprintf.c: Include langinfo.h.
45578         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
45579         multithread-safe.
45580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
45581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
45582         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45583         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45584         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45585         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45586         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45587         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
45588         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45589         Reported by Simon Josefsson.
45590
45591 2007-03-25  Bruno Haible  <bruno@clisp.org>
45592
45593         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
45594         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
45595         * modules/vasnprintf (Depends-on): Add stdint.
45596
45597 2007-03-25  Bruno Haible  <bruno@clisp.org>
45598
45599         * modules/fpieee: New file.
45600         * m4/fpieee.m4: New file.
45601         * modules/isnan-nolibm (Depends-on): Add fpieee.
45602         * modules/isnanl-nolibm (Depends-on): Add fpieee.
45603         * modules/isnanl (Depends-on): Add fpieee.
45604
45605 2007-03-25  Bruno Haible  <bruno@clisp.org>
45606
45607         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
45608
45609 2007-03-25  Bruno Haible  <bruno@clisp.org>
45610
45611         Avoid test failures on IRIX 6.5.
45612         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
45613         (main): Use it.
45614         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
45615         macros.
45616         (main): Use them.
45617
45618 2007-03-25  Bruno Haible  <bruno@clisp.org>
45619
45620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
45621         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
45622         exists but doesn't work.
45623         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
45624         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
45625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
45626         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
45627
45628 2007-03-25  Bruno Haible  <bruno@clisp.org>
45629
45630         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
45631         returns inf. Needed on IRIX 6.5.
45632
45633 2007-03-25  Bruno Haible  <bruno@clisp.org>
45634
45635         * tests/test-frexpl.c: Include isnanl-nolibm.h.
45636         (main): Use isnanl instead of x != x idiom.
45637         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
45638
45639         * tests/test-frexp.c: Include isnan.h.
45640         (main): Use isnan instead of x != x idiom.
45641         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
45642
45643 2007-03-25  Bruno Haible  <bruno@clisp.org>
45644
45645         * tests/test-frexp.c (NaN): New function/macro.
45646         (main): Use it instead of 0.0 / 0.0.
45647         * tests/test-isnan.c (NaN): New function/macro.
45648         (main): Use it instead of 0.0 / 0.0.
45649         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
45650         (test_function): Use it instead of 0.0 / 0.0.
45651         * tests/test-vasprintf-posix.c (NaN): New function/macro.
45652         (test_function): Use it instead of 0.0 / 0.0.
45653         * tests/test-snprintf-posix.h (NaN): New function/macro.
45654         (test_function): Use it instead of 0.0 / 0.0.
45655         * tests/test-sprintf-posix.h (NaN): New function/macro.
45656         (test_function): Use it instead of 0.0 / 0.0.
45657         * tests/test-fprintf-posix.h (NaN): New function/macro.
45658         (test_function): Use it instead of 0.0 / 0.0.
45659         * tests/test-printf-posix.h (NaN): New function/macro.
45660         (test_function): Use it instead of 0.0 / 0.0.
45661
45662         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
45663
45664 2007-03-25  Bruno Haible  <bruno@clisp.org>
45665
45666         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
45667
45668 2007-03-25  Bruno Haible  <bruno@clisp.org>
45669
45670         * lib/regexec.c (merge_state_with_log): Make static.
45671
45672 2007-03-25  Bruno Haible  <bruno@clisp.org>
45673
45674         * lib/trigl.c (kernel_rem_pio2): Make static.
45675
45676 2007-03-25  Bruno Haible  <bruno@clisp.org>
45677
45678         * lib/sincosl.c (sincosl_table): Make static.
45679
45680 2007-03-25  Bruno Haible  <bruno@clisp.org>
45681
45682         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
45683         if the compiler does not support C99.
45684
45685 2007-03-25  Bruno Haible  <bruno@clisp.org>
45686
45687         * modules/time (Makefile.am): Ensure all rule action lines start with a
45688         tab.
45689
45690 2007-03-24  Bruno Haible  <bruno@clisp.org>
45691
45692         * modules/tsearch-tests: New file.
45693         * tests/test-tsearch.sh: New file.
45694         * tests/test-tsearch.c: New file, mostly copied from glibc.
45695
45696         * modules/search-tests: New file.
45697         * tests/test-search.c: New file.
45698
45699         * modules/search: New file.
45700         * lib/search_.h: New file, incorporating lib/tsearch.h.
45701         * m4/search_h.m4: New file.
45702         * lib/tsearch.h: Remove file.
45703         * lib/tsearch.c: Include search.h instead of tsearch.h.
45704         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
45705         HAVE_TSEARCH.
45706         * modules/tsearch (Files): Remove lib/tsearch.h.
45707         (Depends-on): Add search.
45708         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
45709         (Include): Change tsearch.h into search.h.
45710
45711 2007-03-24  Bruno Haible  <bruno@clisp.org>
45712
45713         * modules/fpucw: New file.
45714         * lib/fpucw.h: New file.
45715         * lib/frexp.c: Include fpucw.h.
45716         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45717         (FUNC): Use them.
45718         * lib/printf-frexp.c: Include fpucw.h.
45719         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45720         (FUNC): Use them.
45721         * lib/vasnprintf.c: Include fpucw.h.
45722         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
45723         'long double' calculations.
45724         * tests/test-frexpl.c: Include fpucw.h.
45725         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45726         * tests/test-printf-frexpl.c: Include fpucw.h.
45727         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45728         * modules/frexpl (Depends-on): Add fpucw.
45729         * modules/printf-frexpl (Depends-on): Likewise.
45730         * modules/fprintf-posix (Depends-on): Likewise.
45731         * modules/snprintf-posix (Depends-on): Likewise.
45732         * modules/sprintf-posix (Depends-on): Likewise.
45733         * modules/vasnprintf-posix (Depends-on): Likewise.
45734         * modules/vasprintf-posix (Depends-on): Likewise.
45735         * modules/vfprintf-posix (Depends-on): Likewise.
45736         * modules/vsnprintf-posix (Depends-on): Likewise.
45737         * modules/vsprintf-posix (Depends-on): Likewise.
45738         * modules/frexpl-tests (Depends-on): Likewise.
45739         * modules/printf-frexpl-tests (Depends-on): Likewise.
45740
45741 2007-03-24  Bruno Haible  <bruno@clisp.org>
45742
45743         * lib/float+.h: New file.
45744         * lib/isnan.c: Include float+.h.
45745         (SIZE): New macro.
45746         (FUNC): Compare only SIZE bytes of the value.
45747         * lib/vasnprintf.c: Include float+.h.
45748         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
45749         SIZEOF_LDBL or SIZEOF_DBL bytes.
45750         * modules/isnan-nolibm (Files): Add lib/float+.h.
45751         * modules/isnanl-nolibm (Files): Add lib/float+.h.
45752         * modules/isnanl (Files): Add lib/float+.h.
45753         * modules/vasnprintf (Files): Add lib/float+.h.
45754
45755 2007-03-24  Bruno Haible  <bruno@clisp.org>
45756
45757         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
45758         include isnanl-nolibm.h.
45759
45760 2007-03-24  Bruno Haible  <bruno@clisp.org>
45761
45762         * tests/test-read-file.c (main): Don't produce spurious output for
45763         expected situations. Make the test fail if it encountered unexpected
45764         results.
45765
45766 2007-03-24  Bruno Haible  <bruno@clisp.org>
45767
45768         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
45769         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
45770
45771 2007-03-24  Bruno Haible  <bruno@clisp.org>
45772
45773         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
45774
45775 2007-03-24  Bruno Haible  <bruno@clisp.org>
45776
45777         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
45778         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
45779
45780         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
45781         * modules/utf8-ucs4: Turn into a symbolic link to module
45782         unistr/u8-mbtouc.
45783
45784         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
45785         utf8-ucs4-unsafe.
45786         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
45787         unistr/u8-mbtouc-unsafe.
45788
45789         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
45790         * modules/utf16-ucs4: Turn into a symbolic link to module
45791         unistr/u16-mbtouc.
45792
45793         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
45794         utf16-ucs4-unsafe.
45795         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
45796         unistr/u16-mbtouc-unsafe.
45797
45798         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
45799         * modules/ucs4-utf8: Turn into a symbolic link to module
45800         unistr/u8-ubtomb.
45801
45802         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
45803         * modules/ucs4-utf16: Turn into a symbolic link to module
45804         unistr/u16-ubtomb.
45805
45806 2007-03-24  Bruno Haible  <bruno@clisp.org>
45807
45808         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
45809         Enable the function only if HAVE_INLINE.
45810         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
45811         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45812         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
45813         Enable the function only if HAVE_INLINE.
45814         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
45815         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45816         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
45817         Enable the function only if HAVE_INLINE.
45818         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
45819         Enable the function only if HAVE_INLINE.
45820         * modules/utf8-ucs4: Update.
45821         * modules/utf8-ucs4-unsafe: Update.
45822         * modules/utf16-ucs4: Update.
45823         * modules/utf16-ucs4-unsafe: Update.
45824         * modules/ucs4-utf8: Update.
45825         * modules/ucs4-utf16: Update.
45826
45827 2007-03-24  Bruno Haible  <bruno@clisp.org>
45828
45829         * lib/utf8-ucs4.h: Remove file.
45830         * lib/utf8-ucs4-unsafe.h: Remove file.
45831         * lib/utf16-ucs4.h: Remove file.
45832         * lib/utf16-ucs4-unsafe.h: Remove file.
45833         * lib/ucs4-utf8.h: Remove file.
45834         * lib/ucs4-utf16.h: Remove file.
45835         * lib/unistr.h: Include their previous contents.
45836         * m4/utf-ucs4.m4: Remove file.
45837         * m4/ucs4-utf.m4: Remove file.
45838         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
45839         (Depends-on): Add unistr/base.
45840         (configure.ac): Remove gl_UTF_UCS4.
45841         (Makefile.am): Update.
45842         (Include): Change to unistr.h.
45843         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
45844         (Depends-on): Add unistr/base.
45845         (configure.ac): Remove gl_UTF_UCS4.
45846         (Makefile.am): Update.
45847         (Include): Change to unistr.h.
45848         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
45849         (Depends-on): Add unistr/base.
45850         (configure.ac): Remove gl_UTF_UCS4.
45851         (Makefile.am): Update.
45852         (Include): Change to unistr.h.
45853         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
45854         (Depends-on): Add unistr/base.
45855         (configure.ac): Remove gl_UTF_UCS4.
45856         (Makefile.am): Update.
45857         (Include): Change to unistr.h.
45858         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
45859         (Depends-on): Add unistr/base.
45860         (configure.ac): Remove gl_UCS4_UTF.
45861         (Makefile.am): Update.
45862         (Include): Change to unistr.h.
45863         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
45864         (Depends-on): Add unistr/base.
45865         (configure.ac): Remove gl_UCS4_UTF.
45866         (Makefile.am): Update.
45867         (Include): Change to unistr.h.
45868         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
45869         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
45870         utf8-ucs4-unsafe.h.
45871         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
45872         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
45873         utf16-ucs4-unsafe.h.
45874         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
45875         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
45876         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
45877         * lib/unistr/u8-strchr.c: Likewise.
45878         * lib/unistr/u8-strrchr.c: Likewise.
45879         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
45880         * lib/unistr/u16-strchr.c: Likewise.
45881         * lib/unistr/u16-strrchr.c: Likewise.
45882         * lib/striconveh.c: Update.
45883         * lib/linebreak.c: Update.
45884
45885 2007-03-24  Bruno Haible  <bruno@clisp.org>
45886
45887         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
45888         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
45889
45890 2007-03-22  Bruno Haible  <bruno@clisp.org>
45891
45892         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
45893
45894 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
45895
45896         * MODULES.html.sh (File system functions): New module write-any-file.
45897         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
45898         * m4/write-any-file.m4: New files.
45899
45900 2007-03-23  Eric Blake  <ebb9@byu.net>
45901
45902         * gnulib-tool: Rearrange space-tab sequences, since some editors
45903         like to eat them.
45904
45905 2007-03-23  Eric Blake  <ebb9@byu.net>
45906
45907         * lib/version-etc.c (version_etc_va): Update license wording to
45908         be more concise.  Recommended by Richard Stallman.
45909
45910 2007-03-22  Bruno Haible  <bruno@clisp.org>
45911
45912         * lib/poll.c (MSG_PEEK): New fallback definition.
45913
45914 2007-03-22  Bruno Haible  <bruno@clisp.org>
45915
45916         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
45917         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
45918         (main): Update.
45919         Fixes a compilation error on BeOS.
45920
45921 2007-03-22  Bruno Haible  <bruno@clisp.org>
45922
45923         * modules/frexpl-tests: New file.
45924         * tests/test-frexpl.c: New file.
45925
45926         * modules/frexpl: New file.
45927         * m4/frexpl.m4: New file.
45928         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
45929         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
45930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
45931         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
45932         (Depends-on): Add frexpl. Remove isnanl-nolibm.
45933         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
45934
45935 2007-03-22  Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/frexpl.c: Share code with lib/frexp.c.
45938         * modules/mathl (Files): Add lib/frexp.c.
45939         (Depends-on): Add isnanl-nolibm.
45940
45941 2007-03-22  Bruno Haible  <bruno@clisp.org>
45942
45943         * modules/printf-frexp (Files): Add m4/frexp.m4.
45944         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
45945         only if the found frexp function actually works.
45946
45947 2007-03-22  Bruno Haible  <bruno@clisp.org>
45948
45949         * lib/frexp.c: Remove older implementation that uses divisions.
45950
45951 2007-03-21  Bruno Haible  <bruno@clisp.org>
45952
45953         * modules/frexp-tests: New file.
45954         * tests/test-frexp.c: New file.
45955
45956         * modules/frexp: New file.
45957         * lib/frexp.c: New file.
45958         * m4/frexp.m4: New file.
45959         * lib/math_.h (frexp): New declaration.
45960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
45961         REPLACE_FREXP.
45962         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
45963
45964 2007-03-21  Bruno Haible  <bruno@clisp.org>
45965
45966         * modules/isnanl-tests: New file.
45967         * tests/test-isnanl.c: New file.
45968
45969         * modules/isnanl: New file.
45970         * lib/isnanl.h: New file.
45971         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
45972         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
45973         gl_FUNC_ISNANL_WORKS.
45974         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
45975         New macros.
45976
45977 2007-03-21  Bruno Haible  <bruno@clisp.org>
45978
45979         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
45980         lib/isnanl.h.
45981         (Include): Update.
45982         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
45983         * lib/vasnprintf.c: Update.
45984         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
45985         tests/test-isnanl.h, remove tests/test-isnanl.c.
45986         (Makefile.am): Update.
45987         * tests/test-isnanl-nolibm.c: New file.
45988         * tests/test-isnanl.h: New file.
45989         * tests/test-isnanl.c: Remove file.
45990
45991 2007-03-21  Jim Meyering  <jim@meyering.net>
45992
45993         When trying to open ".", treat ESTALE like EACCES.
45994         * lib/savewd.c (savewd_save): Resort to forking not just upon
45995         failure with EACCES, but also when errno is ESTALE.
45996
45997 2007-03-20  Bruno Haible  <bruno@clisp.org>
45998
45999         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46000         Needed on AIX 5.1. Reported by Matthew Woehlke.
46001
46002 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46003
46004         Suggestions by Bruno Haible:
46005         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46006         our own.
46007         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46008         * modules/acl (Depends-on): Add gettext.
46009
46010 2007-03-19  Bruno Haible  <bruno@clisp.org>
46011
46012         * modules/iconvme: Remove file.
46013         * lib/iconvme.h: Remove file.
46014         * lib/iconvme.c: Remove file.
46015         * m4/iconvme.m4: Remove file.
46016
46017 2007-03-19  Bruno Haible  <bruno@clisp.org>
46018
46019         * doc/relocatable-maint.texi: Break long shell script line.
46020         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46021
46022 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46023
46024         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46025         handle file_has_acl.
46026         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46027         * lib/acl.c: Move header inclusions and related macro defns into
46028         lib/acl-internal.h.
46029         (S_ISLNK): Remove defn, since that's now done for us.
46030         (file_has_acl): Move to lib/file-has-acl.c.
46031         Call acl_trivial if available.  This is the crucial part of the fix.
46032         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46033         shared within the library.  Rewrite a bit, partly to make it compatible
46034         with the GNU coding style.
46035         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46036         Remove unnecessary double-quotes.
46037         Don't test for acl_to_text; the build will catch that.
46038         Replace acl_entries if it doesn't exist and it is needed.
46039         Check for -lsec and acl_trivial (as used on Solaris 10).
46040         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46041         lib/file-has-acl.c.
46042         (Depends-on): Add sys_stat, for S_ISLNK.
46043
46044 2007-03-19  Ben Pfaff  <blp@gnu.org>
46045
46046         * doc/gnulib.texi: Fix typos.
46047         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46048
46049 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46050
46051         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46052         If size is zero here, buf must be zero.
46053
46054 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46055
46056         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46057         <bruno@clisp.org>.
46058
46059 2007-03-18  Bruno Haible  <bruno@clisp.org>
46060
46061         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46062         Suggested by Eric Blake.
46063
46064 2007-03-18  Ben Pfaff  <blp@gnu.org>
46065
46066         * doc/relocatable.texi: Recommend using as prefix a directory
46067         that does not exist and will never be created.  Based on
46068         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46069         and others.
46070
46071 2007-03-17  Bruno Haible  <bruno@clisp.org>
46072
46073         * lib/fchownat.c: Include lchown.h.
46074
46075 2007-03-17  Bruno Haible  <bruno@clisp.org>
46076
46077         Fix endless loop when the given allocated size was > INT_MAX.
46078         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46079         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46080         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46081         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46082         * lib/sprintf.c (sprintf): Likewise.
46083
46084 2007-03-17  Bruno Haible  <bruno@clisp.org>
46085
46086         * tests/test-argp-2.sh (func_compare): Output a context diff.
46087
46088 2007-03-17  Bruno Haible  <bruno@clisp.org>
46089
46090         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46091         locale's decimal-point character.
46092
46093 2007-03-17  Bruno Haible  <bruno@clisp.org>
46094
46095         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46096         before comparing it. Needed because on some platforms (e.g. x86) a
46097         'long double' occupies less bytes than sizeof (long double).
46098
46099 2007-03-17  Bruno Haible  <bruno@clisp.org>
46100
46101         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46102         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46103         * tests/test-getaddrinfo.c (simple): Likewise.
46104         * tests/test-read-file.c (main): Likewise.
46105
46106 2007-03-17  Bruno Haible  <bruno@clisp.org>
46107
46108         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46109
46110 2007-03-17  Bruno Haible  <bruno@clisp.org>
46111
46112         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46113         unused variable.
46114
46115 2007-03-17  Bruno Haible  <bruno@clisp.org>
46116
46117         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46118         * tests/test-c-strncasecmp.c: Likewise.
46119
46120 2007-03-17  Bruno Haible  <bruno@clisp.org>
46121
46122         * modules/stdlib (Depends-on): Add unistd.
46123         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46124         Needed for MacOS X 10.3.
46125
46126 2007-03-17  Bruno Haible  <bruno@clisp.org>
46127
46128         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46129
46130 2007-03-17  Bruno Haible  <bruno@clisp.org>
46131
46132         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46133
46134 2007-03-17  Bruno Haible  <bruno@clisp.org>
46135
46136         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46137         to reflect files copied from gnulib (with or without modifications).
46138         Suggested by Jim Meyering.
46139
46140 2007-03-17  Eric Blake  <ebb9@byu.net>
46141
46142         * NEWS: Document stdlib change from 2007-02-18.
46143
46144 2007-03-17  Jim Meyering  <jim@meyering.net>
46145
46146         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46147         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46148         someone uses a name containing shell meta-characters.
46149         Reported by Alfred M. Szmidt.
46150
46151         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46152
46153 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46154
46155         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46156         and copy gettext configuration files only if configure.ac contains
46157         a use of AM_GNU_GETTEXT_VERSION.
46158
46159 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46160
46161         * build-aux/bootstrap (gnulib_name): New variable.
46162         (gnulib_tool_options): Use it.
46163
46164 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46165
46166         * tests/test-des.c: Use new namespace.
46167
46168 2007-03-15  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46171         Reported by James Youngman <jay@gnu.org>.
46172
46173 2007-03-15  Bruno Haible  <bruno@clisp.org>
46174
46175         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46176         declared prototype. Needed with cc on OSF/1 5.1.
46177
46178 2007-03-15  Bruno Haible  <bruno@clisp.org>
46179
46180         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46181         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46182         (struct gl_list_implementation): Add dispose_fn argument to the
46183         'create_empty', 'create' methods.
46184         (struct gl_list_impl_base): Add field 'dispose_fn'.
46185         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46186         argument.
46187         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46188         dispose_fn argument.
46189         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46190         dispose_fn on the dropped values.
46191         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46192         dispose_fn argument.
46193         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46194         dropped values.
46195         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46196         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46197         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46198         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46199         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46200         argument.
46201         (gl_tree_list_free): Call dispose_fn on the dropped values.
46202         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46203         the dropped values.
46204         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46205         Add dispose_fn argument.
46206         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46207         Call dispose_fn on the dropped values.
46208         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46209         Add dispose_fn argument.
46210         (gl_sublist_create): Initialize the 'dispose_fn' field.
46211         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46212         * tests/test-array_list.c (main): Update.
46213         * tests/test-carray_list.c (main): Update.
46214         * tests/test-avltree_list.c (main): Update.
46215         * tests/test-rbtree_list.c (main): Update.
46216         * tests/test-avltreehash_list.c (main): Update.
46217         * tests/test-rbtreehash_list.c (main): Update.
46218         * tests/test-linked_list.c (main): Update.
46219         * tests/test-linkedhash_list.c (main): Update.
46220         * tests/test-array_oset.c (main): Update.
46221
46222 2007-03-15  Bruno Haible  <bruno@clisp.org>
46223
46224         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46225         (gl_oset_create_empty): Add dispose_fn argument.
46226         (struct gl_oset_implementation): Add dispose_fn argument to
46227         'create_empty' method.
46228         (struct gl_oset_impl_base): Add dispose_fn field.
46229         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46230         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46231         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46232         values.
46233         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46234         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46235         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46236         dropped value.
46237         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46238         dropped value.
46239         * tests/test-array_oset.c (main): Update.
46240         * tests/test-avltree_oset.c (main): Update.
46241         * tests/test-rbtree_oset.c (main): Update.
46242         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46243
46244 2007-03-13  Bruno Haible  <bruno@clisp.org>
46245
46246         * tests/test-stdbool.c (i): Update after last patch.
46247
46248 2007-03-12  Bruno Haible  <bruno@clisp.org>
46249
46250         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46251         the iswprint macro. Needed on Solaris 2.5.1.
46252
46253 2007-03-12  Bruno Haible  <bruno@clisp.org>
46254
46255         * tests/test-printf-frexp.c (main): Declare x as volatile.
46256
46257 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46258
46259         * doc/gnulib.texi (Build robot for gnulib): New section.
46260
46261 2007-03-12  Jim Meyering  <jim@meyering.net>
46262
46263         * build-aux/bootstrap: New file.
46264         * build-aux/bootstrap.conf: New file, from coreutils.
46265
46266 2007-03-11  Bruno Haible  <bruno@clisp.org>
46267
46268         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46269
46270 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46271
46272         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46273         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46274         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46275
46276 2007-03-11  Bruno Haible  <bruno@clisp.org>
46277
46278         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46279         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46280
46281 2007-03-11  Bruno Haible  <bruno@clisp.org>
46282
46283         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46284         formula. Needed for SunPRO C 5.0.
46285
46286 2007-03-11  Bruno Haible  <bruno@clisp.org>
46287
46288         * modules/long-options (Depends-on): Add getopt.
46289
46290 2007-03-11  Bruno Haible  <bruno@clisp.org>
46291
46292         * modules/modechange (Depends-on): Add stdbool.
46293
46294 2007-03-11  Bruno Haible  <bruno@clisp.org>
46295
46296         * modules/i-ring (Depends-on): Add stdbool.
46297
46298 2007-03-11  Bruno Haible  <bruno@clisp.org>
46299
46300         * modules/gc-des (Depends-on): Add stdbool.
46301
46302 2007-03-11  Bruno Haible  <bruno@clisp.org>
46303
46304         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46305
46306 2007-03-11  Bruno Haible  <bruno@clisp.org>
46307
46308         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46309
46310 2007-03-11  Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46313
46314 2007-03-11  Bruno Haible  <bruno@clisp.org>
46315
46316         * lib/vasnprintf.c (sprintf): Undefine.
46317
46318 2007-03-11  Bruno Haible  <bruno@clisp.org>
46319
46320         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46321         initializers in SunPRO C and Compaq C compilers.
46322
46323 2007-03-11  Bruno Haible  <bruno@clisp.org>
46324
46325         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46326         decrementing code ANSI C compliant.
46327
46328 2007-03-11  Bruno Haible  <bruno@clisp.org>
46329
46330         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46331         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46332
46333 2007-03-11  Bruno Haible  <bruno@clisp.org>
46334
46335         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46336         <stdbool.h> substitute doesn't pass.
46337
46338 2007-03-11  Bruno Haible  <bruno@clisp.org>
46339
46340         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46341
46342 2007-03-11  Bruno Haible  <bruno@clisp.org>
46343
46344         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46345         script, for submission to autobuild.josefsson.org.
46346
46347 2007-03-10  Bruno Haible  <bruno@clisp.org>
46348
46349         * modules/canonicalize-lgpl-tests: New file.
46350         * tests/test-canonicalize-lgpl.sh: New file.
46351         * tests/test-canonicalize-lgpl.c: New file.
46352
46353         * modules/c-strcase-tests: New file.
46354         * tests/test-c-strcase.sh: New file.
46355         * tests/test-c-strcasecmp.c: New file.
46356         * tests/test-c-strncasecmp.c: New file.
46357
46358         * modules/atexit-tests: New file.
46359         * tests/test-atexit.sh: New file.
46360         * tests/test-atexit.c: New file.
46361
46362 2007-03-10  Bruno Haible  <bruno@clisp.org>
46363
46364         * tests/test-binary-io.sh: Use temporary filenames that are not so
46365         likely to clash with those of other tests (in a parallel make).
46366         * tests/test-binary-io.c: Likewise.
46367
46368 2007-03-10  Bruno Haible  <bruno@clisp.org>
46369
46370         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46371         fallback; use #error instead.
46372         Suggested by Simon Josefsson.
46373
46374 2007-03-10  Bruno Haible  <bruno@clisp.org>
46375
46376         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46377         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46378         first and the last.
46379
46380 2007-03-10  Bruno Haible  <bruno@clisp.org>
46381
46382         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46383
46384 2007-03-10  Bruno Haible  <bruno@clisp.org>
46385
46386         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46387         "make distcheck".
46388         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46389         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46390         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46391
46392 2007-03-10  Bruno Haible  <bruno@clisp.org>
46393
46394         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46395         variable.
46396         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46397         variable.
46398
46399 2007-03-09  Eric Blake  <ebb9@byu.net>
46400         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46401
46402         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46403         types are not being provided by gnulib.
46404         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46405         types are supported.
46406
46407 2007-03-10  Bruno Haible  <bruno@clisp.org>
46408
46409         * lib/stdio_.h (__attribute__): New macro.
46410         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46411         vsprintf): Specify __attribute__ __format__ for GCC.
46412         Suggested by Eric Blake.
46413
46414 2007-03-09  Bruno Haible  <bruno@clisp.org>
46415
46416         * modules/printf-posix-tests: New file.
46417         * tests/test-printf-posix.sh: New file.
46418         * tests/test-printf-posix.c: New file.
46419
46420         * modules/printf-posix: New file.
46421         * lib/printf.c: New file.
46422         * m4/printf-posix-rpl.m4: New file.
46423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46424         REPLACE_PRINTF.
46425         * lib/stdio_.h (printf): New declaration.
46426         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46427         ____strfmon____): New macros.
46428         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46429         REPLACE_PRINTF.
46430
46431 2007-03-09  Bruno Haible  <bruno@clisp.org>
46432
46433         * tests/test-vasnprintf-posix2.sh: New file.
46434         * tests/test-vasnprintf-posix2.c: New file.
46435         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46436         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46437         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46438
46439         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46440         a locale dependent decimal point, rather than always '.'.
46441
46442 2007-03-09  Eric Blake  <ebb9@byu.net>
46443
46444         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46445         spite of platforms like Tandem/NSK that define it to -1.
46446
46447 2007-03-08  Bruno Haible  <bruno@clisp.org>
46448
46449         * modules/vprintf-posix-tests: New file.
46450         * tests/test-vprintf-posix.sh: New file.
46451         * tests/test-vprintf-posix.c: New file.
46452         * tests/test-printf-posix.h: New file.
46453
46454         * modules/vprintf-posix: New file.
46455         * lib/vprintf.c: New file.
46456         * m4/vprintf-posix.m4: New file.
46457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46458         REPLACE_VPRINTF.
46459         * lib/stdio_.h (vprintf): New declaration.
46460         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46461         REPLACE_VPRINTF.
46462
46463 2007-03-08  Bruno Haible  <bruno@clisp.org>
46464
46465         * modules/fprintf-posix-tests: New file.
46466         * tests/test-fprintf-posix.sh: New file.
46467         * tests/test-fprintf-posix.c: New file.
46468
46469         * modules/fprintf-posix: New file.
46470         * lib/fprintf.c: New file.
46471         * m4/fprintf-posix.m4: New file.
46472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46473         REPLACE_FPRINTF.
46474         * lib/stdio_.h (fprintf): New declaration.
46475         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46476         REPLACE_FPRINTF.
46477
46478 2007-03-08  Bruno Haible  <bruno@clisp.org>
46479
46480         * modules/vfprintf-posix-tests: New file.
46481         * tests/test-vfprintf-posix.sh: New file.
46482         * tests/test-vfprintf-posix.c: New file.
46483         * tests/test-fprintf-posix.h: New file.
46484         * tests/test-fprintf-posix.out: New file.
46485
46486         * modules/vfprintf-posix: New file.
46487         * lib/vfprintf.c: New file.
46488         * m4/vfprintf-posix.m4: New file.
46489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
46490         REPLACE_VFPRINTF.
46491         * lib/stdio_.h (vfprintf): New declaration.
46492         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
46493         REPLACE_VFPRINTF.
46494
46495 2007-03-08  Bruno Haible  <bruno@clisp.org>
46496
46497         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
46498
46499 2007-03-08  Bruno Haible  <bruno@clisp.org>
46500
46501         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
46502         instead of 'expr' invocations.
46503         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46504         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46505         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46507         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46508         Suggested by Paul Eggert.
46509
46510 2007-03-08  Bruno Haible  <bruno@clisp.org>
46511
46512         * modules/fseterr-tests: New file.
46513         * tests/test-fseterr.c: New file.
46514
46515         * modules/fseterr: New file.
46516         * lib/fseterr.h: New file.
46517         * lib/fseterr.c: New file.
46518
46519 2007-03-08  Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46522         * lib/getopt_.h: Likewise.
46523         * lib/mbswidth.h: Likewise.
46524         * lib/setenv.h: Likewise.
46525         * lib/vasnprintf.h: Likewise.
46526         * lib/vasprintf.h: Likewise.
46527         * lib/verror.h: Likewise.
46528         * lib/xsetenv.h: Likewise.
46529         * lib/xvasprintf.h: Likewise.
46530
46531 2007-03-08  Jim Meyering  <jim@meyering.net>
46532
46533         * users.txt: Add parted.
46534
46535         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46536
46537 2007-03-07  Bruno Haible  <bruno@clisp.org>
46538
46539         * m4/printf.m4: Make the shell script snippets copy&pastable.
46540
46541 2007-03-02  Bruno Haible  <bruno@clisp.org>
46542
46543         * lib/netinet_in_.h: New file.
46544         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46545         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46546         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46547         (Depends-on): Add absolute-header.
46548         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46549         into netinet/in.h.
46550
46551 2007-03-03  Bruno Haible  <bruno@clisp.org>
46552
46553         * lib/sys_select_.h: New file.
46554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
46555         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
46556         * modules/sys_select (Files): Add lib/sys_select_.h.
46557         (Depends-on): Add absolute-header.
46558         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
46559         into sys/select.h.
46560
46561 2007-03-02  Bruno Haible  <bruno@clisp.org>
46562
46563         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
46564         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
46565         values.
46566         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
46567         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
46568         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
46569         * modules/sys_socket (Depends-on): Add absolute-header.
46570         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
46571         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
46572         (Include): Remove requirement of inclusion of <sys/types.h>.
46573
46574 2007-03-02  Bruno Haible  <bruno@clisp.org>
46575
46576         * lib/byteswap_.h (bswap_32): Fix formula.
46577
46578 2007-03-06  Bruno Haible  <bruno@clisp.org>
46579
46580         * modules/sprintf-posix-tests: New file.
46581         * tests/test-sprintf-posix.c: New file.
46582
46583         * modules/sprintf-posix: New file.
46584         * lib/sprintf.c: New file.
46585         * m4/sprintf-posix.m4: New file.
46586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
46587         REPLACE_SPRINTF.
46588         * lib/stdio_.h (sprintf): New declaration.
46589         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
46590         REPLACE_SPRINTF.
46591
46592 2007-03-06  Bruno Haible  <bruno@clisp.org>
46593
46594         * modules/vsprintf-posix-tests: New file.
46595         * tests/test-vsprintf-posix.c: New file.
46596         * tests/test-sprintf-posix.h: New file.
46597
46598         * modules/vsprintf-posix: New file.
46599         * lib/vsprintf.c: New file.
46600         * m4/vsprintf-posix.m4: New file.
46601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
46602         REPLACE_VSPRINTF.
46603         * lib/stdio_.h (vsprintf): New declaration.
46604         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
46605         REPLACE_VSPRINTF.
46606
46607 2007-03-06  Bruno Haible  <bruno@clisp.org>
46608
46609         * modules/vsnprintf (Depend-on): Remove minmax.
46610
46611 2007-03-06  Bruno Haible  <bruno@clisp.org>
46612
46613         * modules/snprintf-posix-tests: New file.
46614         * tests/test-snprintf-posix.c: New file.
46615
46616         * modules/snprintf-posix: New file.
46617         * m4/snprintf-posix.m4: New file.
46618         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
46619         gl_FUNC_SNPRINTF.
46620         (gl_FUNC_SNPRINTF): Invoke it.
46621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
46622         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
46623         is set.
46624         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
46625
46626 2007-03-06  Bruno Haible  <bruno@clisp.org>
46627
46628         * modules/vsnprintf-posix-tests: New file.
46629         * tests/test-vsnprintf-posix.c: New file.
46630         * tests/test-snprintf-posix.h: New file.
46631
46632         * modules/vsnprintf-posix: New file.
46633         * m4/vsnprintf-posix.m4: New file.
46634         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
46635         gl_FUNC_VSNPRINTF.
46636         (gl_FUNC_VSNPRINTF): Invoke it.
46637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
46638         * lib/stdio_.h (vsnprintf): Define as a replacement if
46639         REPLACE_VSNPRINTF is set.
46640         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
46641
46642 2007-03-06  Bruno Haible  <bruno@clisp.org>
46643
46644         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
46645         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
46646
46647 2007-03-06  Bruno Haible  <bruno@clisp.org>
46648
46649         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
46650         (asinl): Declare also if HAVE_DECL_ASINL is set.
46651         (atanl): Declare also if HAVE_DECL_ATANL is set.
46652         (ceill): Declare also if HAVE_DECL_CEILL is set.
46653         (cosl): Declare also if HAVE_DECL_COSL is set.
46654         (expl): Declare also if HAVE_DECL_EXPL is set.
46655         (floorl): Declare also if HAVE_DECL_FLOORL is set.
46656         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
46657         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
46658         (logl): Declare also if HAVE_DECL_LOGL is set.
46659         (sinl): Declare also if HAVE_DECL_SINL is set.
46660         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
46661         (tanl): Declare also if HAVE_DECL_TANL is set.
46662         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
46663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
46664         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
46665         declaration of frexpl, ldexpl.
46666         * modules/printf-frexpl (Depends-on): Add math.
46667         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
46668
46669 2007-03-05  Bruno Haible  <bruno@clisp.org>
46670
46671         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
46672         frexpl and ldexpl are declared.
46673         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
46674
46675 2007-03-05  Bruno Haible  <bruno@clisp.org>
46676
46677         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
46678         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
46679
46680 2007-03-05  Bruno Haible  <bruno@clisp.org>
46681
46682         * lib/stdio_.h: Include <stddef.h>.
46683
46684 2007-03-05  Bruno Haible  <bruno@clisp.org>
46685
46686         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
46687
46688 2007-03-05  Bruno Haible  <bruno@clisp.org>
46689
46690         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
46691         NetBSD 4, from Ralf Wildenhues.
46692
46693 2007-03-04  Bruno Haible  <bruno@clisp.org>
46694
46695         * lib/vasprintf.h: Update #if logic for the case when the functions
46696         exist but are overridden.
46697
46698 2007-03-04  Bruno Haible  <bruno@clisp.org>
46699
46700         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
46701         implementations: glibc-2.4 and MacOS X 10.3.
46702         * tests/test-vasnprintf-posix.c (test_function): Test also the case
46703         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
46704         * tests/test-vasprintf-posix.c (test_function): Likewise.
46705
46706 2007-03-04  Bruno Haible  <bruno@clisp.org>
46707
46708         * modules/vasprintf-posix-tests: New file.
46709         * tests/test-vasprintf-posix.c: New file.
46710
46711         * modules/vasprintf-posix: New file.
46712         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
46713         defined.
46714         * m4/vasprintf-posix.m4: New file.
46715         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
46716         gl_FUNC_VASPRINTF.
46717         (gl_FUNC_VASPRINTF): Invoke it.
46718         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
46719         here.
46720         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
46721
46722 2007-03-04  Bruno Haible  <bruno@clisp.org>
46723
46724         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
46725         REPLACE_GETTIMEOFDAY.
46726         * modules/sys_time (Makefile.am): Likewise.
46727         * m4/sys_time_h.m4: Likewise.
46728         * m4/gettimeofday.m4: Likewise.
46729
46730 2007-03-04  Bruno Haible  <bruno@clisp.org>
46731
46732         * modules/vasnprintf-posix-tests: New file.
46733         * tests/test-vasnprintf-posix.c: New file.
46734
46735         * modules/vasnprintf-posix: New file.
46736         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
46737         printf-frexpl.h.
46738         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
46739         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
46740         REPLACE_VASNPRINTF is defined.
46741         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
46742         gl_FUNC_VASNPRINTF.
46743         (gl_FUNC_VASNPRINTF): Invoke it.
46744         * m4/vasnprintf-posix.m4: New file.
46745         * m4/printf.m4: New file.
46746
46747 2007-03-04  Bruno Haible  <bruno@clisp.org>
46748
46749         Compile progreloc.c only if --enable-relocatable is specified.
46750         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
46751         if --enable-relocatable was specified.
46752         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
46753         lib_SOURCES.
46754
46755 2007-03-04  Jim Meyering  <jim@meyering.net>
46756
46757         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
46758         Use it consistently, rather than enumerating errno constants.
46759
46760 2007-03-04  Bruno Haible  <bruno@clisp.org>
46761
46762         * modules/xvasprintf-tests: New file.
46763         * tests/test-xvasprintf.c: New file.
46764
46765         * modules/vasprintf-tests: New file.
46766         * tests/test-vasprintf.c: New file.
46767
46768         * modules/vasnprintf-tests: New file.
46769         * tests/test-vasnprintf.c: New file.
46770
46771         * modules/vsnprintf-tests: New file.
46772         * tests/test-vsnprintf.c: New file.
46773
46774         * modules/snprintf-tests: New file.
46775         * tests/test-snprintf.c: New file.
46776
46777 2007-03-04  Bruno Haible  <bruno@clisp.org>
46778
46779         Compile relocatable.c only if --enable-relocatable is specified.
46780         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
46781         gl_RELOCATABLE_LIBRARY.
46782         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
46783         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
46784         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
46785         gl_RELOCATABLE_LIBRARY.
46786         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
46787         (Makefile.am): Remove lib_SOURCES.
46788         * modules/relocatable-lib-lgpl (configure.ac): Invoke
46789         gl_RELOCATABLE_LIBRARY.
46790         (Makefile.am): Remove lib_SOURCES.
46791         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
46792         always.
46793         * modules/relocatable-prog-wrapper (configure.ac): Invoke
46794         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
46795
46796 2007-03-04  Bruno Haible  <bruno@clisp.org>
46797
46798         * modules/argmatch-tests: New file.
46799         * tests/test-argmatch.c: New file.
46800
46801         * tests/test-allocsa.c (main): Halve the number of loop runs.
46802
46803         * modules/alloca-opt-tests: New file.
46804         * tests/test-alloca-opt.c: New file.
46805
46806 2007-03-04  Jim Meyering  <jim@meyering.net>
46807
46808         Work around difference between Linux ACLs and Solaris 10 ZFS.
46809         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
46810         for EINVAL.
46811
46812 2007-03-03  Bruno Haible  <bruno@clisp.org>
46813
46814         * modules/relocatable-prog (Depends-on): Add back progreloc's
46815         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
46816
46817 2007-03-03  Bruno Haible  <bruno@clisp.org>
46818
46819         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
46820         * modules/relocatable-lib: New file.
46821
46822 2007-03-03  Bruno Haible  <bruno@clisp.org>
46823
46824         * modules/relocatable-prog: Renamed from modules/relocatable.
46825         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
46826
46827 2007-03-03  Bruno Haible  <bruno@clisp.org>
46828
46829         * modules/relocatable-script (Files): Add doc/relocatable.texi,
46830         m4/relocatable-lib.m4.
46831         (Depends-on): Remove 'relocatable'.
46832         (configure.ac): Add gl_RELOCATABLE_NOP.
46833
46834 2007-03-03  Bruno Haible  <bruno@clisp.org>
46835
46836         * modules/relocatable-prog-wrapper: New file.
46837         * modules/relocatable (Depends-on): Add it. Remove all other
46838         dependencies except progname.
46839         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
46840
46841         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
46842         (gl_FUNC_STRERROR): Nop.
46843         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
46844
46845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
46846         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
46847
46848         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
46849         (gl_FUNC_READLINK): Update.
46850
46851         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
46852
46853 2007-03-03  Bruno Haible  <bruno@clisp.org>
46854
46855         * lib/xreadlink.c: Include <unistd.h> unconditionally.
46856         * modules/xreadlink (Depends-on): Add unistd.
46857         * modules/xreadlink-with-size (Depends-on): Likewise.
46858
46859 2007-03-03  Bruno Haible  <bruno@clisp.org>
46860
46861         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
46862         extracted from gt_FUNC_SETENV.
46863         (gt_FUNC_SETENV): Remove macro.
46864         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
46865         remove gt_FUNC_SETENV.
46866
46867 2007-03-03  Bruno Haible  <bruno@clisp.org>
46868
46869         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
46870         ENABLE_RELOCATABLE here.
46871         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
46872
46873 2007-03-03  Bruno Haible  <bruno@clisp.org>
46874
46875         * modules/rbtreehash-list-tests (Depends-on): Add progname.
46876         * tests/test-rbtreehash_list.c: Include progname.h.
46877         (main): Call set_program_name.
46878
46879         * modules/rbtree-oset-tests (Depends-on): Add progname.
46880         * tests/test-rbtree_oset.c: Include progname.h.
46881         (main): Call set_program_name.
46882
46883         * modules/rbtree-list-tests (Depends-on): Add progname.
46884         * tests/test-rbtree_list.c: Include progname.h.
46885         (main): Call set_program_name.
46886
46887         * modules/linked-list-tests (Depends-on): Add progname.
46888         * tests/test-linked_list.c: Include progname.h.
46889         (main): Call set_program_name.
46890
46891 2007-03-03  Bruno Haible  <bruno@clisp.org>
46892
46893         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
46894         All uses of __restrict changed to _Restrict_.
46895         * lib/glob_.h (__restrict): Remove macro.
46896
46897 2007-03-02  Bruno Haible  <bruno@clisp.org>
46898
46899         * modules/gettext (configure.ac): Require gettext infrastructure
46900         from version 0.16.1.
46901
46902 2007-03-02  Bruno Haible  <bruno@clisp.org>
46903
46904         * modules/linkedhash-list-tests (Depends-on): Add progname.
46905         * tests/test-linkedhash_list.c: Include progname.h.
46906         (main): Call set_program_name.
46907
46908         * modules/carray-list-tests (Depends-on): Add progname.
46909         * tests/test-carray_list.c: Include progname.h.
46910         (main): Call set_program_name.
46911
46912         * modules/avltreehash-list-tests (Depends-on): Add progname.
46913         * tests/test-avltreehash_list.c: Include progname.h.
46914         (main): Call set_program_name.
46915
46916         * modules/avltree-oset-tests (Depends-on): Add progname.
46917         * tests/test-avltree_oset.c: Include progname.h.
46918         (main): Call set_program_name.
46919
46920         * modules/avltree-list-tests (Depends-on): Add progname.
46921         * tests/test-avltree_list.c: Include progname.h.
46922         (main): Call set_program_name.
46923
46924         * modules/array-oset-tests (Depends-on): Add progname.
46925         * tests/test-array_oset.c: Include progname.h.
46926         (main): Call set_program_name.
46927
46928         * modules/array-list-tests (Depends-on): Add progname.
46929         * tests/test-array_list.c: Include progname.h.
46930         (main): Call set_program_name.
46931
46932         * modules/argp-tests (Depends-on): Add progname.
46933         * tests/test-argp.c: Include argp.h first. Include progname.h.
46934         (main): Call set_program_name.
46935
46936 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
46937
46938         * doc/gnulib-tool.texi (Initial import): Reword description of
46939         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
46940         limited effect even if defined after the first system include.
46941
46942 2007-03-01  Bruno Haible  <bruno@clisp.org>
46943
46944         * build-aux/config.libpath: Update to libtool-1.5.22.
46945         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46946
46947 2007-03-01  Bruno Haible  <bruno@clisp.org>
46948
46949         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
46950         foo_CFLAGS.
46951         Reported by Ralf Wildenhues.
46952
46953 2007-03-01  Bruno Haible  <bruno@clisp.org>
46954
46955         * build-aux/install-reloc: Remove object files left over by some
46956         compilers.
46957         Reported by Ralf Wildenhues.
46958
46959 2007-03-01  Bruno Haible  <bruno@clisp.org>
46960
46961         * build-aux/install-reloc: Break long lines.
46962
46963 2007-03-01  Bruno Haible  <bruno@clisp.org>
46964
46965         * doc/relocatable.texi: Document that it may not work on OpenBSD.
46966         Reported by Ralf Wildenhues.
46967
46968 2007-03-01  Bruno Haible  <bruno@clisp.org>
46969
46970         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
46971         include ordering constraints.
46972
46973 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46974
46975         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
46976         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
46977         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
46978         as another example.
46979         * lib/time_.h: Fix misspelling.
46980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46981         Require gl_HEADER_TIME_H_DEFAULTS.
46982         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
46983         * m4/time_r.m4 (gl_TIME_R): Likewise.
46984         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
46985
46986 2007-03-01  Bruno Haible  <bruno@clisp.org>
46987
46988         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
46989         * m4/utimens.m4 (gl_UTIMENS): Likewise.
46990
46991 2007-03-01  Jim Meyering  <jim@meyering.net>
46992
46993         * modules/xreadlink (Maintainer): Add my name.
46994         * modules/xreadlink-with-size (Depends-on): Alphabetize.
46995
46996 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
46997             Bruno Haible  <bruno@clisp.org>
46998
46999         * build-aux/install-reloc: Compile also c-ctype.c.
47000         * build-aux/relocatable.sh.in: New file.
47001         * doc/relocatable.texi: New file.
47002         * doc/relocatable-maint.texi: New file.
47003         * doc/gnulib.texi: Include relocatable-maint.texi.
47004         * lib/progreloc.c: Include unistd.h unconditionally.
47005         * lib/relocwrapper.c: Include unistd.h unconditionally.
47006         Include c-ctype.h.
47007         (add_dotbin): Use c_tolower.
47008         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47009         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47010         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47011         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47012         to m4/relocatable-lib.m4.
47013         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47014         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47015         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47016         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47017         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47018         * modules/relocatable: New file.
47019         * modules/relocatable-lib: New file.
47020         * modules/relocatable-script: New file.
47021
47022 2007-02-28  Bruno Haible  <bruno@clisp.org>
47023
47024         Import --enable-relocatable infrastructure.
47025         * build-aux/config.libpath: New file, from GNU gettext.
47026         * build-aux/install-reloc: New file, from GNU gettext.
47027         * build-aux/reloc-ldflags: New file, from GNU gettext.
47028         * lib/relocatable.h: New file, from GNU gettext.
47029         * lib/relocatable.c: New file, from GNU gettext.
47030         * lib/relocwrapper.c: New file, from GNU gettext.
47031         * m4/relocatable.m4: New file, from GNU gettext.
47032
47033 2007-02-28  Bruno Haible  <bruno@clisp.org>
47034
47035         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47036
47037         * modules/xreadlink: New file, from GNU gettext with modifications.
47038         * lib/xreadlink.c: New file, from GNU gettext.
47039         * lib/xreadlink.h: Add comments.
47040         (xreadlink): New declaration.
47041
47042         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47043         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47044         lib/xreadlink-with-size.c.
47045         (configure.ac): Remove gl_XREADLINK invocation.
47046         (Makefile.am): Augment lib_SOURCES.
47047         * m4/xreadlink.m4: Remove file.
47048         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47049         (xreadlink_with_size): Renamed from xreadink.
47050         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47051         * modules/canonicalize (Depends-on): Replace xreadlink with
47052         xreadlink-with-size.
47053         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47054
47055 2007-02-25  Jim Meyering  <jim@meyering.net>
47056
47057         * build-aux/announce-gen: When complaining about excess arguments,
47058         list them.
47059
47060 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47061
47062         * README: Document signed integer overflow situation more
47063         accurately.
47064
47065 2007-02-25  Bruno Haible  <bruno@clisp.org>
47066
47067         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47068         'a' or 'A' conversion.
47069
47070 2007-02-25  Bruno Haible  <bruno@clisp.org>
47071
47072         * modules/filename: Renamed from modules/pathname.
47073         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47074         lib/concatpath.c with lib/concat-filename.c.
47075         (Makefile.am): Update.
47076         (Include): Replace pathname.h with filename.h.
47077         * lib/filename.h: Renamed from lib/pathname.h.
47078         (concatenated_filename): Renamed from concatenated_pathname.
47079         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47080         (concatenated_filename): Renamed from concatenated_pathname.
47081         * lib/findprog.c: Include filename.h instead of pathname.h.
47082         (find_in_path): Update.
47083         * lib/javacomp.c: Include filename.h instead of pathname.h.
47084         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47085         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47086         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47087         is_oldgcj_14_13_usable, is_javac_usable): Update.
47088         * lib/javaexec.c: Include filename.h instead of pathname.h.
47089         (execute_java_class): Update.
47090         * modules/findprog: Update.
47091         * modules/javacomp: Update.
47092         * modules/javaexec: Update.
47093         * MODULES.html.sh (File system functions): Add 'filename', remove
47094         'pathname'.
47095
47096 2007-02-25  Bruno Haible  <bruno@clisp.org>
47097
47098         * modules/printf-frexpl-tests: New file.
47099         * tests/test-printf-frexpl.c: New file.
47100
47101         * modules/printf-frexpl: New file.
47102         * lib/printf-frexpl.h: New file.
47103         * lib/printf-frexpl.c: New file.
47104         * m4/printf-frexpl.m4: New file.
47105
47106 2007-02-25  Bruno Haible  <bruno@clisp.org>
47107
47108         * modules/printf-frexp-tests: New file.
47109         * tests/test-printf-frexp.c: New file.
47110
47111         * modules/printf-frexp: New file.
47112         * lib/printf-frexp.h: New file.
47113         * lib/printf-frexp.c: New file.
47114         * m4/printf-frexp.m4: New file.
47115
47116 2007-02-25  Bruno Haible  <bruno@clisp.org>
47117
47118         Assume automake >= 1.10 for the tests.
47119         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47120         * modules/arctwo-tests: Likewise.
47121         * modules/argp-tests: Likewise.
47122         * modules/avltree-list-tests: Likewise.
47123         * modules/avltree-oset-tests: Likewise.
47124         * modules/avltreehash-list-tests: Likewise.
47125         * modules/carray-list-tests: Likewise.
47126         * modules/crc-tests: Likewise.
47127         * modules/des-tests: Likewise.
47128         * modules/gc-arcfour-tests: Likewise.
47129         * modules/gc-arctwo-tests: Likewise.
47130         * modules/gc-des-tests: Likewise.
47131         * modules/gc-hmac-md5-tests: Likewise.
47132         * modules/gc-hmac-sha1-tests: Likewise.
47133         * modules/gc-md2-tests: Likewise.
47134         * modules/gc-md4-tests: Likewise.
47135         * modules/gc-md5-tests: Likewise.
47136         * modules/gc-pbkdf2-sha1-tests: Likewise.
47137         * modules/gc-rijndael-tests: Likewise.
47138         * modules/gc-sha1-tests: Likewise.
47139         * modules/gc-tests: Likewise.
47140         * modules/getaddrinfo-tests: Likewise.
47141         * modules/hmac-md5-tests: Likewise.
47142         * modules/hmac-sha1-tests: Likewise.
47143         * modules/linked-list-tests: Likewise.
47144         * modules/linkedhash-list-tests: Likewise.
47145         * modules/lock-tests: Likewise.
47146         * modules/md2-tests: Likewise.
47147         * modules/md4-tests: Likewise.
47148         * modules/md5-tests: Likewise.
47149         * modules/rbtree-list-tests: Likewise.
47150         * modules/rbtree-oset-tests: Likewise.
47151         * modules/rbtreehash-list-tests: Likewise.
47152         * modules/read-file-tests: Likewise.
47153         * modules/rijndael-tests: Likewise.
47154         * modules/stdint-tests: Likewise.
47155         * modules/tls-tests: Likewise.
47156
47157 2007-02-24  Bruno Haible  <bruno@clisp.org>
47158
47159         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47160         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47161         function; instead check whether isnan with a double argument links.
47162         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47163         function; instead check whether isnan with a 'long double' argument
47164         links.
47165         Reported by Eric Blake <ebb9@byu.net>.
47166
47167 2007-02-24  Bruno Haible  <bruno@clisp.org>
47168
47169         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47170         defined.
47171         * lib/isnanl.c: Remove all code. Just include isnan.c.
47172         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47173
47174 2007-02-25  Jim Meyering  <jim@meyering.net>
47175
47176         Avoid conflicting types for 'unsetenv' on FreeBSD.
47177         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47178         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47179         in stdlib.h.
47180
47181 2007-02-24  Bruno Haible  <bruno@clisp.org>
47182
47183         * modules/isnanl-nolibm-tests: New file.
47184         * tests/test-isnanl.c: New file.
47185
47186         * modules/isnanl-nolibm: New file.
47187         * lib/isnanl.h: New file.
47188         * lib/isnanl.c: New file.
47189         * m4/isnanl.m4: New file.
47190
47191 2007-02-24  Bruno Haible  <bruno@clisp.org>
47192
47193         * modules/isnan-nolibm-tests: New file.
47194         * tests/test-isnan.c: New file.
47195
47196         * modules/isnan-nolibm: New file.
47197         * lib/isnan.h: New file.
47198         * lib/isnan.c: New file.
47199         * m4/isnan.m4: New file.
47200
47201 2007-02-24  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47204         assume that an exponent fits in 20 bits.
47205
47206 2007-02-24  Jim Meyering  <jim@meyering.net>
47207
47208         * m4/regex.m4: Update the description of the configure-time option,
47209         --without-included-regex, to state accurately what the defaults are,
47210         and perhaps to give people an idea why using this option is risky.
47211
47212 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47213
47214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47215         loops on small arguments.  This attempts to avoid the problem
47216         Bruno Haible reported for AIX 4.3.2 in
47217         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47218
47219 2007-02-23  Bruno Haible  <bruno@clisp.org>
47220
47221         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47222         Needed for help2man.
47223
47224 2007-02-23  Karl Berry  <karl@gnu.org>
47225
47226         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47227         exists, foo.h should be cvs-ignored, not committed.
47228
47229 2007-02-23  Eric Blake  <ebb9@byu.net>
47230
47231         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47232         * lib/stat-time.h (includes): Likewise.
47233         * lib/utimecmp.c (includes): Likewise.
47234         * lib/utimens.h (includes): Likewise.
47235         * lib/getdate.y (includes): Also include "timespec.h" for use
47236         internal to the module.
47237         * modules/utimens (Depends-on): Revert yesterday's patch.
47238         * modules/nanosleep (Depends-on): Add missing dependency.
47239
47240 2007-02-22  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/glob.c: Don't include getlogin_r.h.
47243
47244 2007-02-22  Jim Meyering  <jim@meyering.net>
47245
47246         * modules/utimens (Depends-on): Add timespec, required for
47247         utimens.h's inclusion of timespec.h.
47248
47249 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47250
47251         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47252         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47253         Schwab in
47254         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47255         I'll try to think of a better way to fix the Solaris problem.
47256
47257         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47258         like glibc; on Solaris 10, it fails with errno == EINVAL.
47259         POSIX says the behavior is unspecified if the first argument is NULL,
47260         so play it safe and never pass NULL to the system getcwd.
47261
47262 2007-02-21  Jim Meyering  <jim@meyering.net>
47263
47264         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47265         of gettimeofday.  It would conflict with the one now always
47266         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47267         an IRIX 6.5 build failure.
47268
47269 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47270
47271         Minor fixups to port to Solaris 10 with Sun C 5.8.
47272         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47273         * modules/getcwd (Depends-on): Add dirfd.
47274         * lib/putenv.c (putenv): #undef it.
47275         (rpl_putenv): New decl.
47276         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47277
47278 2007-02-20  Bruno Haible  <bruno@clisp.org>
47279
47280         * modules/stdio-tests: New file.
47281         * tests/test-stdio.c: New file.
47282
47283         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47284         (Depends-on): Add stdio.
47285         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47286         (Include): Use <stdio.h> instead of vsnprintf.h.
47287         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47288         HAVE_DECL_VSNPRINTF.
47289         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47290
47291         * modules/snprintf (Files): Remove lib/snprintf.h.
47292         (Depends-on): Add stdio.
47293         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47294         (Include): Use <stdio.h> instead of snprintf.h.
47295         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47296         HAVE_DECL_SNPRINTF.
47297         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47298         * lib/getaddrinfo.c: Likewise.
47299
47300         * modules/stdio: New file.
47301         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47302         * lib/snprintf.h: Remove file.
47303         * lib/vsnprintf.h: Remove file.
47304         * lib/.cppi-disable: Remove snprintf.h.
47305         * m4/stdio_h.m4: New file.
47306         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47307
47308 2007-02-20  Jim Meyering  <jim@meyering.net>
47309
47310         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47311         used by e.g., mingw.  From Bruno Haible.
47312
47313 2007-02-19  Bruno Haible  <bruno@clisp.org>
47314
47315         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47316         warnings.
47317         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47318
47319 2007-02-19  Bruno Haible  <bruno@clisp.org>
47320
47321         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47322         from mingw users.
47323
47324 2007-02-19  Bruno Haible  <bruno@clisp.org>
47325
47326         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47327         warnings.
47328         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47329
47330 2007-02-19  Jim Meyering  <jim@meyering.net>
47331
47332         Don't use FD after a successful "fdopendir (fd)".
47333         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47334         Reset it by calling dirfd on the just-obtained DIR*.
47335
47336         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47337         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47338
47339 2007-02-18  Bruno Haible  <bruno@clisp.org>
47340
47341         * lib/readlink.c: Include <unistd.h>.
47342         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47343         HAVE_READLINK.
47344         * modules/readlink (Depends-on): Add unistd.
47345         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47346         (Include): Add <unistd.h>.
47347
47348         * lib/getlogin_r.h: Remove file.
47349         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47350         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47351         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47352         HAVE_DECL_GETLOGIN_R.
47353         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47354         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47355         (Include): Use <unistd.h> instead of getlogin_r.h.
47356
47357         * lib/getcwd.h: Remove file.
47358         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47359         * lib/xgetcwd.c: Likewise.
47360         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47361         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47362         * modules/getcwd (Files): Remove lib/getcwd.h.
47363         (Depends-on): Add unistd.
47364         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47365         (Include): Use <unistd.h> instad of getcwd.h.
47366
47367         * lib/ftruncate.c: Include <unistd.h> first.
47368         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47369         Set HAVE_FTRUNCATE.
47370         * modules/ftruncate (Depends-on): Add unistd.
47371         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47372
47373         * lib/fchdir.c: Include <unistd.h> first.
47374         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47376         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47377         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47378         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47379
47380         * lib/dup2.c: Include <unistd.h> first.
47381         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47382         HAVE_DUP2.
47383         * modules/dup2 (Depends-on): Add unistd.
47384         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47385
47386         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47387         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47388         REPLACE_CHOWN. Don't define chown as a macro here.
47389         * modules/chown (Depends-on): Add unistd.
47390         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47391
47392         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47393         Add definition for GL_LINK_WARNING.
47394         (chown, dup2): New declarations.
47395         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47396         link warning.
47397         (ftruncate): New declaration.
47398         (getcwd): New declaration, taken from old getcwd.h.
47399         (getlogin_r): New declaration, taken from old getlogin_r.h.
47400         (readlink): New declaration.
47401         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47402         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47403         (gl_PREREQ_UNISTD): Remove macro.
47404         (gl_UNISTD_MODULE_INDICATOR): New macro.
47405         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47406         many new variables. Don't set UNISTD_H.
47407         * modules/unistd (Description): Change.
47408         (Depends-on): Add link-warning.
47409         (configure.ac): Update.
47410         (Makefile.am): Create unistd.h always. Substitute many new variables
47411         into it.
47412
47413 2007-02-18  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47416         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47417         HAVE_GETSUBOPT.
47418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47419         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47420         * lib/getsubopt.h: Remove file.
47421         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47422         (Depends-on): Add stdlib.
47423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47424         (Includes): Use <stdlib.h> instead of getsubopt.h.
47425         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47426         Set HAVE_GETSUBOPT.
47427         * lib/getsubopt.c: Don't include getsubopt.h.
47428
47429 2007-02-18  Bruno Haible  <bruno@clisp.org>
47430
47431         * modules/fchdir (Depends-on): Add dup2.
47432
47433 2007-02-18  Bruno Haible  <bruno@clisp.org>
47434
47435         * lib/stdlib_.h: Handle glibc's special invocation convention
47436         specially.
47437
47438 2007-02-18  Bruno Haible  <bruno@clisp.org>
47439
47440         * modules/stdlib-tests: New file.
47441         * tests/test-stdlib.c: New file.
47442
47443         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47444         (Depends-on): Add stdlib.
47445         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47446         (Includes): Use <stdlib.h> instead of mkstemp.h.
47447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47448         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47449         * lib/mkstemp.c: Don't include mkstemp.h.
47450         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47451         * lib/stdlib--.h: Don't include mkstemp.h.
47452
47453         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47454         (Depends-on): Add stdlib.
47455         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47456         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47457         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47458         HAVE_MKDTEMP.
47459         * lib/mkdtemp.c: Don't include mkdtemp.h.
47460         * lib/clean-temp.c: Don't include mkdtemp.h.
47461
47462         * modules/exit (Files): Remove lib/exit.h.
47463         (Depends-on): Add stdlib.
47464         (Makefile.am): Remove lib_SOURCES.
47465         (Include): Use <stdlib.h> instead of exit.h.
47466         * lib/argmatch.c: Don't include exit.h.
47467         * lib/execute.c: Likewise.
47468         * lib/pagealign_alloc.c: Likewise.
47469         * lib/pipe.c: Likewise.
47470         * lib/wait-process.c: Likewise.
47471         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47472         * lib/exitfail.c: Likewise.
47473         * lib/savewd.c: Likewise.
47474         * lib/xsetenv.c: Likewise.
47475
47476         * modules/stdlib: New file.
47477         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
47478         and extra comments about mkstemp().
47479         * lib/exit.h: Remove file.
47480         * lib/mkdtemp.h: Remove file.
47481         * lib/mkstemp.h: Remove file.
47482         * m4/stdlib_h.m4: New file.
47483         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
47484
47485 2007-02-18  Bruno Haible  <bruno@clisp.org>
47486
47487         * modules/math-tests: New file.
47488         * tests/test-math.c: New file.
47489
47490         * modules/math: New file.
47491         * modules/mathl (Files): Remove lib/mathl.h.
47492         (Depends-on): Add math.
47493         (Makefile.am): Don't mention mathl.h.
47494         (Include): Use <math.h> instead of mathl.h.
47495         * lib/math_.h: New file.
47496         * lib/mathl.h: Remove file.
47497         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
47498         mathl.h.
47499         * lib/asinl.c: Likewise.
47500         * lib/atanl.c: Likewise.
47501         * lib/ceill.c: Likewise.
47502         * lib/cosl.c: Likewise.
47503         * lib/expl.c: Likewise.
47504         * lib/floorl.c: Likewise.
47505         * lib/frexpl.c: Likewise.
47506         * lib/ldexpl.c: Likewise.
47507         * lib/logl.c: Likewise.
47508         * lib/sincosl.c: Likewise.
47509         * lib/sinl.c: Likewise.
47510         * lib/sqrtl.c: Likewise.
47511         * lib/tanl.c: Likewise.
47512         * lib/trigl.c: Likewise.
47513         * m4/math_h.m4: New file.
47514         * MODULES.html.sh (Mathematics): Add math.
47515
47516 2007-02-17  Bruno Haible  <bruno@clisp.org>
47517
47518         * modules/wctype-tests: New file.
47519         * tests/test-wctype.c: New file.
47520
47521         * modules/wchar-tests: New file.
47522         * tests/test-wchar.c: New file.
47523
47524         * modules/unistd-tests: New file.
47525         * tests/test-unistd.c: New file.
47526
47527         * modules/time-tests: New file.
47528         * tests/test-time.c: New file.
47529
47530         * modules/sysexits-tests: New file.
47531         * tests/test-sysexits.c: New file.
47532
47533         * modules/sys_time-tests: New file.
47534         * tests/test-sys_time.c: New file.
47535
47536         * modules/sys_stat-tests: New file.
47537         * tests/test-sys_stat.c: New file.
47538
47539         * modules/sys_socket-tests: New file.
47540         * tests/test-sys_socket.c: New file.
47541
47542         * modules/sys_select-tests: New file.
47543         * tests/test-sys_select.c: New file.
47544
47545         * modules/string-tests: New file.
47546         * tests/test-string.c: New file.
47547
47548         * modules/stdbool-tests: New file.
47549         * tests/test-stdbool.c: New file.
47550
47551         * modules/netinet_in-tests: New file.
47552         * tests/test-netinet_in.c: New file.
47553
47554         * modules/inttypes-tests: New file.
47555         * tests/test-inttypes.c: New file.
47556
47557         * modules/fcntl-tests: New file.
47558         * tests/test-fcntl.c: New file.
47559
47560         * modules/byteswap-tests: New file.
47561         * tests/test-byteswap.c: New file.
47562
47563         * modules/arpa_inet-tests: New file.
47564         * tests/test-arpa_inet.c: New file.
47565
47566 2007-02-17  Bruno Haible  <bruno@clisp.org>
47567
47568         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
47569         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
47570         if the corresponding module is not enabled. Emit link warnings if
47571         the function is used nevertheless.
47572         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
47573         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
47574         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
47575         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
47576         * modules/inttypes (Depends-on): Add link-warning.
47577         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47578         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
47579         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
47580         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
47581         * modules/imaxdiv (configure.ac): Likewise.
47582         * modules/strtoimax (configure.ac): Likewise.
47583         * modules/strtoumax (configure.ac): Likewise.
47584
47585 2007-02-17  Bruno Haible  <bruno@clisp.org>
47586
47587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
47588         gl_STRING_MODULE_INDICATOR_DEFAULTS.
47589         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
47590         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
47591
47592 2007-02-17  Bruno Haible  <bruno@clisp.org>
47593
47594         * modules/link-warning: New file.
47595         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
47596         * lib/string_.h (GL_LINK_WARNING): Remove definition.
47597         * modules/string (Depends-on): Add link-warning.
47598         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47599         string.h.
47600         * MODULES.html.sh (Support for building libraries and executables): Add
47601         link-warning.
47602
47603 2007-02-17  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
47606         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
47607         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
47608         long lines.
47609
47610 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
47611             Bruno Haible  <bruno@clisp.org>
47612
47613         * modules/tmpfile: New file.
47614         * lib/tmpfile.c: New file.
47615         * m4/tmpfile.m4: New file.
47616         * MODULES.html.sh (func_all_modules): New section "Input/output".
47617
47618 2007-02-15  Bruno Haible  <bruno@clisp.org>
47619
47620         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
47621         (supports_delete_on_close): New function.
47622         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
47623
47624 2007-02-14  Bruno Haible  <bruno@clisp.org>
47625
47626         * modules/mbspcasecmp-tests: New file.
47627         * tests/test-mbspcasecmp.sh: New file.
47628         * tests/test-mbspcasecmp.c: New file.
47629
47630         New module mbspcasecmp.
47631         * modules/mbspcasecmp: New file.
47632         * lib/mbspcasecmp.c: New file.
47633         * lib/string_.h (strncasecmp): Change warning message.
47634         (mbspcasecmp): New declaration.
47635         * m4/mbspcasecmp.m4: New file.
47636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47637         GNULIB_MBSPCASECMP.
47638         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
47639         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
47640
47641 2007-02-14  Bruno Haible  <bruno@clisp.org>
47642
47643         * modules/mbsncasecmp-tests: New file.
47644         * tests/test-mbsncasecmp.sh: New file.
47645         * tests/test-mbsncasecmp.c: New file.
47646
47647         New module mbsncasecmp.
47648         * modules/mbsncasecmp: New file.
47649         * lib/mbsncasecmp.c: New file.
47650         * lib/string_.h (mbsncasecmp): New declaration.
47651         * m4/mbsncasecmp.m4: New file.
47652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47653         GNULIB_MBSNCASECMP.
47654         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
47655         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
47656
47657 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47658
47659         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
47660         Verify that it doesn't overlap with our flags.
47661         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
47662         do not have the desired effect in multibyte locales; instead, use
47663         mbscasecmp.
47664         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
47665         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
47666         we don't require GNU fnmatch ourselves (if our users require it, they
47667         should do so explicitly).
47668
47669         Fix regex code so it doesn't rely on strcasecmp.
47670         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
47671         Otherwise, include gnulib's langinfo.h.
47672         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
47673         undesirable behavior in non-C locales.  Instead, rely on localecharset.
47674         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
47675         * modules/regex (FILES): Remove m4/codeset.m4.
47676         (Depends-on): Add localcharset.  Remove strcase.
47677
47678 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47679
47680         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
47681         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47682
47683 2007-02-13  Bruno Haible  <bruno@clisp.org>
47684
47685         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
47686         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47687
47688 2007-02-12  Bruno Haible  <bruno@clisp.org>
47689
47690         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47691         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
47692         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
47693         time warning rather than a link error.
47694
47695 2007-02-12  Bruno Haible  <bruno@clisp.org>
47696
47697         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
47698         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47699         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47700
47701 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47702
47703         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
47704         args, not 2.
47705
47706 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47707
47708         New module 'time', so that apps can include <time.h> as per
47709         POSIX and GNU instead of separate include files like time_r.h
47710         and timegm.h.  This implementation tries out a simpler approach
47711         for replacing decls in standard include files (as compared to
47712         the string module), somewhat as an experiment.
47713
47714         * config/srclist.txt: Comment out mktime.c for now.
47715         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
47716         since it doesn't apply any more.  Use generic wording instead.
47717         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
47718         'time'.
47719         * lib/time_.h, m4/time_h.m4, modules/time: New files.
47720         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
47721         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
47722         Don't include <sys/types.h>; no longer needed since we assume C89.
47723         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
47724         * lib/strftime.c: Likewise.
47725         * lib/time_r.c: Likewise.
47726         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
47727         * lib/nanosleep.c: Include <time.h> first, to check interface.
47728         * lib/strptime.c: Likewise.
47729         * lib/time_r.c: Likewise.
47730         * lib/timegm.c: Likewise.
47731         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
47732         needed.
47733         * lib/timegm.c: Don't include timegm.h; no longer needed.
47734         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
47735         time.h now handles any problems in that area.
47736         (struct timespec, nanosleep): Remove; time.h now arranges for these.
47737         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
47738         that time.h defines struct timespec.
47739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
47740         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
47741         handles that.
47742         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
47743         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
47744         needed.  Set REPLACE_LOCALTIME.
47745         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
47746         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
47747         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
47748         nanosleep; time_h.m4 now does that.  Don't require
47749         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
47750         module handles this now.
47751         * modules/getdate (Depends-on): Remove timespec.  Add time.
47752         * modules/nanosleep (Depends-on): Likewise.
47753         * modules/stat-time (Depends-on): Likewise.
47754         * modules/nanosleep (Include): Include time.h, not timespec.h.
47755         * modules/strptime (Files): Remove lib/strptime.h.
47756         (Depends-on): Add extensions, time.
47757         (Include): Include time.h, not strptime.h.
47758         * modules/time_r (Files): Remove lib/time_r.h.
47759         (Depends-on): Add time.
47760         (Include): Include time.h, not time_r.h.
47761         * modules/timegm: Likewise.
47762         * modules/timespec (Description): Now does timespec-related decls
47763         of our own, instead of struct timespec itself.
47764         (Depends-on): Add time; remove extensions.
47765         (Maintainer): Add self.
47766         * modules/utimecmp (Depends-on): Add time; remove timespec.
47767         * modules/utimens (Depends-on): Likewise.
47768         * modules/xnanosleep (Depends-on): Likewise.
47769
47770 2007-02-11  Bruno Haible  <bruno@clisp.org>
47771
47772         * lib/c-strstr.c: Include allocsa.h.
47773         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47774         * lib/c-strcasestr.c: Include allocsa.h.
47775         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47776         * lib/strcasestr.c: Include allocsa.h.
47777         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47778         * lib/mbsstr.c: Include allocsa.h.
47779         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47780         allocsa/freesa instead of malloc/free.
47781         * lib/mbscasestr.c: Include allocsa.h.
47782         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47783         allocsa/freesa instead of malloc/free.
47784         * modules/c-strstr (Depends-on): Add allocsa.
47785         * modules/c-strcasestr (Depends-on): Likewise.
47786         * modules/strcasestr (Depends-on): Likewise.
47787         * modules/mbsstr (Depends-on): Likewise.
47788         * modules/mbscasestr (Depends-on): Likewise.
47789
47790 2007-02-11  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
47793
47794         * modules/mbsspn-tests: New file.
47795         * tests/test-mbsspn.sh: New file.
47796         * tests/test-mbsspn.c: New file.
47797
47798 2007-02-11  Bruno Haible  <bruno@clisp.org>
47799
47800         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
47801
47802         * modules/mbspbrk-tests: New file.
47803         * tests/test-mbspbrk.sh: New file.
47804         * tests/test-mbspbrk.c: New file.
47805
47806 2007-02-11  Bruno Haible  <bruno@clisp.org>
47807
47808         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
47809         unneeded cast.
47810
47811         * modules/mbscspn-tests: New file.
47812         * tests/test-mbscspn.sh: New file.
47813         * tests/test-mbscspn.c: New file.
47814
47815 2007-02-11  Bruno Haible  <bruno@clisp.org>
47816
47817         * modules/mbscasecmp-tests: New file.
47818         * tests/test-mbscasecmp.sh: New file.
47819         * tests/test-mbscasecmp.c: New file.
47820
47821 2007-02-11  Bruno Haible  <bruno@clisp.org>
47822
47823         Ensure O(n) worst-case complexity of mbscasestr.
47824         * lib/mbscasestr.c: Include stdbool.h.
47825         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47826         functions.
47827         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
47828         the bookkeeping indicates that it's worth it.
47829         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
47830
47831         * modules/mbscasestr-tests: New file.
47832         * tests/test-mbscasestr1.c: New file.
47833         * tests/test-mbscasestr2.sh: New file.
47834         * tests/test-mbscasestr2.c: New file.
47835         * tests/test-mbscasestr3.sh: New file.
47836         * tests/test-mbscasestr3.c: New file.
47837         * tests/test-mbscasestr4.sh: New file.
47838         * tests/test-mbscasestr4.c: New file.
47839         * m4/locale-tr.m4: New file.
47840
47841 2007-02-11  Bruno Haible  <bruno@clisp.org>
47842
47843         Ensure O(n) worst-case complexity of mbsstr.
47844         * lib/mbsstr.c: Include stdbool.h.
47845         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47846         functions.
47847         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
47848         bookkeeping indicates that it's worth it.
47849         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
47850
47851         * modules/mbsstr-tests: New file.
47852         * tests/test-mbsstr1.c: New file.
47853         * tests/test-mbsstr2.sh: New file.
47854         * tests/test-mbsstr2.c: New file.
47855         * tests/test-mbsstr3.sh: New file.
47856         * tests/test-mbsstr3.c: New file.
47857         * m4/locale-fr.m4: New file.
47858
47859 2007-02-11  Bruno Haible  <bruno@clisp.org>
47860
47861         * lib/mbsrchr.c (mbsrchr): Fix bug.
47862
47863         * modules/mbsrchr-tests: New file.
47864         * tests/test-mbsrchr.sh: New file.
47865         * tests/test-mbsrchr.c: New file.
47866
47867 2007-02-11  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/mbschr.c (mbschr): Fix bug.
47870
47871         * modules/mbschr-tests: New file.
47872         * tests/test-mbschr.sh: New file.
47873         * tests/test-mbschr.c: New file.
47874         * m4/locale-zh.m4: New file.
47875
47876 2007-02-11  Bruno Haible  <bruno@clisp.org>
47877
47878         Support for copying multibyte string iterators.
47879         * lib/mbiter.h: Include <string.h>.
47880         (mbiter_multi_copy): New function.
47881         (mbi_copy): New macro.
47882         * lib/mbuiter.h: Include <string.h>.
47883         (mbuiter_multi_copy): New function.
47884         (mbui_copy): New macro.
47885
47886 2007-02-11  Bruno Haible  <bruno@clisp.org>
47887
47888         New module mbslen.
47889         * modules/mbslen: New file.
47890         * lib/mbslen.c: New file.
47891         * lib/string_.h (mbslen): New declaration.
47892         * m4/mbslen.m4: New file.
47893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47894         GNULIB_MBSLEN.
47895         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
47896         * MODULES.html.sh (Internationalization functions): Add mbslen.
47897
47898 2007-02-11  Bruno Haible  <bruno@clisp.org>
47899
47900         Ensure O(n) worst-case complexity of strcasestr substitute.
47901         * lib/strcasestr.c: Include stdbool.h.
47902         (knuth_morris_pratt): New function.
47903         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47904         bookkeeping indicates that it's worth it.
47905         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
47906
47907         * modules/strcasestr-tests: New file.
47908         * tests/test-strcasestr.c: New file.
47909
47910 2007-02-11  Bruno Haible  <bruno@clisp.org>
47911
47912         Ensure O(n) worst-case complexity of c_strcasestr.
47913         * lib/c-strcasestr.c: Include stdbool.h, string.h.
47914         (knuth_morris_pratt): New function.
47915         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
47916         the bookkeeping indicates that it's worth it.
47917         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
47918
47919         * modules/c-strcasestr-tests: New file.
47920         * tests/test-c-strcasestr.c: New file.
47921
47922 2007-02-11  Bruno Haible  <bruno@clisp.org>
47923
47924         Ensure O(n) worst-case complexity of c_strstr.
47925         * lib/c-strstr.c: Include stdbool.h, string.h.
47926         (knuth_morris_pratt): New function.
47927         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47928         bookkeeping indicates that it's worth it.
47929         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
47930
47931         * lib/c-strstr.c: Complete rewrite for maintainability.
47932
47933         * modules/c-strstr-tests: New file.
47934         * tests/test-c-strstr.c: New file.
47935
47936 2007-02-11  Bruno Haible  <bruno@clisp.org>
47937
47938         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
47939         5.2.1 and earlier, whereby \055 was treated just like the range
47940         delimiter '-'.
47941         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47942
47943 2007-02-08  Bruno Haible  <bruno@clisp.org>
47944
47945         * modules/regex (Depends-on): Add stdbool.
47946         Reported by Dalibor Topic <robilad@kaffe.org>.
47947
47948 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47949
47950         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
47951         Prefer returning from main to exiting from it.
47952         Remove unnecessary parens after sizeof.
47953
47954 2007-02-05  Bruno Haible  <bruno@clisp.org>
47955
47956         New module mbssep.
47957         * modules/mbssep: New file.
47958         * lib/mbssep.c: New file.
47959         * lib/string_.h (strsep): Add a conditional link warning.
47960         (mbssep): New declaration.
47961         * m4/mbssep.m4: New file.
47962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47963         GNULIB_MBSSEP.
47964         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
47965         * MODULES.html.sh (Internationalization functions): Add mbssep.
47966
47967 2007-02-05  Bruno Haible  <bruno@clisp.org>
47968
47969         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
47970         Optimize search in case of 1 delimiter.
47971
47972 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47973
47974         * lib/acl.h: Include sys/types.h before sys/acl.h.
47975
47976 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47977
47978         Merge upstream fix for glibc bugzilla #3957:
47979
47980         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
47981
47982         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
47983         bit for RE_HAT_LISTS_NOT_NEWLINE.
47984         (build_charclass_op): Remove bogus comment.
47985
47986 2007-02-05  Simon Josefsson  <simon@josefsson.org>
47987
47988         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
47989
47990 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
47991
47992         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
47993         * lib/memmem.c [!defined _LIBC]: Include config.h.
47994
47995 2007-02-04  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
47998         warning message.
47999
48000 2007-02-04  Bruno Haible  <bruno@clisp.org>
48001
48002         New module mbstok_r.
48003         * modules/mbstok_r: New file.
48004         * lib/mbstok_r.c: New file.
48005         * lib/string_.h (strtok_r): Change argument names to match the
48006         comments. Add a conditional link warning.
48007         (mbstok_r): New declaration.
48008         * m4/mbstok_r.m4: New file.
48009         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48010         GNULIB_MBSTOK_R.
48011         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48012         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48013
48014 2007-02-04  Bruno Haible  <bruno@clisp.org>
48015
48016         New module mbsspn.
48017         * modules/mbsspn: New file.
48018         * lib/mbsspn.c: New file.
48019         * lib/string_.h (strspn): Add a conditional link warning.
48020         (mbsspn): New declaration.
48021         * m4/mbsspn.m4: New file.
48022         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48023         GNULIB_MBSSPN.
48024         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48025         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48026
48027 2007-02-04  Bruno Haible  <bruno@clisp.org>
48028
48029         New module mbspbrk.
48030         * modules/mbspbrk: New file.
48031         * lib/mbspbrk.c: New file.
48032         * lib/string_.h (strpbrk): Add a conditional link warning.
48033         (mbspbrk): New declaration.
48034         * m4/mbspbrk.m4: New file.
48035         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48036         GNULIB_MBSPBRK.
48037         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48038         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48039
48040 2007-02-04  Bruno Haible  <bruno@clisp.org>
48041
48042         New module mbscspn.
48043         * modules/mbscspn: New file.
48044         * lib/mbscspn.c: New file.
48045         * lib/string_.h (strcspn): Add a conditional link warning.
48046         (mbscspn): New declaration.
48047         * m4/mbscspn.m4: New file.
48048         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48049         GNULIB_MBSCSPN.
48050         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48051         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48052
48053 2007-02-04  Bruno Haible  <bruno@clisp.org>
48054
48055         New module mbscasestr, reduced goal of strcasestr.
48056         * modules/mbscasestr: New file.
48057         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48058         (mbscasestr): Renamed from strcasestr.
48059         * lib/strcasestr.c: Don't include mbuiter.h.
48060         (strcasestr): Remove support for multibyte locales.
48061         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48062         Change the conditional link warning.
48063         (mbscasestr): New declaration.
48064         * m4/mbscasestr.m4: New file.
48065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48066         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48067         REPLACE_STRCASESTR.
48068         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48070         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48071         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48072         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48073         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48074         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48075         (Depends-on): Remove mbuiter.
48076         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48077
48078 2007-02-04  Bruno Haible  <bruno@clisp.org>
48079
48080         Simplify handling of strncasecmp.
48081         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48082         the conditional link warning.
48083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48084         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48086         * modules/strcase (configure.ac): Don't invoke
48087         gl_STRING_MODULE_INDICATOR.
48088         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48089
48090 2007-02-04  Bruno Haible  <bruno@clisp.org>
48091
48092         New module mbscasecmp, reduced goal of strcasecmp.
48093         * modules/mbscasecmp: New file.
48094         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48095         (mbscasecmp): Renamed from strcasecmp.
48096         * lib/strcasecmp.c: Don't include mbuiter.h.
48097         (strcasecmp): Remove support for multibyte locales.
48098         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48099         Change the conditional link warning.
48100         (mbscasecmp): New declaration.
48101         * m4/mbscasecmp.m4: New file.
48102         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48103         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48104         REPLACE_STRCASECMP.
48105         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48107         GNULIB_MBSCASECMP.
48108         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48109         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48110         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48111         (Depends-on): Remove mbuiter.
48112         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48113
48114 2007-02-04  Bruno Haible  <bruno@clisp.org>
48115
48116         New module mbsstr. Remove module strstr.
48117         * modules/mbsstr: New file.
48118         * modules/strstr: Remove file.
48119         * lib/mbsstr.c: Renamed from lib/strstr.c.
48120         (mbsstr): Renamed from strstr.
48121         * lib/string_.h (strstr): Remove declaration. Change the conditional
48122         link warning.
48123         (mbsstr): New declaration.
48124         * m4/mbsstr.m4: New file.
48125         * m4/strstr.m4: Remove file.
48126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48127         REPLACE_STRSTR.
48128         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48129         Don't initialize GNULIB_STRSTR.
48130         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48131         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48132         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48133         (Support for systems lacking ANSI C 89): Remove strstr.
48134
48135 2007-02-04  Bruno Haible  <bruno@clisp.org>
48136
48137         New module mbsrchr.
48138         * modules/mbsrchr: New file.
48139         * lib/mbsrchr.c: New file.
48140         * lib/string_.h (strrchr): Add a conditional link warning.
48141         (mbsrchr): New declaration.
48142         * m4/mbsrchr.m4: New file.
48143         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48144         GNULIB_MBSRCHR.
48145         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48146         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48147
48148 2007-02-04  Bruno Haible  <bruno@clisp.org>
48149
48150         New module mbschr.
48151         * modules/mbschr: New file.
48152         * lib/mbschr.c: New file.
48153         * lib/string_.h (strchr): Add a conditional link warning.
48154         (mbschr): New declaration.
48155         * m4/mbschr.m4: New file.
48156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48157         GNULIB_MBSCHR.
48158         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48159         * MODULES.html.sh (Internationalization functions): Add mbschr.
48160
48161 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48162
48163         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48164
48165         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48166
48167 2007-02-04  Bruno Haible  <bruno@clisp.org>
48168
48169         New module description section 'configure.ac-early'.
48170         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48171         (func_get_autoconf_early_snippet): New function.
48172         (func_import, func_create_testdir): Use it. Remove special cases for
48173         modules 'extensions' and 'lock'.
48174         * modules/extensions (configure.ac-early): Require
48175         gl_USE_SYSTEM_EXTENSIONS.
48176         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48177
48178 2007-02-04  Bruno Haible  <bruno@clisp.org>
48179
48180         Make use of gcj-4.3's -fsource and -ftarget option.
48181         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48182         and if so try the options -fsource and -ftarget.
48183         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48184         source_version, ftarget_option, target_version arguments.
48185         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48186         (is_envjavac_oldgcj_14_14_usable): Renamed from
48187         is_envjavac_gcj_14_14_usable.
48188         (is_envjavac_oldgcj_14_13_usable): Renamed from
48189         is_envjavac_gcj_14_13_usable.
48190         (is_gcj_present): Update.
48191         (is_gcj_43, is_gcj43_usable): New functions.
48192         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48193         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48194         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48195         try the options -fsource and -ftarget.
48196
48197 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48198
48199         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48200         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48201         larger value.
48202
48203 2007-02-03  Jim Meyering  <jim@meyering.net>
48204
48205         Give tools a better chance to allocate space for very large buffers.
48206         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48207
48208         Make pwd and readlink work also when run with an unreadable parent dir
48209         on systems with openat support.
48210         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48211         provided getcwd function, even when we have openat support.
48212         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48213
48214 2007-02-02  Bruno Haible  <bruno@clisp.org>
48215
48216         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48217         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48218         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48219         portability problems if one of these functions is only used on specific
48220         platforms.
48221         Reported by Paul Eggert.
48222
48223 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48224
48225         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48226         is causing more trouble than it's curing.
48227         * lib/regex_internal.h (__mempcpy): Remove.
48228         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48229         (and make the code a tad smaller to boot).
48230         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48231
48232 2007-02-02  Jim Meyering  <jim@meyering.net>
48233
48234         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48235         section, not in the Makefile.am: one.
48236
48237 2007-02-02  Eric Blake  <ebb9@byu.net>
48238
48239         * lib/strchrnul.c: Always include config.h first.
48240
48241         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48242         gnulib strstr is not necessary here.
48243
48244 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48245
48246         * m4/socklen.m4: Fix typo.
48247
48248 2007-02-02  Eric Blake  <ebb9@byu.net>
48249
48250         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48251         * modules/netinet_in (Makefile.am): Likewise.
48252
48253 2007-02-01  Bruno Haible  <bruno@clisp.org>
48254
48255         * lib/string_.h (GL_LINK_WARNING): New macro.
48256         (strcasecmp, strstr, strcasestr): If provided by the system,
48257         conditionally define as a macro that leads to a warning instead of to
48258         an error.
48259         (strncasecmp): Conditionally define as a macro that leads to a warning.
48260
48261 2007-02-01  Karl Berry  <karl@gnu.org>
48262
48263         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48264
48265 2007-02-01  Bruno Haible  <bruno@clisp.org>
48266
48267         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48268         renamings.
48269
48270 2007-02-01  Eric Blake  <ebb9@byu.net>
48271
48272         * modules/regex (Depends-on): Revert dependence on mempcpy.
48273         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48274         module's definition of mempcpy.
48275         Reported by Paul Eggert.
48276
48277 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48278
48279         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48280         the symbol XYZ before redefining it.  This fixes a problem with
48281         programs that don't use XYZ, when compiled on systems that define
48282         XYZ to something else.
48283
48284 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48285
48286         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48287         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48288         writeable to group or other and (2) is intended to have a special
48289         mode bit that is set or cleared.  In such a case, the directory
48290         should be neither group- nor other-writeable until the special
48291         mode bits are right.
48292
48293 2007-01-31  Eric Blake  <ebb9@byu.net>
48294
48295         * modules/mountlist (Depends-on): Add strstr.
48296
48297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48298         bug.
48299         * modules/string (Makefile.am): Remove redundant replacement.
48300         * modules/regex (Depends-on): Add mempcpy.
48301
48302 2007-01-31  Bruno Haible  <bruno@clisp.org>
48303
48304         New module description field 'Link'.
48305         * gnulib-tool (func_usage): Document --extract-link-directive.
48306         (sed_extract_prog): Recognize 'Link' directive.
48307         (func_get_link_directive): New function.
48308         (func_import): Show summary of link directives.
48309         Handle --extract-link-directive option.
48310         * modules/acl (Link): New section.
48311         * modules/clock-time (Link): New section.
48312         * modules/euidaccess (Link): New section.
48313         * modules/gettext (Link): New section.
48314         * modules/iconv (Link): New section.
48315         * modules/lock (Link): New section.
48316         * modules/nanosleep (Link): New section.
48317         * modules/readline (Link): New section.
48318
48319 2007-01-27  Bruno Haible  <bruno@clisp.org>
48320
48321         Enforce the use of gnulib modules for unportable <string.h> functions.
48322         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48323         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48324         (gl_HEADER_STRING_H_BODY): Require it.
48325         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48326         the symbol XYZ to one that gives a link error.
48327         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48328         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48329         * modules/mempcpy (configure.ac): Likewise.
48330         * modules/memrchr (configure.ac): Likewise.
48331         * modules/stpcpy (configure.ac): Likewise.
48332         * modules/stpncpy (configure.ac): Likewise.
48333         * modules/strcase (configure.ac): Likewise.
48334         * modules/strcasestr (configure.ac): Likewise.
48335         * modules/strchrnul (configure.ac): Likewise.
48336         * modules/strdup (configure.ac): Likewise.
48337         * modules/strndup (configure.ac): Likewise.
48338         * modules/strnlen (configure.ac): Likewise.
48339         * modules/strpbrk (configure.ac): Likewise.
48340         * modules/strsep (configure.ac): Likewise.
48341         * modules/strstr (configure.ac): Likewise.
48342         * modules/strtok_r (configure.ac): Likewise.
48343
48344 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48345
48346         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48347
48348 2007-01-30  Jim Meyering  <jim@meyering.net>
48349
48350         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48351
48352 2007-01-29  Bruno Haible  <bruno@clisp.org>
48353
48354         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48355         * lib/execute.c: Likewise.
48356         * lib/pipe.c: Likewise.
48357         * lib/printf-args.h: Likewise.
48358         * lib/printf-args.c: Likewise.
48359         * lib/printf-parse.c: Likewise.
48360         * lib/vasnprintf.c: Likewise.
48361
48362 2007-01-29  Eric Blake  <ebb9@byu.net>
48363
48364         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48365         declaration.
48366
48367 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48368
48369         * lib/strptime.h (strptime): Use 'restrict' for args where
48370         POSIX requires this.
48371         * lib/strptime.c (strptime): Likewise.
48372         Change license notice from LGPL to GPL, since gnulib-tool will
48373         change this as needed.
48374         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48375         defined.
48376         Include "strptime.h" first, to check interface.
48377         Do not #undef _LIBC and _NL_CURRENT.
48378         Do not include <stdlib.h>; no longer needed.
48379         Include "time_r.h" and declare ptime_locale_status
48380         only if _LIBC is not defined.
48381         (__P): Remove unused macro.
48382         (match_string): Bring back glibc version, but use it only if _LIBC
48383         is defined.
48384         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48385         Remove unnecessary assertion and abort() call.
48386         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48387         * m4/strptime.m4: Fix serial number comment.
48388         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48389         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48390         (Depends-on): Add time_r.
48391
48392 2007-01-29  Bruno Haible  <bruno@clisp.org>
48393
48394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48395         strptime.
48396         * modules/strptime (Depends-on): Add stdbool.
48397         * lib/strptime.h: Include <time.h> always. Add comments.
48398
48399 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48400
48401         * modules/strptime: New file.
48402         * lib/strptime.h: New file.
48403         * lib/strptime.c: New file.
48404         * m4/strptime.m4: New file.
48405
48406 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48407
48408         * MODULES.html.sh: New module mpsort.
48409         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48410
48411         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48412         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48414         All uses changed.
48415         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48416         All uses changed.
48417         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48418         to _Restrict_.
48419         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48420         the parameter matches the prototype.
48421
48422 2007-01-28  Jim Meyering  <jim@meyering.net>
48423
48424         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48425         sys/time.h here, reverting that part of the previous patch:
48426         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48427
48428 2007-01-28  Bruno Haible  <bruno@clisp.org>
48429
48430         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48431         value of $(SYS_TIME_H).
48432         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48433         remove it conditionally, too. [added by Jim Meyering]
48434         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48435         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48436         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48437         GETTIMEOFDAY_REPLACEMENT to 1.
48438
48439 2007-01-28  Bruno Haible  <bruno@clisp.org>
48440
48441         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48442         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48443         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48444         Set UNISTD_H instead of UNISTD_H2.
48445         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48446
48447 2007-01-28  Bruno Haible  <bruno@clisp.org>
48448
48449         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48450         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48451
48452 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48453
48454         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48455         (func_create_testdir): Ensure C locale for `grep' and `tr'
48456         character ranges.
48457         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48458         ACLOCAL_AMFLAGS parsing state machine.
48459
48460 2007-01-27  Bruno Haible  <bruno@clisp.org>
48461
48462         * modules/unistr/base: Update.
48463
48464 2007-01-27  Bruno Haible  <bruno@clisp.org>
48465
48466         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48467         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48468         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48469         modules/unistr/u32-mbtouc.
48470         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48471         * lib/unistr.h: Update.
48472         * lib/linebreak.c: Update.
48473         * modules/unistr/u32-mbtouc: Renamed from
48474         modules/unistr/u32-mbtouc-safe.
48475         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48476         * lib/unistr.h: Update.
48477         * lib/unistr/u32-to-u8.c: Update.
48478         * lib/unistr/u32-to-u16.c: Update.
48479
48480 2007-01-27  Bruno Haible  <bruno@clisp.org>
48481
48482         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
48483         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
48484         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
48485         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
48486         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
48487         * modules/unistr/u16-mbtouc-unsafe: Renamed from
48488         modules/unistr/u16-mbtouc.
48489         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
48490         * lib/unistr.h: Update.
48491         * lib/linebreak.c: Update.
48492         * modules/linebreak: Update.
48493         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
48494         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
48495         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
48496         * modules/unistr/u16-mbtouc: Renamed from
48497         modules/unistr/u16-mbtouc-safe.
48498         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
48499         * lib/unistr.h: Update.
48500         * lib/unistr/u16-to-u8.c: Update.
48501         * modules/unistr/u16-to-u8: Update.
48502         * lib/unistr/u16-to-u32.c: Update.
48503         * modules/unistr/u16-to-u32: Update.
48504
48505 2007-01-27  Bruno Haible  <bruno@clisp.org>
48506
48507         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48508         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48509         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48510         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48511         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48512         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48513         modules/unistr/u8-mbtouc.
48514         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48515         * lib/unistr.h: Update.
48516         * lib/striconveh.c: Update.
48517         * modules/striconveh: Update.
48518         * lib/linebreak.c: Update.
48519         * modules/linebreak: Update.
48520         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48521         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48522         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48523         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48524         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48525         * lib/unistr.h: Update.
48526         * lib/striconveh.c: Update.
48527         * modules/striconveh: Update.
48528         * lib/unistr/u8-to-u16.c: Update.
48529         * modules/unistr/u8-to-u16: Update.
48530         * lib/unistr/u8-to-u32.c: Update.
48531         * modules/unistr/u8-to-u32: Update.
48532
48533 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48534
48535         Sync from Libtool.
48536         * lib/argz.c: Do not include strings.h nor memory.h, include
48537         string.h unconditionally.  Patch by Simon Josefsson.
48538
48539 2007-01-27  Bruno Haible  <bruno@clisp.org>
48540
48541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48542         from gl_HEADER_STRING_H_BODY.
48543         (gl_HEADER_STRING_H_BODY): Require it.
48544         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48545         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48546         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48547         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48548         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48549         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
48550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48551         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48552         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
48553         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48554         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48555         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
48556         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48557         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48558         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48559
48560 2007-01-27  Bruno Haible  <bruno@clisp.org>
48561
48562         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
48563         check_PROGRAMS into noinst_PROGRAMS.
48564         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
48565         check_PROGRAMS in this case.
48566         (func_import): Set for_test to false.
48567         (func_create_testdir): Set for_test to true.
48568
48569 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48570             Bruno Haible  <bruno@clisp.org>
48571
48572         * modules/strcasestr (Files): Remove lib/strcasestr.h.
48573         (Depends-on): Add string.
48574         (Includes): Use <string.h> instead of strcasestr.h.
48575         * modules/string (Makefile.am): Also substitute the value of
48576         REPLACE_STRCASESTR.
48577         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
48578         assume strcasestr is declared in <string.h> not <strings.h>. Also
48579         set REPLACE_STRCASESTR.
48580         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
48581         REPLACE_STRCASESTR.
48582         * lib/strcasestr.h: Remove file.
48583         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
48584         * lib/string_.h (strcasestr): New declaration.
48585
48586 2007-01-27  Bruno Haible  <bruno@clisp.org>
48587
48588         * lib/string_.h: Use 'extern'.
48589
48590 2007-01-27  Jim Meyering  <jim@meyering.net>
48591
48592         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
48593         of set-but-not-used local, "q".
48594
48595         * lib/mempcpy.c: Include <config.h> before <string.h>.
48596         This fixes a compilation error on HP-UX, due to the system's
48597         "restrict"-using mempcpy prototype.
48598
48599 2007-01-26  Bruno Haible  <bruno@clisp.org>
48600
48601         Small optimization.
48602         * lib/javacomp.c: Include c-strstr.h.
48603          (is_envjavac_gcj): Use c_strstr instead of strstr.
48604         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
48605
48606 2007-01-26  Bruno Haible  <bruno@clisp.org>
48607
48608         * MODULES.html.sh (Unicode string functions): Add the new modules.
48609
48610         * modules/uniconv/u32-strconv-to-locale: New file.
48611         * lib/uniconv/u32-strconv-to-locale.c: New file.
48612
48613         * modules/uniconv/u16-strconv-to-locale: New file.
48614         * lib/uniconv/u16-strconv-to-locale.c: New file.
48615
48616         * modules/uniconv/u8-strconv-to-locale: New file.
48617         * lib/uniconv/u8-strconv-to-locale.c: New file.
48618
48619         * modules/uniconv/u32-strconv-from-locale: New file.
48620         * lib/uniconv/u32-strconv-from-locale.c: New file.
48621
48622         * modules/uniconv/u16-strconv-from-locale: New file.
48623         * lib/uniconv/u16-strconv-from-locale.c: New file.
48624
48625         * modules/uniconv/u8-strconv-from-locale: New file.
48626         * lib/uniconv/u8-strconv-from-locale.c: New file.
48627
48628         * modules/uniconv/u32-strconv-to-enc: New file.
48629         * lib/uniconv/u32-strconv-to-enc.c: New file.
48630         * modules/uniconv/u32-strconv-to-enc-tests: New file.
48631         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
48632
48633         * modules/uniconv/u16-strconv-to-enc: New file.
48634         * lib/uniconv/u16-strconv-to-enc.c: New file.
48635         * lib/uniconv/u-strconv-to-enc.h: New file.
48636         * modules/uniconv/u16-strconv-to-enc-tests: New file.
48637         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
48638
48639         * modules/uniconv/u8-strconv-to-enc: New file.
48640         * lib/uniconv/u8-strconv-to-enc.c: New file.
48641         * modules/uniconv/u8-strconv-to-enc-tests: New file.
48642         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
48643
48644         * modules/uniconv/u32-strconv-from-enc: New file.
48645         * lib/uniconv/u32-strconv-from-enc.c: New file.
48646         * modules/uniconv/u32-strconv-from-enc-tests: New file.
48647         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
48648
48649         * modules/uniconv/u16-strconv-from-enc: New file.
48650         * lib/uniconv/u16-strconv-from-enc.c: New file.
48651         * modules/uniconv/u16-strconv-from-enc-tests: New file.
48652         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
48653
48654         * modules/uniconv/u8-strconv-from-enc: New file.
48655         * lib/uniconv/u8-strconv-from-enc.c: New file.
48656         * lib/uniconv/u-strconv-from-enc.h: New file.
48657         * modules/uniconv/u8-strconv-from-enc-tests: New file.
48658         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
48659
48660         * modules/uniconv/u32-conv-from-enc: New file.
48661         * lib/uniconv/u32-conv-from-enc.c: New file.
48662         * modules/uniconv/u32-conv-from-enc-tests: New file.
48663         * tests/uniconv/test-u32-conv-from-enc.c: New file.
48664
48665         * modules/uniconv/u16-conv-from-enc: New file.
48666         * lib/uniconv/u16-conv-from-enc.c: New file.
48667         * lib/uniconv/u-conv-from-enc.h: New file.
48668         * modules/uniconv/u16-conv-from-enc-tests: New file.
48669         * tests/uniconv/test-u16-conv-from-enc.c: New file.
48670
48671         * modules/uniconv/u8-conv-from-enc: New file.
48672         * lib/uniconv/u8-conv-from-enc.c: New file.
48673         * modules/uniconv/u8-conv-from-enc-tests: New file.
48674         * tests/uniconv/test-u8-conv-from-enc.c: New file.
48675
48676         * modules/uniconv/base: New file.
48677         * lib/uniconv.h: New file.
48678
48679 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48680
48681         * doc/gnulib-tool.texi (Initial import): Update to match current
48682         behavior with strdup module.
48683         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
48684         * lib/memmem.h: Remove; all uses removed.  This is now done
48685         by <string.h>.
48686         * lib/mempcpy.h: Likewise.
48687         * lib/memrchr.h: Likewise.
48688         * lib/stpcpy.h: Likewise.
48689         * lib/stpncpy.h: Likewise.
48690         * lib/strcase.h: Likewise.
48691         * lib/strchrnul.h: Likewise.
48692         * lib/strdup.h: Likewise.
48693         * lib/strndup.h: Likewise.
48694         * lib/strnlen.h: Likewise.
48695         * lib/strpbrk.h: Likewise.
48696         * lib/strsep.h: Likewise.
48697         * lib/strstr.h: Likewise.
48698         * lib/strtok_r.h: Likewise.
48699         * lib/string_.h: New file.
48700         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
48701         Rely on <string.h> instead.
48702         * lib/canon-host.c: Likewise.
48703         * lib/chdir-long.c: Likewise.
48704         * lib/concatpath.c: Likewise.
48705         * lib/exclude.c: Likewise.
48706         * lib/fchdir.c: Likewise.
48707         * lib/getaddrinfo.c: Likewise.
48708         * lib/getcwd.c: Likewise.
48709         * lib/getsubopt.c: Likewise.
48710         * lib/glob.c: Likewise.
48711         * lib/hard-locale.c: Likewise.
48712         * lib/iconvme.c: Likewise.
48713         * lib/javacomp.c: Likewise.
48714         * lib/mempcpy.c: Likewise.
48715         * lib/memrchr.c: Likewise.
48716         * lib/regex_internal.h: Likewise.
48717         * lib/stpncpy.c: Likewise.
48718         * lib/strcasecmp.c: Likewise.
48719         * lib/strchrnul.c: Likewise.
48720         * lib/strdup.c: Likewise.
48721         * lib/striconv.c: Likewise.
48722         * lib/striconveh.c: Likewise.
48723         * lib/striconveha.c: Likewise.
48724         * lib/strncasecmp.c: Likewise.
48725         * lib/strndup.c: Likewise.
48726         * lib/strnlen.c: Likewise.
48727         * lib/strsep.c: Likewise.
48728         * lib/strstr.c: Likewise.
48729         * lib/strtok_r.c: Likewise.
48730         * lib/userspec.c: Likewise.
48731         * lib/w32spawn.h: Likewise.
48732         * lib/xstrndup.c: Likewise.
48733         * lib/mountlist.c (strstr): Remove decl.
48734         * m4/string_h.m4: New file.
48735         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
48736         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
48737         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
48738         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
48739         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
48740         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
48741         Set REPLACE_STRCASECMP if necessary.
48742         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
48743         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
48744         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
48745         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
48746         HAVE_DECL_STRDUP if necessary.
48747         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
48748         since gl_FUNC_STRNDUP does that now.
48749         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
48750         Check for decl here...
48751         (gl_PREREQ_STRNLEN): ... not here.
48752         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
48753         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
48754         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
48755         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
48756         necessary.
48757         * modules/string: New file.
48758         * modules/memmem (Files): Remove special-purpose include file.
48759         (Depends-on): Add string.
48760         (Include): Include <string.h>, not the removed file.
48761         * modules/mempcpy: Likewise.
48762         * modules/memrchr: Likewise.
48763         * modules/stpcpy: Likewise.
48764         * modules/stpncpy: Likewise.
48765         * modules/strcase: Likewise.
48766         * modules/strchrnul: Likewise.
48767         * modules/strdup: Likewise.
48768         * modules/strndup: Likewise.
48769         * modules/strnlen: Likewise.
48770         * modules/strpbrk: Likewise.
48771         * modules/strsep: Likewise.
48772         * modules/strstr: Likewise.
48773         * modules/strtok_r: Likewise.
48774         * tests/test-dirname.c: Don't include "strdup.h", since
48775         <string.h> now suffices.
48776         * tests/test-memmem.c: Don't include "memmem.h", since
48777         <string.h> now suffices.
48778
48779 2007-01-25  Bruno Haible  <bruno@clisp.org>
48780
48781         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
48782         *resultp is 0.
48783
48784         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
48785         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
48786         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
48787         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
48788
48789         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
48790         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
48791         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
48792         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
48793         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
48794         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
48795
48796 2007-01-24  Bruno Haible  <bruno@clisp.org>
48797
48798         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
48799         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
48800         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
48801         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
48802         gl_FUNC_FTS_CORE.
48803         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
48804         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
48805         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48806         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
48807         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
48808         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
48809         gl_FUNC_FCHOWNAT.
48810         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
48811         gl_FUNC_STRFTIME.
48812         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
48813         Reported by Ralf Wildenhues.
48814
48815 2007-01-24  Bruno Haible  <bruno@clisp.org>
48816
48817         Drop AC_REQUIRE calls that are redundant with the module dependencies.
48818         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
48819         gl_GETADDRINFO.
48820         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
48821         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
48822         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
48823
48824 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
48825
48826         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
48827         Don't use 'exit'; just return from 'main'.
48828         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
48829
48830         * lib/fnmatch_.h: Readjust white space and comments to match
48831         glibc, to avoid spurious diffs.
48832
48833 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48834
48835         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
48836         2004-12-01 change by Jakub Jelinek, since this code won't compile
48837         if !LIBC.  Problem reported by Bob Proulx.
48838
48839 2007-01-23  Bruno Haible  <bruno@clisp.org>
48840
48841         * lib/striconveh.c: Include c-strcaseeq.h.
48842         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
48843         * modules/striconveh (Depends-on): Add c-strcaseeq.
48844
48845 2007-01-23  Bruno Haible  <bruno@clisp.org>
48846
48847         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
48848
48849         * modules/c-strcaseeq: New file.
48850         * lib/c-strcaseeq.h: New file.
48851
48852         * modules/streq: New file.
48853         * lib/streq.h: New file.
48854
48855 2007-01-23  Bruno Haible  <bruno@clisp.org>
48856
48857         * modules/striconveha-tests: New file.
48858         * tests/test-striconveha.c: New file.
48859
48860         * lib/striconveha.h: Include <stdbool.h>.
48861         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
48862         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
48863         (mem_iconveha_notranslit): Renamed from mem_iconveha.
48864         (mem_iconveha): New function.
48865         (str_iconveha_notranslit): Renamed from str_iconveha.
48866         (str_iconveha): New function.
48867         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
48868         c-strcase.
48869
48870 2007-01-23  Bruno Haible  <bruno@clisp.org>
48871
48872         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
48873         encodings without forgiving before trying any encoding with handler.
48874         (str_iconveha): Try all encodings without forgiving before trying any
48875         encoding with handler.
48876
48877 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48878
48879         Import the following changes from libc.
48880
48881         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48882
48883         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
48884
48885         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
48886
48887         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
48888         normal_bracket label.
48889
48890         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
48891
48892         [BZ #361]
48893         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
48894         to normal_bracket after fetching the next character.
48895
48896 2007-01-22  Bruno Haible  <bruno@clisp.org>
48897
48898         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
48899         argument.
48900         * lib/striconveh.c (iconv_carefully_1): New function.
48901         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
48902         argument.
48903         (str_cd_iconveh): Update.
48904         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
48905         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
48906         * tests/test-striconveh.c (MAGIC): New macro.
48907         (new_offsets): New function.
48908         (main): Test call with and without offsets.
48909
48910 2007-01-22  Bruno Haible  <bruno@clisp.org>
48911
48912         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
48913         * modules/sys_select (Makefile.am): Likewise.
48914         * modules/sys_socket (Makefile.am): Likewise.
48915         * modules/sys_time (Makefile.am): Likewise.
48916
48917 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48918
48919         * modules/gettimeofday (License): Change from GPL to LGPL, since
48920         gettimeofday is a library function.
48921
48922 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48923
48924         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
48925
48926 2007-01-21  Bruno Haible  <bruno@clisp.org>
48927
48928         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
48929
48930 2007-01-21  Bruno Haible  <bruno@clisp.org>
48931
48932         * modules/striconveha: New file.
48933         * lib/striconveha.h: New file.
48934         * lib/striconveha.c: New file.
48935         * MODULES.html.sh (Internationalization functions): Add striconveha.
48936         * lib/striconv.c (str_iconv): Optimize the case of an empty input
48937         string.
48938         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
48939
48940 2007-01-21  Bruno Haible  <bruno@clisp.org>
48941
48942         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
48943         * lib/striconveh.c (str_iconveh): Likewise.
48944
48945 2007-01-21  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/striconveh.h (mem_iconveh): New declaration.
48948         * lib/striconveh.c (mem_iconveh): New function.
48949         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
48950
48951 2007-01-21  Bruno Haible  <bruno@clisp.org>
48952
48953         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
48954
48955         * lib/striconveh.h (mem_cd_iconveh): Change specification.
48956         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
48957         original result buffer.
48958         (str_cd_iconveh): Update.
48959         * tests/test-striconveh.c (main): Update.
48960
48961         * lib/striconv.h (mem_cd_iconv): Change specification.
48962         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
48963         result buffer.
48964         (str_cd_iconv): Update.
48965         * tests/test-striconv.c (main): Update.
48966
48967 2007-01-21  Bruno Haible  <bruno@clisp.org>
48968
48969         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
48970
48971 2007-01-20  Jim Meyering  <jim@meyering.net>
48972
48973         * lib/userspec.c (parse_with_separator): If a user or group string
48974         starts with "+", skip the corresponding name-to-ID look-up, since
48975         such a look-up must fail: user and group names may not include "+".
48976
48977 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
48978
48979         * lib/poll.c: Include sys/time.h and time.h unconditionally,
48980         since we now assume the sys_time module.
48981         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
48982         check for sys/time.h; no longer needed.
48983         * modules/poll (Depends-on): Depend on sys_time.
48984
48985 2007-01-18  Bruno Haible  <bruno@clisp.org>
48986
48987         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
48988         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
48989
48990         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
48991         gettimeofday.
48992
48993         * tests/test-gettimeofday.c: Include <time.h>.
48994         (dummy): Remove variable.
48995
48996         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
48997         gl_HEADER_SYS_TIME_H.
48998         (gl_HEADER_SYS_TIME_H): New macro.
48999
49000         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49001         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49002         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49003         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49004         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49005         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49006         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49007         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49008         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49009         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49010         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49011
49012         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49013         last change; it caused a compilation error when cross-compiling to
49014         Cygwin.
49015
49016 2007-01-18  Jim Meyering  <jim@meyering.net>
49017
49018         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49019         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49020         than the race-prone "test -d sys || mkdir sys".
49021         (configure.ac): Use AC_PROG_MKDIR_P.
49022         * modules/sys_select: Likewise.
49023         * modules/sys_socket: Likewise.
49024         * modules/sys_time: Likewise.
49025
49026 2007-01-18  Eric Blake  <ebb9@byu.net>
49027
49028         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49029         replace gettimeofday.
49030         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49031         name, to avoid infinite recursion.
49032
49033 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49034
49035         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49036         module sys_time.
49037         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49038         assume timespec.h defines struct timeval.
49039         * lib/settime.c: Likewise.
49040         * lib/utimens.c: Likewise.
49041         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49042         since we now assume the gettimeofday module.
49043         * lib/tempname.c (__gen_tempname): Likewise.
49044         * lib/gettimeofday.h: Remove.
49045         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49046         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49047         Include <time.h>, for 'time()'.
49048         (localtime_buffer_addr): Also use this workaround if
49049         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49050         to simplify the uses.  All uses changed.
49051         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49052         that #undef is inside {}, and 'const' follows type name consistently.
49053         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49054         (gettimeofday): Do not use the maximum possible value for
49055         tv->tv_usec, since that might break usages other than ls.c.
49056         Instead, we'll leave ls.c alone.  This undoes today's patch
49057         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49058         we've never observed the problem but might as well keep the
49059         canary.
49060         * lib/nanosleep.c: Include timespec.h first, for interface check.
49061         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49062         now assume the sys_time module.
49063         * lib/tempname.c: Likewise.
49064         * lib/timespec.h: Likewise.
49065         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49066         needed.
49067         * lib/strftime.c: Likewise.
49068         * lib/timespec.h: Likewise.
49069         * lib/posixtm.c: Include posixtm.h first, for interface check.
49070         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49071         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49072         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49073         * lib/sys_time_.h: New file.
49074         * lib/timespec.h (struct timespec): Use long int, not long.
49075         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49076         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49077         Remove obsolescent call to AC_HEADER_TIME.
49078         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49080         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49081         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49082         Likewise.
49083         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49084         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49086         into the sys_time module.  Check for gettimeofday just once.
49087         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49088         for gettimeofday signature to just check the signature.  Merely
49089         compile it, since linking doesn't test signature.  Improve test for
49090         whether gettimeofday.o is actually needed.
49091         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49092         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49093         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49094         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49095         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49096         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49097         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49098         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49099         than worrying about sys/time.h.
49100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49101         Don't bother worrying about TIME_WITH_SYS_TIME.
49102         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49103         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49104         * m4/sys_time_h.m4: New file.
49105         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49106         Don't include sys/time.h.  Return from main rather than exiting.
49107         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49108         all uses changed.
49109         * modules/gethrxtime (Depends-on): Add sys_time.
49110         * modules/gettime (Depends-on): Likewise.
49111         * modules/gettimeofday (Depends-on): Likewise.
49112         * modules/nanosleep (Depends-on): Likewise.
49113         * modules/settime (Depends-on): Likewise.
49114         * modules/tempname (Depends-on): Likewise.
49115         * modules/utimens (Depends-on): Likewise.
49116         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49117         (Include:) Change back to <sys/time.h>.
49118         (Maintainer:) Add self.
49119         * modules/sys_time: New file.
49120         * modules/tempname (Depends-on): Add gettimeofday.
49121         * tests/test-gettimeofday.c: Include <sys/time.h>
49122         rather than gettimeofday.h.
49123
49124 2007-01-17  Bruno Haible  <bruno@clisp.org>
49125
49126         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49127         the license default to GPL.
49128         (func_create_testdir): Don't complain if a module is LGPL and its
49129         tests module depends on GPLed modules.
49130
49131 2007-01-17  Bruno Haible  <bruno@clisp.org>
49132
49133         * lib/gettimeofday.c (gettimeofday): Add code for the case
49134         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49135         maximum possible value for tv->tv_usec, rather than the minimum one.
49136
49137 2005-10-08  Martin Lambers  <marlam@marlam.de>
49138 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49139 2007-01-16  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49142         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49143         gl_FUNC_GETTIMEOFDAY.
49144         (Include): Add gettimeofday.h.
49145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49146         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49147         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49148         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49149         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49150         * lib/gettimeofday.h: New file.
49151         * lib/gettimeofday.c: Include <sys/timeb.h>.
49152         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49153         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49154         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49155         fall back on time().
49156
49157         * tests/test-gettimeofday.c: New file.
49158         * modules/gettimeofday-tests: New file.
49159
49160 2007-01-16  Eric Blake  <ebb9@byu.net>
49161
49162         * modules/fnmatch (Depends-on): Depend on wchar.
49163         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49164         * m4/fnmatch.m4: Likewise.
49165         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49166         * m4/mbchar.m4: Likewise.
49167         * modules/mbswidth (Depends-on): Depend on wchar.
49168         * lib/mbswidth.c: Assume <wchar.h>.
49169         * m4/mbswidth.m4: Likewise.
49170         * modules/quotearg (Depends-on): Depend on wchar.
49171         * lib/quotearg.c: Assume <wchar.h>.
49172         * m4/quotearg.m4: Likewise.
49173         * modules/regex (Depends-on): Depend on wchar.
49174         * lib/regex_internal.h: Assume <wchar.h>.
49175         * m4/regex.m4: Likewise.
49176         * modules/stdint (Depends-on): Depend on wchar.
49177         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49178         * m4/stdint.m4: Likewise.
49179         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49180         * modules/strftime (Depends-on): Depend on wchar.
49181         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49182         * modules/strtol (Depends-on): Depend on wchar.
49183         * lib/strtol.c: Assume <wchar.h>.
49184         * modules/wcwidth (Depends-on): Depend on wchar.
49185         * lib/wcwidth.h: Assume <wchar.h>.
49186         * m4/wcwidth.m4: Likewise.
49187
49188 2007-01-16  Bruno Haible  <bruno@clisp.org>
49189
49190         * modules/csharpexec-script: New, created from...
49191         * modules/csharpexec: ... this.
49192
49193 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49194
49195         * modules/javaexec-script: New, created from...
49196         * modules/javaexec: ... this.
49197
49198 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49199
49200         * modules/poll (Dependencies): Add sys_select.
49201
49202 2007-01-15  Jim Meyering  <jim@meyering.net>
49203
49204         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49205         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49206         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49207         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49208
49209 2007-01-15  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/striconveh: New file.
49212         * lib/striconveh.h: New file.
49213         * lib/striconveh.c: New file.
49214         * MODULES.html.sh (Internationalization functions): Add striconveh.
49215
49216         * modules/striconveh-tests: New file.
49217         * tests/test-striconveh.c: New file.
49218
49219 2007-01-15  Bruno Haible  <bruno@clisp.org>
49220
49221         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49222         not from GNU libiconv or GNU libc.
49223
49224 2007-01-15  Bruno Haible  <bruno@clisp.org>
49225
49226         * doc/gnulib-intro.texi (Copyright): Explain the different license
49227         terms for module descriptions, autoconf macros, tests, documentation.
49228
49229 2007-01-14  Bruno Haible  <bruno@clisp.org>
49230
49231         * modules/striconv-tests: New file.
49232         * tests/test-striconv.c: New file.
49233
49234 2007-01-14  Bruno Haible  <bruno@clisp.org>
49235
49236         * modules/iconv-tests: New file.
49237         * tests/test-iconv.c: New file.
49238
49239 2007-01-14  Bruno Haible  <bruno@clisp.org>
49240
49241         * gnulib-tool (func_get_license): For test modules, use the license of
49242         the main module.
49243
49244 2007-01-14  Bruno Haible  <bruno@clisp.org>
49245
49246         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49247         if iconv is found to exist.
49248
49249 2007-01-14  Bruno Haible  <bruno@clisp.org>
49250
49251         * modules/c-ctype-tests: New file.
49252         * tests/test-c-ctype.c: New file.
49253
49254 2007-01-14  Bruno Haible  <bruno@clisp.org>
49255
49256         * modules/binary-io-tests: New file.
49257         * tests/test-binary-io.sh: New file.
49258         * tests/test-binary-io.c: New file.
49259
49260 2007-01-14  Bruno Haible  <bruno@clisp.org>
49261
49262         * modules/array-oset-tests: New file.
49263         * tests/test-array_oset.c: New file.
49264
49265 2007-01-14  Bruno Haible  <bruno@clisp.org>
49266
49267         * modules/array-list-tests: New file.
49268         * tests/test-array_list.c: New file.
49269
49270 2007-01-14  Bruno Haible  <bruno@clisp.org>
49271
49272         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49273         and make.
49274         Reported by Simon Josefsson in
49275         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49276
49277 2007-01-14  Bruno Haible  <bruno@clisp.org>
49278
49279         * modules/allocsa-tests: New file.
49280         * tests/test-allocsa.c: New file.
49281
49282 2007-01-14  Bruno Haible  <bruno@clisp.org>
49283
49284         * modules/fchdir (Depends-on): Add absolute-header.
49285         * modules/unistd (Depends-on): Likewise.
49286
49287 2006-12-30  Bruno Haible  <bruno@clisp.org>
49288
49289         * modules/fchdir: New file.
49290         * modules/unistd (Files): Add lib/unistd_.h.
49291         (Makefile.am): Generate unistd.h from unistd_.h.
49292         * lib/fchdir.c: New file.
49293         * lib/dirent_.h: New file.
49294         * lib/unistd_.h: New file.
49295         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49296         * m4/fchdir.m4: New file.
49297         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49298         (gl_HEADER_UNISTD): Invoke it.
49299         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49300         function.
49301         * lib/backupfile.c (opendir, closedir): Undefine.
49302         * lib/chown.c (open, close): Undefine.
49303         * lib/clean-temp.c (open, close): Undefine.
49304         * lib/copy-file.c (open, close): Undefine.
49305         * lib/execute.c (open, close): Undefine.
49306         * lib/fsusage.c (open, close): Undefine.
49307         * lib/gc-gnulib.c (open, close): Undefine.
49308         * lib/getcwd.c (opendir, closedir): Undefine.
49309         * lib/glob.c (opendir, closedir): Undefine.
49310         * lib/javacomp.c (open, close): Undefine.
49311         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49312         * lib/openat-proc.c (open, close): Undefine.
49313         * lib/pagealign_alloc.c (open, close): Undefine.
49314         * lib/pipe.c (open, close): Undefine.
49315         * lib/progreloc.c (open, close): Undefine.
49316         * lib/savedir.c (opendir, closedir): Undefine.
49317         * lib/utime.c (open, close): Undefine.
49318         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49319
49320 2007-01-10  Bruno Haible  <bruno@clisp.org>
49321
49322         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49323
49324 2007-01-12  Eric Blake  <ebb9@byu.net>
49325
49326         Provide a robust <wchar.h>.  Further simplifications are now
49327         possible in other modules, but not included here.
49328         * modules/wchar: New module.
49329         * m4/wchar.m4: New file.
49330         * lib/wchar_.h: Likewise.
49331         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49332         of the new module.
49333         * MODULES.html.sh (Extended multibyte and wide character utilities):
49334         New section.
49335
49336 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49337
49338         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49339         to a reasonable default for memory allocation.
49340         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49341         file system that reports garbage st_size values for symlinks.
49342         Problem reported by Liyang Hu.
49343
49344 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49345
49346         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49347         Emacs .#* auto-save files).
49348
49349 2007-01-11  Bruno Haible  <bruno@clisp.org>
49350
49351         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49352         directory.
49353
49354 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49355
49356         Use @...@ consistently in lib/wctype_.h.
49357         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49358         on it being set to 1 or 0.
49359         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49360         go back to AC_SUBSTing it.
49361         * modules/wctype (Makefile.am): Undo previous change.
49362
49363 2007-01-10  Eric Blake  <ebb9@byu.net>
49364
49365         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49366         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49367         * modules/wctype (Makefile.am): Likewise.
49368         Reported by Chris McGuire.
49369
49370 2007-01-10  Jim Meyering  <jim@meyering.net>
49371
49372         fts.c: a small readability/maintainability improvement
49373         * lib/fts.c (fts_read): Make this code slightly more readable and
49374         maintainable by hoisting the "sp->fts_cur = p" assignments to
49375         immediately follow the statements that set P.  Derived from
49376         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49377
49378 2007-01-10  Eric Blake  <ebb9@byu.net>
49379
49380         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49381         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49383         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49384         Reported by Chris McGuire.
49385
49386 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49387
49388         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49389         in sed script.
49390
49391 2007-01-09  Bruno Haible  <bruno@clisp.org>
49392
49393         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49394         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49395         variables.
49396         (func_module): Use them.
49397
49398 2007-01-09  Bruno Haible  <bruno@clisp.org>
49399
49400         * modules/unistr/base: New file.
49401         * lib/unistr.h: New file.
49402
49403         * modules/unistr/u8-to-u16: New file.
49404         * lib/unistr/u8-to-u16.c: New file.
49405
49406         * modules/unistr/u8-to-u32: New file.
49407         * lib/unistr/u8-to-u32.c: New file.
49408
49409         * modules/unistr/u16-to-u8: New file.
49410         * lib/unistr/u16-to-u8.c: New file.
49411
49412         * modules/unistr/u16-to-u32: New file.
49413         * lib/unistr/u16-to-u32.c: New file.
49414
49415         * modules/unistr/u32-to-u8: New file.
49416         * lib/unistr/u32-to-u8.c: New file.
49417
49418         * modules/unistr/u32-to-u16: New file.
49419         * lib/unistr/u32-to-u16.c: New file.
49420
49421         * modules/unistr/u8-check: New file.
49422         * modules/unistr/u16-check: New file.
49423         * modules/unistr/u32-check: New file.
49424         * lib/unistr/u8-check.c: New file.
49425         * lib/unistr/u16-check.c: New file.
49426         * lib/unistr/u32-check.c: New file.
49427
49428         * modules/unistr/u8-chr: New file.
49429         * modules/unistr/u16-chr: New file.
49430         * modules/unistr/u32-chr: New file.
49431         * lib/unistr/u8-chr.c: New file.
49432         * lib/unistr/u16-chr.c: New file.
49433         * lib/unistr/u32-chr.c: New file.
49434
49435         * modules/unistr/u8-cmp: New file.
49436         * modules/unistr/u16-cmp: New file.
49437         * modules/unistr/u32-cmp: New file.
49438         * lib/unistr/u8-cmp.c: New file.
49439         * lib/unistr/u16-cmp.c: New file.
49440         * lib/unistr/u32-cmp.c: New file.
49441
49442         * modules/unistr/u8-cpy: New file.
49443         * modules/unistr/u16-cpy: New file.
49444         * modules/unistr/u32-cpy: New file.
49445         * lib/unistr/u8-cpy.c: New file.
49446         * lib/unistr/u16-cpy.c: New file.
49447         * lib/unistr/u32-cpy.c: New file.
49448         * lib/unistr/u-cpy.h: New file.
49449
49450         * modules/unistr/u8-cpy-alloc: New file.
49451         * modules/unistr/u16-cpy-alloc: New file.
49452         * modules/unistr/u32-cpy-alloc: New file.
49453         * lib/unistr/u8-cpy-alloc.c: New file.
49454         * lib/unistr/u16-cpy-alloc.c: New file.
49455         * lib/unistr/u32-cpy-alloc.c: New file.
49456         * lib/unistr/u-cpy-alloc.h: New file.
49457
49458         * modules/unistr/u8-endswith: New file.
49459         * modules/unistr/u16-endswith: New file.
49460         * modules/unistr/u32-endswith: New file.
49461         * lib/unistr/u8-endswith.c: New file.
49462         * lib/unistr/u16-endswith.c: New file.
49463         * lib/unistr/u32-endswith.c: New file.
49464         * lib/unistr/u-endswith.h: New file.
49465
49466         * modules/unistr/u8-mblen: New file.
49467         * modules/unistr/u16-mblen: New file.
49468         * modules/unistr/u32-mblen: New file.
49469         * lib/unistr/u8-mblen.c: New file.
49470         * lib/unistr/u16-mblen.c: New file.
49471         * lib/unistr/u32-mblen.c: New file.
49472
49473         * modules/unistr/u8-mbtouc: New file.
49474         * modules/unistr/u16-mbtouc: New file.
49475         * modules/unistr/u32-mbtouc: New file.
49476         * lib/unistr/u8-mbtouc.c: New file.
49477         * lib/unistr/u16-mbtouc.c: New file.
49478         * lib/unistr/u32-mbtouc.c: New file.
49479
49480         * modules/unistr/u8-mbtouc-safe: New file.
49481         * modules/unistr/u16-mbtouc-safe: New file.
49482         * modules/unistr/u32-mbtouc-safe: New file.
49483         * lib/unistr/u8-mbtouc-safe.c: New file.
49484         * lib/unistr/u16-mbtouc-safe.c: New file.
49485         * lib/unistr/u32-mbtouc-safe.c: New file.
49486
49487         * modules/unistr/u8-move: New file.
49488         * modules/unistr/u16-move: New file.
49489         * modules/unistr/u32-move: New file.
49490         * lib/unistr/u8-move.c: New file.
49491         * lib/unistr/u16-move.c: New file.
49492         * lib/unistr/u32-move.c: New file.
49493         * lib/unistr/u-move.h: New file.
49494
49495         * modules/unistr/u8-next: New file.
49496         * modules/unistr/u16-next: New file.
49497         * modules/unistr/u32-next: New file.
49498         * lib/unistr/u8-next.c: New file.
49499         * lib/unistr/u16-next.c: New file.
49500         * lib/unistr/u32-next.c: New file.
49501
49502         * modules/unistr/u8-prev: New file.
49503         * modules/unistr/u16-prev: New file.
49504         * modules/unistr/u32-prev: New file.
49505         * lib/unistr/u8-prev.c: New file.
49506         * lib/unistr/u16-prev.c: New file.
49507         * lib/unistr/u32-prev.c: New file.
49508
49509         * modules/unistr/u8-set: New file.
49510         * modules/unistr/u16-set: New file.
49511         * modules/unistr/u32-set: New file.
49512         * lib/unistr/u8-set.c: New file.
49513         * lib/unistr/u16-set.c: New file.
49514         * lib/unistr/u32-set.c: New file.
49515         * lib/unistr/u-set.h: New file.
49516
49517         * modules/unistr/u8-startswith: New file.
49518         * modules/unistr/u16-startswith: New file.
49519         * modules/unistr/u32-startswith: New file.
49520         * lib/unistr/u8-startswith.c: New file.
49521         * lib/unistr/u16-startswith.c: New file.
49522         * lib/unistr/u32-startswith.c: New file.
49523         * lib/unistr/u-startswith.h: New file.
49524
49525         * modules/unistr/u8-stpcpy: New file.
49526         * modules/unistr/u16-stpcpy: New file.
49527         * modules/unistr/u32-stpcpy: New file.
49528         * lib/unistr/u8-stpcpy.c: New file.
49529         * lib/unistr/u16-stpcpy.c: New file.
49530         * lib/unistr/u32-stpcpy.c: New file.
49531         * lib/unistr/u-stpcpy.h: New file.
49532
49533         * modules/unistr/u8-stpncpy: New file.
49534         * modules/unistr/u16-stpncpy: New file.
49535         * modules/unistr/u32-stpncpy: New file.
49536         * lib/unistr/u8-stpncpy.c: New file.
49537         * lib/unistr/u16-stpncpy.c: New file.
49538         * lib/unistr/u32-stpncpy.c: New file.
49539         * lib/unistr/u-stpncpy.h: New file.
49540
49541         * modules/unistr/u8-strcat: New file.
49542         * modules/unistr/u16-strcat: New file.
49543         * modules/unistr/u32-strcat: New file.
49544         * lib/unistr/u8-strcat.c: New file.
49545         * lib/unistr/u16-strcat.c: New file.
49546         * lib/unistr/u32-strcat.c: New file.
49547         * lib/unistr/u-strcat.h: New file.
49548
49549         * modules/unistr/u8-strchr: New file.
49550         * modules/unistr/u16-strchr: New file.
49551         * modules/unistr/u32-strchr: New file.
49552         * lib/unistr/u8-strchr.c: New file.
49553         * lib/unistr/u16-strchr.c: New file.
49554         * lib/unistr/u32-strchr.c: New file.
49555
49556         * modules/unistr/u8-strcmp: New file.
49557         * modules/unistr/u16-strcmp: New file.
49558         * modules/unistr/u32-strcmp: New file.
49559         * lib/unistr/u8-strcmp.c: New file.
49560         * lib/unistr/u16-strcmp.c: New file.
49561         * lib/unistr/u32-strcmp.c: New file.
49562
49563         * modules/unistr/u8-strcpy: New file.
49564         * modules/unistr/u16-strcpy: New file.
49565         * modules/unistr/u32-strcpy: New file.
49566         * lib/unistr/u8-strcpy.c: New file.
49567         * lib/unistr/u16-strcpy.c: New file.
49568         * lib/unistr/u32-strcpy.c: New file.
49569         * lib/unistr/u-strcpy.h: New file.
49570
49571         * modules/unistr/u8-strcspn: New file.
49572         * modules/unistr/u16-strcspn: New file.
49573         * modules/unistr/u32-strcspn: New file.
49574         * lib/unistr/u8-strcspn.c: New file.
49575         * lib/unistr/u16-strcspn.c: New file.
49576         * lib/unistr/u32-strcspn.c: New file.
49577         * lib/unistr/u-strcspn.h: New file.
49578
49579         * modules/unistr/u8-strdup: New file.
49580         * modules/unistr/u16-strdup: New file.
49581         * modules/unistr/u32-strdup: New file.
49582         * lib/unistr/u8-strdup.c: New file.
49583         * lib/unistr/u16-strdup.c: New file.
49584         * lib/unistr/u32-strdup.c: New file.
49585         * lib/unistr/u-strdup.h: New file.
49586
49587         * modules/unistr/u8-strlen: New file.
49588         * modules/unistr/u16-strlen: New file.
49589         * modules/unistr/u32-strlen: New file.
49590         * lib/unistr/u8-strlen.c: New file.
49591         * lib/unistr/u16-strlen.c: New file.
49592         * lib/unistr/u32-strlen.c: New file.
49593         * lib/unistr/u-strlen.h: New file.
49594
49595         * modules/unistr/u8-strmblen: New file.
49596         * modules/unistr/u16-strmblen: New file.
49597         * modules/unistr/u32-strmblen: New file.
49598         * lib/unistr/u8-strmblen.c: New file.
49599         * lib/unistr/u16-strmblen.c: New file.
49600         * lib/unistr/u32-strmblen.c: New file.
49601
49602         * modules/unistr/u8-strmbtouc: New file.
49603         * modules/unistr/u16-strmbtouc: New file.
49604         * modules/unistr/u32-strmbtouc: New file.
49605         * lib/unistr/u8-strmbtouc.c: New file.
49606         * lib/unistr/u16-strmbtouc.c: New file.
49607         * lib/unistr/u32-strmbtouc.c: New file.
49608
49609         * modules/unistr/u8-strncat: New file.
49610         * modules/unistr/u16-strncat: New file.
49611         * modules/unistr/u32-strncat: New file.
49612         * lib/unistr/u8-strncat.c: New file.
49613         * lib/unistr/u16-strncat.c: New file.
49614         * lib/unistr/u32-strncat.c: New file.
49615         * lib/unistr/u-strncat.h: New file.
49616
49617         * modules/unistr/u8-strncmp: New file.
49618         * modules/unistr/u16-strncmp: New file.
49619         * modules/unistr/u32-strncmp: New file.
49620         * lib/unistr/u8-strncmp.c: New file.
49621         * lib/unistr/u16-strncmp.c: New file.
49622         * lib/unistr/u32-strncmp.c: New file.
49623
49624         * modules/unistr/u8-strncpy: New file.
49625         * modules/unistr/u16-strncpy: New file.
49626         * modules/unistr/u32-strncpy: New file.
49627         * lib/unistr/u8-strncpy.c: New file.
49628         * lib/unistr/u16-strncpy.c: New file.
49629         * lib/unistr/u32-strncpy.c: New file.
49630         * lib/unistr/u-strncpy.h: New file.
49631
49632         * modules/unistr/u8-strnlen: New file.
49633         * modules/unistr/u16-strnlen: New file.
49634         * modules/unistr/u32-strnlen: New file.
49635         * lib/unistr/u8-strnlen.c: New file.
49636         * lib/unistr/u16-strnlen.c: New file.
49637         * lib/unistr/u32-strnlen.c: New file.
49638         * lib/unistr/u-strnlen.h: New file.
49639
49640         * modules/unistr/u8-strpbrk: New file.
49641         * modules/unistr/u16-strpbrk: New file.
49642         * modules/unistr/u32-strpbrk: New file.
49643         * lib/unistr/u8-strpbrk.c: New file.
49644         * lib/unistr/u16-strpbrk.c: New file.
49645         * lib/unistr/u32-strpbrk.c: New file.
49646         * lib/unistr/u-strpbrk.h: New file.
49647
49648         * modules/unistr/u8-strrchr: New file.
49649         * modules/unistr/u16-strrchr: New file.
49650         * modules/unistr/u32-strrchr: New file.
49651         * lib/unistr/u8-strrchr.c: New file.
49652         * lib/unistr/u16-strrchr.c: New file.
49653         * lib/unistr/u32-strrchr.c: New file.
49654
49655         * modules/unistr/u8-strspn: New file.
49656         * modules/unistr/u16-strspn: New file.
49657         * modules/unistr/u32-strspn: New file.
49658         * lib/unistr/u8-strspn.c: New file.
49659         * lib/unistr/u16-strspn.c: New file.
49660         * lib/unistr/u32-strspn.c: New file.
49661         * lib/unistr/u-strspn.h: New file.
49662
49663         * modules/unistr/u8-strstr: New file.
49664         * modules/unistr/u16-strstr: New file.
49665         * modules/unistr/u32-strstr: New file.
49666         * lib/unistr/u8-strstr.c: New file.
49667         * lib/unistr/u16-strstr.c: New file.
49668         * lib/unistr/u32-strstr.c: New file.
49669         * lib/unistr/u-strstr.h: New file.
49670
49671         * modules/unistr/u8-strtok: New file.
49672         * modules/unistr/u16-strtok: New file.
49673         * modules/unistr/u32-strtok: New file.
49674         * lib/unistr/u8-strtok.c: New file.
49675         * lib/unistr/u16-strtok.c: New file.
49676         * lib/unistr/u32-strtok.c: New file.
49677         * lib/unistr/u-strtok.h: New file.
49678
49679         * modules/unistr/u8-uctomb: New file.
49680         * modules/unistr/u16-uctomb: New file.
49681         * modules/unistr/u32-uctomb: New file.
49682         * lib/unistr/u8-uctomb.c: New file.
49683         * lib/unistr/u16-uctomb.c: New file.
49684         * lib/unistr/u32-uctomb.c: New file.
49685
49686         * MODULES.html.sh (Unicode string functions): Add the new modules.
49687
49688 2007-01-08  Bruno Haible  <bruno@clisp.org>
49689
49690         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
49691         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
49692         subdirectories.
49693
49694 2007-01-08  Karl Berry  <karl@gnu.org>
49695
49696         * doc/error.texi: mention that main() fns must set program_name
49697         when progname is used.
49698
49699 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
49700
49701         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
49702         WCTYPE_H is empty, for the benefit of builds from non-distclean
49703         directories.  Problem reported by Eric Blake in
49704         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
49705
49706 2007-01-08  Bruno Haible  <bruno@clisp.org>
49707
49708         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
49709         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
49710         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
49711         PROVIDE_CANONICALIZE_FILENAME_MODE.
49712         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
49713
49714 2007-01-08  Bruno Haible  <bruno@clisp.org>
49715
49716         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
49717         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
49718         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
49719         * lib/fts.c: Likewise.
49720         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
49721
49722 2006-12-25  Bruno Haible  <bruno@clisp.org>
49723
49724         * modules/utf8-ucs4-safe: New file.
49725         * lib/utf8-ucs4-safe.h: New file.
49726         * lib/unistr/utf8-ucs4-safe.c: New file.
49727
49728         * modules/utf16-ucs4-safe: New file.
49729         * lib/utf16-ucs4-safe.h: New file.
49730         * lib/unistr/utf16-ucs4-safe.c: New file.
49731
49732         * MODULES.html.sh (Unicode string functions): Add the new modules.
49733
49734 2007-01-08  Bruno Haible  <bruno@clisp.org>
49735
49736         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
49737         (Depends-on): Add unitypes.
49738         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49739         (u8_mbtouc_aux): Move out to separate file.
49740         (u8_mbtouc): Use ucs4_t, uint8_t types.
49741         * lib/unistr/utf8-ucs4.c: New file.
49742
49743         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
49744         (Depends-on): Add unitypes.
49745         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49746         (u16_mbtouc_aux): Move out to separate file.
49747         (u16_mbtouc): Use ucs4_t, uint16_t types.
49748         * lib/unistr/utf16-ucs4.c: New file.
49749
49750         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
49751         (Depends-on): Add unitypes.
49752         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
49753         (u8_uctomb_aux): Move out to separate file.
49754         (u8_uctomb): Use ucs4_t, uint8_t types.
49755         * lib/unistr/ucs4-utf8.c: New file.
49756
49757         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
49758         (Depends-on): Add unitypes.
49759         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
49760         (u16_uctomb_aux): Move out to separate file.
49761         (u16_uctomb): Use ucs4_t, uint16_t types.
49762         * lib/unistr/ucs4-utf16.c: New file.
49763
49764 2006-12-25  Bruno Haible  <bruno@clisp.org>
49765
49766         * modules/unitypes: New file.
49767         * lib/unitypes.h: New file.
49768         * MODULES.html.sh (func_all_modules): New section "Unicode string
49769         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
49770         this section. Add unitypes.
49771
49772 2007-01-08  Bruno Haible  <bruno@clisp.org>
49773
49774         Avoid variable names that conflict with those from libtool.
49775         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
49776         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
49777         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
49778         library_names_spec to acl_library_names_spec, hardcode_* to
49779         acl_hardcode_*.
49780         Reported by Ralf Wildenhues.
49781
49782 2007-01-08  Bruno Haible  <bruno@clisp.org>
49783
49784         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
49785         definition.
49786         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
49787         definition.
49788         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
49789         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
49790         definition.
49791         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
49792         definition.
49793         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
49794         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
49795         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
49796         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
49797         definition.
49798         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
49799         definition.
49800         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
49801         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
49802         GC_USE_<algorithm>.
49803         * lib/gc-libgcrypt.c: Likewise.
49804         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
49805         * modules/gc-arctwo (configure.ac): Likewise.
49806         * modules/gc-des (configure.ac): Likewise.
49807         * modules/gc-hmac-md5 (configure.ac): Likewise.
49808         * modules/gc-hmac-sha1 (configure.ac): Likewise.
49809         * modules/gc-md2 (configure.ac): Likewise.
49810         * modules/gc-md4 (configure.ac): Likewise.
49811         * modules/gc-md5 (configure.ac): Likewise.
49812         * modules/gc-random (configure.ac): Likewise.
49813         * modules/gc-rijndael (configure.ac): Likewise.
49814         * modules/gc-sha1 (configure.ac): Likewise.
49815
49816 2007-01-08  Bruno Haible  <bruno@clisp.org>
49817
49818         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
49819         macro definition.
49820         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
49821         definition.
49822         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
49823         definition.
49824         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
49825         * modules/fcntl-safer (configure.ac): Likewise.
49826         * modules/fopen-safer (configure.ac): Likewise.
49827         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
49828         GNULIB_FWRITEERROR macro definition.
49829
49830 2007-01-08  Bruno Haible  <bruno@clisp.org>
49831
49832         * m4/gnulib-common.m4: New file.
49833         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
49834         (func_get_filelist): Add m4/gnulib-common.m4.
49835
49836 2007-01-08  Bruno Haible  <bruno@clisp.org>
49837
49838         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
49839         command.
49840
49841 2007-01-08  Jim Meyering  <jim@meyering.net>
49842
49843         Use a more robust test for a "can't happen" condition.
49844         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
49845         narrowed the st_size value.  Presuming the "can't happen" condition
49846         is true, that narrowing could conceivably convert an invalid st_size
49847         value into a valid one.  Instead, use a change based on Matthew
49848         Woehlke's original patch.
49849
49850         Slight readability improvement: use an assert-like macro
49851         in place of literal "abort ()" uses.
49852         * lib/fts.c (fts_assert): Define.
49853         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
49854         Use this macro instead of a bare 'abort'.
49855
49856 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
49857
49858         Don't worry about using IRIX 5.3's wctype.h broken definitions;
49859         simply work around them.
49860         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
49861         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
49862         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
49863         declaring.
49864         Don't bother to define as macros, since the standard doesn't require it.
49865         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
49866         longer worry about IRIX 5.3.
49867         (HAVE_WCTYPE_CTMP_BUG): Remove.
49868
49869 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49870
49871         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
49872         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
49873         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49874         Problems reported by Georg Schwarz for IRIX 5.3.
49875
49876         * gnulib-tool (autoconf_minversion): Take the maximum version number
49877         found, not the minimum.  Problem reported by James Youngman.
49878
49879 2007-01-03  Karl Berry  <karl@gnu.org>
49880
49881         * doc/error.texi: new file, explaining interaction with progname.
49882         * doc/gnulib.texi: include it.  Update copyright.
49883
49884 2007-01-03  Simon Josefsson  <simon@josefsson.org>
49885
49886         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
49887         AC_CANONICAL_HOST, to improve autobuild outputs.
49888
49889 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
49890             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49891
49892         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
49893         sockets, server sockets, and other file descriptors.  Count errors
49894         to compute the return value.  Reorder the code a bit to be easier
49895         to follow.  Don't set event bits that were not requested (except
49896         POLLERR and POLLHUP).
49897
49898 2007-01-01  Bruno Haible  <bruno@clisp.org>
49899
49900         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
49901
49902 2007-01-03  Jim Meyering  <jim@meyering.net>
49903
49904         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
49905
49906 2007-01-02  Bruno Haible  <bruno@clisp.org>
49907
49908         * modules/settime (Include): Require timespec.h.
49909         * modules/nanosleep (Include): Likewise.
49910
49911 2007-01-01  Bruno Haible  <bruno@clisp.org>
49912
49913         * gnulib-tool (func_emit_copyright_notice): Bump year.
49914         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
49915
49916 2007-01-01  Bruno Haible  <bruno@clisp.org>
49917
49918         Improve support for OpenBSD.
49919         * build-aux/config.rpath (libname_spec): Export.
49920         (library_names_spec): New variable. Export.
49921         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
49922         library_names_spec from the config.rpath output. Locate shared library
49923         through the name pattern in library_names_spec.
49924
49925 2007-01-01  Eric Blake  <ebb9@byu.net>
49926
49927         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
49928
49929 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
49930
49931         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
49932         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
49933         assume the C locale, and avoid an "eval" that could cause trouble.
49934         Problem with SORT reported by Bob Proulx.
49935
49936         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
49937         Define.  Trivial patch from Henning Nielsen Lund, originally
49938         sent to bug-grep@gnu.org today.
49939
49940 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49941
49942         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
49943         struct stat.  Problem reported by Henning Nielsen Lund.
49944         * lib/acl.c: Include acl.h first, to check interface.  Don't
49945         bother to include sys/types.h and sys/stat.h again.
49946
49947 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49948
49949         Import the following change from libc; problem reported by
49950         Sven Verdoolaege.
49951
49952         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
49953
49954         [BZ #1373]
49955         * lib/argp.h: Remove __NTH for __argp_usage inline function.
49956
49957 2006-12-28  Jim Meyering  <jim@meyering.net>
49958
49959         * build-aux/announce-gen: Do not assume that the package
49960         builds any of tar.gz, tar.bz2, and .xdelta files.
49961         Suggestion from Simon Josefsson.
49962
49963 2006-12-28  Simon Josefsson  <simon@josefsson.org>
49964
49965         * modules/announce-gen: New file.
49966
49967 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
49968
49969         * lib/mbchar.h: Just include <wctype.h>; the wctype module
49970         handles its gotchas now.
49971         * lib/mbswidth.c: Likewise.
49972         * lib/wcwidth.h: Likewise.
49973         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
49974         and iswcntrl; the wctype module does this stuff now.
49975         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49977         * modules/mbchar (Depends-on): Add wctype.
49978         * modules/mbswidth (Depends-on): Likewise.
49979         * modules/wcwidth (Depends-on): Likewise.
49980
49981 2006-12-27  Eric Blake  <ebb9@byu.net>
49982
49983         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
49984         module uses more than what <wctype.h> is required to provide.
49985
49986 2006-12-26  Eric Blake  <ebb9@byu.net>
49987
49988         * gnulib-tool (sed_extract_prog): Avoid space-tab.
49989
49990 2006-12-26  Eric Blake  <ebb9@byu.net>
49991
49992         * modules/absolute-header: New module.
49993         * modules/fcntl (Depends-on): Depend on it.
49994         * modules/inttypes (Depends-on): Likewise.
49995         * modules/stdint (Depends-on): Likewise.
49996         * modules/sys_stat (Depends-on): Likewise.
49997         * modules/wctype (Depends-on): Likewise.
49998         * MODULES.html.sh (Support for building libraries and
49999         executables): Document it.
50000
50001 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50002
50003         * gnulib-tool (SED): Remove, undoing previous change.
50004         The problem was that it broke coreutils on Solaris, because
50005         "sed --posix" leaked into a makefile.
50006         (sed): New alias, if 'alias' and GNU sed.
50007
50008 2006-12-24  Jim Meyering  <jim@meyering.net>
50009
50010         Work around an fchownat bug in glibc-2.4:
50011         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50012         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50013         in spite of the -P option.
50014         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50015         New macros.
50016         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50017         * modules/openat (Files): Add lib/fchownat.c.
50018         * lib/openat.c (fchownat): Don't define here.  Move to...
50019         * lib/fchownat.c: ...this new file.
50020
50021 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50022
50023         Fix bug reported by Bruno Haible in
50024         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50025         where quotearg.c didn't compile on Mac OS X 10.2 because it
50026         lacks <wchar.h> and wint_t.
50027         * lib/wctype_.h (__wctype_wint_t): New type.
50028         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50029         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50030         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50031         Arg is now of type __wctype_wint_t, not wint_t.
50032         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50033         substitute HAVE_WINT_T.
50034         * modules/wctype (Files): Add m4/wint_t.m4.
50035         (wctype.h): Substitute HAVE_WINT_T.
50036
50037 2006-12-23  Bruno Haible  <bruno@clisp.org>
50038
50039         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50040
50041 2006-12-23  Bruno Haible  <bruno@clisp.org>
50042
50043         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50044         S_ISLNK.
50045         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50046         mingw.
50047
50048 2006-12-22  Bruno Haible  <bruno@clisp.org>
50049
50050         * lib/copy-file.c: Include acl.h.
50051         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50052         Close the file descriptors only after being done with copy_acl.
50053         * modules/copy-file (Depends-on): Add acl.
50054
50055 2006-12-22  Bruno Haible  <bruno@clisp.org>
50056
50057         * gnulib-tool (SED): New variable.
50058         Use $SED instead of sed everywhere.
50059
50060 2006-12-22  Bruno Haible  <bruno@clisp.org>
50061
50062         * modules/no-c++: New file.
50063         * m4/no-c++.m4: New file.
50064         * MODULES.html.sh (Support for building libraries and executables):
50065         Add no-c++.
50066
50067 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50068
50069         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50070         Include <limits.h>, and use its INT_MAX to rewrite the
50071         j loop so that it does not overflow 'int'.  Problem reported by
50072         Ralf Wildenhues in
50073         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50074         Play it safe by shifting left by 1 rather than multiplying by 2,
50075         as GCC is less likely to optimize this away when the value
50076         is signed (when it assumes overflow leads to undefined behavior).
50077         Also, don't assume time_t uses two's complement.
50078
50079 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50080
50081         * MODULES.html.sh: New module wctype.
50082         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50083         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50084         <wctype.h>, since the new wctype module should fix this.
50085         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50086         the wctype module should arrange for it.
50087         * lib/regex_internal.h: Likewise.
50088         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50089         since the wctype module should handle this now.
50090         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50091         * modules/fnmatch (Depends-on): Add wctype.
50092         * modules/quotearg (Depends-on): Likewise.
50093         * modules/regex (Depends-on): Likewise.
50094
50095 2006-12-19  Bruno Haible  <bruno@clisp.org>
50096
50097         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50098         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50099
50100 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50101
50102         * modules/savewd (Depends-on): Fix dependency on fcntl.
50103
50104 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50105
50106         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50107         conforms to C99, rather than relying on the user's environment
50108         setting of STDINT_H.
50109
50110 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50111         and Eric Blake  <ebb9@byu.net>
50112
50113         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50114         This is more consistent with the other defines here.
50115         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50116         Port to z/OS.  Problem reported by Paul Gilmartin.
50117         Change local vars to use gl_ prefix rather than ac_.
50118         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50119         with other defines.
50120         * modules/double-slash-root: New module.
50121         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50122         (Depends-on): Add double-slash-root.
50123         * MODULES.html.sh (File system functions): Mention new module.
50124
50125 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50126
50127         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50128         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50129         This is for the benefit of gzip, which doesn't do i18n.
50130
50131 2006-12-12  Jim Meyering  <jim@meyering.net>
50132
50133         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50134         Reported by Andreas Schwab <schwab@suse.de>.
50135
50136 2006-12-12  Bruno Haible  <bruno@clisp.org>
50137
50138         Merge these changes.
50139         2006-09-05  Bruno Haible  <bruno@clisp.org>
50140         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50141         iconv_alloc succeeded.
50142         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50143         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50144         test for " && dest " at the end - dest is always != NULL there. Call
50145         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50146         with 2xNULL arguments, also to flush the state storage. Handle the
50147         IRIX iconv behaviour. Realloc the final result, to throw away unused
50148         memory.
50149
50150 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50151
50152         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50153         and fchmodat unconditionally, since glibc 2.4 has them.
50154         Problem reported by Arkadiusz Miskiewicz.
50155
50156 2006-12-10  Bruno Haible  <bruno@clisp.org>
50157
50158         * gnulib-tool (func_import): Show the include files only for those
50159         modules that are copied and specified.
50160         Reported by Karl Berry.
50161
50162 2006-12-08  Jim Meyering  <jim@meyering.net>
50163
50164         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50165         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50166
50167         * build-aux/announce-gen: Add two new options, both optional:
50168         --bootstrap-tools=TOOL_LIST
50169               a comma-separated list of tools, e.g.,
50170               autoconf,automake,bison,gnulib
50171         --gnulib-snapshot-date=DATE
50172               if gnulib is in the bootstrap tool list,
50173               then report this as the snapshot date.
50174               If not specified, use the current date/time.
50175               If you specify a date here, be sure it's UTC.
50176
50177 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50178
50179         * tests/test-argp-2.sh: Fix test to match actual output.
50180         (func_compare): Fix sed script to be portable.
50181
50182 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50183
50184         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50185         workaround for this case.  It is not autoconfigured now; offhand
50186         it's hard to see how to autoconfigure it.
50187
50188 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50189
50190         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50191         a directory that is about to be chowned.  Such a directory's
50192         initial file permissions should permit the owner only and this
50193         should not be changed until after the chown, since the group and
50194         other bits would be incorrect if they granted permission before
50195         the chown.
50196
50197         Fix porting problem for iswctype reported by Georg Schwarz in:
50198         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50199         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50200         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50201         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50202         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50203
50204 2006-12-03  Jim Meyering  <jim@meyering.net>
50205
50206         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50207         p->fts_statp may not yet be defined.
50208         (fts_read): Instead, set it in the caller, once p->fts_statp is
50209         sure to be defined, and corresponds to a top-level directory.
50210         This bug made du -x fail.  Here's the coreutils test case:
50211         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50212         Reported by Mike Frysinger.
50213
50214 2006-12-01  Jim Meyering  <jim@meyering.net>
50215
50216         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50217         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50218         Reported by Simon Josefsson.
50219
50220 2006-11-30  Jim Meyering  <jim@meyering.net>
50221
50222         * m4/warning.m4: Use the all-permissive copyright notice
50223         recommended by RMS (rather than LGPL).
50224         * m4/vararrays.m4: Likewise.
50225         * m4/flexmember.m4: Likewise.
50226
50227 2006-11-29  Bruno Haible  <bruno@clisp.org>
50228
50229         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50230         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50231         using +=.
50232         Reported by Simon Josefsson <simon@josefsson.org>.
50233
50234 2006-11-28  James Youngman <jay@gnu.org>
50235
50236         * README: Advise users that they might find the bug-gnulib@gnu.org
50237         and autotools-announce@gnu.org mailing lists useful.
50238
50239 2006-11-28  Bruno Haible  <bruno@clisp.org>
50240
50241         * m4/ptrdiff_max.m4: Remove file.
50242
50243 2006-11-21  Bruno Haible  <bruno@clisp.org>
50244
50245         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50246         _AC_COMPUTE_INT.
50247         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50248         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50249         _AC_COMPUTE_INT.
50250         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50251         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50252         _AC_COMPUTE_INT.
50253         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50254
50255 2006-11-28  Jim Meyering  <jim@meyering.net>
50256
50257         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50258         warning from "gcc -Wshadow" about shadowing the builtin.
50259
50260 2006-11-27  Bruno Haible  <bruno@clisp.org>
50261
50262         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50263         _AC_COMPUTE_INT.
50264         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50265
50266 2006-11-27  Bruno Haible  <bruno@clisp.org>
50267             Paul Eggert  <eggert@cs.ucla.edu>
50268
50269         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50270
50271 2006-11-26  Bruno Haible  <bruno@clisp.org>
50272
50273         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50274         noinst_LTLIBRARIES.
50275
50276 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50277             Bruno Haible  <bruno@clisp.org>
50278
50279         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50280         if compiling with "gcc -ansi".
50281
50282 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50283
50284         Fix some incompatibilities with gcc -ansi -pedantic.
50285         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50286         if compiling pedantically with GCC, unless it's C99 or later.
50287         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50288         it mishandles gcc -ansi -pedantic as well.
50289         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50290         if gcc -pedantic.
50291         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50292         initializers for struct if -pedantic, unless it's C99 or later.
50293
50294 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50295
50296         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50297         Don't close an fd more than once. Identical atimes indicate
50298         success, not failure.
50299
50300 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50301
50302         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50303
50304 2006-11-23  Jim Meyering  <jim@meyering.net>
50305
50306         * build-aux/announce-gen: New file.  From coreutils.
50307
50308 2006-11-22  Jim Meyering  <jim@meyering.net>
50309
50310         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50311         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50312         (fts_read): Use a temporary to narrow the overused st_size member
50313         before using it in a switch statement.  Reported by Matthew Woehlke.
50314
50315         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50316         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50317
50318 2006-11-20  Bruno Haible  <bruno@clisp.org>
50319
50320         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50321         changequote instead of pairs of brackets.
50322         Reported by Andreas Schwab <schwab@suse.de>.
50323
50324 2006-11-21  Jim Meyering  <jim@meyering.net>
50325
50326         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50327         so as to remain compatible with older compilers.
50328         Patch from Michael Deutschmann.
50329
50330 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50331
50332         * MODULES.html.sh (File system functions): Add openat.
50333
50334         * lib/openat.h (rpl_fstatat): New macro, if
50335         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50336         (fstatat): Define to rpl_fstatat under the same conditions,
50337         unless COMPILING_FSTATAT.
50338         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50339         seems to have the bug.
50340         * lib/fstatat.c: New file.
50341         * modules/openat (Files): Add it.
50342
50343 2006-11-20  Bruno Haible  <bruno@clisp.org>
50344
50345         * Makefile: New file.
50346
50347 2006-11-20  Jim Meyering  <jim@meyering.net>
50348
50349         The beginnings of syntax-related checks for gnulib.
50350         * lib/Makefile: New file.
50351         * lib/t-idcache: New script.  Ensure that the two halves of
50352         idcache.c stay in sync.
50353
50354         * lib/idcache.c: Adjust comments in user- and group- portions to
50355         be more accurate, and to be consistent with one another.
50356
50357 2006-11-20  Jim Meyering  <jim@meyering.net>
50358
50359         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50360         continue using the flexible array member (thus, this module performs
50361         half as many malloc calls), with the addition that...
50362         (getgroup, getuser): Consistently record a non-match via an empty
50363         "name" string, and map an empty string match to a NULL return value.
50364         * modules/idcache (Depends-on): Re-add flexmember.
50365
50366         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50367         (getuidbyname, getgroup, getgidbyname): Likewise.
50368
50369         Use cleaner syntax: NULL rather than 0.
50370         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50371
50372 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50373
50374         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50375         It mishandled the case where the group was missing.
50376         Problem reported by Greg Schafer.
50377         * modules/idcache: Likewise.
50378
50379 2006-11-18  Jim Meyering  <jim@meyering.net>
50380
50381         * check-module (%exempt_header): Add exception for some
50382         conditionally-included headers.
50383
50384         * modules/i-ring (Depends-on): Add verify.
50385         (License): Change to LGPL.
50386
50387 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50388
50389         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50390         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50391         and inttostr.h.  Use snprintf rather than uinttostr, so that
50392         LGPLed code doesn't depend on GPLed.
50393
50394 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50395
50396         * modules/inline (License): Change from GPL to LGPL.
50397
50398 2006-11-17  Jim Meyering  <jim@meyering.net>
50399
50400         * modules/d-type (License): Switch to LGPL.
50401
50402 2006-11-15  Bruno Haible  <bruno@clisp.org>
50403
50404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50405
50406 2006-11-15  Eric Blake  <ebb9@byu.net>
50407
50408         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50409         the module dependency.
50410
50411 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50412             Bruno Haible  <bruno@clisp.org>
50413
50414         * gnulib-tool (func_create_testdir): Add license consistency check.
50415
50416 2006-11-15  Eric Blake  <ebb9@byu.net>
50417
50418         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50419         random "(cached)" in configure output.
50420
50421 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50422
50423         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50424         test for conforming inttypes.h is both announced and cached.
50425
50426         * MODULES.html.sh (seen_modules, seen_files): New variables.
50427         (func_module): Rewrite to use a few less gnulib-tool and sed
50428         invocations.  Avoid a couple of quadratic algorithms for ...
50429         (missed_modules, missed_files): ... these, with ...
50430         (func_append, func_tmpdir): ... these new functions, from
50431         gnulib-tool.  Analogously, install traps for cleanup.
50432
50433         * tests/test-gc.c (main): Remove unused variables.
50434         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50435
50436 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50437
50438         * modules/inttostr (License): Change to LGPL.
50439
50440 2006-11-14  Eric Blake  <ebb9@byu.net>
50441
50442         * modules/tempname (License): Change to LGPL.
50443
50444 2006-11-14  Eric Blake  <ebb9@byu.net>
50445
50446         * doc/functions.texi (Function Portability): *printf functions on
50447         Cygwin now understand all POSIX size specifiers.
50448
50449 2006-11-14  Bruno Haible  <bruno@clisp.org>
50450
50451         * modules/c-ctype (License): Change to LGPL.
50452
50453 2006-11-12  Bruno Haible  <bruno@clisp.org>
50454
50455         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50456         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50457         for GNOME libraries, for which the include files are installed in
50458         subdirectories of $prefix/include.
50459
50460 2006-11-12  Bruno Haible  <bruno@clisp.org>
50461
50462         * m4/lib-link.m4: Require at least autoconf-2.54.
50463         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50464         name to underscores for the --with option.
50465
50466 2006-11-13  Bruno Haible  <bruno@clisp.org>
50467
50468         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50469         the tests directory.
50470         Reported by Ralf Wildenhues.
50471
50472 2006-11-13  Bruno Haible  <bruno@clisp.org>
50473
50474         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50475         (func_emit_initmacro_end): Undo the override here.
50476         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50477         Works around the famous automake error in coreutils.
50478
50479 2006-11-13  Eric Blake  <ebb9@byu.net>
50480
50481         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
50482         element, not its node.
50483
50484 2006-11-12  Bruno Haible  <bruno@clisp.org>
50485
50486         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
50487         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
50488
50489 2006-11-12  Bruno Haible  <bruno@clisp.org>
50490
50491         * gnulib-tool: New option --local-symlink.
50492         (func_usage): Document it.
50493         (lsymbolic): New variable.
50494         (func_import, func_create_testdir): If --symlink was not specified,
50495         test whether --local-symlink was specified and the file comes from
50496         the local_gnulib_dir.
50497
50498 2006-11-12  Bruno Haible  <bruno@clisp.org>
50499
50500         * gnulib-tool (func_ln): New function.
50501         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
50502
50503 2006-11-12  Bruno Haible  <bruno@clisp.org>
50504
50505         Finish support for source files in subdirectories.
50506         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50507         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50508         AUTOMAKE_OPTIONS.
50509         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50510
50511 2006-11-12  Bruno Haible  <bruno@clisp.org>
50512
50513         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50514         EXTRA_lib_SOURCES augmentation.
50515         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50516
50517 2006-11-12  Jim Meyering  <jim@meyering.net>
50518
50519         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50520         file descriptors.  This also averts a failure on systems with
50521         native openat support when a traversed directory lacks "x" access.
50522         * lib/fts_.h: Include "i-ring.h"
50523         (struct FTS) [fts_fd_ring]: New member.
50524         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50525         (FCHDIR): Add parentheses.
50526         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50527         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50528         When descending, rather than simply closing the previous
50529         fts_cwd_fd value, push that file descriptor onto the ring.
50530         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50531         (fts_open): Initialize the new fd_ring member.
50532         (fts_close): Clear the ring.
50533         (fts_safe_changedir): When possible, use our new fd_ring to skip
50534         the diropen and fstat and dev/ino comparison that would normally
50535         accompany a virtual `chdir ("..")'.
50536
50537         * modules/fts (Depends-on): Add i-ring.
50538         * modules/i-ring: New module.
50539         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50540         * m4/i-ring.m4: New file.
50541
50542 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50543
50544         * gnulib-tool (func_create_testdir): Fix replacement of
50545         `build-aux' in configure.ac.  Run autotools in gltests
50546         subdirectory.
50547         (func_create_testdir, func_create_megatestdir, test): There is
50548         no need for '--force' in most autotool invocations in a new
50549         tree.  Actually fail the whole test if any of the tools, or the
50550         configure or make stages fail.
50551
50552         Sync from Automake.
50553         * build-aux/gnupload: Revert last change.  Add pointer to upload
50554         instructions of the GNU Maintenance Instructions.
50555         Suggestion by Karl Berry.
50556
50557 2006-11-10  Jim Meyering  <jim@meyering.net>
50558
50559         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
50560
50561 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50562
50563         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
50564         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
50565         (bind_textdomain_codeset) [! ENABLE_NLS]:
50566         Evaluate all the arguments.  That way, callers get compatible behavior
50567         if the arguments have side effects.  Also, it avoids some GCC
50568         diagnostics in some cases; Joel E. Denny reported problems when Bison
50569         was configured with --enable-gcc-warnigs.
50570
50571 2006-11-10  Jim Meyering  <jim@meyering.net>
50572
50573         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
50574         relevant options in CFLAGS (like -O, -fno-inline) are taken into
50575         account.
50576
50577 2006-11-10  Jim Meyering  <jim@meyering.net>
50578
50579         * modules/inline: New file/module.
50580         * modules/xalloc (Files): Remove m4/inline.m4.
50581         (Depends-on): Add inline, instead.
50582         * modules/oset: Likewise.
50583         * modules/list: Likewise.
50584
50585 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50586
50587         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
50588         Problem reported by Matthew Woehlke.
50589
50590 2006-11-09  Bruno Haible  <bruno@clisp.org>
50591
50592         * lib/tempname.c (gen_tempname): Remove variant that invokes
50593         __gen_tempname.
50594         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
50595         __gen_tempname.
50596
50597 2006-11-08  Bruno Haible  <bruno@clisp.org>
50598
50599         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
50600         to 'yes' instead of 'cross-compiling'.
50601
50602 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
50603
50604         * lib/quotearg.h (quotearg_free): New decl.
50605         * lib/quotearg.c (quotearg_free): New function.
50606         (slot0, nslots, slotvec0, slotvec):
50607         Now file-scope so that quotearg_free can get at them.
50608
50609 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50610
50611         Sync from Automake.
50612         * build-aux/gnupload: Add missing 'gnu' to example URL.
50613         Report by Karl Berry.
50614
50615 2006-11-08  Bruno Haible  <bruno@clisp.org>
50616
50617         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
50618         Suggested by Paul Eggert.
50619
50620 2006-11-08  Jim Meyering  <jim@meyering.net>
50621
50622         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
50623         It's already included if !_LIBC.
50624         (fts_safe_changedir): Add a comment.
50625
50626 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50627
50628         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
50629         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
50630         Matthew Woehlke.
50631
50632         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
50633         definitions up, to avoid colliding with change below.
50634         (static_inline) [HAVE_INLINE]: New macro.
50635         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
50636         Provide extern decls when !HAVE_INLINE.  Do not define unless
50637         static_inline is defined, either by us or by xmalloc.c.  Use
50638         static_inline rather than static inline.
50639         (XCALLOC): Optimize sizeof(T) = 1 case.
50640         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
50641
50642 2006-11-07  Bruno Haible  <bruno@clisp.org>
50643
50644         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
50645         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
50646         AC_C_INLINE.
50647         * modules/xalloc (Files): Add m4/inline.m4.
50648
50649 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50650
50651         * README: Fix typo.
50652         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
50653         (Miscellanous Notes): ...from this.
50654
50655 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50656
50657         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
50658         Mention that offsetof should be used instead of sizeof.
50659         From Bruno Haible.
50660
50661 2006-11-07  Bruno Haible  <bruno@clisp.org>
50662
50663         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
50664
50665 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50666
50667         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50668         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
50669         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50670         (gl_tree_add_before, gl_tree_add_after):
50671         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
50672         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
50673         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50674         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
50675         (gl_linked_add_after, gl_linked_add_at): Likewise.
50676         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
50677         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50678         (gl_tree_add_before, gl_tree_add_after): Likewise.
50679         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
50680         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
50681         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
50682
50683 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50684
50685         * lib/gl_oset.h: Use C comment style, not C++ comment style.
50686
50687 2006-11-06  Bruno Haible  <bruno@clisp.org>
50688
50689         * m4/inline.m4: New file.
50690         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
50691         * modules/list (Files): Add m4/inline.m4.
50692         * modules/oset (Files): Likewise.
50693
50694 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50695
50696         * lib/idcache.c: Include <stddef.h>, for offsetof.
50697         (struct userid.name): Change from char * to a flexible array member.
50698         All uses changed.
50699         * modules/idcache (Depends-on): Add flexmember.
50700
50701         * MODULES.html.sh (Core language properties): New module flexmember.
50702         * modules/flexmember, m4/flexmember.m4: New files.
50703
50704         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
50705         inline functions that are identical with the old xnmalloc_inline,
50706         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
50707         that we can avoid some unnecessary integer multiplications and
50708         divisions in the common case where the element size is known at
50709         compile time.
50710         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
50711         needed.
50712         (xnboundedmalloc): Remove.
50713         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
50714         arguments, for consistency with rest of this header.
50715         (xcharalloc): Rewrite using XNMALLOC.
50716         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
50717         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
50718         versions have been moved to lib/xalloc.h and renamed to be the
50719         non-*_inline versions.
50720         (xmalloc, xrealloc): Implement without reference to the xnmalloc
50721         and xnrealloc functions, since those functions are now inline and
50722         now call us.
50723         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
50724         renaming described above.
50725         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
50726         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
50727         captures the dependency in AC_C_INLINE.
50728
50729         New module canonicalize-lgpl, proposed by Charles Wilson in
50730         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
50731         with a few small changes afterwards.
50732         * MODULES.html.sh (File system functions): New module
50733         canonicalize-lgpl.
50734         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
50735         and canonicalize_file_name.
50736         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
50737         * modules/canonicalize-lgpl: New files.
50738
50739 2006-11-05  Bruno Haible  <bruno@clisp.org>
50740
50741         * gnulib-tool (func_import, func_create_testdir): Create directories
50742         also for files in subdirectories of lib/.
50743
50744 2006-11-05  Bruno Haible  <bruno@clisp.org>
50745
50746         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
50747         ANSI C compliant.
50748
50749 2006-11-03  Bruno Haible  <bruno@clisp.org>
50750
50751         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50752         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
50753         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
50754         (xnboundedmalloc): New inline function.
50755         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
50756         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
50757         xmalloc.
50758         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
50759         xmalloc.
50760         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
50761         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
50762         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
50763         xmalloc.
50764         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50765         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
50766         xmalloc.
50767         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
50768         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50769         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
50770         xmalloc.
50771         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50772         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
50773         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50774         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
50775         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
50776         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
50777         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
50778
50779 2006-11-03  Bruno Haible  <bruno@clisp.org>
50780
50781         * lib/c-ctype.h [C++]: Define functions without name mangling.
50782         * lib/fwriteerror.h [C++]: Likewise.
50783         * lib/gcd.h [C++]: Likewise.
50784         * lib/linebreak.h [C++]: Likewise.
50785
50786 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50787
50788         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
50789         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
50790         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
50791         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50792         Check for functions and headers just once.
50793         Check for declaration of canonicalize_file_name.
50794         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
50795
50796 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50797
50798         * gnulib-tool (func_import): Fix typo in actioncmd.
50799
50800 2006-11-02  Bruno Haible  <bruno@clisp.org>
50801
50802         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
50803         newline sequence in the Makefile.am snippet as a space, like "make"
50804         does.
50805         Reported by Roger Persson <perrog@gmail.com>.
50806
50807 2006-11-01  Bruno Haible  <bruno@clisp.org>
50808
50809         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
50810         already declared in <string.h>.
50811         * lib/strcase.h (strncasecmp): Don't declare it if yes.
50812
50813 2006-11-01  Bruno Haible  <bruno@clisp.org>
50814
50815         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
50816         * lib/strcase.h: Include <string.h>.
50817         (strcasecmp): Define to rpl_strcasecmp here.
50818
50819 2006-11-01  Bruno Haible  <bruno@clisp.org>
50820
50821         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
50822
50823 2006-11-01  Eric Blake  <ebb9@byu.net>
50824
50825         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
50826
50827         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
50828
50829 2006-10-29  Bruno Haible  <bruno@clisp.org>
50830
50831         Make it compile in C++ mode.
50832         * lib/full-write.c (full_rw): Add a cast.
50833
50834 2006-11-01  Bruno Haible  <bruno@clisp.org>
50835
50836         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
50837         be POSIX compliant.
50838         Reported by Roger Persson <perrog@gmail.com>.
50839
50840 2006-11-01  Eric Blake  <ebb9@byu.net>
50841
50842         * lib/getopt_.h: Fix comments.
50843
50844 2006-10-31  Eric Blake  <ebb9@byu.net>
50845
50846         * modules/tmpdir (Depends-on): Add sys_stat.
50847         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
50848         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
50849         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
50850         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
50851         tempname.
50852
50853 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
50854
50855         Avoid some C++ diagnostics reported by Bruno Haible.
50856         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
50857         xmalloc.
50858         (quotearg_alloc): Use xcharalloc rather than xmalloc.
50859         (struct slotvec): Move to top level.
50860         (quotearg_n_options): Rewrite to avoid xmalloc.
50861         * lib/xalloc.h (xcharalloc): New function.
50862         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
50863         [defined __cplusplus]: Add function template that provides result
50864         type propagation.  This part of the change is from Bruno Haible.
50865
50866 2006-10-29  Bruno Haible  <bruno@clisp.org>
50867
50868         Make it compile in C++ mode.
50869         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
50870         * lib/strnlen1.c (strnlen1): Cast memchr result.
50871         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
50872         * lib/clean-temp.c (string_equals, string_hash): Add casts.
50873         (create_temp_dir): Rename local variable 'template'.
50874         (compile_csharp_using_sscli): Add cast.
50875         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
50876         * lib/findprog.c (find_in_path): Likewise.
50877         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
50878         * lib/wait-process.c (register_slave_subprocess): Likewise.
50879
50880 2006-10-22  Bruno Haible  <bruno@clisp.org>
50881
50882         * modules/tsearch: New file.
50883         * lib/tsearch.h: New file.
50884         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
50885         * m4/tsearch.m4: New file.
50886         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
50887
50888 2006-10-29  Eric Blake  <ebb9@byu.net>
50889
50890         * lib/arcfour.c: Assume config.h.
50891         * lib/arctwo.c: Likewise.
50892         * lib/base64.c: Likewise.
50893         * lib/check-version.c: Likewise.
50894         * lib/crc.c: Likewise.
50895         * lib/des.c: Likewise.
50896         * lib/gc-gnulib.c: Likewise.
50897         * lib/gc-libgcrypt.c: Likewise.
50898         * lib/gc-pbkdf2-sha1.c: Likewise.
50899         * lib/getaddrinfo.c: Likewise.
50900         * lib/getdelim.c: Likewise.
50901         * lib/getline.c: Likewise.
50902         * lib/hmac-md5.c: Likewise.
50903         * lib/hmac-sha1.c: Likewise.
50904         * lib/iconvme.c: Likewise.
50905         * lib/md2.c: Likewise.
50906         * lib/md4.c: Likewise.
50907         * lib/memxor.c: Likewise.
50908         * lib/read-file.c: Likewise.
50909         * lib/readline.c: Likewise.
50910         * lib/rijndael-alg-fst.c: Likewise.
50911         * lib/rijndael-api-fst.c: Likewise.
50912         * lib/xgetdomainname.c: Likewise.
50913
50914 2006-10-28  Eric Blake  <ebb9@byu.net>
50915
50916         * lib/xstrndup.c: Assume config.h.
50917
50918 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
50921         stat-macros.h is now for our own macros, whereas stat_h is for
50922         macros in the <sys/stat.h> name space.
50923         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
50924         (STAT_MACROS_H): Remove.
50925         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
50926         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
50927         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
50928         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
50929         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
50930         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
50931         Move these macros to ...
50932         * lib/stat_.h: here.  Don't include stat-macros.h.
50933         * lib/canonicalize.c: Don't include stat-macros.h.
50934         * lib/chown.c: Likewise.
50935         * lib/euidaccess.c: Likewise.
50936         * lib/file-type.c: Likewise.
50937         * lib/filemode.c: Likewise.
50938         * lib/glob.c: Likewise.
50939         * lib/isapipe.c: Likewise.
50940         * lib/lchown.c: Likewise.
50941         * lib/lstat.c: Likewise.
50942         * lib/mkdir-p.c: Likewise.
50943         * lib/rmdir.c: Likewise.
50944         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
50945         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
50946         unless mkdir isn't declared, to speed up 'configure'.
50947         Always create sys/stat.h, since it's unlikely any real sys/stat.h
50948         would define all the S_* symbols.
50949         * modules/canonicalize (Depends-on):
50950         Depend on sys_stat, not stat-macros.
50951         * modules/chown: Likewise.
50952         * modules/euidaccess: Likewise.
50953         * modules/filemode: Likewise.
50954         * modules/file-type: Likewise.
50955         * modules/glob: Likewise.
50956         * modules/isapipe: Likewise.
50957         * modules/lchown: Likewise.
50958         * modules/lstat: Likewise.
50959         * modules/mkancesdirs: Likewise.
50960         * modules/rmdir: Likewise.
50961         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
50962         * modules/modechange: Likewise.
50963         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
50964         (configure.ac): Remove gl_STAT_MACROS.
50965         * modules/sys_stat (Depends-on): Remove stat-macros.
50966
50967 2006-10-27  Bruno Haible  <bruno@clisp.org>
50968
50969         * m4/signed.m4: Remove file.
50970         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
50971         invocation.
50972         * modules/vasnprintf (Files): Remove m4/signed.m4.
50973
50974 2006-10-27  Bruno Haible  <bruno@clisp.org>
50975
50976         Update to GNU gettext 0.16.
50977         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
50978         m4/inttypes-h.m4, m4/signed.m4.
50979         * m4/gettext.m4: Update to GNU gettext 0.16.
50980         * m4/intl.m4: New file, from GNU gettext.
50981         * m4/intldir.m4: New file, from GNU gettext.
50982         * config/srclist.txt: Update
50983
50984 2006-10-27  Eric Blake  <ebb9@byu.net>
50985
50986         * MODULES.html.sh: Document tempname.
50987         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
50988         dependencies.
50989         (Files): Move lib/tempname.c...
50990         * modules/tempname: ...to this new module.
50991         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
50992         (gl_PREREQ_TEMPNAME): Move...
50993         * m4/tempname.m4: ...to this new file.
50994         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
50995         * modules/sys_stat (Depends-on): Add stat-macros.
50996         * lib/stat_.h (includes): Pick up stat macros.
50997         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
50998         if stat macros are broken.
50999         * lib/tempname.c (includes): No need to include "stat-macros.h".
51000         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51001         (direxists, __path_search) [!_LIBC]: Don't compile these in
51002         gnulib; the tmpdir module covers that.
51003         * lib/tempname.h: New file.
51004
51005 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51006
51007         * COPYING: Explain how gnulib-tool converts licence headers.
51008         Almost all wording by Eric Blake.
51009
51010 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51011
51012         * lib/mbchar.h (is_basic_table): Make read-only.
51013         * lib/mbchar.c (is_basic_table): Likewise.
51014         Reported by John Darrington.
51015
51016 2006-10-25  Bruno Haible  <bruno@clisp.org>
51017
51018         * lib/progname.h (set_program_name): Undefine before defining.
51019
51020 2006-10-25  Bruno Haible  <bruno@clisp.org>
51021
51022         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51023         false for non-gcc C++ compilers.
51024         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51025
51026 2006-10-24  Bruno Haible  <bruno@clisp.org>
51027
51028         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51029         iconv implementations like Irix iconv.
51030
51031 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51032
51033         * modules/vararrays: New file.
51034         * m4/vararrays.m4: New file, taken from diffutils.
51035         * MODULES.html.sh: New module vararrays.
51036
51037 2006-10-24  Karl Berry  <karl@gnu.org>
51038
51039         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51040         Don't call GNU Unix.
51041
51042 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51043
51044         * users.txt: Add Libtool.
51045
51046         Sync from Libtool:
51047
51048         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51049
51050         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51051         to gnulib's policy of including config.h unconditionally.
51052
51053 2006-10-24  Bruno Haible  <bruno@clisp.org>
51054
51055         * modules/wcwidth (Files): Add m4/wint_t.m4.
51056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51057         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51058
51059 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51060
51061         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51062         to pacify GCC with some -W flags enabled.  Problem reported by
51063         Bruno Haible.
51064
51065 2006-10-24  Jim Meyering  <jim@meyering.net>
51066
51067         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51068         Reported by Karl Berry.
51069
51070 2006-10-23  Bruno Haible  <bruno@clisp.org>
51071
51072         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51073
51074 2006-10-24  Bruno Haible  <bruno@clisp.org>
51075
51076         * lib/gl_list.h: Use C comment style, not C++ comment style.
51077
51078 2006-10-23  Eric Blake  <ebb9@byu.net>
51079
51080         * lib/getaddrinfo.c (includes): Add missing include.
51081
51082 2006-10-23  Bruno Haible  <bruno@clisp.org>
51083             Paul Eggert  <eggert@cs.ucla.edu>
51084
51085         Ability to rename obstack_free.
51086         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51087         obstack_free.
51088         (obstack_free): Invoke the __obstack_free macro.
51089         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51090
51091 2006-10-23  Bruno Haible  <bruno@clisp.org>
51092             Paul Eggert  <eggert@cs.ucla.edu>
51093
51094         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51095         __argc, __argv from the declaration. (They are defined as macros on
51096         mingw.)
51097
51098 2006-10-22  Bruno Haible  <bruno@clisp.org>
51099
51100         * doc/gnulib-intro.texi: New file.
51101         * doc/gnulib.texi: Include it.
51102
51103 2006-10-21  Bruno Haible  <bruno@clisp.org>
51104
51105         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51106         "Introduction", "Miscellanous Notes", "Particular Modules".
51107
51108 2006-10-21  Bruno Haible  <bruno@clisp.org>
51109
51110         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51111         Change mostlyclean-local rule to avoid sh syntax error from bash
51112         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51113
51114 2006-10-23  Jim Meyering  <jim@meyering.net>
51115
51116         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51117         in place of snprintf.
51118
51119         * modules/inttostr (Files): Add lib/uinttostr.c.
51120         * lib/uinttostr.c (inttostr): New file/function.
51121         * lib/inttostr.h (uinttostr): Declare.
51122         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51123         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51124         Add uinttostr.
51125         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51126
51127 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * lib/canonicalize.c (ELOOP): Define if not already defined.
51130         Problem reported by Bruno Haible in
51131         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51132
51133 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51134
51135         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51136         Problem reported by Perry Smith and Ville Laurikari.
51137
51138         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51139         uses.
51140
51141 2006-10-19  Bruno Haible  <bruno@clisp.org>
51142
51143         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51144         for mingw.
51145
51146 2006-10-19  Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51149         Needed for mingw.
51150
51151 2006-10-19  Bruno Haible  <bruno@clisp.org>
51152
51153         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51154
51155 2006-10-19  Bruno Haible  <bruno@clisp.org>
51156
51157         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51158         it.
51159
51160 2006-10-19  Bruno Haible  <bruno@clisp.org>
51161
51162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51163         invocation.
51164
51165 2006-10-19  Bruno Haible  <bruno@clisp.org>
51166
51167         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51168         mountlist by default.
51169
51170 2006-10-16  Bruno Haible  <bruno@clisp.org>
51171
51172         * lib/c-strstr.c: Include c-strstr.h.
51173
51174 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51175
51176         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51177         in a slash.
51178
51179 2006-10-18  Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/lock.h [C++]: Wrap definitions in extern "C".
51182
51183 2006-10-18  Bruno Haible  <bruno@clisp.org>
51184
51185         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51186         gl_LIBOBJS list.
51187
51188 2006-10-18  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51191
51192 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51193
51194         * lib/xstrtol.h: Include gettext.h.
51195         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51196         Problem reported by Eric Blake.
51197         * modules/xstrtol (Depends-on): Add gettext-h.
51198
51199 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51200
51201         * lib/strftime.c (advance): New macro.
51202         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51203         incomplete type, so you can't add 0 to it.  Problem and patch
51204         reported by Eelco Dolstra for dietlibc.
51205
51206 2006-10-18  Jim Meyering  <jim@meyering.net>
51207
51208         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51209         type for a local, and rename it: s/up/user_proc/.
51210
51211 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51212
51213         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51214         READ_UTMP_USER_PROCESS.
51215         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51216
51217 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51218
51219         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51220         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51221
51222 2006-10-17  Eric Blake  <ebb9@byu.net>
51223
51224         * lib/sigprocmask.c (sigprocmask): Fix typo.
51225
51226         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51227
51228         * modules/clean-temp (Makefile.am): Don't add to make output...
51229         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51230         config.h.
51231
51232 2006-10-17  Bruno Haible  <bruno@clisp.org>
51233
51234         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51235         differently if DEFAULT_TEXT_DOMAIN is set.
51236
51237 2006-10-16  Bruno Haible  <bruno@clisp.org>
51238
51239         * lib/clean-temp.c: Include fwriteerror.h.
51240
51241 2006-10-16  Bruno Haible  <bruno@clisp.org>
51242
51243         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51244
51245 2006-10-16  Bruno Haible  <bruno@clisp.org>
51246
51247         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51248         * lib/sigprocmask.h: Include <sys/types.h>.
51249         (sigset_t): Use the system's definition if present.
51250
51251 2006-10-17  Eric Blake  <ebb9@byu.net>
51252
51253         * lib/xvasprintf.c (includes): Assume config.h.
51254         * lib/xasprintf.c (includes): Likewise.
51255
51256 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51257
51258         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51259         at least as wide as intmax_t.
51260
51261 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51262
51263         (Imported from Automake.)
51264         * build-aux/gnupload: Update to version 1.1 of directive file.
51265
51266 2006-10-16  Eric Blake  <ebb9@byu.net>
51267
51268         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51269         match Automake 1.10a.
51270
51271 2006-10-14  Bruno Haible  <bruno@clisp.org>
51272
51273         * modules/sigprocmask: New file.
51274         * lib/sigprocmask.h: New file.
51275         * lib/sigprocmask.c: New file.
51276         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51277         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51278         request sigprocmask.o.
51279         (gl_PREREQ_SIGPROCMASK): New macro.
51280         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51281         (Depends-on): Add sigprocmask.
51282         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51283         gt_SIGNALBLOCKING. Test for 'raise' only once.
51284         * lib/fatal-signal.c: Include sigprocmask.h.
51285         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51286         unblock_fatal_signals): Define always.
51287         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51288         sigprocmask.
51289
51290 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51291
51292         Sync from Automake.
51293         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51294         which incorrectly sets the mode of an existing destination
51295         directory.  In some cases the unpatched install-sh could do the
51296         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51297         system.  We hope this is rare in practice, but it's clearly worth
51298         fixing.  Problem reported by Alex Unleashed in
51299         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51300         Also, don't bother to check for -m bugs unless we're using -m;
51301         suggested by Stepan Kasal.
51302
51303 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51304
51305         Sync from Automake.
51306         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51307         `-c' flag, so they appear at the same position as in %FASTDEP%
51308         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51309         which ignores unknown options only after the first non-option.
51310         Bug report against M4 by Nelson H. F. Beebe.
51311
51312 2006-10-13  Jim Meyering  <jim@meyering.net>
51313
51314         Fix a bug in yesterday's change.
51315         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51316         p->fts_statp->st_dev would be used uninitialized.
51317         Ensures that we always call fts_stat on the very first entry.
51318         Miklos Szeredi reported that find -xdev stopped working.
51319
51320 2006-10-12  Bruno Haible  <bruno@clisp.org>
51321
51322         * gnulib-tool (func_get_automake_snippet): Append an automatically
51323         computed EXTRA_DIST augmentation.
51324         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51325         * modules/alloca-opt (Makefile.am): Likewise.
51326         * modules/allocsa (Makefile.am): Likewise.
51327         * modules/arcfour (Makefile.am): Likewise.
51328         * modules/arctwo (Makefile.am): Likewise.
51329         * modules/argmatch (Makefile.am): Likewise.
51330         * modules/argz (Makefile.am): Likewise.
51331         * modules/atexit (Makefile.am): Likewise.
51332         * modules/backupfile (Makefile.am): Likewise.
51333         * modules/byteswap (Makefile.am): Likewise.
51334         * modules/c-strtod (Makefile.am): Likewise.
51335         * modules/c-strtold (Makefile.am): Likewise.
51336         * modules/calloc (Makefile.am): Likewise.
51337         * modules/canon-host (Makefile.am): Likewise.
51338         * modules/canonicalize (Makefile.am): Likewise.
51339         * modules/chdir-long (Makefile.am): Likewise.
51340         * modules/chdir-safer (Makefile.am): Likewise.
51341         * modules/check-version (Makefile.am): Likewise.
51342         * modules/chown (Makefile.am): Likewise.
51343         * modules/cloexec (Makefile.am): Likewise.
51344         * modules/close-stream (Makefile.am): Likewise.
51345         * modules/closeout (Makefile.am): Likewise.
51346         * modules/crc (Makefile.am): Likewise.
51347         * modules/csharpexec (Makefile.am): Likewise.
51348         * modules/cycle-check (Makefile.am): Likewise.
51349         * modules/des (Makefile.am): Likewise.
51350         * modules/dev-ino (Makefile.am): Likewise.
51351         * modules/dirfd (Makefile.am): Likewise.
51352         * modules/dirname (Makefile.am): Likewise.
51353         * modules/dup2 (Makefile.am): Likewise.
51354         * modules/eealloc (Makefile.am): Likewise.
51355         * modules/error (Makefile.am): Likewise.
51356         * modules/euidaccess (Makefile.am): Likewise.
51357         * modules/exclude (Makefile.am): Likewise.
51358         * modules/exitfail (Makefile.am): Likewise.
51359         * modules/fcntl-safer (Makefile.am): Likewise.
51360         * modules/fcntl (Makefile.am): Likewise.
51361         * modules/file-type (Makefile.am): Likewise.
51362         * modules/fileblocks (Makefile.am): Likewise.
51363         * modules/filemode (Makefile.am): Likewise.
51364         * modules/filenamecat (Makefile.am): Likewise.
51365         * modules/fnmatch (Makefile.am): Likewise.
51366         * modules/fopen-safer (Makefile.am): Likewise.
51367         * modules/fpending (Makefile.am): Likewise.
51368         * modules/fprintftime (Makefile.am): Likewise.
51369         * modules/free (Makefile.am): Likewise.
51370         * modules/fsusage (Makefile.am): Likewise.
51371         * modules/ftruncate (Makefile.am): Likewise.
51372         * modules/fts (Makefile.am): Likewise.
51373         * modules/gc-arcfour (Makefile.am): Likewise.
51374         * modules/gc-des (Makefile.am): Likewise.
51375         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51376         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51377         * modules/gc-md4 (Makefile.am): Likewise.
51378         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51379         * modules/gc-sha1 (Makefile.am): Likewise.
51380         * modules/gc (Makefile.am): Likewise.
51381         * modules/getaddrinfo (Makefile.am): Likewise.
51382         * modules/getcwd (Makefile.am): Likewise.
51383         * modules/getdelim (Makefile.am): Likewise.
51384         * modules/getdomainname (Makefile.am): Likewise.
51385         * modules/getgroups (Makefile.am): Likewise.
51386         * modules/gethostname (Makefile.am): Likewise.
51387         * modules/gethrxtime (Makefile.am): Likewise.
51388         * modules/getline (Makefile.am): Likewise.
51389         * modules/getloadavg (Makefile.am): Likewise.
51390         * modules/getlogin_r (Makefile.am): Likewise.
51391         * modules/getndelim2 (Makefile.am): Likewise.
51392         * modules/getopt (Makefile.am): Likewise.
51393         * modules/getpagesize (Makefile.am): Likewise.
51394         * modules/getpass-gnu (Makefile.am): Likewise.
51395         * modules/getpass (Makefile.am): Likewise.
51396         * modules/getsubopt (Makefile.am): Likewise.
51397         * modules/gettime (Makefile.am): Likewise.
51398         * modules/gettimeofday (Makefile.am): Likewise.
51399         * modules/getugroups (Makefile.am): Likewise.
51400         * modules/getusershell (Makefile.am): Likewise.
51401         * modules/glob (Makefile.am): Likewise.
51402         * modules/group-member (Makefile.am): Likewise.
51403         * modules/hard-locale (Makefile.am): Likewise.
51404         * modules/hash (Makefile.am): Likewise.
51405         * modules/hmac-md5 (Makefile.am): Likewise.
51406         * modules/hmac-sha1 (Makefile.am): Likewise.
51407         * modules/human (Makefile.am): Likewise.
51408         * modules/idcache (Makefile.am): Likewise.
51409         * modules/imaxabs (Makefile.am): Likewise.
51410         * modules/imaxdiv (Makefile.am): Likewise.
51411         * modules/inet_ntop (Makefile.am): Likewise.
51412         * modules/inet_pton (Makefile.am): Likewise.
51413         * modules/intprops (Makefile.am): Likewise.
51414         * modules/inttostr (Makefile.am): Likewise.
51415         * modules/inttypes (Makefile.am): Likewise.
51416         * modules/isapipe (Makefile.am): Likewise.
51417         * modules/javaversion (Makefile.am): Likewise.
51418         * modules/lchmod (Makefile.am): Likewise.
51419         * modules/lchown (Makefile.am): Likewise.
51420         * modules/localcharset (Makefile.am): Likewise.
51421         * modules/long-options (Makefile.am): Likewise.
51422         * modules/lstat (Makefile.am): Likewise.
51423         * modules/malloc (Makefile.am): Likewise.
51424         * modules/mathl (Makefile.am): Likewise.
51425         * modules/mbchar (Makefile.am): Likewise.
51426         * modules/md2 (Makefile.am): Likewise.
51427         * modules/md4 (Makefile.am): Likewise.
51428         * modules/md5 (Makefile.am): Likewise.
51429         * modules/memcasecmp (Makefile.am): Likewise.
51430         * modules/memchr (Makefile.am): Likewise.
51431         * modules/memcmp (Makefile.am): Likewise.
51432         * modules/memcoll (Makefile.am): Likewise.
51433         * modules/memcpy (Makefile.am): Likewise.
51434         * modules/memmem (Makefile.am): Likewise.
51435         * modules/memmove (Makefile.am): Likewise.
51436         * modules/mempcpy (Makefile.am): Likewise.
51437         * modules/memrchr (Makefile.am): Likewise.
51438         * modules/memset (Makefile.am): Likewise.
51439         * modules/memxor (Makefile.am): Likewise.
51440         * modules/mkancesdirs (Makefile.am): Likewise.
51441         * modules/mkdir-p (Makefile.am): Likewise.
51442         * modules/mkdir (Makefile.am): Likewise.
51443         * modules/mkdtemp (Makefile.am): Likewise.
51444         * modules/mkstemp (Makefile.am): Likewise.
51445         * modules/mktime (Makefile.am): Likewise.
51446         * modules/modechange (Makefile.am): Likewise.
51447         * modules/mountlist (Makefile.am): Likewise.
51448         * modules/nanosleep (Makefile.am): Likewise.
51449         * modules/obstack (Makefile.am): Likewise.
51450         * modules/openat (Makefile.am): Likewise.
51451         * modules/pagealign_alloc (Makefile.am): Likewise.
51452         * modules/pathmax (Makefile.am): Likewise.
51453         * modules/physmem (Makefile.am): Likewise.
51454         * modules/poll (Makefile.am): Likewise.
51455         * modules/posixtm (Makefile.am): Likewise.
51456         * modules/posixver (Makefile.am): Likewise.
51457         * modules/putenv (Makefile.am): Likewise.
51458         * modules/quote (Makefile.am): Likewise.
51459         * modules/quotearg (Makefile.am): Likewise.
51460         * modules/raise (Makefile.am): Likewise.
51461         * modules/read-file (Makefile.am): Likewise.
51462         * modules/readline (Makefile.am): Likewise.
51463         * modules/readlink (Makefile.am): Likewise.
51464         * modules/readtokens (Makefile.am): Likewise.
51465         * modules/readutmp (Makefile.am): Likewise.
51466         * modules/realloc (Makefile.am): Likewise.
51467         * modules/regex (Makefile.am): Likewise.
51468         * modules/rename-dest-slash (Makefile.am): Likewise.
51469         * modules/rename (Makefile.am): Likewise.
51470         * modules/rijndael (Makefile.am): Likewise.
51471         * modules/rmdir (Makefile.am): Likewise.
51472         * modules/rpmatch (Makefile.am): Likewise.
51473         * modules/safe-read (Makefile.am): Likewise.
51474         * modules/safe-write (Makefile.am): Likewise.
51475         * modules/same-inode (Makefile.am): Likewise.
51476         * modules/same (Makefile.am): Likewise.
51477         * modules/save-cwd (Makefile.am): Likewise.
51478         * modules/savedir (Makefile.am): Likewise.
51479         * modules/setenv (Makefile.am): Likewise.
51480         * modules/settime (Makefile.am): Likewise.
51481         * modules/sha1 (Makefile.am): Likewise.
51482         * modules/sig2str (Makefile.am): Likewise.
51483         * modules/snprintf (Makefile.am): Likewise.
51484         * modules/stat-macros (Makefile.am): Likewise.
51485         * modules/stat-time (Makefile.am): Likewise.
51486         * modules/stdbool (Makefile.am): Likewise.
51487         * modules/stdint (Makefile.am): Likewise.
51488         * modules/stdlib-safer (Makefile.am): Likewise.
51489         * modules/stpcpy (Makefile.am): Likewise.
51490         * modules/stpncpy (Makefile.am): Likewise.
51491         * modules/strcase (Makefile.am): Likewise.
51492         * modules/strcasestr (Makefile.am): Likewise.
51493         * modules/strchrnul (Makefile.am): Likewise.
51494         * modules/strcspn (Makefile.am): Likewise.
51495         * modules/strdup (Makefile.am): Likewise.
51496         * modules/strerror (Makefile.am): Likewise.
51497         * modules/strftime (Makefile.am): Likewise.
51498         * modules/strndup (Makefile.am): Likewise.
51499         * modules/strnlen (Makefile.am): Likewise.
51500         * modules/strpbrk (Makefile.am): Likewise.
51501         * modules/strsep (Makefile.am): Likewise.
51502         * modules/strstr (Makefile.am): Likewise.
51503         * modules/strtod (Makefile.am): Likewise.
51504         * modules/strtoimax (Makefile.am): Likewise.
51505         * modules/strtok_r (Makefile.am): Likewise.
51506         * modules/strtol (Makefile.am): Likewise.
51507         * modules/strtoll (Makefile.am): Likewise.
51508         * modules/strtoul (Makefile.am): Likewise.
51509         * modules/strtoull (Makefile.am): Likewise.
51510         * modules/strtoumax (Makefile.am): Likewise.
51511         * modules/strverscmp (Makefile.am): Likewise.
51512         * modules/sys_socket (Makefile.am): Likewise.
51513         * modules/sys_stat (Makefile.am): Likewise.
51514         * modules/sysexits (Makefile.am): Likewise.
51515         * modules/time_r (Makefile.am): Likewise.
51516         * modules/timegm (Makefile.am): Likewise.
51517         * modules/timespec (Makefile.am): Likewise.
51518         * modules/tmpfile-safer (Makefile.am): Likewise.
51519         * modules/trim (Makefile.am): Likewise.
51520         * modules/unistd-safer (Makefile.am): Likewise.
51521         * modules/unlinkdir (Makefile.am): Likewise.
51522         * modules/unlocked-io (Makefile.am): Likewise.
51523         * modules/userspec (Makefile.am): Likewise.
51524         * modules/utime (Makefile.am): Likewise.
51525         * modules/utimecmp (Makefile.am): Likewise.
51526         * modules/utimens (Makefile.am): Likewise.
51527         * modules/vasnprintf (Makefile.am): Likewise.
51528         * modules/vasprintf (Makefile.am): Likewise.
51529         * modules/vsnprintf (Makefile.am): Likewise.
51530         * modules/xalloc (Makefile.am): Likewise.
51531         * modules/xgetcwd (Makefile.am): Likewise.
51532         * modules/xnanosleep (Makefile.am): Likewise.
51533         * modules/xreadlink (Makefile.am): Likewise.
51534         * modules/xstrtod (Makefile.am): Likewise.
51535         * modules/xstrtol (Makefile.am): Likewise.
51536         * modules/xstrtold (Makefile.am): Likewise.
51537         * modules/yesno (Makefile.am): Likewise.
51538         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51539
51540 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * modules/error (Makefile.am): Distribute files through
51543         EXTRA_DIST, not lib_SOURCES.
51544
51545 2006-10-12  Eric Blake  <ebb9@byu.net>
51546
51547         * modules/error (Makefile.am): Distribute files in /lib.
51548         * modules/obstack (Makefile.am): Likewise.
51549
51550 2006-10-12  Bruno Haible  <bruno@clisp.org>
51551
51552         * modules/acl (Makefile.am): Distribute all files in lib/ through
51553         EXTRA_DIST.
51554         * modules/arcfour (Makefile.am): Likewise.
51555         * modules/arctwo (Makefile.am): Likewise.
51556         * modules/argmatch (Makefile.am): Likewise.
51557         * modules/argz (Makefile.am): Likewise.
51558         * modules/atexit (Makefile.am): Likewise.
51559         * modules/backupfile (Makefile.am): Likewise.
51560         * modules/c-strtod (Makefile.am): Likewise.
51561         * modules/c-strtold (Makefile.am): Likewise.
51562         * modules/calloc (Makefile.am): Likewise.
51563         * modules/canon-host (Makefile.am): Likewise.
51564         * modules/canonicalize (Makefile.am): Likewise.
51565         * modules/chdir-long (Makefile.am): Likewise.
51566         * modules/chdir-safer (Makefile.am): Likewise.
51567         * modules/check-version (Makefile.am): Likewise.
51568         * modules/chown (Makefile.am): Likewise.
51569         * modules/cloexec (Makefile.am): Likewise.
51570         * modules/close-stream (Makefile.am): Likewise.
51571         * modules/closeout (Makefile.am): Likewise.
51572         * modules/crc (Makefile.am): Likewise.
51573         * modules/cycle-check (Makefile.am): Likewise.
51574         * modules/des (Makefile.am): Likewise.
51575         * modules/dirfd (Makefile.am): Likewise.
51576         * modules/dirname (Makefile.am): Likewise.
51577         * modules/dup2 (Makefile.am): Likewise.
51578         * modules/euidaccess (Makefile.am): Likewise.
51579         * modules/exclude (Makefile.am): Likewise.
51580         * modules/exitfail (Makefile.am): Likewise.
51581         * modules/fcntl-safer (Makefile.am): Likewise.
51582         * modules/file-type (Makefile.am): Likewise.
51583         * modules/fileblocks (Makefile.am): Likewise.
51584         * modules/filemode (Makefile.am): Likewise.
51585         * modules/filenamecat (Makefile.am): Likewise.
51586         * modules/fnmatch (Makefile.am): Likewise.
51587         * modules/fopen-safer (Makefile.am): Likewise.
51588         * modules/fpending (Makefile.am): Likewise.
51589         * modules/fprintftime (Makefile.am): Likewise.
51590         * modules/free (Makefile.am): Likewise.
51591         * modules/fsusage (Makefile.am): Likewise.
51592         * modules/ftruncate (Makefile.am): Likewise.
51593         * modules/fts (Makefile.am): Likewise.
51594         * modules/gc (Makefile.am): Likewise.
51595         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51596         * modules/getaddrinfo (Makefile.am): Likewise.
51597         * modules/getcwd (Makefile.am): Likewise.
51598         * modules/getdelim (Makefile.am): Likewise.
51599         * modules/getdomainname (Makefile.am): Likewise.
51600         * modules/getgroups (Makefile.am): Likewise.
51601         * modules/gethostname (Makefile.am): Likewise.
51602         * modules/gethrxtime (Makefile.am): Likewise.
51603         * modules/getline (Makefile.am): Likewise.
51604         * modules/getloadavg (Makefile.am): Likewise.
51605         * modules/getlogin_r (Makefile.am): Likewise.
51606         * modules/getopt (Makefile.am): Likewise.
51607         * modules/getpass (Makefile.am): Likewise.
51608         * modules/getpass-gnu (Makefile.am): Likewise.
51609         * modules/getsubopt (Makefile.am): Likewise.
51610         * modules/gettime (Makefile.am): Likewise.
51611         * modules/gettimeofday (Makefile.am): Likewise.
51612         * modules/getugroups (Makefile.am): Likewise.
51613         * modules/getusershell (Makefile.am): Likewise.
51614         * modules/glob (Makefile.am): Likewise.
51615         * modules/group-member (Makefile.am): Likewise.
51616         * modules/hard-locale (Makefile.am): Likewise.
51617         * modules/hash (Makefile.am): Likewise.
51618         * modules/hmac-md5 (Makefile.am): Likewise.
51619         * modules/hmac-sha1 (Makefile.am): Likewise.
51620         * modules/human (Makefile.am): Likewise.
51621         * modules/idcache (Makefile.am): Likewise.
51622         * modules/imaxabs (Makefile.am): Likewise.
51623         * modules/imaxdiv (Makefile.am): Likewise.
51624         * modules/inet_ntop (Makefile.am): Likewise.
51625         * modules/inet_pton (Makefile.am): Likewise.
51626         * modules/inttostr (Makefile.am): Likewise.
51627         * modules/isapipe (Makefile.am): Likewise.
51628         * modules/lchown (Makefile.am): Likewise.
51629         * modules/long-options (Makefile.am): Likewise.
51630         * modules/lstat (Makefile.am): Likewise.
51631         * modules/malloc (Makefile.am): Likewise.
51632         * modules/mathl (Makefile.am): Likewise.
51633         * modules/mbchar (Makefile.am): Likewise.
51634         * modules/md2 (Makefile.am): Likewise.
51635         * modules/md4 (Makefile.am): Likewise.
51636         * modules/md5 (Makefile.am): Likewise.
51637         * modules/memcasecmp (Makefile.am): Likewise.
51638         * modules/memchr (Makefile.am): Likewise.
51639         * modules/memcmp (Makefile.am): Likewise.
51640         * modules/memcoll (Makefile.am): Likewise.
51641         * modules/memcpy (Makefile.am): Likewise.
51642         * modules/memmem (Makefile.am): Likewise.
51643         * modules/memmove (Makefile.am): Likewise.
51644         * modules/mempcpy (Makefile.am): Likewise.
51645         * modules/memrchr (Makefile.am): Likewise.
51646         * modules/memset (Makefile.am): Likewise.
51647         * modules/memxor (Makefile.am): Likewise.
51648         * modules/mkancesdirs (Makefile.am): Likewise.
51649         * modules/mkdir (Makefile.am): Likewise.
51650         * modules/mkdir-p (Makefile.am): Likewise.
51651         * modules/mkdtemp (Makefile.am): Likewise.
51652         * modules/mkstemp (Makefile.am): Likewise.
51653         * modules/mktime (Makefile.am): Likewise.
51654         * modules/modechange (Makefile.am): Likewise.
51655         * modules/mountlist (Makefile.am): Likewise.
51656         * modules/nanosleep (Makefile.am): Likewise.
51657         * modules/openat (Makefile.am): Likewise.
51658         * modules/pagealign_alloc (Makefile.am): Likewise.
51659         * modules/physmem (Makefile.am): Likewise.
51660         * modules/poll (Makefile.am): Likewise.
51661         * modules/posixtm (Makefile.am): Likewise.
51662         * modules/posixver (Makefile.am): Likewise.
51663         * modules/putenv (Makefile.am): Likewise.
51664         * modules/quote (Makefile.am): Likewise.
51665         * modules/quotearg (Makefile.am): Likewise.
51666         * modules/raise (Makefile.am): Likewise.
51667         * modules/read-file (Makefile.am): Likewise.
51668         * modules/readline (Makefile.am): Likewise.
51669         * modules/readlink (Makefile.am): Likewise.
51670         * modules/readtokens (Makefile.am): Likewise.
51671         * modules/readutmp (Makefile.am): Likewise.
51672         * modules/realloc (Makefile.am): Likewise.
51673         * modules/regex (Makefile.am): Likewise.
51674         * modules/rename (Makefile.am): Likewise.
51675         * modules/rename-dest-slash (Makefile.am): Likewise.
51676         * modules/rijndael (Makefile.am): Likewise.
51677         * modules/rmdir (Makefile.am): Likewise.
51678         * modules/rpmatch (Makefile.am): Likewise.
51679         * modules/safe-read (Makefile.am): Likewise.
51680         * modules/safe-write (Makefile.am): Likewise.
51681         * modules/same (Makefile.am): Likewise.
51682         * modules/save-cwd (Makefile.am): Likewise.
51683         * modules/savedir (Makefile.am): Likewise.
51684         * modules/setenv (Makefile.am): Likewise.
51685         * modules/settime (Makefile.am): Likewise.
51686         * modules/sha1 (Makefile.am): Likewise.
51687         * modules/sig2str (Makefile.am): Likewise.
51688         * modules/snprintf (Makefile.am): Likewise.
51689         * modules/stdlib-safer (Makefile.am): Likewise.
51690         * modules/stpcpy (Makefile.am): Likewise.
51691         * modules/stpncpy (Makefile.am): Likewise.
51692         * modules/strcase (Makefile.am): Likewise.
51693         * modules/strcasestr (Makefile.am): Likewise.
51694         * modules/strchrnul (Makefile.am): Likewise.
51695         * modules/strcspn (Makefile.am): Likewise.
51696         * modules/strdup (Makefile.am): Likewise.
51697         * modules/strerror (Makefile.am): Likewise.
51698         * modules/strftime (Makefile.am): Likewise.
51699         * modules/strndup (Makefile.am): Likewise.
51700         * modules/strnlen (Makefile.am): Likewise.
51701         * modules/strpbrk (Makefile.am): Likewise.
51702         * modules/strsep (Makefile.am): Likewise.
51703         * modules/strstr (Makefile.am): Likewise.
51704         * modules/strtod (Makefile.am): Likewise.
51705         * modules/strtoimax (Makefile.am): Likewise.
51706         * modules/strtok_r (Makefile.am): Likewise.
51707         * modules/strtol (Makefile.am): Likewise.
51708         * modules/strtoll (Makefile.am): Likewise.
51709         * modules/strtoul (Makefile.am): Likewise.
51710         * modules/strtoull (Makefile.am): Likewise.
51711         * modules/strtoumax (Makefile.am): Likewise.
51712         * modules/strverscmp (Makefile.am): Likewise.
51713         * modules/time_r (Makefile.am): Likewise.
51714         * modules/timegm (Makefile.am): Likewise.
51715         * modules/tmpfile-safer (Makefile.am): Likewise.
51716         * modules/unistd-safer (Makefile.am): Likewise.
51717         * modules/unlinkdir (Makefile.am): Likewise.
51718         * modules/userspec (Makefile.am): Likewise.
51719         * modules/utime (Makefile.am): Likewise.
51720         * modules/utimecmp (Makefile.am): Likewise.
51721         * modules/utimens (Makefile.am): Likewise.
51722         * modules/vasnprintf (Makefile.am): Likewise.
51723         * modules/vasprintf (Makefile.am): Likewise.
51724         * modules/vsnprintf (Makefile.am): Likewise.
51725         * modules/xalloc (Makefile.am): Likewise.
51726         * modules/xgetcwd (Makefile.am): Likewise.
51727         * modules/xnanosleep (Makefile.am): Likewise.
51728         * modules/xreadlink (Makefile.am): Likewise.
51729         * modules/xstrtod (Makefile.am): Likewise.
51730         * modules/xstrtol (Makefile.am): Likewise.
51731         * modules/xstrtold (Makefile.am): Likewise.
51732         * modules/yesno (Makefile.am): Likewise.
51733
51734 2006-10-12  Jim Meyering  <jim@meyering.net>
51735
51736         * m4/getloadavg.m4: Revert the change below.
51737
51738         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
51739         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
51740         fail with a symlink, which is what coreutils' ./bootstrap now
51741         creates by default.
51742
51743 2006-10-12  Bruno Haible  <bruno@clisp.org>
51744
51745         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
51746         mingw.
51747         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
51748         MSVC and mingw explicitly.
51749
51750 2006-10-11  Simon Josefsson  <jas@extundo.com>
51751             Bruno Haible  <bruno@clisp.org>
51752
51753         Add support for multiple gnulib-tool invocations in the scope of a
51754         single configure.ac file.
51755         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
51756         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
51757         with the same contents as the _LIBADD variable.
51758         (func_emit_initmacro_start, func_emit_initmacro_end,
51759         func_emit_initmacro_done): New functions.
51760         (func_import, func_create_testdir): Invoke them. Allow the identifiers
51761         gl_LIBOBJS and gl_LTLIBOBJS.
51762
51763 2006-10-11  Bruno Haible  <bruno@clisp.org>
51764
51765         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
51766         (func_create_testdir): Don't create po/Makefile.am, don't invoke
51767         autoreconf. Instead, invoke autopoint explicitly but move back the
51768         *.m4 files from gnulib.
51769
51770 2006-10-11  Bruno Haible  <bruno@clisp.org>
51771
51772         * gnulib-tool (func_usage): Make module names after --create-testdir
51773         optional.
51774         (func_create_testdir): If no module was specified, use nearly all
51775         modules.
51776
51777 2006-10-12  Jim Meyering  <jim@meyering.net>
51778
51779         Big performance improvement for fts-based tools that use FTS_NOSTAT.
51780         Avoid spurious inode-mismatch problems on non-POSIX file systems.
51781         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
51782         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
51783         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
51784         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
51785         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
51786         (fts_set_stat_required): New function.
51787         (fts_open): Defer the calls to fts_stat, if possible or requested.
51788         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
51789         into fts_stat itself.
51790         (fts_read): Perform any required (deferred) fts_stat call.
51791         (fts_build): Likewise, for the directory we're about to open and read.
51792         In the readdir loop, carefully decide whether each entry will require
51793         an eventual call to fts_stat, using dirent.d_type info if available.
51794         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
51795         a command line argument into this function.  Update all callers.
51796         Map a return value of FTS_DOT to FTS_D for a command line argument.
51797         * modules/fts (Depends-on): Add d-type.  Alphabetize.
51798         Thanks to Miklos Szeredi for his tenacity and for the initial
51799         bug report about "find" failing on a FUSE-based file system.
51800
51801         * lib/fts.c (fts_open): Use consistent indentation.
51802
51803 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
51806         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
51807         reported by Jim Meyering.  All uses of cache variables renamed
51808         to match Autoconf's.
51809         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
51810         the other one.
51811
51812         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
51813         Fix misspelling in diagnostic.
51814
51815 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51816
51817         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
51818         defined.  Problem reported by Matthew Woehlke.
51819
51820         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
51821         Add support for Tandem NonStop R series.
51822         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
51823         Use new macro.
51824
51825         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
51826         (has_trailing_slash): Omit size arg; all callers changed.
51827         Omit 'inline', since it doesn't help performance and we'd
51828         need to configure it.
51829         Don't count //, ///, etc. as having a trailing slash.
51830         As a side effect, this removes a C99ism reported by Matthew Woehlke.
51831         (rpl_rename_dest_slash): On failure, use rename's errno rather
51832         than (in some cases) an incorrect or junk errno.
51833         Simplify code by removing need to compute length; this does
51834         cause it to make two passes instead of one over the file name,
51835         but it's worth it.
51836
51837         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
51838         change, since Autoconf's version may no longer be appropriate now
51839         that we are using CVS Autoconf's version.  Add support for Tandem.
51840
51841 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51842             Bruno Haible  <bruno@clisp.org>
51843
51844         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
51845         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
51846         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
51847         gl_AC_TYPE_LONG_LONG.
51848
51849         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
51850         instead of HAVE_LONG_LONG.
51851         * lib/printf-args.c (printf_fetchargs): Likewise.
51852         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
51853         * lib/vasnprintf.c (VASNPRINTF): Likewise.
51854         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
51855         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
51856         gl_AC_TYPE_LONG_LONG.
51857
51858 2006-10-11  Bruno Haible  <bruno@clisp.org>
51859
51860         * m4/longlong.m4: Add comments.
51861         * m4/ulonglong.m4: Likewise.
51862
51863 2006-10-10  Bruno Haible  <bruno@clisp.org>
51864
51865         Make it possible to #define stpcpy, strdup to aliases.
51866         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
51867         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
51868
51869 2006-10-10  Bruno Haible  <bruno@clisp.org>
51870
51871         Make it possible to #define gcd to an alias.
51872         * lib/gcd.c: Include config.h.
51873
51874 2006-10-10  Bruno Haible  <bruno@clisp.org>
51875
51876         Make it possible to #define c_isascii to an alias.
51877         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
51878         defined. Undefine the macros before defining them, to avoid gcc
51879         warnings.
51880         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
51881         define NO_C_CTYPE_MACROS early.
51882
51883 2006-10-10  Bruno Haible  <bruno@clisp.org>
51884
51885         Make it possible to #define set_program_name to an alias.
51886         * lib/progname.c: Don't undefine set_program_name; instead, undefine
51887         ENABLE_RELOCATABLE early.
51888
51889 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51890
51891         Port to Tandem NSK OSS, which has 64-bit signed int but at most
51892         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
51893         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
51894         More generally, don't assume that 64-bit signed int is available
51895         if unsigned int is, and vice versa.
51896         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
51897         unsigned symbols, not on their signed counterparts.
51898         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
51899         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
51900         (UINT64_C, UINTMAX_C):
51901         Likewise.
51902         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
51903         unsigned counterparts.
51904         (Have_long_long, Unsigned): New macros.
51905         (Int): Renamed from INT.
51906         (strtoimax): Use the new macros.
51907         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
51908         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
51909         * modules/inttypes (inttypes.h): Substitute
51910         HAVE_UNSIGNED_LONG_LONG_INT.
51911         * modules/stdint (stdint.h): Likewise.
51912         (Files): Add m4/ulonglong.m4.
51913
51914 2006-10-10  Bruno Haible  <bruno@clisp.org>
51915
51916         Fix a gcc -Wshadow warning.
51917         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
51918         to 'bucket'.
51919         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
51920         gl_linked_indexof_from_to): Likewise.
51921         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
51922         Likewise.
51923         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
51924         Likewise.
51925         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
51926         Reported by Eric Blake.
51927
51928 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
51929
51930         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
51931         for NetBSD.  Problem reported by Bruno Haible.
51932
51933 2006-10-09  Jim Meyering  <jim@meyering.net>
51934
51935         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
51936         Patch from Bruno Haible.
51937
51938 2006-10-09  Jim Meyering  <jim@meyering.net>
51939
51940         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
51941         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
51942         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
51943
51944 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51945
51946         Don't include <config.h> twice; this doesn't work in some cases,
51947         e.g., when config.h has "#define intmax_t long long int" and
51948         we include <config.h>, <inttypes.h>, <config.h> in that order.
51949         Problem reported by Matthew Woehlke in:
51950         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
51951         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
51952         * lib/fts-cycle.c: Don't include config.h.
51953         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
51954         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
51955         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
51956         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
51957         inttypes.h.
51958         * lib/xstrtoumax.c: Likewise.
51959         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
51960         __strtol and the like, so that this module is more like its siblings.
51961         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
51962         Remove; no longer needed now that we assume gnulib inttypes.h.
51963
51964 2006-10-08  Bruno Haible  <bruno@clisp.org>
51965
51966         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
51967         option.
51968
51969 2006-10-07  Jim Meyering  <jim@meyering.net>
51970
51971         * modules/inttypes (inttypes.h): Revert what seems to have been
51972         an inadvertent part of today's change: use "|", not "/" in the
51973         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
51974
51975 2006-10-07  Bruno Haible  <bruno@clisp.org>
51976
51977         * modules/sublist: New file.
51978
51979 2006-10-07  Bruno Haible  <bruno@clisp.org>
51980
51981         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
51982         * modules/argz (argz.h): Likewise.
51983         * modules/arpa_inet (arpa/inet.h): Likewise.
51984         * modules/byteswap (byteswap.h): Likewise.
51985         * modules/configmake (configmake.h): Likewise.
51986         * modules/fcntl (fcntl.h): Likewise.
51987         * modules/fnmatch (fnmatch.h): Likewise.
51988         * modules/getopt (getopt.h): Likewise.
51989         * modules/glob (glob.h): Likewise.
51990         * modules/inttypes (inttypes.h): Likewise.
51991         * modules/netinet_in (netinet/in.h): Likewise.
51992         * modules/poll (poll.h): Likewise.
51993         * modules/stdbool (stdbool.h): Likewise.
51994         * modules/stdint (stdint.h): Likewise.
51995         * modules/sys_select (sys/select.h): Likewise.
51996         * modules/sys_socket (sys/socket.h): Likewise.
51997         * modules/sys_stat (sys/stat.h): Likewise.
51998         * modules/sysexits (sysexits.h): Likewise.
51999         * modules/unistd (unistd.h): Likewise.
52000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52001         Add a "DO NOT EDIT" comment to the generated file.
52002         (func_import): Likewise for gnulib-comp.m4.
52003
52004 2006-10-07  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/gl_sublist.h: New file.
52007         * lib/gl_sublist.c: New file.
52008
52009 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52010
52011         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52012         name (relative to the original working directory) and the file
52013         name component (relative to the temporary working directory).  All
52014         callers changed.
52015         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52016         * lib/mkdir-p.c (make_dir_parents): Likewise.
52017         * lib/mkdir-p.h (make_dir_parents): Likewise.
52018
52019 2006-10-06  Eric Blake  <ebb9@byu.net>
52020
52021         Define several macros for use by the clean-temp module.
52022         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52023         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52024         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52025
52026         * lib/clean-temp.h (close_stream_temp): New declaration.
52027         * lib/clean-temp.c (includes): Pull in headers according to what
52028         other modules are in use.
52029         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52030
52031 2006-10-06  Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52034         instead of fopen, fwriteerror.
52035
52036 2006-10-06  Bruno Haible  <bruno@clisp.org>
52037
52038         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52039         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52040         int.
52041         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52042         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52043         Return an error indicator.
52044         Suggested by Eric Blake.
52045
52046 2006-10-06  Bruno Haible  <bruno@clisp.org>
52047
52048         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52049         Reported by Eric Blake.
52050
52051 2006-10-06  Bruno Haible  <bruno@clisp.org>
52052
52053         * modules/closeout (Description): Mention stderr too.
52054
52055 2006-10-06  Bruno Haible  <bruno@clisp.org>
52056         and Paul Eggert  <eggert@cs.ucla.edu>
52057
52058         * lib/closeout.c (close_stdout): Also close stderr.
52059         * lib/closeout.h: Update comment.
52060
52061 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52062
52063         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52064         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52065         * lib/dirchownmod.c: Include lchown.h.
52066         * lib/lchown.c: Don't include files that lchown.h now includes.
52067         Don't declare chown, since lchown.h now does that.
52068         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52069         (lchown): Define to rpl_chown if lchown is declared but
52070         does not exist.  Declare using a prototype if lchown is not
52071         declared.  Add a copyright notice.
52072         * lib/mkstemp.h: Include <unistd.h>.
52073         * lib/openat.c: Include lchown.h.
52074
52075         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52076         we now test for that separately.
52077         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52078         rather than O_NOFOLLOW, when testing whether it's possible to
52079         avoid a race condition reliably.
52080         * lib/savewd.c (savewd_chdir): Likewise.
52081
52082         Remove macros that are no longer needed now that stdint.h is
52083         reliable.
52084         * lib/fsusage.c (UINTMAX_MAX): Remove.
52085         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52086         * lib/utimecmp.c (SIZE_MAX): Remove.
52087
52088         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52089
52090         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52091         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52092         O_NOATIME works.
52093
52094 2006-10-05  Bruno Haible  <bruno@clisp.org>
52095
52096         * lib/gl_list.h (gl_sortedlist_search_from_to,
52097         gl_sortedlist_indexof_from_to): New declarations.
52098         (gl_list_implementation): New fields sortedlist_search_from_to,
52099         sortedlist_indexof_from_to.
52100         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52101         inline functions.
52102         * lib/gl_list.c (gl_sortedlist_search_from_to,
52103         gl_sortedlist_indexof_from_to): New functions.
52104         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52105         function.
52106         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52107         (gl_array_sortedlist_search_from_to): New function.
52108         (gl_array_list_implementation): Update.
52109         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52110         function.
52111         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52112         (gl_carray_sortedlist_search_from_to): New function.
52113         (gl_carray_list_implementation): Update.
52114         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52115         gl_linked_sortedlist_indexof_from_to): New functions.
52116         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52117         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52118         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52119         gl_tree_sortedlist_indexof_from_to): New functions.
52120         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52121         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52122         Update.
52123         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52124         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52125         Update.
52126
52127 2006-10-05  Bruno Haible  <bruno@clisp.org>
52128
52129         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52130         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52131         (struct gl_list_implementation): Add fields search_from_to,
52132         indexof_from_to. Remove fields search, indexof.
52133         (gl_list_search): Use the search_from_to method.
52134         (gl_list_search_from, gl_list_search_from_to): New functions.
52135         (gl_list_indexof): Use the indexof_from_to method.
52136         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52137         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52138         (gl_list_search_from, gl_list_search_from_to): New functions.
52139         (gl_list_indexof): Use the indexof_from_to method.
52140         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52141         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52142         gl_array_indexof. Add start_index, end_index arguments.
52143         (gl_array_search_from_to): Renamed from gl_array_search. Add
52144         start_index, end_index arguments.
52145         (gl_array_remove, gl_array_list_implementation): Update.
52146         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52147         gl_carray_indexof. Add start_index, end_index arguments.
52148         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52149         start_index, end_index arguments.
52150         (gl_carray_remove, gl_carray_list_implementation): Update.
52151         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52152         gl_linked_search. Add start_index, end_index arguments.
52153         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52154         start_index, end_index arguments.
52155         (gl_linked_remove): Update.
52156         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52157         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52158         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52159         field to 'size_t'.
52160         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52161         gl_tree_search. Add start_index, end_index arguments.
52162         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52163         start_index, end_index arguments.
52164         (gl_tree_remove): Update.
52165         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52166         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52167         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52168         function.
52169         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52170         gl_tree_search. Add start_index, end_index arguments.
52171         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52172         start_index, end_index arguments.
52173         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52174         Update.
52175         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52176
52177 2006-10-05  Bruno Haible  <bruno@clisp.org>
52178
52179         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52180
52181         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52182         fwriteerror_temp): New declarations.
52183         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52184         (descriptors): New variable.
52185         (cleanup): First, close the descriptors.
52186         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52187         fclose_temp, fwriteerror_temp): New functions.
52188
52189 2006-10-04  Jim Meyering  <jim@meyering.net>
52190
52191         * lib/fts.c (fts_open): Tiny comment change.
52192
52193 2006-10-04  Bruno Haible  <bruno@clisp.org>
52194
52195         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52196         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52197         gl_LOCK_BODY.
52198         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52199         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52200         gl_LOCK_EARLY_BODY.
52201         (gl_LOCK): Require gl_LOCK_BODY.
52202
52203 2006-10-04  Bruno Haible  <bruno@clisp.org>
52204
52205         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52206         (gl_oset_search_atleast): New declaration.
52207         (struct gl_oset_implementation): Add field 'search_atleast'.
52208         (gl_oset_search_atleast): New inline function.
52209         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52210         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52211         (gl_array_oset_implementation): Update.
52212         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52213         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52214         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52215
52216 2006-10-04  Bruno Haible  <bruno@clisp.org>
52217
52218         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52219
52220 2006-10-03  Bruno Haible  <bruno@clisp.org>
52221
52222         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52223         from gl_avltreehash_list_implementation.
52224
52225 2006-10-03  Bruno Haible  <bruno@clisp.org>
52226
52227         * lib/gl_oset.c (gl_oset_add): Fix return type.
52228
52229 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52230
52231         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52232
52233 2006-10-02  Eric Blake  <ebb9@byu.net>
52234
52235         * modules/strnlen (Depends-on): Add extensions.
52236
52237 2006-10-02  Eric Blake  <ebb9@byu.net>
52238
52239         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52240         definition in 2.60+.
52241
52242 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52243
52244         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52245         checks.
52246
52247 2006-10-02  Bruno Haible  <bruno@clisp.org>
52248
52249         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52250         to the AUTOMAKE_OPTIONS.
52251         Reported by Jim Meyering.
52252
52253 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52254
52255         Work around bug in Solaris 10 /proc file system:
52256         /proc/self/fd/NNN/.. isn't the parent directory of
52257         the directory whose file descriptor is NNN.  This needs to
52258         be worked around at run time, not compile time, since a
52259         program might be built on Solaris 8, where things work, and
52260         run on Solaris 10.
52261         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52262         to use the following interface instead:
52263         (OPENAT_BUFFER_SIZE): New macro.
52264         (openat_proc_name): New function.
52265         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52266         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52267         Likewise.
52268         * lib/openat-proc.c: New file.
52269         * modules/openat (Files): Add lib/openat-proc.c.
52270         (Depends-on): Add same-inode, stdbool.
52271         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52272
52273 2006-09-29  Bruno Haible  <bruno@clisp.org>
52274
52275         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52276         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52277         argument. Set stdout_closed before testing for ferror, not after.
52278         (fwriteerror, fwriteerror_no_ebadf): New functions.
52279
52280 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52281
52282         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52283
52284 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52285
52286         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52287         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52288
52289 2006-09-28  Jim Meyering  <jim@meyering.net>
52290
52291         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52292         Include <unistd.h>.
52293
52294 2006-09-28  Bruno Haible  <bruno@clisp.org>
52295
52296         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52297         * modules/linkedhash-list (Depends-on): Likewise.
52298         * modules/rbtreehash-list (Depends-on): Likewise.
52299
52300 2006-09-28  Bruno Haible  <bruno@clisp.org>
52301
52302         * lib/strndup.h: Simplify the redefinition of strndup.
52303         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52304         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52305
52306 2006-09-28  Bruno Haible  <bruno@clisp.org>
52307
52308         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52309         * lib/gl_linkedhash_list.c: Likewise.
52310         * lib/gl_rbtreehash_list.c: Likewise.
52311
52312 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52313
52314         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52315         getaddrinfo.
52316
52317         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52318         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52319         it causes <stdio_ext.h> to cause a compile-time error.
52320         Problem reported by Nelson H. F. Beebe.
52321         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52322         of HAVE_DECL___PENDING.
52323
52324         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52325         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52326         declaration.
52327
52328 2006-09-27  Jim Meyering  <jim@meyering.net>
52329
52330         This file could end up with a definition for a function
52331         named __strndup, rather than rpl_strndup on a system with
52332         incomplete weak_alias support.
52333         * lib/strndup.c (strndup): Rename from __strndup.
52334         Remove #defines that used to map __strndup to strndup.
52335         Don't use K&R prototypes.
52336         Remove LIBC-related code, since this file is not sync'd with glibc.
52337         * lib/strndup.h: Revamp, accordingly.
52338         * m4/strndup.m4: Modernize.
52339
52340 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52341
52342         * modules/savewd (Depends-on): Add 'raise'.
52343         * lib/savewd.c: Include <signal.h>, for 'raise'.
52344
52345 2006-09-26  Jim Meyering  <jim@meyering.net>
52346
52347         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52348         when we detect Darwin 8.7.0's acl_get_file bug.
52349         Rearrange to perform the new (below) run-test while $LIBS
52350         contains any acl-related library.  Set USE_ACL at the end.
52351         (gl_ACL_GET_FILE): New function.
52352
52353 2006-09-26  Eric Blake  <ebb9@byu.net>
52354
52355         * lib/verror.c: Include <config.h> unconditionally.
52356
52357 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52358
52359         * modules/clock-time (Maintainer): Add self.
52360         * modules/getlogin_r (Depends-on): Add extensions.
52361
52362 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52363
52364         * modules/clock-time: New module.
52365         * modules/nanosleep (Depends-on): Add clock-time.
52366         * modules/gethrxtime (Depends-on): Likewise.
52367         * modules/gettime (Depends-on): Likewise.
52368         * modules/settime (Depends-on): Likewise.
52369
52370         * modules/fts-lgpl: Depend on openat.
52371         * modules/mkancesdirs: Depend on savewd.
52372         * modules/mkdir-p: Likewise.
52373
52374 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52375
52376         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52377
52378         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52379         `gl_have_arbitrary_file_name_length_limit' to
52380         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52381         actually works between configure runs.
52382
52383 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52384             Bruno Haible  <bruno@clisp.org>
52385
52386         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52387
52388 2006-09-25  Jim Meyering  <jim@meyering.net>
52389
52390         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52391         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52392
52393 2006-09-25  Eric Blake  <ebb9@byu.net>
52394
52395         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52396         exec's in 2006-09-18 patch when shuffling fds.
52397
52398 2006-09-25  Bruno Haible  <bruno@clisp.org>
52399
52400         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52401         Reported by Jim Meyering.
52402
52403 2006-09-24  Jim Meyering  <jim@meyering.net>
52404
52405         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52406         compare a pointer against a literal "0".  That caused failures with
52407         at least HP-UX's hpcc.
52408
52409 2006-09-22  Simon Josefsson  <jas@extundo.com>
52410
52411         * modules/gc-sha1:
52412         * modules/gc-md4:
52413         * modules/gc-hmac-sha1:
52414         * modules/gc-hmac-md5:
52415         * modules/gc-des:
52416         * modules/gc-arcfour: Distribute more files.
52417
52418 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52419
52420         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52421         (gl_linked_iterator_from_to): Initialize struct completely.
52422         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52423         (gl_tree_iterator_from_to): Likewise
52424         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52425         * lib/gl_array_list.c [lint] (gl_array_iterator)
52426         (gl_array_iterator_from_to): Likewise.
52427         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52428         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52429         (gl_carray_iterator_from_to): Likewise.
52430
52431         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52432         * lib/md4.c (md4_process_block): Remove unused variable.
52433         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52434         parentheses for clarity.
52435
52436 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52437
52438         * modules/bison-i18n (Depends-on): Add gettext.
52439
52440 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52441
52442         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52443         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52444         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52445         also add missing comma that caused broken test.
52446         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52447         stdlib.h, for `abort'.
52448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52449         variables.
52450         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52451         include unistd.h if present, for `rmdir'.
52452         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52453         variables.
52454         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52455         in the process include standard headers for prototypes.
52456         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52457         gets declared on GNU/Linux.
52458         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52459         unistd.h, for `rmdir'.
52460         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52461
52462         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52463         always true.
52464         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52465
52466         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52467
52468 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52469
52470         * gnulib-tool (func_version): Create output all at once.  This
52471         may help avoid triggering unnecessary SIGPIPEs, and at any
52472         rate it doesn't hurt.
52473
52474 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52475             Bruno Haible  <bruno@clisp.org>
52476
52477         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
52478         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52479         * m4/signed.m4 (bh_C_SIGNED): Likewise.
52480
52481         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
52482         (gl_FUNC_VASPRINTF): Invoke it.
52483
52484 2006-09-22  Bruno Haible  <bruno@clisp.org>
52485
52486         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
52487         getloadavg.c as first argument.
52488
52489 2006-09-22  Bruno Haible  <bruno@clisp.org>
52490
52491         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
52492         at the beginning of the gl_INIT macro.
52493         * modules/getloadavg (configure.ac): Pass $gl_source_base to
52494         gl_GETLOADAVG.
52495
52496 2006-09-22  Bruno Haible  <bruno@clisp.org>
52497
52498         * gnulib-tool (func_create_megatestdir): Don't include the config-h
52499         module.
52500         Suggested by Ralf Wildenhues.
52501
52502 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52503
52504         Import this patch from libc:
52505
52506         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52507
52508         * lib/regex_internal.c (re_string_reconstruct): Handle
52509         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52510         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52511         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52512         re_string_context_at.
52513
52514         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52515         now requires it.
52516         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52517         gl_REGEX now does it for us.
52518         (gl_REGEX): Add test taken from
52519         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52520
52521         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52522         Check that large offsets work.  Modernize Autoconf usages.
52523         Prefer "yes" to mean a good thing rather than a bad.
52524         Don't put "#define mkstemp" in config.h, as this might interfere
52525         with standard system headers that "#define mkstemp mkstemp64".
52526
52527         * modules/mkstemp (Depends-on): Add extensions, so that
52528         mkstemp is visible on some platforms.
52529         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52530         (Include): Change to "mkstemp.h" from <stdlib.h>.
52531         (Files): Add mkstemp.h.
52532
52533         * lib/mkstemp.h: New file, since some standard headers
52534         #define mkstemp.
52535         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52536         Include "mkstemp.h".
52537         Make the _LIBC code resemble glibc original more,
52538         e.g., use K&R style.
52539         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52540         (mkstemp): Remove, since mkstemp.h does this for us.
52541         * lib/stdlib--.h: Include mkstemp.h.
52542
52543         Import this patch from libc:
52544
52545         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52546
52547         * lib/tempname.c (__gen_tempname): Change attempts_min
52548         into a macro.  Use preprocessor to decide how to initialize
52549         attempts [Coverity CID 67].
52550
52551 2006-09-20  Bruno Haible  <bruno@clisp.org>
52552
52553         * lib/mkdtemp.c: Import from libc.
52554         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52555                 * sysdeps/posix/tempname.c (__gen_tempname): Change
52556                 attempts_min into a macro.  Use preprocessor to decide how to
52557                 initialize attempts [Coverity CID 67].
52558         2001-11-27  Paul Eggert  <eggert@twinsun.com>
52559                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
52560                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
52561
52562 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52563
52564         * gnulib-tool (func_exit): New function, to allow to pass the
52565         exit status portably through the trap.  Use everywhere.
52566         (--help, --version): Signal a write error.
52567         (trap): catch SIGPIPE, for write errors.
52568         Exit at the end of the trap, with the correct exit status.
52569
52570 2006-09-19  Karl Berry  <karl@gnu.org>
52571
52572         * doc/gnulib.texi: note about the license texinfo files.
52573
52574 2006-09-19  Eric Blake  <ebb9@byu.net>
52575
52576         * gnulib-tool: Avoid space-tab.
52577
52578 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
52581         that prevented coreutils 6.1 from building.  Problem reported
52582         by Petter Reinholdtsen.
52583
52584 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52585
52586         * gnulib-tool (avoidlist): Fix typo that broke options like
52587         --avoid=lock that are used by coreutils bootstrap.
52588
52589 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
52590
52591         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
52592         more systematically.
52593
52594 2006-09-18  Jim Meyering  <jim@meyering.net>
52595
52596         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
52597
52598 2006-09-18  Bruno Haible  <bruno@clisp.org>
52599
52600         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
52601
52602 2006-09-18  Bruno Haible  <bruno@clisp.org>
52603
52604         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
52605         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
52606         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
52607         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
52608         * m4/gettext.m4: Require autoconf >= 2.52.
52609         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
52610         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
52611         of gl_cv_header_inttypes_h.
52612
52613 2006-09-18  Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/javaversion.c: Include configmake.h.
52616
52617 2006-09-18  Bruno Haible  <bruno@clisp.org>
52618
52619         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
52620         avoid that the while loops be executed in a subshell.
52621
52622 2006-09-18  Bruno Haible  <bruno@clisp.org>
52623
52624         * MODULES.html.sh (func_module): Break long lines.
52625         Suggested by Bruce Korb <bkorb@gnu.org>.
52626
52627 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52628
52629         Speed up by a factor of 1.12.
52630         * gnulib-tool (nl): New variable.
52631         (func_import): Rewrite include directive extraction to only read each
52632         directive once.
52633
52634 2006-09-17  Bruno Haible  <bruno@clisp.org>
52635
52636         * modules/javaversion (Makefile.am): Remove DEFS setting.
52637         (Depends-on): Add configmake, for PKGDATADIR definition.
52638
52639 2006-09-17  Bruno Haible  <bruno@clisp.org>
52640
52641         * gnulib-tool (func_create_testdir): Rewrite all files at once.
52642
52643 2006-09-17  Bruno Haible  <bruno@clisp.org>
52644
52645         * gnulib-tool (func_append): New function, stolen from libtool.m4.
52646         (func_modules_transitive_closure, func_modules_add_dummy,
52647         func_modules_to_filelist, func_import, func_create_testdir,
52648         func_create_megatestdir, ...): Use it wherever possible.
52649         Suggested by Ralf Wildenhues.
52650
52651 2006-09-16  Karl Berry  <karl@gnu.org>
52652
52653         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
52654         to avoid sectioning errors.
52655         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
52656         [ifinfo]: blank line after @center-ed titles.
52657         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
52658         Spell FSF address consistently with others.
52659         (These changes approved by rms.)
52660
52661 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52662
52663         Speed up by a factor of 1.61.
52664         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
52665         already checked module names again.
52666
52667 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52668
52669         Speed up by a factor of 1.13.
52670         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
52671         for new_files, and the input to func_add_or_update.
52672
52673 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52674
52675         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
52676         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
52677
52678 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52679
52680         * modules/mkancesdirs (Depends-on): Add fcntl.
52681         * modules/savewd: New file.
52682         * MODULES.html.sh (File system functions): Add savewd.
52683
52684         * modules/configmake (Makefile.am): Add support for the
52685         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
52686
52687 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52688
52689         * m4/savewd.m4: New file.
52690
52691 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52692
52693         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
52694         (dirchownmod): New arg FD.  All callers changed.
52695         Use FD rather than opening the directory ourself, as opening is
52696         now the caller's responsibility.
52697         * lib/dirchownmod.h: Likewise.
52698         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
52699         hosts that require <sys/types.h> before <sys/stat.h>.  Include
52700         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
52701         (test_dir): Remove.
52702         (mkancesdirs): Return length of prefix of FILE that has already
52703         been made, or -2 if there is a child doing the work.  Redo
52704         algorithm so that it is O(N) rather than O(N**2).  Optimize away
52705         ".", and treat ".." specially since it might stray back into
52706         already-created areas.  Use a subprocess if necessary.  New arg
52707         WD; all users changed.  MAKE_DIR function should now return 1
52708         if it creates a directory that is not readable.  Return -2 if
52709         a child process is spun off.
52710         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
52711         Adjust signature to match code.
52712         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
52713         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
52714         all users changed.
52715         * lib/savewd.c, lib/savewd.h: New files.
52716
52717 2006-09-15  Jim Meyering  <jim@meyering.net>
52718
52719         * modules/rename-dest-slash: New module.
52720         * MODULES.html.sh (posix_compat): Add it here.
52721
52722         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
52723
52724 2006-09-15  Jim Meyering  <jim@meyering.net>
52725
52726         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
52727         file.
52728
52729         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
52730
52731 2006-09-15  Jim Meyering  <jim@meyering.net>
52732
52733         * lib/rename-dest-slash.c (has_trailing_slash): Use
52734         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
52735         (rpl_rename_dest_slash): Perform the cheaper trailing slash
52736         test before testing whether SRC is a directory.
52737         Suggestions from Bruno Haible.
52738
52739         Avoid a warning about an unused variable.
52740         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
52741         into the #ifdef block where it's used.
52742
52743         * lib/rename-dest-slash.c: New file.
52744
52745 2006-09-14  Bruno Haible  <bruno@clisp.org>
52746
52747         * lib/allocsa.c: Include <config.h> unconditionally.
52748         * lib/asnprintf.c: Likewise.
52749         * lib/asprintf.c: Likewise.
52750         * lib/c-strcasecmp.c: Likewise.
52751         * lib/c-strcasestr.c: Likewise.
52752         * lib/c-strncasecmp.c: Likewise.
52753         * lib/c-strstr.c: Likewise.
52754         * lib/classpath.c: Likewise.
52755         * lib/clean-temp.c: Likewise.
52756         * lib/concatpath.c: Likewise.
52757         * lib/copy-file.c: Likewise.
52758         * lib/csharpcomp.c: Likewise.
52759         * lib/csharpexec.c: Likewise.
52760         * lib/execute.c: Likewise.
52761         * lib/fatal-signal.c: Likewise.
52762         * lib/findprog.c: Likewise.
52763         * lib/fwriteerror.c: Likewise.
52764         * lib/gl_array_list.c: Likewise.
52765         * lib/gl_array_oset.c: Likewise.
52766         * lib/gl_avltree_list.c: Likewise.
52767         * lib/gl_avltree_oset.c: Likewise.
52768         * lib/gl_avltreehash_list.c: Likewise.
52769         * lib/gl_carray_list.c: Likewise.
52770         * lib/gl_linked_list.c: Likewise.
52771         * lib/gl_linkedhash_list.c: Likewise.
52772         * lib/gl_list.c: Likewise.
52773         * lib/gl_oset.c: Likewise.
52774         * lib/gl_rbtree_list.c: Likewise.
52775         * lib/gl_rbtree_oset.c: Likewise.
52776         * lib/gl_rbtreehash_list.c: Likewise.
52777         * lib/imaxabs.c: Likewise.
52778         * lib/imaxdiv.c: Likewise.
52779         * lib/javacomp.c: Likewise.
52780         * lib/javaexec.c: Likewise.
52781         * lib/javaversion.c: Likewise.
52782         * lib/linebreak.c: Likewise.
52783         * lib/localcharset.c: Likewise.
52784         * lib/lock.c: Likewise.
52785         * lib/mbchar.c: Likewise.
52786         * lib/mbswidth.c: Likewise.
52787         * lib/mkdtemp.c: Likewise.
52788         * lib/pipe.c: Likewise.
52789         * lib/printf-args.c: Likewise.
52790         * lib/printf-parse.c: Likewise.
52791         * lib/progname.c: Likewise.
52792         * lib/progreloc.c: Likewise.
52793         * lib/readlink.c: Likewise.
52794         * lib/sh-quote.c: Likewise.
52795         * lib/stpcpy.c: Likewise.
52796         * lib/stpncpy.c: Likewise.
52797         * lib/strcasecmp.c: Likewise.
52798         * lib/strcasestr.c: Likewise.
52799         * lib/strcspn.c: Likewise.
52800         * lib/striconv.c: Likewise.
52801         * lib/strncasecmp.c: Likewise.
52802         * lib/strnlen1.c: Likewise.
52803         * lib/strstr.c: Likewise.
52804         * lib/strtok_r.c: Likewise.
52805         * lib/tls.c: Likewise.
52806         * lib/tmpdir.c: Likewise.
52807         * lib/unicodeio.c: Likewise.
52808         * lib/unsetenv.c: Likewise.
52809         * lib/vasnprintf.c: Likewise.
52810         * lib/vasprintf.c: Likewise.
52811         * lib/wait-process.c: Likewise.
52812         * lib/xallocsa.c: Likewise.
52813         * lib/xsetenv.c: Likewise.
52814         * lib/xstriconv.c: Likewise.
52815
52816 2006-09-13  Simon Josefsson  <jas@extundo.com>
52817
52818         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
52819         that internally, suggested by Ralf Wildenhues
52820         <Ralf.Wildenhues@gmx.de>.
52821
52822 2006-09-13  Simon Josefsson  <jas@extundo.com>
52823
52824         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
52825         @LIBOBJS@.
52826         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52827
52828 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52829
52830         * lib/_fpending.c: Include <config.h> unconditionally, since we no
52831         longer worry about uses that don't define HAVE_CONFIG_H.
52832         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
52833         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
52834         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
52835         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
52836         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
52837         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
52838         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
52839         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
52840         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
52841         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
52842         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
52843         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
52844         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
52845         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
52846         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
52847         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
52848         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
52849         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
52850         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
52851         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
52852         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
52853         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
52854         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
52855         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
52856         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
52857         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
52858         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
52859         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
52860         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
52861         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
52862         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
52863         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
52864         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
52865         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
52866         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
52867         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
52868         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
52869         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
52870         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
52871         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
52872         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
52873         Likewise.
52874
52875 2006-09-13  Eric Blake  <ebb9@byu.net>
52876
52877         * lib/getopt.c: Fix typo in last commit.
52878
52879 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52880
52881         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
52882         dgettext.
52883
52884 2006-09-12  Jim Meyering  <jim@meyering.net>
52885
52886         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
52887         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
52888         Reported by Nelson H. F. Beebe.
52889
52890 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52891
52892         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
52893         program_invocation_name and program_invocation_short_name are
52894         initialized.
52895         * lib/argp-namefrob.h: Move declarations of program_invocation_name
52896         and program_invocation_short_name to argp.h, so they are visible
52897         to user programs.
52898         * lib/argp.h: Likewise
52899
52900 2006-09-10  Bruno Haible  <bruno@clisp.org>
52901
52902         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52903         m4/inttypes_h.m4, m4/uintmax_t.m4.
52904
52905 2006-09-10  Bruno Haible  <bruno@clisp.org>
52906
52907         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
52908         gl_AC_TYPE_UINTMAX_T.
52909
52910 2006-09-10  Bruno Haible  <bruno@clisp.org>
52911
52912         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
52913
52914 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52915
52916         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
52917         convention.  Text proposed by Bruno Haible.
52918         (struct argp_option): Document the use of N_() wrappers.
52919
52920         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
52921         '\v', and translate the two parts separately, instead of feeding
52922         the whole string to gettext.  This allows to exclude
52923         '\v' from the strings visible to the translator by writing doc
52924         strings as N_("..") "\v" N_("..").
52925
52926 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
52927
52928         * config/srclist.txt: Undo latest change; the bug was fixed.
52929
52930 2006-09-09  Bruno Haible  <bruno@clisp.org>
52931
52932         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
52933         assignments if building a library without libtool.
52934         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
52935         in func_emit_lib_Makefile_am.
52936         (func_import): When building a static library libfoo.a, arrange to
52937         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
52938         (func_create_testdir): Likewise.
52939         * modules/gc (configure.ac, Makefile.am): If building statically,
52940         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
52941         * modules/iconvme (configure.ac, Makefile.am): Likewise.
52942         * modules/striconv (configure.ac, Makefile.am): Likewise.
52943         Based on a suggestion by Ralf Wildenhues.
52944
52945 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52946
52947         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52948         Check for unistd.h too, since Autoconf doesn't assume POSIX.
52949         Also:
52950
52951         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52952         Add year_2050_test to catch glibc bug 2821
52953         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52954
52955         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52956         Prefer #ifdef to #if.
52957
52958         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
52959         Return from 'main' instead of calling 'exit'.
52960
52961 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52962
52963         * lib/mktime.c (guess_time_tm): Fix bug where mktime
52964         returned the maximum time_t value rather than (time_t) -1.
52965         Problem originally reported by William Bardwell
52966         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52967
52968         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52969         Moved to here ...
52970         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52971         ... from here.
52972
52973 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52974
52975         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
52976         2821 is fixed.
52977
52978 2006-09-08  Jim Meyering  <jim@meyering.net>
52979
52980         Don't make generated files read-only.  That would bother too many
52981         people.  However, do retain the ability to work when targets are
52982         read-only: remove the destination and temporary files before writing
52983         them (when generated via sed or echo), or by using the -f option for
52984         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
52985         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52986         * modules/byteswap, modules/configmake, modules/fcntl:
52987         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52988         * modules/localcharset, modules/netinet_in, modules/poll:
52989         * modules/stdbool, modules/stdint, modules/sys_select:
52990         * modules/sys_socket, modules/sys_stat, modules/sysexits:
52991
52992 2006-09-08  Jim Meyering  <jim@meyering.net>
52993
52994         Avoid new build failure on FreeBSD 6.0.
52995         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
52996         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
52997         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
52998
52999 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53000
53001         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53002
53003 2006-09-07  Jim Meyering  <jim@meyering.net>
53004
53005         Fix global typo in last change: use chmod u-w, not chmod u-x.
53006         Spotted by Paul Eggert and Bruce Korb.
53007         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53008         * modules/byteswap, modules/configmake, modules/fcntl:
53009         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53010         * modules/localcharset, modules/netinet_in, modules/poll:
53011         * modules/stdbool, modules/stdint, modules/sys_select:
53012         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53013
53014 2006-09-06  Jim Meyering  <jim@meyering.net>
53015
53016         Make generated files be read-only.
53017         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53018         Ensure that each generated file is now read-only.
53019         * modules/argz: Likewise.
53020         * modules/arpa_inet: Likewise.
53021         * modules/byteswap: Likewise.
53022         * modules/configmake: Likewise.
53023         * modules/fcntl: Likewise.
53024         * modules/fnmatch: Likewise.
53025         * modules/getopt: Likewise.
53026         * modules/glob: Likewise.
53027         * modules/inttypes: Likewise.
53028         * modules/netinet_in: Likewise.
53029         * modules/poll: Likewise.
53030         * modules/stdbool: Likewise.
53031         * modules/stdint: Likewise.
53032         * modules/sys_select: Likewise.
53033         * modules/sys_socket: Likewise.
53034         * modules/sys_stat: Likewise.
53035         * modules/sysexits: Likewise.
53036         * modules/localcharset: Same as above, but continue using temporary
53037         file named "t-$@" (why different?) rather than the "$@-t" used
53038         everywhere else.
53039
53040         * modules/sysexits (Makefile.am): Replace literal occurrences
53041         of "sysexit.h" more readable, and more consistent, "$@".
53042
53043 2006-09-06  Bruno Haible  <bruno@clisp.org>
53044
53045         * modules/striconv: New file.
53046         * modules/xstriconv: New file.
53047         * MODULES.html.sh (Internationalization functions): Add striconv,
53048         xstriconv.
53049
53050 2006-09-06  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53053         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53054         not using libtool correctly.
53055
53056 2006-09-06  Bruno Haible  <bruno@clisp.org>
53057
53058         * lib/striconv.h: New file.
53059         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53060         iconvstring.c.
53061         * lib/xstriconv.h: New file.
53062         * lib/xstriconv.c: New file.
53063
53064 2006-09-06  Bruno Haible  <bruno@clisp.org>
53065
53066         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53067         lib_..._LDFLAGS.
53068
53069 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53070
53071         * lib/argz_.h: Sync from Libtool.
53072
53073         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53074                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53075
53076         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53077
53078 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53079
53080         * modules/trim: New file.
53081
53082 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53083
53084         * lib/trim.h: New file.
53085         * lib/trim.c: New file.
53086
53087 2006-09-05  Bruno Haible  <bruno@clisp.org>
53088
53089         * MODULES.html.sh (String handling): Add trim.
53090
53091 2006-09-04  Karl Berry  <karl@gnu.org>
53092
53093         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53094         until next release.
53095
53096 2006-09-03  Bruno Haible  <bruno@clisp.org>
53097
53098         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53099         correctly.
53100
53101 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53102
53103         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53104         not gl_GETLOADAVG.  Omit unneeded semicolons.
53105         Problems reported by Ralf Wildenhues in
53106         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53107         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53108         at the end, which is the usual gnulib style.
53109
53110         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53111         of doing all the work ourselves.
53112         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53113         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53114
53115 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53116
53117         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53118         Problem reported by Ralf Wildenhues in
53119         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53120
53121         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53122         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53123
53124 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53125
53126         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53127         yesterday's patch by changing test -n to test -z.
53128
53129 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53130
53131         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53132         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53133         the former is now obsolescent.
53134
53135         * modules/chdir-long (Depends-on): Add fcntl.
53136
53137 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53138
53139         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53140         obsolescent, and programs should use gnulib instead.
53141         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53142         but with prefixes changed.
53143
53144 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53145
53146         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53147         or stdbool.h, because they might not exist while configuring.
53148
53149         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53150         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53151         does that for us.
53152         (O_DIRECTORY): Remove.
53153
53154 2006-08-31  Eric Blake  <ebb9@byu.net>
53155
53156         * gnulib-tool: Don't let emacs change spaces to TAB.
53157
53158 2006-08-31  Bruno Haible  <bruno@clisp.org>
53159
53160         * gnulib-tool: When calling func_import more than once, do it in a
53161         subshell.
53162         Reported by Eric Blake <ebb9@byu.net>.
53163
53164 2006-08-31  Bruno Haible  <bruno@clisp.org>
53165
53166         * gnulib-tool (nl): Remove variable.
53167         (sed_transform_lib_file): Use more robust test for config-h module.
53168         (func_import): Fix typo in 2006-08-25 patch.
53169
53170 2006-08-31  Bruno Haible  <bruno@clisp.org>
53171
53172         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53173         specified, augment Makefile.am variables instead of assigning them.
53174
53175 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53176
53177         Work around a bug in both the Linux and SunOS 64-bit kernels:
53178         nanosleep mishandles sleeps for longer than 2**31 seconds.
53179         Problem reported by Frank v Waveren in
53180         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53182         Check for nanosleep bug.
53183         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53184
53185 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53186
53187         Work around a bug in both the Linux and SunOS 64-bit kernels:
53188         nanosleep mishandles sleeps for longer than 2**31 seconds.
53189         Problem reported by Frank v Waveren in
53190         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53191         * lib/nanosleep.c (BILLION): New constant.
53192         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53193         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53194         implementation.
53195
53196 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53197
53198         * modules/nanosleep (Depends-on): Add gettime.
53199
53200 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53201         and Simon Josefsson  <jas@extundo.com>
53202         and Oskar Liljeblad  <oskar@osk.mine.nu>
53203
53204         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53205         * gnulib-tool (func_import): New license type 'unmodifiable license
53206         text'.
53207         * modules/fdl: Use it.  Longer description.
53208         * module/gpl, module/lgpl: New files.
53209
53210 2006-08-30  Jim Meyering  <jim@meyering.net>
53211
53212         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53213         shadowing the parameter.
53214
53215 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53216
53217         Sync from Libtool:
53218
53219         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53220
53221         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53222         sharing with gnulib.  Report by Eric Blake.
53223
53224 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53225
53226         * modules/isapipe: New file.
53227         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53228
53229 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53230
53231         * modules/configmake (Makefile.am): Add a comment, and omit
53232         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53233         by Bruno Haible.
53234
53235 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53236
53237         * m4/isapipe.m4: New file.
53238
53239 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53240
53241         * lib/isapipe.c, lib/isapipe.h: New files.
53242
53243 2006-08-29  Jim Meyering  <jim@meyering.net>
53244
53245         * modules/configmake (Makefile.am): Make configmake.h depend on
53246         Makefile.  Otherwise, a stale configmake.h could hang around.
53247
53248 2006-08-29  Eric Blake  <ebb9@byu.net>
53249
53250         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53251         resolution of upstream bug 3044.
53252
53253 2006-08-29  Bruno Haible  <bruno@clisp.org>
53254
53255         * modules/localcharset (Depends-on): Add configmake.
53256         (Makefile.am): Remove setting of LIBDIR through DEFS.
53257
53258 2006-08-29  Bruno Haible  <bruno@clisp.org>
53259
53260         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53261         defined.
53262
53263 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53264
53265         * modules/fcntl: New file.
53266         * modules/chdir-safer (Depends-on): Add fcntl.
53267         * modules/fts: Likewise.
53268         * modules/mkdir-p: Likewise.
53269
53270         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53271         This undoes the most recent change, since we're now addressing the
53272         problem in a different way.
53273
53274         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53275         into output, since the output might be called Makefile.am even
53276         if $makefile_name is something different.
53277         (func_import): Use $makefile_am rather than
53278         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53279         empty.
53280
53281         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53282
53283 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53286         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53287         recent change to stdint.m4, since we're now addressing the problem in a
53288         different way.
53289
53290 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53291
53292         * m4/fcntl_h.m4: New file.
53293
53294 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53295
53296         * lib/fcntl_.h: New file.
53297         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53298         the fcntl module.
53299         * lib/dirchownmod.c: Likewise.
53300         * lib/fts.c: Likewise.
53301
53302         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53303         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53304         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53305         just before including <inttypes.h>, to avoid circular inclusion.
53306
53307 2006-08-28  Jim Meyering  <jim@meyering.net>
53308
53309         * doc/visibility.texi: Actually read and correct the grammar of the
53310         sentence affected by yesterday's change.
53311
53312 2006-08-28  Eric Blake  <ebb9@byu.net>
53313
53314         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53315         needs wrapper.
53316
53317 2006-08-28  Eric Blake  <ebb9@byu.net>
53318
53319         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53320
53321 2006-08-28  Eric Blake  <ebb9@byu.net>
53322
53323         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53324
53325 2006-08-28  Bruno Haible  <bruno@clisp.org>
53326
53327         * modules/c-strstr: New file, from GNU gettext.
53328         * MODULES.html.sh (String handling): Add c-strstr.
53329
53330 2006-08-28  Bruno Haible  <bruno@clisp.org>
53331
53332         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53333         macros.
53334         Reported by Eric Blake.
53335
53336 2006-08-28  Bruno Haible  <bruno@clisp.org>
53337
53338         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53339         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53340         * lib/vasprintf.c: Include errno.h, limits.h.
53341         (EOVERFLOW): New fallback definition.
53342         (vasprintf): Test here whether the string length is > INT_MAX.
53343         * lib/vsnprintf.c: Include errno.h, limits.h.
53344         (EOVERFLOW): New fallback definition.
53345         (vsnprintf): Fix bug when generated string was too long for the buffer.
53346         Test here whether the string length is > INT_MAX.
53347
53348 2006-08-28  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/inttypes_.h (SCNX*): Remove definitions.
53351         Reported by Eric Blake.
53352
53353 2006-08-28  Bruno Haible  <bruno@clisp.org>
53354
53355         * lib/c-strstr.h: New file, from GNU gettext.
53356         * lib/c-strstr.c: New file, from GNU gettext.
53357
53358 2006-08-28  Bruno Haible  <bruno@clisp.org>
53359
53360         * gnulib-tool: Reorder some statements.
53361
53362 2006-08-28  Bruno Haible  <bruno@clisp.org>
53363
53364         * gnulib-tool: New option --makefile-name.
53365         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53366         $makefile_name.
53367         (func_import): Write $makefile_name to the cache file, and read it from
53368         there unless explicitly specified. Use $makefile_name as file name
53369         instead of Makefile.am. Adjust the recommendations accordingly.
53370
53371 2006-08-28  Bruno Haible  <bruno@clisp.org>
53372
53373         * gnulib-tool (func_verify_module): Check against misapplying patch.
53374
53375 2006-08-28  Bruno Haible  <bruno@clisp.org>
53376
53377         * gnulib-tool (func_relativize, func_relconcat): New functions.
53378         Give an error if --local-dir is given with --update.
53379         Remove trailing slashes from $local_gnulib_dir.
53380         (func_import): Store the relativized $local_gnulib_dir in
53381         gnulib-cache.m4, and read it from there if not specified explicitly.
53382
53383 2006-08-28  Bruno Haible  <bruno@clisp.org>
53384
53385         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53386         is the current directory. Respect also $local_gnulib_dir.
53387
53388 2006-08-28  Bruno Haible  <bruno@clisp.org>
53389             Simon Josefsson  <jas@extundo.com>
53390
53391         BeOS portability.
53392         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53393
53394 2006-08-27  Jim Meyering  <jim@meyering.net>
53395
53396         * doc/visibility.texi: Remove duplicate word: "pointer".
53397
53398 2006-08-26  Bruno Haible  <bruno@clisp.org>
53399
53400         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53401         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53402         (Makefile.am): Create inttypes.h from inttypes_.h.
53403         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53404
53405         * modules/imaxabs: New file.
53406
53407         * modules/imaxdiv: New file.
53408
53409 2006-08-26  Bruno Haible  <bruno@clisp.org>
53410
53411         * m4/inttypes.m4: New file.
53412         * m4/_inttypes_h.m4: Remove file.
53413         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53414         PRI_MACROS_BROKEN.
53415         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53416
53417         * m4/imaxabs.m4: New file.
53418
53419         * m4/imaxdiv.m4: New file.
53420
53421 2006-08-26  Bruno Haible  <bruno@clisp.org>
53422
53423         * lib/inttypes_.h: New file.
53424         * lib/inttypes.h: Remove file.
53425         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53426
53427         * lib/imaxabs.c: New file.
53428
53429         * lib/imaxdiv.c: New file.
53430
53431 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53432
53433         New config-h module, so that "make" output needn't be cluttered
53434         by -DHAVE_CONFIG_H.
53435         * MODULES.html.sh (Support for building libraries and executables):
53436         Add config-h.
53437         * modules/config-h: New file.
53438         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53439         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53440         the config-h module is used.
53441
53442         New configmake module, so that "make" output needn't be cluttered
53443         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53444         * MODULES.html.sh (Support for building libraries and executables):
53445         Add configmake.
53446         * modules/configmake: New file.
53447
53448 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53449
53450         * m4/config-h.m4: New file.
53451
53452 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53453
53454         * config/srclist.txt: Add elisp-comp.
53455
53456 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53457
53458         * MODULES.html.sh (Support for building libraries and executables):
53459         Add elisp-comp.
53460         * build-aux/elisp-comp: New file.
53461         * modules/elisp-comp: New file.
53462
53463 2006-08-24  Bruno Haible  <bruno@clisp.org>
53464
53465         * gnulib-tool (func_create_testdir): Use non-default values of
53466         sourcebase and m4base.
53467
53468 2006-08-24  Bruno Haible  <bruno@clisp.org>
53469
53470         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53471         HTML structure.
53472
53473 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53474
53475         * modules/openat (Depends-on): Add lchown.
53476
53477 2006-08-23  Bruno Haible  <bruno@clisp.org>
53478
53479         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
53480         of gl_LOCK_EARLY instead of gl_LOCK.
53481
53482 2006-08-23  Bruno Haible  <bruno@clisp.org>
53483
53484         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
53485         on OSF/1 to no.
53486         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
53487
53488 2006-08-23  Bruno Haible  <bruno@clisp.org>
53489
53490         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
53491         as unusable.
53492
53493         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
53494         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
53495         (gl_LOCK): New macro.
53496
53497 2006-08-22  Simon Josefsson  <jas@extundo.com>
53498
53499         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
53500         to md5 module.
53501
53502 2006-08-22  Simon Josefsson  <jas@extundo.com>
53503
53504         * MODULES.html.sh: Add "Support for maintaining and release
53505         projects".
53506
53507         * build-aux/gnupload: New file, from coreutils.
53508
53509 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53510
53511         Avoid the need for AC_LIBSOURCES in m4 macros.
53512         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53513         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53514         * modules/check-version (EXTRA_DIST): Add check-version.h.
53515         * modules/crc (EXTRA_DIST): Add crc.h.
53516         * modules/des (EXTRA_DIST): Add des.h.
53517         * modules/gc (EXTRA_DIST): Add gc.h.
53518         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53519         * modules/getline (EXTRA_DIST): Add getline.h.
53520         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53521         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53522         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53523         * modules/md2 (EXTRA_DIST): Add md2.h.
53524         * modules/md4 (EXTRA_DIST): Add md4.h.
53525         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53526         * modules/read-file (EXTRA_DIST): Add read-file.h.
53527         * modules/readline (EXTRA_DIST): Add readline.h.
53528         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53529         rijndael-api-fst.h.
53530
53531 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53532
53533         * m4/rijndael.m4 (gl_ARCFOUR):
53534         * m4/arctwo.m4 (gl_ARCTWO):
53535         * m4/check-version.m4 (gl_CHECK_VERSION):
53536         * m4/crc.m4 (gl_CRC):
53537         * m4/des.m4 (gl_DES):
53538         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53539         * m4/gc.m4 (gl_GC):
53540         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53541         * m4/getline.m4 (gl_FUNC_GETLINE):
53542         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53543         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53544         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53545         * m4/md2.m4 (gl_MD2):
53546         * m4/md4.m4 (gl_MD4):
53547         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53548         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53549         * m4/readline.m4 (gl_FUNC_READLINE):
53550         * m4/rijndael.m4 (gl_RIJNDAEL):
53551         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53552         to get the necessary .h files and whatnot.
53553
53554 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53555
53556         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
53557         gnulib rather than the other way around.
53558         * config/srclistvars.sh (COREUTILS): Remove.
53559
53560 2006-08-22  Jim Meyering  <jim@meyering.net>
53561
53562         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
53563
53564         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
53565
53566 2006-08-22  Eric Blake  <ebb9@byu.net>
53567
53568         * modules/regexprops-generic: New file.
53569         * MODULES.html.sh (Support for building documentation): List it.
53570
53571 2006-08-22  Eric Blake  <ebb9@byu.net>
53572
53573         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
53574         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53575         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
53576         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
53577
53578 2006-08-22  Bruno Haible  <bruno@clisp.org>
53579
53580         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
53581         and lib_LTLIBRARIES like the other lib_* variables.
53582
53583 2006-08-22  Bruno Haible  <bruno@clisp.org>
53584
53585         * build-aux/x-to-1.in: New file, from GNU gettext.
53586
53587 2006-08-22  Bruno Haible  <bruno@clisp.org>
53588
53589         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
53590         <utmpx.h> exists.
53591
53592 2006-08-22  Bruno Haible  <bruno@clisp.org>
53593
53594         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
53595         <utmpx.h> exists.
53596
53597 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53598
53599         BeOS portability.
53600         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
53601         exist.
53602         Problem reported by Bruno Haible.
53603
53604 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53605
53606         Avoid the need for AC_LIBSOURCES in m4 macros.
53607         * modules/acl (EXTRA_DIST): Add acl.h.
53608         * modules/argmatch (Files): Add m4/argmatch.m4.
53609         (configure.ac): Add gl_ARGMATCH.
53610         (EXTRA_DIST): Renamed from lib_SOURCES, for
53611         consistency with the other modules.  Remove argmatch.c.
53612         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
53613         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
53614         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
53615         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
53616         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
53617         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
53618         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
53619         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
53620         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
53621         * modules/closeout (EXTRA_DIST): Add closeout.h.
53622         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
53623         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
53624         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
53625         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
53626         dirname.h; remove basename.c and stripslash.c.
53627         * modules/exclude (EXTRA_DIST): Add exclude.h.
53628         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
53629         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
53630         * modules/file-type (EXTRA_DIST): Add file-type.h.
53631         * modules/filemode (EXTRA_DIST): Add filemode.h.
53632         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
53633         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53634         * modules/fpending (EXTRA_DIST): Add __fpending.h.
53635         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
53636         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
53637         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
53638         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
53639         * modules/getdate (EXTRA_DIST): Add getdate.c.
53640         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
53641         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
53642         * modules/getpass (EXTRA_DIST): Add getpass.h.
53643         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
53644         * modules/group-member (EXTRA_DIST): Add group-member.h.
53645         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
53646         * modules/hash (EXTRA_DIST): Add hash.h.
53647         * modules/human (EXTRA_DIST): Add human.h.
53648         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
53649         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
53650         * modules/lchown (EXTRA_DIST): Add lchown.h.
53651         * modules/long-options (EXTRA_DIST): Add long-options.h.
53652         * modules/lstat (EXTRA_DIST): Add lstat.h.
53653         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
53654         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
53655         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
53656         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
53657         * modules/memxor (EXTRA_DIST): Add memxor.h.
53658         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
53659         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
53660         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
53661         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
53662         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
53663         * modules/physmem (EXTRA_DIST): Add physmem.h.
53664         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
53665         * modules/posixver (EXTRA_DIST): Add posixver.h.
53666         * modules/quote (EXTRA_DIST): Add quote.h.
53667         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
53668         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
53669         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
53670         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
53671         regex_internal.h regexec.c.
53672         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
53673         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
53674         * modules/same (EXTRA_DIST): Add same.h.
53675         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
53676         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
53677         * modules/savedir (EXTRA_DIST): Add savedir.h.
53678         * modules/sha1 (EXTRA_DIST): Add sha1.h.
53679         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
53680         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
53681         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
53682         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
53683         * modules/strdup (EXTRA_DIST): Add strdup.h.
53684         * modules/strftime (EXTRA_DIST): Add strftime.h.
53685         * modules/strndup (EXTRA_DIST): Add strndup.h.
53686         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
53687         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
53688         * modules/time_r (EXTRA_DIST): Add time_r.h.
53689         * modules/timespec (EXTRA_DIST): Add timespec.h.
53690         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53691         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
53692         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
53693         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
53694         * modules/userspec (EXTRA_DIST): Add userspec.h.
53695         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
53696         * modules/utimens (EXTRA_DIST): Add utimens.h.
53697         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
53698         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
53699         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
53700         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
53701         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
53702         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
53703         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
53704         * modules/yesno (EXTRA_DIST): Add yesno.h.
53705
53706 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53707
53708         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
53709
53710         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
53711         * m4/dev-ino.m4, same-inode.m4: Remove.
53712
53713         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
53714         * m4/acl.m4 (AC_FUNC_ACL):
53715         * m4/backupfile.m4 (gl_BACKUPFILE):
53716         * m4/c-strtod.m4 (gl_C99_STRTOLD):
53717         * m4/canon-host.m4 (gl_CANON_HOST):
53718         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53719         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
53720         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
53721         * m4/cloexec.m4 (gl_CLOEXEC):
53722         * m4/close-stream.m4 (gl_CLOSE_STREAM):
53723         * m4/closeout.m4 (gl_CLOSEOUT):
53724         * m4/dirfd.m4 (gl_FUNC_DIRFD):
53725         * m4/dirname.m4 (gl_DIRNAME):
53726         * m4/exclude.m4 (gl_EXCLUDE):
53727         * m4/exitfail.m4 (gl_EXITFAIL):
53728         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
53729         * m4/file-type.m4 (gl_FILE_TYPE):
53730         * m4/filemode.m4 (gl_FILEMODE):
53731         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
53732         * m4/fpending.m4 (gl_FUNC_FPENDING):
53733         * m4/fprintftime.m4 (gl_FPRINTFTIME):
53734         * m4/fts.m4 (gl_FUNC_FTS):
53735         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
53736         * m4/getdate.m4 (gl_GETDATE):
53737         * m4/gethrxtime.m4 (gl_GETHRXTIME):
53738         * m4/getpagesize.m4 (gl_GETPAGESIZE):
53739         * m4/getpass.m4 (gl_FUNC_GETPASS):
53740         * m4/gettime.m4 (gl_GETTIME):
53741         * m4/getugroups.m4 (gl_GETUGROUPS):
53742         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
53743         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
53744         * m4/hard-locale.m4 (gl_HARD_LOCALE):
53745         * m4/hash.m4 (gl_HASH):
53746         * m4/idcache.m4 (gl_IDCACHE):
53747         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
53748         * m4/lchown.m4 (gl_FUNC_LCHOWN):
53749         * m4/long-options.m4 (gl_LONG_OPTIONS):
53750         * m4/lstat.m4 (gl_FUNC_LSTAT):
53751         * m4/md5.m4 (gl_MD5):
53752         * m4/memcasecmp.m4 (gl_MEMCASECMP):
53753         * m4/memcoll.m4 (gl_MEMCOLL):
53754         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
53755         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
53756         * m4/memxor.m4 (gl_MEMXOR):
53757         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
53758         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
53759         * m4/modechange.m4 (gl_MODECHANGE):
53760         * m4/mountlist.m4 (gl_MOUNTLIST):
53761         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53762         * m4/openat.m4 (gl_FUNC_OPENAT):
53763         * m4/pathmax.m4 (gl_PATHMAX):
53764         * m4/physmem.m4 (gl_PHYSMEM):
53765         * m4/posixtm.m4 (gl_POSIXTM):
53766         * m4/posixver.m4 (gl_POSIXVER):
53767         * m4/quote.m4 (gl_QUOTE):
53768         * m4/quotearg.m4 (gl_QUOTEARG):
53769         * m4/readtokens.m4 (gl_READTOKENS):
53770         * m4/readutmp.m4 (gl_READUTMP):
53771         * m4/regex.m4 (gl_REGEX):
53772         * m4/safe-read.m4 (gl_SAFE_READ):
53773         * m4/safe-write.m4 (gl_SAFE_WRITE):
53774         * m4/same.m4 (gl_SAME):
53775         * m4/save-cwd.m4 (gl_SAVE_CWD):
53776         * m4/savedir.m4 (gl_SAVEDIR):
53777         * m4/settime.m4 (gl_SETTIME):
53778         * m4/sha1.m4 (gl_SHA1):
53779         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
53780         * m4/stat-macros.m4 (gl_STAT_MACROS):
53781         * m4/stat-time.m4 (gl_STAT_TIME):
53782         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
53783         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
53784         * m4/strdup.m4 (gl_FUNC_STRDUP):
53785         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
53786         * m4/strndup.m4 (gl_FUNC_STRNDUP):
53787         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
53788         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
53789         * m4/time_r.m4 (gl_TIME_R):
53790         * m4/timespec.m4 (gl_TIMESPEC):
53791         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
53792         * m4/unlinkdir.m4 (gl_UNLINKDIR):
53793         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
53794         * m4/userspec.m4 (gl_USERSPEC):
53795         * m4/utimecmp.m4 (gl_UTIMECMP):
53796         * m4/utimens.m4 (gl_UTIMENS):
53797         * m4/xalloc.m4 (gl_XALLOC):
53798         * m4/xgetcwd.m4 (gl_XGETCWD):
53799         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
53800         * m4/xreadlink.m4 (gl_XREADLINK):
53801         * m4/xstrtod.m4 (gl_XSTRTOD):
53802         * m4/yesno.m4 (gl_YESNO):
53803         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53804         to get the necessary .h files and whatnot.
53805
53806 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
53807             Bruno Haible  <bruno@clisp.org>
53808
53809         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
53810         /bin/sh understanding of '!' conditional negation.
53811
53812 2006-08-21  Jim Meyering  <jim@meyering.net>
53813
53814         * modules/openat (Depends-on): Really alphabetize.
53815
53816         * modules/acl (Depends-on): Add error and quote.
53817
53818         * check-module (find_included_lib_files): Add at-func.c to the
53819         ok-to-include-more-than-once white list.
53820
53821         * modules/openat (Depends-on): Add lstat.  Alphabetize.
53822
53823 2006-08-21  Bruno Haible  <bruno@clisp.org>
53824
53825         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53826         Emit a pkgdata_DATA variable only if some snippets add contents to it.
53827         Reported by Martin Lambers <marlam@marlam.de>.
53828
53829 2006-08-21  Bruno Haible  <bruno@clisp.org>
53830
53831         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
53832         specify an installation location, don't emit a noinst_LIBRARIES or
53833         noinst_LTLIBRARIES assignment.
53834
53835 2006-08-21  Bruno Haible  <bruno@clisp.org>
53836
53837         BeOS portability.
53838         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
53839         BeOS has mbrtowc() but no <wctype.h>.
53840
53841 2006-08-21  Bruno Haible  <bruno@clisp.org>
53842
53843         BeOS portability.
53844         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
53845         exist.
53846
53847 2006-08-21  Bruno Haible  <bruno@clisp.org>
53848
53849         BeOS portability.
53850         * lib/mbchar.h: Include <wctype.h> only if it exists.
53851
53852 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53853
53854         Remove files that are no longer needed by their respective modules.
53855         * m4/obstack.m4: Remove.
53856         * m4/strerror_r.m4: Remove.
53857         * m4/uint32_t.m4: Remove.
53858         * m4/uintptr_t.m4: Remove.
53859         * m4/ullong_max.m4: Remove.
53860         * m4/xstrtoimax.m4: Remove.
53861         * m4/xstrtoumax.m4: Remove.
53862
53863         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
53864         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
53865         dependencies now capture this.
53866
53867         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
53868         Do not use AC_LIBSOURCES, since gnulib modules now do this.
53869         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
53870         * m4/human.m4 (gl_HUMAN): Likewise.
53871         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
53872         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
53873
53874         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
53875
53876         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
53877         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
53878         stdint.
53879         * m4/human.m4 (gl_HUMAN): Likewise.
53880         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
53881         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
53882         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53883         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53884         * m4/xstrtol (gl_XSTRTOL): Likewise.
53885
53886         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
53887         AC_TYPE_LONG_LONG_INT.
53888         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53889         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
53890         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
53891         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53892
53893         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
53894         on stdbool.
53895
53896         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
53897         (gl_PREREQ_XSTRTOUL): Remove.
53898
53899         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
53900
53901         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
53902         mode.
53903
53904 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53905
53906         Add and change modules to make it easier for coreutils to use
53907         gnulib-tool.
53908         * modules/backupfile (Files): Remove m4/d-ino.m4.
53909         (Depends-on): Add d-ino.
53910         * modules/cycle-check (Depends-on): Add stdint.
53911         (lib_SOURCES): Add cycle-check.h.
53912         * modules/d-ino: New module.
53913         * modules/d-type: New module.
53914         * modules/error (Files): Remove m4/strerror_r.m4.
53915         * modules/filemode (Files): Add m4/st_dm_mode.m4.
53916         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53917         m4/inttypes_h.m4, m4/uintmax_t.m4.
53918         (Depends-on): Add stdint.
53919         (lib_SOURCES): Add fsusage.h.
53920         * modules/getcwd (Files): Remove d-ino.m4.
53921         (Depends-on): Add d-ino.
53922         * modules/getndelim2 (Depends-on): Add stdint.
53923         * modules/glob (Files): Remove m4/d-type.m4.
53924         (Depends-on): Add d-type.
53925         * modules/host-os: New module.
53926         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
53927         m4/inttypes_h.m4, m4/uintmax_t.m4.
53928         * Depends-on: Add stdint.
53929         (lib_SOURCES): Add human.h.
53930         * modules/inttostr (Files): Remove m4/intmax_t.m4,
53931         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
53932         m4/uintmax_t.m4, m4/ulonglong.m4.
53933         (Depends-on): Add stdint.
53934         (EXTRA_DIST): Add inttostr.h.
53935         * modules/lchmod: New module.
53936         * modules/link-follow: New module.
53937         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
53938         (Depends-on): Add lchmod.
53939         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
53940         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
53941         (Depends-on): Add stdint.
53942         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
53943         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
53944         (Depends-on): Add stdint.
53945         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
53946         * modules/perl: New module.
53947         * modules/regex (Depends-on): Add stdint.
53948         * modules/rmdir-errno: New module.
53949         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53950         m4/intmax_t.m4.
53951         (Depends-on): Add stdint.
53952         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53953         m4/uintmax_t.m4.
53954         (Depends-on): Add stdint.
53955         * modules/unlink-busy: New module.
53956         * modules/utimecmp (Depends-on): Add stdint.
53957         * modules/uptime: New module.
53958         * modules/winsz-ioctl: New module.
53959         * modules/winsz-termios: New module.
53960         * modules/xnanosleep (Depends-on): Add nanosleep.
53961         * modules/ullong_max: Remove.
53962         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
53963         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
53964         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
53965         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
53966         (Depends-on): Add inttypes.
53967         (lib_SOURCES): Add xstrtol.h.
53968         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
53969         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
53970         * MODULES.html.sh: Move 'assert' into the assert section.
53971         Move 'dummy' into the linking section.
53972         Remove ullong_max.
53973         Add section for compatibility checks for POSIX:2001 functions,
53974         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
53975         winsz-ioctl, and winsz-termios into it.
53976         Add lchmod.
53977         Add top-level Misc section and put host-os, perl, and uptime
53978         into it.
53979
53980 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53981
53982         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
53983         now assume the stdint module.  Do not include inttypes.h.
53984         * lib/fsusage.h: Likewise.
53985         * lib/getndelim2.c: Likewise.
53986         * lib/human.h: Likewise.
53987         * lib/inttostr.h: Likewise.
53988         * lib/obstack.c: Likewise.
53989         * lib/regex_internal.h: Likewise.
53990         * lib/tempname.c: Likewise.
53991         * lib/utimecmp.c: Likewise.
53992         * lib/xstrtol.h: Likewise.
53993
53994         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
53995
53996         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
53997         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
53998         * lib/xtime.h: Likewise.
53999
54000 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54001
54002         * modules/openat (Files): Add lib/fchmodat.c.
54003         Fixes problem reported by Jay Youngman.
54004
54005 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54006
54007         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54008         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54009
54010 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54011             Bruno Haible  <bruno@clisp.org>
54012
54013         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54014         and is a script that invokes bison. Tighten the code. Add comments.
54015
54016 2006-08-18  Jim Meyering  <jim@meyering.net>
54017
54018         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54019         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54020         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54021         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54022
54023 2006-08-18  Bruno Haible  <bruno@clisp.org>
54024
54025         * modules/bison-i18n: New file.
54026         * MODULES.html.sh (Internationalization functions): Add it.
54027
54028 2006-08-18  Bruno Haible  <bruno@clisp.org>
54029
54030         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54031         sys/statvfs.h. When getmntinfo was found, check its declaration and
54032         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54033
54034 2006-08-18  Bruno Haible  <bruno@clisp.org>
54035
54036         * m4/bison-i18n.m4: New file, from bison.
54037
54038 2006-08-18  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54041         (ME_DUMMY): Treat "kernfs" as a dummy.
54042         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54043
54044 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54045
54046         Update from coreutils.
54047
54048         2006-08-15  Jim Meyering  <jim@meyering.net>
54049
54050         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54051
54052         2006-01-17  Jim Meyering  <jim@meyering.net>
54053
54054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54055
54056         2006-01-11  Jim Meyering  <jim@meyering.net>
54057
54058         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54059         Check for the lchmod function.
54060
54061 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54062
54063         Update from coreutils.
54064
54065         * lib/__fpending.h: Add copyright notice.
54066         * lib/fprintftime.h: Likewise.
54067         * lib/savedir.c: Use (C) in copyright notice.
54068         * lib/savedir.h: Likewise.
54069
54070         2006-08-15  Jim Meyering  <jim@meyering.net>
54071
54072         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54073         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54074         in support of the EXPECTED_ERRNO macro.
54075         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54076         definitions.  Instead, define the appropriate symbols and include
54077         "at-func.c".
54078         * lib/mkdirat.c (mkdirat): Likewise.
54079         * lib/fchmodat.c (fchmodat): Likewise.
54080         (ENOSYS): Remove definition.
54081         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54082         it.  Don't include "unistd--.h" -- it wasn't ever used.
54083
54084         2006-01-17  Jim Meyering  <jim@meyering.net>
54085
54086         Rewrite fts.c not to change the current working directory,
54087         by using openat, fstatat, fdopendir, etc..
54088
54089         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54090         (HAVE_OPENAT_SUPPORT): Define.
54091         [_LIBC] (fchdir): Don't undef or define; no longer used.
54092         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54093         Now, this `function' always succeeds, and consumes its file descriptor
54094         parameter -- so callers must not close such FDs.  Update callers.
54095         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54096         (diropen): Add parameter, SP.  Adjust all callers.
54097         Implement using diropen_fd, rather than open.
54098         (fts_open): Initialize new member, fts_cwd_fd.
54099         Remove fts_rft-setting code.
54100         (fts_close): Close fts_cwd_fd, if necessary.
54101         (__opendir2): Define in terms of opendir or opendirat,
54102         depending on whether the FST_NOCHDIR flag is set.
54103         (fts_build): Since fts_safe_changedir consumes its FD, and since
54104         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54105         and close the dup'd file descriptor upon failure.
54106         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54107         (fts_safe_changedir): Tweak semantics to reflect that this function
54108         now calls cwd_advance_fd and hence consumes its FD argument.
54109         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54110         [struct FTS] (fts_rft): Remove now-unused member.
54111         [struct FTS] (fts_cycle.state): Improve comment.
54112
54113         * lib/openat.c (openat_needs_fchdir): New function.
54114         * lib/openat.h (openat_needs_fchdir): Declare it.
54115
54116 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54117
54118         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54119         Problem and fix reported by Pádraig Brady in
54120         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54121
54122 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54123
54124         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54125
54126 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54127
54128         * lib/memcoll.c (memcoll): Optimize for the common case where the
54129         arguments are bytewise equal.
54130
54131 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54132
54133         * doc/regexprops-generic.texi: Add a copyright notice.
54134
54135 2006-08-15  Bruno Haible  <bruno@clisp.org>
54136
54137         * modules/tmpdir (License): Change to LGPL.
54138
54139 2006-08-15  Bruno Haible  <bruno@clisp.org>
54140
54141         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54142         module.
54143
54144 2006-08-14  Simon Josefsson  <jas@extundo.com>
54145
54146         * config/srclist.txt: Add gnupload.
54147
54148 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54149
54150         Change copyright notice from LGPL 2 to GPL 2, since that's the
54151         standard form used in the gnulib repository.
54152         * tests/test-lock.c: Likewise.
54153         * tests/test-stdint.c: Likewise.
54154         * tests/test-tls.c: Likewise.
54155
54156         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54157         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54158         Add copyright notice.
54159
54160         * check-module: Add copyright notice.  Output a copyright
54161         notice if "--version" is specified.
54162         * modules/COPYING: New file.
54163         * tests/test-getaddrinfo.c: Add copyright notice.
54164         * tests/test-verify.c: Likewise.
54165
54166 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54167
54168         Change copyright notice from LGPL 2 to GPL 2, since that's the
54169         standard form used in the gnulib repository.
54170         * lib/lock.c: LGPL -> GPL.
54171         * lib/lock.h: Likewise.
54172         * lib/strnlen1.c: Likewise.
54173         * lib/strnlen1.h: Likewise.
54174         * lib/tls.c: Likewise.
54175         * lib/tls.h: Likewise.
54176         * lib/tmpdir.c: Likewise.
54177
54178         * lib/TODO: Remove; this belongs only in coreutils.
54179
54180 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54181
54182         Add copyright notices to long-enough files that lack them, since
54183         otherwise the files aren't clearly free.  Use the same notice that
54184         getdate.texi already uses.
54185         * doc/alloca-opt.texi: Add copyright notice.
54186         * doc/alloca.texi: Likewise.
54187         * doc/ctime.texi: Likewise.
54188         * doc/functions.texi: Likewise.
54189         * doc/gcd.texi: Likewise.
54190         * doc/gnulib-tool.texi: Likewise.
54191         * doc/inet_ntoa.texi: Likewise.
54192         * doc/visibility.texi: Likewise.
54193
54194         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54195         * doc/quote.texi: Add copyright notice.
54196
54197         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54198         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54199         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54200         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54201         is now obsolete, and give a pointer to the Sun list.
54202         Add copyright notice.
54203
54204 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54205
54206         * config/srclistvars.sh: Add copyright notice.
54207
54208 2006-08-14  Eric Blake  <ebb9@byu.net>
54209
54210         Import the following change from libc:
54211
54212         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54213
54214         Upstream bug 2997.
54215         * lib/misc/error.c: Add space between program name and message if file
54216         name is missing.
54217
54218 2006-08-12  Karl Berry  <karl@gnu.org>
54219
54220         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54221         remove, these originate in gnulib now.
54222
54223 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54224
54225         * doc/Makefile (standards.info standards.html standards.dvi):
54226         Also depend on make-stds.texi.
54227
54228 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54229
54230         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54231         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54232
54233         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54234         in wchar_t.  Problem reported by Eric Blake.
54235
54236         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54237         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54238         Also, help the compiler to keep LEN in a register.
54239
54240 2006-08-11  Eric Blake  <ebb9@byu.net>
54241
54242         * users.txt: Sort.  Add tar.
54243
54244 2006-08-11  Bruno Haible  <bruno@clisp.org>
54245
54246         * users.txt: New file.
54247
54248 2006-08-11  Bruno Haible  <bruno@clisp.org>
54249
54250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54251         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54252
54253 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54254
54255         * modules/snprintf (Depends-on): Remove minmax.
54256         (Maintainer): Add self and Bruno.
54257
54258 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54259
54260         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54261         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54262         (EOVERFLOW): Define if the system does not.
54263         Do not include "minmax.h"; it wasn't used.
54264         (snprintf): Don't assume size_t promotes to an unsigned type.
54265         Fix bug when generated string was too long for the buffer: the
54266         buffer's contents are supposed to be the initial prefix of the
54267         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54268         exceeds INT_MAX; do the check ourselves.
54269
54270         Import the following changes from libc:
54271
54272         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54273
54274         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54275         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54276         set wc to the byte which couldn't be converted.
54277         (re_string_reconstruct): Don't clear valid_raw_len before calling
54278         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54279         tip_context using re_string_context_at.
54280
54281         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54282
54283         * lib/posix/regex.h: g++ still cannot handled [restrict].
54284
54285         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54286
54287         * lib/posix/regex.h: Remove special handling for VMS.
54288
54289 2006-08-10  Jim Meyering  <jim@meyering.net>
54290
54291         * modules/same-inode: New module.
54292         * modules/dev-ino: New module.
54293         * modules/cycle-check: Depend on these modules, rather than simply
54294         including their .h files.
54295         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54296         required via m4/cycle-check.m4.
54297         * modules/same: Depend on new same-inode module, rather than
54298         including same-inode.h.
54299         * modules/chdir-safer: New file.
54300
54301         * modules/chown (Depends-on): Add stat-macros.
54302
54303 2006-08-10  Jim Meyering  <jim@meyering.net>
54304
54305         * m4/cycle-check.m4: New file.
54306         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54307         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54308
54309 2006-08-10  Eric Blake  <ebb9@byu.net>
54310
54311         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54312         in from original proposal.
54313
54314 2006-08-10  Eric Blake  <ebb9@byu.net>
54315         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54316
54317         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54318         namespace.
54319
54320 2006-08-10  Bruno Haible  <bruno@clisp.org>
54321
54322         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54323         as well.
54324
54325 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54326
54327         Sync from coreutils.
54328
54329         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54330
54331         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54332         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54333
54334 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54335
54336         * modules/restrict: Remove; no longer needed now that we assume
54337         Autoconf 2.59 or later.
54338         * MODULES.html.sh: Remove 'restrict'.
54339         * modules/argp (Depends-on): Remove 'restrict'.
54340         * modules/base64 (Depends-on): Likewise.
54341         * modules/gc (Depends-on): Likewise.
54342         * modules/getaddrinfo (Depends-on): Likewise.
54343         * modules/glob (Depends-on): Likewise.
54344         * modules/inet_ntop (Depends-on): Likewise.
54345         * modules/inet_pton (Depends-on): Likewise.
54346         * modules/memxor (Depends-on): Likewise.
54347         * modules/regex (Depends-on): Likewise.
54348         * modules/strtok_r (Depends-on): Likewise.
54349         * modules/time_r (Depends-on): Likewise.
54350
54351 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54352
54353         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54354         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54355         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54356         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54357         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54358         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54359         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54360         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54361
54362         Merge from coreutils.
54363         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54364         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54365         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54366         * m4/time_r.m4 (gl_TIME_R): Likewise.
54367
54368 2006-08-09  Karl Berry  <karl@gnu.org>
54369
54370         * config/srclist.txt: no more gettext-tools, per Bruno.
54371
54372 2006-08-08  Eric Blake  <ebb9@byu.net>
54373
54374         * modules/verror: New module.
54375         * MODULES.html.sh: Document it.
54376
54377 2006-08-08  Eric Blake  <ebb9@byu.net>
54378
54379         * lib/verror.h, lib/verror.c: New files.
54380
54381 2006-08-08  Eric Blake  <ebb9@byu.net>
54382
54383         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54384         verror_at_line output complies with GNU Coding Standards even when
54385         file is NULL.
54386
54387 2006-08-07  Bruno Haible  <bruno@clisp.org>
54388
54389         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54390         versions of AIX.
54391         Reported by Ralf Wildenhues.
54392
54393 2006-08-07  Bruno Haible  <bruno@clisp.org>
54394
54395         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54396         in an AC_DEFUN. Needed so that the autoconf snippets can use
54397         AC_REQUIRE.
54398
54399 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54400
54401         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54402         Initialize pkgdata_DATA.
54403         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54404         overriding it.
54405
54406 2006-08-06  Eric Blake  <ebb9@byu.net>
54407
54408         * lib/error.h: Fold in some upstream changes from glibc.
54409         * lib/error.c: Likewise.
54410
54411 2006-08-04  Bruno Haible  <bruno@clisp.org>
54412
54413         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54414         Make the mostlyclean-local rule depend on mostlyclean-generic.
54415         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54416
54417 2006-07-31  Bruno Haible  <bruno@clisp.org>
54418
54419         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54420         <stdlib.h>, <string.h>.
54421
54422 2006-07-30  Bruno Haible  <bruno@clisp.org>
54423
54424         * modules/readlink (License): Change to LGPL.
54425
54426 2006-07-30  Bruno Haible  <bruno@clisp.org>
54427
54428         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54429         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54430         set PKGDATADIR to point to it.
54431
54432 2006-07-30  Bruno Haible  <bruno@clisp.org>
54433
54434         * modules/csharpexec (configure.ac): Comment out macro invocation.
54435         * modules/javaexec (configure.ac): Likewise.
54436         * modules/javacomp-script (configure.ac): Likewise.
54437
54438         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54439
54440 2006-07-30  Bruno Haible  <bruno@clisp.org>
54441
54442         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54443         linked-list.
54444
54445 2006-07-30  Bruno Haible  <bruno@clisp.org>
54446
54447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54448
54449 2006-07-30  Bruno Haible  <bruno@clisp.org>
54450
54451         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54452         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54453         get removed.
54454
54455 2006-07-29  Bruno Haible  <bruno@clisp.org>
54456
54457         Make it possible for gnulib-tool to work with locally modified or
54458         augmented gnulib repositories.
54459         * gnulib-tool (func_usage): Document --local-dir option.
54460         (local_gnulib_dir): New variable.
54461         Handle --local-dir option.
54462         (func_lookup_file): New function.
54463         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54464         (func_get_description, func_get_filelist, func_get_description,
54465         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54466         func_get_automake_snippet, func_get_include_directive,
54467         func_get_license, func_get_maintainer): Use func_lookup_file.
54468         (func_import, func_create_testdir): Use func_lookup_file.
54469
54470 2006-07-29  Bruno Haible  <bruno@clisp.org>
54471
54472         * modules/setenv (Depends-on): Add unistd.
54473
54474 2006-07-29  Bruno Haible  <bruno@clisp.org>
54475
54476         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54477
54478 2006-07-29  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
54481
54482 2006-07-29  Bruno Haible  <bruno@clisp.org>
54483
54484         * gnulib-tool (import, update): If there is no Makefile.am, look at
54485         aclocal.m4, instead of bailing out.
54486
54487 2006-07-29  Bruno Haible  <bruno@clisp.org>
54488
54489         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
54490         Categorize the options by when they are useful.
54491
54492 2006-07-29  Bruno Haible  <bruno@clisp.org>
54493
54494         * gnulib-tool (func_usage): Document option --no-libtool.
54495         Handle option --no-libtool.
54496         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
54497         for changed semantics of $libtool variable.
54498         (func_import): Likewise. If libtool is not used, show this through
54499         an option --no-libtool.
54500         (func_create_testdir): Update.
54501
54502 2006-07-29  Bruno Haible  <bruno@clisp.org>
54503
54504         * gnulib-tool (func_import): Extend error message about missing
54505         --doc-base.
54506
54507 2006-07-29  Bruno Haible  <bruno@clisp.org>
54508
54509         * gnulib-tool (func_import): Don't create the $docbase directory if
54510         there is no file to store there.
54511
54512 2006-07-29  Bruno Haible  <bruno@clisp.org>
54513
54514         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54515         relevant, look for configure.ac there, not in the current directory.
54516         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54517
54518 2006-07-29  Bruno Haible  <bruno@clisp.org>
54519
54520         * gnulib-tool (SORT): New variable.
54521         (func_usage): Undocument --assume-autoconf option.
54522         Remove --assume-autoconf option handling.
54523         (autoconf_minversion): Determine from the contents of configure.ac.
54524         (func_import): Remove autoconf_minversion handling.
54525         Suggested by Eric Blake.
54526
54527 2006-07-29  Bruno Haible  <bruno@clisp.org>
54528
54529         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54530
54531 2006-07-29  Bruno Haible  <bruno@clisp.org>
54532
54533         * config/srclist.txt (*setenv.[ch]): Remove rules.
54534
54535 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54536
54537         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54538
54539 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54540
54541         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54542         arpa/inet.h.
54543
54544 2006-07-28  Simon Josefsson  <jas@extundo.com>
54545
54546         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54547         * modules/inet_pton (Depends-on): Likewise.
54548
54549 2006-07-28  Simon Josefsson  <jas@extundo.com>
54550
54551         * m4/netinet_in_h.m4: New file.
54552
54553 2006-07-28  Simon Josefsson  <jas@extundo.com>
54554
54555         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
54556         #include's.
54557
54558 2006-07-28  Simon Josefsson  <jas@extundo.com>
54559
54560         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
54561         #include's.
54562
54563 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
54566         setgid on directories only if they set these bits.
54567         * lib/modechange.h: Remove obsolete comment about masks.
54568
54569 2006-07-28  Eric Blake  <ebb9@byu.net>
54570
54571         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
54572         macro expansion.
54573
54574 2006-07-28  Bruno Haible  <bruno@clisp.org>
54575
54576         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
54577
54578 2006-07-28  Bruno Haible  <bruno@clisp.org>
54579
54580         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
54581
54582 2006-07-28  Bruno Haible  <bruno@clisp.org>
54583
54584         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54585         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54586         Define fallbacks.
54587         Avoids link error on FreeBSD 4.x.
54588         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54589
54590         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
54591         encoding.
54592         * lib/mbswidth.c (iswcntrl): Likewise.
54593
54594 2006-07-27  Bruno Haible  <bruno@clisp.org>
54595
54596         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
54597         test.
54598
54599 2006-07-27  Bruno Haible  <bruno@clisp.org>
54600
54601         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
54602         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
54603         defined.
54604
54605 2006-07-26  Eric Blake  <ebb9@byu.net>
54606
54607         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
54608
54609 2006-07-26  Eric Blake  <ebb9@byu.net>
54610
54611         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
54612         like mingw that lack mkstemp.
54613         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
54614         avoid compilation warning on mingw.
54615
54616 2006-07-26  Bruno Haible  <bruno@clisp.org>
54617
54618         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
54619         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
54620         INT_FAST*_MIN, INTPTR_MIN.
54621
54622 2006-07-25  Bruno Haible  <bruno@clisp.org>
54623
54624         * modules/version-etc (Depends-on): Add stdarg.
54625
54626 2006-07-25  Bruno Haible  <bruno@clisp.org>
54627
54628         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
54629         complex commands.
54630
54631 2006-07-25  Bruno Haible  <bruno@clisp.org>
54632
54633         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
54634         defined in <stdarg.h> or config.h.
54635
54636 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54637
54638         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
54639         (gl_STDIO_SAFER): Remove.
54640
54641 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54642
54643         * MODULES.html.sh (File stream based Input/Output):
54644         Add fopen-safer, tmpfile-safer; remove stdio-safer.
54645         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
54646         * modules/fopen-safer, modules/tmpfile-safer: New files.
54647         * modules/stdio-safer: Remove.
54648
54649 2006-07-24  Bruno Haible  <bruno@clisp.org>
54650
54651         * modules/tmpdir: New file.
54652         * MODULES.html.sh (File system functions): Add it.
54653
54654 2006-07-24  Bruno Haible  <bruno@clisp.org>
54655
54656         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
54657         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
54658
54659 2006-07-24  Bruno Haible  <bruno@clisp.org>
54660
54661         * modules/clean-temp: New file.
54662
54663 2006-07-24  Bruno Haible  <bruno@clisp.org>
54664
54665         * m4/tmpdir.m4: New file, from GNU gettext.
54666
54667 2006-07-24  Bruno Haible  <bruno@clisp.org>
54668
54669         * lib/tmpdir.h: New file, from GNU gettext.
54670         * lib/tmpdir.c: New file, from GNU gettext.
54671
54672 2006-07-24  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/clean-temp.h: New file, from GNU gettext.
54675         * lib/clean-temp.c: New file, from GNU gettext.
54676
54677 2006-07-23  Eric Blake  <ebb9@byu.net>
54678
54679         * modules/stdio-safer (Files): Add tmpfile-safer.c.
54680         (Depends-on): Add binary-io.
54681
54682 2006-07-23  Eric Blake  <ebb9@byu.net>
54683
54684         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
54685
54686 2006-07-23  Eric Blake  <ebb9@byu.net>
54687
54688         * lib/tmpfile-safer.c: New file.
54689         * lib/stdio-safer.h (fopen_safer): Add prototype.
54690         * lib/stdio--.h (tmpfile): Make safer.
54691
54692 2006-07-23  Bruno Haible  <bruno@clisp.org>
54693
54694         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
54695         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
54696         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
54697         gl_linked_remove_at): Use it.
54698
54699 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54700         and Simon Josefsson <jas@extundo.com>
54701
54702         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
54703
54704         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
54705
54706 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54707
54708         * modules/close-stream: New file.
54709         * modules/closeout (Description): Make it clear that it exits
54710         with a diagnostic on error.
54711         (Depends-on): Add close-stream.  Remove fpending, stdbool.
54712         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
54713
54714 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54715
54716         * m4/close-stream.m4: New file.
54717
54718 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54719
54720         * lib/close-stream.c, lib/close-stream.h: New files.
54721
54722 2006-07-22  Bruno Haible  <bruno@clisp.org>
54723
54724         Merge from GNU gettext 0.15.
54725
54726         2006-05-01  Bruno Haible  <bruno@clisp.org>
54727
54728                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
54729
54730         2006-07-22  Bruno Haible  <bruno@clisp.org>
54731
54732                 * modules/javaversion: New file.
54733                 * MODULES.html.sh (Java): Add javaversion.
54734
54735         2006-03-12  Bruno Haible  <bruno@clisp.org>
54736
54737                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
54738
54739         2005-12-04  Bruno Haible  <bruno@clisp.org>
54740
54741                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
54742                 (untested).
54743
54744         2006-06-21  Bruno Haible  <bruno@clisp.org>
54745
54746                 Avoid warnings from recent versions of mcs.
54747                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
54748                 -o, -L, -r any more. Use options documented since mcs-1.0
54749                 instead. Similarly for -g.
54750
54751         2005-12-04  Bruno Haible  <bruno@clisp.org>
54752
54753                 * build-aux/csharpcomp.sh.in: Suffix for resources is
54754                 .resources, not .resource.
54755
54756         2005-07-09  Bruno Haible  <bruno@clisp.org>
54757
54758                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
54759                 add a .dll suffix.
54760                 Reported by Mark Junker <mjscod@gmx.de>.
54761
54762         2006-07-22  Bruno Haible  <bruno@clisp.org>
54763
54764                 * modules/gettext: Upgrade to gettext-0.15.
54765                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
54766                 m4/visibility.m4.
54767                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
54768
54769 2006-07-22  Bruno Haible  <bruno@clisp.org>
54770
54771         Merge from GNU gettext 0.15.
54772
54773         2006-03-25  Bruno Haible  <bruno@clisp.org>
54774
54775                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
54776
54777         2006-07-21  Bruno Haible  <bruno@clisp.org>
54778
54779                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
54780                 "1.1".
54781
54782         2006-05-09  Bruno Haible  <bruno@clisp.org>
54783
54784                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
54785                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
54786                 for the conftestver execution.
54787
54788         2006-05-01  Bruno Haible  <bruno@clisp.org>
54789
54790                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
54791                 optional target-version argument. Verify that the compiler
54792                 groks source of the specified source-version, or add -source
54793                 option as necessary. Verify that the compiler produces
54794                 bytecode in the specified target-version, or add -target and
54795                 -source options as necessary. Make the result of the test
54796                 available as variable CONF_JAVAC. Also log error output in
54797                 config.log.
54798
54799         2006-03-11  Bruno Haible  <bruno@clisp.org>
54800
54801                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
54802
54803         2006-05-09  Bruno Haible  <bruno@clisp.org>
54804
54805                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
54806                 CLASSPATH_SEPARATOR to a semicolon.
54807
54808         2006-03-12  Bruno Haible  <bruno@clisp.org>
54809
54810                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
54811                 available as variable CONF_JAVA, for subsequent autoconf
54812                 tests. Also log error output in config.log.
54813
54814         2006-07-19  Bruno Haible  <bruno@clisp.org>
54815
54816                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
54817                 that getline works on glibc2 systems. Needed to avoid trouble
54818                 in relocatable.c.
54819                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
54820
54821         2005-12-04  Bruno Haible  <bruno@clisp.org>
54822
54823                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
54824                 launcher (untested).
54825
54826         2005-12-04  Bruno Haible  <bruno@clisp.org>
54827
54828                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
54829
54830         2006-07-22  Bruno Haible  <bruno@clisp.org>
54831
54832                 * gettext.m4: Update from GNU gettext-0.15.
54833                 * nls.m4: Likewise.
54834                 * po.m4: Likewise.
54835                 * inttypes-pri.m4: Likewise.
54836                 * inttypes-h.m4: Renamed from inttypes.m4.
54837                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
54838
54839 2006-07-22  Bruno Haible  <bruno@clisp.org>
54840
54841         Merge from GNU gettext 0.15.
54842
54843         2005-07-05  Bruno Haible  <bruno@clisp.org>
54844
54845                 * printf-args.c (printf_fetchargs): Work around broken
54846                 definition of wint_t on mingw.
54847
54848         2005-02-12  Bruno Haible  <bruno@clisp.org>
54849
54850                 * xallocsa.h: Add extern "C" for C++.
54851
54852         2006-05-17  Bruno Haible  <bruno@clisp.org>
54853
54854                 Cygwin portability.
54855                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
54856
54857         2006-04-30  Bruno Haible  <bruno@clisp.org>
54858
54859                 * progreloc.c: Include <mach-o/dyld.h> if available.
54860                 (find_executable): Use _NSGetExecutablePath when possible.
54861
54862         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54863
54864                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
54865                 function.
54866
54867         2005-12-29  Bruno Haible  <bruno@clisp.org>
54868
54869                 * progreloc.c (set_program_name_and_installdir): Fix
54870                 compilation error.
54871
54872         2005-12-04  Bruno Haible  <bruno@clisp.org>
54873
54874                 Cygwin portability.
54875                 * progreloc.c: Include <windows.h> also on Cygwin.
54876                 (find_executable): Add support for Cygwin.
54877                 (set_program_name_and_installdir): Handle also platforms with
54878                 nonempty EXEEXT.
54879
54880         2006-07-11  Bruno Haible  <bruno@clisp.org>
54881
54882                 * javacomp.c: Fix a comment.
54883                 Reported by Jim Meyering.
54884
54885         2006-04-30  Bruno Haible  <bruno@clisp.org>
54886
54887                 * javacomp.h (compile_java_class): Add source_version,
54888                 target_version arguments.
54889                 * javacomp.c: Rewritten to choose only a compiler that
54890                 respects the specified source_version and target_version.
54891
54892         2006-06-27  Bruno Haible  <bruno@clisp.org>
54893
54894                 Assume correct S_ISDIR macro.
54895                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
54896
54897         2006-07-22  Bruno Haible  <bruno@clisp.org>
54898
54899                 * javaversion.h: New file, from GNU gettext.
54900                 * javaversion.c: New file, from GNU gettext.
54901                 * javaversion.java: New file, from GNU gettext.
54902                 * javaversion.class: New file, from GNU gettext.
54903
54904         2006-05-17  Bruno Haible  <bruno@clisp.org>
54905
54906                 Cygwin portability.
54907                 * javaexec.c (execute_java_class): Test for jview program
54908                 also on Cygwin.
54909
54910         2006-04-09  Bruno Haible  <bruno@clisp.org>
54911
54912                 * fatal-signal.c: Don't include string.h.
54913                 (at_fatal_signal): Use a copying loop instead of memcpy.
54914
54915         2005-12-04  Bruno Haible  <bruno@clisp.org>
54916
54917                 * csharpexec.c: Add support for 'clix' launcher (untested).
54918                 (execute_csharp_using_sscli): New function.
54919                 (execute_csharp_program): Call it.
54920
54921         2006-06-21  Bruno Haible  <bruno@clisp.org>
54922
54923                 Avoid warnings from recent versions of mcs.
54924                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
54925                 -o, -L, -r any more. Use options documented since mcs-1.0
54926                 instead. Similarly for -g.
54927
54928         2005-07-09  Bruno Haible  <bruno@clisp.org>
54929
54930                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
54931                 add a .dll suffix.
54932                 Reported by Mark Junker <mjscod@gmx.de>.
54933
54934         2006-06-17  Bruno Haible  <bruno@clisp.org>
54935
54936                 * config.charset: Update for NetBSD 3.0.
54937
54938         2006-05-17  Bruno Haible  <bruno@clisp.org>
54939
54940                 Cygwin portability.
54941                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
54942
54943         2006-05-16  Bruno Haible  <bruno@clisp.org>
54944
54945                 * localcharset.c [CYGWIN]: Include <windows.h>.
54946                 (get_charset_aliases): For Cygwin, return the same CPxxx
54947                 aliases list as under WIN32.
54948                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
54949                 the environment variables. Fall back to GetACP().
54950
54951         2006-04-05  Bruno Haible  <bruno@clisp.org>
54952
54953                 * config.charset: Update Juan Manuel Guerrero's address.
54954
54955         2005-02-12  Bruno Haible  <bruno@clisp.org>
54956
54957                 * allocsa.h: Add extern "C" for C++.
54958
54959         2005-02-10  Bruno Haible  <bruno@clisp.org>
54960
54961                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
54962                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
54963
54964         2006-07-22  Bruno Haible  <bruno@clisp.org>
54965
54966                 * gettext.h: Update to GNU gettext-0.15.
54967
54968 2006-07-22  Bruno Haible  <bruno@clisp.org>
54969
54970         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
54971         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
54972         lib-prefix.m4, longdouble.m4, ssize_t.m4.
54973
54974 2006-07-21  Eric Blake  <ebb9@byu.net>
54975
54976         * modules/stdlib-safer: New file.
54977         * MODULES.html.sh (File stream based Input/Output): Add
54978         stdlib-safer.
54979
54980 2006-07-21  Eric Blake  <ebb9@byu.net>
54981
54982         * lib/stdlib-safer.h: New file from coreutils, required by
54983         stdlib--.h.
54984
54985 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
54986
54987         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
54988
54989 2006-07-20  Bruno Haible  <bruno@clisp.org>
54990
54991         * gnulib-tool: Recognize new option --assume-autoconf.
54992         (autoconf_minversion): New variable.
54993         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
54994
54995 2006-07-20  Bruno Haible  <bruno@clisp.org>
54996
54997         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
54998
54999 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55000
55001         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55002         Reindent and repaginate.
55003
55004 2006-07-19  Derek Price  <derek@ximbiot.com>
55005
55006         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55007         Correct grammar.
55008
55009 2006-07-17  Bruno Haible  <bruno@clisp.org>
55010
55011         * modules/list: New file.
55012         * modules/array-list: New file.
55013         * modules/carray-list, modules/carray-list-tests: New files.
55014         * modules/linked-list, modules/linked-list-tests: New files.
55015         * modules/avltree-list, modules/avltree-list-tests: New files.
55016         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55017         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55018         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55019         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55020         * modules/oset: New file.
55021         * modules/array-oset: New file.
55022         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55023         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55024         * tests/test-carray_list.c: New file.
55025         * tests/test-linked_list.c: New file.
55026         * tests/test-avltree_list.c: New file.
55027         * tests/test-rbtree_list.c: New file.
55028         * tests/test-linkedhash_list.c: New file.
55029         * tests/test-avltreehash_list.c: New file.
55030         * tests/test-rbtreehash_list.c: New file.
55031         * tests/test-avltree_oset.c: New file.
55032         * tests/test-rbtree_oset.c: New file.
55033         * MODULES.html.sh (Container data structures): New section.
55034
55035 2006-07-17  Bruno Haible  <bruno@clisp.org>
55036
55037         * m4/gl_list.m4: New file.
55038
55039 2006-07-17  Bruno Haible  <bruno@clisp.org>
55040
55041         * lib/gl_list.h: New file.
55042         * lib/gl_list.c: New file.
55043         * lib/gl_array_list.h: New file.
55044         * lib/gl_array_list.c: New file.
55045         * lib/gl_carray_list.h: New file.
55046         * lib/gl_carray_list.c: New file.
55047         * lib/gl_linked_list.h: New file.
55048         * lib/gl_linked_list.c: New file.
55049         * lib/gl_anylinked_list1.h: New file.
55050         * lib/gl_anylinked_list2.h: New file.
55051         * lib/gl_avltree_list.h: New file.
55052         * lib/gl_avltree_list.c: New file.
55053         * lib/gl_anyavltree_list1.h: New file.
55054         * lib/gl_anyavltree_list2.h: New file.
55055         * lib/gl_rbtree_list.h: New file.
55056         * lib/gl_rbtree_list.c: New file.
55057         * lib/gl_anyrbtree_list1.h: New file.
55058         * lib/gl_anyrbtree_list2.h: New file.
55059         * lib/gl_anytree_list1.h: New file.
55060         * lib/gl_anytree_list2.h: New file.
55061         * lib/gl_linkedhash_list.h: New file.
55062         * lib/gl_linkedhash_list.c: New file.
55063         * lib/gl_anyhash_list1.h: New file.
55064         * lib/gl_anyhash_list2.h: New file.
55065         * lib/gl_avltreehash_list.h: New file.
55066         * lib/gl_avltreehash_list.c: New file.
55067         * lib/gl_rbtreehash_list.h: New file.
55068         * lib/gl_rbtreehash_list.c: New file.
55069         * lib/gl_anytreehash_list1.h: New file.
55070         * lib/gl_anytreehash_list2.h: New file.
55071
55072         * lib/gl_oset.h: New file.
55073         * lib/gl_oset.c: New file.
55074         * lib/gl_array_oset.h: New file.
55075         * lib/gl_array_oset.c: New file.
55076         * lib/gl_avltree_oset.h: New file.
55077         * lib/gl_avltree_oset.c: New file.
55078         * lib/gl_rbtree_oset.h: New file.
55079         * lib/gl_rbtree_oset.c: New file.
55080         * lib/gl_anytree_oset.h: New file.
55081
55082 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55083
55084         * m4/mkancesdirs.m4: New file.
55085         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55086         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55087         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55088         it.
55089
55090 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55091
55092         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55093         * lib/mkancesdirs.h: New files.
55094         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55095         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55096         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55097         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55098         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55099         callers changed.  Revamp internals significantly, by not
55100         attempting to create directories that are temporarily more
55101         permissive than the final results.  Do not attempt to use
55102         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55103         This removes some race conditions, fixes some bugs, and simplifies
55104         things.  Use new dirchownmod function to do owner and mode changes.
55105         * lib/mkdir-p.h: Likewise.
55106         * lib/modechange.c (octal_to_mode): New function.
55107         (struct mode_change): New member mentioned.
55108         (make_node_op_equals): New arg mentioned.  All callers changed.
55109         (mode_compile): Keep track of which mode bits the user has explicitly
55110         mentioned.
55111         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55112         New arg PMODE_BITS, to keep track of which mode bits the user
55113         mentioned; it treats S_ISUID and S_ISGID speciall.
55114         All callers changed.
55115         * lib/modechange.h: Likewise.
55116
55117 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55118
55119         * MODULES.html.sh: Add mkancestors.
55120         * modules/mkancesdirs: New module.
55121         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55122         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55123         The chdir-safer and afs files are now orphans; I'll remove them
55124         unless someone speaks up.
55125         Add lib/dirchownmod.c, lib/dirchownmod.h.
55126         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55127         Add lchown, mkancesdirs.
55128         (Maintainer): Add self.
55129
55130 2006-07-15  Karl Berry  <karl@gnu.org>
55131
55132         * gnulib-tool: help message wording/arrangement.
55133
55134 2006-07-14  Simon Josefsson  <jas@extundo.com>
55135
55136         * doc/gnulib.texi (Libtool and Windows): New section.
55137
55138 2006-07-12  Simon Josefsson  <jas@extundo.com>
55139
55140         * modules/gendocs (License): Fix license, approved by Karl.
55141
55142 2006-07-12  Eric Blake  <ebb9@byu.net>
55143
55144         * MODULES.html.sh: Add gendocs.
55145
55146 2006-07-11  Eric Blake  <ebb9@byu.net>
55147
55148         * modules/fdl: New module, to install doc/fdl.texi.
55149         * MODULES.html.sh: Add new section for documentation modules.
55150         * gnulib-tool: Avoid space-tab.
55151         (--doc-base): New option, to manage files from doc.
55152
55153 2006-07-11  Eric Blake  <ebb9@byu.net>
55154
55155         * m4/absolute-header.m4: Fix comments to match recent change.
55156
55157 2006-07-11  Eric Blake  <ebb9@byu.net>
55158
55159         * gnulib-tool: List --doc-base before --tests-base.
55160
55161 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55162
55163         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55164
55165 2006-07-11  Bruno Haible  <bruno@clisp.org>
55166
55167         * README: Mention where to put documentation.
55168
55169 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55170
55171         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55172
55173 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55174
55175         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55176         to stdint.m4.
55177
55178 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55179
55180         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55181         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55182         "no/such/file/stdint.h" when there is no such file, so that
55183         the resulting C code can be parsed by dodgy compilers.
55184         Problems reported by Bob Proulx.
55185
55186 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55187
55188         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55189         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55190         macros into the GNU _D_EXACT_NAMLEN.
55191         * lib/savedir.c:  Likewise.
55192         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55193
55194 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55195         and Paul Eggert  <eggert@cs.ucla.edu>
55196
55197         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55198         * m4/savedir.m4:
55199         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55200         macros into the GNU _D_EXACT_NAMLEN.
55201
55202 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55203
55204         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55205         around the absolute name, to work around a problem with the HP-UX
55206         11.23 native C compiler, reported by Bob Proulx.
55207
55208 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         * doc/maintain.texi, make-stds.texi: Sync from
55211         <http://savannah.gnu.org/projects/gnustandards>.
55212
55213 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55214
55215         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55216
55217 2006-07-09  Jim Meyering  <jim@meyering.net>
55218
55219         * m4/glob.m4: Remove a doubled word in a comment.
55220
55221 2006-07-09  Jim Meyering  <jim@meyering.net>
55222
55223         * lib/argp-pv.c: Remove a doubled word in a comment.
55224         * lib/check-version.c (check_version): Likewise.
55225         * lib/javacomp.c (compile_java_class): Likewise.
55226
55227 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55228
55229         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55230         for the benefit of people using Autoconf 2.60.  If you want to
55231         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55232         (or m4/onceonly.m4, if pre-2.57) manually.
55233
55234 2006-07-08  Jim Meyering  <jim@meyering.net>
55235
55236         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55237         comment.
55238         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55239         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55240         comment.
55241
55242 2006-07-08  Jim Meyering  <jim@meyering.net>
55243
55244         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55245
55246 2006-07-07  Simon Josefsson  <jas@extundo.com>
55247
55248         * tests/test-crc.c: Change expected crc value, the test vector
55249         were probably computed using the old broken crc.c?
55250
55251 2006-07-06  Simon Josefsson  <jas@extundo.com>
55252
55253         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55254         now the canonical place for the M4 file).
55255
55256         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55257         from the sys_socket dependency now.
55258
55259         * modules/inet_pton (Files): Ditto.
55260
55261         * modules/inet_ntop (Files): Ditto.
55262
55263 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55264
55265         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55266         not gl_PREREQ_GETUSERSHELL.
55267
55268 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55269
55270         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55271         with only one argument, for Autoconf 2.60.
55272         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55273         expand to nothing, so add a shell command to avoid syntax error.
55274         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55275
55276 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55277
55278         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55279
55280 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55281
55282         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55283         no longer needed.  Check for isblank decl.
55284         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55285         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55286         of existence.
55287
55288 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         * lib/getloadavg.c: Use __VMS, not VMS.
55291         * lib/getopt.c: Likewise.
55292         * lib/getpagesize.h: Likewise.
55293         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55294         and probably does not work.
55295
55296 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55297
55298         * lib/.cppi-disable: Add wcwidth.
55299         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55300         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55301         (ISGRAPH): Remove.  All uses changed to isgraph.
55302         (FOLD) [!defined _LIBC]: Remove special case.
55303         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55304         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55305         HAVE_ISBLANK.
55306         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55307         case.
55308
55309 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55310
55311         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55312         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55313         brackets.  Other minor changes to suppress some compiler
55314         warnings.
55315
55316 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55317         and Paul Eggert  <eggert@cs.ucla.edu>
55318
55319         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55320         of invoking obsolescent AC_HEADER_DIRENT macro.
55321         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55322         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55323         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55324         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55325         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55326         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55327         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55328         * m4/readdir.m4: Remove; no longer needed.
55329
55330 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55331         and Paul Eggert  <eggert@cs.ucla.edu>
55332
55333         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55334         Don't worry about this obsolete case any more.
55335         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55336         directories.
55337         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55338         worry about this obsolete case any more.
55339         * lib/fts.c: Likewise.
55340         * lib/getcwd.c: Likewise.
55341         * lib/glob.h: Likewise.
55342         * lib/savedir.c: Likewise.
55343
55344 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55345
55346         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55347         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55348         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55349         needed.
55350         All uses removed.
55351         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55352         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55353         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55354         needed.
55355         * m4/getdate.m4 (gl_GETDATE): Likewise.
55356         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55357         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55358         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55359         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55360         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55361         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55362         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55363         needed.
55364
55365 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55366
55367         * lib/memcasecmp.c: Include <limits.h>.
55368         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55369         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55370         Don't assume isdigit succeeds only on '0' through '9'.
55371
55372 2006-07-05  Eric Blake  <ebb9@byu.net>
55373
55374         * modules/getaddrinfo (Depends-on): Add snprintf.
55375
55376 2006-07-05  Eric Blake  <ebb9@byu.net>
55377
55378         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55379         to avoid 'header present but could not be compiled' on cygwin.
55380
55381 2006-07-05  Eric Blake  <ebb9@byu.net>
55382
55383         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55384         missing from netdb.h.
55385         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55386
55387 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55388
55389         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55390         no longer needed.
55391         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55392         * m4/getdate.m4 (gl_GETDATE): Likewise.
55393         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55394         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55395         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55396         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55397         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55398
55399 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55400
55401         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55402         All uses of is_space replaced by isspace.
55403         * lib/exit.h: Don't talk about STDC_HEADERS.
55404         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55405         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55406         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55407         replaced by isprint etc.
55408         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55409         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55410         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55411         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55412         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55413         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55414
55415 2006-07-05  Bruno Haible  <bruno@clisp.org>
55416
55417         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55418         the function exists, before testing against AIX.
55419         Reported by Martin Lambers <marlam@marlam.de>.
55420
55421 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55422
55423         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55424         From Mark D. Baushke.
55425
55426 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55427
55428         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55429         to the absolute name, not just one, to bypass Sun C 5.8's
55430         "warning: #include of /usr/include/... may be non-portable".
55431
55432 2006-07-04  Eric Blake  <ebb9@byu.net>
55433
55434         * modules/dirname-tests: New test module.
55435         * tests/test-dirname.c: New file, replacing dirname.c
55436         TEST_DIRNAME section that was recently deleted.
55437
55438 2006-07-04  Bruno Haible  <bruno@clisp.org>
55439
55440         Assume ANSI C header files and <ctype.h> functions.
55441         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55442         (mbsnwidth): Use isprint, iscntrl instead.
55443
55444 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55445
55446         Merge from coreutils.
55447         * MODULES.html.sh: Add xstrtold.
55448         * modules/xstrtold: New file.
55449         * modules/cycle-check (Files): Add lib/same-inode.h.
55450         * modules/dirname (Files): Add m4/double-slash-root.m4.
55451         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55452         * modules/mkdir-p (Files): Add lib/same-inode.h.
55453         * modules/same (Files): Add lib/same-inode.h.
55454
55455 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55456
55457         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55458         This is to keep the terminology clean; POSIX talks about
55459         "absolute pathnames", not "full pathnames", but the GNU
55460         Coding Standards say to use "path" for something else;
55461         so use "absolute" to keep both sides happy.
55462         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55463         Set gl_absolute_header, not gl_full_header_path.
55464         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55465         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55466         All uses changed.
55467
55468         Merge from coreutils.
55469
55470         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55473         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55474         want to require the building of c-strtod.o.
55475         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55476         needs -lm directly.
55477         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
55478
55479         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55480
55481         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
55482         --as-needed option if available.  Problem reported by Albert Chin in
55483         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
55484         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
55485         cc merely issues a bunch of annoying warnings for --as-needed
55486         (this problem was reported by Bob Proulx).  Also, try linking with
55487         -lm to detect a bug in binutils 2.16 (this problem was reported
55488         by Ralf Wildenhues).
55489
55490         2006-06-18  Jim Meyering  <jim@meyering.net>
55491
55492         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
55493         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
55494         macro.
55495         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
55496         also check for glibc-2.4's abort-inducing bug.
55497
55498         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
55499         Low-probability clean-up should be to use rmdir to get rid of
55500         the just-created directory, not unlink.
55501
55502         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
55503         configure fail, and request a bug report to inform us about it.
55504         Add a comment that, barring reports to the contrary, in 2007 we'll
55505         assume ftruncate is universally available.
55506
55507         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55508
55509         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55510
55511         2006-03-12  Jim Meyering  <jim@meyering.net>
55512
55513         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55514         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55515         * m4/same.m4 (gl_SAME): Likewise.
55516         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55517
55518         2006-03-11  Eric Blake  <ebb9@byu.net>
55519
55520         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55521         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55522         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55523         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55524
55525 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55526
55527         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55528         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55529         reported by Mark D. Baushke, one in
55530         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55531
55532         Merge from coreutils.
55533
55534         * lib/.cppi-disable: Add stdint_.h.
55535         * lib/.cvsignore: Add stdint.h.
55536
55537         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55538
55539         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55540         both double and long double versions.
55541         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55542         * lib/xstrtold.c: New file.
55543         * lib/xstrtod.h (xstrtold): New decl.
55544
55545         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * lib/filemode.c (setst): Remove.
55548         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55549         (arguably) clearer, and the generated code is a bit smaller on my
55550         Debian GNU/Linux stable x86 host.
55551
55552         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55553
55554         * lib/filemode.c: Include "filemode.h" first, to test the interface.
55555         Assume that filemode.h includes sys/types.h and sys/stat.h.
55556         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
55557         (ftypelet): Reorder to put common cases first, for efficiency.
55558         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
55559         to do 'M'.
55560         (strmode): Renamed from mode_string, and now stores 12 bytes instead
55561         of 10, for compatibility with FreeBSD.  All callers changed.
55562         (filemodestring): Now stores 12 bytes instead of 10, and sets file
55563         types that can't be deduced solely from st_mode.  First arg is now a
55564         const pointer.
55565         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
55566         (strmode): Renamed from mode_string.
55567         (filemodestring): New decl.
55568         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
55569         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
55570         needed.
55571         (S_ISPORT, S_ISWHT): New macros, if not already defined.
55572
55573         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55574
55575         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
55576         fsusage.h now does that.  Include fsusage.h first, to test interface.
55577         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
55578         at most one method (the old code could have generated decls that
55579         didn't conform to C89, not that this was ever exercised).
55580         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
55581
55582         2006-03-19  Jim Meyering  <jim@meyering.net>
55583
55584         Work even in a chroot where d_ino values for entries in "/"
55585         don't match the stat.st_ino values for the same names.
55586         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
55587         number, iterate through all entries again, using lstat instead.
55588         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
55589         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
55590
55591         * lib/getcwd.c (__getcwd): Clarify a comment.
55592         Use memcpy in place of a call to strcpy.
55593
55594         2006-03-12  Jim Meyering  <jim@meyering.net>
55595
55596         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
55597         matches that of the current directory (which we're about to chdir ".."
55598         out of), then save the dev-ino of the parent, instead.
55599
55600         * lib/same-inode.h (SAME_INODE): New file/macro.
55601         * lib/chdir-safer.c (SAME_INODE): Remove definition.
55602         Include "same-inode.h", instead.
55603         * lib/same.c: Likewise.
55604         * lib/cycle-check.h: Include "same-inode.h".
55605         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
55606         * lib/cycle-check.c (SAME_INODE): Remove definition.
55607         * lib/root-dev-ino.h: Include "same-inode.h".
55608
55609         2006-03-11  Eric Blake  <ebb9@byu.net>
55610
55611         * lib/same.c (same_name): s/base_name/last_component/
55612         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
55613         * lib/filenamecat.c (file_name_concat): Likewise.
55614
55615         2006-03-11  Eric Blake  <ebb9@byu.net>,
55616                     Paul Eggert  <eggert@cs.ucla.edu>
55617
55618         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
55619         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
55620         drive prefix.
55621         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
55622         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
55623         (last_component): New method.
55624         * lib/dirname.c (dir_len): Determine when drive letters need a
55625         subsequent slash.  Preserve // when it is special.
55626         (dir_name): Don't append dot when drive letter is absolute.
55627         [TEST_DIRNAME]: Move into a full-blown gnulib test.
55628         * lib/basename.c (base_name): New semantics - malloc the result.
55629         Preserve // when it is special.  Preserve relative files that look
55630         like drive letters.
55631         (base_len): Preserve // when it is special.
55632         (last_component): New method, similar to old base_name semantics.
55633         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
55634         base_name.  Strip redundant slashes from ///.
55635
55636 2006-07-03  Jim Meyering  <jim@meyering.net>
55637
55638         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
55639         macro is used before the first cycle_check call.
55640
55641 2006-07-03  Eric Blake  <ebb9@byu.net>
55642
55643         * modules/dirname (Depends-on): Add xstrndup.
55644
55645 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
55648         test cases, so that config.log is a bit easier to follow.
55649
55650 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55651
55652         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
55653         both are 64 bits, since this seems to be the tradition, and this
55654         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
55655         we ever run into a host that prefers long long to long in this
55656         case, we'll need another configure-time test.  Problem reported by
55657         Jim Meyering.
55658
55659 2006-07-02  Eric Blake  <ebb9@byu.net>
55660
55661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
55662
55663 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         * modules/inttypes (Depends-on): No longer depends on stdint.
55666         * modules/stdint (Description): Say more about assumptions.
55667         Say that the fast types might differ.  Say macros are used.
55668         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
55669         (Makefile.am): Revise list of substituted symbols to match
55670         new stdint.m4.
55671         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
55672         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
55673         * tests/test-stdint.c (verify_same_types)
55674         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
55675         the code conforms to C99/C89.
55676         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
55677         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
55678
55679 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55680
55681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
55682         but fix a bug, by requiring at least 64 bits.
55683         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55684         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
55685         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
55686         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
55687
55688         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
55689         changes.  Make 2.59 a prerequisite.  Check and substitute for
55690         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
55691         inttypes.h.  Do not use special include files; just use the
55692         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
55693         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
55694         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
55695         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
55696         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
55697         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
55698         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
55699         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
55700         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
55701         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
55702         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
55703         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
55704         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
55705         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
55706         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
55707         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
55708         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
55709         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
55710         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
55711         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
55712         WINT_MAX.  Check for C99 conformance more strictly, by detecting
55713         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
55714         not check for things that C99 does not require, e.g., int8_t.  If
55715         a test isn't needed unless <stdint.h> isn't working, and is
55716         unlikely to be needed for any other reason, then don't do it
55717         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
55718         size_t, since we assume C89 freestanding at least.  Do not check
55719         for sig_atomic_t, wchar_t, or wint_t, since the code now does
55720         the right thing even if the types are not defined.  Instead use:
55721         (gl_STDINT_TYPE_PROPERTIES): New macro.
55722         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
55723         testing whether <sys/types.h> clashes, as Autoconf does this for
55724         us now.  All uses removed.
55725         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
55726         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
55727         (gl_CHECK_TYPE_SAME):
55728         Remove; no longer needed.
55729         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
55730         exists, since we'll return 0 anyway in that case.
55731         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
55732
55733 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55734
55735         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
55736         possible collision with system files.
55737         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
55738         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
55739         WCHAR_MIN and WCHAR_MAX in this case.
55740         (<stddef.h>): Do not include; no longer needed.
55741         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
55742         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
55743         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
55744         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
55745         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
55746         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
55747         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
55748         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
55749         !defined(__c99))]: Include in this case too, since it's harmless
55750         now.
55751         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
55752         dangerous to do so.
55753         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
55754         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
55755         (_STDINT_MIN, _STDINT_MAX): New macros.
55756         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
55757         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
55758         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
55759         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
55760         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
55761         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
55762         macros, not typedefs; this simplifies things quite a bit.
55763         Use long int for all types narrower than int64_t.
55764         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
55765         Define in terms of long long int or int64_t or long int,
55766         not int64_t or int32_t.  This saves some compile-time testing.
55767         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
55768         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
55769         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
55770         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
55771         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
55772         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
55773         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
55774         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
55775         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
55776         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
55777         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55778         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55779         undef any previous version and define our own version, for
55780         simplicity and consistency with the new macros for types.
55781         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55782         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55783         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
55784         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
55785         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
55786         @WINT_T_SUFFIX@ to keep things simple here.
55787         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
55788         Simplify by assuming typical 8/16/32/64 host, since we're
55789         already doing that elsewhere anyway.
55790         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
55791         and assume long long int is 64 bits if available.  This
55792         speeds up 'configure'.
55793
55794 2006-07-01  Eric Blake  <ebb9@byu.net>
55795
55796         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
55797         Reported by Andreas Buening.
55798
55799 2006-07-01  Eric Blake  <ebb9@byu.net>
55800
55801         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
55802
55803 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55804
55805         * lib/getaddrinfo.c: fixed typo
55806
55807 2006-06-29  Jim Meyering  <jim@meyering.net>
55808
55809         * modules/strftime (Maintainer): Add my name, since with the
55810         FPRINTFTIME changes strftime.c has forked from glibc.
55811
55812 2006-06-29  Eric Blake  <ebb9@byu.net>
55813
55814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
55815
55816 2006-06-29  Eric Blake  <ebb9@byu.net>
55817
55818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
55819
55820 2006-06-29  Eric Blake  <ebb9@byu.net>
55821
55822         * lib/stat_.h: New file.
55823
55824 2006-06-29  Eric Blake  <ebb9@byu.net>
55825
55826         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
55827         unused static function.
55828
55829 2006-06-29  Eric Blake  <ebb9@byu.net>
55830
55831         * doc/functions.texi (Function Portability): Document missing lstat
55832         on mingw.
55833
55834 2006-06-29  Eric Blake  <ebb9@byu.net>
55835
55836         * MODULES.html.sh: Add sys_stat.
55837         * modules/sys_stat: New module.
55838         * modules/mkstemp (Depends-on): Add sys_stat.
55839
55840 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55841
55842         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
55843
55844 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55845
55846         * m4/c-bs-a.m4: Removed.
55847
55848 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55849
55850         * lib/strftime.c: Assume strftime() exists.
55851
55852 2006-06-29  Derek Price  <derek@ximbiot.com>
55853
55854         * modules/c-bs-a: Removed - \a is C89.
55855         * MODULES.html.sh: Remove c-bs-a.
55856
55857 2006-06-29  Bruno Haible  <bruno@clisp.org>
55858
55859         * modules/wcwidth (License): Change to LGPL.
55860
55861 2006-06-28  Simon Josefsson  <jas@extundo.com>
55862
55863         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
55864         on _WIN32.
55865
55866         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
55867         getnameinfo.
55868
55869 2006-06-28  Simon Josefsson  <jas@extundo.com>
55870
55871         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
55872
55873 2006-06-28  Simon Josefsson  <jas@extundo.com>
55874
55875         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
55876         functions there.  It will succeed on Windows XP, but on Windows
55877         2000 and (presumably) earlier, it will fail, and use the internal
55878         re-implementation.
55879         (use_win32_p): New function.
55880         (getaddrinfo): Use strtoul on servname, to support numeric ports.
55881         Support AI_NUMERICSERV to disable getservbyname.
55882         (getnameinfo): New function, only supports
55883         NI_NUMERICHOST|NI_NUMERICSERV for now.
55884
55885         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
55886         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
55887         getnameinfo.
55888
55889 2006-06-28  Eric Blake  <ebb9@byu.net>
55890
55891         * modules/wcwidth: New file.
55892         * modules/mbchar (Depends-on): Add wcwidth.
55893         * modules/mbswidth (Depends-on): Add wcwidth.
55894         * MODULES.html.sh: Add wcwidth.
55895
55896 2006-06-28  Eric Blake  <ebb9@byu.net>
55897
55898         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
55899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
55900
55901 2006-06-28  Eric Blake  <ebb9@byu.net>
55902
55903         * lib/xvasprintf.h: Fix comments.
55904
55905 2006-06-28  Eric Blake  <ebb9@byu.net>
55906
55907         * lib/mbchar.h (wcwidth): Include wcwidth.h.
55908         * lib/mbswidth.c (wcwidth): Move from here...
55909         * lib/wcwidth.h: ...to this new file.
55910
55911 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55912
55913         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
55914
55915         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
55916         it's obsolete.
55917         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
55918
55919 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55920
55921         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
55922         Autoconf 2.60 says this stuff was obsolete.
55923
55924 2006-06-28  Bruno Haible  <bruno@clisp.org>
55925
55926         * modules/wcwidth (Files): Add m4/wchar_t.m4.
55927
55928 2006-06-28  Bruno Haible  <bruno@clisp.org>
55929
55930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
55931         gt_TYPE_WCHAR_T.
55932
55933 2006-06-28  Bruno Haible  <bruno@clisp.org>
55934
55935         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
55936         declaration for wcwidth.
55937         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
55938
55939 2006-06-28  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/mkdtemp.c [MINGW]: Include <io.h>.
55942         (mkdir): Define using _mkdir.
55943
55944 2006-06-28  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/getaddrinfo.h: Fix POSIX URL.
55947         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
55948         _WIN32.
55949         (use_win32_p): Make static.
55950         (getaddrinfo): Reject service name if it is empty or does not consist
55951         solely of decimal digits, or if its value is > 65535.
55952         (getnameinfo): Remove useless casts.
55953
55954 2006-06-27  Simon Josefsson  <jas@extundo.com>
55955
55956         * modules/sys_select: New file, suggested by Bruno Haible, Paul
55957         Eggert and Martin Lambers.
55958
55959 2006-06-27  Simon Josefsson  <jas@extundo.com>
55960
55961         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
55962         Eggert and Martin Lambers.
55963
55964 2006-06-27  Bruno Haible  <bruno@clisp.org>
55965
55966         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
55967         result to 0, not to empty.
55968         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
55969
55970 2006-06-27  Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
55973
55974 2006-06-26  Simon Josefsson  <jas@extundo.com>
55975
55976         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
55977         present.
55978
55979 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
55980
55981         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
55982         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
55983         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
55984
55985 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
55986
55987         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
55988
55989 2006-06-26  Bruno Haible  <bruno@clisp.org>
55990
55991         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
55992
55993 2006-06-26  Bruno Haible  <bruno@clisp.org>
55994
55995         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
55996
55997 2006-06-26  Bruno Haible  <bruno@clisp.org>
55998
55999         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56000         SGI C compiler in pre-C99 mode.
56001         Suggested by Mark D. Baushke and Larry Jones.
56002
56003 2006-06-26  Bruno Haible  <bruno@clisp.org>
56004
56005         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56006         WCHAR_MAX.
56007         Reported by Mark D. Baushke and Larry Jones.
56008
56009 2006-06-26  Bruno Haible  <bruno@clisp.org>
56010
56011         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56012         in pre-C99 mode.
56013         Suggested by Mark D. Baushke and Larry Jones.
56014
56015 2006-06-23  Simon Josefsson  <jas@extundo.com>
56016             Bruno Haible  <bruno@clisp.org>
56017
56018         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56019         Emit mostlyclean-local rule.
56020         (func_emit_tests_Makefile_am): Likewise.
56021         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56022
56023 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56024
56025         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56026
56027 2006-06-23  Bruno Haible  <bruno@clisp.org>
56028
56029         * tests/test-stdint.c: Update to match ISO C 99 Technical
56030         Corrigendum 1.
56031
56032 2006-06-23  Bruno Haible  <bruno@clisp.org>
56033
56034         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56035
56036 2006-06-23  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/stdint_.h: Treat IRIX like OpenBSD.
56039
56040 2006-06-23  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56043         ISO C 99 Technical Corrigendum 1.
56044
56045 2006-06-22  Simon Josefsson  <jas@extundo.com>
56046
56047         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56048         MinGW.
56049
56050 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56051
56052         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56053         needed.  Some compiler complained about some of them.  Problem reported
56054         by Larry Jones in
56055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56056
56057 2006-06-21  Simon Josefsson  <jas@extundo.com>
56058
56059         * tests/test-getaddrinfo.c: New file.
56060
56061         * modules/getaddrinfo-tests: New file.
56062
56063         * MODULES.html.sh: Add inet_pton.
56064
56065         * modules/inet_pton: New file.
56066
56067 2006-06-21  Simon Josefsson  <jas@extundo.com>
56068
56069         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56070         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56071         of using the (limited) gnulib implementation on Windows XP.
56072
56073         * m4/inet_pton.m4: New file.
56074
56075 2006-06-21  Simon Josefsson  <jas@extundo.com>
56076
56077         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56078         variable.
56079
56080         * lib/socket_.h: Don't define WINVER.
56081
56082         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56083         slightly modified to work in gnulib.
56084
56085 2006-06-21  Simon Josefsson  <jas@extundo.com>
56086
56087         * doc/gnulib.texi (Windows sockets): Add.
56088
56089 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56090
56091         * lib/read-file.c (fread_file): Start with buffer allocation of
56092         0 bytes rather than 1 byte; this simplifies the code.
56093         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56094         code to free buffer and save/restore errno.
56095         (internal_read_file): Remove unused local.
56096
56097 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56098
56099         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56100         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56101         Problem reported by Denis Excoffier in
56102         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56103
56104 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56105
56106         * modules/sys_socket, modules/socklen: Include sys/types since
56107         FreeBSD 4.x's sys/socket.h needs it.
56108
56109 2006-06-19  Simon Josefsson  <jas@extundo.com>
56110
56111         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56112
56113 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56114
56115         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56116
56117 2006-06-19  Bruno Haible  <bruno@clisp.org>
56118
56119         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56120         and FULL_PATH_INTTYPES_H in angle brackets.
56121         Reported by Mark D. Baushke <mdb@gnu.org>.
56122
56123 2006-06-17  Eric Blake  <ebb9@byu.net>
56124
56125         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56126         errno.
56127
56128 2006-06-17  Bruno Haible  <bruno@clisp.org>
56129
56130         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56131         <sys/inttypes.h>.
56132
56133 2006-06-17  Bruno Haible  <bruno@clisp.org>
56134
56135         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56136         whether errno is declared. Assume <errno.h> declares errno.
56137
56138 2006-06-17  Bruno Haible  <bruno@clisp.org>
56139
56140         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56141
56142 2006-06-17  Bruno Haible  <bruno@clisp.org>
56143
56144         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56145         problem on Solaris 2.5.1.
56146
56147 2006-06-16  Eric Blake  <ebb9@byu.net>
56148
56149         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56150         * lib/unicodeio.c [!defined errno]: Likewise.
56151         * lib/strtol.c [!defined errno]: Likewise.
56152         * lib/strtod.c [!defined errno]: Likewise.
56153
56154 2006-06-15  Eric Blake  <ebb9@byu.net>
56155
56156         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56157
56158 2006-06-15  Eric Blake  <ebb9@byu.net>
56159
56160         * config/srclist.txt (ssize_t.m4): Lose sync.
56161
56162 2006-06-15  Bruno Haible  <bruno@clisp.org>
56163
56164         * modules/stdint (Files): Include m4/full-header-path.m4,
56165         m4/size_max.m4, m4/wchar_t.m4.
56166         (Makefile.am): Many more substitutions.
56167         * modules/stdint-tests: New file.
56168         * tests/test-stdint.c: New file.
56169
56170 2006-06-15  Bruno Haible  <bruno@clisp.org>
56171
56172         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56173         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56174         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56175         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56176         gl_CHECK_TYPE_SAME): New macros.
56177
56178 2006-06-15  Bruno Haible  <bruno@clisp.org>
56179
56180         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56181
56182 2006-06-15  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/stdint_.h: Rewritten to be fully auto-configured.
56185         Fixes bug on HP-UX/IA64.
56186
56187 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56188
56189         * lib/getdate.y (__attribute__): Don't define if already defined.
56190         Problem reported by Larry Jones.
56191         * lib/utimens.c (__attribute__): Likewise.
56192
56193 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56194
56195         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56196         reported by Andreas Schwab.
56197
56198 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56199             Bruno Haible  <bruno@clisp.org>
56200
56201         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56202         check for the declaration of strnlen and a run test that exposes the
56203         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56204         rpl_strndup.
56205
56206 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56207             Bruno Haible  <bruno@clisp.org>
56208
56209         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56210
56211 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56212
56213         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56214         compile test, for Tru64 4.0D.
56215
56216 2006-05-28  Karl Berry  <karl@gnu.org>
56217
56218         * config/srclist.txt (printf-args.c): lose sync.
56219
56220 2006-05-26  Martin Lambers  <marlam@marlam.de>
56221
56222         * lib/getpass.c: Updates the test for the native W32 API, and adds
56223         missing includes, thus fixing compilation warnings.
56224
56225 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56226
56227         * lib/exclude.c (exclude_fnmatch): New function.
56228         (excluded_file_name): Call exclude_fnmatch.
56229         * lib/exclude.h (excluded_file_name): New prototype
56230
56231 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56232
56233         * lib/tempname.c (small_open, large_open): New macros.
56234         (__open, __open64) [!_LIBC]: Remove.
56235         (__gen_tempname): Use small_open and large_open instead of __open
56236         and __open64.  This fixes a portability bug on HP-UX 11.11i
56237         reported by Simon Wing-Tang in
56238         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56239
56240 2006-05-24  Bruno Haible  <bruno@clisp.org>
56241
56242         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56243         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56244         Reported by Thorsten Maerz <torte@netztorte.de> via
56245         Aaron Stone <aaron@serendipity.cx>.
56246
56247 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56248
56249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56250         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56251         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56252         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56253         not really conditional on the cache.
56254         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56255
56256 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56257
56258         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56259         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56260         (my_usleep): Don't mishandle maximum value.
56261
56262 2006-05-19  Jim Meyering  <jim@meyering.net>
56263
56264         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56265
56266 2006-05-17  Bruno Haible  <bruno@clisp.org>
56267
56268         Cygwin portability.
56269         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56270
56271 2006-05-17  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/stdint_.h: Fix recognition of Cygwin.
56274
56275 2006-05-15  Bruno Haible  <bruno@clisp.org>
56276
56277         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56278         on libtool patch by Ralf Wildenhues.
56279
56280 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56281
56282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56283         test for C99 conformance; (bool) 0.5 is an integer constant
56284         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56285         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56286
56287 2006-05-11  Simon Josefsson  <jas@extundo.com>
56288
56289         * m4/xvasprintf.m4: Fix obvious typo.
56290
56291 2006-05-11  Jim Meyering  <jim@meyering.net>
56292
56293         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56294         James Lemley.
56295
56296 2006-05-10  Simon Josefsson  <jas@extundo.com>
56297
56298         * lib/md4.c: Typo fix, update copyright years.
56299         (K1, K2): Don't use L because it turn computations into 64-bit on
56300         64-bit platforms.
56301
56302 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56303
56304         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56305         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56306         unwanted sign propagation, e.g., on hosts with 64-bit int.
56307         There still are some problems with reeelly weird theoretical hosts
56308         (e.g., 33-bit int) but it's not worth worrying about now.
56309         * lib/sha1.c (rol): Likewise.
56310         (K1, K2, K3, K4): Remove unnecessary L suffix.
56311
56312 2006-05-10  Bruno Haible  <bruno@clisp.org>
56313
56314         * lib/des.c: Cast to avoid warnings.
56315
56316 2006-05-09  Bruno Haible  <bruno@clisp.org>
56317
56318         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56319         (Depends-on): Depend also on xsize, stdarg.
56320         (configure.ac): Add gl_XVASPRINTF.
56321
56322 2006-05-09  Bruno Haible  <bruno@clisp.org>
56323
56324         * m4/xvasprintf.m4: New file.
56325
56326 2006-05-09  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56329         (EOVERFLOW): Define fallback value.
56330         (xstrcat): New function.
56331         (xvasprintf): Recognize the special case of a string concatenation.
56332
56333 2006-05-08  Eric Blake  <ebb9@byu.net>
56334
56335         * gnulib-tool (func_version): Base copyright year on CVS date.
56336         (func_emit_copyright_notice): New function.
56337         (func_emit_lib_Makefile_am): Use it.
56338         (func_emit_tests_Makefile_am): Likewise.
56339         (func_import): Likewise.
56340
56341 2006-05-08  Bruno Haible  <bruno@clisp.org>
56342
56343         * modules/stdarg: New file.
56344         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56345
56346 2006-05-08  Bruno Haible  <bruno@clisp.org>
56347
56348         * m4/stdarg.m4: New file, from GNU gettext.
56349
56350 2006-05-08  Bruno Haible  <bruno@clisp.org>
56351
56352         * config/srclist.txt (build-aux/config.rpath): different from latest
56353         release.
56354
56355 2006-05-08  Bruno Haible  <bruno@clisp.org>
56356
56357         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56358
56359 2006-05-05  Jim Meyering  <jim@meyering.net>
56360
56361         * m4/warning.m4: New file, derived from bison's file by the same name.
56362
56363 2006-05-03  Bruno Haible  <bruno@clisp.org>
56364
56365         * lib/stdint_.h: Shorter URL.
56366         * lib/inttypes.h: Likewise.
56367
56368 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56369
56370         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56371
56372 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56373
56374         * lib/verify.h: Document the internals better.  Most of this change
56375         was written by Bruno Haible.
56376
56377 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56378
56379         * doc/verify.texi: New file, partly based on a proposal by
56380         Bruno Haible.
56381
56382 2006-05-02  Bruno Haible  <bruno@clisp.org>
56383
56384         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56385         test from here...
56386         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56387
56388 2006-04-29  Bruno Haible  <bruno@clisp.org>
56389
56390         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56391         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56392
56393 2006-04-29  Bruno Haible  <bruno@clisp.org>
56394
56395         * gnulib-tool: Make --update option actually work.
56396
56397 2006-04-29  Bruno Haible  <bruno@clisp.org>
56398
56399         * doc/gcd.texi: New file.
56400         * doc/gnulib.texi: Include it.
56401
56402 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56403
56404         * lib/getdate.y (get_date): When adding relative date, start with the
56405         initial time, not with the result of the first mktime call.
56406
56407 2006-04-25  Bruno Haible  <bruno@clisp.org>
56408
56409         * gnulib-tool (func_import): Output the include directives in three
56410         blocks, sorted separately.
56411         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56412
56413 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56414
56415         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56416         to define main with arguments, for C++.  Reported by Eric Blake.
56417         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56418         Prefer 'int main ()' to 'int main (void)', for C++.
56419         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56420         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56421         for 'main', for C99 and C++.
56422
56423 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56424
56425         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56426         Don't assume that exit status -1 is valid.
56427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56428         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56429         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56430         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56431         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56432         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56433         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56434         functions can be used without declaring them, or that you can
56435         exit with status -1.
56436         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56437
56438 2006-04-24  Karl Berry  <karl@gnu.org>
56439
56440         * config/srclist.txt (longdouble.m4): sync lost.
56441
56442 2006-04-24  Eric Blake  <ebb9@byu.net>
56443
56444         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56445
56446 2006-04-24  Bruno Haible  <bruno@clisp.org>
56447
56448         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56449         poll() implementation in AIX.
56450         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56451
56452 2006-04-24  Bruno Haible  <bruno@clisp.org>
56453
56454         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56455         assigned exactly once.
56456
56457 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56458             Bruno Haible  <bruno@clisp.org>
56459
56460         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56461         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56462         for AM_CPPFLAGS.
56463
56464 2006-04-23  Bruno Haible  <bruno@clisp.org>
56465
56466         * modules/copy-file: Depend on unistd.
56467         * modules/execute: Likewise.
56468         * modules/fatal-signal: Likewise.
56469         * modules/findprog: Likewise.
56470         * modules/mkdtemp : Likewise.
56471         * modules/pipe: Likewise.
56472         * modules/wait-process: Likewise.
56473
56474 2006-04-23  Bruno Haible  <bruno@clisp.org>
56475
56476         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56477         condition was already detected.
56478         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56479
56480 2006-04-23  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/copy-file.c: Include <unistd.h> unconditionally.
56483         * lib/execute.c: Likewise.
56484         * lib/fatal-signal.c: Likewise.
56485         * lib/findprog.c: Likewise.
56486         * lib/mkdtemp.c: Likewise.
56487         * lib/pipe.h: Likewise.
56488         * lib/pipe.c: Likewise.
56489         * lib/wait-process.h: Likewise.
56490
56491 2006-04-23  Bruno Haible  <bruno@clisp.org>
56492
56493         * gnulib-tool (func_usage): Fix --import description. Document
56494         --update.
56495         (func_import): Create temporary file in a temporary directory, if
56496         --dry-run is specified. Silence errors from 'grep' when there are no
56497         m4 files in $m4dir.
56498         (func_create_testdir): Silence errors from 'grep' when there are no
56499         m4 files in $m4dir.
56500         Reported by Karl Berry <karl@freefriends.org>.
56501
56502 2006-04-20  Bruno Haible  <bruno@clisp.org>
56503
56504         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56505         one argument, so that the code will be portable to Autoconf 2.60.
56506         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56507         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56508         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56509
56510 2006-04-19  Derek Price  <derek@ximbiot.com>
56511             Eric Blake  <ebb9@byu.net>
56512
56513         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56514         rather than "/full/path.h".  Update comment to match.  Shorten &
56515         generalize m4_translit call via AS_TR_CPP.
56516
56517 2006-04-19  Derek Price  <derek@ximbiot.com>
56518             Eric Blake  <ebb9@byu.net>
56519
56520         * lib/inttypes.h: Correct grammar in comment.
56521
56522 2006-04-18  Derek Price  <derek@ximbiot.com>
56523             Paul Eggert  <eggert@cs.ucla.edu>
56524
56525         * modules/inttypes: New file.
56526         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56527
56528 2006-04-18  Derek Price  <derek@ximbiot.com>
56529             Paul Eggert  <eggert@cs.ucla.edu>
56530
56531         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56532         New files.
56533
56534 2006-04-18  Derek Price  <derek@ximbiot.com>
56535             Paul Eggert  <eggert@cs.ucla.edu>
56536
56537         * lib/inttypes.h: New file.
56538         * lib/strtoimax.c: Assume <inttypes.h>.
56539
56540 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56541
56542         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56543         isn't mounted.  Problem reported by Kir Kolyshkin.
56544
56545 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56546
56547         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56548         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56549         Derek R. Price.
56550         * lib/regex.h (RE_DUP_MAX): Update comment to match current
56551         implementation.
56552
56553 2006-04-12  Eric Blake  <ebb9@byu.net>
56554
56555         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
56556         is now done automatically by the corresponding Autoconf macro.
56557
56558 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
56559
56560         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
56561         time_r.h.
56562
56563 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56564
56565         Merge regex changes from libc, removing some of our
56566         POSIX-conformance changes that were rejected and redoing them in a
56567         less-intrusive way.
56568
56569         * lib/regcomp.c (re_compile_internal, init_dfa):
56570         Length arg is now size_t, not Idx.  All uses changed.
56571         (peek_token): Forward decl now says internal_function.
56572         (__re_error_msgid, __re_error_msgid_idx):
56573         Now static rather than extern with attribute_hidden.
56574         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
56575         For some reason libc prefers K&R style defns for external functions.
56576         (regerror) [!defined _LIBC]: Likewise.
56577         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
56578         (seek_collating_symbol_entry, lookup_collation_sequence_value):
56579         (build_range_exp, build_collating_symbol):
56580         Use K&R-style defn.
56581         (re_compile_fastmap): Use '\0' to memset, not 0.
56582         (utf8_sb_map): Make the calculations more obvious.
56583         (init_dfa, parse_bracket_exp, build_charclass_op):
56584         Call calloc and cast result, as glibc does.
56585         (init_word_char, fetch_token, peek_token, peek_token_bracket):
56586         (build_range_exp, build_collating_symbol):
56587         Now internal functions.
56588
56589         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
56590
56591         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
56592         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
56593         Don't depend on VMS; depend on __VMS instead, for POSIX
56594         namespace cleanness.
56595         (regoff_t): Define to ssize_t, not long int.
56596
56597         Remove the REG_ macros named below.  Instead, make the old names
56598         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
56599         __USE_GNU_REGEX.
56600         (REG_BACKSLASH_ESCAPE_IN_LISTS):
56601         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
56602         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
56603         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
56604         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
56605         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
56606         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
56607         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
56608         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
56609         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
56610         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
56611         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
56612         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
56613         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
56614         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
56615         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
56616         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
56617         (REG_NREGS):
56618         Remove.  All uses replaced by the old RE_* names.
56619         (RE_BACKSLASH_ESCAPE_IN_LISTS):
56620         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
56621         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
56622         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
56623         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
56624         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
56625         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
56626         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
56627         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
56628         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
56629         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
56630         Don't bother having these macros be independent of each others'
56631         values, since they no longer exist in the POSIX name space.
56632
56633         Rename the following member names back to their old names,
56634         unless !__USE_GNU_REGEX.  All uses changed back.
56635         (buffer): Renamed from re_buffer.
56636         (allocated): Renamed from re_allocated.
56637         (used): Renamed from re_used.
56638         (syntax): Renamed from re_syntax.
56639         (fastmap): Renamed from re_fastmap.
56640         (translate): Renamed from re_translate.
56641         (can_be_null): Renamed from re_can_be_null.
56642         (regs_allocated): Renamed from re_regs_allocated.
56643         (fastmap_accurate): Renamed from re_fastmap_accurate.
56644         (no_sub): Renamed from re_no_sub.
56645         (not_bol): Renamed from re_not_bol.
56646         (not_eol): Renamed from re_not_eol.
56647         (newline_anchor): Renamed from re_newline_anchor.
56648         (num_regs): Renamed from rm_num_regs.
56649         (start): Renamed from rm_start.
56650         (end): Renamed from rm_end.
56651
56652         (free_state): Move up a bit.
56653
56654         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
56655         #define to be empty.
56656         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
56657         when that is what is intended.
56658         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
56659         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
56660         (MAX): New macro.
56661         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
56662         All uses changed back to re_malloc, etc.  It's now the caller's
56663         responsibility to check for overflow; all callers changed.
56664         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
56665         (re_x2nrealloc): Remove.
56666         (free_state): Remove decl.
56667
56668         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
56669         (re_set_registers, re_exec):
56670         Use K&R-style defn.
56671
56672         2006-01-31  Roland McGrath  <roland@redhat.com>
56673
56674         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
56675         Reported by Mike Frysinger <vapier@gentoo.org>.
56676
56677         2006-01-15  Andreas Jaeger  <aj@suse.de>
56678
56679         [BZ #1950]
56680         * lib/regex_internal.c (re_string_reconstruct): Adjust for
56681         build_wcs_upper_buffer change.
56682         (build_wcs_upper_buffer): Change return type.
56683
56684         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
56685
56686         * lib/regex_internal.h: Include <stdint.h> if available.
56687
56688         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
56689
56690         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
56691
56692         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56693
56694         * lib/regcomp.c: Adjust for changed secondary hash function.
56695
56696         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
56697
56698         * lib/regex.h: Pretty printing.
56699         Clean up namespace a bit.
56700
56701         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
56702
56703         * lib/regexec.c (update_cur_sifted_state, check_arrival,
56704         check_arrival_add_next_nodes): Avoid using uninitialized variable.
56705
56706         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56707                     Ulrich Drepper  <drepper@redhat.com>
56708
56709         [BZ #1302]
56710         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
56711         changed.
56712         (bitset_word_t): Renamed from bitset_word.  All uses changed.
56713
56714         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
56715
56716         [BZ #281]
56717         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
56718         * lib/regcomp.c: Remove unnecessary uses of
56719         unsigned RE_TRANSLATE_TYPE.
56720         * lib/regex_internal.h: Likewise.
56721         * lib/regex_internal.c: Likewise.
56722         * lib/regexec.c: Likewise.
56723         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
56724
56725         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
56726
56727         * lib/regexec.c (find_recover_state): Remove unnecessary
56728         initialization.
56729         (transit_state_bkref): Make DFA a const pointer.
56730         (get_subexp): Likewise.
56731         (check_arrival): Likewise.
56732         (update_cur_sifted_state): Likewise.
56733         (re_search_internal): Likewise.
56734         (prune_impossible_nodes): Likewise.
56735         (acquire_init_state_context): Likewise.
56736         (proceed_next_node): Likewise.
56737         (set_regs): Likewise.
56738         (free_fail_stack_return): Likewise.
56739         (check_arrival_expand_ecl): Mark DFA parameter as const.
56740         (check_arrival_expand_ecl_sub): Likewise.
56741         (check_subexp_limits): Likewise.
56742         (sub_epsilon_src_nodes):  Likewise.
56743         (add_epsilon_src_nodes):  Likewise.
56744         (merge_state_array): Likewise.
56745         (update_regs): Likewise.
56746         (build_trtable): Likewise.
56747         (sift_states_backward): Mark MCTX parameter as const.
56748         (build_sifted_states): Likewise.
56749         (update_cur_sifted_state): Likewise.
56750         (sift_states_mkref): Likewise.
56751         (check_arrival_expand_ecl): Mark eclosure as const.
56752         (check_dst_limits_calc_pos_1): Likewise.
56753         * lib/regex_internal.h (re_match_context_t): Make dfa a const
56754         pointer.
56755
56756         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
56757
56758         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
56759         (transit_state_sb): Likewise.
56760         (transit_state_mb): Likewise.
56761         (sift_states_iter_mb): Likewise.
56762         (check_arrival_add_next_nodes): Likewise.
56763         (check_node_accept_bytes): Change first parameter to pointer-to-const.
56764         [_LIBC] (re_search_2_stub): Use mempcpy.
56765
56766         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
56767         mbrtowc for very simple UTF-8 case.
56768
56769         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
56770         a pointer-to-const.
56771         (re_acquire_state_context): Likewise.
56772         * lib/regex_internal.h: Adjust prototypes.
56773
56774         * lib/regex.c: Prevent using C++ compilers.
56775
56776         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
56777         (re_acquire_state_context): Likewise.
56778
56779 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56780
56781         * modules/regex (Depends-on): Add ssize_t.
56782
56783 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56784
56785         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
56786         translation table.
56787
56788 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56789
56790         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
56791
56792 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
56793             Bruno Haible  <bruno@clisp.org>
56794
56795         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
56796         <sys/types.h> and <inttypes.h>.
56797
56798 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56799
56800         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
56801         `__error_t_defined', so argp.h will not typedef the former.
56802
56803 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
56804
56805         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
56806         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
56807         glibc names.  Even if glibc is changed to conform to POSIX, the
56808         traditional names will be available anyway, since regex depends on
56809         the extensions module.  Also, fix a longstanding typo in the
56810         implementation of Spencer ERE test #75 from grep 2.3.  Problems
56811         reported by Emanuele Giaquinta.  Also, change sense of cached
56812         variable, so that the message makes sense.
56813
56814 2006-03-24  Simon Josefsson  <jas@extundo.com>
56815
56816         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
56817         including some doc fixes.
56818         (base64_encode_alloc): Fix +1 bug on allocation failures.
56819
56820 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56821
56822         * lib/base64.c (base64_encode): Do not read past end of array with
56823         unsanitized input on systems with CHAR_BIT > 8.
56824
56825 2006-03-24  Eric Blake  <ebb9@byu.net>
56826
56827         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
56828
56829 2006-03-22  Karl Berry  <karl@gnu.org>
56830
56831         * config/srclist.txt (*setenv.[ch]): get from coreutils.
56832         * config/srclistvars.sh (COREUTILS): new var.
56833
56834 2006-03-17  Jim Meyering  <jim@meyering.net>
56835
56836         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
56837         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
56838
56839 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56840
56841         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
56842         no longer needs it.  Instead, check that regoff_t is as least
56843         as wide as ptrdiff_t.
56844
56845         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
56846         so that our regex.h stays compatible with the installed regex.
56847         This is helpful for installers who configure --without-included-regex.
56848         Problem reported by Emanuele Giaquinta.
56849
56850 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56851
56852         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
56853         Typedef to long int, not to off_, as POSIX will likely change
56854         in that direction.
56855
56856 2006-03-15  Eric Blake  <ebb9@byu.net>
56857
56858         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
56859
56860 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56861
56862         * lib/argp-help.c (validate_uparams): Fix typo
56863         * lib/argp-parse.c (argp_default_options): Consistently begin help
56864         messages with a lowercase letter.
56865
56866 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
56867
56868         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
56869         overrun buffers and shouldn't be used (much as gets shouldn't be
56870         used).
56871         * lib/time_r.c (asctime_r, ctime_r): Likewise.
56872
56873 2006-03-08  Simon Josefsson  <jas@extundo.com>
56874
56875         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
56876         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56877
56878 2006-03-08  Simon Josefsson  <jas@extundo.com>
56879
56880         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
56881         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56882
56883 2006-03-08  Simon Josefsson  <jas@extundo.com>
56884
56885         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
56886         signal that configure disabled the device.
56887
56888 2006-03-08  Simon Josefsson  <jas@extundo.com>
56889
56890         * build-aux/maint.mk: Fix refresh-po, to handle no translated
56891         languages.
56892
56893 2006-03-07  Simon Josefsson  <jas@extundo.com>
56894
56895         * modules/getopt (Depends-on): Add unistd.
56896
56897         * modules/unistd: New file.
56898
56899 2006-03-07  Simon Josefsson  <jas@extundo.com>
56900
56901         * modules/gc-random: New file.
56902
56903 2006-03-07  Simon Josefsson  <jas@extundo.com>
56904
56905         * m4/unistd_h.m4: New file.
56906
56907 2006-03-07  Simon Josefsson  <jas@extundo.com>
56908
56909         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
56910         test to be side-effect free by storing the result in the cache
56911         variable gl_cv_lib_readline, and moving the assignment of
56912         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
56913         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56914
56915 2006-03-07  Simon Josefsson  <jas@extundo.com>
56916
56917         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
56918         error on missing devices (the functions will return an error).
56919
56920         * m4/gc.m4: Move random stuff to gc-random.m4
56921
56922 2006-03-07  Simon Josefsson  <jas@extundo.com>
56923
56924         * lib/unistd_.h: New file.
56925
56926 2006-03-07  Simon Josefsson  <jas@extundo.com>
56927
56928         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
56929
56930 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
56933         Problem reported by Juan Manuel Guerrero.
56934
56935 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56936
56937         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
56938         the unistd module.
56939         * lib/getlogin_r.c: Likewise.
56940         * lib/getlogin_r.h: Likewise.
56941         * lib/glob.c: Likewise.
56942         * lib/pagealign_alloc.c: Likewise.
56943         * lib/unistd_.h: Remove; no longer needed.
56944
56945 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56946
56947         * MODULES.html.sh (Support for systems lacking POSIX:2001):
56948         Add unistd.
56949         * modules/c-stack (Depends-on): Add unistd.
56950         * modules/getlogin_r: Likewise.
56951         * modules/glob: Likewise.
56952         * modules/pagealign_alloc: Likewise.
56953         * modules/unistd (Files): Remove lib/unistd_.h.
56954         (EXTRA_DIST): Remove.
56955         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
56956         need unistd_.h.
56957         (MOSTLYCLEANFILES): Remove unistd.h-t.
56958
56959 2006-03-03  Simon Josefsson  <jas@extundo.com>
56960
56961         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
56962
56963 2006-03-03  Simon Josefsson  <jas@extundo.com>
56964
56965         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
56966         libidn and bison.
56967
56968 2006-03-03  Simon Josefsson  <jas@extundo.com>
56969
56970         * build-aux/maint.mk: Add indent target.
56971
56972 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
56973
56974         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
56975         our replacement poll.h in any case, to avoid a differing
56976         declaration from a system header.  Seen on AIX.
56977
56978 2006-03-01  Simon Josefsson  <jas@extundo.com>
56979
56980         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
56981         <kasal@ucw.cz>.
56982
56983 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56984
56985         * modules/gettime (Depends-on): Add extensions module.
56986         * modules/nanosleep (Depends-on): Likewise.
56987         * modules/settime (Depends-on): Likewise.
56988
56989 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56990
56991         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
56992         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
56993         pedantically.
56994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56995         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
56996
56997         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
56998         not "==".  Reported by Ralf Wildenhues.
56999
57000 2006-03-01  Karl Berry  <karl@gnu.org>
57001
57002         * doc/Copyright/request-*: new files, synced from gnuorg.
57003
57004 2006-03-01  Karl Berry  <karl@gnu.org>
57005
57006         * config/srclist.txt (Copyright/*): new entries.
57007
57008 2006-02-28  Simon Josefsson  <jas@extundo.com>
57009
57010         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57011
57012 2006-02-27  Simon Josefsson  <jas@extundo.com>
57013
57014         * lib/base64.h: Indent #define's.  From Jim Meyering
57015         <jim@meyering.net>.
57016
57017 2006-02-27  Jim Meyering  <jim@meyering.net>
57018
57019         Revert the change of 2006-02-24, so these files can continue
57020         to be sync'd from gettext.
57021         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57022         of `config.h'.
57023
57024 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57025
57026         * modules/intprops: New file.
57027         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57028         Add intprops.
57029         * modules/getloadavg (Files): Remove lib/intprops.h.
57030         (Depends-on): Add intprops.
57031         * modules/human: Likewise.
57032         * modules/inttostr: Likewise.
57033         * modules/openat: Likewise.
57034         * modules/sig2str: Likewise.
57035         * modules/userspec: Likewise.
57036         * modules/utimecmp: Likewise.
57037         * modules/xnanosleep: Likewise.
57038         * modules/xstrtol: Likewise.
57039
57040 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57041
57042         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57043         * modules/lock-tests (TESTS): Use $(EXEEXT).
57044         * modules/tls-tests: Likewise.
57045         * modules/argp-tests: Likewise.
57046         (check_PROGRAMS): New var, replacing...
57047         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57048
57049 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57050
57051         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57052         `config.h'.
57053
57054 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57055
57056         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57057
57058 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57059
57060         Sync from coreutils.
57061         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57062         gl_CHDIR_SAFER.
57063
57064 2006-02-22  Jim Meyering  <jim@meyering.net>
57065
57066         Sync from coreutils.
57067         * m4/chdir-safer.m4: New file.
57068
57069 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57070
57071         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57072         AT_FDCWD exceeds INT_MAX.
57073         * lib/openat.h (AT_FDCWD): Likewise.
57074
57075 2006-02-17  Eric Blake  <address@hidden>
57076
57077         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57078
57079 2006-02-16  Simon Josefsson  <jas@extundo.com>
57080
57081         * modules/getaddrinfo (Depends-on): Add sys_socket.
57082
57083 2006-02-15  Simon Josefsson  <jas@extundo.com>
57084
57085         * build-aux/maint.mk: Add dsyntax-check rule.
57086
57087 2006-02-15  Eric Blake  <ebb9@byu.net>
57088
57089         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57090         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57091         'present but cannot compile' warnings on cygwin.
57092         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57093         use ws2tcpip.h if sys/socket.h works.
57094         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57095         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57096
57097 2006-02-14  Simon Josefsson  <jas@extundo.com>
57098
57099         * modules/maintainer-makefile (Files): Rename.
57100
57101         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57102         and (the local) Makefile.cfg to maint-cfg.mk.
57103
57104         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57105         to the latter.
57106
57107         * modules/maintainer-makefile: New module.
57108
57109         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57110         severaly stripped to make it possible to build it up from scratch
57111         with reliable tests.
57112
57113         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57114         fixes to permit overriding the default actions when configure and
57115         makefile are not available.
57116
57117 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57118
57119         Sync from coreutils.
57120         * modules/lstat (Depends-on): Don't depend on xalloc.
57121         (License): Change from GPL to LGPL, since this is now simply a
57122         replacement for a libc function.
57123
57124 2006-02-14  Jim Meyering  <jim@meyering.net>
57125
57126         Sync from coreutils.
57127
57128         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57129         failure on deficient systems, and simplify gnulib lgpl dependencies.
57130         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57131         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57132
57133         * lib/xalloc-die.c: Remove unused definition of N_.
57134
57135 2006-02-14  Jim Meyering  <jim@meyering.net>
57136
57137         Sync from coreutils.
57138         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57139         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57140         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57141         double-quote uses of that variable, to accommodate the rare case in
57142         which getmntent is available in none of the libraries checked.  This
57143         happens at least on FreeBSD 5.0.
57144
57145 2006-02-13  Simon Josefsson  <jas@extundo.com>
57146
57147         * gnulib-tool (Usage): Fix --import, from
57148         karl@freefriends.org (Karl Berry).
57149
57150 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57151
57152         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57153
57154 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57155
57156         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57157         "autoupdate" on 2005-12-12.
57158
57159 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57160
57161         * modules/closeout (Depends-on): Remove atexit.
57162
57163 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57164
57165         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57166         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57167
57168 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57169
57170         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57171         __EXTENSIONS__ if this causes compilation to fail.  Problem
57172         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57173         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57174
57175 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57176
57177         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57178         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57179         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57180         All uses changed.
57181
57182 2006-01-26  Simon Josefsson  <jas@extundo.com>
57183
57184         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57185         prototype is visible on mingw32.
57186
57187         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57188         for mingw32.
57189
57190         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57191         mingw32).
57192
57193 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57194
57195         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57196         attempt to open for write; this always fails, at least on POSIX
57197         hosts.  This reinstates the 2006-01-09 change, which was
57198         inadvertently removed.
57199
57200 2006-01-26  Bruno Haible  <bruno@clisp.org>
57201
57202         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57203         Reported by Paul Eggert.
57204
57205 2006-01-26  Bruno Haible  <bruno@clisp.org>
57206             Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         * lib/stdbool_.h (_Bool)
57209         [(! (defined __cplusplus || defined __BEOS__)
57210           && !defined __GNUC__
57211           && !(defined __HP_cc || defined __xlc__
57212                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57213                || defined __sgi))]:
57214         #define to signed char in these cases too; this simplifies
57215         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57216         etc., separately) and makes it more conservative.
57217
57218 2006-01-25  Simon Josefsson  <jas@extundo.com>
57219
57220         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57221         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57222         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57223
57224 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57225
57226         * lib/argp-namefrob.h: Bugfix. Remove stray #
57227
57228 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57229
57230         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57231         so that we test the test.
57232         Check for yet another HP-UX cc bug involving *bool |= bool.
57233
57234 2006-01-25  Karl Berry  <karl@gnu.org>
57235
57236         * config/srclist.txt (vasnprintf.c): sync lost.
57237
57238 2006-01-25  Jim Meyering  <jim@meyering.net>
57239
57240         Sync from the stable (b5) branch of coreutils:
57241
57242         * lib/fts.c (fts_children): Don't let close() clobber errno from
57243         failed fchdir().
57244
57245         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57246         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57247         a dangling symlink.  That can also happen at least for ELOOP.
57248         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57249         FYI, this bug predates the inclusion of fts.c in coreutils.
57250
57251         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57252         in their own block, so pre-c99 compilers don't object.
57253
57254         Avoid the double-free (first in fts_read, second in fts_close) that
57255         would occur when an `active' directory is made inaccessible (e.g.,
57256         via chmod a-x) during a traversal.
57257         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57258         before returning.  Reproduce this failure by
57259         mkdir -p a/b; cd a; chmod a-x . b
57260         Reported by Stavros Passas.
57261
57262 2006-01-25  Jim Meyering  <jim@meyering.net>
57263
57264         * lib/fileblocks.c: Remove more useless parentheses.
57265         * lib/readutmp.h: Likewise.
57266
57267 2006-01-25  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57270         warnings.
57271         Reported by Paul Eggert.
57272
57273 2006-01-25  Bruno Haible  <bruno@clisp.org>
57274
57275         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57276         rid of a trap command. For Solaris sh.
57277         Reported by Mark D. Baushke <mdb@gnu.org>.
57278
57279 2006-01-24  Simon Josefsson  <jas@extundo.com>
57280
57281         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57282         Bruno.
57283
57284 2006-01-24  Karl Berry  <karl@gnu.org>
57285
57286         * config/srclist.txt (argp-namefrob.h): sync lost.
57287
57288 2006-01-24  Jim Meyering  <jim@meyering.net>
57289
57290         * modules/openat (Files): Add lib/intprops.h.
57291         From Mark D. Baushke.
57292
57293 2006-01-24  Jim Meyering  <jim@meyering.net>
57294
57295         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57296         Reported by Mark D. Baushke.
57297
57298 2006-01-24  Jim Meyering  <jim@meyering.net>
57299
57300         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57301
57302 2006-01-24  Bruno Haible  <bruno@clisp.org>
57303
57304         * modules/strnlen (Maintainer): Change from glibc to all.
57305
57306 2006-01-24  Bruno Haible  <bruno@clisp.org>
57307
57308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57309         Patch by Paul Eggert.
57310
57311 2006-01-24  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57314         already has it.
57315         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57316         2005-11-26.
57317
57318         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57319         'signed char' to avoid problems with the built-in _Bool type.
57320         Reported by Paul Eggert on 2005-11-26.
57321
57322 2006-01-24  Bruno Haible  <bruno@clisp.org>
57323
57324         * gnulib-tool (func_import): Avoid constructing complicated sed
57325         expressions inside backquote.
57326         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57327
57328 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57329
57330         These changes imported from libc.
57331         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57332         test and two separate function calls.
57333         * lib/strndup.c (__strndup): Add libc_hidden_def.
57334
57335 2006-01-23  Simon Josefsson  <jas@extundo.com>
57336
57337         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57338         Remove the test_*_SOURCES variable: automake infers it by default.
57339         * modules/tls-tests: Likewise.
57340
57341 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57342
57343         Work around porting bugs reported by Dieter in
57344         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57345         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57346         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57347         Include "getopt.h" first, to check interface.
57348         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57349         !HAVE_DECL_GETENV.
57350         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57351         (__strndup): Revert to K&R-style function dfns, the glibc style.
57352         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57353         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57354         Include strnlen.h first, to get prototype properly.
57355         (strnlen): Renamed from __strnlen.
57356         Remove weak alias.
57357
57358 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57359
57360         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57361
57362 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57363
57364         * config/srclist.txt: Adjust to reflect glibc reorganization.
57365         This affects only comments.
57366
57367 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57368
57369          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57370          Reported by Bruce Korb <bkorb@gnu.org>.
57371
57372 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57373
57374         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57375         to pacify gcc -Wswitch-default.
57376
57377 2006-01-22  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57380         temporary buffer for sprintf, take into account the precision also
57381         for 'd', 'i', 'u', 'o', 'x', 'X'.
57382
57383 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57384
57385         * modules/argp-tests: New module
57386         * tests/test-argp.c: New file
57387         * tests/test-argp-2.sh: New file
57388
57389 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57390
57391         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57392         (__argp_base_name): Removed
57393         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57394         typo.
57395         (__argp_base_name): Provide macro definition or extern declaration
57396         depending on the configuration
57397
57398 2006-01-20  Simon Josefsson  <jas@extundo.com>
57399
57400         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57401
57402 2006-01-20  Simon Josefsson  <jas@extundo.com>
57403
57404         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57405
57406 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57407
57408         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57409         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57410         Suggested by Bruno Haible.
57411
57412 2006-01-20  Karl Berry  <karl@gnu.org>
57413
57414         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57415         until changes propagate, I guess.
57416
57417 2006-01-19  Simon Josefsson  <jas@extundo.com>
57418
57419         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57420
57421 2006-01-19  Simon Josefsson  <jas@extundo.com>
57422
57423         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57424
57425 2006-01-19  Simon Josefsson  <jas@extundo.com>
57426
57427         * gnulib-tool: Set check_PROGRAMS.
57428
57429         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57430         modules/des-tests, modules/gc-arcfour-tests,
57431         modules/gc-arctwo-tests, modules/gc-des-tests,
57432         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57433         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57434         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57435         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57436         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57437         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57438         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57439         test_*_SOURCES.
57440
57441 2006-01-18  Simon Josefsson  <jas@extundo.com>
57442
57443         * modules/socklen (Depends-on): Depend on sys_socket.
57444
57445 2006-01-18  Simon Josefsson  <jas@extundo.com>
57446
57447         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57448         modules/des-tests, modules/gc-arcfour-tests,
57449         modules/gc-arctwo-tests, modules/gc-des-tests,
57450         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57451         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57452         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57453         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57454         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57455         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57456         $(EXEEXT) to automake TESTS variable, for mingw32.
57457
57458 2006-01-17  Simon Josefsson  <jas@extundo.com>
57459
57460         * modules/socklen (Include): Need sys/socket.h.
57461
57462 2006-01-17  Bruno Haible  <bruno@clisp.org>
57463
57464         * modules/ssize_t (Include): Add <sys/types.h>.
57465
57466 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57467
57468         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57469         it's not portable and it doesn't work with cross-compiles.
57470         Problem reported by Bruno Haible.  Fix missing-$ typo in
57471         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57472         -zignore from being used with Sun's C compiler.
57473
57474 2006-01-12  Simon Josefsson  <jas@extundo.com>
57475
57476         * lib/base64.c: Fix warning, reported by Bruno Haible
57477         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
57478
57479 2006-01-12  Bruno Haible  <bruno@clisp.org>
57480
57481         * modules/ldd: New file.
57482         * build-aux/ldd.sh.in: New file.
57483         * MODULES.html.sh (Support for building libraries and executables): Add
57484         ldd.
57485
57486 2006-01-12  Bruno Haible  <bruno@clisp.org>
57487
57488         * m4/ldd.m4: New file.
57489
57490 2006-01-12  Bruno Haible  <bruno@clisp.org>
57491
57492         * gnulib-tool (func_import, func_create_testdir): Don't go into an
57493         endless loop while replacing $auxdir with build-aux.
57494
57495 2006-01-11  Simon Josefsson  <jas@extundo.com>
57496
57497         * lib/stdint_.h (SIZE_MAX): Add missing (.
57498
57499 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57500
57501         Sync from coreutils.
57502         * lib/md5.c: Fix commentary typos.
57503         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57504         * lib/md5.h (__attribute__): Remove; unused.
57505         * lib/sha1.c: Fix commentary to match md5 better.
57506         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57507         so that we don't need to worry about alignment.  All uses changed.
57508         This merges the 2005-10-28 md5 change into sha1.
57509
57510 2006-01-11  Jim Meyering  <jim@meyering.net>
57511
57512         Sync from coreutils.
57513         * lib/md5.c (OP): Fix spacing.
57514
57515 2006-01-11  Bruno Haible  <bruno@clisp.org>
57516
57517         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57518         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57519         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57520
57521 2006-01-11  Bruno Haible  <bruno@clisp.org>
57522
57523         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57524         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57525         the "early" section as well.
57526
57527 2006-01-11  Bruno Haible  <bruno@clisp.org>
57528
57529         Avoid "ar: no archive members specified" error on MacOS X.
57530         * gnulib-tool (func_modules_add_dummy): New function.
57531         (func_import, func_create_testdir): Invoke it.
57532
57533 2006-01-11  Bruno Haible  <bruno@clisp.org>
57534
57535         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57536         with $auxdir in AC_CONFIG_FILES statements.
57537
57538 2006-01-11  Bruno Haible  <bruno@clisp.org>
57539
57540         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57541         Initialize also noinst_HEADERS to empty.
57542
57543 2006-01-11  Bruno Haible  <bruno@clisp.org>
57544
57545         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57546         variables.
57547         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57548         autoreconf.
57549
57550 2006-01-11  Bruno Haible  <bruno@clisp.org>
57551
57552         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
57553         overridable by the user.
57554         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57555
57556 2006-01-10  Simon Josefsson  <jas@extundo.com>
57557
57558         * modules/sys_socket: New file.
57559
57560 2006-01-10  Simon Josefsson  <jas@extundo.com>
57561
57562         * m4/sys_socket_h.m4: New file.
57563
57564 2006-01-10  Simon Josefsson  <jas@extundo.com>
57565
57566         * lib/socket_.h: New file.
57567
57568 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57569
57570         * modules/readutmp (Maintainer): Add myself.
57571
57572 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57573
57574         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
57575         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
57576         People who are still concerned with buggy memcmp implementations
57577         can invoke gl_FUNC_MEMCMP themselves.
57578
57579 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57580
57581         * lib/regex_internal.h (BITSET_WORD_BITS):
57582         Work around a bug in 64-bit PGC (before version 6.1-2), where the
57583         preprocessor mishandles large unsigned values as if they were signed.
57584         Problem reported by Claudio Fontana in
57585         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
57586
57587 2006-01-10  Jim Meyering  <jim@meyering.net>
57588
57589         Avoid the double-free (first in fts_read, second in fts_close) that
57590         would occur when an `active' directory is made inaccessible (e.g.,
57591         via chmod a-x) during a traversal.
57592         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57593         before returning.  Reproduce this failure by
57594         mkdir -p a/b; cd a; chmod a-x . b
57595         Reported by Stavros Passas.
57596
57597         Sync from coreutils.
57598         * lib/sha1.c: Tweak grammar in a comment.
57599
57600 2006-01-10  Jim Meyering  <jim@meyering.net>
57601
57602         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
57603         Patch by Joerg Sonnenberger.
57604
57605 2006-01-10  Bruno Haible  <bruno@clisp.org>
57606
57607         * modules/readutmp: Depend on module free.
57608         * modules/strtok_r: Depend on module restrict.
57609
57610 2006-01-10  Bruno Haible  <bruno@clisp.org>
57611
57612         * modules/gettext (configure.ac): Add an invocation of
57613         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
57614
57615 2006-01-10  Bruno Haible  <bruno@clisp.org>
57616
57617         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
57618         Reported by Werner Lemberg <wl@gnu.org>.
57619
57620 2006-01-10  Bruno Haible  <bruno@clisp.org>
57621
57622         * lib/localcharset.c: Update from GNU gettext.
57623
57624 2006-01-10  Bruno Haible  <bruno@clisp.org>
57625
57626         * lib/argp.h (__const): Remove macro. Use const instead.
57627         * lib/argp-fmtstream.h (__const): Likewise.
57628         * lib/glob_.h (__const): Remove macro.
57629         * lib/glob-libc.h: Use const instead of __const.
57630
57631 2006-01-10  Bruno Haible  <bruno@clisp.org>
57632
57633         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
57634         variable.
57635         Needed to avoid an automake error regarding the 'gettext' module.
57636
57637 2006-01-09  Simon Josefsson  <jas@extundo.com>
57638
57639         * modules/inet_ntop (Depends-on): Add restrict.
57640
57641 2006-01-09  Simon Josefsson  <jas@extundo.com>
57642
57643         * modules/gc-rijndael-tests (License): Put under LGPL.
57644
57645         * modules/gc-des-tests (License): Likewise.
57646
57647         * modules/gc-arcfour-tests (License): Likewise.
57648
57649         * modules/gc-arctwo-tests (License): Likewise.
57650
57651         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
57652
57653         * modules/gc-hmac-sha1-tests (Files): Likewise.
57654
57655         * modules/gc-hmac-md5-tests (License): Likewise.
57656
57657         * modules/gc-sha1-tests (License): Likewise.
57658
57659         * modules/gc-md5-tests (License): Likewise.
57660
57661         * modules/gc-md4-tests (License): Likewise.
57662
57663         * modules/gc-md2-tests (License): Likewise.
57664
57665         * modules/gc-tests (License): Likewise.
57666
57667         * modules/des-tests (License): Likewise.
57668
57669         * modules/md4-tests (License): Likewise.
57670
57671         * modules/md2-tests (License): Likewise.
57672
57673 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57674
57675         Sync from coreutils:
57676
57677         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
57678         * modules/lib-ignore: New file.
57679         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
57680         chdir-safer.m4, lchmod.m4.
57681         * modules/openat: Add mkdirat.c, openat-priv.h.
57682
57683 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57684
57685         Sync from coreutils.
57686         * m4/lib-ignore.m4: New file.
57687         * m4/lchmod.m4: New file.
57688
57689 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57690
57691         Sync from coreutils.
57692         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
57693         for write access: POSIX says that must fail.
57694         * lib/fts.c (diropen): Likewise.
57695         * lib/save-cwd.c (save_cwd): Likewise.
57696         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
57697         well, for minor improvements on hosts that lack O_DIRECTORY.
57698         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
57699         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
57700         Fall back on chown if open failed with EACCES.
57701
57702         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
57703         Report an error at compile-time if only a 1-second nominal clock
57704         resolution is found.
57705
57706         * lib/lchmod.h: New file.
57707         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
57708         (make_dir_parents): Use lchown rather than chown, and
57709         lchmod rather than chmod.
57710
57711         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
57712         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
57713         "proc" reported by n0dalus.
57714
57715         * lib/mountlist.c: Include <limits.h>.
57716         (dev_from_mount_options)
57717         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
57718         New function.  It no longer assumes "dev=" has the System V meaning
57719         on Linux (since it doesn't).  It also parses "dev=" more carefully.
57720         (read_file_system_list)
57721         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
57722         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
57723         dev= in that case.
57724
57725         * lib/posixtm.h (PDS_PRE_2000): New macro.
57726         * lib/posixtm.c (year): Arg is now syntax_bits rather than
57727         allow_century.  All usages changed.  Reject dates outside the range
57728         1969-1999 if PDS_PRE_2000 is used.
57729
57730 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57731
57732         Sync from coreutils.
57733         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
57734         (Time of day items): Mention the possibility of leap seconds.
57735         Problem reported by Dr. David Alan Gilbert.
57736
57737 2006-01-09  Jim Meyering  <jim@meyering.net>
57738
57739         Sync from coreutils.
57740
57741         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
57742
57743         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
57744
57745         * lib/modechange.c (mode_compile): Reject an invalid mode string
57746         that starts with an octal digit.  From Andreas Gruenbacher.
57747
57748         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
57749         and dup to open_safer and dup_safer, respectively.
57750         (openat_permissive): Fix typo in comment.
57751
57752         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
57753         "gettext.h"; either no longer needed or are guaranteed by openat.h.
57754         (_): Remove; no longer needed.
57755         (openat): Renamed from rpl_openat; no need for rpl_openat
57756         since openat.h renames openat for us.
57757         Replace most of the body with a call to openat_permissive,
57758         to avoid duplicate code.
57759         Port to (probably hypothetical) environments were mode_t is
57760         wider than int.
57761         (openat_permissive): Require mode arg, so that we can check
57762         types better.  Put it just after flags.  Change cwd failure
57763         indicator from pointer-to-bool to pointer-to-errno-value.
57764         All callers changed.
57765         Invoke openat_save_fail and/or openat_restore_fail if
57766         cwd_errno is null, so that openat can call us.
57767         (openat_permissive, fdopendir, fstatat, unlinkat):
57768         Simplify errno handling to avoid some duplicate code,
57769         as it's OK to set errno on success.
57770         * lib/openat.h: Revamp code so that function macros depend on
57771         __OPENAT_PREFIX only, not also on AT_FDCWD.
57772         (openat_ro): Remove.  Caller changed to use openat_permissive.
57773         (openat_permissive): Now a macro, if not a function.
57774         (openat_restore_fail, openat_save_fail): Now always functions,
57775         since mkdirat needs them even if __OPENAT_PREFIX is defined.
57776
57777         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
57778         and openat.c.
57779         * lib/mkdirat.c: Include openat-priv.h.
57780         Remove definitions of macros defined therein.
57781         * lib/openat.c: Likewise.
57782
57783         * lib/mkdirat.c (mkdirat): New file and function.
57784         * lib/openat.h (mkdirat): Declare.
57785
57786         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
57787
57788         * lib/openat.h (openat_permissive): Declare.
57789         (openat_ro): Define.
57790
57791         * lib/openat.c (EXPECTED_ERRNO): New macro.
57792         (openat_permissive): New function -- used in remove.c rewrite.
57793         (all functions): Set errno just before returning, only if there
57794         was an actual failure.
57795         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
57796
57797         Emulate openat-family functions using Linux's procfs, if possible.
57798         Idea and some code based on Ulrich Drepper's glibc changes.
57799
57800         * lib/openat.c: (BUILD_PROC_NAME): New macro.
57801         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
57802         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
57803         before falling back on save_cwd and restore_cwd.
57804         (fdopendir, fstatat, unlinkat): Likewise.
57805
57806         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
57807         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
57808
57809         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
57810         as second argument to va_arg.  Otherwise, some versions of gcc
57811         warn that `if this code is reached, the program will abort'.
57812
57813 2006-01-09  Jim Meyering  <jim@meyering.net>
57814
57815         Sync from coreutils.
57816         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
57817         Require openat-priv.h.
57818
57819 2006-01-09  Bruno Haible  <bruno@clisp.org>
57820
57821         * modules/strnlen (Include): Use strnlen.h.
57822
57823 2006-01-09  Bruno Haible  <bruno@clisp.org>
57824
57825         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
57826
57827 2006-01-09  Bruno Haible  <bruno@clisp.org>
57828
57829         * lib/sysexit_.h (EX_OK): New macro.
57830         Suggested by Martin Lambers <marlam@marlam.de>.
57831
57832 2006-01-09  Bruno Haible  <bruno@clisp.org>
57833
57834         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
57835         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
57836
57837 2006-01-09  Bruno Haible  <bruno@clisp.org>
57838
57839         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
57840         numbers.
57841
57842 2006-01-09  Bruno Haible  <bruno@clisp.org>
57843
57844         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
57845         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
57846         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
57847         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
57848
57849 2006-01-09  Bruno Haible  <bruno@clisp.org>
57850
57851         * build-aux/javacomp.sh.in: New file, moved from lib/.
57852         * modules/javacomp-script (Files): Update.
57853         (configure.ac): Add AC_CONFIG_FILES invocation.
57854         (EXTRA_DIST): Remove variable.
57855
57856         * build-aux/javaexec.sh.in: New file, moved from lib/.
57857         * modules/javaexec (Files): Update.
57858         (configure.ac): Add AC_CONFIG_FILES invocation.
57859         (EXTRA_DIST): Remove javaexec.sh.in.
57860
57861         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
57862         * modules/csharpcomp-script (Files): Update.
57863         (configure.ac): Add AC_CONFIG_FILES invocation.
57864         (EXTRA_DIST): Remove variable.
57865
57866         * build-aux/csharpexec.sh.in: New file, moved from lib/.
57867         * modules/csharpexec (Files): Update.
57868         (configure.ac): Add AC_CONFIG_FILES invocation.
57869         (EXTRA_DIST): Remove csharpexec.sh.in.
57870
57871 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57872
57873         Sync from coreutils.
57874
57875         Add POSIX ACL support
57876         * lib/acl.h (copy_acl, set_acl): Add declarations.
57877         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
57878         systems other than Linux.
57879         (chmod_or_fchmod): New function: use fchmod when possible,
57880         and chmod otherwise.
57881         (file_has_acl): Add a POSIX ACL implementation, with a
57882         Linux-specific subcase.
57883         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
57884         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
57885         acls are unsupported.
57886         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
57887         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
57888         are unsupported.
57889
57890 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57891
57892         Sync from coreutils.
57893         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
57894
57895 2006-01-07  Bruno Haible  <bruno@clisp.org>
57896
57897         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
57898         gl_EARLY.
57899
57900 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57901
57902         * lib/strftime.c (tzname): Don't declare if it is already #defined.
57903         Problem reported for Mingw by Mark Junker.
57904
57905 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57906
57907         * README: Gnulib normally doesn't generate a tarball.
57908
57909 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
57910
57911         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
57912         long int, not int, for nanosecond counts, so that people who are
57913         used to POSIX struct timespec won't be surprised.  Reported by Jim
57914         Meyering.
57915
57916 2005-12-28  Bruno Haible  <bruno@clisp.org>
57917
57918         * build-aux/config.rpath: Update from GNU gettext.
57919
57920 2005-12-16  Jim Meyering  <jim@meyering.net>
57921
57922         * modules/fprintftime: New module.
57923         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
57924
57925 2005-12-16  Jim Meyering  <jim@meyering.net>
57926
57927         * m4/fprintftime.m4: New file.
57928
57929 2005-12-16  Jim Meyering  <jim@meyering.net>
57930
57931         * lib/fprintftime.c, lib/fprintftime.h: New files.
57932
57933 2005-12-15  Simon Josefsson  <jas@extundo.com>
57934
57935         * modules/socklen (configure.ac): Fix M4 macro name, to align with
57936         new m4/socklen.m4.
57937
57938 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57939
57940         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
57941         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
57942
57943 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57944
57945         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
57946         * lib/argp-help.c (fill_in_uparams): Check if the constructed
57947         struct uparams is valid. Fall back to the default values if it is
57948         not.
57949
57950 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57951
57952         * modules/argp (Files): Add argp-pin.c
57953         (Depends-on): dirname
57954         (lib_SOURCES): Add argp-pin.c
57955
57956 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57957
57958         * m4/argp.m4:  Check if program_invocation_name and
57959         program_invocation_short_name are declared and define appropriate
57960         macros if they are not.
57961
57962 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57963
57964         * lib/argp-help.c (__argp_base_name): New function
57965         (__argp_short_program_name): Rewrite using __argp_base_name
57966         * lib/argp-namefrob.h: Define program_invocation_name and
57967         program_invocation_short_name if requested
57968         (__argp_base_name): Add prototype
57969         * lib/argp-parse.c (argp_def): Use gettext wrappers
57970         (argp_default_parser): Use __argp_base_name
57971         * lib/argp-pin.c: New file. Defines program_invocation_name and
57972         program_invocation_short_name on systems that lack them.
57973
57974 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57975
57976         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
57977         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57978         porting problem reported by Georg Schwarz in
57979         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57980
57981 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57982
57983         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
57984         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57985         porting problem reported by Georg Schwarz in
57986         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57987
57988 2005-12-05  Bruno Haible  <bruno@clisp.org>
57989
57990         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
57991         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
57992         Reported by Mark Junker <mjscod@gmx.de>.
57993
57994 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
57995
57996         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
57997         Use implementation from Albert Chin, with some
57998         comments/corrections by Stepan Kasal and myself.
57999
58000 2005-12-02  Bruno Haible  <bruno@clisp.org>
58001
58002         * gnulib-tool (func_import): Accept GPLed build tool modules when
58003         --lgpl is given.
58004         * modules/csharpcomp-script: New file.
58005         * modules/csharpcomp: Depend on it.
58006         * modules/javacomp-script: New file.
58007         * modules/javacomp: Depend on it.
58008         Suggested by Simon Josefsson.
58009
58010 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58011
58012         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58013         statement, to work around an HP-UX 10.20 compiler bug reported by
58014         Peter O'Gorman.
58015
58016 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58017
58018         * modules/savedir (Depends-on): Add openat.
58019
58020 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58021
58022         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58023         (uintmax_t) [defined uintmax_t]: Do not declare.
58024         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58025         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58026         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58027         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58028         sake of portability to weird hosts that C allows (though we don't
58029         know of any practical examples).
58030
58031         * lib/savedir.h (fdsavedir): New decl.
58032         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58033         contains most of the former guts of savedir.
58034         (savedir): Use savedirstream.
58035         Include "openat.h".
58036
58037 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58038
58039         * modules/obstack (Files): Add m4/ulonglong.m4.
58040         Problem reported by Davide Angelocola.
58041
58042 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58043
58044         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58045         coreutils no longer futzes with rounding modes.
58046
58047 2005-11-14  Jim Meyering  <jim@meyering.net>
58048
58049         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58050         replacement of mkstemp.
58051
58052 2005-11-10  Simon Josefsson  <jas@extundo.com>
58053
58054         * lib/readline.c: Remove EOL.
58055
58056 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58057
58058         * modules/gethrxtime (Depends-on): Add gettime.
58059
58060 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58061
58062         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58063         or gettimeofday; no longer needed.
58064
58065 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58066
58067         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58068         time business.
58069         (gethrxtime) [! (HAVE_NANOUPTIME
58070         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58071         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58072         our own approximation.
58073
58074 2005-11-08  Eric Blake  <ebb9@byu.net>
58075
58076         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58077
58078 2005-11-08  Eric Blake  <ebb9@byu.net>
58079
58080         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58081
58082 2005-11-04  Bruno Haible  <bruno@clisp.org>
58083
58084         * gnulib-tool: Implement --update mode.
58085
58086 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         Fix porting problem reported by Theodoros V. Kalamatianos.
58089         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58090         Don't assume that futimes failing means we must fail.
58091
58092 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58093
58094         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58095         variables to suggest the intended function of the PATH_MAX check.
58096
58097 2005-10-30  Kean Johnston  <jkj@sco.com>
58098
58099         Trivial changes to support SCO systems.
58100         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58101         as PATH_MAX.
58102         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58103         where __ptr is null when no I/O is pending.
58104
58105 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58108         leave errno alone.  Problem reported by Dmitry V. Levin.
58109
58110 2005-10-28  Simon Josefsson  <jas@extundo.com>
58111
58112         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58113         Test more.
58114
58115         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58116
58117         * modules/md2, modules/md2-tests: New files.
58118
58119 2005-10-28  Simon Josefsson  <jas@extundo.com>
58120
58121         * m4/inet_ntop.m4: More tests.
58122
58123         * m4/gc-md2.m4, md2.m4: New file.
58124
58125 2005-10-28  Simon Josefsson  <jas@extundo.com>
58126
58127         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58128         "restrict" keywords, as per POSIX.  Protect the function
58129         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58130         Don't use K&R prototypes.  Check the sprintf return values.
58131         Re-define EAFNOSUPPORT if not present.  Indent.
58132
58133         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58134         suggested by Bruno Haible <bruno@clisp.org>.
58135
58136         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58137
58138         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58139
58140         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58141         libgcrypt).
58142
58143         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58144
58145         * lib/md2.h, lib/md2.c: New files.
58146
58147 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58148
58149         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58150         errno alone.  Problem reported by Frederic Jolliton.
58151
58152 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58153
58154         * modules/verify (License): Change from GPL to LGPL.  This is a
58155         tiny module and there are apparently near-equivalents that are
58156         under the BSD license.
58157
58158 2005-10-24  Simon Josefsson  <jas@extundo.com>
58159
58160         * modules/sha1: Relicense to LGPL.
58161
58162 2005-10-24  Simon Josefsson  <jas@extundo.com>
58163
58164         * lib/md4.h: Shrink buffer size, now that we changed the type.
58165
58166 2005-10-23  Simon Josefsson  <jas@extundo.com>
58167
58168         * gnulib-tool (func_import): Fix --tests-base.
58169
58170 2005-10-22  Simon Josefsson  <jas@extundo.com>
58171
58172         * modules/arcfour (Depends-on): Need stdint.
58173
58174 2005-10-22  Simon Josefsson  <jas@extundo.com>
58175
58176         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58177         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58178
58179 2005-10-22  Simon Josefsson  <jas@extundo.com>
58180
58181         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58182         suggested by Bruno Haible <bruno@clisp.org>.
58183
58184 2005-10-22  Simon Josefsson  <jas@extundo.com>
58185
58186         * lib/crc.h: Include stddef.h, for size_t.
58187
58188 2005-10-22  Simon Josefsson  <jas@extundo.com>
58189
58190         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58191         arcfour_context struct (simplify test vector testing in GNU
58192         Shishi).
58193
58194 2005-10-21  Simon Josefsson  <jas@extundo.com>
58195
58196         * modules/des, modules/des-tests: New files.
58197
58198         * modules/gc-des, modules/gc-des-tests: New files.
58199
58200         * tests/test-des.c, tests/test-gc-des.c: New file.
58201
58202 2005-10-21  Simon Josefsson  <jas@extundo.com>
58203
58204         * modules/arctwo, modules/arctwo-tests: New files.
58205
58206         * tests/test-arctwo.c: New file.
58207
58208         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58209
58210         * tests/test-gc-arctwo.c: New file.
58211
58212 2005-10-21  Simon Josefsson  <jas@extundo.com>
58213
58214         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58215         Bruno Haible <bruno@clisp.org>.
58216
58217         * m4/gc-des.m4: New file.
58218
58219 2005-10-21  Simon Josefsson  <jas@extundo.com>
58220
58221         * m4/arctwo.m4: New file.
58222
58223         * m4/gc-arctwo.m4: New file.
58224
58225 2005-10-21  Simon Josefsson  <jas@extundo.com>
58226
58227         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58228         block.
58229
58230 2005-10-21  Simon Josefsson  <jas@extundo.com>
58231
58232         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58233         <bruno@clisp.org>.
58234
58235         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58236
58237         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58238         Bruno Haible <bruno@clisp.org>.
58239
58240         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58241         <bruno@clisp.org>.
58242
58243 2005-10-21  Simon Josefsson  <jas@extundo.com>
58244
58245         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58246
58247 2005-10-21  Simon Josefsson  <jas@extundo.com>
58248
58249         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58250
58251 2005-10-21  Simon Josefsson  <jas@extundo.com>
58252
58253         * lib/des.h, lib/des.c: New files.
58254
58255         * lib/gc-gnulib.c: Support DES.c
58256
58257 2005-10-21  Simon Josefsson  <jas@extundo.com>
58258
58259         * lib/arctwo.h, lib/arctwo.c: New files.
58260
58261         * lib/gc-gnulib.c: Support ARCTWO.
58262
58263 2005-10-21  Simon Josefsson  <jas@extundo.com>
58264
58265         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58266         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58267
58268 2005-10-21  Simon Josefsson  <jas@extundo.com>
58269
58270         * gnulib-tool (func_import, func_create_testdir): Define automake
58271         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58272         Makefile.am snippet),
58273         suggested by Bruno Haible <bruno@clisp.org>.
58274
58275         * modules/gc (Makefile.am): Use it.
58276
58277 2005-10-21  Bruno Haible  <bruno@clisp.org>
58278
58279         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58280         patch.
58281
58282 2005-10-19  Simon Josefsson  <jas@extundo.com>
58283
58284         * tests/test-gc-rijndael.c: New file.
58285
58286         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58287
58288 2005-10-19  Simon Josefsson  <jas@extundo.com>
58289
58290         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58291         interface too.
58292
58293 2005-10-19  Simon Josefsson  <jas@extundo.com>
58294
58295         * tests/test-gc-arcfour.c: New file.
58296
58297         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58298
58299 2005-10-19  Simon Josefsson  <jas@extundo.com>
58300
58301         * modules/gc-md4, modules/gc-md4-tests: New file.
58302
58303         * tests/test-gc-md4.c: New file.
58304
58305 2005-10-19  Simon Josefsson  <jas@extundo.com>
58306
58307         * m4/gc-md4.m4: New file.
58308
58309 2005-10-19  Simon Josefsson  <jas@extundo.com>
58310
58311         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58312         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58313         <kasal@ucw.cz>.
58314
58315 2005-10-19  Simon Josefsson  <jas@extundo.com>
58316
58317         * m4/gc-arcfour.m4: New file.
58318
58319         * m4/gc-rijndael.m4: New file.
58320
58321 2005-10-19  Simon Josefsson  <jas@extundo.com>
58322
58323         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58324
58325 2005-10-19  Simon Josefsson  <jas@extundo.com>
58326
58327         * lib/gc-gnulib.c: Support ARCFOUR.
58328
58329 2005-10-19  Simon Josefsson  <jas@extundo.com>
58330
58331         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58332         support.
58333
58334         * lib/gc.h: Add ECB enum type.
58335
58336         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58337
58338 2005-10-18  Simon Josefsson  <jas@extundo.com>
58339
58340         * tests/test-md5.c: New file.
58341
58342         * modules/md5-tests: New file.
58343
58344 2005-10-18  Simon Josefsson  <jas@extundo.com>
58345
58346         * tests/test-md4.c: New file.
58347
58348         * modules/md4, modules/md4-tests: New files.
58349
58350 2005-10-18  Simon Josefsson  <jas@extundo.com>
58351
58352         * m4/md4.m4: New file.
58353
58354 2005-10-18  Simon Josefsson  <jas@extundo.com>
58355
58356         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58357
58358 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58359
58360         * gnulib-tool (func_create_testdir): Omit the second check whether
58361         BUILT_SOURCES in nonempty.
58362
58363 2005-10-17  Simon Josefsson  <jas@extundo.com>
58364
58365         * tests/test-rijndael.c: New file.
58366
58367 2005-10-17  Simon Josefsson  <jas@extundo.com>
58368
58369         * modules/sha1: Depend on stdint instead of md5.
58370
58371         * modules/md5: Depend on stdint, remove uint32_t.
58372
58373 2005-10-17  Simon Josefsson  <jas@extundo.com>
58374
58375         * modules/gc-sha1-tests: New file.
58376
58377         * tests/test-gc-sha1.c: New file.
58378
58379 2005-10-17  Simon Josefsson  <jas@extundo.com>
58380
58381         * m4/md5.m4: Remove call to uint32_t.m4.
58382
58383 2005-10-17  Simon Josefsson  <jas@extundo.com>
58384
58385         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58386
58387         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58388         md5.h.
58389
58390         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58391
58392         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58393
58394 2005-10-17  Simon Josefsson  <jas@extundo.com>
58395
58396         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58397
58398 2005-10-17  Simon Josefsson  <jas@extundo.com>
58399
58400         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58401
58402 2005-10-17  Simon Josefsson  <jas@extundo.com>
58403
58404         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58405
58406         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58407
58408 2005-10-17  Bruno Haible  <bruno@clisp.org>
58409
58410         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58411         that it can also be used in a test.
58412
58413 2005-10-16  Bruno Haible  <bruno@clisp.org>
58414
58415         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58416         TESTS_ENVIRONMENT, so that individual tests can augment it.
58417
58418         * gnulib-tool (func_create_testdir): Use an intermediate target for
58419         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58420         macros, like $(ALLOCA_H), which cannot be passed through the command
58421         line.
58422
58423 2005-10-15  Simon Josefsson  <jas@extundo.com>
58424
58425         * modules/rijndael-tests: New file.
58426
58427         * modules/rijndael: New file.
58428
58429 2005-10-15  Simon Josefsson  <jas@extundo.com>
58430
58431         * m4/rijndael.m4: New file.
58432
58433 2005-10-15  Simon Josefsson  <jas@extundo.com>
58434
58435         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58436
58437         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58438
58439 2005-10-14  Simon Josefsson  <jas@extundo.com>
58440
58441         * tests/test-arcfour.c: New file.
58442
58443         * modules/arcfour, modules/arcfour-tests: New files.
58444
58445 2005-10-14  Simon Josefsson  <jas@extundo.com>
58446
58447         * m4/arcfour.m4: New file.
58448
58449 2005-10-14  Simon Josefsson  <jas@extundo.com>
58450
58451         * lib/arcfour.h, lib/arcfour.c: New files.
58452
58453 2005-10-14  Roland McGrath  <roland@redhat.com>
58454
58455         Import from libc.  [BZ #1331]
58456         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58457         macro argument.
58458         Reported by Matej Vela <vela@debian.org>.
58459
58460 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58461
58462         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58463         include <wchar.h>; no longer needed.
58464
58465 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58466
58467         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58468
58469 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58470         and  Ulrich Drepper  <drepper@redhat.com>
58471
58472         Import from libc.
58473         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58474         instead of inline stream orientation test and two separate
58475         function calls.  Pay no attention to USE_IN_LIBIO.
58476
58477 2005-10-13  Simon Josefsson  <jas@extundo.com>
58478
58479         * modules/gc-hmac-md5-tests: New file.
58480
58481         * tests/test-gc-hmac-sha1.c: New file.
58482
58483         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
58484
58485         * modules/gc-hmac-md5-tests: New file.
58486
58487         * tests/test-gc-md5.c: New file.
58488
58489         * modules/gc-md5-tests: New file.
58490
58491 2005-10-13  Simon Josefsson  <jas@extundo.com>
58492
58493         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
58494         Move memory allocation outside of loop.
58495
58496 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58497
58498         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
58499         intermediate directory is in a read-only file system.  Problem
58500         reported by Eric Blake.
58501
58502 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
58503
58504         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58505
58506 2005-10-12  Simon Josefsson  <jas@extundo.com>
58507
58508         * tests/test-hmac-sha1.c: New file.
58509
58510         * modules/hmac-sha1-tests: New file.
58511
58512         * modules/hmac-sha1: New file.
58513
58514 2005-10-12  Simon Josefsson  <jas@extundo.com>
58515
58516         * modules/gc-sha1: New file.
58517
58518 2005-10-12  Simon Josefsson  <jas@extundo.com>
58519
58520         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58521
58522         * tests/test-gc-pbkdf2-sha1.c: New file.
58523
58524 2005-10-12  Simon Josefsson  <jas@extundo.com>
58525
58526         * modules/gc-md5, modules/gc-hmac-md5: New files.
58527
58528         * modules/gc (Files): Remove md5, memxor and hmac files.
58529
58530 2005-10-12  Simon Josefsson  <jas@extundo.com>
58531
58532         * m4/gc-pbkdf2-sha1.m4: New file.
58533
58534         * m4/gc-hmac-sha1.m4: New file.
58535
58536         * m4/gc-sha1: New file.
58537
58538         * m4/hmac-sha1.m4: New file.
58539
58540 2005-10-12  Simon Josefsson  <jas@extundo.com>
58541
58542         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58543
58544         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58545
58546 2005-10-12  Simon Josefsson  <jas@extundo.com>
58547
58548         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58549         suggested by Bruno Haible <bruno@clisp.org>.
58550
58551 2005-10-12  Simon Josefsson  <jas@extundo.com>
58552
58553         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
58554
58555 2005-10-12  Simon Josefsson  <jas@extundo.com>
58556
58557         * lib/gc-pbkdf2-sha1.c: New file.
58558
58559         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
58560
58561 2005-10-12  Simon Josefsson  <jas@extundo.com>
58562
58563         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
58564
58565         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
58566
58567 2005-10-12  Simon Josefsson  <jas@extundo.com>
58568
58569         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
58570         GC_USE_HMAC_MD5, respectively.
58571
58572         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
58573         (gc_md5): Fix typo.
58574
58575         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
58576
58577         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
58578
58579         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
58580
58581 2005-10-12  Bruno Haible  <bruno@clisp.org>
58582
58583         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
58584         Reported by Stepan Kasal <kasal@ucw.cz>.
58585
58586 2005-10-11  Simon Josefsson  <jas@extundo.com>
58587
58588         * tests/test-crc.c: New file.
58589
58590         * modules/crc, modules/crc-tests: New files.
58591
58592 2005-10-11  Simon Josefsson  <jas@extundo.com>
58593
58594         * m4/crc.m4: New file.
58595
58596 2005-10-11  Simon Josefsson  <jas@extundo.com>
58597
58598         * lib/gc.h: Add gc_hash and gc_hash_buffer.
58599
58600         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
58601
58602         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
58603
58604 2005-10-11  Simon Josefsson  <jas@extundo.com>
58605
58606         * lib/crc.h, lib/crc.c: New files.
58607
58608         * lib/gc.h (gc_hash_buffer): Add doc.
58609
58610 2005-10-11  Bruno Haible  <bruno@clisp.org>
58611
58612         * modules/c-strcasestr: New file.
58613         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
58614
58615 2005-10-11  Bruno Haible  <bruno@clisp.org>
58616
58617         * modules/c-strcase: New file.
58618         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
58619
58620 2005-10-11  Bruno Haible  <bruno@clisp.org>
58621
58622         * lib/strcasecmp.c: Include limits.h.
58623         (strcasecmp): Avoid integer overflow on exotic platforms.
58624         * lib/strncasecmp.c: Include limits.h.
58625         (strncasecmp): Avoid integer overflow on exotic platforms.
58626         Reported by Paul Eggert.
58627
58628 2005-10-11  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/c-strcasestr.h: New file, from GNU gettext.
58631         * lib/c-strcasestr.c: New file, from GNU gettext.
58632
58633 2005-10-11  Bruno Haible  <bruno@clisp.org>
58634
58635         * lib/c-strcase.h: New file, from GNU gettext.
58636         * lib/c-strcasecmp.c: New file, from GNU gettext.
58637         * lib/c-strncasecmp.c: New file, from GNU gettext.
58638
58639 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58640
58641         * modules/mempcpy (License): GPL -> LGPL.
58642         * modules/strchrnul (License): Likewise.
58643         * modules/sysexits (License): Likewise.
58644
58645 2005-10-08  Simon Josefsson  <jas@extundo.com>
58646
58647         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
58648
58649 2005-10-07  Simon Josefsson  <jas@extundo.com>
58650
58651         * m4/memxor.m4: Remove gl_C_RESTRICT call.
58652
58653 2005-10-06  Simon Josefsson  <jas@extundo.com>
58654
58655         * tests/test-hmac-md5.c: New file.
58656
58657         * modules/hmac-md5-tests: New file.
58658
58659         * modules/hmac-md5: New file.
58660
58661 2005-10-06  Simon Josefsson  <jas@extundo.com>
58662
58663         * m4/hmac-md5.m4: New file.
58664
58665         * m4/memxor.m4: Require gl_C_RESTRICT.
58666
58667 2005-10-06  Simon Josefsson  <jas@extundo.com>
58668
58669         * lib/memxor.c (memxor): Avoid casts and warnings.
58670
58671 2005-10-06  Simon Josefsson  <jas@extundo.com>
58672
58673         * lib/hmac-md5.c: New file.
58674
58675         * lib/hmac.h: New file.
58676
58677 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58678
58679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
58680         promotes to int, not unsigned int, to catch the AIX 5.3
58681         compiler bug.
58682
58683 2005-10-05  Simon Josefsson  <jas@extundo.com>
58684
58685         * modules/memxor: New file.
58686
58687         * modules/iconv (Files): Move config.rpath to havelib, it is used
58688         there.
58689
58690         * modules/havelib (Files): Add config.rpath.
58691
58692 2005-10-05  Simon Josefsson  <jas@extundo.com>
58693
58694         * m4/memxor.m4: New file.
58695
58696 2005-10-05  Simon Josefsson  <jas@extundo.com>
58697
58698         * lib/memxor.c (memxor): Fix compiler error.
58699
58700         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
58701         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
58702
58703         * lib/memxor.h, lib/memxor.c: New files.
58704
58705         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
58706         we assume all systems have it, suggested by Jim Meyering
58707         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
58708         any systems lack sys/socket.h; mingw32 is known to lack it, but we
58709         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
58710         same reasons.
58711
58712 2005-10-05  Simon Josefsson  <jas@extundo.com>
58713
58714         * config/srclist.txt: Add glibc bug 1423 for md5.h.
58715
58716 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58717
58718         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
58719         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
58720         needed, since the source code now assumes these .h files.
58721
58722 2005-10-05  Derek Price  <derek@ximbiot.com>
58723
58724         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
58725
58726 2005-10-05  Bruno Haible  <bruno@clisp.org>
58727
58728         * modules/stdint (License): Change to LGPL.
58729
58730 2005-10-04  Simon Josefsson  <jas@extundo.com>
58731
58732         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
58733         D. Baushke" <mdb@gnu.org>.
58734
58735 2005-10-04  Bruno Haible  <bruno@clisp.org>
58736
58737         * lib/verify.h (verify_true): Provide alternative definition for C++.
58738
58739 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58740
58741         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
58742         (SSIZE_MAX): New macro, if not already defined.
58743         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
58744         than 2 GiB.
58745
58746 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58747
58748         Sync from coreutils.
58749         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
58750         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
58751         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
58752         ULLONG_MAX doesn't work with 2.7.2.1.
58753
58754 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58755
58756         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
58757         From Ben Pfaff.
58758
58759         * modules/exclude (Depends-on): Depend on verify.
58760         * modules/strtoimax (Depends-on): Likewise.
58761         * modules/utimecmp (Depends-on): Likewise.
58762
58763 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58764
58765         * lib/exclude.c: Include verify.h.
58766         (verify): Remove.  All callers changed to use verify.h's version.
58767         * lib/strtoimax.c: Likewise.
58768         * lib/utimecmp.c: Likewis.e
58769
58770         Sync from coreutils.
58771         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
58772         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
58773         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
58774         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
58775         bother returning ENOSYS if settimeofday or stime fails; just let
58776         them return whatever errno they want to return.
58777         * lib/utimens.c: Include unistd.h, for dup2.
58778         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
58779         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
58780
58781 2005-10-02  Jim Meyering  <jim@meyering.net>
58782
58783         Sync from coreutils.
58784         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
58785         from glibc-2.2.5 that fails for read-only files.
58786
58787 2005-10-02  Jim Meyering  <jim@meyering.net>
58788
58789         Sync from coreutils.
58790         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
58791         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
58792         `#if HAVE_CONFIG_H'.
58793         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
58794         Remove AT_FDCWD test.
58795         Do not consume the fd unless successful.
58796         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
58797         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
58798         block, so that we don't even try to compile it if settimeofday is
58799         available.  This works around a compilation failure on OSF1 V5.1,
58800         due to stime requiring a `long int*' while tv_sec is `int'.
58801
58802 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
58803
58804         Sync from coreutils.
58805         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
58806         against `yes', rather than just testing for nonempty.
58807
58808 2005-10-01  Simon Josefsson  <jas@extundo.com>
58809
58810         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
58811         and Darwin.
58812
58813         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
58814         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
58815         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
58816         freeaddrinfo and gai_strerror are declared by the POSIX headers.
58817         Check if struct addrinfo is declared.
58818
58819 2005-10-01  Simon Josefsson  <jas@extundo.com>
58820
58821         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
58822         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
58823         AI_* and EAI_* definitions.  Protect function declarations.
58824
58825 2005-10-01  Jim Meyering  <jim@meyering.net>
58826
58827         Sync from coreutils.
58828
58829         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
58830         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
58831         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
58832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58833         in the inet and nsl libraries.  Required on Solaris 5.7.
58834
58835 2005-10-01  Jim Meyering  <jim@meyering.net>
58836
58837         Sync from coreutils.
58838         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58839         in the inet and nsl libraries.  Required on Solaris 5.7.
58840
58841 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
58842
58843         * lib/getdelim.c (getdelim): Remove unused variables.
58844
58845 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58846
58847         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
58848         so that the code works even with ancient cpp.  Portability problem
58849         with GCC 2.7.2.1 reported by Thomas M.Ott.
58850
58851 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58852
58853         * modules/regex (Depends-on): Add strcase.
58854
58855         * modules/gethostname (Licence): Change from GPL to LGPL, since
58856         gethostname.c is a trivial implementation of a standard library
58857         function.
58858         * modules/poll (License): Change from GPL to LGPL, since it's
58859         derived from LGPL code.
58860
58861 2005-09-27  Jim Meyering  <jim@meyering.net>
58862
58863         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
58864         HAVE_CONFIG_H.
58865
58866         * lib/intprops.h (signed_type_or_expr__): Define.
58867         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
58868         for unsigned types.
58869
58870 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58871
58872         * lib/verify.h (verify_expr): Remove, replacing with:
58873         (verify_true): New macro that returns true instead of void.
58874         (verify_type__): Remove.
58875         (verify): Use verify_true rather than verify_type__.
58876
58877 2005-09-26  Bruno Haible  <bruno@clisp.org>
58878
58879         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
58880         is necessary.
58881         (lib_SOURCES): Remove mbchar.c.
58882         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
58883         (Files): Add m4/mbrtowc.m4.
58884         * modules/mbiter: Likewise.
58885         * modules/mbuiter: Likewise.
58886
58887 2005-09-26  Bruno Haible  <bruno@clisp.org>
58888
58889         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
58890         compile mbchar.c if they are not both present.
58891         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
58892         * m4/mbiter.m4 (gl_MBITER): Likewise.
58893         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
58894         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
58895         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
58896
58897 2005-09-25  Jim Meyering  <jim@meyering.net>
58898
58899         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
58900         also uses socklen_t.
58901
58902 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
58903
58904         * lib/utimens.c (ENOSYS): Define if not already defined.
58905         (futimens): Support having a null PATH if the file descriptor
58906         is nonnegative.
58907
58908         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
58909         Remove.
58910         (__attribute): Define to empty unless GCC 3.1 or later.
58911         This works around a core dump on OpenBSD 3.4, which has GCC
58912         2.95.3, which dumps core when given __attribute__(()).  It also
58913         simplifies other tests, since we really don't want to bother with
58914         worrying about which ancient version of GCC supported what.
58915         Original problem reported by Yoann Vandoorselaere, with part of
58916         the fix suggested by Derek Price.
58917
58918 2005-09-24  Jim Meyering  <jim@meyering.net>
58919
58920         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
58921         so we can once again use a positive bitfield width of 1 -- now we
58922         don't have to explain why we were using a bitfield width of 2.
58923
58924 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58925
58926         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
58927         and similarly for the other external symbols.  Problem reported
58928         by James Gallager.
58929
58930         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
58931         bug reported by Jim Meyering.
58932
58933         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
58934         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
58935         not needed, since socklen is a prerequisite module.
58936
58937 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58938
58939         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
58940         Problem reported by Eric Blake.
58941         (getaddrinfo): Initialize se so that it's not garbage.
58942         Redo internal storage allocation so that it doesn't make unportable
58943         assumptions about alignment.
58944         Fix a memory leak.
58945
58946         * lib/utimens.c (futimens): Use futimesat if available.
58947         Prefer it to futimes since it doesn't have the futimes bug.
58948
58949         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
58950         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
58951         Instead, declare a function that returns a pointer to an array,
58952         and use verify_type__ to declare the size of the array.
58953         Problem and germ of a solution reported by Bruno Haible.
58954         (verify_type__): Use 2, not 1, for bitfield size, to avoid
58955         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
58956
58957 2005-09-23  Jim Meyering  <jim@meyering.net>
58958
58959         Sync from coreutils.
58960         Correct build failure (socklen_t not defined) on at least
58961         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
58962         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
58963
58964 2005-09-23  Jim Meyering  <jim@meyering.net>
58965
58966         * modules/getaddrinfo (Depends-on): Add socklen.
58967
58968 2005-09-23  Bruno Haible  <bruno@clisp.org>
58969
58970         * tests/test-verify.c: New file.
58971
58972 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58973
58974         Sync from coreutils.
58975
58976         * modules/argmatch (Depends-on): Add verify.
58977         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
58978         unistd-safer.
58979         * modules/save-cwd (Depends-on): Likewise.
58980
58981         * modules/openat (Files): Add lib/openat-die.c.
58982         (Depends-on): Remove error, exitfail.
58983         Add dirname.
58984
58985         * modules/verify: New file.
58986         * MODULES.html.sh (Diagnostics <assert.h>): New section,
58987         with "verify" module.
58988
58989 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58990
58991         Sync from coreutils.
58992
58993         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
58994         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
58995         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
58996         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
58997         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
58998         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
58999         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59000         Don't bother checking for string.h, stdlib.h, unistd.h.
59001         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59002         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59003         module's job.
59004         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59005         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59006
59007         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59008         (gl_GETDATE): Use it.
59009
59010         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59011
59012 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59013
59014         Sync from coreutils.
59015
59016         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59017         stat-time.h.
59018         * lib/argmatch.h: Include verify.h
59019         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59020         (ARGMATCH_ASSERT): Remove; unused.
59021         * lib/canonicalize.c: Assume STDC_HEADERS.
59022         * lib/exclude.c: Include "strcase.h".
59023         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59024         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59025         and stdio-safer.h.
59026         (getusershell): Call fopen, not fopen_safer.
59027         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59028         Do not include unistd-safer.h.
59029         (save_cwd): Don't call fd_safer; no longer needed
59030         now that we include fcntl--.h.
59031
59032         * lib/getdate.y (relative_time): New type.
59033         (RELATIVE_TIME_0): New constant.
59034         (parser_control): Use relative_time instead of doing it ourselves.
59035         (%union): Add new relative_time rel member.
59036         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59037         Now typeless.
59038         (relunit, relunit_snumber): Now of type rel.
59039         (zone, rel, relunit, get_date): Adjust to above changes.
59040
59041         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59042         Do not include unistd-safer.h.
59043         (getloadavg): Don't call fd_safer; no longer needed
59044         now that we include fcntl--.h.
59045
59046         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59047         (make_dir_parents): Treat ENOSYS like EEXIST.
59048
59049         Improve quality of diagnostics on restore_cwd failure.
59050         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59051         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59052         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59053         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59054         each time through the loop.  Do not diagnose restore_cwd failure;
59055         that is the caller's job (and perhaps the caller does not care).
59056
59057         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59058         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59059         If the file already exists but is not a directory, don't bother
59060         to try to make its parents.
59061         Close potential file descriptor leak if we can't chdir("/") (!).
59062         Don't always return true if chdir($PWD) fails; return true only
59063         if the requested action was done successfully (except for the
59064         chdir($PWD)).
59065         Don't log final directory unless we actually made it.
59066         Refactor to avoid duplicate code to fix up permissions.
59067         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59068
59069         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59070         to make it a bit faster and (I hope) clearer.
59071         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59072         Fix bug in formats like %2N.
59073
59074         * lib/verify.h: New file.
59075
59076 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59077
59078         Sync from coreutils.
59079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59080
59081 2005-09-22  Jim Meyering  <jim@meyering.net>
59082
59083         Sync from coreutils.
59084
59085         * m4/lstat.m4 (gl_FUNC_LSTAT):
59086         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59087         Remove obsolete comment.
59088         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59089         * m4/xstrtod.m4: Likewise.
59090
59091         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59092
59093 2005-09-22  Jim Meyering  <jim@meyering.net>
59094
59095         Sync from coreutils.
59096
59097         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59098
59099         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59100         the .tm_year member, since otherwise gcc-4.0 would now warn about
59101         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59102
59103         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59104         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59105
59106         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59107         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59108         when run in a time zone for which daylight savings time is in effect
59109         for the starting date.
59110
59111         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59112         stop us from restricting permissions of just-created absolute-named
59113         directories.
59114         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59115         to restore initial working directory.
59116         * lib/mkdir-p.c (make_dir_parents): New parameter:
59117         different_working_dir, to tell caller if/when we change the working
59118         directory and are unable to return to the initial one.
59119         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59120         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59121         `return false'.  This fixes a bug introduced on 2004-07-30.
59122
59123         * lib/openat.c (fdopendir): Be sure to close the supplied
59124         file descriptor before returning.  This makes our replacement
59125         implementation a little closer to Solaris's, where fdopendir
59126         ties the file descriptor to the returned DIR* pointer.
59127         * lib/openat.c (unlinkat): New function.
59128         * lib/openat.h (unlinkat): Add prototype.
59129         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59130         (openat_restore_fail): Rename from openat_restore_die.
59131         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59132
59133         Provide an alternative to exiting immediately upon save_cwd or
59134         restore_cwd failure.  Now, an application can arrange e.g.,
59135         to perform a longjump in that case.
59136         * lib/openat.c: Include dirname.h.
59137         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59138         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59139         and openat_restore_die rather than calling error directly.
59140         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59141
59142         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59143         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59144         define.
59145
59146         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59147         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59148                             int utc, int nanoseconds);
59149         Background:
59150         date should not have to allocate a megabyte of virtual memory to
59151         handle a format argument like +%1048575T.  When implemented with
59152         strftime, it must allocate such a buffer, use strftime to fill it
59153         in, print it, then free it.
59154         With fprintftime, it simply prints everything and exits.
59155         With no need for memory allocation, that's one fewer way to fail.
59156         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59157         optional field width, not before, so we accept %9:z, not %:9z.
59158         (my_strftime): Be sure to use L_('x') for literals.
59159
59160         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59161         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59162         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59163         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59164         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59165         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59166         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59167         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59168         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59169         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59170         * lib/xgethostname.c, lib/xreadlink.c:
59171         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59172
59173         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59174         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59175         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59176         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59177         and don't include <sys/file.h>).
59178
59179 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59180
59181         Sync from coreutils.
59182
59183         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59184         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59185         [!LDAV_DONE]: Avoid unused variable warning.
59186
59187 2005-09-21  Bruno Haible  <bruno@clisp.org>
59188
59189         * lib/unicodeio.h (unicode_to_mb): New declaration.
59190
59191 2005-09-20  Derek Price  <derek@ximbiot.com>
59192
59193         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59194         getaddrinfo.h.
59195
59196 2005-09-20  Bruno Haible  <bruno@clisp.org>
59197
59198         * gnulib-tool: Remove trailing slashes from the values specified for
59199         --source-base, --m4-base, --tests-base, --aux-dir.
59200         Suggested by Simon Josefsson <jas@extundo.com>.
59201
59202 2005-09-20  Bruno Haible  <bruno@clisp.org>
59203
59204         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59205         func_modules_to_filelist, func_import, func_create_testdir): Make all
59206         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59207         change when gnulib-tool is invoked in a different locale.
59208
59209 2005-09-19  Simon Josefsson  <jas@extundo.com>
59210
59211         * m4/socklen.m4: Fix typo.
59212
59213 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59214
59215         Use a consistent style for including <config.h>.
59216         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59217         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59218         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59219         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59220         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59221         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59222         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59223         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59224         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59225         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59226         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59227         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59228         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59229         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59230         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59231         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59232         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59233         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59234         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59235         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59236         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59237         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59238         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59239         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59240         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59241         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59242         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59243         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59244         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59245         lib/xstrtoumax.c, lib/yesno.c:
59246         Standardize inclusion of config.h.
59247         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59248         lib/inttostr.h:  Removed inclusion of config.h from header files.
59249         * lib/inttostr.c:  Adjusted in-tree users.
59250         * lib/timespec.h: Remove superfluous warning to include config.h.
59251         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59252         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59253         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59254         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59255         config.h with HAVE_CONFIG_H.
59256
59257 2005-09-19  Jim Meyering  <jim@meyering.net>
59258
59259         * modules/pathmax (License): Change to LGPL.
59260
59261 2005-09-19  Derek Price  <derek@ximbiot.com>
59262
59263         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59264
59265 2005-09-19  Bruno Haible  <bruno@clisp.org>
59266
59267         * gnulib-tool (import): Provide default for --tests-base.
59268
59269 2005-09-19  Bruno Haible  <bruno@clisp.org>
59270
59271         * doc/quote.texi: New file, extracted from gnulib.texi.
59272         * doc/ctime.texi: New file, extracted from gnulib.texi.
59273         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59274         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59275         * doc/gnulib.texi: Include them.
59276
59277 2005-09-18  Bruno Haible  <bruno@clisp.org>
59278
59279         Portability fix.
59280         * gnulib-tool (func_readlink): New function.
59281         (func_ln_if_changed): Use it.
59282
59283 2005-09-18  Bruno Haible  <bruno@clisp.org>
59284
59285         * gnulib-tool: Support --with-tests also with --import.
59286         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59287         (func_import): Use variables $testsbase and $inctests. Emit a
59288         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59289         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59290         SUBDIRS += $testsdir.
59291         (func_create_testdir): Update.
59292
59293 2005-09-18  Bruno Haible  <bruno@clisp.org>
59294
59295         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59296         instead of $dry_run.
59297         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59298         (func_ln_if_changed): Don't handle dry-run here.
59299         (func_import): In dry-run mode, detect more precisely which actions
59300         would be performed, and don't use "...ing" verbs.
59301
59302 2005-09-18  Bruno Haible  <bruno@clisp.org>
59303
59304         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59305         (func_import): Use join on two temporary files instead of three nested
59306         loops, in order to determine which files are new or old.
59307
59308 2005-09-18  Bruno Haible  <bruno@clisp.org>
59309
59310         * gnulib-tool (func_import): Comment out code that spits out the
59311         new files with --dry-run.
59312
59313 2005-09-18  Bruno Haible  <bruno@clisp.org>
59314
59315         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59316
59317 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59318
59319         * lib/stat-time.h: New file.
59320         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59321         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59322         in a different way.
59323         (timespec_cmp): New function.
59324         * lib/utimecmp.c: Include stat-time.h.
59325         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59326         members exist, not on the obsolescent ST_MTIM_NSEC.
59327         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59328
59329 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59330
59331         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59332
59333 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59334
59335         * MODULES.html.sh (File system functions): Add stat-time.
59336         * modules/stat-time: New file.
59337         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59338         is now done in a different way, by the stat-time module.
59339         * modules/utimecmp (Depends-on): Add stat-time.
59340
59341 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59342
59343         * m4/st_mtim.m4: Remove.  Superseded by...
59344         * m4/stat-time.m4: New file.
59345         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59346         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59347
59348 2005-09-15  Derek Price  <derek@ximbiot.com>
59349
59350         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59351
59352 2005-09-15  Derek Price  <derek@ximbiot.com>
59353
59354         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59355         * lib/regex_internal.c: Ditto, using this...
59356         (__GNUC_PREREQ): ...new macro.
59357         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59358         using...
59359         (__GNUC_PREREQ): ...this new macro.
59360
59361         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59362
59363 2005-09-15  Derek Price  <derek@ximbiot.com>
59364             Paul Eggert  <eggert@cs.ucla.edu>
59365
59366         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59367         changes, consolidating in...
59368         * lib/regex_internal.h: ...this file.
59369
59370 2005-09-13  Jim Meyering  <jim@meyering.net>
59371
59372         * lib/canon-host.c: Filter through gnu indent and reword comments
59373         slightly.
59374         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59375
59376 2005-09-13  Derek Price  <derek@ximbiot.com>
59377
59378         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59379         failure.
59380         Reported by Jim Meyering  <jim@meyering.net>.
59381
59382 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59383
59384         * lib/base64.c: Typo.
59385         (base64_encode): Put b64str in initialized data section.
59386
59387 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59388
59389         Merge glibc and coreutils changes into gnulib, plus a few
59390         extra fixes.
59391         * lib/md5.c: Use #error rather than a string.
59392         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59393         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59394         (__attribute__): Define to empty for non recent-GCC.
59395         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59396         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59397         Renamed from their non-__ counterparts, with new macros replacing
59398         them if not _LIBC.  Add __THROW attribute.
59399         (rol): Remove.
59400         (struct md5_ctx): Align buffer if using GCC.
59401         * lib/sha1.h (struct sha1_ctx): Likewise.
59402         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59403         The old name was backwards.
59404         (NOTSWAP): Remove; not used.
59405         (rol): New macro, moved here from md5.h.
59406         (sha1_process_block): Remove a FIXME that doesn't make sense.
59407
59408 2005-09-12  Derek Price  <derek@ximbiot.com>
59409
59410         Return usable errors from canon-host.
59411         * lib/canon-host.h: New file.
59412         * lib/canon-host.c (canon_host): Wrap...
59413         (canon_host_r): ...this new function, which now relies exclusively on
59414         getaddrinfo.
59415         (ch_strerror): New function.
59416         (last_cherror): New global.
59417         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59418         interface.
59419         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59420         void *.
59421         (freeaddrinfo): Free ai->ai_canonname when set.
59422
59423 2005-09-12  Derek Price  <derek@ximbiot.com>
59424
59425         Make canon-host require getaddrinfo.
59426         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59427         AC_LIBSOURCE canon-host.h.  Call...
59428         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59429         gl_GETADDRINFO.
59430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59431
59432 2005-09-12  Derek Price  <derek@ximbiot.com>
59433
59434         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59435         LGPL.
59436         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59437
59438 2005-09-12  Derek Price  <derek@ximbiot.com>
59439
59440         * lib/gai_strerror.c: Include config.h when available.  Include
59441         getaddrinfo.h before other headers to test interface.
59442         Reported by Larry Jones <lawrence.jones@ugs.com>.
59443
59444 2005-09-12  Derek Price  <derek@ximbiot.com>
59445             Paul Eggert  <eggert@cs.ucla.edu>
59446
59447         * modules/glob (Files): Add glob-libc.h.
59448
59449 2005-09-12  Derek Price  <derek@ximbiot.com>
59450             Paul Eggert  <eggert@cs.ucla.edu>
59451
59452         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59453         glob_.h, glob-libc.h.
59454         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59455
59456 2005-09-12  Derek Price  <derek@ximbiot.com>
59457             Paul Eggert  <eggert@cs.ucla.edu>
59458
59459         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59460         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59461         protecting things that should be done only in gnulib contexts.
59462         * lib/glob_.h: New file, containing only the glob things needed for
59463         gnulib.
59464         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59465         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59466         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59467         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59468         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59469         and to respect the namespace rules better.
59470
59471 2005-09-08  Simon Josefsson  <jas@extundo.com>
59472
59473         * modules/socklen: New file.
59474
59475 2005-09-08  Simon Josefsson  <jas@extundo.com>
59476
59477         * m4/socklen.m4: New file.
59478
59479 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59480
59481         * modules/utimens (Files): Add m4/utimbuf.m4, since
59482         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
59483         Reported by Sergey Poznyakoff.
59484
59485 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59486
59487         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
59488         definitions, since that's the preferred style in glibc.
59489         Fix a minor spacing issue, and update copyright notice to match
59490         glibc's.
59491
59492 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59493
59494         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
59495
59496 2005-09-06  Simon Josefsson  <jas@extundo.com>
59497
59498         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
59499         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
59500
59501 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59504         warning.
59505
59506 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59507
59508         * config/srclist.txt: Add glibc bug 1302.
59509
59510 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59511
59512         Change bitset word type from unsigned int to unsigned long int,
59513         as this has better performance on typical 64-bit hosts.
59514         Port bitset code to hosts with unusual word sizes.
59515         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59516         (build_collating_symbol):
59517         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59518         argument is a bitset.  This is merely a style issue, but it makes
59519         it clearer that an entire array is expected.
59520         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59521         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59522         Port to the case where bitset_word is not the same as unsigned int.
59523         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59524         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59525         Likewise.
59526         * lib/regexec.c (check_dst_limits_calc_pos_1,
59527         check_subexp_matching_top):
59528         (build_trtable, group_nodes_into_DFAstates):
59529         Likewise.
59530         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59531         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59532         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59533         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59534         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59535         * lib/regcomp.c (optimize_subexps, lower_subexp):
59536         Work even if bitset_word has holes in its bitwise representation.
59537         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59538         * lib/regexec.c (check_dst_limits_calc_pos_1,
59539         check_subexp_matching_top):
59540         Likewise.
59541         * lib/regex_internal.c (re_string_reconstruct):
59542         Don't assume UCHAR_MAX == 255.
59543         * lib/regex_internal.h (bitset_set_all): Likewise.
59544         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59545         All uses changed.
59546         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59547         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59548         All uses changed.
59549         (BITSET_WORD_MAX): New macro.
59550         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
59551         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
59552         (bitset_empty, bitset_copy):
59553         Prefer sizeof (bitset) to multiplying it out ourselves.
59554         (bitset_not_merge): Remove; unused.
59555         (bitset_contain): Return bool, not unsigned int with one bit on.
59556         All callers changed.
59557         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
59558         alignment than re_node_set; do this by defining a new internal
59559         type struct dests_alloc and using it to allocate memory.
59560
59561 2005-09-05  Bruno Haible  <bruno@clisp.org>
59562
59563         * gnulib-tool (func_import): Fix comparison in handling of symbolic
59564         links.
59565
59566 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
59567
59568         * modules/size_max (Makefile.am): Add size_max.h
59569
59570 2005-09-04  Derek Price  <derek@ximbiot.com>
59571
59572         * gnulib-tool (func_import): Fix reversed $symbolic logic.
59573
59574 2005-09-03  Simon Josefsson  <jas@extundo.com>
59575
59576         * gnulib-tool: Fix typo.
59577
59578 2005-09-03  Simon Josefsson  <jas@extundo.com>
59579
59580         * config/srclist.txt: Add glibc bug 1293.
59581
59582 2005-09-03  Derek Price  <derek@ximbiot.com>
59583
59584         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
59585         From Larry Jones <lawrence.jones@ugs.com>.
59586
59587 2005-09-02  Simon Josefsson  <jas@extundo.com>
59588
59589         * modules/socklen: New file.
59590
59591 2005-09-02  Simon Josefsson  <jas@extundo.com>
59592
59593         * modules/havelib: New module.
59594
59595         * modules/gettext, modules/iconv, modules/lock, modules/readline:
59596         Use havelib.
59597
59598 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59599
59600         Check for arithmetic overflow when calculating sizes, to prevent
59601         some buffer-overflow issues.  These patches are conservative, in the
59602         sense that when I couldn't determine whether an overflow was possible,
59603         I inserted a run-time check.
59604         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
59605         macros.
59606         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
59607         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
59608         (re_xnrealloc, re_x2nrealloc): New inline functions.
59609         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
59610         parse_bracket_exp):
59611         (build_equiv_class, build_charclass): Check for arithmetic overflow
59612         in size expression calculations.
59613         * lib/regex_internal.c (re_string_realloc_buffers):
59614         (build_wcs_upper_buffer, re_node_set_add_intersect):
59615         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
59616         (re_dfa_add_node, register_state): Likewise.
59617         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
59618         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
59619         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
59620         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
59621
59622 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59623
59624         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59625         m4/ulonglong.m4.  Problem reported by Martin Lambers.
59626
59627 2005-09-02  Bruno Haible  <bruno@clisp.org>
59628
59629         Support for lib vs. lib64 distinction on biarch platforms.
59630         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
59631         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
59632         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
59633
59634 2005-09-02  Bruno Haible  <bruno@clisp.org>
59635
59636         * gnulib-tool (import): In the other first-use case, provide defaults
59637         as well.
59638
59639 2005-09-02  Bruno Haible  <bruno@clisp.org>
59640
59641         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
59642         patches not yet found in the latest gettext release.
59643
59644 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
59647         to avoid a collision with bits/local_lim.h in glibc.
59648         All uses changed.  Problem reported by Dmitry V. Levin in
59649         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
59650
59651         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
59652         bugs in int versus size_t comparisons.
59653         (re_string_context_at): Fix bug where the code assumed that
59654         Idx is signed.
59655
59656         Use bool where appropriate.
59657         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
59658         All callers changed.
59659         (calc_eclosure_iter): Likewise, for ROOT arg.
59660         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
59661         (build_charclass_op): Likewise, for NON_MATCH arg.
59662         * lib/regex_internal.c (re_string_allocate, re_string_construct):
59663         (re_string_construct_common): Likewise, for ICASE arg.
59664         * lib/regexec.c (re_search_2_stub, re_search_stub):
59665         Likewise, for RET_LEN arg.
59666         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
59667         (set_regs): Likewise, for FL_BACKTRACK arg.
59668         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
59669         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
59670         (calc_eclosure_iter, parse_bracket_exp):
59671         Use bool for internal variables that are booleans.
59672         * lib/regexec.c (re_search_internal, check_matching,
59673         proceed_next_node):
59674         (set_regs, build_sifted_states, sift_states_bkref):
59675         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
59676         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59677         (find_collation_sequence_value):
59678         Likewise.
59679         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
59680         (re_node_set_compare):
59681         Return bool, not int. All callers changed.
59682         * lib/regexec.c (check_halt_node_context, check_dst_limits):
59683         (build_trtable, check_node_accept): Likewise.
59684         * lib/regex_internal.h: Include stdbool.h.
59685
59686         Fix bugs uncovered when converting to bool.
59687         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
59688         failure instead of charging ahead blindly.
59689         * lib/regex_internal.c (register_state): Likewise.
59690         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
59691         for freeing internal storage.
59692         (group_nodes_into_DFA_states): Use unsigned int, not int, for
59693         bitset pieces used as boolean, to avoid undefined behavior
59694         on hosts that do int overflow checking.
59695
59696 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59697
59698         * config/srclist.txt: Add glibc bugs 1285-1287.
59699
59700 2005-09-01  Jim Meyering  <jim@meyering.net>
59701
59702         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
59703         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
59704         Require gl_STAT_MACROS, too.
59705
59706 2005-09-01  Bruno Haible  <bruno@clisp.org>
59707
59708         * gnulib-tool (import): In the first-use case, provide defaults.
59709
59710 2005-09-01  Bruno Haible  <bruno@clisp.org>
59711
59712         * gnulib-tool (func_import): Remove the .tmp files.
59713
59714 2005-09-01  Bruno Haible  <bruno@clisp.org>
59715
59716         * gnulib-tool (func_import): Fix handling of symbolic links.
59717
59718 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59719
59720         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
59721         old glibc regex code mishandles strings longer than 2**31 bytes.
59722         This patch fixes this when the regex code is used in gnulib
59723         (i.e., outside glibc).
59724
59725         This patch should not affect the use of the regex code inside
59726         glibc.  No doubt this problem also needs to be handled for glibc
59727         as well, but the result will be an incompatible change to the
59728         glibc ABI, and the old ABI will have to be supported too.  That
59729         can be the the subject for another patch.
59730
59731         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
59732         governing whether the rest of this patch is active.  By default,
59733         the macro is disabled and the patch has no effect.
59734         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
59735         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
59736         (struct re_pattern_buffer, re_search, re_search_2, re_match):
59737         (re_match_2, re_set_registers): Use the new types.
59738         * lib/regex_internal.h (Idx, re_hashval_t): New types.
59739         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
59740         New macros.
59741         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
59742         (re_string_context_at, bin_tree_t, re_dfastate_t):
59743         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
59744         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
59745         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
59746         (re_string_char_size_at, re_string_wchar_at):
59747         (re_string_elem_size_at):
59748         Use the new types and macros to port to 64-bit hosts.
59749         Use unsigned types for internal values, so that the code
59750         mostly works even for arrays larger than SSIZE_MAX.
59751         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
59752         (search_duplicated_node, calc_eclosure_iter, fetch_number):
59753         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
59754         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
59755         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
59756         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
59757         (calc_inveclosure, parse_dup_op, build_range_exp):
59758         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
59759         (fetch_number, create_token_tree, mark_opt_subexp):
59760         Likewise.
59761         * lib/regex_internal.c (re_string_construct_common,
59762         create_ci_newstate):
59763         (create_cd_newstate, re_string_allocate, re_string_construct):
59764         (re_string_realloc_buffers, build_wcs_upper_buffer):
59765         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59766         (re_string_reconstruct, re_string_peek_byte_case):
59767         (re_string_fetch_byte_case, re_string_context_at):
59768         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59769         (re_node_set_init_copy, re_node_set_add_intersect):
59770         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59771         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59772         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59773         (re_acquire_state, re_acquire_state_context, register_state):
59774         Likewise.
59775         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
59776         search_cur_bkref_entry):
59777         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
59778         (re_search_internal, re_search_2_stub, re_search_stub)
59779         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
59780         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
59781         (update_cur_sifted_state, check_dst_limits):
59782         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59783         (check_subexp_limits, sift_states_bkref, merge_state_array):
59784         (check_subexp_matching_top, get_subexp, get_subexp_sub):
59785         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
59786         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59787         (expand_bkref_cache, check_node_accept_bytes):
59788         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
59789         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
59790         (acquire_init_state_context, check_halt_node_context):
59791         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
59792         (sift_states_backward, clean_state_log_if_needed):
59793         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
59794         (find_recover_state, transit_state_sb, transit_state_mb):
59795         (transit_state_bkref, build_trtable, match_ctx_clean):
59796         Likewise.
59797         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
59798         to work around an assumption that REG_MISSING is negative.
59799
59800         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
59801         (seek_collating_symbol_entry) [defined _LIBC]:
59802         (lookup_collation_sequence_value) [defined _LIBC]:
59803         (build_range_exp, build_collating_symbol) [defined _LIBC]:
59804         Use prototypes rather than old-style function definitions.
59805         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
59806         (transit_state_sb) [0]:
59807         (find_collation_sequence_value) [defined _LIBC]: Likewise.
59808
59809         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
59810         rm_eo.
59811
59812         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
59813         (optimize_subexps, lower_subexp):
59814         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
59815         since the signed shift might overflow.  Use 1u<<31 instead.
59816         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59817         Likewise.
59818         * lib/regexec.c (check_dst_limits_calc_pos_1,
59819         check_subexp_matching_top): Likewise.
59820
59821         * lib/regcomp.c (optimize_subexps, lower_subexp):
59822         Use CHAR_BIT rather than 8, for clarity.
59823         * lib/regexec.c (check_dst_limits_calc_pos_1):
59824         (check_subexp_matching_top): Likewise.
59825         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
59826         have to worry about portability issues when shifting it left.
59827         Remove no-longer-needed test for table_size > 0.
59828         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
59829         in a word, as the resulting behavior is undefined.
59830         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
59831         in one case, a <= should have been an <, and in another case the
59832         whole test was missing.
59833         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
59834         the standard name CHAR_BIT.
59835         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
59836         this is not true on one's complement and signed-magnitude hosts.
59837
59838         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
59839         next_last_offset.
59840         (struct re_dfa_t): Remove unused member states_alloc.
59841         * lib/regcomp.c (init_dfa): Don't initialize unused members.
59842
59843 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59844
59845         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
59846         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
59847         and large-file glibc and in 32-bit large-file Solaris.
59848
59849 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59850
59851         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
59852         lengths fit in regoff_t; this isn't true if regoff_t is the same
59853         width as size_t.
59854         * lib/regex.c (re_search_internal): 5th arg is LAST_START
59855         (= START + RANGE) instead of RANGE.  This avoids overflow
59856         problems when regoff_t is the same width as size_t.
59857         All callers changed.
59858         (re_search_2_stub): Check for overflow when adding the
59859         sizes of the two strings.
59860         (re_search_stub): Check for overflow when adding START
59861         to RANGE; if it occurs, substitute the extreme value.
59862
59863 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59864
59865         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
59866
59867 2005-08-31  Jim Meyering  <jim@meyering.net>
59868
59869         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
59870         a pointer-to-const.
59871         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
59872         (register_state): Likewise.
59873         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
59874         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59875         (group_nodes_into_DFAstates): Likewise.
59876
59877 2005-08-31  Jim Meyering  <jim@meyering.net>
59878
59879         * check-module: Add a FIXME comment.
59880
59881 2005-08-31  Eric Blake  <ebb9@byu.net>
59882
59883         * modules/unistd-safer (Files): Add unistd--.h.
59884         * modules/stdio-safer (Files): Add stdio--.h.
59885
59886 2005-08-31  Derek Price  <derek@ximbiot.com>
59887
59888         * lib/getdelim.c (getdelim): Return EOF on EOF.
59889         Reported by Larry Jones <lawrence.jones@ugs.com>.
59890
59891 2005-08-31  Bruno Haible  <bruno@clisp.org>
59892
59893         Avoid unnecessary diffs in the generated lib/Makefile.am.
59894         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
59895         the generated files.
59896         (func_import): Don't set cmd.
59897
59898 2005-08-31  Bruno Haible  <bruno@clisp.org>
59899
59900         * lib/strstr.c: Include <stddef.h>, for NULL.
59901         * lib/strcasestr.c: Likewise.
59902         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59903
59904 2005-08-31  Bruno Haible  <bruno@clisp.org>
59905
59906         * gnulib-tool: New option --macro-prefix.
59907         (func_import): Use macro_prefix.
59908         (import): Handle option --macro-prefix.
59909
59910 2005-08-31  Bruno Haible  <bruno@clisp.org>
59911
59912         * gnulib-tool (import): Rename most ac_* variables to cached_*.
59913         Also use new variables cached_lgpl, cached_libtool.
59914
59915 2005-08-31  Bruno Haible  <bruno@clisp.org>
59916
59917         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
59918         always instantiating them.
59919
59920 2005-08-31  Bruno Haible  <bruno@clisp.org>
59921
59922         * gnulib-tool (func_import): Read the previous cached settings
59923         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
59924         earlier added by gnulib but are now dropped. Warn when a gnulib file
59925         overwrites a non-gnulib file.
59926
59927 2005-08-31  Bruno Haible  <bruno@clisp.org>
59928
59929         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
59930         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
59931         projects that don't keep autogenerated files in CVS. Put into
59932         actioncmd only the specified modules, not the transitive closure.
59933
59934 2005-08-31  Bruno Haible  <bruno@clisp.org>
59935
59936         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
59937         Create directories that shall be filled.
59938         (import): Don't look for gl_* macros in configure.ac. Recurse across
59939         all directories containing a gnulib-cache.m4 files, if meaningful.
59940
59941 2005-08-31  Bruno Haible  <bruno@clisp.org>
59942
59943         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
59944         (import): Set seen_libtool when we see gl_LIBTOOL.
59945
59946 2005-08-31  Bruno Haible  <bruno@clisp.org>
59947
59948         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
59949         declaration macro definitions from generated gnulib.m4.
59950
59951 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
59952
59953         * lib/iconvme.h: Add prototype for iconv_alloc.
59954
59955 2005-08-29  Simon Josefsson  <jas@extundo.com>
59956
59957         * lib/iconvme.c: Fix errno.
59958
59959 2005-08-29  Bruno Haible  <bruno@clisp.org>
59960
59961         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
59962         that it works when the directory contains spaces.
59963
59964 2005-08-29  Bruno Haible  <bruno@clisp.org>
59965
59966         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
59967
59968 2005-08-29  Bruno Haible  <bruno@clisp.org>
59969
59970         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
59971         Emit more advice.
59972
59973 2005-08-29  Bruno Haible  <bruno@clisp.org>
59974         and Stepan Kasal  <kasal@ucw.cz>
59975
59976         * check-module: If more parameters are given, check each of them
59977         separately; add more exceptions, as noted by Jim Meyering.
59978         (check_module): New procedure.
59979         (%exempt_header): Now contains all exceptions.
59980
59981 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
59982
59983         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
59984
59985 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59986
59987         * lib/iconvme.c: Split iconv_string into iconv_alloc.
59988
59989 2005-08-28  Bruno Haible  <bruno@clisp.org>
59990
59991         * m4/gnulib-tool.m4: New file.
59992
59993 2005-08-27  Jim Meyering  <jim@meyering.net>
59994
59995         * modules/unistd-safer (Files): Add pipe-safer.c.
59996         * modules/fcntl-safer (Files): Add creat-safer.c.
59997
59998 2005-08-27  Jim Meyering  <jim@meyering.net>
59999
60000         * m4/stdlib-safer.m4: New file.  From coreutils.
60001         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60002         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60003         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60004         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60005         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60006
60007 2005-08-27  Jim Meyering  <jim@meyering.net>
60008
60009         * lib/fopen-safer.c: Merge minor changes from coreutils.
60010         * lib/dup-safer.c: Likewise.
60011         * lib/fd-safer.c: Likewise.
60012
60013         Merge from coreutils.
60014         * lib/stdio--.h: New file.
60015         * lib/stdlib--.h: New file.
60016         * lib/mkstemp-safer.c: New file.
60017
60018         GNU tar needs these.
60019         * lib/pipe-safer.c: New file.
60020         * lib/creat-safer.c: New file.
60021         * lib/fcntl--.h (creat): Define to creat_safer.
60022         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60023         * lib/unistd--.h (pipe): Define to pipe_safer.
60024         * lib/unistd-safer.h: Declare pipe_safer.
60025
60026 2005-08-26  Simon Josefsson  <jas@extundo.com>
60027
60028         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60029         Haible <bruno@clisp.org>.
60030
60031 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         * lib/regex_internal.h: Remove all references to
60034         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60035         or better.
60036         (bitset_not, bitset_merge, bitset_not_merge):
60037         (bitset_mask, re_string_allocate, re_string_construct):
60038         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60039         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60040         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60041         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60042         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60043         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60044         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60045         (re_acquire_state_context):
60046         Remove unnecessary forward decls.
60047         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60048         Put __attribute at function definition,
60049         now that the function decl has been removed.
60050         * lib/regex_internal.c (re_string_peek_byte_case):
60051         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60052         Likewise.
60053
60054 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60055
60056         * m4/regex.m4: Add AC_PREREQ(2.50).
60057         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60058
60059 2005-08-25  Simon Josefsson  <jas@extundo.com>
60060
60061         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60062         __fsetlocking.
60063
60064 2005-08-25  Simon Josefsson  <jas@extundo.com>
60065
60066         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60067         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60068         GLIBC specific code.
60069
60070 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60071
60072         Make regex safe for g++.  This fixes one real bug (an "err"
60073         that should have been "*err").  g++ problem reported by
60074         Sam Steingold.
60075         * lib/regex_internal.h (re_calloc): New macro, consistent with
60076         re_malloc etc.  All callers of calloc changed to use re_calloc.
60077         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60078         not int.  All callers changed.
60079         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60080         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60081         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60082         (find_recover_state): Change "err" to "*err"; this fixes what
60083         appears to be a real bug.
60084         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60085         versus int.
60086
60087 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60088
60089         * modules/regex (Depends-on): Add malloc, since the code
60090         assumes that !malloc(0) means failure.
60091
60092 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60093
60094         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60095
60096         alloca modernization/simplification for regex.
60097         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60098         needs to be at the start of the file, and can be moved into
60099         regex_internal.h and simplified.
60100         * lib/regex_internal.h: Include <alloca.h>.
60101         (__libc_use_alloca) [!defined _LIBC]: New macro.
60102         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60103         now works outside glibc.
60104
60105 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60106
60107         * config/srclist.txt: Add glibc bugs 1241, 1245.
60108
60109 2005-08-25  Jim Meyering  <jim@meyering.net>
60110
60111         * lib/open-safer.c: Include <config.h>.
60112         Otherwise, we'd lose LARGEFILE support in any file using
60113         e.g. "fcntl--.h"
60114
60115 2005-08-25  Bruno Haible  <bruno@clisp.org>
60116
60117         * m4/minmax.m4: Require autoconf 2.52.
60118         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60119         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60120         alternatives of translit over the alphabet.
60121         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60122
60123 2005-08-24  Simon Josefsson  <jas@extundo.com>
60124
60125         * tests/test-getpass.c: New file.
60126
60127 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60130         for GNU regex features.
60131
60132 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60133
60134         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60135         * lib/regex.h (regerror): Likewise.
60136
60137         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60138         requires this.  (The code never needed it.)
60139
60140         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60141         All uses of recently-renamed identifiers changed to use the new,
60142         POSIX-compliant names.  The code will build and run just fine
60143         without these changes, but it's better to eat our own dog food
60144         and use the standard-conforming names.
60145
60146         * lib/regex.h: Fix a multitude of POSIX name space violations.
60147         These changes have an effect only for programs that define
60148         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60149         do not change anything for programs compiled in the normal way.
60150         Also, there is no effect on the ABI.
60151
60152         (_REGEX_SOURCE): New macro.
60153         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60154         defined and _GNU_SOURCE is not; this fixes a name space violation.
60155
60156         Rename the following macros to obey POSIX requirements.
60157         The old names are still visible as macros if _REGEX_SOURCE is defined.
60158         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60159         RE_BACKSLASH_ESCAPE_IN_LISTS.
60160         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60161         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60162         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60163         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60164         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60165         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60166         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60167         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60168         (REG_INTERVALS): renamed from RE_INTERVALS.
60169         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60170         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60171         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60172         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60173         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60174         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60175         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60176         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60177         RE_UNMATCHED_RIGHT_PAREN_ORD.
60178         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60179         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60180         (REG_DEBUG): renamed from RE_DEBUG.
60181         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60182         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60183         unusual, since we can't clash with the POSIX REG_ICASE.
60184         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60185         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60186         (REG_NO_SUB): renamed from RE_NO_SUB.
60187         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60188         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60189         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60190         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60191         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60192         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60193         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60194         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60195         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60196         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60197         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60198         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60199         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60200         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60201         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60202         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60203         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60204         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60205         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60206         (REG_FIXED): Renamed from REGS_FIXED.
60207         (REG_NREGS): Renamed from RE_NREGS.
60208
60209         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60210         of other REG_* macros, since POSIX says the user is allowed to
60211         #undef these macros selectively.
60212
60213         (reg_errcode_t): Update comment stating what other tables need
60214         to be consistent.
60215
60216         Rename the following enum values to obey POSIX requirements.
60217         The old names are still visible as macros.
60218         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60219         is not defined, since GNU is supposed to be a superset of POSIX as
60220         much as possible, and since we want reg_errcode_t to be a signed
60221         type for implementation consistency.
60222         (_REG_NOERROR): Renamed from REG_NOERROR.
60223         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60224         (_REG_BADPAT): Renamed from REG_BADPAT.
60225         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60226         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60227         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60228         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60229         (_REG_EBRACK): Renamed from REG_EBRACK.
60230         (_REG_EPAREN): Renamed from REG_EPAREN.
60231         (_REG_EBRACE): Renamed from REG_EBRACE.
60232         (_REG_BADBR): Renamed from REG_BADBR.
60233         (_REG_ERANGE): Renamed from REG_ERANGE.
60234         (_REG_ESPACE): Renamed from REG_ESPACE.
60235         (_REG_BADRPT): Renamed from REG_BADRPT.
60236         (_REG_EEND): Renamed from REG_EEND.
60237         (_REG_ESIZE): Renamed from REG_ESIZE.
60238         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60239         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60240         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60241         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60242         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60243
60244         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60245         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60246         changed.  But support the old name if the new one is not defined
60247         and if _REGEX_SOURCE.
60248
60249         Change the following member names in struct re_pattern_buffer.
60250         The old names are still supported if !_REGEX_SOURCE.
60251         The new names are always supported, regardless of _REGEX_SOURCE.
60252         (re_buffer): Renamed from buffer.
60253         (re_allocated): Renamed from allocated.
60254         (re_used): Renamed from used.
60255         (re_syntax): Renamed from syntax.
60256         (re_fastmap): Renamed from fastmap.
60257         (re_translate): Renamed from translate.
60258         (re_can_be_null): Renamed from can_be_null.
60259         (re_regs_allocated): Renamed from regs_allocated.
60260         (re_fastmap_accurate): Renamed from fastmap_accurate.
60261         (re_no_sub): Renamed from no_sub.
60262         (re_not_bol): Renamed from not_bol.
60263         (re_not_eol): Renamed from not_eol.
60264         (re_newline_anchor): Renamed from newline_anchor.
60265
60266         Change the following member names in struct re_registers.
60267         The old names are still supported if !_REGEX_SOURCE.
60268         The new names are always supported, regardless of _REGEX_SOURCE.
60269         (rm_num_regs): Renamed from num_regs.
60270         (rm_start): Renamed from start.
60271         (rm_end): Renamed from end.
60272
60273         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60274         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60275         Prepend __ to parameter names.
60276
60277         Undo yesterday's changes.
60278
60279 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60282         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60283         lib/regex.c.
60284
60285 2005-08-24  Jim Meyering  <jim@meyering.net>
60286
60287         Sync from coreutils.
60288         * m4/fcntl-safer.m4: New file.
60289
60290         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60291         and object files for this module.
60292
60293 2005-08-24  Jim Meyering  <jim@meyering.net>
60294
60295         Sync from coreutils.
60296         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60297
60298 2005-08-24  Jim Meyering  <jim@meyering.net>
60299
60300         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60301         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60302
60303 2005-08-24  Jim Meyering  <jim@meyering.net>
60304
60305         * modules/fcntl-safer: New module.
60306         * modules/fts (Depends-on): Add fcntl-safer.
60307         * MODULES.html.sh (File descriptor based Input/Output):
60308         Add fcntl-safer.
60309
60310 2005-08-24  Bruno Haible  <bruno@clisp.org>
60311
60312         Support for unit test modules.
60313         * modules/README: Mention tests modules.
60314         * modules/TEMPLATE-TESTS: New file.
60315         * gnulib-tool: New options --extract-tests-module, --with-tests and
60316         --tests-base (unused for the moment).
60317         (testsbase, inctests): New variables.
60318         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60319         (func_verify_module): Exclude TEMPLATE-TESTS.
60320         (func_verify_nontests_module, func_verify_tests_module): New functions.
60321         (func_get_dependencies): Add implicit dependency for tests modules.
60322         (func_get_tests_module): New function.
60323         (func_modules_transitive_closure): When --with-tests was specified,
60324         include the unit tests as well, unless explicitly avoided.
60325         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60326         (func_emit_tests_Makefile_am): New function.
60327         (func_create_testdir): When --with-tests was specified, emit a
60328         tests/ directory.
60329         * MODULES.html.sh (Future developments): Update.
60330
60331 2005-08-24  Bruno Haible  <bruno@clisp.org>
60332
60333         * modules/tls-tests: New file.
60334         * tests/test-tls.c: New file, from GNU gettext.
60335
60336 2005-08-24  Bruno Haible  <bruno@clisp.org>
60337
60338         * modules/lock-tests: New file.
60339         * tests/test-lock.c: New file, from GNU gettext.
60340
60341 2005-08-24  Bruno Haible  <bruno@clisp.org>
60342
60343         * lib/lock.h: Add multiple inclusion guard.
60344         * lib/tls.h: Add multiple inclusion guard.
60345
60346 2005-08-24  Bruno Haible  <bruno@clisp.org>
60347
60348         * gnulib-tool: Add support for the --aux-dir option to
60349         --create-testdir, --create-megatestdir, --test, --megatest.
60350         (func_create_testdir, func_create_megatestdir): Optionally emit a
60351         AC_CONFIG_AUX_DIR directive.
60352         (create-testdir, create-megatestdir, test, megatest): Provide a
60353         default value for $auxdir.
60354
60355 2005-08-24  Bruno Haible  <bruno@clisp.org>
60356
60357         * gnulib-tool (import): Use compound statement instead of subshell
60358         where possible.
60359
60360 2005-08-24  Bruno Haible  <bruno@clisp.org>
60361
60362         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60363
60364 2005-08-24  Bruno Haible  <bruno@clisp.org>
60365
60366         * gnulib-tool (func_version): Update.
60367
60368 2005-08-24  Bruno Haible  <bruno@clisp.org>
60369
60370         * gnulib-tool (func_import, func_create_testdir,
60371         func_create_megatestdir): Quote all autoconf macro arguments.
60372
60373 2005-08-24  Bruno Haible  <bruno@clisp.org>
60374
60375         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60376         option --force, because --force causes the aclocal.m4 of each
60377         subdirectory to be newer than the corresponding config.h.in.
60378
60379 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60382         All contents moved to gl_REGEX.
60383         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60384         assume that it does.
60385
60386 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60387
60388         * lib/regex.h (REG_NOSYS)
60389         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60390         Define, since POSIX requires it as of 2001.
60391         (_REG_ENOSYS)
60392         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60393         New private symbol, used to keep the enum signed in all cases.
60394         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60395         Youngman in
60396         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60397
60398         * lib/regex_internal.c (re_string_skip_chars, register_state):
60399         (calc_state_hash):
60400         Remove forward decls; no longer needed now that we use prototypes.
60401         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60402         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60403         (clean_state_log_if_needed): Likewise.
60404
60405 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         * config/srclist.txt: Add glibc bugs 1231-1233.
60408
60409 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60410
60411         Fix problems reported by Sam Steingold in
60412         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60413         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60414         assumed that reg_errcode_t is a signed type, which is not
60415         necessarily true if _XOPEN_SOURCE is not defined.
60416         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60417         since some compilers warn about it otherwise.
60418
60419 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60420
60421         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60422         (init_word_char, create_initial_state, duplicate_node_closure):
60423         (fetch_token, peek_token_bracket, build_range_exp):
60424         (build_collating_symbol): Remove forward decls; no longer needed
60425         now that we use prototypes.
60426
60427         * lib/regcomp.c:
60428         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60429         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60430         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60431         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60432         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60433         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60434         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60435         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60436         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60437         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60438         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60439         (build_charclass, build_charclass_op, fetch_number, create_tree):
60440         (create_token_tree, mark_opt_subexp, duplicate_tree):
60441         Use prototypes rather than old-style definitions.
60442
60443         * lib/regex_internal.c:
60444         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60445         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60446         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60447         (re_string_reconstruct, re_string_peek_byte_case):
60448         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60449         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60450         (re_node_set_init_copy, re_node_set_add_intersect):
60451         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60452         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60453         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60454         (re_acquire_state, re_acquire_state_context, register_state):
60455         (create_ci_newstate, create_cd_newstate, free_state):
60456         Likewise.
60457         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60458         re_search_2):
60459         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60460         (re_search_internal, prune_impossible_nodes):
60461         (acquire_init_state_context, check_matching, static):
60462         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60463         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60464         (update_regs, sift_states_backward, build_sifted_states):
60465         (clean_state_log_if_needed, merge_state_array):
60466         (update_cur_sifted_state, add_epsilon_src_nodes):
60467         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60468         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60469         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60470         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60471         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60472         (check_arrival, check_arrival_add_next_nodes):
60473         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60474         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60475         (check_node_accept_bytes, check_node_accept, extend_buffers):
60476         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60477         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
60478         (sift_ctx_init):
60479         Likewise.
60480
60481         * lib/regex_internal.h:
60482         (re_string_allocate, re_string_construct, re_string_reconstruct):
60483         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
60484         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
60485         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
60486         (re_string_context_at, re_string_peek_byte_case):
60487         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
60488         is defined, since we now use prototypes always.
60489
60490         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
60491         C89 or better.  All uses removed.
60492
60493 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60494
60495         * config/srclist.txt: Add glibc bugs 1220-1227.
60496
60497 2005-08-20  Jim Meyering  <jim@meyering.net>
60498
60499         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
60500         of unused local, dfa.
60501
60502 2005-08-20  Bruno Haible  <bruno@clisp.org>
60503
60504         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60505
60506 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60507
60508         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60509         (re_node_set_insert_last, re_dfa_add_node):
60510         Rename local variables to avoid GCC shadowing warnings.
60511
60512 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60513
60514         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60515         [defined lint]: Suppress bogus uninitialized-variable warnings.
60516
60517         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60518         and let the caller return REG_ESPACE if out of space.  This
60519         removes an uninitialied-variable warning with GCC 4.0.1, and also
60520         avoids taking the address of a local variable.  All callers
60521         changed.
60522
60523 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60526         $LIBCSRC/posix/regexec.c.
60527         Add glibc bug 1217 for regcomp.c.
60528
60529 2005-08-19  Jim Meyering  <jim@meyering.net>
60530
60531         * lib/regexec.c (proceed_next_node): Redo local variables to
60532         avoid GCC shadowing warnings.
60533
60534 2005-08-18  Bruno Haible  <bruno@clisp.org>
60535
60536         * lib/strstr.c (strstr): Fix return value in multibyte case.
60537         * lib/strcasestr.c (strcasestr): Likewise.
60538
60539 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60542
60543 2005-08-17  Jim Meyering  <jim@meyering.net>
60544
60545         Make the %s format (seconds since the epoch) work for a negative
60546         number and when used with a zero-padded field width, e.g. %015s.
60547
60548         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60549         label so that it precedes the code to set `digits'.  Otherwise,
60550         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
60551         print `00-22'.  Now, it prints `-0022', as it should.
60552
60553 2005-08-17  Bruno Haible  <bruno@clisp.org>
60554
60555         * modules/strstr (Files): Add m4/mbrtowc.m4.
60556         (Depends-on): Add mbuiter.
60557
60558 2005-08-17  Bruno Haible  <bruno@clisp.org>
60559
60560         * modules/strcasestr: New file.
60561         * MODULES.html.sh (String handling, based on ANSI C 89): Add
60562         strcasestr.
60563
60564 2005-08-17  Bruno Haible  <bruno@clisp.org>
60565
60566         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
60567
60568 2005-08-17  Bruno Haible  <bruno@clisp.org>
60569
60570         * modules/mbuiter: New file.
60571         * MODULES.html.sh (Extended multibyte and wide character utilities):
60572         Add mbuiter.
60573
60574 2005-08-17  Bruno Haible  <bruno@clisp.org>
60575
60576         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
60577         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
60578
60579 2005-08-17  Bruno Haible  <bruno@clisp.org>
60580
60581         * m4/strcasestr.m4: New file.
60582
60583 2005-08-17  Bruno Haible  <bruno@clisp.org>
60584
60585         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
60586         * lib/strstr.c: Completely rewritten, with multibyte locale support.
60587
60588 2005-08-17  Bruno Haible  <bruno@clisp.org>
60589
60590         * lib/strcasestr.h: New file.
60591         * lib/strcasestr.c: New file.
60592
60593 2005-08-17  Bruno Haible  <bruno@clisp.org>
60594
60595         * lib/strcasecmp.c: Use mbuiter.h.
60596
60597 2005-08-17  Bruno Haible  <bruno@clisp.org>
60598
60599         * lib/mbuiter.h: New file.
60600
60601 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60602
60603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
60604         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
60605         and gl_GETOPT are both invoked via different paths (as happens
60606         with GNU tar CVS because it uses both argp and getopt), the former
60607         wins.
60608
60609 2005-08-16  Bruno Haible  <bruno@clisp.org>
60610
60611         * modules/tls: New file.
60612         * MODULES.html.sh (Multithreading): Add tls.
60613
60614 2005-08-16  Bruno Haible  <bruno@clisp.org>
60615
60616         * modules/strnlen1: New file.
60617         * MODULES.html.sh (String handling): Add strnlen1.
60618
60619 2005-08-16  Bruno Haible  <bruno@clisp.org>
60620
60621         * modules/strcase (Files): Add m4/mbrtowc.m4.
60622         (Depends-on): Add strnlen1, mbchar.
60623
60624 2005-08-16  Bruno Haible  <bruno@clisp.org>
60625
60626         * modules/mbiter: New file.
60627         * MODULES.html.sh (Extended multibyte and wide character utilities):
60628         Add mbiter.
60629
60630 2005-08-16  Bruno Haible  <bruno@clisp.org>
60631
60632         * modules/mbfile: New file.
60633         * MODULES.html.sh (Extended multibyte and wide character utilities):
60634         Add mbfile.
60635
60636 2005-08-16  Bruno Haible  <bruno@clisp.org>
60637
60638         * modules/mbchar: New file.
60639         * MODULES.html.sh (Extended multibyte and wide character utilities):
60640         New section.
60641
60642 2005-08-16  Bruno Haible  <bruno@clisp.org>
60643
60644         * m4/tls.m4: New file, from GNU gettext.
60645
60646 2005-08-16  Bruno Haible  <bruno@clisp.org>
60647
60648         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
60649         always.
60650         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
60651
60652 2005-08-16  Bruno Haible  <bruno@clisp.org>
60653
60654         * m4/mbiter.m4: New file.
60655
60656 2005-08-16  Bruno Haible  <bruno@clisp.org>
60657
60658         * m4/mbfile.m4: New file.
60659
60660 2005-08-16  Bruno Haible  <bruno@clisp.org>
60661
60662         * m4/mbchar.m4: New file.
60663
60664 2005-08-16  Bruno Haible  <bruno@clisp.org>
60665
60666         * lib/tls.h: New file, from GNU gettext.
60667         * lib/tls.c: New file, from GNU gettext.
60668
60669 2005-08-16  Bruno Haible  <bruno@clisp.org>
60670
60671         * lib/strnlen1.h: New file.
60672         * lib/strnlen1.c: New file.
60673
60674 2005-08-16  Bruno Haible  <bruno@clisp.org>
60675
60676         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
60677         (mbi_init): Update.
60678         (mbi_avail, mbi_advance): Let the iteration end before the terminating
60679         NUL byte, not after it.
60680
60681 2005-08-16  Bruno Haible  <bruno@clisp.org>
60682
60683         * lib/strcase.h (strcasecmp): Add note in comments.
60684         * lib/strncasecmp.c: Use code from strcasecmp.c.
60685         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
60686         (strcasecmp): Work correctly in multibyte locales.
60687
60688 2005-08-16  Bruno Haible  <bruno@clisp.org>
60689
60690         * lib/mbiter.h: New file.
60691
60692 2005-08-16  Bruno Haible  <bruno@clisp.org>
60693
60694         * lib/mbfile.h: New file.
60695
60696 2005-08-16  Bruno Haible  <bruno@clisp.org>
60697
60698         * lib/mbchar.h: New file.
60699         * lib/mbchar.c: New file.
60700
60701 2005-08-16  Bruno Haible  <bruno@clisp.org>
60702
60703         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
60704         the valid ones. Makes the comparison operations transitive:
60705         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
60706         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
60707
60708 2005-08-15  Simon Josefsson  <jas@extundo.com>
60709
60710         * modules/ssize_t (License): Change to 'unlimited'.
60711
60712         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
60713
60714 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
60717         Add comments for each pending glibc patch.
60718
60719 2005-08-15  Bruno Haible  <bruno@clisp.org>
60720
60721         * lib/regex.h (__restrict_arr): Don't define to __restrict if
60722         __cplusplus is defined.
60723
60724 2005-08-14  Jim Meyering  <jim@meyering.net>
60725
60726         Sync from coreutils.
60727
60728         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
60729         Use the hash-table-based cycle-detection code not just when
60730         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
60731         Reported by James Youngman in
60732         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
60733         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
60734         FTS_TIGHT_CYCLE_CHECK.
60735         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
60736         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
60737         once again.
60738         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
60739         * lib/fts.c (fd_safer): Remove decl.
60740         Include fcntl--.h rather than unistd-safer.h
60741         (fts_safe_changedir): Don't call fd_safer; no longer needed
60742         now that we include fcntl--.h.
60743
60744 2005-08-12  Simon Josefsson  <jas@extundo.com>
60745
60746         * modules/getndelim2: Use ssize_t module.
60747         * modules/getnline: Likewise.
60748         * modules/safe-read: Likewise.
60749         * modules/xreadlink: Likewise.
60750
60751         * modules/ssize_t: New file.
60752
60753 2005-08-12  Simon Josefsson  <jas@extundo.com>
60754
60755         * m4/readline.m4: Look for termcap, curses or ncurses if required.
60756
60757 2005-08-12  Simon Josefsson  <jas@extundo.com>
60758
60759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60760         ssize_t.
60761
60762 2005-08-12  Simon Josefsson  <jas@extundo.com>
60763
60764         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
60765         readline, getdelim and check_version.
60766         (Support for systems lacking ISO C 99: Sizes of integer types):
60767         Add size_max.
60768
60769 2005-08-12  Bruno Haible  <bruno@clisp.org>
60770
60771         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
60772
60773 2005-08-11  Simon Josefsson  <jas@extundo.com>
60774
60775         * modules/readline: New file.
60776
60777         * modules/strnlen (Files): Add strnlen.h.
60778
60779 2005-08-11  Simon Josefsson  <jas@extundo.com>
60780
60781         * m4/readline.m4: New file.
60782
60783 2005-08-11  Simon Josefsson  <jas@extundo.com>
60784
60785         * lib/readline.h, readline.c: New file.
60786
60787 2005-08-11  Simon Josefsson  <jas@extundo.com>
60788
60789         * doc/gnulib.texi (Initial import, Finishing touches): Mention
60790         gl_AVOID.
60791
60792 2005-08-11  Bruno Haible  <bruno@clisp.org>
60793
60794         * lib/strnlen.h (strnlen): Change parameter name to match comment.
60795
60796 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
60797
60798         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
60799
60800 2005-08-10  Simon Josefsson  <jas@extundo.com>
60801
60802         * tests/test-iconvme.c: New file.
60803
60804 2005-08-10  Simon Josefsson  <jas@extundo.com>
60805
60806         * m4/strnlen.m4: New file.
60807
60808         * m4/strndup.m4: Don't check for strnlen declaration, done in
60809         strnlen.m4.
60810
60811 2005-08-10  Simon Josefsson  <jas@extundo.com>
60812
60813         * lib/strndup.c: Use strnlen.h.
60814
60815         * lib/strnlen.h: New file.
60816
60817 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60818
60819         * README: Typos.
60820
60821 2005-08-02  Simon Josefsson  <jas@extundo.com>
60822
60823         * modules/readline: New file.
60824
60825 2005-08-02  Simon Josefsson  <jas@extundo.com>
60826
60827         * modules/getdelim: New file.
60828
60829         * modules/getline: Rewrite, don't use getndelim2.
60830
60831 2005-08-02  Simon Josefsson  <jas@extundo.com>
60832
60833         * m4/getline.m4: Separate out getdelim stuff into separate module.
60834
60835         * m4/getdelim.m4: New file.
60836
60837 2005-08-02  Simon Josefsson  <jas@extundo.com>
60838
60839         * lib/getline.h, getline.c: Rewrite.
60840
60841         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
60842
60843 2005-07-31  Bruno Haible  <bruno@clisp.org>
60844
60845         * lib/lock.h (gl_lock_initializer): New macro.
60846         (gl_lock_define_initialized): Use it.
60847         (gl_rwlock_initializer): New macro.
60848         (gl_rwlock_define_initialized): Use it.
60849         (gl_recursive_lock_initializer): New macro.
60850         (gl_recursive_lock_define_initialized): Use it.
60851
60852 2005-07-30  Karl Berry  <karl@gnu.org>
60853
60854         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
60855         Report from Ben Pfaff, regarding getopt.
60856
60857 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
60860         normal way.
60861         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
60862         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
60863         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
60864         (gl_GETOPT): Use the new macros.  Most of the implementation
60865         is moved to the new macros.  This is for programs like Emacs
60866         that don't want all the functionality of gl_GETOPT.
60867
60868 2005-07-26  Bruno Haible  <bruno@clisp.org>
60869
60870         * m4/lock.m4: Update from GNU gettext.
60871
60872 2005-07-26  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/lock.h: Update from GNU gettext.
60875         * lib/lock.c: Update from GNU gettext.
60876
60877 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
60878
60879         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
60880         obsolescent AC_TRY_RUN.  Include the default includes files, for
60881         'exit'.
60882
60883 2005-07-24  Bruno Haible  <bruno@clisp.org>
60884
60885         * modules/visibility: New file.
60886         * MODULES.html.sh (Misc): Add visibility.
60887
60888 2005-07-24  Bruno Haible  <bruno@clisp.org>
60889
60890         * m4/visibility.m4: New file.
60891
60892 2005-07-24  Bruno Haible  <bruno@clisp.org>
60893
60894         * doc/visibility.texi: New file.
60895
60896 2005-07-22  Bruno Haible  <bruno@clisp.org>
60897
60898         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
60899         $(ALLOCA_H), redundant through BUILT_SOURCES.
60900         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
60901         redundant through BUILT_SOURCES.
60902         * modules/byteswap (Makefile.am): Remove explicit dependency on
60903         $(BYTESWAP_H), redundant through BUILT_SOURCES.
60904         * modules/fnmatch (Makefile.am): Remove explicit dependency on
60905         $(FNMATCH_H), redundant through BUILT_SOURCES.
60906         * modules/getopt (Makefile.am): Remove explicit dependency on
60907         $(GETOPT_H), redundant through BUILT_SOURCES.
60908         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
60909         redundant through BUILT_SOURCES.
60910         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
60911         redundant through BUILT_SOURCES.
60912         * modules/stdbool (Makefile.am): Remove explicit dependency on
60913         $(STDBOOL_H), redundant through BUILT_SOURCES.
60914         * modules/stdint (Makefile.am): Remove explicit dependency on
60915         $(STDINT_H), redundant through BUILT_SOURCES.
60916         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
60917         Remove explicit dependency on $(SYSEXITS_H).
60918         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
60919
60920 2005-07-18  Simon Josefsson  <jas@extundo.com>
60921
60922         * lib/check-version.c (check_version): Accept identical versions too.
60923
60924 2005-07-18  Bruno Haible  <bruno@clisp.org>
60925
60926         * modules/lock: New file.
60927         * MODULES.html.sh (Multithreading): New section.
60928
60929 2005-07-18  Bruno Haible  <bruno@clisp.org>
60930
60931         * m4/lock.m4: New file, from GNU gettext.
60932
60933 2005-07-18  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/lock.h: New file, from GNU gettext.
60936         * lib/lock.c: New file, from GNU gettext.
60937
60938 2005-07-18  Bruno Haible  <bruno@clisp.org>
60939
60940         * lib/lock.h (gl_once_t): New type.
60941         (gl_once_define, gl_once): New macros.
60942         * lib/lock.c (fresh_once): New variable.
60943         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
60944         functions.
60945
60946 2005-07-16  Simon Josefsson  <jas@extundo.com>
60947
60948         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
60949         workaround, suggested by Bruno.
60950
60951 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         * modules/xalloc (Depends-on): Add xalloc-die.
60954         * modules/xvasprintf (Depends-on): Add xalloc-die.
60955
60956 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60957
60958         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
60959         with a minor change.
60960
60961 2005-07-15  Bruno Haible  <bruno@clisp.org>
60962
60963         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
60964         When using lib/poll.c, define poll as rpl_poll.
60965
60966 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
60967
60968         * modules/argp (Depends-on): Remove unlocked-io.
60969
60970 2005-07-14  Derek Price  <derek@ximbiot.com>
60971
60972         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
60973         for glob symlink bug.
60974
60975 2005-07-14  Bruno Haible  <bruno@clisp.org>
60976
60977         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
60978         Instead, test for *_unlocked function declarations directly.
60979
60980 2005-07-11  Simon Josefsson  <jas@extundo.com>
60981
60982         * modules/size_max: New file.
60983
60984         * modules/xsize: Depend on size_max module for size_max.m4.
60985
60986 2005-07-11  Simon Josefsson  <jas@extundo.com>
60987
60988         * lib/size_max.h: New file.
60989
60990 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
60991
60992         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
60993         copyright symbol and the year.
60994         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
60995         (version_etc_va): Use parameterized copyright notice.
60996         Reword to conform to the current GNU coding standards.
60997
60998 2005-07-11  Karl Berry  <karl@gnu.org>
60999
61000         * doc/gnulib.texi (Quoting): new node.
61001         (Initial import): more info, from Patrice.
61002
61003 2005-07-11  Bruno Haible  <bruno@clisp.org>
61004
61005         * gnulib-tool (func_usage): Document option --avoid.
61006         (Command line options): Handle --avoid.
61007         (func_acceptable): New function.
61008         (func_modules_transitive_closure): Use it.
61009
61010 2005-07-11  Bruno Haible  <bruno@clisp.org>
61011
61012         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61013         Reported by Jim Meyering.
61014
61015 2005-07-10  Bruno Haible  <bruno@clisp.org>
61016
61017         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61018         Needed when size_t is smaller than 'unsigned int'.
61019         Reported by Paul Eggert.
61020
61021 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61022
61023         * modules/argp (Depends-on): Add unlocked-io
61024
61025 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61026
61027         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61028         block of defines.
61029
61030 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61033         fix now.
61034
61035 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61036         and Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61039         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61040
61041 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61042
61043         * modules/regex (Files): Add lib/regex_internal.c,
61044         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61045         (Depends-on): Add extensions.
61046         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61047
61048 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61049
61050         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61051         pathconf.
61052         * m4/same.m4 (gl_SAME): Likewise.
61053         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61054
61055         * m4/regex.m4: Adjust to new libc regex implementation.
61056         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61057         all the .c and .h parts of (the new) regex.
61058         Quote the m4 stuff better.
61059         Check for RE_ICASE bug of old gnulib.
61060         Check for REG_STARTEND of recent libc.
61061         Rename local variables from jm_* to gl_*.
61062         Quote operand of "test -f".
61063         Say "recent enough" version of libc, not "version 2".
61064         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61065         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61066         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61067         Remove check for btowc, isascii.
61068         Require AM_LANGINFO_CODESET.
61069
61070 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61071
61072         * lib/regex.c, regex.h: Sync from libc.
61073         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61074         * lib/regexec.c:
61075         New files, synced from libc, except that regex_internal.h
61076         currently has a small porting fix.
61077
61078 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61079
61080         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61081         regex_internal.c, regexec.c.
61082         Add regex_internal.h too, but as a comment, since the libc version
61083         is currently broken in gnulib mode.
61084
61085 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         Support programs like Emacs that use gnulib but not gettext.
61088         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61089         * modules/gettext-h: New file.
61090         * modules/gettext (Files): Remove lib/gettext.h.
61091         (Depends-on): Add gettext-h.
61092         (Makefile.am): Remove lib_SOURCES.
61093         * modules/argmatch, modules/c-stack, modules/closeout:
61094         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61095         * modules/execute, modules/file-type, modules/getaddrinfo:
61096         * modules/getopt, modules/human, modules/javacomp:
61097         * modules/javaexec, modules/mkdir-p, modules/obstack:
61098         * modules/openat, modules/pagealign_alloc, modules/pipe:
61099         * modules/quotearg, modules/regex, modules/rpmatch:
61100         * modules/unicodeio, modules/userspec, modules/version-etc:
61101         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61102         * modules/xsetenv:
61103         Depend on gettext-h, not gettext.
61104
61105 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61106
61107         * gnulib-tool (func_import): Add support for 'public domain' license.
61108         * modules/alloca, modules/atexit, modules/memmove:
61109         Now public domain, not GPL.
61110         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61111         * modules/realloc, modules/strerror, modules/strtod:
61112         Now LGPL, not GPL.
61113
61114 2005-07-05  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61117         autoconf CVS. Needed for mingw.
61118
61119 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61120
61121         Remove the dependency of the strftime module on the tzset module.
61122         * modules/strftime (Depends-on): Remove dependency on tzset.
61123
61124 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61125
61126         Remove the dependency of the strftime module on the tzset module.
61127         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61128         gl_FUNC_TZSET_CLOBBER.
61129
61130 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61131
61132         Remove the dependency of the strftime module on the tzset module.
61133         * lib/strftime.c (my_strftime)
61134         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61135         Copy the input structure, to work around some of the bug with
61136         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61137         Solaris releases, you should also use the tzset module, but we won't
61138         require it as a dependency any more since we don't want LGPLed code
61139         to depend on GPLed code.
61140
61141 2005-07-02  Jim Meyering  <jim@meyering.net>
61142
61143         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61144         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61145         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61146         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61147
61148 2005-07-02  Jim Meyering  <jim@meyering.net>
61149
61150         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61151
61152 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61153
61154         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61155         declares only 'struct timespec;' (!).
61156
61157 2005-07-01  Jim Meyering  <jim@meyering.net>
61158
61159         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61160         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61161         * lib/save-cwd.c, tempname.c:
61162         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61163         and don't include <sys/file.h>).
61164
61165 2005-06-29  Jim Meyering  <jim@meyering.net>
61166
61167         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61168         type name.  Use the variable name instead.
61169         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61170         Likewise.
61171
61172 2005-06-28  Simon Josefsson  <jas@extundo.com>
61173
61174         * modules/check-version (Files): Add check-version.m4.
61175
61176 2005-06-28  Simon Josefsson  <jas@extundo.com>
61177
61178         * m4/check-version.m4: New file, suggested by Jim Meyering
61179         <jim@meyering.net>.
61180
61181 2005-06-28  Simon Josefsson  <jas@extundo.com>
61182
61183         * lib/check-version.h, lib/check-version.c: New files.
61184
61185 2005-06-28  Simon Josefsson  <jas@extundo.com>
61186
61187         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61188         collision with global variable.  Better indentation.  Don't
61189         increment buffer pointer beyond buffer end.  Based on comments
61190         from Paul Eggert <eggert@cs.ucla.edu>.
61191
61192         * lib/base64.h: Indent.
61193
61194 2005-06-28  Simon Josefsson  <jas@extundo.com>
61195
61196         * doc/gnulib.texi (Library version handling): New section.
61197
61198 2005-06-28  Jim Meyering  <jim@meyering.net>
61199
61200         * check-module (find_included_lib_files): Hard-code another
61201         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61202         but modules/fts-lgpl (correctly) does not list those files.
61203
61204         * modules/canonicalize (Files): Add lib/pathmax.h.
61205
61206 2005-06-25  Simon Josefsson  <jas@extundo.com>
61207
61208         * modules/check-version: New file.
61209
61210 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61211
61212         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61213         initializer of struct addrinfo, as an indication that we don't
61214         care how many members the structure has.
61215
61216 2005-06-24  Derek Price  <derek@ximbiot.com>
61217         and Bruno Haible  <bruno@clisp.org>
61218
61219         Remove stat module & update lstat.
61220         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61221         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61222         * m4/stat.m4: Remove this file.
61223
61224 2005-06-24  Derek Price  <derek@ximbiot.com>
61225         and Bruno Haible  <bruno@clisp.org>
61226
61227         Remove stat module & update lstat.
61228         * lib/stat.c: Remove this file...
61229         (slash_aware_lstat): ...moving this content and its support...
61230         * lib/lstat.c (rpl_lstat): ...into here.
61231         * lib/lstat.h: New file.
61232
61233 2005-06-24  Derek Price  <derek@ximbiot.com>
61234         and Bruno Haible  <bruno@clisp.org>
61235
61236         Remove stat module & update lstat.
61237         * config/srclist.txt (libc sources): Remove stat.
61238
61239 2005-06-24  Derek Price  <derek@ximbiot.com>
61240         and Bruno Haible  <bruno@clisp.org>
61241
61242         Remove stat module & update lstat.
61243         * MODULES.html.sh (stat): Remove.
61244         * MODULES.html: Regenerated.
61245         * modules/lstat (Description): Correct function name.
61246         (Files): Add "lstat.h".
61247         (Depends-on): Remove stat, add xalloc, stat-macros.
61248         * modules/stat: Remove this file.
61249         (Include): Add "lstat.h", remove <sys/stat.h>.
61250
61251 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61252
61253         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61254         (ranged_convert): Don't save conversion in a temporary struct.
61255         This causes a warning with GCC 4.0.0, and anyway in the typical
61256         case it's not worth the extra 100 bytes or so of code.
61257         (ranged_convert, __mktime_internal): When calling a function via a
61258         pointer P, use P () rather than (*P) (), as we now assume C89 or
61259         better.
61260
61261 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61262
61263         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61264         "who -r" failed to give output.  Problem reported by Tim Waugh.
61265
61266         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61267         (xcalloc): Use it to avoid needless tests.
61268         Problem reported by Jim Meyering.
61269
61270 2005-06-20  Derek Price  <derek@ximbiot.com>
61271
61272         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61273         unnecessary for Autoconfs > 2.59c.
61274
61275 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61276
61277         * lib/argp.h (__option_is_short): Check upper limit of
61278         __key. Isprint() requires its argument to have the value
61279         of an unsigned char or EOF.
61280
61281 2005-06-16  Jim Meyering  <jim@meyering.net>
61282
61283         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61284         when either N or S is zero.
61285
61286 2005-06-16  Derek Price  <derek@ximbiot.com>
61287
61288         * m4/bison.m4: Declare YACC & YFLAGS precious.
61289
61290 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61291
61292         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61293         multibyte string or pattern, fall back on unibyte matching.
61294         Problem reported by James Youngman.
61295
61296 2005-06-08  Bruno Haible  <bruno@clisp.org>
61297
61298         * modules/csharpcomp: New file.
61299         * MODULES.html.sh (C#): Add csharpcomp.
61300
61301 2005-06-08  Bruno Haible  <bruno@clisp.org>
61302
61303         * m4/csharpcomp.m4: New file, from GNU gettext.
61304
61305 2005-06-08  Bruno Haible  <bruno@clisp.org>
61306
61307         * lib/csharpcomp.h: New file, from GNU gettext.
61308         * lib/csharpcomp.c: New file, from GNU gettext.
61309         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61310
61311 2005-06-08  Bruno Haible  <bruno@clisp.org>
61312
61313         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61314         warning on mingw.
61315
61316 2005-06-07  Derek Price  <derek@ximbiot.com>
61317
61318         Sync from CVS.
61319         * lib/glob_.h: Indent nested #ifdef.
61320
61321 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61322
61323         Sync from coreutils.
61324         Use "file name" when talking about file names, instead of "filename"
61325         or "path", as per the GNU coding standards.
61326         * lib/mkdir-p.c: Renamed from makepath.c.
61327         (make_dir_parents): Renamed from make_path.  All callers changed.
61328         * lib/mkdir-p.h: Likewise.  All includers changed.
61329         * lib/filenamecat.c: Renamed from path-concat.c.
61330         (file_name_concat): Renamed from path_concat.  All callers changed.
61331         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61332         * lib/filenamecat.h: Likewise.  All includers changed.
61333         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61334         in comments or local variable names.
61335         * lib/basename.c: Likewise.
61336         * lib/canonicalize.c, canonicalize.h: Likewise.
61337         * lib/dirname.c, dirname.h: Likewise.
61338         * lib/euidaccess.c: Likewise.
61339         * lib/exclude.c: Likewise
61340         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61341         * lib/fsusage.c, fsuage.h: Likewise.
61342         * lib/fts.c, fts_.h: Likewise.
61343         * lib/getcwd.c: Likewise.
61344         * lib/getloadavg.c: Likewise.
61345         * lib/mkstemp.c: Likewise.
61346         * lib/mountlist.c, mountlist.h: Likewise.
61347         * lib/openat.c, openat.h: Likewise.
61348         * lib/readlink-stub.c: Likewise.
61349         * lib/readutmp.c, readutmp.h: Likewise.
61350         * lib/rename.c: Likewise.
61351         * lib/rmdir.c: Likewise.
61352         * lib/same.c: Likewise.
61353         * lib/savedir.c: Likewise.
61354         * lib/stripslash.c: Likewise.
61355         * lib/tempname.c: Likewise.
61356         * lib/xreadlink.c: Likewise.
61357         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61358         All uses changed.
61359         * lib/exclude.h: Likewise.
61360
61361         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61362         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61363         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61364         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61365         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61366         files have been getting away with it for years (MORE/BSD 4.3
61367         is extinct now).
61368         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61369         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61370
61371         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61372         Define to 256, not 255, as per modern POSIX.
61373
61374 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61375
61376         Sync from coreutils.
61377         Use "file name" when talking about file names, instead of "filename"
61378         or "path", as per the GNU coding standards.
61379         * MODULES.html.sh: mkdir-p renamed from makepath.
61380         filenamecat renamed from path-concat.
61381         * modules/filenamecat: Renamed from modules/path-concat.
61382         (Files): filenamecat.h and filenamecat.c renamed from
61383         path-concat.h and path-concat.c.
61384         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61385         (Include): filenamecat.h, not path-concat.h.
61386         * modules/mkdir-p: Renamed from modules/makepath.
61387         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61388         makepath.c.
61389         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61390         (Include): mkdir-p.h, not makepath.h.
61391
61392 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         Sync from coreutils.
61395         * m4/mkdir-p.m4: Renamed from makepath.m4.
61396         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61397         Rename files from makepath.c to mkdir-p.c, and from
61398         makepath.h to mkdir-p.h.
61399         * m4/filenamecat.m4: Renamed from path-concat.m4.
61400         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61401         Rename files from path-concat.c to filenamecat.c,
61402         and from path-concat.h to filenamecat.h.
61403         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61404         "file name" in local variables or comments.
61405         * m4/rename.m4: Likewise.
61406
61407 2005-06-01  Bruno Haible  <bruno@clisp.org>
61408
61409         * modules/csharpexec: New file.
61410         * MODULES.html.sh (C#): New section.
61411
61412 2005-06-01  Bruno Haible  <bruno@clisp.org>
61413
61414         * m4/csharp.m4: New file, from GNU gettext.
61415         * m4/csharpexec.m4: New file, from GNU gettext.
61416
61417 2005-06-01  Bruno Haible  <bruno@clisp.org>
61418
61419         * lib/csharpexec.h: New file, from GNU gettext.
61420         * lib/csharpexec.c: New file, from GNU gettext.
61421         * lib/csharpexec.sh.in: New file, from GNU gettext.
61422
61423 2005-05-31  Derek Price  <derek@ximbiot.com>
61424             Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         Sync from cvs.
61427         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61428
61429 2005-05-31  Derek Price  <derek@ximbiot.com>
61430             Paul Eggert  <eggert@cs.ucla.edu>
61431
61432         Sync from cvs.
61433         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61434
61435 2005-05-29  Derek Price  <derek@ximbiot.com>
61436
61437         * config/srclist.txt (glob_.h, glob.c): Add these files.
61438
61439 2005-05-29  Derek Price  <derek@ximbiot.com>
61440
61441         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61442         * modules/glob: New file.
61443         * modules/getlogin_r: Add link to POSIX spec in description.
61444
61445 2005-05-29  Derek Price  <derek@ximbiot.com>
61446             Paul Eggert  <eggert@cs.ucla.edu>
61447
61448         * m4/glob.m4: New file.
61449
61450 2005-05-29  Derek Price  <derek@ximbiot.com>
61451             Paul Eggert  <eggert@cs.ucla.edu>
61452
61453         * lib/glob_.h, lib/glob.c: New files.
61454
61455 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61456
61457         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61458         * modules/fts-lgpl (Depends-on): Remove gettext.
61459
61460 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61461
61462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61463         and don't require gt_INTTYPES_PRI.
61464
61465 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61466
61467         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61468
61469         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61470         the configuration hassle isn't worth it.
61471         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61472         (LONGEST_MODIFIER, PRIuMAX): Remove.
61473
61474 2005-05-27  Bruno Haible  <bruno@clisp.org>
61475
61476         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61477
61478 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
61479
61480         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
61481         _POSIX_PTHREAD_SEMANTICS for Solaris.
61482
61483 2005-05-25  Derek Price  <derek@ximbiot.com>
61484
61485         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
61486
61487 2005-05-25  Derek Price  <derek@ximbiot.com>
61488             Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * modules/getlogin_r, m4/getlogin_r.m4: New files.
61491         * lib/getlogin_r.c, getlogin_r.h: New files.
61492
61493 2005-05-25  Bruno Haible  <bruno@clisp.org>
61494             Derek Price  <derek@ximbiot.com>
61495
61496         * lib/getlogin_r.h: Simplify API documentation.
61497
61498 2005-05-23  Derek Price  <derek@ximbiot.com>
61499
61500         * modules/minmax (Files): Add m4/minmax.m4.
61501         (configure.ac): Add gl_MINMAX.
61502
61503 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61504
61505         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61506         so that unistd-safer.h (GPL'ed code) need not be included.
61507
61508 2005-05-22  Bruno Haible  <bruno@clisp.org>
61509
61510         * m4/minmax.m4: New file.
61511         Based on a patch by Derek Price <derek@ximbiot.com>.
61512
61513 2005-05-22  Bruno Haible  <bruno@clisp.org>
61514
61515         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61516         (INT64_MIN): Fix definition.
61517         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61518
61519         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61520         NEED_SIGNED_INT_TYPES.
61521
61522         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61523         HAVE_SYSTEM_INTTYPES.
61524
61525 2005-05-22  Bruno Haible  <bruno@clisp.org>
61526
61527         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61528         Also include <sys/param.h> if it defines MIN, MAX.
61529         Based on a patch by Derek Price <derek@ximbiot.com>.
61530
61531 2005-05-21  Jim Meyering  <jim@meyering.net>
61532
61533         * modules/fts (Files): Add m4/inttypes-pri.m4.
61534         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61535
61536 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         New fts module.
61539         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61540         (setup_dir, free_dir): New functions.
61541         (enter_dir, leave_dir): Define trivial
61542         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61543         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61544         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61545         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61546         Move to fts-cycle.c.
61547         (fts_open): Use setup_dir.
61548         (fts_close): Use free_dir.
61549         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
61550         This adds a label and some gotos, but the alternatives were messier.
61551         Check for memory allocation failure when entering a dir.
61552         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
61553         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
61554         (FTS): New member fts_cycle, that is a union that contains the
61555         old active_dir_ht and cycle_state.  All uses changed to mention
61556         fts_cycle.ht and fts_cycle.state.
61557         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
61558         fts.c, with the following changes:
61559         (setup_dir, free_dir): New functions.
61560         (enter_dir): Now returns bool.  Return true if successful, false
61561         if memory exhausted.  All callers changed.
61562         Do not bother partly cleaning up on
61563         memory allocation failure; that is free_dir's job.
61564         However, free ad if hash_insert fails, to avoid memory leak.
61565         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
61566         fts->fts_options to see which union member to use.
61567
61568 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61569
61570         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
61571         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
61572
61573 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61574
61575         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
61576
61577 2005-05-20  Jim Meyering  <jim@meyering.net>
61578
61579         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
61580         Now a macro, to pacify GCC.
61581
61582 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61583
61584         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
61585         of -1.
61586
61587 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61588
61589         * lib/chown.c (rpl_chown): Return -1 on failure.
61590
61591 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61592
61593         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
61594         Don't check for stddef.h.
61595         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
61596         don't use its results.
61597         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
61598         since we include them unconditionally.  Don't require
61599         AM_STDBOOL_H, since stdbool is a prerequisite.
61600         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
61601         since we assume C89 or better.
61602         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
61603         as we don't use their results.
61604         Don't check for fchdir, memmove, memset, strrchr, as we use
61605         them unconditionally.
61606         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
61607         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
61608
61609 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61610
61611         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
61612         Include <stddef.h> unconditionally, since we assume C89 now.
61613         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
61614         * lib/fts.c: Include fts_.h first, to check interface.
61615         Do not include intprops.h; no longer needed.
61616         Include cycle-check.h and hash.h, since fts_.h no longer does.
61617         Remove unnecessary casts of closedir to void.
61618         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
61619         decide whether to decrement nlinks.
61620         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
61621         (FTS): Use struct hash_table * instead of Hash_table, so that
61622         we no longer need to include hash.h here.
61623
61624 2005-05-18  Jim Meyering  <jim@meyering.net>
61625
61626         * modules/dirfd (License): Change to LGPL.  Most of the code
61627         is already in the public domain.
61628
61629 2005-05-18  Jim Meyering  <jim@meyering.net>
61630
61631         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
61632         Reported by Yoann Vandoorselaere.
61633
61634 2005-05-17  Jim Meyering  <jim@meyering.net>
61635
61636         * m4/fts.m4: New file, from coreutils.
61637
61638 2005-05-17  Jim Meyering  <jim@meyering.net>
61639
61640         * lib/fts.c, lib/fts_.h: New files, from coreutils.
61641
61642 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         Sync from coreutils.
61645         * m4/unlinkdir.m4: New file.
61646
61647 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61648
61649         Sync from coreutils.
61650         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
61651         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
61652         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
61653         White space changes only.
61654         * lib/makepath.c (make_path): Port to hosts where leading "//" is
61655         special.
61656         * lib/yesno.c: Include getline.h, not ctype.h.
61657         (yesno): Don't remove leading white space; POSIX doesn't allow it.
61658         Use getline to remove arbitrary restriction on response length.
61659
61660 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61661
61662         * config/srclist-update: Spell out "Street" in FSF postal
61663         mail address; this is the style the FSF seems to prefer.
61664
61665         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
61666         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
61667         this updates FSF postal mail address.
61668
61669         Sync from coreutils.
61670         * modules/unlinkdir: New file.
61671         * modules/yesno (Depends-on): Add getline.
61672         * MODULES.html.sh (File system functions): Add unlinkdir.
61673
61674 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61675
61676         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
61677         lib/strsep.h:
61678         Change the initial comment to refer to GPL, not LGPL.
61679         gnulib-tool will change it to LGPL as needed.
61680
61681         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
61682         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
61683         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
61684         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
61685         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
61686         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
61687         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
61688         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
61689         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
61690         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
61691         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
61692         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
61693         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
61694         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
61695         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
61696         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
61697         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
61698         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
61699         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
61700         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
61701         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
61702         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
61703         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
61704         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
61705         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
61706         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
61707         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
61708         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
61709         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
61710         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
61711         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
61712         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
61713         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
61714         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
61715         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
61716         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
61717         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
61718         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
61719         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
61720         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
61721         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
61722         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
61723         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
61724         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
61725         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
61726         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
61727         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
61728         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
61729         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
61730         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
61731         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61732         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
61733         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
61734         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
61735         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
61736         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
61737         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
61738         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
61739         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
61740         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
61741         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
61742         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
61743         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
61744         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
61745         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
61746         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
61747         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
61748         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
61749         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
61750         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
61751         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
61752         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
61753         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
61754         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
61755         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
61756         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
61757         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
61758         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
61759         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
61760         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
61761         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
61762         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
61763         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
61764         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
61765         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
61766         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
61767         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
61768         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
61769         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
61770         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
61771         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
61772         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
61773         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
61774         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
61775         lib/yesno.c, lib/yesno.h:
61776         Update FSF postal mail address.
61777
61778 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61779
61780         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
61781         tests/test-memmem.c, tests/test-stpncpy.c:
61782         Update FSF postal mail address.
61783
61784 2005-05-13  Bruno Haible  <bruno@clisp.org>
61785
61786         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
61787         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
61788         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
61789         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
61790         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
61791         Add support for 64-bit integers in the MSVC compiler.
61792
61793 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61794
61795         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
61796
61797 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
61798
61799         * gnulib-tool (func_import): Sort and uniquify recommended includes.
61800
61801 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * doc/getdate.texi (General date syntax): Don't say that date
61804         date --iso-8601=ns generates acceptable dates; it doesn't yet.
61805         Problem reported by Nic Ferrier.
61806
61807 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61808
61809         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
61810         specified in ai_socktype. Fix invalid ai_protocol
61811         check. ai_protocol is usually set to 0 or depending on
61812         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
61813         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
61814         ai_socktype / ai_protocol in the returned addrinfo structure.
61815
61816 2005-05-10  Simon Josefsson  <jas@extundo.com>
61817
61818         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
61819         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61820
61821 2005-05-10  Karl Berry  <karl@gnu.org>
61822
61823         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
61824         (from http://www.gnu.org/licenses).
61825         * doc/COPYING.LIB: also rename to COPYING.LESSER.
61826         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
61827         fdl.texi suffices.
61828
61829 2005-05-10  Karl Berry  <karl@gnu.org>
61830
61831         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
61832         (COPYING.DOC): remove.
61833
61834         * config/srclist-update: new FSF address.
61835
61836 2005-05-10  Derek Price  <derek@ximbiot.com>
61837
61838         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
61839         possible.
61840
61841 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61842             Bruno Haible  <bruno@clisp.org>
61843
61844         * modules/inet_ntop: New file.
61845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61846         inet_ntop.
61847
61848 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61849             Bruno Haible  <bruno@clisp.org>
61850
61851         * m4/inet_ntop.m4: New file.
61852
61853 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61854             Bruno Haible  <bruno@clisp.org>
61855
61856         * lib/inet_ntop.h: New file.
61857         * lib/inet_ntop.c: New file, from glibc with modifications.
61858
61859 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
61860
61861         * modules/time_r (License): Change to LGPL.
61862         * modules/extensions (License): Change to LGPL.  Actually,
61863         the license is more permissive than that, but currently gnulib-tool
61864         doesn't know how to handle more-permissive licenses.
61865
61866         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
61867         Problem reported by Dave Love.
61868
61869 2005-05-08  Jim Meyering  <jim@meyering.net>
61870
61871         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
61872         blank.
61873
61874 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         * modules/argmatch (Depends-on): Add stdbool.
61877         * modules/backupfile (Depends-on): Likewise.
61878         * modules/chdir-long (Depends-on): Likewise.
61879         * modules/closeout (Depends-on): Likewise.
61880         * modules/cycle-check (Depends-on): Likewise.
61881         * modules/dirname (Depends-on): Likewise.
61882         * modules/fnmatch (Depends-on): Likewise.
61883         * modules/fsusage (Depends-on): Likewise.
61884         * modules/fwriteerror (Depends-on): Likewise.
61885         * modules/getcwd (Depends-on): Likewise.
61886         * modules/getloadavg (Depends-on): Likewise.
61887         * modules/hard-locale (Depends-on): Likewise.
61888         * modules/makepath (Depends-on): Likewise.
61889         * modules/mountlist (Depends-on): Likewise.
61890         * modules/nanosleep (Depends-on): Likewise.
61891         * modules/posixtm (Depends-on): Likewise.
61892         * modules/quotearg (Depends-on): Likewise.
61893         * modules/readtokens (Depends-on): Likewise.
61894         * modules/readtokens0 (Depends-on): Likewise.
61895         * modules/readutmp (Depends-on): Likewise.
61896         * modules/save-cwd (Depends-on): Likewise.
61897         * modules/strftime (Depends-on): Likewise.
61898         * modules/userspec (Depends-on): Likewise.
61899         * modules/utimecmp (Depends-on): Likewise.
61900         * modules/xgetcwd (Depends-on): Likewise.
61901         * modules/xnanosleep (Depends-on): Likewise.
61902         * modules/xstrtod (Depends-on): Likewise.
61903         * modules/yesno (Depends-on): Likewise.
61904
61905 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
61906
61907         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
61908         needless checks.
61909
61910 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61911
61912         Merge from coreutils.  Among other things,
61913         add bulletproofing for cases where stdin, stdout, or stderr are closed.
61914         * lib/fd-safer.c: New file.
61915         * lib/fcntl-safer.h, open-safer.c: Remove.
61916         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
61917         * lib/dup-safer.c: Include unistd-safer.h first.
61918         Don't include errno.h.
61919         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
61920         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
61921         * lib/file-type.c: Rely on file-type.h change.
61922         * lib/getloadavg.c: Include unistd-safer.h.
61923         (getloadavg): Use safer open.
61924         * lib/getusershell.c: Include "stdio-safer.h".
61925         (getusershell): Use safer fopen.
61926         * lib/long-options.c (long_options): Use NULL rather than 0.
61927         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
61928         'free'.
61929         * lib/modechange.c: Likewise.
61930         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
61931         (MODE_DONE): New constant.
61932         (struct mode_change): Remove 'next' member.
61933         (make_node_op_equals): New function; like the old one of the
61934         same name, except it allocates an array.
61935         (mode_compile, mode_create_from_ref): Use it.
61936         (mode_compile): Allocate result as an array, not a linked list.
61937         Parse octal string ourself, so that we catch mistakes like "+0".
61938         (mode_adjust): Arg is an array, not a linked list.
61939         * lib/modechange.c: Include stat-macros.h, xalloc.h.
61940         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
61941         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
61942         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
61943         Remove.  This is now stat-macros.h's job.
61944         (talloc): Remove.  All callers replaced by xalloc, so that
61945         our invokers don't have to worry about reporting memory failures.
61946         (make_node_op_equals): Remove.
61947         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61948         New constants.
61949         (struct mode_change): Moved here from modechange.h.
61950         (mode_append_entry): Remove.
61951         (mode_compile): Remove MASKED_OPS arg, since it encouraged
61952         apps to have incorrect behavior.  Use simpler algorithm for head
61953         and tail.  Don't futz with umask; that's now the job of mode_adjust.
61954         Detect more invalid usages rather than having somewhat-random behavior.
61955         Don't insert an "a=" action, as that leads to incorrect behavior.
61956         (mode_compile, mode_create_from_ref): Return NULL on error instead
61957         of an enum, since now there's only one way to have an error.  All
61958         callers changed.
61959         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
61960         at the correct time.  Simplify calculation of "+u" and its ilk.
61961         Don't mishandle "+X".
61962         (mode_free): Remove "register" and localize decls.
61963         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61964         (struct mode_change): Move to modechange.c; callers don't
61965         need to see this stuff.
61966         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
61967         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
61968         (mode_change, mode_adjust): Reflect the new signatures noted above.
61969         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
61970         that might redefine system include files.
61971         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
61972         (my_usleep): Use NULL rather than (void *) 0.
61973         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
61974         Use siginterrupt to specify that system calls should be interrupted.
61975         (rpl_nanosleep): Move initialization of suspended closer to call of
61976         my_usleep.
61977         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
61978         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
61979         (desirable_utmp_entry): New function.
61980         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
61981         using x2nrealloc, to simplify logic.
61982         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
61983         size calculation.  Do not assume utmp file is a regular file.
61984         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
61985         (READ_UTMP_CHECK_PIDS): New constant.
61986         * lib/save-cwd.c: Include unistd-safer.h.
61987         (save_cwd): Use fd_safer.
61988         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
61989         [!_LIBC] Include "stat-macros.h" instead.
61990         * lib/unistd-safer.h (fd_safer): New decl.
61991
61992 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61993
61994         * modules/getloadavg (Depends-on): Add unistd-safer.
61995         * modules/getusershell (Depends-on): Add stdio-safer.
61996         * modules/lstat (Depends-on): Remove xalloc.
61997         * modules/mkstemp (Depends-on): Add stat-macros.
61998         * modules/modechange (Depends-on): Remove xstrtol.
61999         Add stat-macros, xalloc.
62000         * modules/save-cwd (Depends-on): Add unistd-safer.
62001         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62002         * modules/unistd-safer (Files): Add lib/fd-safer.c
62003         (Makefile.am): Remove lib_SOURCES.
62004
62005         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62006         Remove fcntl-safer; unistd-safer supersedes it.
62007
62008 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62011         AC_HEADER_STAT.
62012         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62013         (gl_PREREQ_CHOWN): Remove.
62014         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62015         it.  Don't require AC_HEADER_STAT.
62016         (gl_PREREQ_LSTAT): Remove.
62017         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62018         Don't require AC_HEADER_STAT.
62019         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62020         (gl_PREREQ_RMDIR): Remove.
62021         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62022         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62023         the stat-macros module a prerequisite.
62024         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62025         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62026         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62027         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62028         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62029         variable names.
62030         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62031         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62032         variable prefixes.
62033         * m4/fcntl-safer.m4: Remove.
62034         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62035         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62036         Invoke gl_PREREQ_FD_SAFER.
62037         (gl_PREREQ_FD_SAFER): New macro.
62038         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62039         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62040         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62041         Remove duplicate call to AC_LIBOBJ(readutmp).
62042         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62043
62044         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62045         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62046
62047 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62048
62049         * MODULES.html.sh (Misc): Add byteswap.
62050
62051 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62052
62053         * modules/getcwd (Depends-on): Add extensions.
62054         * modules/openat (Depends-on): Likewise.
62055
62056 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62057
62058         * modules/byteswap: New file.
62059
62060 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62061
62062         * m4/byteswap.m4: New file.
62063
62064 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62065
62066         * lib/byteswap_.h: New file.
62067
62068 2005-04-25  Karl Berry  <karl@gnu.org>
62069
62070         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62071
62072 2005-04-25  Albert Chin  <china@thewrittenword.com>
62073
62074         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62075         Toolkit C bug.
62076
62077 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62078
62079         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62080         (func_ln_if_changed) Remove forcibly for no error message
62081         in case file does not exist.
62082
62083 2005-04-19  Simon Josefsson  <jas@extundo.com>
62084
62085         * gnulib-tool (Options): Make --symlink mean --symbolic.
62086
62087 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62088
62089         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62090
62091 2005-04-16  Simon Josefsson  <jas@extundo.com>
62092
62093         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62094
62095 2005-04-15  Simon Josefsson  <jas@extundo.com>
62096
62097         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62098
62099 2005-04-15  Simon Josefsson  <jas@extundo.com>
62100
62101         * gnulib-tool: Rename --symlink to --symbolic.
62102
62103 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62104
62105         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62106         symbolic links to files instead of copying/moving.  Add --aux-dir,
62107         specifying directory relative --dir where auxiliary build tools
62108         are placed.
62109
62110 2005-04-14  Bruno Haible  <bruno@clisp.org>
62111
62112         * modules/allocsa (License): Change to LGPL.
62113         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62114
62115 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62116
62117         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62118         that "UTC +1 second" continues to work.  Problem reported
62119         by Dmitry V. Levin.
62120         (relunit_snumber): New rule.
62121         (relunit): Use it.
62122
62123 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62124
62125         * lib/getdate.y (universal_time_zone_table): New constant.
62126         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62127         universal_time_zone_table.
62128         (lookup_zone): Prefer universal_time_zone_table to
62129         local_time_zone_table, so that "GMT" time stamps are allowed in
62130         London during the summer.  Problem reported by Ian Abbott.
62131
62132 2005-04-12  Jim Meyering  <jim@meyering.net>
62133
62134         * lib/human.c (humblock): Set *options even when returning due to
62135         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62136         warning from gcc-4.
62137
62138 2005-04-09  Jim Meyering  <jim@meyering.net>
62139
62140         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62141         -Wuninitialized: initialize tm0.tm_year.
62142
62143 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62144
62145         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62146         count, since there's no maximum.  All uses changed.
62147         Add member dsts_seen.
62148         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62149         not being INT_MAX.
62150         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62151         Use pc_rels_seen to decide whther a date is absolute.
62152
62153         * lib/getdate.y (number): Don't overwrite year.
62154         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62155         check.
62156
62157 2005-04-02  Simon Josefsson  <jas@extundo.com>
62158
62159         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62160         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62161
62162 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62163
62164         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62165         where no absolute path name can be longer than PATH_MAX.
62166
62167 2005-03-27  Jim Meyering  <jim@meyering.net>
62168
62169         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62170
62171 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62172
62173         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62174         "one's complement" -> "ones' complement" in comment, as per Knuth.
62175         "value of type" -> "type or expression" in comment.
62176         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62177
62178 2005-03-26  Jim Meyering  <jim@meyering.net>
62179
62180         Comment nits.
62181         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62182         Correct typos: s/or/of/.
62183
62184 2005-03-26  Jim Meyering  <jim@meyering.net>
62185
62186         * modules/check-include-files: Move to ../ and rename to...
62187         * check-module: ...this.
62188
62189 2005-03-25  Jim Meyering  <jim@meyering.net>
62190
62191         * modules/xvasprintf (Files): Add xalloc.h.
62192
62193 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62194
62195         * modules/gettext (Files): config/config.rpath ->
62196         build-aux/config.rpath
62197         * modules/iconv (Files): Likewise.
62198         Problem reported by Oskar Liljeblad.
62199
62200 2005-03-23  Jim Meyering  <jim@meyering.net>
62201
62202         * modules/check-include-files: New script to check for
62203         missing dependencies, multiple includes, etc.
62204
62205         * modules/c-strtold (Depends-on): Add xalloc.
62206         * modules/c-strtod (Depends-on): Add xalloc.
62207         * modules/hash (Depends-on): Add xalloc.
62208         (Files): Remove lib/xalloc.h.
62209
62210         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62211         * modules/userspec (Files): Add lib/inttostr.h.
62212
62213 2005-03-23  Jim Meyering  <jim@meyering.net>
62214
62215         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62216
62217 2005-03-22  Jim Meyering  <jim@meyering.net>
62218
62219         * modules/stat-macros: New module.
62220         * modules/canonicalize, modules/euidaccess, modules/file-type,
62221         * modules/filemode, modules/lchown, modules/makepath,
62222         * modules/rmdir, modules/stat: Depend on new stat-macros module
62223         rather than listing lib/stat-macros.h manually.
62224         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62225
62226 2005-03-22  Jim Meyering  <jim@meyering.net>
62227
62228         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62229
62230 2005-03-22  Bruno Haible  <bruno@clisp.org>
62231
62232         * config/srclist.txt: Replace target directory 'config' with
62233         'build-aux'.
62234         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62235         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62236         ../build-aux/.
62237
62238 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62239
62240         * modules/chdir-long (Depends-on): Add mempcpy.
62241
62242         * modules/acl, modules/backupfile, modules/c-strtod,
62243         modules/c-strtold, modules/canon-host, modules/canonicalize,
62244         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62245         modules/exclude, modules/exitfail, modules/file-type,
62246         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62247         modules/getdate, modules/getline, modules/getpagesize,
62248         modules/getpass, modules/getugroups, modules/group-member,
62249         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62250         modules/inttostr, modules/long-options, modules/makepath,
62251         modules/md5, modules/memcasecmp, modules/memcoll,
62252         modules/modechange, modules/mountlist, modules/path-concat,
62253         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62254         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62255         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62256         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62257         modules/strftime, modules/strndup, modules/strverscmp,
62258         modules/timespec, modules/unlocked-io, modules/userspec,
62259         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62260         modules/yesno:
62261         Remove lib_SOURCES line from Makefile.am section, as this is now
62262         done automatically by the corresponding Autoconf macro.
62263
62264 2005-03-21  Jim Meyering  <jim@meyering.net>
62265
62266         Changes imported from coreutils.
62267
62268         * lib/cycle-check.c: Don't include xalloc.h.
62269
62270         * lib/path-concat.c: Don't include assert.h.
62271         (path_concat): Remove assertion that would have triggered
62272         for ABASE starting with more than one slash.
62273         Reported by Andreas Schwab.
62274
62275         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62276         properly when ABASE is an absolute file name.
62277         Correct the description of this function.
62278         Include <assert.h>.
62279         Add an assertion and a test driver.
62280         This fixes a bug introduced on 2004-07-02.
62281         Andreas Schwab reported the resulting failure of cp --parents:
62282         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62283
62284 2005-03-21  Jim Meyering  <jim@meyering.net>
62285
62286         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62287         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62288
62289 2005-03-21  Jim Meyering  <jim@meyering.net>
62290         and  Paul Eggert  <eggert@cs.ucla.edu>
62291
62292         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62293         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62294         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62295         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62296         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62297         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62298         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62299         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62300         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62301         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62302         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62303         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62304         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62305         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62306         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62307         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62308         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62309         for these modules.
62310
62311 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62312
62313         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62314         (which shouldn't happen), generate nothing instead of returning 0
62315         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62316
62317 2005-03-16  Bruno Haible  <bruno@clisp.org>
62318
62319         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62320         HAVE_LONGLONG_64BIT.
62321
62322 2005-03-16  Bruno Haible  <bruno@clisp.org>
62323
62324         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62325         HAVE_LONGLONG_64BIT.
62326
62327 2005-03-16  Bruno Haible  <bruno@clisp.org>
62328
62329         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62330         HAVE_LONGLONG_64BIT.
62331
62332 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62333
62334         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62335         reliably distinguish strftime failure from empty output on POSIX
62336         hosts.
62337
62338 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62339
62340         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62341         (iconv_string): Don't guess a size-zero buffer, as that might cause
62342         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62343         result would be 'too large', where 'too large' is (heuristically)
62344         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62345         overflow concerns.  This will prevent some unwanted malloc failures
62346         when the inputs are very large.
62347
62348 2005-03-15  Karl Berry  <karl@gnu.org>
62349
62350         * config/srclist.txt (config.rpath): from gettext.
62351         * config/config.rpath: update.
62352
62353 2005-03-15  Bruno Haible  <bruno@clisp.org>
62354
62355         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62356         to 'negate'.
62357
62358         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62359         variable.
62360
62361         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62362         results.
62363
62364 2005-03-14  Simon Josefsson  <jas@extundo.com>
62365
62366         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62367         <fx@gnu.org>.
62368
62369 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62370
62371         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62372         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62373         intprops.h.
62374         * lib/strtol.c: Likewise.
62375
62376 2005-03-14  Jim Meyering  <jim@meyering.net>
62377
62378         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62379         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62380         to be nonzero so that we (and caller) can detect the difference
62381         between a valid zero-length expansion and an error return, even
62382         when the underlying strftime fails before writing anything into
62383         that location.
62384
62385 2005-03-14  Bruno Haible  <bruno@clisp.org>
62386
62387         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62388         Update from GNU gettext 0.14.3.
62389
62390 2005-03-10  Jim Meyering  <jim@meyering.net>
62391
62392         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62393
62394 2005-03-10  Jim Meyering  <jim@meyering.net>
62395
62396         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62397         so that this module works on systems without fchdir.
62398
62399 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62400
62401         Factor int-properties macros into a single file, except for
62402         glibc-related files.
62403         * lib/intprops.h: New file.
62404         * lib/getloadavg.c: Include it instead of limits.h.
62405         (INT_STRLEN_BOUND): Remove.
62406         * lib/human.c: Include intprops.h.
62407         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62408         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62409         302/1000.
62410         * lib/inttostr.h: Include intprops.h instead of limits.h.
62411         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62412         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62413         for consistency with intprops.h.
62414         (time_t_is_integer, twos_complement_arithmetic): Use them.
62415         * lib/sig2str.h: Include <signal.h>, intprops.h.
62416         (INT_STRLEN_BOUND): Remove.
62417         * lib/strftime.c (TYPE_SIGNED): Remove.
62418         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62419         * lib/strtol.c: Adjust comments to match intprops.h.
62420         * lib/userspec.c: Include intprops.h.
62421         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62422         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62423         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62424         instead of rolling our own expressions.
62425         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62426
62427         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62428         instead of int.
62429         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62430         the right thing even if adding 1900 would overflow.  Similarly
62431         for tm_mon + 1 and tm_yday + 1.
62432         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62433         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62434         (DO_SIGNED_NUMBER): New macro.
62435         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62436
62437 2005-03-07  Bruno Haible  <bruno@clisp.org>
62438
62439         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62440
62441 2005-03-07  Bruno Haible  <bruno@clisp.org>
62442
62443         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62444
62445 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62446
62447         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62448         (func_import): Only replace files via --import when they have actually
62449         changed.
62450
62451 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62452
62453         * m4/mmap-anon.m4: New file.
62454         * m4/pagealign_alloc.m4: New file.
62455
62456 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62457             Bruno Haible  <bruno@clisp.org>
62458
62459         * modules/pagealign_alloc: New file.
62460         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62461
62462 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62463             Bruno Haible  <bruno@clisp.org>
62464
62465         * lib/pagealign_alloc.h: New file.
62466         * lib/pagealign_alloc.c: New file.
62467
62468 2005-03-03  Bruno Haible  <bruno@clisp.org>
62469
62470         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62471         Use an all-permissive copyright notice, recommended by RMS.
62472
62473 2005-03-02  Bruno Haible  <bruno@clisp.org>
62474
62475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62476         of AIX, the replacement has to be done only after <string.h> is
62477         included, therefore not in config.h. stpncpy.h does the replacement,
62478         and stpncpy.c uses it.
62479
62480 2005-03-02  Bruno Haible  <bruno@clisp.org>
62481
62482         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
62483         stpncpy.c uses it.
62484
62485 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62486
62487         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
62488         The workaround isn't strictly needed for POSIX conformance, and
62489         it's too much of a pain to configure and maintain.  We'll ask
62490         people to fix their kernels instead.
62491         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
62492         (NANOSLEEP_BUG_WORKAROUND): Remove.
62493         (xnanosleep): Remove the workaround.
62494
62495 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62496
62497         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
62498         Reported by Derek Price.
62499         (Include): Add "timespec.h".
62500
62501         * modules/xnanosleep (Depends-on): Remove gethrxtime.
62502
62503 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62504
62505         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62506         to detect nanosleep bug.
62507
62508 2005-03-01  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62511
62512 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62513
62514         * modules/gethrxtime: New file.
62515         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62516         (Depends-on): Add gethrxtime.
62517         (configure.ac): Add gl_XNANOSLEEP.
62518         (Makefile.am): Remove lib_SOURCES line.
62519
62520 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62521
62522         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62523         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62524
62525 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62526
62527         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62528         * lib/timespec.h (gettime): Return void, since it always
62529         succeeds now.  All uses changed.
62530         * lib/gettime.c (gettime) Likewise.
62531         [HAVE_NANOTIME]: Prefer nanotime.
62532         Assume gettimeofday succeeds, as POSIX requires.
62533         Assime time () succeeds, since other code already does.
62534         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62535         (timespec_subtract): Remove.
62536         (NANOSLEEP_BUG_WORKAROUND): New constant.
62537         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62538         things considerably.  Use it only on GNU/Linux hosts, since the
62539         workaround shouldn't be needed elsewhere.
62540
62541 2005-02-24  Bruno Haible  <bruno@clisp.org>
62542
62543         * modules/gettext (Files): Add m4/glibc2.m4.
62544
62545 2005-02-24  Bruno Haible  <bruno@clisp.org>
62546
62547         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62548         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62549         * m4/progtest.m4:
62550         Update from GNU gettext 0.14.2.
62551         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
62552
62553 2005-02-24  Bruno Haible  <bruno@clisp.org>
62554
62555         * lib/localcharset.c: Update from GNU gettext 0.14.2.
62556         * lib/config.charset: Update from GNU gettext 0.14.2.
62557
62558 2005-02-24  Bruno Haible  <bruno@clisp.org>
62559
62560         * lib/gettext.h: Update from GNU gettext 0.14.2.
62561
62562 2005-02-23  Simon Josefsson  <jas@extundo.com>
62563
62564         * m4/iconvme.m4: New file.
62565
62566 2005-02-23  Jim Meyering  <jim@meyering.net>
62567
62568         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
62569         change.
62570         Thanks to Bruno Haible for catching it.
62571
62572 2005-02-22  Simon Josefsson  <jas@extundo.com>
62573
62574         * modules/iconvme: New file.
62575
62576         * MODULES.html.sh: Add iconvme.
62577
62578 2005-02-22  Simon Josefsson  <jas@extundo.com>
62579
62580         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
62581
62582 2005-02-22  Simon Josefsson  <jas@extundo.com>
62583
62584         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
62585
62586 2005-02-22  Jim Meyering  <jim@meyering.net>
62587
62588         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
62589         s/ifndef/ifdef/.
62590
62591 2005-02-20  Neil Conway  <neilc@samurai.com>
62592
62593         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
62594         returned by OSX/Darwin if the specified buffer is not large
62595         enough for the hostname.
62596
62597 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62598
62599         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
62600         pass it to _help, otherwise the latter coredumps trying to
62601         dereference state.root_argp.
62602
62603 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * modules/chdir-long (Depends-on): Add memrchr.
62606         * modules/memrchr (Files): Add lib/memrchr.h.
62607         (Include): "memrchr.h".
62608
62609 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62610
62611         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
62612
62613 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62614
62615         * lib/memrchr.h: New file.
62616         * lib/chdir-long.c: Include it.
62617         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
62618         Don't bother including stddef.h.
62619
62620 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62621
62622         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
62623         inclusion.
62624         Include <sys/types.h>, for dev_t.
62625         (ME_DUMMY, ME_REMOTE): Move from here....
62626         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
62627         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
62628         Dmitry V. Levin.
62629         Include mountlist.h first, to test the interface.
62630
62631 2005-01-29  Bruno Haible  <bruno@clisp.org>
62632
62633         * lib/progname.c (program_name): Initialize.
62634         Needed when linking statically on MacOS X.
62635
62636 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62637
62638         Sync from coreutils.
62639         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
62640         (Depends-on): Add c-strtod.
62641         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
62642
62643 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62644
62645         Sync from coreutils.
62646         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
62647
62648         Remove files that are specific to coreutils.
62649         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
62650
62651 2005-01-28  Bruno Haible  <bruno@clisp.org>
62652
62653         * modules/javacomp: New file.
62654         * MODULES.html.sh (Java): Add javacomp.
62655
62656 2005-01-28  Bruno Haible  <bruno@clisp.org>
62657
62658         * m4/javacomp.m4: New file, from GNU gettext.
62659
62660 2005-01-28  Bruno Haible  <bruno@clisp.org>
62661
62662         * lib/javacomp.sh.in: New file, from GNU gettext.
62663         * lib/javacomp.h: New file, from GNU gettext.
62664         * lib/javacomp.c: New file, from GNU gettext.
62665
62666 2005-01-26  Simon Josefsson  <jas@extundo.com>
62667
62668         * lib/gai_strerror.c: Use GPL in header.
62669
62670 2005-01-26  Bruno Haible  <bruno@clisp.org>
62671
62672         * modules/javaexec: New file.
62673         * MODULES.html.sh (Java): Add javaexec.
62674
62675 2005-01-26  Bruno Haible  <bruno@clisp.org>
62676
62677         * m4/javaexec.m4: New file, from GNU gettext.
62678
62679 2005-01-26  Bruno Haible  <bruno@clisp.org>
62680
62681         * lib/javaexec.sh.in: New file, from GNU gettext.
62682         * lib/javaexec.h: New file, from GNU gettext.
62683         * lib/javaexec.c: New file, from GNU gettext.
62684
62685 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62686
62687         * modules/lchown (Depends-on): Remove lchown.h
62688
62689 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62690
62691         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
62692         must be defined if the header file was not found, in order
62693         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
62694
62695 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62696
62697         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
62698         initializers for struct pentry_state.
62699         (__argp_error): Check return value of __asprintf
62700         (__argp_failure): Translate error message
62701
62702         * lib/argp-parse.c: Removed braces around the expansion of N_()
62703
62704 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62705
62706         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
62707         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
62708         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
62709         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
62710         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
62711         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
62712         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
62713         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
62714         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
62715         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
62716         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
62717         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
62718         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
62719         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
62720         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
62721         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
62722         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
62723         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
62724         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
62725         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
62726         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
62727         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
62728         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
62729         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
62730         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
62731         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
62732         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
62733         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
62734         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
62735         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
62736         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
62737         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
62738         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
62739         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
62740         xstrtol.m4, xstrtoumax.m4, yesno.m4:
62741         Use an all-permissive copyright notice, recommended by RMS.
62742
62743 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
62744
62745         * modules/chdir-long (Depends-on): Remove mempcpy.
62746
62747 2005-01-21  Jim Meyering  <jim@meyering.net>
62748
62749         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
62750         same value as for Solaris 9.
62751
62752         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
62753         component length.  This included changing the parameter to be
62754         of type `char *' rather than `char const *'.
62755         * lib/chdir-long.h (chdir_long): Update prototype.
62756
62757         * lib/openat.c (fdopendir, fstatat): New functions.
62758         * lib/openat.h: Include headers required for use of DIR and struct
62759         stat.
62760         [AT_SYMLINK_NOFOLLOW]: Define.
62761         (fdopendir, fstatat): Add prototypes.
62762
62763 2005-01-21  Bruno Haible  <bruno@clisp.org>
62764
62765         * modules/classpath: New file.
62766         * MODULES.html.sh (Java): Add classpath.
62767
62768 2005-01-21  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/classpath.h: New file, from GNU gettext.
62771         * lib/classpath.c: New file, from GNU gettext.
62772
62773 2005-01-20  Simon Josefsson  <jas@extundo.com>
62774
62775         * modules/version-etc-fsf: New file.
62776
62777 2005-01-20  Simon Josefsson  <jas@extundo.com>
62778
62779         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
62780         * lib/version-etc.c: Remove version_etc_copyright.
62781         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
62782         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
62783
62784 2005-01-20  Simon Josefsson  <jas@extundo.com>
62785
62786         * lib/base64.h (isbase64): Add.
62787
62788         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
62789         using a unsigned prototype, don't inline.
62790         (base64_decode): Use it.
62791
62792 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62793
62794         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
62795         it.
62796
62797 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62798
62799         * lib/save-cwd.c (save_cwd): Remove code to support the case
62800         where fchdir is missing or flaky.
62801
62802 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62803
62804         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
62805
62806 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62807
62808         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
62809         AC_LIBSOURCES now does this.
62810         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
62811         with new ullong_max module.
62812
62813 2005-01-19  Bruno Haible  <bruno@clisp.org>
62814
62815         * modules/sh-quote: New file.
62816         * MODULES.html.sh (Executing programs): Add sh-quote.
62817
62818 2005-01-19  Bruno Haible  <bruno@clisp.org>
62819
62820         * lib/sh-quote.h: New file, from GNU gettext.
62821         * lib/sh-quote.c: New file, from GNU gettext.
62822
62823 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62824
62825         Merge from coreutils.
62826         * m4/ullong_max.m4: New file.
62827         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
62828         (gl_MACROS): Assume localeconv exists.
62829
62830 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62831
62832         Merge changes from coreutils, as described below in several
62833         changelogs dated today.
62834
62835         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
62836         (O_DIRECTORY): Remove; not needed here, since "." must be
62837         a directory.  All uses removed.
62838         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
62839         universal on Suns, and we also need to test for IRIX.
62840         Revamp code to use 'if' rather than '#if'.
62841         Avoid unnecessary comparison of cwd->desc to 0.
62842
62843         * lib/utimens.c (futimens): Robustify the previous patch, by checking
62844         for known valid error numbers rather than observed invalid ones.
62845
62846 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62847
62848         * modules/ullong_max: New file.
62849
62850         * modules/chdir-long, modules/openat: New files.
62851         * modules/save-cwd (Depends-on): Depend on chdir-long.
62852         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
62853
62854 2005-01-18  Jim Meyering  <jim@meyering.net>
62855
62856         Merge from coreutils.
62857         * m4/chdir-long.m4, m4/openat.m4: New files.
62858         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
62859         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
62860         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
62861         is sane and DOES follow symlinks.  Besides, testing 20 different
62862         systems found no broken chown implementations.
62863         Prompted by a change in rsync's copy of this macro.
62864         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
62865
62866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
62867
62868         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
62869         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
62870         NULL-means-set-to-current-time semantics.
62871         Remove temporary file immediately, rather than waiting
62872         for configure's at-exit trap code to do it.
62873
62874 2005-01-18  Jim Meyering  <jim@meyering.net>
62875
62876         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62877
62878         * lib/utimens.c (futimens): Account for the fact that futimes
62879         can also fail with errno == ENOSYS or errno == ENOENT.
62880         Patch from Dmitry V. Levin.
62881
62882         Change the name of the robust chdir function from chdir to chdir_long.
62883         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
62884         (restore_cwd): Use chdir_long, not chdir.
62885         * lib/chdir-long.c: Renamed from chdir.c.
62886         * lib/chdir-long.h: Renamed from chdir.h.
62887         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
62888         Hurd.
62889
62890 2005-01-18  Bruno Haible  <bruno@clisp.org>
62891
62892         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
62893         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
62894         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
62895         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
62896         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
62897         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
62898         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
62899         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
62900         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
62901         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
62902         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
62903         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
62904         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
62905         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
62906         Use an all-permissive copyright notice, recommended by RMS.
62907
62908 2005-01-18  Bob Proulx  <bob@proulx.com>
62909
62910         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
62911         simplify offsetof() macro construct to avoid compile failure with
62912         native HP-UX 11.0 ANSI C compiler.
62913
62914 2005-01-17  Bruno Haible  <bruno@clisp.org>
62915
62916         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
62917         redundant because stpncpy.m4 takes care of it.
62918
62919 2005-01-17  Bruno Haible  <bruno@clisp.org>
62920
62921         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
62922
62923 2005-01-17  Bruno Haible  <bruno@clisp.org>
62924
62925         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
62926         used.
62927
62928 2005-01-17  Bruno Haible  <bruno@clisp.org>
62929
62930         * lib/fwriteerror.h (fwriteerror): Change specification to include
62931         fclose.
62932         * lib/fwriteerror.c: Include <stdbool.h>.
62933         (fwriteerror): At the end, close the file stream. Record whether
62934         stdout was already closed.
62935
62936 2005-01-17  Bruno Haible  <bruno@clisp.org>
62937
62938         * lib/execute.c (environ): Declare if needed.
62939         * lib/pipe.c (environ): Likewise.
62940         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
62941
62942 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62943
62944         * modules/argp: Depend on vsnprintf
62945
62946 2005-01-10  Jim Meyering  <jim@meyering.net>
62947
62948         * modules/closeout (Depends-on): Add atexit.
62949
62950 2005-01-06  Bruno Haible  <bruno@clisp.org>
62951
62952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
62953
62954 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62955
62956         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
62957         definitions to be after all include files, to avoid collisions.
62958         Problem reported by Bob Proulx.
62959
62960 2005-01-04  Jim Meyering  <jim@meyering.net>
62961
62962         Changes imported from coreutils.
62963         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
62964         as the mkstemp template, use a temporary directory and an
62965         8.3-friendly template to avoid trouble on systems like DJGPP.
62966         Reported by Juan M. Guerrero via Stepan Kasal.
62967         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
62968         close. Remove the temporary directory right away, rather than waiting
62969         for configure's at-exit trap code to do it.
62970         Suggestion from Stepan Kasal.
62971
62972 2005-01-01  Simon Josefsson  <jas@extundo.com>
62973
62974         * gnulib-tool: Print #include directives when --import'ing.
62975
62976 2004-12-28  Simon Josefsson  <jas@extundo.com>
62977
62978         * tests/test-base64.c: Include required header files.  Remove
62979         unused variables.
62980
62981 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62982
62983         * modules/error (Depends-on): Remove gettext.
62984
62985 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62986
62987         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
62988         not needed.  This removes a dependency on the gettext module.
62989         [defined _LIBC]: Do not include <libintl.h>; not needed.
62990
62991 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62992
62993         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
62994         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
62995
62996 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
62997
62998         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
62999         HAVE_DECL_STRTOLD.
63000
63001 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63002
63003         * modules/getdate (Depends-on): Remove alloca-opt.
63004
63005 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63006
63007         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63008
63009 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63010
63011         * lib/argp-parse.c: Include <stddef.h>.
63012         (alignof, alignto): New macros.
63013         (parser_init): Don't assume that void * is aligned sufficiently
63014         for struct option.
63015
63016         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63017         need to extend the stack.
63018         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63019         large.
63020
63021 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63022
63023         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63024
63025 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63026
63027         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63028         (2004-10-24) change.  Apparently this was a false alarm.
63029
63030         * modules/getdate: Depend on alloca-opt, not alloca.
63031
63032 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63033
63034         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63035         Remove now-obsolete comment about AIX.
63036         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63037         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63038         (YYMAXDEPTH): New macro.
63039
63040 2004-12-18  Simon Josefsson  <jas@extundo.com>
63041
63042         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63043
63044 2004-12-18  Bruno Haible  <bruno@clisp.org>
63045
63046         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63047
63048 2004-12-18  Bruno Haible  <bruno@clisp.org>
63049
63050         * lib/fatal-signal.c (fatal_signals): Make non-const.
63051         (init_fatal_signals): New function.
63052         (uninstall_handlers, install_handlers): Ignore signals that were set to
63053         SIG_IGN.
63054         (at_fatal_signal): Call init_fatal_signals.
63055         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63056         SIG_IGN.
63057         Reported by Paul Eggert.
63058
63059 2004-12-18  Bruno Haible  <bruno@clisp.org>
63060
63061         * doc/alloca.texi: New file.
63062         * doc/alloca-opt.texi: New file.
63063
63064 2004-12-17  Jim Meyering  <jim@meyering.net>
63065
63066         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63067         Otherwise, install-sh could exit with improper exit status when
63068         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63069
63070 2004-12-16  Simon Josefsson  <jas@extundo.com>
63071
63072         * tests/test-base64.c: Add license.
63073
63074 2004-12-15  Stepan Kasal  <address@hidden>
63075
63076         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63077
63078 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63079
63080         * modules/getcwd (Files): Add m4/d-ino.m4.
63081         Suggested by Mark D. Baushke.
63082
63083 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63084
63085         * lib/getdate.y (textint): New member "negative".
63086         (time_zone_hhmm): New function.
63087         Expect 14 shift-reduce conflicts, not 13.
63088         (o_colon_minutes): New rule.
63089         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63090         (yylex): Set the "negative" member of signed numbers.
63091
63092 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63093
63094         * doc/getdate.texi (Time of day items, Time zone items):
63095         Describe new formats +00:00, UTC+00:00.
63096
63097 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63098
63099         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63100         spurious "-l"s.  Problem reported by Stepan Kasal.
63101
63102 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63103
63104         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63105         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63106
63107 2004-12-04  Simon Josefsson  <jas@extundo.com>
63108
63109         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63110         Vandoorselaere <yoann@prelude-ids.org>.
63111
63112 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63113
63114         Changes imported from coreutils.
63115         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63116         exist.
63117         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63118
63119 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63120
63121         Changes imported from coreutils.
63122         * lib/hard-locale.c: Assume <locale.h> exists.
63123         Include "strdup.h".
63124         (GLIBC_VERSION): New macro.
63125         (hard_locale): Assume setlocale exists.
63126         Rewrite to avoid #ifdef.
63127         Use strdup rather than malloc + strcpy.
63128         * lib/human.c: Assume <locale.h> exists.
63129         (human_readable): Assume localeconv exists.
63130
63131 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         * modules/hard-locale (Depends-on): Add strdup.
63134
63135 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63136
63137         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63138         convert T2, not T.  (Imported from libc.)
63139
63140 2004-11-30  Simon Josefsson  <jas@extundo.com>
63141
63142         * modules/restrict (License): Change to LGPL.
63143
63144 2004-11-30  Simon Josefsson  <jas@extundo.com>
63145
63146         * m4/restrict.m4: Add copyright and copying conditions.
63147
63148 2004-11-30  Simon Josefsson  <jas@extundo.com>
63149
63150         * m4/base64.m4: New file.
63151
63152 2004-11-30  Simon Josefsson  <jas@extundo.com>
63153
63154         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63155         base64.
63156
63157         * tests/test-base64.c: New file.
63158
63159         * modules/base64: New file.
63160
63161 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63162
63163         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63164         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63165
63166         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63167
63168 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63169
63170         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63171         (__getcwd.c): Don't restore errno; glibc doesn't.
63172         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63173         first, falling back to our code only if its results look suspicious.
63174         Ensure that the resulting buffer is only as large as necessary.
63175
63176         * lib/readutmp.c: Include readutmp.h first.
63177         Include <errno.h>, since readutmp.h no longer does that.
63178         * lib/readutmp.h: Don't include <errno.h>,
63179         <sys/param.h>, <time.h>; not needed to establish interface.
63180         (errno): Remove decl.
63181         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63182         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63183         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63184
63185 2004-11-28  Simon Josefsson  <jas@extundo.com>
63186
63187         * lib/base64.h, base64.c: New file.
63188
63189 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63190
63191         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63192
63193 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63194
63195         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63196         (Depends-on): Remove pathmax, same.  Add mempcpy.
63197         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63198         (Makefile.am): Append getcwd.h to lib_SOURCES.
63199         (Include): Add getcwd.h.
63200         (Maintainer): Change from Jim Meyering to "all, glibc",
63201         since getdate now uses intended-for-glibc code.
63202         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63203         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63204
63205 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63206
63207         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63208         HP's ANSI C compiler.
63209         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63210         Declaring int functions causes warnings on some modern systems and
63211         shouldn't be needed to compile on ancient ones.
63212         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63213         defined.
63214
63215         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63216         with the following changes.
63217         (__set_errno): Parenthesize properly.
63218         Include <stdbool.h>.
63219         (MIN, MAX, MATCHING_INO): New macros.
63220         (__getcwd): Define with prototype, not K&R form.
63221         Use heuristics to allocate default buffer on stack if possible.
63222         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63223         behavior, and to avoid the PATH_MAX limit when computing
63224         ../../../../...
63225         Use MATCHING_INO to compare inode number to file.
63226         Check for arithmetic overflow in size calculations.
63227         Fix bug in reallocation of dot array that caused getcwd to fail
63228         on directories nested deeper than 75.
63229         Be more careful about saving errno on error.
63230         Do not use realloc; use only free+malloc, as this is a bit
63231         more flexible and avoids a needless copy operation.
63232         Do not inspect st_dev and st_ino for symbolic links; POSIX
63233         doesn't specify the latter.
63234         Check for closedir errors.
63235         Avoid needless casts.
63236         Use "#ifdef weak_alias" around weak_alias, to be like other
63237         glibc code.
63238         The following changes to getcwd.c have effect only when used in
63239         gnulib; they have no effect inside glibc proper.
63240         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63241         as alloca isn't used.
63242         (alloca, __alloca): Likewise.
63243         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63244         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63245         unconditionally, as gnulib assumes C89 or better.
63246         Do not include <sys/param.h>.
63247         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63248         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63249         better.
63250         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63251         Include <dirent.h> in a way that is compatible with modern Autoconf.
63252         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63253         New macros, if not already defined.
63254         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63255         Use "_LIBC", not "defined _LIBC", for consistency.
63256         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63257         a mempcpy module.
63258         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63259         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63260         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63261         credit only to Jim Meyering and adjust the copyright dates.
63262         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63263         <stdlib.h>, <unistd.h>, "pathmax.h".
63264         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63265         (INITIAL_BUFFER_SIZE): Remove.
63266         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63267
63268 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63271         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63272         Use the _ONCE methods, for efficiency.
63273         Check for fcntl.h.  In test program, include <errno.h>
63274         and <fcntl.h> if available.  Remove old K&R cruft from
63275         test program.  Check for common errors in GNU/Linux,
63276         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63277         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63278         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63279         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63280         name accordingly.
63281         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63282         accommodate new getcwd.c.
63283         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63284         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63285         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63286         that's all we need now.
63287
63288 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63289
63290         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63291         argp-parse.c depends on getopt internals, that means we should
63292         always use our getopt, to be on the safe side.
63293         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63294         order not to spoil the result of an eventual previous invocation
63295         of gl_GETOPT_SUBSTITUTE.
63296
63297 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63298
63299         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63300         redefinition warnings. To avoid them, include the defines
63301         in `#if !defined __need_getopt ... #endif'. The only place
63302         where __getopt_argv_const is used is in definitions
63303         of getopt_long and getopt_long_only below, which are as well
63304         protected by `#ifndef __need_getopt'.
63305         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63306         __need_getopt after including <stdio.h> and <unistd.h> These
63307         headers might have defined it.
63308
63309 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63310
63311         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63312
63313 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63316         (futimens): New function, which uses futimes if available.
63317         (futimens, utimens): Support timespec==NULL, with same semantics
63318         as utime and utimens.
63319         * lib/utimens.h (futimens): New decl.
63320
63321 2004-11-23  Jim Meyering  <jim@meyering.net>
63322
63323         * lib/getopt_.h: Remove trailing blanks.
63324
63325 2004-11-23  Jim Meyering  <jim@meyering.net>
63326
63327         * lib/__fpending.c: Add comment.
63328
63329 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63330
63331         * modules/canonicalize (Depends-on): Add xreadlink.
63332         Problem reported by James Youngman.
63333
63334 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63335
63336         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63337         New macros.
63338         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63339         optopt): Use them instead of invoking ## directly; otherwise, the
63340         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63341
63342 2004-11-19  Bruno Haible  <bruno@clisp.org>
63343
63344         * lib/strtok_r.c: Move comments from here...
63345         * lib/strtok_r.h: ... to here.
63346
63347 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63350         implementations that mishandle size_t overflow.
63351
63352 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63353
63354         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63355         might fail.  Problem reported by Yoann Vandoorselaere.
63356         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63357         implementations that mishandle size_t overflow.
63358
63359 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63360
63361         * modules/canon-host (Depends-on): Add strdup.
63362
63363 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63364
63365         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63366
63367 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63368
63369         * lib/canon-host.c: Include "strdup.h".
63370         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63371         Use strdup instead of malloc/strcpy to duplicate strings.
63372
63373         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63374         (human_space_before_unit): New constant.
63375         * lib/human.c (human_readable): Support it.
63376
63377         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63378         (xgetcwd): Set errno correctly when failing.
63379         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63380         the failure is actually due to a PATH_MAX problem.
63381
63382         Further getopt changes to make it more likely that glibc will
63383         buy the changes back.
63384         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63385         (getopt): Use it, so to preserve glibc semantic
63386         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63387         when compiling for libc.
63388         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63389         (getopt_long, getopt_long_only): Use it.
63390
63391         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63392         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63393         (getopt): Argv is now char * const *, as per standard.
63394         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63395         not char *__getopt_argv_const *.
63396         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63397         _getopt_long_only_r): Likewise.
63398         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63399         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63400         _getopt_long_r, _getopt_long_only_r): Likewise.
63401         * lib/getopt_.h (__getopt_argv_const): Remove.
63402         (getopt): Argv is now char * const *, as per standard.
63403
63404         * lib/getdate.y (tORDINAL): New token.
63405         (day, relunit): Allow it for relative times.
63406         (relative_time_table): Use tORDINAL for ordinals.
63407
63408 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63409
63410         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63411         Document that "second" isn't allowed as an ordinal number.
63412
63413 2004-11-16  Jim Meyering  <jim@meyering.net>
63414
63415         * modules/closeout (Depends-on): Add fpending.
63416
63417 2004-11-15  Jim Meyering  <jim@meyering.net>
63418
63419         * lib/closeout.c: Include "__fpending.h" once again.
63420         Include <stdbool.h>.
63421         (close_stdout): Don't fail just because stdout was closed initially,
63422         since some programs don't write to stdout in the normal course of
63423         operation (other than --version and --help), and we don't want this
63424         function to make e.g. `touch file >&-' fail.
63425         But do fail if it was closed and someone has tried to write to it.
63426         E.g., `printf foo >&-' must fail.
63427
63428 2004-11-13  Jim Meyering  <jim@meyering.net>
63429
63430         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63431
63432 2004-11-12  Simon Josefsson  <jas@extundo.com>
63433
63434         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63435         small doc fix is still pending.
63436
63437 2004-11-11  Simon Josefsson  <jas@extundo.com>
63438
63439         * modules/strtok_r: New file.
63440
63441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63442         strtok_r.
63443
63444 2004-11-11  Simon Josefsson  <jas@extundo.com>
63445
63446         * m4/strtok_r.m4: New file.
63447
63448         * m4/getopt.m4: Replace opterr.
63449
63450 2004-11-11  Simon Josefsson  <jas@extundo.com>
63451
63452         * lib/strtok_r.h, strtok_r.c: New file.
63453
63454 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63455
63456         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63457         of replacing opterr, getopt, etc.  This should handle the
63458         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63459
63460 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63461
63462         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63463         we can stop lying to compilers about the constness of argv when we
63464         are compiled outside glibc.
63465         (getopt, getopt_long, getopt_long_only): Use it.
63466         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63467         _getopt_internal, getopt): Likewise.
63468         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63469         _getopt_long_only_r): Likewise.
63470         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63471         _getopt_long_r, _getopt_long_only_r): Likewise.
63472
63473         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63474         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63475         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63476         the other external symbols.
63477         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
63478         declaration, since the above renaming now works around collisions.
63479
63480 2004-11-11  Jim Meyering  <jim@meyering.net>
63481
63482         * lib/linebreak.c: Remove trailing blanks.
63483         * lib/alloca_.h: Likewise.
63484         * lib/acosl.c: Likewise.
63485         * lib/euidaccess.c: Likewise.
63486         * lib/allocsa.h: Likewise.
63487
63488 2004-11-10  Simon Josefsson  <jas@extundo.com>
63489
63490         * m4/getaddrinfo.m4: New file.
63491
63492 2004-11-10  Simon Josefsson  <jas@extundo.com>
63493
63494         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
63495
63496 2004-11-10  Simon Josefsson  <jas@extundo.com>
63497
63498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63499         getaddrinfo.
63500
63501         * modules/getaddrinfo: New file.
63502
63503 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63506
63507 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         * lib/mktime.c (SHR): New macro, which is a portable
63510         substitute for >> that should work even on Crays.
63511         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63512         Problem reported by Mark D. Baushke in
63513         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63514         * lib/getdate.y (SHR): Likewise.
63515         (tm_diff): Use it.
63516         * lib/strftime.c (SHR): Likewise.
63517         (tm_diff): Use it.
63518         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63519         quote_these_too, so that right shifts are well defined.  All uses
63520         changed.
63521
63522 2004-11-10  Jim Meyering  <jim@meyering.net>
63523
63524         Ensure that no close failure goes unreported.
63525         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63526         return early when it seems there's nothing to flush.
63527         Don't include __fpending.h.
63528
63529 2004-11-10  Jim Meyering  <jim@meyering.net>
63530
63531         * modules/closeout (Depends-on): Remove fpending.
63532
63533 2004-11-10  Jim Meyering  <jim@meyering.net>
63534
63535         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63536
63537 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63540         gl_FUNC_STRFTIME.
63541         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63542         and AC_REQUIRE when possible, to avoid duplicate checks.
63543         Check for <wchar.h>.
63544
63545 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63546
63547         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63548
63549 2004-11-09  Bruno Haible  <bruno@clisp.org>
63550
63551         * m4/sockpfaf.m4: New file.
63552
63553 2004-11-05  Bruno Haible  <bruno@clisp.org>
63554
63555         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
63556         Reported by Mark D. Baushke <mdb@cvshome.org>.
63557
63558 2004-11-04  Bruno Haible  <bruno@clisp.org>
63559
63560         2004-09-11  Bruno Haible  <bruno@clisp.org>
63561                 * allocsa.valgrind: New file.
63562         2004-02-06  Bruno Haible  <bruno@clisp.org>
63563                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
63564                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
63565                 Reported by Christopher Seip <chris.seip@hp.com>.
63566
63567 2004-11-04  Bruno Haible  <bruno@clisp.org>
63568
63569         * modules/allocsa (Files): Add lib/allocsa.valgrind.
63570         (Makefile.am): Distribute it.
63571
63572 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63573
63574         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
63575         with errno == ERANGE if the buffer is too small.
63576         Problem reported by Mark D. Baushke.
63577
63578 2004-11-03  Albert Chin  <china@thewrittenword.com>
63579             Paul Eggert  <eggert@cs.ucla.edu>
63580
63581         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
63582         equivalent, substitute $ac_type for equivalent type rather than
63583         blindly using uint32_t *always* which won't work if uint32_t is not
63584         available.  Define _UINT32_T to work around typedef of uint32_t if
63585         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
63586         2.5.1.
63587
63588 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63589
63590         * m4/jm-macros.m4: Sync from coreutils.
63591         (gl_MACROS): Check for mbrlen, for pathchk.
63592         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
63593
63594 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63595
63596         * lib/xreadlink.c (MAXSIZE): New macro.
63597         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
63598         size does not exceed MAXSIZE.  Avoid cast.
63599         As suggested by Mark D. Baushke in
63600         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
63601         if readlink fails with buffer size just under MAXSIZE, try again
63602         with MAXSIZE.
63603
63604 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63605
63606         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
63607
63608 2004-11-02  Derek R. Price  <derek@ximbiot.com>
63609         and  Paul Eggert  <eggert@cs.ucla.edu>
63610
63611         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
63612         (get_date): Overparenthesize to avoid GCC warning.
63613
63614 2004-11-02  Bruno Haible  <bruno@clisp.org>
63615
63616         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
63617         returns void.
63618
63619 2004-11-02  Bruno Haible  <bruno@clisp.org>
63620
63621         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
63622         function returns void.
63623
63624 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
63627         fflush_unlocked, flockfile, funlockfile, funlockfile,
63628         fputs_unlocked, putc_unlocked.
63629
63630 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63631
63632         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63633         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
63634         already declared.
63635
63636 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63637
63638         * modules/getdate (Files): Add doc/getdate.texi.
63639         (Depends-on): Add setenv, xalloc.
63640
63641 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * lib/getdate.y: Add support for TZ="foo" within a date string.
63644         Fix some bugs near time_t boundaries.  Reject dates with
63645         out-of-range components, e.g., "Sept 31".
63646         Include <stdlib.h>, "setenv.h", "xalloc.h".
63647         (ISDIGIT_LOCALE): Remove; unused.
63648         Note that the TZ and time functions used here are not reentrant.
63649         (mktime_ok, get_tz): New functions.
63650         (TZBUFSIZE): New constant.
63651         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
63652         This requires that we sometimes generate our own TZ="XXX..." setting.
63653
63654 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63655
63656         * doc/getdate.texi: New file, from coreutils with modifications for
63657         the new TZ parsing.
63658
63659 2004-10-27  Derek R. Price  <derek@ximbiot.com>
63660
63661         * lib/mktime.c (not_equal_tm): Remove redundant check.
63662
63663 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         * modules/regex (lib_SOURCES): Add regex.c.
63666         Reported by James Youngman in
63667         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
63668
63669 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * lib/getdate.y: Use Bison 1.875 features, and some minor
63672         code cleanups.  This change does not affect semantics.
63673         Don't include <stdlib.h>; no longer needed.
63674         Don't include unlocked-io.h; only the "#if TEST" code uses
63675         stdio, and performance isn't crucial there.
63676         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
63677         Bison 1.875 features as described below.
63678         All uses of "PC." replaced by "pc->".
63679         (YYSTYPE): Add a forward declaration.
63680         (yylex, yyerror): Use full prototypes in forward decls.
63681         Use "%pure-parser" rather than obsolescent "%pure_parser".
63682         Use %parse-param and %lex-param instead of obsolescent
63683         YYPARSE_PARAM and YYLEX_PARAM.
63684         (meridian_table, month_and_day_table, time_units_table,
63685         relative_time_table, time_zone_table, military_table,
63686         lookup_zone, lookup_word, get_date):
63687         Use NULL instead of 0 where appropriate.
63688         (to_hour): Avoid abort (), to avoid a dependency on
63689         stdlib.h.
63690         (yyerror, yylex): Now accepts parser_control * arg.
63691         (main) [TEST]: Use '\0' rather than 0 for char.
63692
63693 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63694
63695         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
63696
63697 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
63700         It's now the caller's responsibility to handle the case where
63701         !HAVE_GETPAGESIZE && !defined getpagesize.
63702
63703         * lib/mktime.c (leapyear): Arg is long int, not int.
63704
63705 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
63706
63707         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
63708
63709 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63710
63711         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
63712         missing.  Problem reported by James Youngman.
63713
63714 2004-10-16  Simon Josefsson  <jas@extundo.com>
63715
63716         * gnulib-tool: Fix comments.  Fix parse problem.
63717         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
63718
63719 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
63720
63721         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
63722         implementation of getopt_long.  Problem reported by Alexander Taler in:
63723         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
63724
63725 2004-10-15  Bruno Haible  <bruno@clisp.org>
63726
63727         * gnulib-tool: Untabify. Initialize supplied_libname.
63728         (func_usage): More homogenous output.
63729         (func_modules_transitive_closure, func_modules_to_filelist,
63730         func_emit_lib_Makefile_am): New functions.
63731         (func_import): New function, extracted from big case statement. Use
63732         func_get_license, func_modules_transitive_closure,
63733         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
63734         opt_lgpl. Don't use test -a, as it's not portable.
63735         (func_create_testdir): Use func_modules_transitive_closure,
63736         func_modules_to_filelist, func_emit_lib_Makefile_am.
63737
63738 2004-10-15  Bruno Haible  <bruno@clisp.org>
63739
63740         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
63741
63742 2004-10-15  Bruno Haible  <bruno@clisp.org>
63743
63744         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
63745         the portions belonging to each module.
63746         Suggested by Derek Robert Price <derek@ximbiot.com>.
63747
63748 2004-10-12  Simon Josefsson  <jas@extundo.com>
63749
63750         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63751         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
63752         to real functions.
63753
63754 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63755
63756         * modules/vsnprintf: New file.
63757
63758 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63759
63760         * m4/vsnprintf.m4: New file.
63761
63762 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63763
63764         * lib/vsnprintf.h: New file.
63765         * lib/vsnprintf.c: New file.
63766
63767 2004-10-11  Bruno Haible  <bruno@clisp.org>
63768
63769         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
63770         vsnprintf.
63771
63772 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63773
63774         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
63775
63776 2004-10-07  Bruno Haible  <bruno@clisp.org>
63777
63778         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
63779         fits into the provided buffer.
63780
63781 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63782
63783         * lib/diacrit.c, diacrit.h: Add GPL notice.
63784
63785         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
63786         notice.
63787         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
63788         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
63789         This avoids a potential constant-folding bug.
63790
63791 2004-10-05  Bruno Haible  <bruno@clisp.org>
63792
63793         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
63794         for the declaration of strsep.
63795
63796 2004-10-05  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
63799
63800 2004-10-04  Simon Josefsson  <jas@extundo.com>
63801
63802         * modules/memmem: New file.
63803         * tests/test-memmem.c: New file.
63804         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
63805
63806 2004-10-04  Simon Josefsson  <jas@extundo.com>
63807
63808         * m4/memmem.m4: New file.
63809
63810 2004-10-04  Simon Josefsson  <jas@extundo.com>
63811
63812         * lib/memmem.h: New file.
63813         * lib/memmem.c: New file, taken from glibc.
63814
63815 2004-10-04  Simon Josefsson  <jas@extundo.com>
63816
63817         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
63818         '#ifdef USE_UNLOCKED_IO'.
63819
63820 2004-10-04  Simon Josefsson  <jas@extundo.com>
63821
63822         * config/srclist.txt: Add memmem from glibc.
63823
63824 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63825
63826         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
63827
63828         * modules/argmatch, modules/argp, modules/closeout, modules/error,
63829         modules/exclude, modules/getdate, modules/getline,
63830         modules/getndelim2, modules/getpass, modules/getpass-gnu,
63831         modules/getusershell, modules/linebuffer, modules/md5,
63832         modules/mountlist, modules/posixtm, modules/readtokens,
63833         modules/readutmp, modules/regex, modules/sha1,
63834         modules/version-etc, modules/yesno:
63835         Remove dependency on unlocked-io.
63836
63837 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63838
63839         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
63840
63841         * m4/unlocked-io.m4: Add copyright notice.
63842         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
63843
63844 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
63847         * lib/xmalloc.c (xmemdup): Likewise.
63848         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
63849         XFREE): Remove these long-obsolescent macros.
63850         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
63851         * lib/xstrdup.c: Remove.
63852
63853         * lib/regex.c (re_comp): Cast gettext return value to char *,
63854         Problem reported by Martin Neitzel via Mark D. Baushke.
63855
63856 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63857
63858         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
63859         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
63860         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
63861         regex.c, sha1.c, version-etc.c, yesno.c:
63862         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
63863         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
63864         the includer's responsibility.
63865
63866         Sync from coreutils.
63867
63868         * lib/modechange.c (mode_compile): Don't decrement a pointer that
63869         points to the start of a string, as the C Standard says the
63870         resulting behavior is undefined.
63871
63872         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
63873         simple -> simple_backups, numbered_existing ->
63874         numbered_existing_backups, numbered -> numbered_backups
63875         to avoid shadowing problems.  All uses changed.
63876         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
63877         * lib/backupfile.c (check_extension, numbered_backup):
63878         Rename locals to avoid shadowing 'basename'.
63879         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
63880         once.
63881
63882         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
63883         * lib/.cvsignore: Add getopt.h.
63884
63885 2004-10-04  Bruno Haible  <bruno@clisp.org>
63886
63887         * modules/README: New file.
63888         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
63889         not a module.
63890
63891 2004-10-02  Jim Meyering  <jim@meyering.net>
63892
63893         * lib/dirfd.h, getpagesize.h: Add copyright notice.
63894
63895 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63896
63897         * modules/strsep: New file.
63898
63899 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63900
63901         * m4/strsep.m4: New file.
63902
63903 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63904
63905         * lib/strsep.h: New file.
63906         * lib/strsep.c: New file.
63907
63908 2004-10-01  Simon Josefsson  <jas@extundo.com>
63909
63910         * lib/snprintf.c (snprintf): Handle size==0.
63911
63912 2004-10-01  Simon Josefsson  <jas@extundo.com>
63913             Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
63916         (snprintf): Declare 'args'.
63917
63918 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
63919
63920         * lib/snprintf.c: Remove comments as to why each header is needed.
63921
63922 2004-10-01  Bruno Haible  <bruno@clisp.org>
63923
63924         * MODULES.html.sh: Add strsep.
63925
63926 2004-09-30  Simon Josefsson  <jas@extundo.com>
63927
63928         * modules/snprintf: New file.
63929
63930 2004-09-30  Simon Josefsson  <jas@extundo.com>
63931
63932         * m4/snprintf.m4: New file.
63933
63934 2004-09-30  Simon Josefsson  <jas@extundo.com>
63935
63936         * lib/snprintf.h, lib/snprintf.c: New files.
63937
63938 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63939
63940         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
63941         (hol_entry_help): Never translate an empty string.
63942         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
63943         * lib/argp.h (OPTION_NO_TRANS): New option.
63944
63945 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63946
63947         * modules/argp (Maintainer): Replace Simon Josefsson
63948         by Sergey Poznyakoff.
63949
63950 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63951
63952         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
63953         changes merged back into glibc.
63954
63955 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
63958
63959 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63960
63961         * lib/xvasprintf.c: Include xalloc.h.
63962         (xvasprintf): Use xalloc_die, not xmalloc_die.
63963
63964 2004-09-29  Bruno Haible  <bruno@clisp.org>
63965
63966         * modules/alloca-opt: New file, derived from modules/alloca.
63967         * modules/allocsa: Depend on alloca-opt instead of alloca.
63968         * modules/setenv: Likewise.
63969         * modules/vasnprintf: Likewise.
63970         * MODULES.html.sh: Add alloca-opt.
63971
63972 2004-09-28  Simon Josefsson  <jas@extundo.com>
63973
63974         * gnulib-tool: New parameter --lgpl, to asseert that modules are
63975         LGPL, and to replace license template from GPL to LGPL.
63976
63977 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63978
63979         * modules/dummy: Change license to LGPL.
63980
63981 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63982
63983         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
63984
63985 2004-09-24  Simon Josefsson  <jas@extundo.com>
63986
63987         * modules/minmax (License): Change from GPL to LGPL.
63988
63989 2004-09-23  Simon Josefsson  <jas@extundo.com>
63990
63991         * gnulib-tool (--import): Typo.
63992
63993 2004-09-23  Simon Josefsson  <jas@extundo.com>
63994
63995         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
63996
63997 2004-09-22  Bruno Haible  <bruno@clisp.org>
63998
63999         * modules/*: Add 'License' field.
64000         * gnulib-tool: Accept --extract-license option.
64001         (func_get_license): New function.
64002
64003 2004-09-21  Bruno Haible  <bruno@clisp.org>
64004
64005         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64006         Reported by Simon Josefsson.
64007
64008 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64009
64010         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64011         gl_AC_TYPE_LONG_LONG.
64012
64013 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64014
64015         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64016
64017 2004-09-18  Simon Josefsson  <jas@extundo.com>
64018         and  Paul Eggert  <eggert@cs.ucla.edu>
64019
64020         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64021         calls with autoreconf.  Define GL_LIB.
64022
64023 2004-09-14  Karl Berry  <karl@gnu.org>
64024
64025         * config/srclist.txt: unsync setenv.c, sigh.
64026
64027 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64028
64029         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64030         Problem reported by Bruno Haible in:
64031         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64032
64033 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64034
64035         * config/srclist.txt: Comment out argp-pvh.c.
64036
64037 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64038
64039         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64040         in case some system header has #define'd it.  Problem reported by
64041         Soeren D. Schulze in
64042         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64043
64044 2004-09-09  Karl Berry  <karl@gnu.org>
64045
64046         * regex.[ch]: delete from the root.  These were supposed to be
64047                 synced with emacs cvs, but this has not happened for about
64048                 a year, and anyway nothing else uses emacs regex.[ch].
64049                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64050                 lib/regex[.ch] is untouched.
64051
64052 2004-09-09  Bruno Haible  <bruno@clisp.org>
64053
64054         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64055
64056 2004-09-09  Bruno Haible  <bruno@clisp.org>
64057
64058         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64059         modifications.
64060         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64061
64062 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64063
64064         * modules/xvasprintf: New file.
64065         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64066
64067 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64068
64069         * lib/xvasprintf.h: New file.
64070         * lib/xvasprintf.c: New file.
64071         * lib/xasprintf.c: New file.
64072
64073 2004-09-08  Bruno Haible  <bruno@clisp.org>
64074
64075         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64076
64077 2004-09-08  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64080         length is > INT_MAX.
64081         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64082         more.
64083
64084 2004-09-08  Bruno Haible  <bruno@clisp.org>
64085
64086         * lib/stdint_.h: New file, taken from GNU clisp.
64087
64088 2004-09-08  Bruno Haible  <bruno@clisp.org>
64089             Oskar Liljeblad  <oskar@osk.mine.nu>
64090
64091         * modules/stdint: New file.
64092         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64093
64094 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64095
64096         Import from coreutils.
64097         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64098         strings on unbounded length.  alloca's performance benefits aren't
64099         that important here.
64100         (V_STRDUP): Remove.
64101         (parse_with_separator): New function, with most of the internals
64102         of the old parse_user_spec.  Allow user to omit both user and group,
64103         for compatibility with FreeBSD.
64104         Clone only the user name, not the entire spec.
64105         Do not set *uid, *gid unless entirely successful.
64106         Avoid memory leak in some failing cases.
64107         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64108         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64109         (parse_user_spec): Rewrite to use parse_with_separator.
64110
64111 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64112
64113         * modules/userspec: Don't depend on alloca.
64114
64115 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64118
64119 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64120
64121         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64122         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64123         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64124
64125 2004-08-16  Simon Josefsson  <jas@extundo.com>
64126
64127         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64128         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64129         Add --dry-run for --import.
64130         Let user provided command line parameters override configure.ac
64131         settings.
64132
64133 2004-08-12  Simon Josefsson  <jas@extundo.com>
64134
64135         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64136         as discussed with Paul Eggert in threads rooted at
64137         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64138         and
64139         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64140         Before, the test was empty, and relied on ELIDE_CODE in source
64141         code.)
64142         (gl_PREREQ_GETOPT): New macro.
64143         (gl_GETOPT): Use them.
64144
64145 2004-08-12  Simon Josefsson  <jas@extundo.com>
64146
64147         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64148         * lib/getopt_.h: Renamed from getopt.h.
64149
64150 2004-08-12  Simon Josefsson  <jas@extundo.com>
64151
64152         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64153         Change default library name from libfoo to libgnu.
64154         Now, if you have a configure.ac that says:
64155                 gl_SOURCE_BASE(gl)
64156                 gl_M4_BASE(gl/m4)
64157                 gl_MODULES(error getopt etcetera)
64158                 gl_INIT
64159         you can import all you need by running:
64160                 ../gnulib/gnulib-tool --import
64161
64162         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64163         (Makefile.am): Rewrite, use logic from argz.
64164         (Include): Use <getopt.h> instead of "getopt.h".
64165
64166 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64167
64168         * modules/argp (Files): Add m4/unlocked-io.m4.
64169         (Depends-on): Add extensions.
64170
64171 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64174         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64175         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64176         Check for program_invocation_name, program_invocation_short_name,
64177         flockfile, funlockfile, features.h, _getopt_long_only_r.
64178
64179 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64180
64181         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64182         its complicated substitute.
64183         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64184         and program_invocation_name.
64185         (__argp_basename) [!_LIBC]: Remove; the only use was
64186         replaced by its body.
64187         (__argp_short_program_name): Change condition from
64188         !defined __argp_short_program_name to
64189         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64190         to match argp-namefrob.h.
64191         (__argp_failure): Don't assume strerror_r returns char *.
64192         * lib/argp-parse.c (N_): Define unconditionally.
64193         (argp_default_options): Fill out initializers with 0 to avoid
64194         gcc warnings.
64195
64196 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64197
64198         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64199         getopt1.c.
64200
64201 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64202
64203         Merge from coreutils.
64204
64205         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64206
64207         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64208         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64209
64210 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64211
64212         Merge from coreutils.
64213
64214         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64215         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64216         for Reliant Unix 5.43.
64217
64218         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64219         (union fooround): Use uintmax_t, not long int.
64220         The rest is a merge from libc:
64221         [defined _LIBC]: Include <shlib-compat.h>.
64222         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64223
64224         * lib/settime.c (settime): Recode to avoid warning with
64225         Sun Forte C 6U2.
64226
64227         * lib/strverscmp.c: Convert to UTF-8.
64228
64229 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64230
64231         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64232         m4/uintmax_t.m4.
64233
64234 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64235
64236         * modules/xalloc-die: New file.
64237         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64238
64239         * modules/md5 (Files): Add m4/uint32_t.m4.
64240         * modules/sha1: Renamed from modules/sha.
64241         (Files):
64242         Rename lib/sha.h to lib/sha1.h.
64243         Rename lib/sha.c to lib/sha1.c.
64244         Rename m4/sha.m4 to m4/sha1.m4.
64245         (lib_SOURCES): Likewise.
64246         (configure.ac): Rename gl_SHA to gl_SHA1.
64247         (Include): sha.h -> sha1.h.
64248
64249 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64250
64251         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64252         * m4/sha1.m4: Renamed from sha.m4.
64253         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64254
64255 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64256
64257         * lib/obstack.h (obstack_empty_p):
64258         Don't assume that chunk->contents is suitably aligned.
64259         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64260         Likewise. Problem reported by Benno in
64261         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64262
64263         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64264         readable.  This could be improved further but it'd take some work.
64265
64266 2004-08-08  Simon Josefsson  <jas@extundo.com>
64267
64268         * modules/xgethostname (Depends-on): Remove exit and error (not
64269         used).
64270
64271         * modules/getpass-gnu: Add getpass.h.
64272         (Depends-on): Add stdbool.
64273         * modules/getpass: Add getpass.h.
64274
64275 2004-08-08  Simon Josefsson  <jas@extundo.com>
64276
64277         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64278         Check getpass declaration.
64279
64280 2004-08-08  Simon Josefsson  <jas@extundo.com>
64281
64282         * lib/xgethostname.c: Don't include error.h (not used).
64283
64284         * lib/getpass.h: Add.
64285         * lib/getpass.c: Include getpass.h first.
64286
64287 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64288
64289         * lib/xalloc-die.c: New file.
64290         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64291         All uses removed.
64292         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64293         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64294         xalloc-die.c.
64295         (_, N_, xalloc_die): Move to xalloc-die.c.
64296         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64297         so that we needn't mess with xalloc_msg_memory_exhausted.
64298
64299         * lib/sha1.h: Renamed from sha.h.
64300         (SHA1_H): Renamed from _SHA_H.
64301         (sha1_ctx): Renamed from sha_ctx.
64302         (sha1_init_ctx): Renamed from sha_init_ctx.
64303         (sha1_process_block): Renamed from sha_process_block.
64304         (sha1_process_bytes): Renamed from sha_process_bytes.
64305         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64306         (sha1_read_ctx): Renamed from sha_read_ctx.
64307         (sha1_stream): Renamed from sha_stream.
64308         (sha1_buffer): Renamed from sha_buffer.
64309         * lib/sha1.c: Likewise; renamed from sha.c.
64310         Do not include <sys/types.h>.
64311         Include <stddef.h> rather than <stdlib.h>.
64312
64313 2004-08-08  Bruno Haible  <bruno@clisp.org>
64314
64315         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64316         FILESYSTEM_PREFIX_LEN.
64317         * lib/progreloc.c: Likewise.
64318         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64319
64320 2004-08-06  Simon Josefsson  <jas@extundo.com>
64321
64322         * modules/progname (Depends-on): Don't depend on stdbool.
64323
64324 2004-08-06  Simon Josefsson  <jas@extundo.com>
64325
64326         * modules/getsubopt: New file.
64327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64328         getsubopt.
64329
64330 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         More merge from coreutils.
64333
64334         * m4/utimens.m4, m4/utimecmp.m4: New files.
64335         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64336         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64337         prereq.m4, sha.m4: Import changes from coreutils.
64338
64339 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64340
64341         More merge from coreutils.
64342         * modules/raise, modules/readtokens0, modules/utimens:
64343         * modules/utimecmp, module/xnanosleep: New files.
64344         * modules/strftime: Add lib/strftime.h.
64345         Change include from <time.h> to "strftime.h".
64346         * modules/yesno: Add lib/yesno.h.
64347         * modules/backupfile: Remove lib/addext.c.
64348         * modules/euidaccess: Add stat-macros.h.
64349         * modules/canonicalize, modules/euidaccess,
64350         modules/filemode, modules/lchown, modules/makepath,
64351         modules/rmdir, modules/stat: Likewise.
64352
64353 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64354
64355         Merge from tar.
64356         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64357         SIZE_MAX is a valid preprocessor constant.
64358         (__argp_basename): Change from "#ifndef _LIBC"
64359         to "#ifndef __argp_short_program_name", so that
64360         we don't compile these functions for tar.
64361
64362         More merges from coreutils.
64363         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64364         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64365         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64366         * lib/addext.c: Remove; no longer needed.
64367         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64368         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64369         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64370         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64371         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64372         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64373         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64374         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64375         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64376         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64377         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64378         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64379         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64380         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64381         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64382         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64383         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64384         Import changes from coreutils.
64385
64386 2004-08-05  Simon Josefsson  <jas@extundo.com>
64387
64388         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64389
64390 2004-08-05  Simon Josefsson  <jas@extundo.com>
64391
64392         * m4/getsubopt.m4: New file.
64393
64394 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         Merge from coreutils.
64397
64398         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64399         * m4/getcwd-path-max.m4: New files.
64400
64401         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64402         FILESYSTEM_PREFIX_LEN ->
64403         FILE_SYSTEM_PREFIX_LEN.
64404         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64405         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64406         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64407         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64408
64409         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64410         prerequisite modules now handle the DOS stuff.
64411         Don't check for unistd.h.
64412
64413 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64414
64415         Merge from coreutils.
64416
64417         * lib/.gdb-history: Remove; this doesn't belong here.
64418
64419         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64420         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64421         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64422         * lib/getcwd.c: New files.
64423
64424         * lib/dirname.h: Include <stdbool.h>.
64425         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64426         for consistency with POSIX terminology.  All uses changed.
64427         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64428         (strip_trailing_slashes): Use bool for booleans.
64429         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64430
64431         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64432         sometimes returns a positive errno value even when it succeeds.
64433         (print_errno_message) [!LIBC]: Fall back on strerror if
64434         __strerror_r fails.
64435
64436         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64437         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64438         (longest_relative_suffix): New function.
64439         (path_concat): Use it.  Assume first argument is not NULL.
64440         Port to DOS.  Omit redundant separators.
64441         Report an error instead of returning NULL.
64442         Use mempcpy instead of memcpy.
64443         (xpath_concat): Remove: not declared or used.
64444
64445         * lib/same.h: Include <stdbool.h>
64446         (same_name): Return bool, not int.
64447         * lib/same.c (same_name): Likewise.
64448         (errno): Don't declare; we assume C89 or better now.
64449
64450         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64451         if not already defined.
64452
64453         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64454         * lib/dup-safer.c (errno): Likewise.
64455
64456 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64457
64458         Merge from coreutils.
64459         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64460         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64461         * modules/path-concat: Don't depend on strdup.
64462
64463 2004-08-03  Simon Josefsson  <jas@extundo.com>
64464
64465         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64466         * lib/progname.h: Don't include stdbool.h.
64467
64468 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64469
64470         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64471         * MODULES.html.sh (func_all_modules): Remove fatal.
64472
64473 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64474
64475         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64476
64477 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
64480         working.
64481
64482 2004-08-02  Simon Josefsson  <jas@extundo.com>
64483
64484         * lib/getsubopt.h: New file, with comments from Bruno Haible.
64485         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
64486         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
64487
64488 2004-08-01  Simon Josefsson  <jas@extundo.com>
64489
64490         * lib/xgetdomainname.c: Include stdlib.h, for free().
64491
64492 2004-07-19  Bruno Haible  <bruno@clisp.org>
64493
64494         * MODULES.html.sh (func_all_modules): Add dummy.
64495
64496 2004-07-16  Simon Josefsson  <jas@extundo.com>
64497
64498         * modules/dummy: New file.
64499
64500 2004-07-16  Simon Josefsson  <jas@extundo.com>
64501
64502         * lib/dummy.c: New file.
64503
64504 2004-07-16  Bruno Haible  <bruno@clisp.org>
64505
64506         * lib/backupfile.h: Add extern "C" for C++.
64507         * lib/closeout.h: Likewise.
64508         * lib/copy-file.h: Likewise.
64509         * lib/findprog.h: Likewise.
64510         * lib/full-write.h: Likewise.
64511         * lib/pathname.h: Likewise.
64512         * lib/progname.h: Likewise.
64513         * lib/stpcpy.h: Likewise.
64514         * lib/stpncpy.h: Likewise.
64515         * lib/strcase.h: Likewise.
64516         * lib/strstr.h: Likewise.
64517         * lib/xalloc.h: Likewise.
64518
64519         * lib/mbswidth.h: Add extern "C" for C++.
64520         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64521
64522 2004-07-13  Robert Millan  <robertmh@gnu.org>
64523
64524         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64525
64526 2004-07-09  Simon Josefsson  <jas@extundo.com>
64527
64528         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64529         failed without this.)
64530
64531 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * modules/chown (Files): Add lib/fchown-stub.c, since
64534         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64535
64536 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64537
64538         * lib/fchown-stub.c: New file.
64539
64540 2004-06-24  Jim Meyering  <jim@meyering.net>
64541
64542         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64543
64544 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         * modules/argz: Omit "#include".
64547
64548         * MODULES.html.sh (func_all_modules): Add calloc, to match
64549         2004-06-01 addition of calloc module.
64550
64551 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64552
64553         * m4/argz.m4: New file, which is autoupdated from libtool.
64554
64555 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64556
64557         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
64558         libtool.
64559
64560 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64561
64562         * config/srclist-update: Don't insist on "USA." before the
64563         close-comment, as libtool omits the period and puts the */ on a
64564         separate line.
64565         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
64566         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
64567
64568 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
64569
64570         * modules/argz: New file.
64571         * MODULES.html.sh (func_all_modules): Add argz.
64572
64573 2004-06-12  Jim Meyering  <jim@meyering.net>
64574         and  Paul Eggert  <eggert@cs.ucla.edu>
64575
64576         * modules/hash (Files): Add lib/xalloc.h.
64577         * modules/pipe (Depends-on): Add wait-process.
64578         * modules/stat (Depends-on): Add xalloc.
64579         * modules/userspec (Files): Add lib/userspec.h.
64580         * modules/xstrto
64581
64582         Upgrade from gettext-0.13.
64583         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
64584         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
64585         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
64586
64587 2004-06-10  Jim Meyering  <jim@meyering.net>
64588
64589         * lib/calloc.c: New file.
64590
64591 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64592
64593         * lib/getdate.y (yylex): Allow space between sign and number.
64594         Problem reported by Dan Jacobson.
64595
64596 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64597
64598         Merge from coreutils CVS.
64599
64600         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
64601         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
64602         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
64603         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
64604         xstrtol.m4: Fix copyright date and/or serial number.
64605
64606         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
64607         See if we need an fchown replacement.
64608         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
64609         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
64610         and use the replacement function if we detect either defect.
64611
64612         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
64613         gl_UTIMECMP.
64614
64615 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64616         and  Jim Meyering  <jim@meyering.net>
64617
64618         Merge from coreutils CVS.
64619
64620         * lib/stat-macros.h: New file, with contents from file-type.h
64621         and coreutils' system.h.
64622         * lib/file-type.c: Include "stat-macros.h".
64623         * lib/file-type.h (file_type): Move all macro definitions to new file,
64624         stat-macros.h.
64625
64626         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
64627         Wrap old code with this conditional.
64628         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
64629         function that does not dereference symlinks.
64630         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
64631
64632         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
64633         dependency problems.
64634         (xreadlink): Accept new arg SIZE, for efficiency.
64635         All decls and uses changed.
64636         * lib/xreadlink.h: Include <stddef.h>, for size_t.
64637
64638         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
64639         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
64640
64641         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
64642         sysexits.h.
64643
64644 2004-06-01  Jim Meyering  <jim@meyering.net>
64645
64646         * m4/calloc.m4: New file.
64647
64648 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
64649
64650         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
64651         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
64652         Also, fix a typo in a diagnostic.
64653
64654 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64655
64656         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
64657         or AC_FUNC_REALLOC.
64658
64659 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64660
64661         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
64662         macros to be defined.
64663         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
64664         the allocator returns NULL because the requested size is zero.
64665
64666 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64667
64668         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
64669         var.  Add comment explaining why libc still defines it.  This
64670         merges the following patch from glibc:
64671         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
64672
64673 2004-05-20  Andreas Schwab  <schwab@suse.de>
64674
64675         * m4/free.m4: Replace free if it not known to work, not the other
64676         way round.
64677
64678 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64679
64680         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
64681         present in glibc since revision 1.1 of this file.
64682         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
64683         obstack_alignment_mask, obstack_alloc, obstack_base,
64684         obstack_blank, obstack_blank_fast, obstack_chunk_size,
64685         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
64686         obstack_grow0, obstack_init, obstack_int_grow,
64687         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
64688         obstack_next_free, obstack_object_size, obstack_ptr_grow,
64689         obstack_ptr_grow_fast, obstack_room): Remove declarations of
64690         nonexistent functions.
64691
64692 2004-05-18  Karl Berry  <karl@gnu.org>
64693
64694         * config/srclist.txt: break link for vasnprintf.c.
64695
64696 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64697
64698         Port obstack to the AS/400, where pointers are 16 bytes wide and
64699         you cannot cast an integer to a valid pointer.  This patch is
64700         currently waiting to be integrated into glibc; see
64701         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
64702
64703         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
64704         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
64705         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
64706         (struct obstack): temp member is now a union of a pointer and
64707         an integer, instead of an integer.  All integer uses changed.
64708         This does not affect the physical layout of struct obstack,
64709         except on hosts (like the AS/400) where the size or alignment of
64710         void * is greater than that of ptrdiff_t.
64711         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
64712         __STDC__)]: Store temporary in pointer member of union, not
64713         integer member.
64714         * lib/obstack.c: Include <stddef.h>, for offsetof.
64715         (struct fooalign): Remove; it doesn't need a name.
64716         (union fooround): Change double to long double, and add void *.
64717         (DEFAULT_ALIGNMENT): Use offsetof to compute.
64718         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
64719         not a macro.  Hence the values are always int; so remove all
64720         casts-to-int in uses.
64721
64722 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64723
64724         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
64725         we can get this patch merged into glibc.
64726
64727 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64728             Paul Eggert  <eggert@cs.ucla.edu>
64729
64730         * m4/argp: Depend on alloca.
64731
64732 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64733             Paul Eggert  <eggert@cs.ucla.edu>
64734
64735         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
64736         freecoding.
64737
64738 2004-05-17  Bruno Haible  <bruno@clisp.org>
64739
64740         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
64741         precision that consists of a '.' followed by an empty digit string.
64742         Patch by Tor Lillqvist <tml@iki.fi>.
64743
64744 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64745
64746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
64747         for backward compatibility with older code.  We need our own
64748         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
64749         it under some other name, and our alloca.h will define it.
64750
64751 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64752             Derek Price  <derek@ximbiot.com>
64753
64754         * lib/alloca.c: Include <alloca.h>, to get our interface.
64755         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
64756         include <alloca.h> first.  Use C89 prototype for alloca; this
64757         requires including <stddef.h> for size_t.  Use extern "C" if C++.
64758         Use #elif for simplicity, since we can assume C89 now.
64759         Don't try to source the system alloca.h since it will not be found
64760         and to prevent recursively including its replacement.
64761         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
64762         * lib/regex.c: Likewise.
64763
64764 2004-05-16  Derek Price  <derek@ximbiot.com>
64765             Paul Eggert  <eggert@cs.ucla.edu>
64766
64767         getline cleanup.  This changes the getndelim2 API: both order of
64768         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
64769         no delimiter).
64770
64771         * lib/getline.c: Don't include stddef.h or stdio.h, since our
64772         interface does that.
64773         (getline): Always use getdelim, so that we don't have two
64774         copies of this code.
64775         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
64776         if available.
64777         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
64778         (GETNDELIM2_MAXIMUM): New macro.
64779         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
64780         instead of the old practice of delim2==0.  All callers changed.
64781         Return -1 on overflow, instead of returning junk.
64782         Do not set *linesize unless allocation succeeds.
64783         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
64784         that we include sys/types.h.
64785         * lib/getnline.h: Likewise.
64786         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
64787         (getndelim2): Reorder arguments.
64788         * lib/getnline.c (getnline, getndelim):
64789         Don't discard the NMAX argument.
64790         (getnline): Invoke getndelim, to avoid code duplication.
64791         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
64792         of (size_t) -1 by callers of the getnline family.
64793
64794 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64795
64796         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
64797         Check for gettimeofday.
64798         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
64799         Check for settimeofday, stime.
64800
64801 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64802
64803         * lib/nanosleep.c (suspended): Change its type from int to
64804         sig_atomic_t volatile.
64805         (first_call): Make it private to rpl_nanosleep, and have it
64806         be zero initially as that's a bit faster.
64807         (my_usleep): Round up fractional times instead of truncating them,
64808         as this is the usual meaning for 'sleep'.
64809
64810         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
64811         doesn't work.
64812         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
64813         (ENOSYS): Define if not defined.
64814         (settime): Fall back on stime if it exists and settimeofday fails.
64815         But don't bother with fallbacks if a method fails with errno == EPERM.
64816
64817 2004-05-11  Jim Meyering  <jim@meyering.net>
64818
64819         Prior to this change, the save_cwd caller required read access to the
64820         current directory on most systems (ones with the fchdir function).
64821
64822         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
64823         fails, try write-only, and finally, resort to using xgetcwd.
64824
64825 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64826
64827         * lib/obstack.c, obstack.h: Import changes from libc.
64828
64829 2004-04-28  Bruno Haible  <bruno@clisp.org>
64830
64831         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
64832         also implicitly appends .exe to executables.
64833         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
64834         accepts Windows pathnames.
64835         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64836         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64837         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64838         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64839         Reported by Derek Robert Price <derek@ximbiot.com>.
64840
64841 2004-04-21  Karl Berry  <karl@gnu.org>
64842
64843         * config/srclist.txt (localcharset.c): break sync.
64844
64845 2004-04-20  Paul Eggert  <eggert@twinsun.com>
64846
64847         * m4/host-os.m4: Add a copyright notice.
64848
64849 2004-04-20  Jim Meyering  <jim@meyering.net>
64850
64851         Change UTILS_ to gl_ in AC_DEFINE'd names.
64852         Change utils_- and jm_-prefixed variables, too.
64853         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
64854         UTILS_FUNC_MKDIR_TRAILING_SLASH.
64855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
64856
64857         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
64858         Don't emit trailing blanks.
64859         Also rename jm_-prefixed variables to have gl_ prefix.
64860
64861         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
64862         Also rename jm_-prefixed variables to have gl_ prefix.
64863
64864         * m4/jm-macros.m4: Reflect the renamings.
64865         * m4/prereq.m4: Likewise.
64866
64867 2004-04-20  Jim Meyering  <jim@meyering.net>
64868
64869         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
64870         memory.
64871
64872 2004-04-20  Jim Meyering  <jim@meyering.net>
64873             Bruno Haible  <bruno@clisp.org>
64874
64875         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
64876         memory when realloc fails.
64877
64878 2004-04-19  Jim Meyering  <jim@meyering.net>
64879
64880         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
64881         now that readutmp.c may call `free (0)'.
64882
64883 2004-04-19  Bruno Haible  <bruno@clisp.org>
64884
64885         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
64886         * m4/inttypes_h.m4: Likewise.
64887         * m4/stdint_h.m4: Likewise.
64888         * m4/intmax_t.m4: Likewise.
64889         * m4/uintmax_t.m4: Likewise.
64890
64891 2004-04-18  Jim Meyering  <jim@meyering.net>
64892
64893         * m4/prereq.m4: Don't forbid jm_ prefix.
64894
64895         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
64896         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
64897         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
64898         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
64899         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
64900         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
64901         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
64902         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
64903         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
64904         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
64905         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
64906         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
64907         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
64908         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
64909         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
64910         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
64911         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
64912         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
64913         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
64914
64915 2004-04-18  Jim Meyering  <jim@meyering.net>
64916
64917         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
64918         failure, don't leak memory and do call END_UTMP_ENT.
64919
64920 2004-04-16  Jim Meyering  <jim@meyering.net>
64921
64922         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
64923         coreutils' stat program.
64924         (gl_PREREQ): Don't require jm_PREREQ_STAT.
64925
64926 2004-04-11  Paul Eggert  <eggert@twinsun.com>
64927
64928         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
64929         C89.
64930         (CHAR_BIT): Remove, since we assume C89.
64931         Include <stdint.h> if available, as per current Autoconf CVS advice.
64932
64933 2004-03-31  Jim Meyering  <jim@meyering.net>
64934
64935         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
64936         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
64937         * m4/xalloc.m4: Likewise.
64938
64939 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64940
64941         Merge from coreutils.
64942
64943         * m4/inttostr.m4: New file.
64944         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
64945         Require AM_STDBOOL_H and gl_TIMESPEC instead.
64946         Require gl_CLOCK_TIME.
64947         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
64948
64949 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64950
64951         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
64952         not bool, to be more consistent with Unix conventions.
64953         Suggested by Bruno Haible.
64954
64955         Merge from coreutils.
64956
64957         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
64958         * lib/umaxtostr.c: New files.
64959
64960         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
64961         the usual <time.h> dance.
64962         (get_date): Change signature to support fractional time stamps.
64963         All callers changed.
64964         * lib/getdate.y: Include "getdate.h" first, as we can now
64965         assume C89 and don't need to worry about 'const'.
64966         Similarly, include "unlocked-io.h" near start, not in middle.
64967         Include <limits.h>.
64968         (textint.value): Use long int rather than int.
64969         (textint.digits): Use size_t rather than int.
64970         (BILLION, LOG10_BILLION): New constants.
64971         (parser_control): New member rel_ns.  Members day_ordinal,
64972         time_zone, month, day, hour, minutes, rel_year, rel_month,
64973         rel_day, rel_hour, rel_minutes, rel_seconds
64974         are now long int, not int.  Member seconds is now struct timespec,
64975         not int.  New member timespec_seen.  Members dates_seen, days_seen,
64976         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
64977         not int.
64978         (%union.intval): Now long int, not int.
64979         New member timespec.
64980         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
64981         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
64982         (spec): Now is a timespec or an item list.
64983         (timespec, items): New nonterminals.
64984         (time, rel, relunit, number, get_date):
64985         Add support for fractional seconds.
64986         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
64987         (gmtime, localtime, mktime): Remove decls; not needed with C89.
64988         (to_hour): First arg is now long int, not int.
64989         (to_year): Returns long int, not int.
64990         Don't treat year -70 like 70.
64991         (tm_diff): Returns long int, not int.
64992         (lookup_word): Use bool instead of int when appropriate.
64993         (yylex): Use size_t for count, not int.
64994         Detect overflow when parsing large integer constants.
64995         Add support for fractions.
64996         (get_date): Make pointers 'const' if possible.
64997         Use more-portable code to detect integer overflow.
64998         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
64999         Don't use ctime; it's not reliable if the year has >4 digits.
65000
65001         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65002         This is for compatibility with BSD.
65003
65004         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65005         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65006         From coreutils' system.h.
65007
65008         * lib/userspec.c: Don't include "posixver.h".
65009         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65010         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65011         compatible extension.  Simplify code by removing a boolean int
65012         that was always nonzero if a string was nonnull.
65013
65014 2004-03-30  Jim Meyering  <jim@meyering.net>
65015
65016         Merge from coreutils.
65017
65018         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65019         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65020         on some systems one must include <grp.h> before it.
65021         Reported by Christian Krackowizer.
65022
65023 2004-03-30  Jim Meyering  <jim@meyering.net>
65024
65025         Merge from coreutils.
65026
65027         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65028
65029         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65030         an empty input stream.
65031
65032         * lib/readtokens.c: Include <stdbool.h>.
65033         (readtoken): Use `size_t' rather than int/long.
65034         All callers adjusted.
65035         Use `bool' rather than `int' where appropriate.
65036         Use memset rather than an explicit loop.
65037         Use x2nrealloc rather than xrealloc.
65038         Allow the use of `\0' as a delimiter.
65039         (readtokens): Likewise.
65040         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65041
65042 2004-03-30  Jim Meyering  <jim@meyering.net>
65043
65044         * m4/realloc.m4: Remove file, since now it does no more than
65045         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65046         the `configure.ac' section of module/realloc.
65047         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65048
65049 2004-03-30  Bruno Haible  <bruno@clisp.org>
65050
65051         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65052         nonnull.
65053
65054 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65055
65056         Merge changes to getloadavg.c from coreutils and Emacs.
65057
65058         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65059         Define to an expression, not to the empty string.
65060         Include cloexec.h and xalloc.h.
65061         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65062         Use set_cloexec_flag rather than rolling our own.
65063         * lib/cloexec.c, lib/cloexec.h: New files.
65064
65065 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65066
65067         * m4/cloexec.m4: New file.
65068
65069 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65070
65071         * lib/getopt.h: Sync with libc CVS.
65072
65073 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65074             Bruno Haible  <bruno@clisp.org>
65075
65076         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65077         mbswidth.
65078
65079 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65080             Bruno Haible  <bruno@clisp.org>
65081
65082         * lib/mbswidth.h: Include <wchar.h> only if
65083         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65084         <wchar.h>.
65085         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65086
65087 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65088
65089         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65090         Sync with libc CVS.
65091         * lib/getopt_int.h: New file, also synced from libc.
65092
65093 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65094
65095         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65096         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65097         Bring back getopt.c, getopt.h, getopt1.c.
65098
65099 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65100
65101         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65102         All uses changed.  Check for sa_sigaction member; this fixes
65103         a bug first reported by Jason Andrade in
65104         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65105
65106 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65107
65108         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65109         '#if' expressions.  Unlike the code it replaces, it does not
65110         depend on (defined _SC_PAGESIZE).  However, it does depend on
65111         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65112         first reported by Jason Andrade in
65113         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65114
65115 2004-02-25  Simon Josefsson  <jas@extundo.com>
65116
65117         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65118
65119 2004-02-25  Simon Josefsson  <jas@extundo.com>
65120
65121         * lib/strdup.h: New file.
65122         * lib/strdup.c: Include it.
65123         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65124         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65125
65126 2004-02-23  Karl Berry  <karl@gnu.org>
65127
65128         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65129         (from fencepost.gnu.org:/gd/gnuorg).
65130
65131 2004-02-23  Karl Berry  <karl@gnu.org>
65132
65133         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65134         * config/srclist.txt: add maintain/standards documents.
65135
65136 2004-02-18  Bruno Haible  <bruno@clisp.org>
65137
65138         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65139         Reported by Derek Robert Price <derek@ximbiot.com>.
65140
65141 2004-02-16  Karl Berry  <karl@gnu.org>
65142
65143         * config/mkinstalldirs, install-sh: update from automake.
65144
65145 2004-02-06  Karl Berry  <karl@gnu.org>
65146
65147         * m4/po.m4: update from gettext 0.14.1.
65148
65149 2004-02-06  Karl Berry  <karl@gnu.org>
65150
65151         * lib/config.charset: update from gettext 0.14.1.
65152
65153 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65154
65155         Add comments and code, prompted by suggestions from Bruno Haible
65156         for sh-quote.
65157         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65158         describing the enum quoting_style values.
65159         * lib/quotearg.c (quotearg_alloc): New function.
65160         (quotearg_buffer_restyled): Treat lone { and } as special.
65161         Treat = as special.  Work around bug with older shells
65162         that "see" a '\' that is really the 2nd byte of a multibyte char.
65163         Quote empty string with shell_quoting_style.
65164
65165 2004-02-03  Bruno Haible  <bruno@clisp.org>
65166
65167         * m4/pipe.m4: New file, from GNU gettext.
65168
65169 2004-02-03  Bruno Haible  <bruno@clisp.org>
65170
65171         * lib/pipe.h: New file, from GNU gettext.
65172         * lib/pipe.c: New file, from GNU gettext.
65173
65174 2004-01-27  Bruno Haible  <bruno@clisp.org>
65175
65176         * m4/execute.m4: New file, from GNU gettext.
65177
65178 2004-01-27  Bruno Haible  <bruno@clisp.org>
65179
65180         * lib/execute.h: New file, from GNU gettext.
65181         * lib/execute.c: New file, from GNU gettext.
65182         * lib/w32spawn.h: New file, from GNU gettext.
65183
65184 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65185
65186         Merge from diffutils.
65187
65188         * lib/file-type.c (file_type): Add typed memory objects.
65189         * lib/file-type.h (S_TYPEISTMO): New macro.
65190
65191         * lib/c-stack.h (c_stack_action): Remove argv argument.
65192         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65193         (die): Don't calculate message unless segv_action returns.
65194         (get_stack_location, min_address_from_argv, max_address_from_argv,
65195         volatile stack_base, volatile_stack_size): Remove.
65196         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65197         that every segmentation violation is a stack overflow.  (Ouch!)
65198         See Debian bug 136249 (still outstanding) for more info about why
65199         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65200
65201 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65202
65203         Exit-status fix from coreutils.
65204
65205         Use exit_failure consistently in place of EXIT_FAILURE,
65206         so that program exit statuses are consistent on failure.
65207
65208         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65209         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65210         * lib/argmatch.h: Comment fix to match the above.
65211         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65212         Now a macro referring to exit_failure, instead of a separate
65213         variable.  Include "exitfail.h" to get it.
65214         * lib/xstrtol.h: Include "exitfail.h".
65215         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65216
65217         * lib/long-options.c (parse_long_options): Use prototype
65218         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65219         for clarity.
65220
65221 2004-01-21  Jim Meyering  <jim@meyering.net>
65222
65223         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65224         so as not to conflict with a different-sized __mktime_internal
65225         function in GNU libc.
65226         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65227         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65228
65229 2004-01-20  Karl Berry  <karl@gnu.org>
65230
65231         * config/config.guess: update from config.
65232
65233         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65234
65235 2004-01-20  Bruno Haible  <bruno@clisp.org>
65236
65237         Safer stack allocation.
65238         * lib/setenv.c: Include allocsa.h.
65239         (alloca): Remove fallback definition.
65240         (freea): Remove macro.
65241         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65242         instead of freea.
65243
65244 2004-01-20  Bruno Haible  <bruno@clisp.org>
65245
65246         * m4/eealloc.m4: New file, from GNU gettext.
65247
65248 2004-01-20  Bruno Haible  <bruno@clisp.org>
65249
65250         * m4/allocsa.m4: New file, from GNU gettext.
65251
65252 2004-01-20  Bruno Haible  <bruno@clisp.org>
65253
65254         * lib/xallocsa.h: New file, from GNU gettext.
65255         * lib/xallocsa.c: New file, from GNU gettext.
65256
65257 2004-01-20  Bruno Haible  <bruno@clisp.org>
65258
65259         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65260
65261 2004-01-20  Bruno Haible  <bruno@clisp.org>
65262
65263         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65264         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65265         specially.
65266
65267 2004-01-20  Bruno Haible  <bruno@clisp.org>
65268
65269         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65270         patch.
65271
65272 2004-01-20  Bruno Haible  <bruno@clisp.org>
65273
65274         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65275
65276 2004-01-20  Bruno Haible  <bruno@clisp.org>
65277
65278         * lib/eealloc.h: New file.
65279
65280 2004-01-20  Bruno Haible  <bruno@clisp.org>
65281
65282         * lib/binary-io.h: Avoid warnings on Cygwin.
65283
65284 2004-01-20  Bruno Haible  <bruno@clisp.org>
65285
65286         * lib/allocsa.h: New file, from GNU gettext.
65287         * lib/allocsa.c: New file, from GNU gettext.
65288
65289 2004-01-18  Karl Berry  <karl@gnu.org>
65290
65291         * doc/gpl.texi, doc/lgpl.texi: new files.
65292
65293 2004-01-18  Karl Berry  <karl@gnu.org>
65294
65295         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65296         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65297
65298 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65299
65300         Merge from coreutils.
65301
65302         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65303         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65304         (gl_DEFAULT_POSIX2_VERSION): Move
65305         the documentation from 'configure' into 'config.hin',
65306         so that 'configure --help' isn't burdened by it and
65307         we don't have to worry about its formatting there.
65308         Reword the documentation so that it's more succinct
65309         and can be run together into a single paragraph.
65310         * m4/same.m4 (gl_SAME): Check for pathconf.
65311
65312 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65313
65314         Merge from coreutils.
65315
65316         * lib/posixver.c: Include posixver.h.
65317
65318         * lib/same.c: Include <stdbool.h>, <limits.h>.
65319         (_POSIX_NAME_MAX): Define if not defined.
65320         (MIN): New macro.
65321         (same_name): If file names are silently truncated, report
65322         that the file names are the same if they are the same after
65323         the silent truncation.
65324
65325         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65326         conversion function.
65327         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65328         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65329         longer needed.
65330
65331 2004-01-15  Jim Meyering  <jim@meyering.net>
65332
65333         Merge from coreutils.
65334
65335         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65336         if no library is required.
65337         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65338         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65339         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65340         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65341         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65342         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65343         value, $ac_cv_search_crypt, if it's "none required".
65344         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65345         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65346         not gl_FUNC_GETLOADAVG.
65347         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65348         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65349
65350 2004-01-15  Jim Meyering  <jim@meyering.net>
65351
65352         Merge from coreutils.
65353
65354         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65355         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65356         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65357
65358         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65359         optional configure-time default.
65360
65361         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65362
65363         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65364
65365 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65366
65367         Merge from coreutils.
65368
65369         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65370         value, $ac_cv_search_nanosleep, if it's "none required".
65371
65372 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65373
65374         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65375         with like-named macro in fnmatch.c.
65376         (EXT): Use an internal constant instead.
65377
65378         Merge fnmatch patches from glibc.
65379         * lib/fnmatch.c (mbsinit): Remove define.
65380         Add libc_hidden_ver (__fnmatch, fnmatch).
65381         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65382         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65383
65384 2004-01-14  Karl Berry  <karl@gnu.org>
65385
65386         * config/install-sh: update from automake.
65387
65388 2004-01-13  Karl Berry  <karl@gnu.org>
65389
65390         * config/install-sh: update from automake.
65391
65392 2004-01-09  Karl Berry  <karl@gnu.org>
65393
65394         * config/install-sh: update from automake.
65395
65396 2004-01-05  Karl Berry  <karl@gnu.org>
65397
65398         * config/config.{sub,guess}: update from config.
65399
65400 2003-12-31  Karl Berry  <karl@gnu.org>
65401
65402         * config/depcomp: update from automake.
65403
65404 2003-12-14  Karl Berry  <karl@gnu.org>
65405
65406         * lib/config.charset: update from gettext-runtime.
65407
65408 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65409
65410         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65411         Bug reported by Alfred M. Szmidt.
65412
65413 2003-12-03  Bruno Haible  <bruno@clisp.org>
65414
65415         * m4/gettext.m4: Upgrade from gettext-0.13.
65416         * m4/po.m4: Upgrade from gettext-0.13.
65417         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65418         * m4/intmax.m4: New file, from gettext-0.13.
65419         * m4/printf-posix.m4: New file, from gettext-0.13.
65420
65421 2003-11-29  Karl Berry  <karl@gnu.org>
65422
65423         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65424
65425 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65426             Bruno Haible  <bruno@clisp.org>
65427
65428         * lib/printf-parse.h: Don't include sys/types.h.
65429         (ARG_NONE): New macro.
65430         (char_directive): Change type of *arg_index fields to size_t.
65431         * lib/printf-parse.c: Don't include sys/types.h.
65432         (SSIZE_MAX): Remove macro.
65433         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65434         Remove unnecessary overflow check.
65435         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65436         fields.
65437
65438 2003-11-25  Bruno Haible  <bruno@clisp.org>
65439
65440         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65441
65442 2003-11-25  Bruno Haible  <bruno@clisp.org>
65443
65444         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65445         gt_TYPE_SSIZE_T.
65446
65447 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65448
65449         * modules/alloca: Remove dependency on xalloc.
65450
65451 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65452
65453         * lib/alloca.c: Remove dependency on xalloc module.
65454         (xalloc_die): Remove.
65455         (memory_full) [!defined emacs]: New macro.
65456         [!defined emacs]: Don't include xalloc.h.
65457         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65458         address arithmetic overflows.  Change datatypes a bit to avoid
65459         unnecessary casts.
65460
65461 2003-11-22  Jim Meyering  <jim@meyering.net>
65462
65463         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65464         s/size/size_t/.
65465
65466 2003-11-21  Karl Berry  <karl@gnu.org>
65467
65468         * config/config.{sub,guess}: update from config.
65469
65470 2003-11-18  Karl Berry  <karl@gnu.org>
65471
65472         * config/config.{sub,guess}: update from config.
65473
65474         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65475
65476 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65477
65478         * README: Mention that S+T cannot overflow if S is the size of
65479         an existing object and T is sufficiently small.
65480
65481 2003-11-17  Jim Meyering  <jim@meyering.net>
65482
65483         On systems without utime and without a utimes function capable of
65484         dealing with a NULL struct utimbuf* argument, this utime replacement
65485         could -- in unusual circumstances -- leak a file descriptor.
65486         * lib/utime.c: Include <unistd.h> and <errno.h>.
65487         (utime_null): Be sure to close `fd' and to preserve errno.
65488         Reported by Geoff Collyer via Arnold Robbins.
65489
65490 2003-11-17  Bruno Haible  <bruno@clisp.org>
65491
65492         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
65493         (Depends-on): Add xsize.
65494
65495 2003-11-17  Bruno Haible  <bruno@clisp.org>
65496
65497         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
65498
65499 2003-11-17  Bruno Haible  <bruno@clisp.org>
65500
65501         * lib/vasnprintf.c (alloca): Remove fallback definition.
65502         (freea): Remove definition.
65503         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65504         Reported by Paul Eggert.
65505
65506 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65507             Bruno Haible  <bruno@clisp.org>
65508
65509         Protect against address arithmetic overflow.
65510         * lib/printf-args.h: Include stddef.h.
65511         (arguments): Change type of field 'count' to size_t.
65512         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65513         'unsigned int' where appropriate.
65514         * lib/printf-parse.h: Include sys/types.h.
65515         (char_directive): Change type of *arg_index fields to ssize_t.
65516         (char_directives): Change type of fields 'count', max_*_length to
65517         size_t.
65518         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65519         (SSIZE_MAX): Define fallback value.
65520         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65521         instead of 'int' where appropriate. Check a_allocated, d_allocated
65522         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65523         * lib/vasnprintf.c: Include xsize.h.
65524         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65525         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65526         overflow. Avoid wraparound when converting a width or precision from
65527         decimal to binary.
65528
65529 2003-11-16  Bruno Haible  <bruno@clisp.org>
65530
65531         Update from GNU gettext.
65532         * lib/printf-parse.c: Generalize to it can be compiled for wide
65533         strings.
65534         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65535         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65536         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65537         SNPRINTF): New macros.
65538         Don't include <alloca.h> if the file is used inside libintl.
65539         (local_wcslen): New function, for Solaris 2.5.1.
65540         (VASNPRINTF): Use it instead of wcslen.
65541
65542 2003-11-16  Bruno Haible  <bruno@clisp.org>
65543
65544         * lib/xsize.h (xmax): New function.
65545         (xsum, xsum3, xsum4): Declare as "pure" functions.
65546
65547 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65548
65549         * modules/xalloc (Files): Undo latest change, since xalloc.h
65550         no longer needs SIZE_MAX or PTRDIFF_MAX.
65551
65552 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65553
65554         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
65555         gl_PTRDIFF_MAX.
65556
65557 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65558
65559         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
65560         "return", to pacify some unknown compiler.  Problem reported
65561         by Joerg Schilling.
65562
65563 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65564
65565         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
65566         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
65567         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
65568         heuristic is just as accurate as far as we know, and it removes a
65569         dependency on size_max.m4 and ptrdiff_max.m4.
65570
65571 2003-11-11  Bruno Haible  <bruno@clisp.org>
65572
65573         * modules/xsize (Files): Add m4/size_max.m4.
65574         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
65575
65576 2003-11-11  Bruno Haible  <bruno@clisp.org>
65577
65578         * m4/size_max.m4: New file.
65579         * m4/ptrdiff_max.m4: New file.
65580         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
65581         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
65582         (gl_XALLOC): Invoke it.
65583
65584 2003-11-11  Bruno Haible  <bruno@clisp.org>
65585
65586         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
65587         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
65588         defined.
65589
65590 2003-11-10  Paul Eggert  <eggert@twinsun.com>
65591
65592         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
65593         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
65594         rejected some allocations of exactly SIZE_MAX - 2 bytes.
65595         From Bruno Haible.
65596         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
65597         not (size_t) -1, since it's defined here.
65598
65599 2003-11-09  Karl Berry  <karl@gnu.org>
65600
65601         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
65602
65603 2003-11-06  Paul Eggert  <eggert@twinsun.com>
65604
65605         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
65606         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
65607         Reject sizes of exactly SIZE_MAX bytes.
65608         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
65609         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
65610
65611 2003-11-05  Bruno Haible  <bruno@clisp.org>
65612
65613         * lib/xsize.h: Include limits.h, to avoid a possible collision with
65614         SIZE_MAX defined in <limits.h> on Solaris.
65615
65616 2003-11-04  Jim Meyering  <jim@meyering.net>
65617
65618         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
65619         variable names, rather than @VAR@.
65620         * modules/poll: Likewise.
65621
65622 2003-11-04  Bruno Haible  <bruno@clisp.org>
65623
65624         * modules/xsize: New file.
65625         * modules/linebreak: Depend on xsize.
65626         * MODULES.html.sh (func_all_modules): Add xsize.
65627
65628 2003-11-04  Bruno Haible  <bruno@clisp.org>
65629
65630         * m4/xsize.m4: New file.
65631
65632 2003-11-04  Bruno Haible  <bruno@clisp.org>
65633
65634         * lib/xsize.h: New file.
65635         * lib/linebreak.c: Include xsize.h.
65636         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
65637         argument for overflow.
65638         Suggested by Paul Eggert.
65639
65640 2003-11-03  Karl Berry  <karl@gnu.org>
65641
65642         * config/config.{guess,sub}: update from config.
65643
65644 2003-11-03  Jim Meyering  <jim@meyering.net>
65645
65646         * modules/userspec (lib_SOURCES): Add userspec.h.
65647         (Include): Add "userspec.h".
65648         Improve description.
65649
65650 2003-11-03  Jim Meyering  <jim@meyering.net>
65651
65652         * lib/userspec.c: Include "userspec.h".
65653         * lib/userspec.h: New file.
65654
65655 2003-11-03  Bruno Haible  <bruno@clisp.org>
65656
65657         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
65658
65659 2003-11-03  Bruno Haible  <bruno@clisp.org>
65660
65661         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
65662         available, to avoid (extremely rare) race condition.
65663         Suggested by Paul Eggert.
65664
65665 2003-11-02  Karl Berry  <karl@gnu.org>
65666
65667         * config/srclist.txt (vasprintf.c): sync broken, sigh.
65668
65669 2003-10-31  Paul Eggert  <eggert@twinsun.com>
65670
65671         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
65672         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
65673         (read_filesystem_list): Set and use me_type_malloced.
65674         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
65675         whatever the type happens to be), for brevity and consistency.
65676         Check for size calculation overflow on Alphas running OSF/1.
65677
65678 2003-10-31  Jim Meyering  <jim@meyering.net>
65679
65680         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
65681
65682         * lib/linebuffer.c: Include <string.h> for declaration of memset.
65683
65684 2003-10-30  Paul Eggert  <eggert@twinsun.com>
65685             Bruno Haible  <bruno@clisp.org>
65686
65687         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
65688         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
65689
65690 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65691
65692         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
65693         netbsd*-gnu*.  Suggested by Robert Millan.
65694
65695 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65696
65697         * modules/group-member: Depend on stdbool.
65698
65699 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65700
65701         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
65702
65703 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65704
65705         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
65706         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
65707         after the 'gnu' in these cases.  This fixes some bugs in the
65708         previous change, and is based on suggestions by Robert Millan.
65709
65710 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65711
65712         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
65713         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
65714         no longer needed.
65715         * lib/quotearg.c (quotearg_n_options): Use it.
65716         * lib/group-member.c: Include <stdbool.h>.
65717         (free_group_info): Arg is now const *; don't free arg.
65718         (get_group_info): Now returns bool and accepts struct group_info *,
65719         rather than returning a malloc'ed struct group_info *.
65720         All uses changed.  Check for overflow in internal size calculation.
65721
65722         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
65723         rather than xmalloc/xrealloc.
65724         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
65725         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
65726         conformance bug: the old code used a pointer after freeing the
65727         storage that it addressed.
65728         * lib/hash.c (hash_initialize): Simplify the code by using
65729         xalloc_oversized rather than doing it by hand.
65730         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
65731         the buffer preserved.  Use free and xmalloc instead.
65732         * lib/quotearg.c (quotearg_n_options): Likewise.
65733         Use a simpler test for size overflow.  Don't use xalloc_oversized
65734         because unsigned int might be wider than size_t (!); this suggests
65735         that we should switch from unsigned int to size_t for slot numbers.
65736
65737 2003-10-28  Paul Eggert  <eggert@twinsun.com>
65738
65739         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
65740         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
65741         NetBSD kernels.  Requested by Richard Stallman.
65742
65743 2003-10-27  Paul Eggert  <eggert@twinsun.com>
65744
65745         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
65746         to allocate the returned structure.  Do not allocate a subarray,
65747         as x2nrealloc will do that.
65748         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
65749         instead of xnrealloc.
65750         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
65751
65752 2003-10-27  Bruno Haible  <bruno@clisp.org>
65753
65754         * lib/stdbool_.h: Better support for BeOS.
65755
65756 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65757
65758         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
65759         now uses inline.
65760
65761 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65762
65763         * lib/xalloc.h (xalloc_oversized): New static inline function, for
65764         callers that want to do their own size-overflow checking.  Include
65765         <stdbool.h>, since xalloc_oversized returns bool.
65766         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
65767         to use xalloc_oversized.
65768
65769         Add two functions x2realloc, x2nrealloc, for programs that grow
65770         arrays dynamically by doubling their sizes.
65771         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
65772         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
65773         New functions.
65774
65775         Port to C99 semantics for 'inline' of external functions.
65776         Bug reported by Bruno Haible.
65777         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
65778         with the old contents of xnmalloc.
65779         (xnmalloc, xmalloc): Use it.
65780         (xnrealloc_inline): New static inline function,
65781         with the old contents of xnrealloc.
65782         (xnrealloc, xrealloc): Use it.
65783
65784         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
65785         that.
65786
65787 2003-10-26  Karl Berry  <karl@gnu.org>
65788
65789         * config/srclist.txt (COPYING.DOC): no longer available from
65790         /gd/gnuorg; don't know where the ultimate source is.
65791
65792 2003-10-25  Paul Eggert  <eggert@twinsun.com>
65793
65794         Fix several address-calculation bugs in the hash modules,
65795         plus some minor code cleanup.
65796
65797         * lib/hash.h: Include <stdbool.h>, for bool.
65798         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
65799         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
65800         hash_get_n_entries, hash_get_max_bucket_length,
65801         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
65802         hash_rehash): Use size_t rather than unsigned.
65803         * lib/hash.c (struct hash_table, hash_get_n_buckets,
65804         hash_get_n_buckets_used, hash_get_n_entries,
65805         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
65806         hash_get_entries, hash_do_for_each, hash_string, is_prime,
65807         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
65808         Likewise.
65809         (SIZE_MAX): Define if not defined.
65810         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
65811         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
65812         hash_print):
65813         Use const * when possible.
65814         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
65815         (check_tuning): Fix bug: if tuning parameters were very close to
65816         0 or 1, rounding errors could have caused subscript violations.
65817         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
65818         (hash_initialize): Add 'fail:' label
65819         to free table and return NULL, and use it to simplify code.
65820         Use calloc rather than clearing the storage ourself.
65821         (hash_initialize, hash_rehash): Check for arithmetic overflow in
65822         buffer size calculations.
65823         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
65824         Include <stddef.h>, for size_t.
65825         * lib/hash-pjw.c (hash_pjw): Likewise.
65826         Switch to method described by Bruno Haible.
65827         Include <limits.h>, for CHAR_BIT.
65828         (SIZE_BITS): New macro.
65829
65830 2003-10-23  Paul Eggert  <eggert@twinsun.com>
65831
65832         * m4/getline.m4 (AM_FUNC_GETLINE):
65833         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
65834         hosts.  Problem reported by Derek Robert Price in
65835         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
65836         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
65837         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
65838
65839 2003-10-21  Paul Eggert  <eggert@twinsun.com>
65840
65841         * lib/getndelim2.c (getndelim2): When size calculation overflows,
65842         ceiling the allocation at NMAX bytes rather than silently
65843         discarding input bytes before NMAX is reached.  This makes
65844         a difference only if NMAX exceeds SIZE_MAX / 2.
65845
65846         * lib/obstack.c: Merge from glibc.
65847         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
65848         Add libc_hidden_def (_obstack_newchunk).
65849         (_obstack_free) [! defined _LIBC]: Remove.
65850         [defined _LIBC]: Make a strong alias from obstack_free, rather than
65851         a clone of the function body.
65852         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
65853         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
65854
65855         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
65856         glibc.
65857         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
65858         arg to memcpy.
65859
65860         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
65861         (obstack_ptr_grow_fast, obstack_int_grow_fast):
65862         Don't use lvalue casts, as GCC plans to remove support for them
65863         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
65864         was also present in the non-GCC version, indicating that this
65865         code had always been buggy and had never been widely used.
65866         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
65867         Use the fast variant of each macro, rather than copying the
65868         definiens of the fast variant; that way, we'll be more likely to
65869         catch future bugs in the fast variants.
65870
65871 2003-10-20  Bruno Haible  <bruno@clisp.org>
65872
65873         * modules/wait-process: New file.
65874         * MODULES.html.sh (func_all_modules): Add wait-process.
65875
65876 2003-10-20  Bruno Haible  <bruno@clisp.org>
65877
65878         * m4/wait-process.m4: New file.
65879
65880 2003-10-20  Bruno Haible  <bruno@clisp.org>
65881
65882         * lib/wait-process.h: New file, from GNU gettext.
65883         * lib/wait-process.c: New file, from GNU gettext.
65884
65885 2003-10-19  Jim Meyering  <jim@meyering.net>
65886
65887         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
65888         HPUX 10.20.
65889
65890 2003-10-18  Karl Berry  <karl@gnu.org>
65891
65892         * config/config.guess: update from config.
65893
65894 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65895
65896         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
65897         (getgroups): First arg is int, not size_t.
65898         Don't let 'free' mangle errno.
65899
65900 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65901
65902         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
65903
65904 2003-10-16  Karl Berry  <karl@gnu.org>
65905
65906         * config/config.{guess,sub}: update from config.
65907
65908 2003-10-16  Jim Meyering  <jim@meyering.net>
65909
65910         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
65911         memcpy.
65912
65913 2003-10-15  Paul Eggert  <eggert@twinsun.com>
65914
65915         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
65916         (SIZE_MAX): Remove.
65917         (new_exclude, add_exclude_file): Initial size no longer needs to
65918         be a power of 2.
65919         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
65920         our own address arithmetic overflow checking.
65921
65922         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
65923         (fnmatch): Do not alloca more than 2000 wide characters;
65924         instead, use malloc for large buffers.
65925         Check for address arithmetic overflow, and return -1
65926         with errno set to ENOMEM in that case.
65927         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
65928         (NEW_PATTERN): Do not alloca more than 8000 bytes;
65929         instead, return -1.  Check for address arithmetic overflow.
65930
65931 2003-10-14  Paul Eggert  <eggert@twinsun.com>
65932
65933         Handle invalid suffixes and overflow independently, so that
65934         callers can treat them independently as needed.  Fix some bugs in
65935         suffix handling, e.g., "100k@" was not diagnosed as an invalid
65936         suffix for a human-readable blocksize.  The major caller-visible
65937         change is the addition of a new
65938         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
65939         that both overflow and suffix chars were found.
65940
65941         * lib/human.c (humblock): Don't check separately for invalid suffix
65942         char; that is xstrtoumax's job (now that its bug is fixed).
65943         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
65944         INTMAX_MAX]: New macros.
65945         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
65946         TYPE_MAXIMUM): New macros.
65947         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
65948         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
65949         if overflow occurs, as it's what __strtol does and it's more useful
65950         in practice.
65951         (__xstrtol): If __strtol reports some error other than ERANGE,
65952         reflect it to the caller as LONGINT_INVALID.  If it reports
65953         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
65954         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
65955         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
65956         value.
65957         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
65958         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
65959         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
65960         [defined UINTMAX_MAX]: New macros.
65961
65962 2003-10-14  Bruno Haible  <bruno@clisp.org>
65963
65964         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
65965
65966 2003-10-14  Bruno Haible  <bruno@clisp.org>
65967
65968         * m4/sig_atomic_t: New file, from GNU gettext.
65969         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
65970
65971 2003-10-14  Bruno Haible  <bruno@clisp.org>
65972
65973         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
65974         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
65975         Also use volatile where needed.
65976
65977 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65978
65979         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
65980         Change maintainer from Bruno Haible to 'all'.
65981
65982 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65983
65984         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
65985
65986 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65987
65988         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
65989         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
65990         and define in terms of the other primitives.
65991         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
65992         (SIZE_MAX): Define if not already defined.
65993         (array_size_overflow): New function.
65994         (xalloc_die): Abort instead of exiting if 'error' returns.
65995         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
65996         (xmalloc, xrealloc): Use them.
65997         (xcalloc): Check for address arithmetic overflow.
65998         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
65999         a bit faster than strcpy.
66000
66001 2003-10-10  Simon Josefsson  <jas@extundo.com>
66002
66003         * modules/argp (Depends-on): Add restrict and strcase.
66004
66005 2003-10-10  Simon Josefsson  <jas@extundo.com>
66006
66007         * m4/argp.m4: Add AC_C_INLINE.
66008
66009 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66010
66011         Merge getpass from libc, plus a few fixes.
66012
66013         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66014         Include <stdbool.h>.
66015         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66016         __fsetlocking to empty.
66017         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66018         do include <bits/libc-lock.h>.
66019         Do not include <fcntl.h>; not needed.
66020         [_LIBC]: Include <wchar.h>.
66021         (NOTCANCEL_MODE): New macro.
66022         (flockfile, funlockfile) [_LIBC]: New macros.
66023         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66024         [!_LIBC]: New macros.
66025         (call_fclose): New function.
66026         (getpass): Use it.  Save tty stream separately; this simplifies the
66027         code and makes it more reliable if stdin happens to equal stdout.
66028         Invoke __fsetlocking on tty.
66029         Handle thread cancellation if needed.
66030         Namespace cleanup (use __tcgetattr, __getline).
66031         Use bool for Booleans.
66032         [USE_IN_LIBIO]: Handle wide streams.
66033         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66034         stream might go where.
66035
66036         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66037         doesn't have to include <stdio.h> before us.
66038         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66039         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66040         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66041         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66042         if not declared, so that we can use getpass.c code from libc without
66043         rewriting it.
66044         (flockfile, ftrylockfile, funlockfile): New macros.
66045
66046 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66047
66048         * modules/getpass: Depend on stdbool.
66049
66050 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66051
66052         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66053
66054 2003-10-07  Karl Berry  <karl@gnu.org>
66055
66056         * config/config.{guess,sub}: update from config.
66057
66058 2003-10-06  Jim Meyering  <jim@meyering.net>
66059             Bruno Haible  <bruno@clisp.org>
66060
66061         This lets translators provide better translations for the
66062         "Written by ..." part of --version output.
66063         * lib/version-etc.h: Include stdarg.h.
66064         (version_etc_copyright): Declare as readonly.
66065         (version_etc): Make this function variadic with a NULL-terminated list
66066         of author name strings.
66067         (version_etc_va): New declaration.
66068         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66069         (version_etc_copyright): Declare as readonly.
66070         (version_etc_va): New function. Provide a different translatable string
66071         for each possible number of authors < 10. Abbreviate when there are 10
66072         authors or more.
66073         (version_etc): Make this function variadic. Call version_etc_va.
66074         Suggestion from Gary V. Vaughan.
66075
66076         * lib/long-options.h (parse_long_options): Change prototype: the
66077         authors string is moved to the end and becomes variadic.
66078         * lib/long-options.c: Include stdarg.h.
66079         (parse_long_options): Make this function variadic, too.
66080         Call version_etc_va, not version_etc.
66081
66082 2003-10-06  Bruno Haible  <bruno@clisp.org>
66083
66084         * modules/version-etc-2: Remove file.
66085         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66086
66087 2003-10-06  Bruno Haible  <bruno@clisp.org>
66088
66089         * modules/fatal-signal: New file.
66090         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66091
66092 2003-10-06  Bruno Haible  <bruno@clisp.org>
66093
66094         * m4/fatal-signal.m4: New file.
66095         * m4/signalblocking.m4: New file, from GNU gettext.
66096
66097 2003-10-06  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/version-etc-2.h: Remove file.
66100         * lib/version-etc-2.c: Remove file.
66101
66102 2003-10-06  Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/fatal-signal.h: New file, from GNU gettext.
66105         * lib/fatal-signal.c: New file, from GNU gettext.
66106
66107 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66108
66109         * README: Rework advice for preventing empty .o files.
66110         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66111         not <sys/types.h>.
66112
66113 2003-10-04  Karl Berry  <karl@gnu.org>
66114
66115         * lib/argp*: update from libc.
66116
66117 2003-10-04  Karl Berry  <karl@gnu.org>
66118
66119         * config/config.{guess,sub}: update from config.
66120
66121 2003-10-02  Bruno Haible  <bruno@clisp.org>
66122
66123         * modules/lchown (Include): Add lchown.h.
66124         * modules/time_r (Include): Use "..." syntax.
66125         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66126
66127 2003-10-01  Simon Josefsson  <jas@extundo.com>
66128
66129         * MODULES.html.sh (func_all_modules): Move gethostname from section
66130         'based on' to section 'lacking' POSIX:2001.
66131
66132 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66133
66134         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66135         to output mode on the same stream.
66136
66137 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66138
66139         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66140         Fix arg typo in previous patch.
66141
66142 2003-09-28  Jim Meyering  <jim@meyering.net>
66143
66144         * lib/error.c: Correct cpp indentation.
66145
66146 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66147
66148         * modules/free: New file.
66149
66150 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66151
66152         * m4/free.m4: New file.
66153
66154 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66155
66156         * lib/minmax.h (MIN, MAX)
66157         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66158         Omit the special code that used __typeof__, since we worry that
66159         it could be more trouble than it's worth.  See:
66160         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66161         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66162
66163         * lib/free.c: New file.
66164
66165 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66166
66167         Trivial fixes to Makefile.am parts of module listings.
66168         * modules/strstr: Append strstr.h to lib_SOURCES.
66169         * modules/strcase: Likewise, for strcase.h.
66170
66171 2003-09-27  Karl Berry  <karl@gnu.org>
66172
66173         * config/mkinstalldirs: update from automake.
66174
66175 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66176
66177         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66178         (error_tail): Do not loop, reallocating temporary buffer, since
66179         the output cannot contain more wide characters than the input
66180         contains bytes, the size must be big enough already.  This avoids
66181         one potential size overflow calculation.  Check for size overflow
66182         when calculating temporary buffer size.  Free temporary buffer
66183         when done, if it was allocated with malloc; this plugs a memory
66184         leak.  Remove casts from void * to pointers, that are no longer
66185         needed now that we're assuming C89 or better.
66186
66187         Merge error changes from glibc.
66188
66189         * lib/error.c, error.h: Update copyright notice header to match glibc.
66190         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66191         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66192         Disable cancellation while printing error.
66193         * lib/error.h: Prepend __ to parameter names.
66194
66195 2003-09-26  Jim Meyering  <jim@meyering.net>
66196
66197         * lib/error.c (error_tail): Move some declarations
66198         into inner scope where the local variables are used.
66199
66200 2003-09-26  Bruno Haible  <bruno@clisp.org>
66201
66202         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66203         stpncpy().
66204         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66205
66206 2003-09-26  Bruno Haible  <bruno@clisp.org>
66207
66208         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66209         (stpncpy): Define as alias for gnu_stpncpy.
66210         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66211
66212 2003-09-25  Simon Josefsson  <jas@extundo.com>
66213
66214         * lib/xgetdomainname.h: New file.
66215         * lib/xgetdomainname.c: New file.
66216
66217 2003-09-25  Simon Josefsson  <jas@extundo.com>
66218             Bruno Haible  <bruno@clisp.org>
66219
66220         * modules/getdomainname: New file.
66221         * modules/xgetdomainname: New file.
66222         * MODULES.html.sh (func_all_modules): Add getdomainname,
66223         xgetdomainname.
66224
66225 2003-09-25  Simon Josefsson  <jas@extundo.com>
66226             Bruno Haible  <bruno@clisp.org>
66227
66228         * m4/getdomainname.m4: New file.
66229
66230 2003-09-25  Simon Josefsson  <jas@extundo.com>
66231             Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/getdomainname.h: New file.
66234         * lib/getdomainname.c: New file.
66235
66236 2003-09-25  Karl Berry  <karl@gnu.org>
66237
66238         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66239
66240 2003-09-25  Karl Berry  <karl@gnu.org>
66241
66242         * config/install-sh: update from automake.
66243
66244 2003-09-25  Bruno Haible  <bruno@clisp.org>
66245
66246         * modules/version-etc-2: New file, from modules/version-etc with
66247         modifications.
66248         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66249
66250 2003-09-25  Bruno Haible  <bruno@clisp.org>
66251
66252         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66253         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66254
66255 2003-09-24  Simon Josefsson  <jas@extundo.com>
66256
66257         * modules/xgethostname: Add xgethostname.h.
66258
66259 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66260
66261         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66262         the buffer associated with the argument.  Bug reported by
66263         Simon Josefsson.
66264
66265 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66266
66267         * README: Document assumptions that 'int' is at least 32 bits
66268         wide, that integer arithmetic is 2's complement without overflow,
66269         that there are no holes in integer values, that adding sizes of
66270         two nonoverlapping objects can't overflow, and that all-bits-zero
66271         yields scalar zero.  Fix spelling and capitalization typos.
66272
66273 2003-09-19  Karl Berry  <karl@gnu.org>
66274
66275         * lib/argp.h: update from libc.
66276
66277 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66278
66279         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66280         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66281         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66282
66283 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66284
66285         * gnulib-tool: Use "test -h", not "test -L", for portability
66286         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66287         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66288         (sed_extract_prog): Issue s commands one-by-one, rather than
66289         using \| in one s command.
66290
66291 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66292
66293         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66294         input error, instead of returning NULL the next time we are called
66295         (and therefore losing track of errno).
66296
66297 2003-09-16  Bruno Haible  <bruno@clisp.org>
66298
66299         * gnulib-tool (func_create_testdir): Warn about duplicated
66300         dependencies.
66301
66302 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66303
66304         * modules/argmatch, modules/fatal, modules/obstack,
66305         modules/xalloc, modules/xgethostname: Sort dependencies by
66306         importance, not alphabetically.
66307
66308 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66309
66310         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66311         fails, so that the caller gets the proper errno.
66312
66313         * lib/readutmp.c (read_utmp): Likewise.
66314         Check for fstat error.  Close stream and free storage
66315         when failing.
66316
66317 2003-09-14  Karl Berry  <karl@gnu.org>
66318
66319         * config/srclist.txt (strdup.c): disable for c89 changes.
66320
66321 2003-09-14  Jim Meyering  <jim@meyering.net>
66322
66323         * lib/getloadavg.c: Correct cpp indentation.
66324         * lib/strdup.c: Likewise.
66325         * lib/vasnprintf.c: Likewise.
66326
66327 2003-09-14  Bruno Haible  <bruno@clisp.org>
66328
66329         * modules/fwriteerror: New file.
66330         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66331
66332 2003-09-14  Bruno Haible  <bruno@clisp.org>
66333
66334         * lib/fwriteerror.h: New file.
66335         * lib/fwriteerror.c: New file.
66336
66337 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66338
66339         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66340         modules/xgethostname, modules/xalloc: Depend on exit.
66341
66342 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66343
66344         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66345
66346         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66347         and AC_MINIX, too, so that their extensions are available.
66348
66349         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66350         This macro has been superseded by gl_BACKUPFILE.
66351
66352         More patches to assume C89 or better.
66353
66354         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66355
66356         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66357         unconditionally.
66358         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66359         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66360         Include <string.h>, <stdlib.h> unconditionally.
66361         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66362         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66363         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66364         headers or for string.h.
66365         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66366         or strtoul.
66367
66368         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66369         headers.
66370         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66371         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66372         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66373         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66374         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66375         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66376         memcpy, memset.
66377         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66378         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66379         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66380         strtol.
66381         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66382         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66383         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66384         strtoul.
66385
66386 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66387
66388         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66389         * lib/obstack.c [!defined _LIBC]: Likewise.
66390         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66391         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66392         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66393
66394         More changes to assume C89 or better.
66395
66396         * lib/error.c (error_tail): Assume vprintf.
66397
66398         * lib/argmatch.c (getenv): Remove decl.
66399         * lib/progreloc.c (get_full_program_name): Define via prototype.
66400         * lib/setenv.c (clearenv): Likewise.
66401         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66402         needed.
66403         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66404         (malloc, memcpy): Remove decls.
66405         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66406         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66407         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66408         (memcpy): Remove macro.
66409         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66410         (__P): Remove.  All uses removed.
66411         (PTR): Remove.  All uses changed to void *.
66412         (CHAR_BIT, NULL): Remove.
66413         (spaces, zeros, memset_space, memset_zero)
66414         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66415         Remove.
66416         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66417         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66418         Define with prototype.
66419         Remove now-unnecessary prototype decl.
66420         (extra_args_spec): Assume ANSI C.  All uses changed.
66421         (extra_args_spec_iso): Remove.
66422         (my_strftime, emacs_strftimeu): Define via prototype.
66423         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66424         unconditionally.
66425         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66426         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66427         (strtoul, strtol): Remove decls.
66428         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66429         LONG_MAX): Remove.
66430         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66431         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66432         (LOCALE_PARAM_PROTO): New macro.
66433         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66434         (INTERNAL (strtol), strtol): Define with a prototype.
66435         (PARAMS): Remove.  All uses removed.
66436         * lib/tempname.c: Include <string.h> unconditionally.
66437         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66438         * lib/xgethostname.c (main): Define with a prototype.
66439         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66440         Include <stdlib.h> unconditionally.
66441         (calloc, malloc, realloc, free): Remove decls.
66442         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66443         Include <stdlib.h> unconditionally.  Sort include file names.
66444         (strtod): Remove.
66445         (xstrtod): Define with a prototype.
66446         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66447         (strtol, strtoul): Remove decls.
66448
66449 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66450
66451         More patches to assume C89 or better.
66452         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66453         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66454         string.h, memchr, STDC_HEADERS.
66455
66456 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66457
66458         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66459         Include <stdlib.h>, <string.h> unconditionally.
66460         Remove now-unnecessary cast to char *.
66461         * lib/strnlen.c: Include <string.h> unconditionally.
66462         * lib/yesno.c (yesno): Define with a prototype.
66463
66464 2003-09-11  Bruno Haible  <bruno@clisp.org>
66465
66466         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66467
66468 2003-09-10  Jim Meyering  <jim@meyering.net>
66469
66470         * lib/error.c: Correct indentation of cpp directives.
66471
66472 2003-09-10  Bruno Haible  <bruno@clisp.org>
66473
66474         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66475         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66476         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66477         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
66478         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
66479         <stdlib.h> and <string.h> checks.
66480         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
66481         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
66482
66483 2003-09-10  Bruno Haible  <bruno@clisp.org>
66484
66485         * lib/strcspn.c: Include <string.h> unconditionally.
66486         * lib/strpbrk.c: Include <string.h> unconditionally.
66487         * lib/strstr.c: Include <string.h> unconditionally.
66488         * lib/unicodeio.c: Include <string.h> unconditionally.
66489         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
66490         * lib/unsetenv.c: Likewise.
66491         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
66492         * lib/yesno.c: Include <stdlib.h> unconditionally.
66493         (rpmatch): Add prototype.
66494
66495 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66496
66497         More patches to assume C89 or better.
66498         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
66499         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
66500         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
66501         or for string.h.
66502         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
66503         stdlib.h.
66504         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66505         C headers.
66506         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66507         string.h.
66508         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66509         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66510         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66511         or for string.h.
66512         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66513         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66514         C headers.
66515         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66516         memcpy.
66517         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66518         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66519         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66520         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66521         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66522         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66523         string.h, free.
66524         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66525         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66526         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66527         C headers, or for string.h.
66528         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66529         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66530         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66531         headers, memory.h, stdlib.h, string.h, strings.h.
66532         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66533         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66534         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66535         strchr.
66536         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66537         headers, memory.h, string.h.
66538         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66539         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66540         free.
66541         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66542         headers.
66543         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66544         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66545         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66546         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66547         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66548
66549 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66550
66551         More K&R removal.
66552
66553         * lib/acosl.c (main): Use a prototype.
66554         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
66555         tanl.c: Likewise.
66556
66557         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
66558
66559         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
66560         (getopt, etopt_long, getopt_long_only, _getopt_internal)
66561         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
66562         with a prototype.
66563         * lib/getopt.c (const): Remove macro.
66564         Include <string.h> unconditionally.
66565         (my_index): Remove; all uses changed to strchr.
66566         (strlen): Remove decl.
66567         (exchange): Remove forward decl; no longer needed.
66568         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
66569         Define with prototype.
66570         * lib/getopt1.c (const): Remove macro.
66571         (getopt_long, getopt_long_only, main): Define with prototype.
66572
66573         * lib/getugroups.c: Include <string.h> unconditionally.
66574
66575         * lib/getusershell.c: Include <stdlib.h> unconditionally.
66576         (getusershell, setusershell, endusershell, readname, main):
66577         Define with prototypes.
66578
66579         * lib/group-member.c: Include group-member.h first.
66580         Include <stdlib.h> unconditionally.
66581
66582         * lib/hard-locale.c: Include hard-locale.h first.
66583         Include <stdlib.h>, <string.h> unconditionally.
66584
66585         * lib/hash.c (free, malloc): Remove decls.
66586         Include <stdlib.h> unconditionally.
66587
66588         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
66589         (getenv): Do not declare.
66590
66591         * lib/idcache.c: Include <string.h> unconditionally.
66592
66593         * lib/long-options.c: Include long-options.h first, to test interface.
66594         Include <stdlib.h> unconditionally.
66595
66596         * lib/makepath.c: Include makepath.h first, to test interface.
66597         Include <stdlib.h> and <string.h> unconditionally.
66598
66599         * lib/linebuffer.c: Include <stdlib.h>.
66600         (free): Remove decl.
66601
66602         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
66603         stddef.h. rpl_malloc returns void *, not char *.
66604         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
66605         prototype.
66606
66607         * lib/md5.h: Include <limits.h> unconditionally.
66608         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
66609         (__P): Remove; all uses removed.
66610         * lib/md5.c: Include "md5.h" first.
66611         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
66612         md5_buffer, md5_process_bytes, md5_process_block):
66613         Define with prototypes.
66614         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
66615         * lib/sha.c: Include "sha.h" first.
66616         Include <stdlib.h>, <string.h> unconditionally.
66617
66618         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
66619         * lib/memcmp.c (__ptr_t): Likewise.
66620         * lib/memrchr.c (__ptr_t): Likewise.
66621         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
66622         Include <string.h> unconditionally.
66623         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
66624         * lib/memchr.c: Include <stdlib.h> unconditionally.
66625         * lib/memchr.c (LONG_MAX): Remove.
66626         * lib/memrchr.c (LONG_MAX): Likewise.
66627         * lib/memchr.c (__memchr): Define via a prototype.
66628         * lib/memrchr.c (__memrchr): Likewise.
66629         * lib/memcmp.c (__P): Remove, and remove all uses.
66630         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
66631         Remove forward decls; no longer needed.
66632         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
66633         Use types required by C89 in prototype.
66634
66635         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
66636         * lib/savedir.c: Likewise.
66637         * lib/mkdir.c (free): Remove decl.
66638         * lib/rmdir.c (rmdir): Define with a prototype.
66639         * lib/savedir.c: Include savedir.h first, to test interface.
66640
66641         * lib/mktime.c (STDC_HEADERS): Remove.
66642         Include <stdlib.h>, <string.h> unconditionally.
66643
66644         * lib/modechange.c: Include <stdlib.h> unconditionally.
66645         (malloc): Remove decl.
66646
66647         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
66648         (free): Remove decl.
66649
66650         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
66651         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
66652         (This type really should be intptr_t, but that's a C99ism.)
66653         (_obstack_memcpy): Remove: all uses changed to memcpy.
66654         Include <string.h> unconditionally.
66655         (struct obstack): Assume __STDC__ for types of members
66656         chunkfun, freefun, extra_arg.
66657         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
66658         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
66659         obstack_begin, obstack_specify_allocation,
66660         obstack_specify_allocation_with_arg, obstack_chunkfun,
66661         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
66662         Remove unprototyped decls and the macros that use them.
66663         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
66664         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
66665         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
66666         (defined __STDC__ && __STDC__)]:
66667         Remove nonprototyped code.
66668         Include <stdlib.h> unconditionally.
66669         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
66670         _obstack_allocated_p, _obstack_free, obstack_free,
66671         _obstack_memory_used, print_and_abort):
66672         Define using prototypes.
66673         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
66674         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
66675         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
66676         obstack_next_free, obstack_object_size, obstack_room) [0]:
66677         Remove unused, unprototyped code.
66678
66679         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
66680
66681         * lib/physmem.c (physmem_total, physmem_available, main): Define
66682         with prototypes.
66683
66684         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
66685         (main): Define with a prototype.
66686
66687         * lib/posixver.c (getenv): Remove decl.
66688
66689         * lib/putenv.c (malloc): Returns void *, not char *.
66690         Include <string.h> unconditionally.
66691         (strchr, memcpy, NULL): Do not define.
66692
66693         * lib/readtokens.c: Include readtokens.h first, to test interface.
66694         Include <stdlib.h>, <string.h> unconditionally.
66695         (init_tokenbuffer): Define with a prototype.
66696
66697         * lib/regex.c (PARAMS): Remove.  All uses removed.
66698         All uses of _RE_ARGS removed, too.
66699         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66700         unconditionally.
66701         (bzero): Assume memset exists.
66702         (memcmp, memcpy, NULL): Remove.
66703         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
66704         char, or assignments to local vars of type signed char.
66705         (init_syntax_once, PREFIX(extract_number_and_incr),
66706         PREFIX(print_partial_compiled_pattern),
66707         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
66708         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
66709         PREFIX(regex_grow_registers), PREFIX(regex_compile),
66710         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
66711         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
66712         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
66713         wcs_compile_range, byte_compile_range, truncate_wchar,
66714         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
66715         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
66716         count_mbs_length, wcs_re_match_2_internal,
66717         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
66718         PREFIX(alt_match_null_string_p),
66719         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
66720         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
66721         regfree, PREFIX(extract_number)): Define with prototype.  Remove
66722         now-unnecessary declaration, if any.
66723         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
66724         regcomp, regexec):
66725         Remove now-unnecessary casts among pointer types.
66726         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
66727
66728         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
66729         (free): Remove decl.
66730
66731         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
66732
66733         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
66734         (free): Remove decl.
66735
66736         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
66737         * lib/xgetcwd.c: Likewise.
66738
66739         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
66740         (free): Remove decl.
66741
66742         * lib/strchrnul.c (strchrnul): Define with a prototype.
66743         Fix bug: c_in was not converted to char before searching.
66744
66745         The following changes are not K&R related:
66746
66747         * lib/group-member.h: Include <sys/types.h>, so that this file is
66748         self-contained.
66749         * lib/makepath.h: Likewise.
66750
66751         * lib/getusershell.c (readname, default_index, line_size, readname):
66752         Use size_t, not int, for sizes.
66753         (readname): If the size overflows, report an error instead of
66754         looping forever.
66755
66756 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66757
66758         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
66759         libc.
66760
66761 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66762
66763         * README: New section: portability guidelines.
66764
66765 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66766
66767         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
66768         C89 spec.
66769
66770 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66771
66772         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
66773
66774 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66775
66776         Assume C89 or better; remove K&R cruft.
66777         A few of these changes were first proposed by Derek Robert Price
66778         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
66779
66780         * lib/addext.c: Include <string.h> unconditionally.
66781         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
66782         Don't declare getenv or malloc.
66783
66784         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
66785         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
66786         (NULL): Remove.
66787         (find_stack_direction, alloca): Use prototypes.
66788
66789         * lib/atexit.c (atexit): Define using a prototype.
66790
66791         * lib/basename.c, dirname.c, stripslash.c:
66792         Include <string.h> unconditionally.
66793
66794         * lib/bcopy.c: Include <stddef.h>.
66795         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
66796
66797         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
66798
66799         * lib/error.h (error, error_at_line, error_print_progname)
66800         [! (defined (__STDC__) && __STDC__)]: Remove decls.
66801         * lib/error.c: Include error.h first, to check interface.
66802         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66803         (VA_START): Remove; all uses changeed to va_start.
66804         (exit, strerror): Remove decls.
66805         (error_print_progname): Prototype uncondionally.
66806         Don't include <errno.h>; no longer needed.
66807         (private_strerror): Remove.
66808         (error_tail): Always define.
66809         (error, error_at_line): Assume C89 or better; always use prototypes.
66810         * lib/fatal.c: Include "fatal.h" first, to test interface.
66811         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66812         (VA_START): Remove; all uses changed to va_start.
66813         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
66814         this case.
66815         (exit): Remove decl.
66816         (fatal): Prototype unconditionally.  Assume va_start works.
66817         Abort at end, to pacify gcc.
66818
66819         * lib/euidaccess.c (main): Define with a prototype.
66820
66821         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
66822
66823         * lib/exitfail.c: Include <stdlib.h> unconditionally.
66824
66825         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
66826         prototypes.
66827         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
66828         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
66829         (getenv): Remove decl.
66830         (fnmatch): Define using a prototype.
66831         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
66832         (FCT): Define using a prototype.
66833
66834         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
66835
66836         * lib/gethostname.c: Include <stddef.h>.
66837         (gethostname): Define with prototype.  Length is size_t, not int.
66838
66839 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66840
66841         Assume C89 or better; remove K&R cruft.
66842         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
66843         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
66844         string.h, getenv, malloc.
66845         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
66846         headers.
66847         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
66848         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
66849         do not check for strerror.
66850         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
66851         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
66852         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
66853         do not check for doprnt or vprintf.
66854         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
66855         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
66856
66857 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66858
66859         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
66860         getversion.c should have been removed then, but was accidentally
66861         preserved.
66862
66863         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
66864         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
66865
66866 2003-09-08  Karl Berry  <karl@gnu.org>
66867
66868         * config/config.sub, config.guess, srclistvars.sh: update from savannah
66869                 config, forget about prep.
66870
66871         * config/depcomp, missing: update from automake.
66872
66873 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66874
66875         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
66876         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66877
66878 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66879
66880         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
66881         copy_tm_result.  Bug reported by Simon Josefsson in
66882         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66883
66884 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66885
66886         * m4/time_r.m4: New file.
66887         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
66888         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
66889         is. Check for timegm declaration.
66890         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
66891         Do not check for gmtime_r.
66892         Replace mktime if __mktime_internal does not exist and if mktime
66893         hasn't been replaced already.
66894
66895 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66896
66897         * lib/time_r.c, lib/time_r.h: New files.
66898
66899         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
66900         __localtime_r.
66901         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
66902         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
66903
66904         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
66905         __gmtime_r.
66906         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
66907         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
66908         Include <time_r.h>.
66909
66910         * lib/timegm.c: Switch to glibc implementation, with the following
66911         changes:
66912         [defined HAVE_CONFIG_H]: Include <config.h>.
66913         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
66914         (__mktime_internal) [!defined _LIBC]: New decl.
66915         (__gmtime_r) [!defined _LIBC]: New macro and function.
66916         (timegm): Use a prototype, since gnulib assumes C89.
66917         Do not bother declaring tmp to be const, as it's not really usefu.
66918         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
66919         (timegm): Declare only if HAVE_DECL_TIMEGM.
66920
66921 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66922
66923         * MODULES.html.sh (func_all_modules): Add time_r.
66924         * modules/time_r: New file.
66925         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
66926         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
66927
66928 2003-09-03  Paul Eggert  <eggert@twinsun.com>
66929
66930         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
66931         Bug reported by Lute Kamstra in
66932         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
66933
66934         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
66935         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
66936         course with correspondingly smaller numbers for tomorrow and
66937         yesterday.  From Tadayoshi Funaba.  Originally installed into
66938         sh-utils on 1999-08-07, but the patch got lost (I guess during the
66939         coreutils merge?).
66940
66941 2003-08-31  Simon Josefsson  <jas@extundo.com>
66942
66943         * modules/timegm: New file.
66944         * MODULES.html.sh (func_all_modules): Add timegm.
66945
66946 2003-08-31  Simon Josefsson  <jas@extundo.com>
66947
66948         * m4/timegm.m4: New file.
66949
66950 2003-08-31  Simon Josefsson  <jas@extundo.com>
66951
66952         * lib/timegm.h: New file.
66953         * lib/timegm.c: New file.  Based on
66954         wget-1.8.2/src/http.c:mktime_from_utc.
66955
66956 2003-08-31  Karl Berry  <karl@gnu.org>
66957
66958         * lib/argp.h: update from libc.
66959
66960 2003-08-28  Bruno Haible  <bruno@clisp.org>
66961
66962         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
66963         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
66964         followed by '#define fnmatch fnmatch_posix' gives an error.
66965
66966 2003-08-28  Bruno Haible  <bruno@clisp.org>
66967
66968         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
66969         warning on QNX, which defines O_BINARY to 000000.
66970
66971 2003-08-27  Jim Meyering  <jim@meyering.net>
66972
66973         * m4/mkstemp.m4: Require that the system mkstemp be able to create
66974         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
66975         would fail after 32.  Reported by Danny Levinson.  Details here:
66976         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
66977
66978 2003-08-24  Bruno Haible  <bruno@clisp.org>
66979
66980         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
66981         MSVC7 <stdio.h> is included later.
66982
66983 2003-08-22  Simon Josefsson  <jas@extundo.com>
66984
66985         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
66986
66987 2003-08-20  Karl Berry  <karl@gnu.org>
66988
66989         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
66990
66991 2003-08-20  Bruno Haible  <bruno@clisp.org>
66992
66993         * modules/progname: New file.
66994         * MODULES.html.sh (func_all_modules): Add progname.
66995
66996 2003-08-20  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/progname.h: New file, from GNU gettext.
66999         * lib/progname.c: New file, from GNU gettext.
67000         * lib/progreloc.c: New file, from GNU gettext.
67001
67002 2003-08-19  Jim Meyering  <jim@meyering.net>
67003
67004         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67005         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67006
67007 2003-08-19  Bruno Haible  <bruno@clisp.org>
67008
67009         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67010         more.
67011
67012 2003-08-19  Bruno Haible  <bruno@clisp.org>
67013
67014         * lib/xstrdup.c: Assume <string.h> exists.
67015
67016 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67017
67018         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67019         in makefile rules.
67020
67021 2003-08-18  Jim Meyering  <jim@meyering.net>
67022
67023         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67024         * m4/lib-ld.m4: Likewise.
67025
67026 2003-08-18  Jim Meyering  <jim@meyering.net>
67027
67028         * lib/setenv.h: Indent nested cpp directive.
67029         * lib/vasnprintf.c: Remove trailing blanks.
67030
67031 2003-08-17  Simon Josefsson  <jas@extundo.com>
67032
67033         * modules/xstrndup: New file.
67034         * MODULES.html.sh (func_all_modules): Add xstrndup.
67035
67036 2003-08-17  Simon Josefsson  <jas@extundo.com>
67037
67038         * modules/argp: Fix autoconf macro name. Add more dependencies.
67039
67040 2003-08-17  Simon Josefsson  <jas@extundo.com>
67041
67042         * m4/xstrndup.m4: New file.
67043
67044 2003-08-17  Simon Josefsson  <jas@extundo.com>
67045
67046         * m4/argp.m4: New file.
67047
67048 2003-08-17  Simon Josefsson  <jas@extundo.com>
67049             Bruno Haible  <bruno@clisp.org>
67050
67051         * lib/xstrndup.h: New file.
67052         * lib/xstrndup.c: New file.
67053
67054 2003-08-17  Bruno Haible  <bruno@clisp.org>
67055
67056         * modules/strndup (Files, Include): Add lib/strndup.h.
67057
67058 2003-08-17  Bruno Haible  <bruno@clisp.org>
67059
67060         * modules/euidaccess (Files): Add lib/euidaccess.h.
67061
67062 2003-08-17  Bruno Haible  <bruno@clisp.org>
67063
67064         * lib/strndup.h: New file.
67065
67066 2003-08-17  Bruno Haible  <bruno@clisp.org>
67067
67068         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67069         like AC_GNU_SOURCE.
67070         * modules/extensions (configure.ac): Comment out the invocation of
67071         gl_USE_SYSTEM_EXTENSIONS.
67072
67073 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67074
67075         Merges from coreutils, etc.
67076         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67077         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67078         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67079         fixing a typo.
67080         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67081         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67082
67083 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67084
67085         Document merge from coreutils.
67086         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67087         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67088         * modules/utime: Add m4/utimes-null.m4.
67089
67090 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67091
67092         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67093         space, undoing this 2003-08-12 change:
67094         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67095
67096 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67097
67098         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67099         strtoul.c from libc, undoing this 2003-08-12 change:
67100         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67101
67102 2003-08-16  Jim Meyering  <jim@meyering.net>
67103
67104         Merges from coreutils.
67105         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67106         prefix.  Adjust cache variables similarly.  Create 500 rather than
67107         just 300 files, to exercise bug on Darwin6.5, too.
67108         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67109         $missing_dir.
67110         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67111         AM_SYS_POSIX_TERMIOS.
67112         Reported by mkc@mathdogs.com.
67113         Also change use of $am_cv_sys_posix_termios
67114         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67115         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67116         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67117         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67118         in /proc/mounts until it finds one with matching device number.  This
67119         is unnecessary when the FILE argument *is* a mount point.  No stat call
67120         is necessary in that case.  So, disable the statvfs-testing code on
67121         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67122         as RedHat bug# 84846.
67123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67124         to 1MB, so as not to render systems with no stack size limit (e.g.,
67125         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67126         Include <unistd.h>.  On some systems,
67127         it is required for the definition of _SC_PAGESIZE.
67128
67129 2003-08-16  Jim Meyering  <jim@meyering.net>
67130
67131         Merge from coreutils.
67132         * lib/xstrtoimax.c: #else #if -> #elif.
67133         * lib/xstrtoumax.c: Likewise.
67134
67135 2003-08-16  Jim Meyering  <jim@meyering.net>
67136
67137         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67138         * m4/utimes.m4: Removed.
67139         * m4/utimes-null.m4: Renamed from utimes.m4.
67140
67141         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67142         to 1MB, so as not to render systems with no stack size limit (e.g.,
67143         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67144         Include <unistd.h>.  On some systems,
67145         it is required for the definition of _SC_PAGESIZE.
67146
67147 2003-08-16  Jim Meyering  <jim@meyering.net>
67148         and Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         Merges from coreutils, etc.
67151
67152         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67153         using the latest version from cvs.  This avoids problems with #line
67154         directives using a vendor (Sun) compiler.
67155         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67156         Don't set GETGROUPS_LIB here; now it's
67157         done via getgroups.m4's wrapper function.
67158         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67159         rather than just in sh-util/configure.in, so that the
67160         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67161         same.
67162         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67163         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67164         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67165         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67166         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67167         Remove code that is now done by the newly-required macros.
67168         Append $(EXEEXT) to DF_PROG.
67169         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67170         Do not invoke or require the following here,
67171         since prereq.m4 or some gnulib .m4 now does this for us:
67172         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67173         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67174         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67175         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67176         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67177         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67178         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67179         AC_FUNC_OBSTACK.
67180         Do not replace the following functions, as this is now the job
67181         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67182         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67183         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67184         atexit getpass, strdup, getpagesize.
67185         Replace 'raise'.
67186         Do not check for the following functions, as this is now the job
67187         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67188         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67189         setregid.
67190         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67191         Check for sys/sysctl.h.
67192         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67193         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67194         of checking for ssize_t ourselves.
67195
67196         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67197         Require every macro that gnulib/modules/* suggests for us.
67198         (jm_PREREQ_ADDEXT): New macro.
67199         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67200         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67201
67202         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67203         (gl_PHYSMEM): Use it.
67204         Also check for `table' function.
67205         Check for new headers and functions.
67206         Add check for sys/sysmp.h.
67207         With suggestions from Kaveh Ghazi.
67208         Ignore headers that are present but cannot be compiled.  This
67209         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67210         C 5.4.
67211
67212 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67213
67214         Document merge from coreutils.
67215         * modules/userspec: Depend on posixver.
67216         * modules/strftime: Depend on tzset.
67217
67218 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67219
67220         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67221         rather than tab, after '#' in shell-script copyright notices.
67222         Suggested by Bruno Haible.
67223
67224 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67225
67226         * config/srclist-update: Use three spaces, rather than tab, after '#'
67227         in shell-script copyright notices.  Suggested by Bruno Haible.
67228         Remove unnecessary parenthesization in regular expression.
67229
67230 2003-08-15  Jim Meyering  <jim@meyering.net>
67231
67232         Merge from coreutils.
67233         * lib/xgethostname.c: Include <stdlib.h>.
67234         (xghostname): Don't exit for anything other than memory-related
67235         failure; just return NULL.
67236         * lib/userspec.c: Include "posixver.h".
67237         (parse_user_spec): Accept `.' as a separator only
67238         in pre-POSIX-200112 mode.
67239         * lib/strtoimax.c: Use #elif rather than #else #if.
67240         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67241         Remove function, now that we can rely on a working tzset function.
67242         [!_LIBC]: Ensure that the required autoconf test has been run.
67243         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67244         Use underlying_strftime for %r.
67245         * lib/sha.c: Merge in some clean-up and optimization changes from
67246         glibc.
67247         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67248         Ensure that it is a multiple of 64.
67249         Rearrange loop exit tests so as to avoid performing an
67250         additional fread after encountering an error or EOF.
67251         * lib/realloc.c: Update copyright date.
67252
67253 2003-08-15  Jim Meyering  <jim@meyering.net>
67254         and Paul Eggert  <eggert@twinsun.com>
67255
67256         Merge from coreutils.
67257         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67258         member but strut utmpx does not.  Needed for AIX 4.3.3.
67259         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67260
67261 2003-08-15  Jim Meyering  <jim@meyering.net>
67262         and Paul Eggert  <eggert@cs.ucla.edu>
67263
67264         Merges from coreutils, etc.
67265         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67266         Require gl_FUNC_TZSET_CLOBBER.
67267         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67268         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67269         members.
67270
67271 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67272
67273         Help the merge from coreutils.
67274         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67275         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67276         * m4/tzset.m4: Use it too.
67277
67278 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67279
67280         * modules/tzset: New file.
67281
67282 2003-08-14  Jim Meyering  <jim@meyering.net>
67283
67284         Merges from coreutils.
67285         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67286         variable names, rather than @FNMATCH_H@.
67287         * modules/alloca: Likewise for $(ALLOCA_H).
67288
67289         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67290         the three copies of the literal target, `fnmatch.h'.
67291         * modules/alloca (alloca.h): Likewise.
67292
67293 2003-08-14  Jim Meyering  <jim@meyering.net>
67294
67295         Merge from coreutils.
67296         * m4/tzset.m4: New file.
67297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67298         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67299         otherwise, AIX 5.1 systems would end up using the latter.
67300         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67301         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67302         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67303         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67304
67305 2003-08-14  Jim Meyering  <jim@meyering.net>
67306
67307         Merge from coreutils.
67308         * lib/obstack.h: Whitespace changes.
67309         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67310         and xcalloc return values.
67311         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67312         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67313         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67314         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67315         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67316         error from mntctl.
67317         Use mntctl's return value to drive the entry-processing loop, since
67318         we can't rely on the value of the vmt_length member in the last
67319         entry.  On some systems doing so could result in exhausting
67320         virtual memory.  Based in part on a patch from Mike Jetzer.
67321
67322 2003-08-14  Jim Meyering  <jim@meyering.net>
67323         and Paul Eggert  <eggert@twinsun.com>
67324
67325         Merges from coreutils, plus other fixes.
67326         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67327         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67328         for credits and details.  Thanks to Kaveh Ghazi for helping
67329         to keep these files in sync.
67330         (ARRAY_SIZE): Define it.
67331         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67332         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67333         (memcasecmp): Don't assume size_t fits in unsigned int.
67334         Remove casts and duplicate code.
67335         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67336         (memcpy): Remove definition.
67337         Merge in some clean-up and optimization changes from glibc.
67338         [BLOCKSIZE]: Move definition to top of file.
67339         Ensure that it is a multiple of 64.
67340         Rearrange loop exit tests so as to avoid performing an
67341         additional fread after encountering an error or EOF.
67342         * lib/md5.h (md5_uintptr): Define.
67343         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67344         return to the initial working directory.  Preserve errno
67345         for caller.
67346         * lib/idcache.c: Include "xalloc.h".
67347         (xmalloc, xrealloc): Remove decls.
67348         (getuser): Remove casts no longer required in C89.
67349         * lib/human.c: Include stdio.h, for sprintf.
67350         * lib/group-member.c: Include "xalloc.h".
67351         (xmalloc, xrealloc): Remove decls.
67352         (get_group_info): Remove casts no longer required in C89.
67353         * lib/getusershell.c (readname): Remove casts no longer required in
67354         C89.
67355         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67356         * lib/getline.c: Whitespace fix, from coreutils.
67357
67358 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67359
67360         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67361         Check for isascii.
67362
67363         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67364         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67365         Undo previous (whitespace-only) change.
67366
67367 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67368
67369         * lib/exclude.c: Include <ctype.h>
67370         (IN_CTYPE_DOMAIN): New macro.
67371         (is_space): New fn.
67372         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67373         and empty lines.
67374
67375         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67376         Undo previous (whitespace-only) change.
67377
67378 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67379
67380         * config/srclist-update: Change update back to the old behavior,
67381         leaving whitespace alone.  Use one 'sed' command rather than a
67382         pipeline.
67383         (fixlicense): Now a variable, not a function.
67384         (remove_trailing_blanks): Remove.
67385         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67386         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67387         Undo previous (whitespace-only) change.
67388
67389 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67390
67391         Merge from coreutils.
67392         * modules/euidaccess: Add lib_SOURCES, include for new
67393         file euidaccess.h
67394
67395 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67396
67397         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67398         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67399         Normalize leading white space and remove trailing white space.
67400
67401         Merge from coreutils
67402         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67403
67404         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67405         0.12.1.  These files are now being upgraded automatically by
67406         ../config/srclist-update.
67407
67408 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67409
67410         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67411         Normalize leading white space and remove trailing white space.
67412         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67413         notice, as per ../config/srclist-update.
67414
67415         Merge from coreutils.
67416         * lib/euidaccess.h: New file.
67417         * lib/euidaccess.c: Include it.
67418         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67419         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67420         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67421
67422 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67423
67424         * config/srclist-update: Add copyright notice.
67425         (remove_id_lines, remove_trailing_blanks): New constants.
67426         (fixfile): Use them to normalize spacing a bit in copied files.
67427         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67428         Normalize leading white space and remove trailing white space.
67429
67430         * config/texinfo.tex: Sync with texinfo.
67431
67432         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67433         strtoul.c from libc, to merge coreutils whitespace changes.
67434
67435         * config/srclist.txt: Get the following m4 files from gettext:
67436         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67437         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67438         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67439         wint_t.m4.
67440
67441 2003-08-12  Karl Berry  <karl@gnu.org>
67442
67443         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67444         been made.
67445
67446 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67447
67448         * modules/gnu-source, m4/gnu-source.m4:
67449         Remove; we're assuming Autoconf 2.54 or later now.
67450         Suggested by Bruno Haible.
67451         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67452
67453 2003-08-11  Bruno Haible  <bruno@clisp.org>
67454
67455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67456
67457 2003-08-11  Bruno Haible  <bruno@clisp.org>
67458
67459         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67460         (vasnprintf): Use it instead of wcslen.
67461
67462 2003-08-11  Bruno Haible  <bruno@clisp.org>
67463
67464         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67465         value to ensure that _Bool promotes to int. Use #define for _Bool when
67466         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67467
67468 2003-08-10  Karl Berry  <karl@gnu.org>
67469
67470         * lib/regex.h: update from libc (whitespace fix).
67471
67472 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67473
67474         Merge some files from coreutils.  These changes were
67475         originally made by Jim Meyering.
67476         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67477         many older Unixes require this.
67478         * lib/alloca.c (alloca): Remove cast to argument of free;
67479         no longer needed in C89.
67480         * lib/alloca_.h, regex.h: Fix white space to match
67481         what GNU indent does.
67482
67483 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67484
67485         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
67486         apparently Emacs's Unicode mode got confused before my 2003-08-05
67487         checkin.
67488
67489 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67490
67491         * m4/extensions.m4: New file.
67492         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
67493         Require gl_USE_SYSTEM_EXTENSIONS.
67494         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
67495         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
67496
67497 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67498
67499         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
67500         * modules/extensions, modules/gnu-source: New files.
67501         * modules/timespec, modules/unlocked-io: Depend on extensions.
67502
67503 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67504
67505         * modules/restrict: New file.
67506         * MODULES.html.sh (func_all_modules): Add restrict.
67507         * modules/regex: Depend on restrict.
67508
67509 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67510
67511         * m4/restrict.m4: New file.
67512         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67513
67514 2003-08-07  Bruno Haible  <bruno@clisp.org>
67515
67516         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67517         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67518
67519 2003-08-07  Bruno Haible  <bruno@clisp.org>
67520
67521         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67522         makes the module 'getndelim2' compatible with the module 'getline'.
67523
67524 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67525
67526         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67527         byte with "\201" to avoid glitches when editing that source file
67528         with multi-gnome-terminal.
67529
67530 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67531
67532         * lib/bumpalloc.h: Remove.
67533
67534 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67535
67536         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67537         * modules/bumpalloc: Remove.
67538
67539 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67540
67541         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67542         GNU coding style.
67543
67544         Merge from coreutils.
67545         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67546         1. From glibc.
67547         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67548         from Karl Berry, implemented by Jim Meyering.
67549         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
67550         from Dmitry V. Levin.
67551         Remove anachronistic cast of xrealloc.
67552         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
67553         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
67554         type. Otherwise, it wouldn't compile with at least /bin/cc on
67555         ymp-cray-unicos9.0.2.X.
67556         Combine two mostly-identical uses of alloca into one.
67557         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
67558
67559 2003-08-04  Dave Love  <d.love@dl.ac.uk>
67560
67561         [From Emacs.]
67562
67563         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
67564         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
67565         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
67566         obsolete NLIST_NAME_UNION.
67567         [__GNU__]: Undef BSD and FSCALE.
67568         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
67569
67570 2003-08-03  Paul Eggert  <eggert@twinsun.com>
67571
67572         * lib/stdbool_.h (_Bool): Make it signed char, instead of
67573         an enum type, so that it's guaranteed to promote to int.  See:
67574         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
67575
67576 2003-08-03  Karl Berry  <karl@gnu.org>
67577
67578         * config/depcomp: update from automake.
67579
67580 2003-07-31  Paul Eggert  <eggert@twinsun.com>
67581
67582         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
67583         (strerror): Don't assume that a printable int fits in 14 bytes.
67584
67585 2003-07-31  Bruno Haible  <bruno@clisp.org>
67586
67587         * modules/getpass-gnu: New file.
67588         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
67589
67590 2003-07-31  Bruno Haible  <bruno@clisp.org>
67591
67592         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
67593
67594 2003-07-24  Karl Berry  <karl@gnu.org>
67595
67596         * config/missing: update from automake.
67597
67598 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
67599             Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
67602         * lib/getline.c (getline, getdelim): Likewise.
67603         Remove _GNU_SOURCE define; now it's defined in config.h through
67604         m4/getline.m4.
67605
67606 2003-07-23  Karl Berry  <karl@gnu.org>
67607
67608         * config/config.sub: update from prep.
67609
67610 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67611
67612         * modules/xalloc (Depends-on): Add exitfail.
67613         * modules/xmemcoll: Likewise.
67614
67615 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67616
67617         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
67618         over-parenthesization in macros.
67619
67620         Sync with coreutils.
67621
67622         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
67623         required by C99.
67624
67625         Use `exit_failure' for xalloc and xmemcoll instead of their own
67626         private exit-failure variables.
67627         * lib/xalloc.h (xalloc_exit_failure): Remove.
67628         * lib/xmalloc.c: Likewise.  Include exitfail.h.
67629         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
67630         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
67631         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
67632         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
67633
67634 2003-07-20  Jim Meyering  <jim@meyering.net>
67635
67636         * modules/closeout (Depends-on): Add exitfail.
67637         Suggestion from Bruno Haible.
67638
67639 2003-07-19  Karl Berry  <karl@gnu.org>
67640
67641         * config/config.sub: update from prep.
67642
67643 2003-07-18  Paul Eggert  <eggert@twinsun.com>
67644
67645         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
67646         Remove.
67647         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
67648         to test that it can stand by itself.  Include "exitfail.h".
67649         Clients should set exit_failure instead.
67650         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
67651
67652 2003-07-18  Bruno Haible  <bruno@clisp.org>
67653
67654         * modules/getndelim2: New file.
67655         * modules/getline: Share files with module getndelim2.
67656         * modules/getnline: Depend on getndelim2 instead of sharing files with
67657         it. Add getnline.c to lib_SOURCES.
67658         * MODULES.html.sh (func_all_modules): Add getndelim2.
67659
67660 2003-07-18  Bruno Haible  <bruno@clisp.org>
67661
67662         * m4/getndelim2.m4: New file.
67663         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
67664         invoke gl_PREREQ_GETNDELIM2.
67665         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
67666         gl_PREREQ_GETNDELIM2.
67667         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
67668         gl_GETNDELIM2.
67669
67670 2003-07-18  Bruno Haible  <bruno@clisp.org>
67671
67672         * lib/getndelim2.h: New file.
67673         * lib/getndelim2.c: Make into a module of its own. Include config.h,
67674         getndelim2.h.
67675         (getndelim2): Make non-static. Change return type to ssize_t.
67676         * lib/getline.h: Change argument names.
67677         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
67678         * lib/getnline.c: Include getndelim2.h.
67679
67680 2003-07-18  Andreas Schwab  <schwab@suse.de>
67681
67682         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
67683
67684 2003-07-17  Karl Berry  <karl@gnu.org>
67685
67686         * config/config.sub: update from prep.
67687
67688 2003-07-17  Bruno Haible  <bruno@clisp.org>
67689
67690         * modules/getnline: New file.
67691         * modules/getline: Add lib/getndelim2.c to source file list.
67692         * MODULES.html.sh (func_all_modules): Add getnline.
67693
67694 2003-07-17  Bruno Haible  <bruno@clisp.org>
67695
67696         * m4/getnline.m4: New file.
67697
67698 2003-07-17  Bruno Haible  <bruno@clisp.org>
67699
67700         * m4/Makefile.am.in: Remove file.
67701         * m4/Makefile.am: Remove file.
67702         * m4/Makefile.in: Remove file.
67703
67704 2003-07-17  Bruno Haible  <bruno@clisp.org>
67705
67706         * lib/getnline.h: New file.
67707         * lib/getnline.c: New file.
67708         * lib/getndelim2.c: New file, extracted from getline.c.
67709         (getndelim2): Renamed from getdelim2, with added nmax argument.
67710         * lib/getline.c: Include getndelim2.c.
67711         (getdelim2): Moved out to getndelim2.c.
67712         (getline, getdelim): Update.
67713
67714 2003-07-17  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/Makefile.am: Remove file.
67717         * lib/Makefile.in: Remove file.
67718
67719 2003-07-17  Bruno Haible  <bruno@clisp.org>
67720
67721         * configure.in: Remove file.
67722         * Makefile.in: Remove file.
67723
67724 2003-07-17  Bruno Haible  <bruno@clisp.org>
67725
67726         * MODULES.html.sh: Put the </BODY> right before </HTML>.
67727
67728 2003-07-16  Karl Berry  <karl@gnu.org>
67729
67730         * config/srclist-update: was running fixlicense twice, which caused
67731                 texinfo.tex to be nullified for some reason.  Simplify,
67732                 $gplsrc is no longer needed as far as I can see?
67733
67734 2003-07-16  Jim Meyering  <jim@meyering.net>
67735
67736         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
67737
67738 2003-07-15  Paul Eggert  <eggert@twinsun.com>
67739
67740         * config/srclist.txt: Get the following files from gettext-runtime/intl
67741         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
67742         ref-del.sin.  From Bruno Haible.
67743         * config/srclist-update (fixfile): Change grep pattern again, since the
67744         previous fix didn't work (there was another trailing $).  Use
67745         '[$]' to escape the $s.
67746
67747 2003-07-15  Karl Berry  <karl@gnu.org>
67748
67749         * lib/vasnprintf.c: update from gettext.
67750
67751 2003-07-15  Karl Berry  <karl@gnu.org>
67752
67753         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
67754         gets expanded when surrounded by '$'.
67755
67756 2003-07-15  Jim Meyering  <jim@meyering.net>
67757
67758         * modules/save-cwd: Don't depend on error.  From Derek Price.
67759
67760 2003-07-15  Jim Meyering  <jim@meyering.net>
67761
67762         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
67763
67764 2003-07-14  Simon Josefsson  <jas@extundo.com>
67765
67766         * modules/mempcpy: New file.
67767         * MODULES.html.sh (func_all_modules): Add mempcpy.
67768
67769 2003-07-14  Simon Josefsson  <jas@extundo.com>
67770
67771         * m4/mempcpy.m4: New file.
67772
67773 2003-07-14  Simon Josefsson  <jas@extundo.com>
67774
67775         * lib/mempcpy.h: New file.
67776         * lib/mempcpy.c: New file.
67777
67778 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67779
67780         * modules/getdate, modules/posixtm: Depend on mktime.
67781
67782 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67783
67784         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
67785         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
67786         unicodeio.c, unicodeio.h, unlocked-io.h:
67787         Switch from LGPL to GPL.
67788
67789 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67790
67791         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
67792         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
67793         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
67794         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
67795         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
67796         updated automatically by ../config/srclist-update.  This changes
67797         their license from LPGL to GPL.
67798
67799 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67800
67801         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
67802         assumed to refer to the root of the most recent stable gettext version.
67803         * config/srclistvars.sh: Add defaults for eggert.
67804         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
67805         Match "This program" as well as "The program".  This is needed
67806         for gettext.
67807
67808 2003-07-14  Jim Meyering  <jim@meyering.net>
67809
67810         Don't emit diagnostics.  Let callers do that.
67811         * lib/save-cwd.c: Don't include "error.h".
67812         (save_cwd): Don't call error.  Ensure that errno is valid
67813         when returning nonzero.
67814
67815         * lib/save-cwd.h (restore_cwd): Update prototype.
67816         * lib/save-cwd.c (restore_cwd): Remove two parameters.
67817         Simplify.  Don't call error upon failure.  Let callers do that.
67818         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
67819         when auditing is enabled.  But don't bother updating the #if.
67820
67821 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
67822
67823         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
67824         it breaks C++ compilation.
67825         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
67826
67827 2003-07-10  Simon Josefsson  <jas@extundo.com>
67828
67829         * modules/strchrnul (Makefile.am): Add strchrnul.h.
67830
67831 2003-07-10  Jim Meyering  <jim@meyering.net>
67832
67833         * m4/clock_time.m4: Remove trailing blank.
67834         * m4/intmax_t.m4: Likewise.
67835
67836 2003-07-10  Jim Meyering  <jim@meyering.net>
67837
67838         * lib/vasnprintf.c: Remove trailing blanks.
67839         Make cpp indentation consistent.
67840
67841 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67842
67843         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
67844         posixver.c, strftime.c, strnlen.c, strverscmp.c:
67845         Switch from LGPL to GPL.
67846
67847 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67848
67849         * config/srclist.txt: Sort sublists.  Add
67850         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
67851         that differ from gnulib for one reason or another; we'd like this list
67852         to be smaller but for now let's document what we have.
67853
67854 2003-07-08  Paul Eggert  <eggert@twinsun.com>
67855
67856         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
67857         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
67858         and sweeter "eval x=$x".
67859         * config/srclist.txt: Get lib/argp* from glibc.
67860
67861 2003-07-07  Paul Eggert  <eggert@twinsun.com>
67862
67863         * lib/mktime.c: Fix some boundary cases and remove need for floating
67864         point.
67865
67866         Issue a compile-time diagnostic if time_t is floating point, or if
67867         two's complement arithmetic is not in effect, or if arithmetic
67868         right shift does not propagate the sign.  These assumptions were
67869         all in the original code but they weren't checked.
67870
67871         (TIME_T_MIDPOINT, verify): New macros.
67872         (__isleap): Remove; it has integer overflow problems.
67873         (leapyear): New function, without those problems.
67874         (ydhms_tm_diff): Remove; splitting into two parts.
67875         (ydhms_diff): New function, containing the arithmetic part of
67876         the old ydhms_tm_diff function.  Issue a compile-time
67877         diagnostic if we are not using C99 integer division.
67878         Avoid casts when possible.
67879         (guess_time_tm): New function, containing the checking part of
67880         the old ydhms_tm_diff function.  Return the new value, rather than
67881         the difference between it and the old.  Accept a new argument T
67882         so that *T specifies the old value.  Check for overflow in the result.
67883
67884         (__mktime_internal): Use a time_t offset, not a long int offset.
67885         This undoes the 2003-06-04 change, which is no longer needed now
67886         that we have better overflow checking.
67887         (localtime_offset): Likewise.
67888
67889         (__mktime_internal): Avoid harmful overflow on hosts where time_t
67890         and long are 64-bit but int is only 32-bit.
67891         (ydhms_diff): Use long int to store year1 and yday1.
67892         Issue a compile-time diagnostic if long int is not wide enough.
67893
67894         (__mktime_internal): Use long int to store adjusted year and yday.
67895         Use plain C rather than preprocessor commands, if that doesn't
67896         affect efficiency.
67897         Check for overflow (and try to repair) after each probe
67898         rather than checking only at the very end.  This avoids some bugs
67899         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
67900         does not equal GMT offset at maximum time).
67901         Use integer to check for overflow rather than floating point; this
67902         is more portable to non-IEEE hosts, and is a tad faster.
67903         When we detect that we are oscillating between two values,
67904         don't check whether tm_isdst has the requested value, since
67905         we already know the answer.  When tm_isdst has the wrong value,
67906         use a different heuristic to find the right one, based on the
67907         extreme values actually observed in practice in tz2003a,
67908         rather than the (overly optimistic) "previous 3 calendar quarters".
67909
67910         (not_equal_tm, print_tm, check_result): Use "const T" rather than
67911         "T const" to accommodate glibc style.
67912         (check_result): Use less-confusing report format.  "long" -> "long int.
67913         (main): Likewise.
67914         Don't loop if the iteration overflows time_t.
67915         Allow a negative step in the iteration.
67916
67917 2003-07-06  Karl Berry  <karl@gnu.org>
67918
67919         * config/depcomp: update from automake.
67920         * config/config.sub: update from prep.
67921
67922 2003-07-03  Karl Berry  <karl@gnu.org>
67923
67924         * config/config.guess: update from prep.
67925
67926 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67927
67928         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
67929         xreadlink.c now includes it unconditionally.
67930
67931 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67932
67933         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
67934         having it depend on HAVE_SYS_TYPES_H.
67935
67936 2003-07-01  Bruno Haible  <bruno@clisp.org>
67937
67938         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
67939         <sys/types.h> should be sufficient.
67940         Reported by Paul Eggert.
67941
67942 2003-06-26  Karl Berry  <karl@gnu.org>
67943
67944         * config/depcomp: update from automake.
67945
67946 2003-06-26  Bruno Haible  <bruno@clisp.org>
67947
67948         * modules/human: Depend on module stdbool.
67949
67950 2003-06-25  Bruno Haible  <bruno@clisp.org>
67951
67952         * modules/readlink: New file.
67953         * modules/xreadlink: Depend on it.
67954         * MODULES.html.sh (func_all_modules): Add readlink.
67955
67956 2003-06-25  Bruno Haible  <bruno@clisp.org>
67957
67958         * m4/readlink.m4: New file.
67959
67960 2003-06-25  Bruno Haible  <bruno@clisp.org>
67961
67962         * lib/readlink.c: New file.
67963
67964 2003-06-22  Karl Berry  <karl@gnu.org>
67965
67966         * config/srclist.txt: update mkinstalldirs from automake.
67967         * config/mkinstalldirs: update.
67968
67969 2003-06-22  Bruno Haible  <bruno@clisp.org>
67970
67971         Portability to mingw32.
67972         * m4/ssize_t.m4: New file, from GNU gettext.
67973         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
67974         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
67975
67976 2003-06-22  Bruno Haible  <bruno@clisp.org>
67977
67978         * modules/safe-read: Add m4/ssize_t.m4.
67979         * modules/xreadlink: Add m4/ssize_t.m4.
67980
67981 2003-06-20  Bruno Haible  <bruno@clisp.org>
67982
67983         Assume C89, so PARAMS isn't needed.
67984         * lib/unicodeio.h (PARAMS): Remove.
67985         * lib/unicodeio.c: Don't use PARAMS.
67986
67987 2003-06-18  Karl Berry  <karl@gnu.org>
67988
67989         * config/config.{guess,sub}: update from prep.
67990
67991 2003-06-18  Jim Meyering  <jim@meyering.net>
67992
67993         Merge changes from coreutils.
67994         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
67995         Remove explicit declarations of xmalloc and realloc.
67996         Include xalloc.h.
67997         (read_utmp): Remove anachronistic cast of xmalloc.
67998
67999 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68000
68001         Assume C89, so PARAMS isn't needed.
68002         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68003         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68004         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68005         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68006         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68007         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68008         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68009         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68010         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68011         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68012         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68013         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68014         no longer needed. Anyway, config.h should always be included before any
68015         other file.
68016
68017 2003-06-11  Simon Josefsson  <jas@extundo.com>
68018
68019         * modules/sysexits: New file.
68020         * MODULES.html.sh (func_all_modules): Add sysexits.
68021
68022 2003-06-11  Simon Josefsson  <jas@extundo.com>
68023
68024         * lib/sysexit_.h: New file.
68025
68026 2003-06-11  Derek Price  <derek@ximbiot.com>
68027
68028         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68029         necessary.
68030
68031 2003-06-11  Bruno Haible  <bruno@clisp.org>
68032
68033         * m4/sysexits.m4: New file.
68034
68035 2003-06-10  Simon Josefsson  <jas@extundo.com>
68036
68037         * lib/argp.h: New file, from glibc.
68038         * lib/argp-ba.c: New file, from glibc.
68039         * lib/argp-eexst.c: New file, from glibc.
68040         * lib/argp-fmtstream.c: New file, from glibc.
68041         * lib/argp-fmtstream.h: New file, from glibc.
68042         * lib/argp-fs-xinl.c: New file, from glibc.
68043         * lib/argp-help.c: New file, from glibc.
68044         * lib/argp-namefrob.h: New file, from glibc.
68045         * lib/argp-parse.c: New file, from glibc.
68046         * lib/argp-pv.c: New file, from glibc.
68047         * lib/argp-pvh.c: New file, from glibc.
68048         * lib/argp-xinl.c: New file, from glibc.
68049
68050 2003-06-10  Simon Josefsson  <jas@extundo.com>
68051
68052         * modules/strchrnul: New file.
68053
68054 2003-06-10  Simon Josefsson  <jas@extundo.com>
68055
68056         * modules/argp: New file.
68057
68058 2003-06-10  Simon Josefsson  <jas@extundo.com>
68059
68060         * m4/strchrnul.m4: New file.
68061
68062 2003-06-10  Simon Josefsson  <jas@extundo.com>
68063
68064         * lib/strchrnul.h: New file.
68065         * lib/strchrnul.c: New file.
68066
68067 2003-06-10  Bruno Haible  <bruno@clisp.org>
68068
68069         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68070
68071 2003-06-07  Karl Berry  <karl@gnu.org>
68072
68073         * config/config.{guess,sub}: update from prep.
68074
68075 2003-06-07  Jim Meyering  <jim@meyering.net>
68076
68077         * modules/strtod: Use $(...) notation, not @...@ for
68078         AC_REPLACE'd variables.
68079         * modules/localcharset: Likewise.
68080
68081 2003-06-07  Jim Meyering  <jim@meyering.net>
68082
68083         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68084         in place of my name in the copyright comment.
68085         Remove definition and uses of __P.
68086
68087         From coreutils.
68088         * lib/stat.c: Don't declare xmalloc explicitly.
68089         Instead, include "xalloc.h".
68090         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68091         xrealloc, and xcalloc return values.
68092         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68093         Improve comment.
68094         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68095
68096 2003-06-07  Bruno Haible  <bruno@clisp.org>
68097
68098         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68099         avoid AC_CONFIG_LINKS.
68100         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68101         fnmatch.h, to avoid AC_CONFIG_LINKS.
68102         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68103
68104 2003-06-07  Bruno Haible  <bruno@clisp.org>
68105
68106         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68107         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68108         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68109         directory.
68110         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68111         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68112         directory.
68113
68114 2003-06-06  Jim Meyering  <jim@meyering.net>
68115
68116         Merge from coreutils.
68117         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68118         Consolidate declarations and initializations of *_base* locals.
68119
68120         Merge from coreutils.
68121         This avoids a core dump on systems without GNU putenv,
68122         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68123         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68124         (unsetenv): New static function, from GNU libc.
68125         (rpl_putenv): Use it.
68126
68127         * lib/modechange.c: Remove trailing blanks.
68128
68129         Merge from coreutils.
68130         * lib/fsusage.c: Remove declaration of statfs.
68131         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68132
68133         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68134
68135 2003-06-06  Jim Meyering  <jim@meyering.net>
68136
68137         * lib/stdbool_.h: Renamed from stdbool.h.in.
68138
68139 2003-06-06  Jim Meyering  <jim@meyering.net>
68140             Bruno Haible  <bruno@clisp.org>
68141
68142         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68143         Adjust Makefile.am snippet not to redirect directly to target.
68144         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68145
68146 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68147
68148         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68149         mismatch, look in future quarters as well as past.  This fixes a
68150         bug when processing fall-backwards gaps immediately after a long
68151         period of daylight-saving time.
68152
68153         * lib/mktime.c: Assume freestanding C89 or better.
68154         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68155         (__P): Remove; not used.
68156         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68157         (mktime, not_equal_tm, print_tm, check_result,
68158         main): Use prototypes.  Use const * where appropriate.
68159         (main): Fix typo in testing code that uncovered by above changes.
68160         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68161
68162 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68163
68164         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68165         locale.h, localeconv.  This merges changes from coreutils.
68166
68167         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68168         It can be removed after the next Autoconf is released.
68169         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68170         needed.
68171
68172 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68173
68174         * lib/mktime.c: Fix Debian bug 177940
68175         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68176         (localtime_offset): Now long int, not time_t, because we want it
68177         to be guaranteed to be signed.  All uses changed.
68178         (__mktime_internal): If overflow would occur when adding offset,
68179         don't add it.
68180
68181         Merge 'human' changes from coreutils.  Rewrite to support
68182         locale-specific notations like thousands separators.
68183         * lib/human.c: Simplify authorship notice.
68184         Include human.h immediately after config.h.
68185         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68186         <limits.h>: Do not include, since human.h does.
68187         (SIZE_MAX, UINTMAX_MAX): New macros.
68188         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68189         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68190         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68191         (power_letter): Renamed from suffixes.
68192         (generate_suffix_backwards): Remove.
68193         (adjust_value): Now takes int style (because of human.h changes)
68194         and long double value (for greater precision on some platforms).
68195         (group_number): New function.
68196         (human_readable): Use it.  Use integer options, not enum.
68197         Put the options before the sizes in the arg list.
68198         Support all the new options.
68199         The old human_readable function has been removed;
68200         use inttostr.h instead.
68201         (human_readable, default_block_size, humblock):
68202         Use uintmax_t, not int, for block sizes.
68203         (human_readable_inexact, block_size_types): Remove.
68204         (block_size_opts): New constant.
68205         (human_options): Renamed from human_block_size, with new signature
68206         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68207         * lib/human.h: Add copyright and authorship notice.
68208         Include <limits.h> and <stdbool.h> unconditionally.
68209         (PARAMS): Remove.  All uses removed.
68210         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68211         (enum human_inexact_style): Remove tag; now a nameless enum.
68212         (human_floor, human_ceiling, human_round_to_even): Now have
68213         values 2, 0, 1 rather than -1, 1, 0.
68214         (human_group_digits, human_suppress_point_zero, human_autoscale,
68215         human_base_1024, human_SI, human_B): New constants.
68216         (human_readable_inexact, human_block_size): Remove.
68217         (human_readable): Size args are now uintmax_t, not int.
68218         (human_options): New decl.
68219
68220         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68221         unnecessary now that we assume C89 or better.  This change
68222         imported from coreutils.
68223
68224         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68225         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68226         in the 2003-05-30 sync from glibc.
68227
68228         .h files should stand alone, but we shouldn't include <sys/types.h>
68229         if we can get away with just <stddef.h>.
68230
68231         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68232         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68233         rather than <sys/types.h>, as we merely need size_t.
68234         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68235         to get size_t.
68236         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68237         Include <stdio.h>, to get FILE.
68238         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68239         memcasecmp.h has included <stddef.h> and all we need is size_t.
68240         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68241         our interface, instead of including <sys/types.h>
68242
68243 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68244
68245         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68246         now, as glibc mktime is buggy on non-glibc systems.
68247
68248 2003-06-03  Karl Berry  <karl@gnu.org>
68249
68250         * config/config.sub: update from prep.
68251
68252 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68253
68254         [from coreutils]
68255         Fix some minor time-related bugs with POSIX time arguments.
68256         Some valid time stamps were being rejected (notably -1, and
68257         time stamps before 1900 on 64-bit hosts).  And some invalid
68258         time stamps were being accepted, e.g. September 31.
68259
68260         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68261         that we can return (time_t) -1 successfully.
68262         * lib/posixtm.c: Likewise.
68263         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68264         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68265         (t): Remove static var.
68266         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68267         of static var.  All uses changed.
68268         (year): Do not reject years before 1900; they can occur with
68269         64-bit time_t.
68270         (posix_time_parse): Do not check for out-of-range components;
68271         that is now the caller's responsibility, since our checks were
68272         only approximations.
68273         (posixtime): Use mktime to check for out-of-range components,
68274         since it knows them exactly.
68275         If mktime returns (time_t) -1, check whether an error actually occurred
68276         by invoking localtime on -1.
68277         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68278         posixtime failures better.
68279         Improve the test data (in comments only).
68280
68281 2003-06-02  Karl Berry  <karl@gnu.org>
68282
68283         * config/mkinstalldirs (version): new variable.
68284         (--version): new option.
68285         (usage): improve message.
68286
68287 2003-05-30  Karl Berry  <karl@gnu.org>
68288
68289         * lib/mktime.c: update from libc.
68290
68291 2003-05-30  Bruno Haible  <bruno@clisp.org>
68292
68293         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68294         * config/config.rpath: Upgrade to gettext-0.12.1.
68295
68296 2003-05-30  Bruno Haible  <bruno@clisp.org>
68297
68298         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68299         * m4/nls.m4: New file, from gettext-0.12.1.
68300         * m4/po.m4: New file, from gettext-0.12.1.
68301         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68302
68303 2003-05-30  Bruno Haible  <bruno@clisp.org>
68304
68305         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68306         * lib/localcharset.h: Likewise.
68307         * lib/localcharset.c: Likewise.
68308
68309 2003-05-29  Karl Berry  <karl@gnu.org>
68310
68311         * config/config.rpath: update from gettext.
68312
68313 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68314
68315         Assume the headers required for C89 freestanding compilers.
68316         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68317         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68318         * m4/human.m4 (gl_HUMAN): Likewise.
68319         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68320         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68321         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68322         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68323         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68324         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68325
68326 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68327
68328         Assume the headers required for C89 freestanding compilers.
68329         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68330         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68331         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68332         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68333         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68334         define, since <limits.h> is guaranteed to do that.
68335         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68336         * lib/exclude.c: Include <stdbool.h> unconditionally.
68337         * lib/tempname.c: Include <stddef.h> unconditionally.
68338         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68339         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68340         <stddef.h> does that.
68341         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68342         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68343         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68344         needed.
68345         * lib/xstrtol.c: Likewise.
68346         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68347         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68348
68349         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68350         warnings on some platforms.
68351
68352         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68353         arbitrarily.
68354
68355 2003-05-26  Jim Meyering  <jim@meyering.net>
68356
68357         Merge in a change from coreutils:
68358         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68359         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68360         that condition, rather than `-1' which is slightly misleading.
68361         Change the name of the cache variable to have the gl_ prefix.
68362         Prompted by a patch from Richard Dawe for DJGPP.
68363
68364 2003-05-24  Karl Berry  <karl@gnu.org>
68365
68366         * config/config.guess: update from prep.
68367
68368 2003-05-22  Karl Berry  <karl@gnu.org>
68369
68370         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68371
68372 2003-05-20  Karl Berry  <karl@gnu.org>
68373
68374         * config/config.guess: update from prep.
68375
68376 2003-05-18  Karl Berry  <karl@gnu.org>
68377
68378         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68379         might actually be set by the user.
68380
68381         * config/depcomp, install-sh, mdate-sh: update from automake.
68382
68383 2003-05-17  Bruno Haible  <bruno@clisp.org>
68384
68385         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68386         invalid expansion for AC_EGREP_CPP.
68387         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68388         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68389         Suggested by Akim Demaille <akim@epita.fr> in
68390         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68391
68392 2003-05-12  Jim Meyering  <jim@meyering.net>
68393
68394         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68395         the space-padded-by-default conversion specifiers, %e, %k, %l.
68396
68397 2003-05-12  Bruno Haible  <bruno@clisp.org>
68398
68399         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68400         the string is longer than 4 KB.
68401
68402 2003-05-11  Karl Berry  <karl@gnu.org>
68403
68404         * config/config.{guess,sub}: update from prep.
68405
68406 2003-05-09  Bruno Haible  <bruno@clisp.org>
68407
68408         * modules/error: Add m4/strerror_r.m4 to file list.
68409
68410 2003-05-03  Bruno Haible  <bruno@clisp.org>
68411
68412         Upgrade to Unicode-4.0.
68413         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68414         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68415         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68416         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68417         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68418         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68419         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68420         Change width of U+E0100..U+E01EF from 1 to 0.
68421
68422 2003-04-25  Jim Meyering  <jim@meyering.net>
68423
68424         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68425         of type size_t, not int.
68426
68427 2003-04-25  Bruno Haible  <bruno@clisp.org>
68428
68429         * lib/copy-file.c: Include <stddef.h>, for size_t.
68430
68431 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68432
68433         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68434         code which expansion is under static control.  Patch imported from
68435         Akim Demaille's patch to Bison; see
68436         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68437
68438 2003-04-14  Bruno Haible  <bruno@clisp.org>
68439
68440         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68441
68442 2003-04-11  Jim Meyering  <jim@meyering.net>
68443
68444         Merge changes from Coreutils.
68445
68446         2003-03-22  Jim Meyering  <jim@meyering.net>
68447
68448         * lib/strftime.c (widen): Cast alloca return value to proper type.
68449
68450         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68451
68452         From GNU libc.
68453         * lib/strftime.c (my_strftime): Handle very large width
68454         specifications for numeric values correctly.  Improve checks for
68455         overflow.
68456
68457         2003-01-19  Jim Meyering  <jim@meyering.net>
68458
68459         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68460         definitions.
68461         (nl_get_alt_digit) [! defined my_strftime]: Define.
68462         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68463         _nl_get_alt_digit and _nl_get_walt_digit.
68464
68465         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68466         libc. These changes have no effect outside of _LIBC.
68467
68468 2003-04-10  Bruno Haible  <bruno@clisp.org>
68469
68470         * modules/findprog: New file.
68471         * MODULES.html.sh (func_all_modules): Add it.
68472
68473 2003-04-10  Bruno Haible  <bruno@clisp.org>
68474
68475         * m4/findprog.m4: New file.
68476         * m4/eaccess.m4: New file.
68477
68478 2003-04-10  Bruno Haible  <bruno@clisp.org>
68479
68480         * lib/findprog.h: New file, from GNU gettext.
68481         * lib/findprog.c: New file, from GNU gettext.
68482
68483 2003-04-05  Jim Meyering  <jim@meyering.net>
68484
68485         Merge changes from Coreutils.
68486
68487         * lib/exclude.h (PARAMS): Remove definition and uses.
68488         * lib/exclude.c: Remove uses of `PARAMS'.
68489
68490         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
68491         Add test-cases for DOS filenames. Declare program_name.
68492         (main): Set up program_name.  Patch by Rich Dawe.
68493
68494         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68495         error from mntctl.
68496         Use mntctl's return value to drive the entry-processing loop, since
68497         we can't rely on the value of the vmt_length member in the last
68498         entry.  On some systems doing so could result in exhausting
68499         virtual memory.  Based in part on a patch from Mike Jetzer.
68500
68501 2003-04-04  Bruno Haible  <bruno@clisp.org>
68502
68503         * modules/linebreak: New file.
68504         * MODULES.html.sh (func_all_modules): Add it.
68505
68506 2003-04-04  Bruno Haible  <bruno@clisp.org>
68507
68508         * m4/linebreak.m4: New file.
68509
68510 2003-04-04  Bruno Haible  <bruno@clisp.org>
68511
68512         * lib/linebreak.h: New file, from GNU gettext.
68513         * lib/linebreak.c: New file, from GNU gettext with slight
68514         modifications.
68515         * lib/lbrkprop.h: New file, from GNU gettext.
68516
68517 2003-04-03  Bruno Haible  <bruno@clisp.org>
68518
68519         * modules/utf8-ucs4: New file.
68520         * modules/utf16-ucs4: New file.
68521         * modules/ucs4-utf8: New file.
68522         * modules/ucs4-utf16: New file.
68523         * MODULES.html.sh (func_all_modules): Add them.
68524
68525 2003-04-03  Bruno Haible  <bruno@clisp.org>
68526
68527         * m4/utf-ucs4.m4: New file.
68528         * m4/ucs4-utf.m4: New file.
68529
68530 2003-04-03  Bruno Haible  <bruno@clisp.org>
68531
68532         * lib/utf8-ucs4.h: New file, from GNU gettext.
68533         * lib/utf16-ucs4.h: New file, from GNU gettext.
68534         * lib/ucs4-utf8.h: New file, from GNU gettext.
68535         * lib/ucs4-utf16.h: New file, from GNU gettext.
68536
68537 2003-04-02  Bruno Haible  <bruno@clisp.org>
68538
68539         * modules/binary-io: New file.
68540         * MODULES.html.sh (func_all_modules): Add it.
68541
68542 2003-04-02  Bruno Haible  <bruno@clisp.org>
68543
68544         * lib/binary-io.h: New file, from GNU gettext.
68545
68546 2003-04-01  Bruno Haible  <bruno@clisp.org>
68547
68548         * modules/pathname: New file.
68549         * MODULES.html.sh (func_all_modules): Add it.
68550
68551 2003-04-01  Bruno Haible  <bruno@clisp.org>
68552
68553         * lib/pathname.h: New file, from GNU gettext.
68554         * lib/concatpath.c: New file, from GNU gettext.
68555
68556 2003-03-30  Bruno Haible  <bruno@clisp.org>
68557
68558         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
68559
68560 2003-03-30  Bruno Haible  <bruno@clisp.org>
68561
68562         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
68563         function chown() doesn't exist.
68564
68565 2003-03-28  Bruno Haible  <bruno@clisp.org>
68566
68567         * modules/copy-file: New file.
68568         * MODULES.html.sh (func_all_modules): Add it.
68569
68570 2003-03-28  Bruno Haible  <bruno@clisp.org>
68571
68572         * m4/copy-file.m4: New file.
68573
68574 2003-03-28  Bruno Haible  <bruno@clisp.org>
68575
68576         * lib/copy-file.h: New file, from GNU gettext.
68577         * lib/copy-file.c: New file, from GNU gettext.
68578
68579 2003-03-18  Jim Meyering  <jim@meyering.net>
68580
68581         * lib/quote.c (quote_n): Fix typo in comment.
68582
68583 2003-03-18  Bruno Haible  <bruno@clisp.org>
68584
68585         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
68586         checking.
68587         * m4/onceonly_2_57.m4: Likewise.
68588
68589 2003-03-17  Bruno Haible  <bruno@clisp.org>
68590
68591         * m4/onceonly.m4: Require autoconf 2.54 or newer.
68592         (m4_quote): Remove macro.
68593         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
68594
68595 2003-03-14  Jim Meyering  <jim@meyering.net>
68596
68597         Merge changes from Coreutils.
68598         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
68599         to be const, in order to avoid warnings.
68600         (obstack_room): Likewise.
68601         (obstack_empty_p): Likewise.
68602
68603 2003-03-14  Bruno Haible  <bruno@clisp.org>
68604
68605         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
68606         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
68607
68608 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68609
68610         Merge changes from Bison.
68611         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
68612         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
68613         when compiling Bison 1.875's `bitset bset = obstack_alloc
68614         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
68615         * lib/hash.c: Include <stdbool.h> unconditionally.
68616
68617 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68618
68619         * m4/onceonly.m4 (m4_quote): New macro.
68620         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
68621         Quote AC_FOREACH variable-expansions properly.
68622
68623 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68624
68625         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
68626
68627 2003-03-09  Paul Eggert  <eggert@twinsun.com>
68628
68629         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
68630         Reported by Bruce Becker; see:
68631         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
68632
68633 2003-03-03  Paul Eggert  <eggert@twinsun.com>
68634             Bruno Haible  <bruno@clisp.org>
68635
68636         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
68637         Reported by John Hughes, see
68638         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
68639
68640 2003-02-20  Bruno Haible  <bruno@clisp.org>
68641
68642         * MODULES.html.sh (func_all_modules): Add poll.
68643
68644 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68645
68646         * modules/poll: New file.
68647
68648 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68649
68650         * lib/poll_.h: New file.
68651         * lib/poll.c: New file.
68652
68653 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68654
68655         * m4/poll.m4: New file.
68656
68657 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68658
68659         * modules/mathl: New file.
68660
68661 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68662
68663         * lib/mathl.h: New file.
68664         * lib/acosl.c: New file.
68665         * lib/asinl.c: New file.
68666         * lib/atanl.c: New file.
68667         * lib/ceill.c: New file.
68668         * lib/cosl.c: New file.
68669         * lib/expl.c: New file.
68670         * lib/floorl.c: New file.
68671         * lib/frexpl.c: New file.
68672         * lib/ldexpl.c: New file.
68673         * lib/logl.c: New file.
68674         * lib/sincosl.c: New file.
68675         * lib/sinl.c: New file.
68676         * lib/sqrtl.c: New file.
68677         * lib/tanl.c: New file.
68678         * lib/trigl.c: New file.
68679         * lib/trigl.h: New file.
68680
68681 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68682
68683         * m4/mathl.m4: New file.
68684
68685 2003-02-18  Bruno Haible  <bruno@clisp.org>
68686
68687         * MODULES.html.sh (func_all_modules): Add mathl.
68688
68689 2003-02-17  Bruno Haible  <bruno@clisp.org>
68690
68691         * modules/mkdtemp: New module.
68692         * MODULES.html.sh (func_all_modules): Add it.
68693
68694 2003-02-17  Bruno Haible  <bruno@clisp.org>
68695
68696         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
68697
68698 2003-02-17  Bruno Haible  <bruno@clisp.org>
68699
68700         * lib/mkdtemp.h: New file, from GNU gettext.
68701         * lib/mkdtemp.c: New file, from GNU gettext.
68702
68703 2003-02-02  Jim Meyering  <jim@meyering.net>
68704
68705         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
68706         e.g. glibc-2.2.93.
68707
68708 2003-01-31  Bruno Haible  <bruno@clisp.org>
68709
68710         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
68711         'rpl_rename'.
68712         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
68713         'rpl_strnlen'.
68714         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
68715         'rpl_strtod'.
68716         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
68717         'rpl_utime'.
68718
68719 2003-01-31  Bruno Haible  <bruno@clisp.org>
68720
68721         * lib/rename.c: #undef rename before defining rpl_rename.
68722         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
68723
68724 2003-01-30  Bruno Haible  <bruno@clisp.org>
68725
68726         * modules/vasnprintf, modules/vasprintf: New modules.
68727         * MODULES.html.sh (func_all_modules): Add them.
68728
68729 2003-01-30  Bruno Haible  <bruno@clisp.org>
68730
68731         * m4/signed.m4: New file, from GNU gettext.
68732         * m4/longdouble.m4: New file, from GNU gettext.
68733         * m4/wchar_t.m4: New file, from GNU gettext.
68734         * m4/wint_t.m4: New file, from GNU gettext.
68735         * m4/vasnprintf.m4: New file.
68736         * m4/vasprintf.m4: New file.
68737
68738 2003-01-30  Bruno Haible  <bruno@clisp.org>
68739
68740         * lib/printf-args.h: New file, from GNU gettext.
68741         * lib/printf-args.c: New file, from GNU gettext.
68742         * lib/printf-parse.h: New file, from GNU gettext.
68743         * lib/printf-parse.c: New file, from GNU gettext.
68744         * lib/vasnprintf.h: New file, from GNU gettext.
68745         * lib/vasnprintf.c: New file, from GNU gettext.
68746         * lib/asnprintf.c: New file, from GNU gettext.
68747         * lib/vasprintf.h: New file, from GNU gettext with modifications.
68748         * lib/vasprintf.c: New file, from GNU gettext.
68749         * lib/asprintf.c: New file, from GNU gettext.
68750
68751 2003-01-29  Bruno Haible  <bruno@clisp.org>
68752
68753         * modules/stpncpy: New module.
68754         * MODULES.html.sh (func_all_modules): Add it.
68755
68756 2003-01-29  Bruno Haible  <bruno@clisp.org>
68757
68758         * m4/stpncpy.m4: New file.
68759
68760 2003-01-29  Bruno Haible  <bruno@clisp.org>
68761
68762         * lib/stpncpy.h: New file, from GNU gettext with modifications.
68763         * lib/stpncpy.c: New file, from GNU gettext with modifications.
68764
68765 2003-01-28  Bruno Haible  <bruno@clisp.org>
68766
68767         * modules/c-ctype: New module.
68768         * MODULES.html.sh (func_all_modules): Add it.
68769
68770 2003-01-28  Bruno Haible  <bruno@clisp.org>
68771
68772         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
68773         Paul Eggert.
68774         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
68775         Paul Eggert.
68776
68777 2003-01-27  Bruno Haible  <bruno@clisp.org>
68778
68779         * modules/xsetenv: New module.
68780         * MODULES.html.sh (func_all_modules): Add it.
68781
68782 2003-01-27  Bruno Haible  <bruno@clisp.org>
68783
68784         * lib/xsetenv.h: New file, from GNU gettext.
68785         * lib/xsetenv.c: New file, from GNU gettext.
68786
68787 2003-01-23  Jim Meyering  <jim@meyering.net>
68788
68789         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
68790         from working on systems without dirfd (at least Irix and OSF1/Tru64).
68791
68792 2003-01-23  Bruno Haible  <bruno@clisp.org>
68793
68794         * modules/minmax: New module.
68795         * MODULES.html.sh (func_all_modules): Add it.
68796
68797 2003-01-23  Bruno Haible  <bruno@clisp.org>
68798
68799         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
68800         Eggert.
68801
68802 2003-01-22  Bruno Haible  <bruno@clisp.org>
68803
68804         * modules/exit: New module.
68805         * MODULES.html.sh (func_all_modules): Add it.
68806
68807 2003-01-22  Bruno Haible  <bruno@clisp.org>
68808
68809         * lib/exit.h: New file, from GNU gettext.
68810
68811 2003-01-19  Bruno Haible  <bruno@clisp.org>
68812
68813         * gnulib-tool: Recognize option --extract-maintainer.
68814         (func_get_maintainer): New function.
68815         * modules/*: Add Maintainer entry.
68816
68817 2003-01-16  Jim Meyering  <jim@meyering.net>
68818
68819         * m4/regex.m4: The `regex' struct is both input and output.
68820         Initialize it before each use.  Patch by Tim Waugh.
68821
68822 2003-01-16  Bruno Haible  <bruno@clisp.org>
68823
68824         * MODULES.html.sh: Add a table of contents. Add the module name as
68825         leftmost column. Add hyperlinks.
68826
68827 2003-01-15  Bruno Haible  <bruno@clisp.org>
68828
68829         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
68830
68831 2003-01-15  Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
68834         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
68835         suffix.
68836
68837 2003-01-15  Bruno Haible  <bruno@clisp.org>
68838
68839         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
68840
68841 2003-01-15  Bruno Haible  <bruno@clisp.org>
68842
68843         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
68844         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
68845
68846 2003-01-14  Jim Meyering  <jim@meyering.net>
68847
68848         * lib/same.c (same_name): Tweak a comment.
68849
68850 2003-01-14  Bruno Haible  <bruno@clisp.org>
68851
68852         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
68853         when a string comparison is sufficient.
68854
68855 2003-01-14  Bruno Haible  <bruno@clisp.org>
68856
68857         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
68858         'unsigned int'.
68859
68860 2003-01-14  Bruno Haible  <bruno@clisp.org>
68861
68862         * lib/hash-pjw.c: Add comment about low quality of this function.
68863
68864 2003-01-13  Bruno Haible  <bruno@clisp.org>
68865
68866         * modules/stpcpy: Distribute lib/stpcpy.h.
68867         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
68868
68869 2003-01-13  Bruno Haible  <bruno@clisp.org>
68870
68871         * modules/*: Add a description.
68872         * modules/strpbrk: Fix Makefile.am snippet.
68873         * modules/strtoimax: Fix dependencies.
68874         * modules/strtoumax: Likewise.
68875
68876 2003-01-13  Bruno Haible  <bruno@clisp.org>
68877
68878         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
68879         * modules/alloca (Makefile.am): All object files depend on alloca.h.
68880         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
68881
68882 2003-01-13  Bruno Haible  <bruno@clisp.org>
68883
68884         * gnulib-tool (func_create_testdir): Store config/* files in the main
68885         directory.
68886         * config.rpath: Move to ...
68887         * config/config.rpath: ... here.
68888         * modules/gettext: Contains config/config.rpath, not config.rpath.
68889         * modules/iconv: Likewise.
68890
68891 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68892
68893         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68894         to avoid collisions with libcurses and libreadline.
68895
68896         * m4/getstr.m4: Remove.
68897         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
68898
68899 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68900
68901         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68902         to avoid collisions with libcurses and libreadline.
68903
68904         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
68905         * lib/getstr.h, getstr.c: Remove.
68906         * lib/getline.c: Include "getline.h", to check interface.
68907         Move body of old getstr.c here: this defines MIN_CHUNK and
68908         declares getdelim2, which is renamed from getstr.
68909         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
68910
68911         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
68912         All uses changed.
68913         * lib/linebuffer.h: Likewise.
68914         (readline): Remove backward-compatibility macro.
68915
68916 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68917
68918         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68919         to avoid collisions with libcurses and libreadline.
68920         * getstr: Remove.
68921         * MODULES.html.sh: Remove getstr.
68922         * modules/getline: Depend on unlocked-io, not getstr.
68923
68924 2003-01-12  Jim Meyering  <jim@meyering.net>
68925
68926         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
68927
68928 2003-01-10  Bruno Haible  <bruno@clisp.org>
68929
68930         * modules/alloca: Change Makefile.am requirements. Simplify Include
68931         requirements. Add lib/alloca_.h to file list.
68932
68933 2003-01-10  Bruno Haible  <bruno@clisp.org>
68934
68935         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
68936
68937 2003-01-10  Bruno Haible  <bruno@clisp.org>
68938
68939         * lib/alloca_.h: New file.
68940         * lib/getdate.y: Unconditionally include alloca.h.
68941         * lib/makepath.c: Likewise.
68942         * lib/setenv.c: Likewise.
68943         * lib/userspec.c: Likewise.
68944
68945 2003-01-09  Karl Berry  <karl@gnu.org>
68946
68947         * MODULES.html.sh: include `dirname $0` in PATH, to find
68948         gnulib-tool.
68949
68950 2003-01-09  Bruno Haible  <bruno@clisp.org>
68951
68952         * modules/stdbool: Change configure.ac, Makefile.am requirements.
68953         Simplify Include requirements. Add lib/stdbool.h.in to file list.
68954
68955 2003-01-09  Bruno Haible  <bruno@clisp.org>
68956
68957         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
68958
68959 2003-01-09  Bruno Haible  <bruno@clisp.org>
68960
68961         * lib/stdbool.h.in: New file.
68962
68963 2003-01-09  Bruno Haible  <bruno@clisp.org>
68964
68965         * gnulib-tool (func_all_modules): Ignore files ending in ~.
68966         * MODULES.html.sh: Likewise.
68967
68968 2003-01-08  Jim Meyering  <jim@meyering.net>
68969
68970         * lib/full-write.c: Undefine and define-away `const' after inclusion
68971         of errno.h, not before.  Suggestion from Bruno Haible.
68972
68973 2003-01-08  Bruno Haible  <bruno@clisp.org>
68974
68975         * modules/full-read: Depend on full-write.
68976
68977 2003-01-08  Bruno Haible  <bruno@clisp.org>
68978
68979         * lib/safe-read.c: Include specification header first, to ensure its
68980         selfcontainedness.
68981         * lib/full-write.c: Likewise.
68982
68983 2003-01-07  Jim Meyering  <jim@meyering.net>
68984
68985         * lib/full-write.c: Rework so that it may serve to define full_read,
68986         too.
68987         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
68988
68989 2003-01-07  Bruno Haible  <bruno@clisp.org>
68990
68991         * lib/strtoimax.c: Include <stdint.h> as an alternative to
68992         <inttypes.h>.
68993         * lib/xstrtol.h: Likewise.
68994         * lib/xstrtoimax.c: Likewise.
68995         * lib/xstrtoumax.c: Likewise.
68996         * lib/human.h: Likewise.
68997
68998         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
68999         on systems that have <inttypes.h> but not <stdint.h>.
69000
69001 2003-01-07  Bruno Haible  <bruno@clisp.org>
69002
69003         * MODULES.html.sh: Add copyright notice.
69004         (missed_files): Omit CVS directory entries.
69005         (func_module): Make it work with sed-3.02.
69006         * MODULES.txt: Remove file.
69007
69008 2003-01-06  Jim Meyering  <jim@meyering.net>
69009
69010         * lib/version-etc.c: Update year in translatable copyright string.
69011
69012 2003-01-03  Karl Berry  <karl@gnu.org>
69013
69014         * config/config.{guess,sub}: update from prep.
69015
69016 2003-01-02  Karl Berry  <karl@gnu.org>
69017
69018         * doc/COPYING.DOC: belatedly updated to 1.2.
69019
69020 2003-01-01  Karl Berry  <karl@gnu.org>
69021
69022         * gnulib-tool (func_verify_module): report module name $module in
69023         error message, not $1.
69024         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69025         be created, only if it doesn't exist.
69026         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69027
69028 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69029
69030         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69031
69032 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69033
69034         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69035         memcmp if strcoll doesn't work.
69036
69037 2002-12-31  Bruno Haible  <bruno@clisp.org>
69038
69039         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69040         nonempty.
69041
69042 2002-12-31  Bruno Haible  <bruno@clisp.org>
69043
69044         * lib/memcoll.c (STRCOLL): New macro.
69045         (memcoll): Use it.
69046
69047 2002-12-31  Bruno Haible  <bruno@clisp.org>
69048
69049         * lib/localcharset.h: New file.
69050         * lib/localcharset.c: Include it.
69051         * lib/unicodeio.c: Likewise.
69052
69053 2002-12-31  Bruno Haible  <bruno@clisp.org>
69054
69055         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69056         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69057
69058 2002-12-31  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/getline.h: Include <stddef.h>, for size_t.
69061
69062         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69063         * lib/unicodeio.c: Don't include <stddef.h>.
69064
69065 2002-12-31  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69068         HAVE_TM_ZONE.
69069
69070 2002-12-24  Karl Berry  <karl@gnu.org>
69071
69072         * config/config.guess: update from prep.
69073
69074 2002-12-24  Bruno Haible  <bruno@clisp.org>
69075
69076         General infrasructure.
69077         * m4/README: Rewritten.
69078         * m4/onceonly.m4: New file.
69079         * m4/onceonly_2_57.m4: New file.
69080
69081         Module atexit.
69082         * m4/atexit.m4: New file.
69083
69084         Module strtod.
69085         * m4/strtod.m4: New file.
69086
69087         Module strtol.
69088         * m4/strtol.m4: New file.
69089
69090         Module strtoul.
69091         * m4/strtoul.m4: New file.
69092
69093         Module memchr.
69094         * m4/memchr.m4: New file.
69095
69096         Module memcmp.
69097         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69098         (jm_FUNC_MEMCMP): Invoke it.
69099
69100         Module memcpy.
69101         * m4/memcpy.m4: New file.
69102
69103         Module memmove.
69104         * m4/memmove.m4: New file.
69105
69106         Module memset.
69107         * m4/memset.m4: New file.
69108
69109         Module strcspn.
69110         * m4/strcspn.m4: New file.
69111
69112         Module strpbrk.
69113         * m4/strpbrk.m4: New file.
69114
69115         Module strstr.
69116         * m4/strstr.m4: New file.
69117
69118         Module strerror.
69119         * m4/strerror.m4: New file.
69120
69121         Module mktime.
69122         * m4/mktime.m4: Renamed from jm-mktime.m4.
69123         (gl_PREREQ_MKTIME): New macro.
69124         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69125
69126         Module malloc.
69127         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69128         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69129         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69130
69131         Module realloc.
69132         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69133         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69134         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69135
69136         Module strftime.
69137         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69138         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69139         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69140         gl_TM_GMTOFF.
69141         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69142
69143         Module xalloc.
69144         * m4/xalloc.m4: New file.
69145
69146         Module alloca.
69147         * m4/alloca.m4: New file.
69148
69149         Module putenv.
69150         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69151         (jm_FUNC_PUTENV): Invoke it.
69152
69153         Module setenv.
69154         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69155         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69156         when invoked twice.
69157         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69158         gt_FUNC_SETENV.
69159
69160         Module memrchr.
69161         * m4/memrchr.m4: New file.
69162
69163         Module stpcpy.
69164         * m4/stpcpy.m4: New file.
69165
69166         Module strcase.
69167         * m4/strcase.m4: New file.
69168
69169         Module strdup.
69170         * m4/strdup.m4: New file.
69171
69172         Module strnlen.
69173         * m4/strnlen.m4: New file.
69174
69175         Module strndup.
69176         * m4/strndup.m4: New file.
69177
69178         Module xstrtod.
69179         * m4/xstrtod.m4: New file.
69180
69181         Module xstrtol.
69182         * m4/xstrtol.m4: New file.
69183
69184         Module getdate.
69185         * m4/getdate.m4: New file.
69186
69187         Module unlocked-io.
69188         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69189         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69190         * m4/jm-glibc-io.m4n: Remove file.
69191
69192         Module long-options.
69193         * m4/long-options.m4: New file.
69194
69195         Module md5.
69196         * m4/md5.m4: New file.
69197
69198         Module sha.
69199         * m4/sha.m4: New file.
69200
69201         Module getstr.
69202         * m4/getstr.m4: New file.
69203
69204         Module getline.
69205         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69206         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69207         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69208         simply getline. Infoke gl_PREREQ_GETLINE.
69209
69210         Module obstack.
69211         * m4/obstack.m4: New file.
69212
69213         Module hash.
69214         * m4/hash.m4: New file.
69215
69216         Module readtokens.
69217         * m4/readtokens.m4: New file.
69218
69219         Module strverscmp.
69220         * m4/strverscmp.m4: New file.
69221
69222         Module stdbool.
69223         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69224         OSF/1.
69225
69226         Module strtoll.
69227         * m4/strtoll.m4: New file.
69228
69229         Module strtoull.
69230         * m4/strtoull.m4: New file.
69231
69232         Module strtoimax.
69233         * m4/strtoimax.m4: New file.
69234
69235         Module strtoumax.
69236         * m4/strtoumax.m4: New file.
69237
69238         Module xstrtoimax.
69239         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69240         jm_AC_PREREQ_XSTRTOIMAX.
69241         Moved the strtol prerequisites to strtol.m4.
69242         Moved the strtoll prerequisites to strtoll.m4.
69243         Moved the strtoimax prerequisites to strtoimax.m4.
69244
69245         Module xstrtoumax.
69246         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69247         jm_AC_PREREQ_XSTRTOUMAX.
69248         Moved the strtoul prerequisites to strtoul.m4.
69249         Moved the strtoull prerequisites to strtoull.m4.
69250         Moved the strtoumax prerequisites to strtoumax.m4.
69251
69252         Module chown.
69253         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69254         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69255
69256         Module dup2.
69257         * m4/dup2.m4: New file.
69258
69259         Module ftruncate.
69260         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69261         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69262
69263         Module getgroups.
69264         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69265         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69266
69267         Module gettimeofday.
69268         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69269         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69270         gl_PREREQ_GETTIMEOFDAY.
69271
69272         Module mkdir.
69273         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69274         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69275
69276         Module mkstemp.
69277         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69278         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69279         jm_AC_TYPE_UINTMAX_T.
69280         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69281
69282         Module stat.
69283         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69284         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69285
69286         Module lstat.
69287         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69288         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69289
69290         Module timespec.
69291         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69292         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69293         * m4/st_mtim.m4: Indentation.
69294
69295         Module nanosleep.
69296         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69297         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69298         gl_PREREQ_NANOSLEEP.
69299
69300         Module regex.
69301         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69302         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69303         (gl_REGEX): New macro.
69304
69305         Module rename.
69306         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69307         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69308
69309         Module rmdir.
69310         * m4/rmdir.m4: New file.
69311
69312         Module utime.
69313         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69314         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69315         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69316
69317         Module dirname.
69318         * m4/dirname.m4: New file.
69319
69320         Module getopt.
69321         * m4/getopt.m4: New file.
69322
69323         Module unistd-safer.
69324         * m4/unistd-safer.m4: New file.
69325
69326         Module fnmatch.
69327         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69328         declaration.
69329         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69330         (gl_FUNC_FNMATCH_POSIX): New macro.
69331         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69332         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69333         simply fnmatch.
69334
69335         Module exclude.
69336         * m4/exclude.m4: New file.
69337
69338         Module human.
69339         * m4/human.m4: New file.
69340
69341         Module acl.
69342         * m4/acl.m4: Nop.
69343
69344         Module backupfile.
69345         * m4/backupfile.m4: New file.
69346         * m4/d-ino.m4: Indentation.
69347
69348         Module fsusage.
69349         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69350         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69351         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69352
69353         Module dirfd.
69354         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69355         requirements.
69356
69357         Module euidaccess.
69358         * m4/euidaccess.m4: New file.
69359
69360         Module file-type.
69361         * m4/file-type.m4: New file.
69362
69363         Module fileblocks.
69364         * m4/fileblocks.m4: New file.
69365
69366         Module filemode.
69367         * m4/filemode.m4: New file.
69368
69369         Module isdir.
69370         * m4/isdir.m4: New file.
69371
69372         Module lchown.
69373         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69374         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69375
69376         Module makepath.
69377         * m4/makepath.m4: New file.
69378
69379         Module modechange.
69380         * m4/modechange.m4: New file.
69381
69382         Module mountlist.
69383         * m4/mountlist.m4: New file.
69384         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69385         Indentation.
69386
69387         Module path-concat.
69388         * m4/path-concat.m4: New file.
69389
69390         Module pathmax.
69391         * m4/pathmax.m4: New file.
69392
69393         Module same.
69394         * m4/same.m4: New file.
69395
69396         Module save-cwd.
69397         * m4/save-cwd.m4: New file.
69398
69399         Module savedir.
69400         * m4/savedir.m4: New file.
69401
69402         Module xgetcwd.
69403         * m4/xgetcwd.m4: New file.
69404         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69405
69406         Module xreadlink.
69407         * m4/xreadlink.m4: New file.
69408
69409         Module safe-read.
69410         * m4/safe-read.m4: New file.
69411
69412         Module safe-write.
69413         * m4/safe-write.m4: New file.
69414
69415         Module closeout.
69416         * m4/closeout.m4: New file.
69417
69418         Module stdio-safer.
69419         * m4/stdio-safer.m4: New file.
69420
69421         Module getpass.
69422         * m4/getpass.m4: New file.
69423
69424         Module getugroups.
69425         * m4/getugroups.m4: New file.
69426
69427         Module group-member.
69428         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69429         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69430
69431         Module idcache.
69432         * m4/idcache.m4: New file.
69433
69434         Module userspec.
69435         * m4/userspec.m4: New file.
69436
69437         Module gettime.
69438         * m4/clock_time.m4: New file.
69439         * m4/gettime.m4: New file.
69440
69441         Module settime.
69442         * m4/settime.m4: New file.
69443
69444         Module posixtm.
69445         * m4/posixtm.m4: New file.
69446
69447         Module gethostname.
69448         * m4/gethostname.m4: New file.
69449
69450         Module canon-host.
69451         * m4/canon-host.m4: New file.
69452
69453         Module gettext.
69454         * m4/codeset.m4: New file, from gettext-0.11.5.
69455         * m4/gettext.m4: New file, from gettext-0.11.5.
69456         * m4/glibc21.m4: New file, from gettext-0.11.5.
69457         * m4/iconv.m4: New file, from gettext-0.11.5.
69458         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69459         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69460         * m4/inttypes.m4: New file, from gettext-0.11.5.
69461         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69462         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69463         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69464         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69465         * m4/lib-link.m4: New file, from gettext-0.11.5.
69466         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69467         * m4/progtest.m4: New file, from gettext-0.11.5.
69468         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69469         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69470         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69471
69472         Module localcharset.
69473         * m4/localcharset.m4: New file.
69474
69475         Module hard-locale.
69476         * m4/hard-locale.m4: New file.
69477
69478         Module mbswidth.
69479         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
69480         onceonly macros.
69481         * m4/mbrtowc.m4: Add comment.
69482
69483         Module memcasecmp.
69484         * m4/memcasecmp.m4: New file.
69485
69486         Module memcoll.
69487         * m4/memcoll.m4: New file.
69488
69489         Module unicodeio.
69490         * m4/unicodeio.m4: New file.
69491
69492         Module rpmatch.
69493         * m4/rpmatch.m4: New file.
69494
69495         Module yesno.
69496         * m4/yesno.m4: New file.
69497
69498         Module exitfail.
69499         * m4/exitfail.m4: New file.
69500
69501         Module c-stack.
69502         * m4/c-stack.m4 (gl_C_STACK): New macro.
69503         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69504
69505         Module error.
69506         * m4/error.m4 (gl_ERROR): New macro.
69507         (jm_PREREQ_ERROR): Use onceonly macros.
69508
69509         Module fatal.
69510         * m4/fatal.m4: New file.
69511
69512         Module getloadavg.
69513         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69514         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69515
69516         Module getpagesize.
69517         * m4/getpagesize.m4: New file.
69518
69519         Module getusershell.
69520         * m4/getusershell.m4: New file.
69521
69522         Module physmem.
69523         * m4/physmem.m4: New file.
69524
69525         Module posixver.
69526         * m4/posixver.m4: New file.
69527
69528         Module quotearg.
69529         * m4/quotearg.m4: New file.
69530
69531         Module quote.
69532         * m4/quote.m4: New file.
69533
69534         Module readutmp.
69535         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69536
69537         Module sig2str.
69538         * m4/sig2str.m4: New file.
69539
69540         Other.
69541         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69542         ulonglong.m4.
69543         * m4/intmax_t.m4: New file.
69544         * m4/d-type.m4: Indentation.
69545         * m4/jm-macros.m4: Update.
69546         * m4/prereq.m4 (jm_PREREQ): Update.
69547         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69548         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69549         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
69550         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
69551         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
69552         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
69553         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
69554         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
69555         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
69556         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
69557         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
69558         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
69559         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
69560         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
69561         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
69562         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
69563         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
69564         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
69565         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
69566
69567 2002-12-24  Bruno Haible  <bruno@clisp.org>
69568
69569         * MODULES.txt: Update according to m4/ changes.
69570
69571         Module gettext.
69572         * config.rpath: New file, from gettext-0.11.5.
69573
69574         * modules/*: New module descriptions.
69575         * gnulib-tool: New file.
69576         * MODULES.html.sh: New file.
69577
69578 2002-12-21  Karl Berry  <karl@gnu.org>
69579
69580         * doc/fdl.texi: update to version 1.2.
69581
69582 2002-12-19  Karl Berry  <karl@gnu.org>
69583
69584         * config/config.guess: update from prep.
69585
69586 2002-12-18  Bruno Haible  <bruno@clisp.org>
69587
69588         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
69589         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
69590
69591 2002-12-17  Bruno Haible  <bruno@clisp.org>
69592
69593         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
69594         stdlib.h, string.h.
69595
69596 2002-12-17  Bruno Haible  <bruno@clisp.org>
69597
69598         * lib/canon-host.c (strdup): Remove unused declaration.
69599
69600         * lib/fsusage.c: Include full_read.h.
69601         (get_fs_usage): Use full_read instead of safe_read.
69602
69603         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
69604
69605 2002-12-12  Karl Berry  <karl@gnu.org>
69606
69607         * config/config.guess: update from prep.
69608
69609 2002-12-11  Bruno Haible  <bruno@clisp.org>
69610
69611         * m4/setenv.m4: New file, from gettext-0.11.5.
69612
69613 2002-12-11  Bruno Haible  <bruno@clisp.org>
69614
69615         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
69616         not unsetenv().
69617         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
69618         modifications:
69619
69620         2002-12-11  Bruno Haible  <bruno@clisp.org>
69621
69622                 * setenv.c (alloca): Fall back to malloc.
69623                 (freea): New macro.
69624                 (setenv): Use freea() to free memory allocated with alloca().
69625
69626         2002-11-13  Bruno Haible  <bruno@clisp.org>
69627
69628                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
69629                 function declarations.
69630                 * unsetenv.c (unsetenv): Likewise.
69631
69632         2002-03-04  Bruno Haible  <bruno@clisp.org>
69633
69634                 Portability to AIX 4.3.3.
69635                 * unsetenv.c: New file, extracted from setenv.c.
69636                 * setenv.c: Move the unsetenv() function to unsetenv.c.
69637
69638         2001-12-20  Bruno Haible  <bruno@clisp.org>
69639
69640                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
69641                 use malloc instead. For SunOS 4.
69642
69643         2001-12-11  Bruno Haible  <bruno@clisp.org>
69644
69645                 * setenv.c: Declare alloca.
69646                 (compar_fn_t): New typedef.
69647                 (KNOWN_VALUE, STORE_VALUE): Use it.
69648
69649         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
69650         setenv.h.
69651
69652 2002-12-10  Paul Eggert  <eggert@twinsun.com>
69653
69654         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
69655         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
69656         Choose values that are less likely to collide with system fnmatch
69657         options.
69658         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
69659         defined (e.g., a pure POSIX system).
69660         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
69661         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
69662
69663 2002-12-06  Paul Eggert  <eggert@twinsun.com>
69664
69665         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
69666         a pain in practice to deal with generated m4 files.  This change
69667         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
69668
69669         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
69670         and jm-glibc-io.m4, as they are no longer a special case.
69671         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
69672         kludge and the auto-generation stuff.  Check only whether the
69673         functions are declared, not whether they exist, since older hosts
69674         that don't declare the functions can't use the optimization anyway.
69675
69676 2002-12-06  Jim Meyering  <jim@meyering.net>
69677
69678         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
69679
69680         Merge in changes from libc's misc/error.c, in preparation
69681         for the merge of gnulib's changes back into libc.
69682
69683         * lib/error.c (_): Define only if not already defined.
69684         Move definition to follow all #include directives.
69685         Include unlocked-io.h only if !_LIBC.
69686         [_LIBC]: Include <libio/libioP.h>.
69687         [USE_IN_LIBIO]: Include <libio/iolibio.h>
69688         (fflush): Tweak definition to use INTUSE.
69689         (putc): Define.
69690
69691 2002-12-05  Paul Eggert  <eggert@twinsun.com>
69692
69693         * lib/alloca.c [defined emacs]: Include "lisp.h".
69694         (xalloc_die) [defined emacs]: New macro.
69695         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
69696         [! defined emacs]: Include <xalloc.h>.
69697         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
69698         (pointer): Typedef to POINTER_TYPE *.
69699         (malloc): Remove decl; we now always use xmalloc.
69700         (alloca): Use old-style definition, since Emacs needs this.
69701         Check for arithmetic overflow when computing combined size.
69702
69703 2002-12-04  Paul Eggert  <eggert@twinsun.com>
69704
69705         Do not generate unlocked-io.h automatically, since it's easier to
69706         maintain it by hand.
69707
69708         * lib/unlocked-io.h: New file, from GNU diffutils,
69709         but with proper copyright notice and attribution.
69710         * lib/gen-uio: Remove.
69711         * lib/Makefile.am: Add copyright notice.
69712         (libfetish_a_SOURCES): Add unlocked-io.h.
69713         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
69714         (DISTCLEANFILES, io_functions): Remove macros.
69715         (EXTRA_DIST): Remove gen_uio.
69716         (unlocked-io.h): Remove rule.
69717
69718 2002-12-04  Jim Meyering  <jim@meyering.net>
69719
69720         Reflect the fact that stat.c and lstat.c are no longer generated.
69721         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
69722         (DISTCLEANFILES): Likewise.
69723         (EXTRA_DIST): Likewise.
69724         (all_local): Don't depend on stat.c or lstat.c.
69725         (stat.c, lstat.c): Remove rules.
69726         (EXTRA_DIST): Remove xstat.in.
69727
69728         * lib/xstat.in: Remove file.  Contents moved into stat.c.
69729         * lib/stat.c: New file.  Contents mostly from xstat.in.
69730         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
69731         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
69732
69733         * lib/safe-read.c: Rework so that it may serve to define safe_write,
69734         too.
69735         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
69736
69737 2002-12-03  Jim Meyering  <jim@meyering.net>
69738
69739         * lib/safe-read.c, safe-write.c: Change variable names and comments,
69740         but not semantics, to minimize the differences between these two files.
69741         (safe_read): Change comment to mention SAFE_READ_ERROR.
69742
69743         * lib/safe-read.c (IS_EINTR): Define.
69744         (safe_read): Use IS_EINTR in place of in-function cpp directives.
69745
69746 2002-12-02  Jim Meyering  <jim@meyering.net>
69747
69748         * lib/safe-read.c (EINTR): Define.
69749         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69750         (INT_MAX): Provide fallback.
69751         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
69752
69753         * lib/safe-read.h (SAFE_READ_ERROR): Define.
69754
69755 2002-12-02  Bruno Haible  <bruno@clisp.org>
69756
69757         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
69758         Define, taken from safe-read.c.
69759         (INT_MAX): Provide fallback.
69760         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
69761         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
69762
69763         * lib/safe-read.c (EINTR): Remove definition.
69764         (safe_read): Don't use EINTR if it is absent.
69765
69766 2002-12-01  Jim Meyering  <jim@meyering.net>
69767
69768         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
69769         zero.
69770         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
69771
69772 2002-11-27  Paul Eggert  <eggert@twinsun.com>
69773
69774         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
69775         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
69776         with `if (! (value < limit)) abort ();', for readability.
69777
69778 2002-11-26  Karl Berry  <karl@gnu.org>
69779
69780         * lib/strdup.c: copy from libc again, with jim's ok.
69781         * lib/.cppi-disable: re-add strdup.c
69782
69783 2002-11-25  Karl Berry  <karl@gnu.org>
69784
69785         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
69786         instead of "strtol.c".
69787
69788 2002-11-25  Karl Berry  <karl@gnu.org>
69789
69790         * config/install-sh: update from automake for variable quoting, $0 in
69791         error msgs, etc.
69792
69793         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
69794         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
69795         entry.
69796
69797 2002-11-25  Jim Meyering  <jim@meyering.net>
69798
69799         * lib/mktime.c: Sync from libc, now that it has the latest fix.
69800
69801 2002-11-24  Karl Berry  <karl@gnu.org>
69802
69803         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
69804         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
69805
69806 2002-11-24  Jim Meyering  <jim@meyering.net>
69807
69808         Update from coreutils:
69809
69810         * lib/mktime.c: Merge in changes from libc.
69811
69812         Avoid a link-time failure on some Linux systems.
69813         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
69814         (otherwise).
69815         (__mon_yday): Declare with the STATIC attribute.
69816         (__mktime_internal): Likewise.
69817         Based on a report from Greg Schafer.
69818
69819 2002-11-23  Jim Meyering  <jim@meyering.net>
69820
69821         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
69822         Use `unsigned', not `int', as type of index.
69823
69824         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
69825
69826         * lib/fsusage.c: Remove unneeded parentheses around operands of
69827         `defined'.
69828
69829 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69830
69831         * lib/quotearg.h: Allow multiple inclusion by surrounding with
69832         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
69833         so that we can be included first.
69834         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
69835         * lib/quotearg.c: Include quotearg.h immediately after config.h.
69836         No need to include stddef.h or sys/types.h any more.
69837         Surround local include files with "", not "<>".
69838         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
69839         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
69840         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
69841         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
69842         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
69843         (ISPRINT): Remove; no longer needed now that we assume C89.
69844
69845         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
69846         Preserve errno.
69847
69848         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
69849         quotearg_char): Use SIZE_MAX rather than
69850         (size_t) -1 when we are talking about "infinity".
69851
69852         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
69853
69854 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69855
69856         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
69857         hint that one should use `if (! x) abort ();' rather than `assert
69858         (x);', and anyway it's one less thing to worry about configuring.
69859         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
69860         hash_rehash, hash_insert): Use abort rather than assert.
69861
69862 2002-11-22  Bruno Haible  <bruno@clisp.org>
69863
69864         * lib/safe-read.h: Assume C89. Add comments.
69865         (safe_read): Change return type to size_t.
69866         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
69867         byte counts > SSIZE_MAX correctly.
69868         * lib/safe-write.h: New file.
69869         * lib/safe-write.c: New file.
69870         * lib/full-read.h: New file.
69871         * lib/full-read.c: New file.
69872         * lib/full-write.h: Assume C89. Add comments.
69873         * lib/full-write.c: Include safe-write.h.
69874         (full_write): Rewritten to use safe_write.
69875         Suggested by Jim Meyering and Paul Eggert.
69876
69877 2002-11-21  Jim Meyering  <jim@meyering.net>
69878
69879         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
69880
69881         Merge in changes from the coreutils.
69882
69883         2002-09-25  Paul Eggert  <eggert@twinsun.com>
69884         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
69885         <stdint.h>.
69886         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
69887         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
69888         int.  Work more efficiently if X is the same width as uintmax_t.
69889         Do not compare X to -1, to avoid bogus compiler warning.
69890         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
69891         Don't assume that f_frsize and f_bsize are the same type.
69892
69893         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
69894         warning on FreeBSD.
69895
69896         * lib/makepath.c (make_path): Restore umask *before* creating the final
69897         component.
69898         (make_path): Minor reformatting.
69899
69900         * lib/xmalloc.c: Adjust to work with new autoconf macros,
69901         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
69902         HAVE_MALLOC/HAVE_REALLOC.
69903
69904         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
69905         dummy ones.  At least on GNU/Linux systems, `auto' means something
69906         else.
69907         From Michael Stone.
69908
69909 2002-11-21  Bruno Haible  <bruno@clisp.org>
69910
69911         Remove case insensitive option matching.
69912         * lib/argmatch.h (argcasematch): Remove declaration.
69913         (ARGCASEMATCH): Remove macro.
69914         (__xargmatch_internal): Remove case_sensitive argument.
69915         (XARGMATCH): Update.
69916         (XARGCASEMATCH): Remove macro.
69917         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
69918         case_sensitive argument.
69919         (argcasematch): Remove function.
69920         (__xargmatch_internal): Remove case_sensitive argument.
69921         (main): Use XARGMATCH instead of XARGCASEMATCH.
69922
69923         * lib/xmalloc.c: Change compile-time error message. Add comment about
69924         required autoconf version.
69925
69926 2002-11-20  Paul Eggert  <eggert@twinsun.com>
69927
69928         Merge argmatch cleanups from Bison.  Assume C89.
69929
69930         * lib/argmatch.c: Include config.h here, not in argmatch.h.
69931         Include stdlib.h, for EXIT_FAILURE.
69932         Always include <string.h>, since we assume C89.
69933         (EXIT_FAILURE): Remove pre-C89 bug workaround.
69934         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
69935         Include <stddef.h> instead, since it's all we need for size_t.
69936         (PARAMS): Remove.  All uses removed.
69937         (ARRAY_CARDINALITY): Do not bother to #undef.
69938         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
69939         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69940         Remove unnecessary parentheses.
69941         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69942         Insert necessary parentheses.
69943         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
69944         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
69945
69946 2002-11-19  Bruno Haible  <bruno@clisp.org>
69947
69948         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
69949         * lib/mbswidth.h: Include <stddef.h>, for size_t.
69950
69951         * lib/mbswidth.h (PARAMS): Remove macro.
69952         (mbswidth, mbsnwidth): Use ANSI C function declarations.
69953         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
69954
69955         * lib/gcd.h (PARAMS): Remove macro.
69956         (gcd): Use ANSI C function declarations.
69957         * lib/gcd.c (gcd): Likewise.
69958
69959 2002-11-15  Bruno Haible  <bruno@clisp.org>
69960
69961         * lib/strcspn.c: Include <stddef.h>.
69962         (strcspn): Use ANSI C function declaration. Change return type to
69963         size_t. Use NULL.
69964         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
69965         (strpbrk): Use NULL.
69966         * lib/strpbrk.h (PARAMS): Remove macro.
69967         (strpbrk): Use ANSI C function declaration.
69968         * lib/strstr.c: Don't include <sys/types.h>.
69969         * lib/strstr.h (PARAMS): Remove macro.
69970         (strstr): Use ANSI C function declarations.
69971
69972 2002-11-14  Karl Berry  <karl@gnu.org>
69973
69974         * config/mkinstalldirs: `do' on separate line, instead of
69975         `for var; do'.
69976
69977 2002-11-06  Bruno Haible  <bruno@clisp.org>
69978
69979         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
69980         * lib/gcd.c (gcd): Likewise.
69981
69982 2002-11-05  Bruno Haible  <bruno@clisp.org>
69983
69984         * lib/gcd.h: New file, from gettext-0.11.5.
69985         * lib/gcd.c: New file, from gettext-0.11.5.
69986
69987 2002-11-05  Bruno Haible  <bruno@clisp.org>
69988
69989         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69990         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69991         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69992         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
69993
69994         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
69995         <libintl.h>.
69996         * lib/makepath.c: Include gettext.h instead of <locale.h> and
69997         <libintl.h>.
69998
69999         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70000         * lib/human.c: Include gettext.h instead of <libintl.h>.
70001         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70002         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70003         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70004         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70005         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70006         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70007         (textdomain): Remove definition.
70008         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70009
70010         * lib/long-options.c: Remove include of <libintl.h> and definition of
70011         _.
70012         * lib/same.c: Remove include of <libintl.h> and definition of _.
70013
70014 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70015
70016         * lib/config.charset: A few additions for Solaris.
70017
70018 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70019
70020         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70021         * lib/localcharset.c (locale_charset): Declare as extern "C".
70022
70023 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70024
70025         * lib/config.charset: msdos in uk_UA uses CP1125.
70026
70027 2002-11-04  Bruno Haible  <bruno@clisp.org>
70028
70029         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70030         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70031         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70032         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70033         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70034
70035 2002-11-04  Bruno Haible  <bruno@clisp.org>
70036
70037         * lib/localcharset.c (locale_charset): Don't return an empty string.
70038
70039 2002-11-04  Bruno Haible  <bruno@clisp.org>
70040
70041         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70042         aliases.
70043
70044 2002-11-04  Bruno Haible  <bruno@clisp.org>
70045
70046         * lib/config.charset: Update for newest glibc. Add canonical names
70047         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70048
70049 2002-11-04  Bruno Haible  <bruno@clisp.org>
70050
70051         * lib/config.charset: Add support for NetBSD.
70052
70053 2002-11-04  Bruno Haible  <bruno@clisp.org>
70054
70055         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70056
70057 2002-11-01  Bruno Haible  <bruno@clisp.org>
70058
70059         * configure.in: Add AC_CONFIG_AUX_DIR call.
70060         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70061         test/Makefile.
70062         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70063
70064 2002-09-28  Karl Berry  <karl@gnu.org>
70065
70066         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70067         installed automake until the next release, since changes have been
70068         made.
70069
70070 2002-09-25  Karl Berry  <karl@gnu.org>
70071
70072         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70073         * lib/getopt*: copy from libc/posix.
70074         * lib/gettext.h: copy from gettext.
70075         * lib/.cppi-disable: add strdup.c, gettext.h.
70076
70077 2002-09-25  Karl Berry  <karl@gnu.org>
70078
70079         * config/srclist.txt: enable gettext.h check.
70080         * config/config.{guess,sub}: update from prep.
70081         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70082                 from automake 1.6.3.
70083         See srclist*.
70084
70085 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70086
70087         * regex.c (PATFETCH): Remove the translating fetch.
70088         (PATFETCH_RAW): Rename to PATFETCH.
70089         (set_image_of_range): New fun.
70090         (SET_RANGE_TABLE_WORK_AREA): Use it.
70091         (regex_compile): Don't translate the pattern chars so eagerly.
70092         Only do it when inserting an `exactn' bytecode or when handling
70093         a char-range.
70094         (mutually_exclusive_p): Avoid empty statement.
70095
70096 2002-07-06  Jim Meyering  <meyering@lucent.com>
70097
70098         * m4/README: Don't mention Makefile.am.in.
70099         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70100
70101 2002-07-01  Jim Meyering  <meyering@lucent.com>
70102
70103         * lib/c-stack.c: Include sys/time.h.
70104         From Volker Borchert.
70105
70106 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70107
70108         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70109
70110 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70111
70112         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70113         New macro.  Use it uniformly instead of
70114         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70115         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70116         reported by Vin Shelton.
70117
70118 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70119
70120         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70121         Do not assume SA_SIGINFO behavior.
70122         Bug reported by Jim Meyering on NetBSD 1.5.2.
70123
70124 2002-06-22  Jim Meyering  <meyering@lucent.com>
70125
70126         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70127         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70128
70129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70130         now that configure.ac uses AC_GNU_SOURCE.
70131         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70132         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70133
70134         Update to latest tools.  Suggestions from Paul Eggert.
70135         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70136         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70137         * m4/fnmatch.m4: Likewise.
70138         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70139         to AC_HEADER_STDBOOL
70140
70141 2002-06-22  Jim Meyering  <meyering@lucent.com>
70142
70143         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70144         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70145
70146 2002-06-22  Jim Meyering  <meyering@lucent.com>
70147
70148         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70149
70150         * lib/exitfail.c, exitfail.h: Likewise.
70151         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70152
70153         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70154         of fnmatch.h.
70155         (EXTRA_DIST): Add fnmatch_loop.c.
70156         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70157
70158         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70159         * lib/fnmatch.c: Update from diffutils-2.8.2.
70160         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70161         * lib/fnmatch.h: Remove file.
70162
70163 2002-06-21  Jim Meyering  <meyering@lucent.com>
70164
70165         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70166         * m4/mbrtowc.m4: Likewise.
70167
70168         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70169         * m4/mbswidth.m4: Reflect name change:
70170         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70172
70173         * m4/lib-link.m4: Update from gettext-0.11.2.
70174         * m4/gettext.m4: Likewise.
70175
70176         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70177         From Alfred M. Szmidt.
70178
70179 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70180
70181         * lib/file-type.h: Report an error if neither S_ISREG nor
70182         S_IFREG is defined, instead of using a test specific to glibc
70183         2.2.  This should be safe, since POSIX requires S_ISREG and
70184         Unix Version 7 had S_IFREG.  We don't need to check for
70185         <sys/types.h> since we don't use any symbols that it defines.
70186
70187 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70188
70189         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70190         $@-t, so that each temporary file name is unique and valid in the first
70191         8 characters, for operation under DOS.
70192
70193 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70194
70195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70196
70197 2002-06-15  Jim Meyering  <meyering@lucent.com>
70198
70199         Work even with DJGPP 2.03, which lacks support for symlinks.
70200         From Richard Dawe.
70201         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70202         is defined.
70203         * lib/lchown.c (S_ISLNK): Likewise.
70204
70205 2002-06-15  Jim Meyering  <meyering@lucent.com>
70206
70207         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70208         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70209         have been included before this file.
70210
70211 2002-06-14  Jim Meyering  <meyering@lucent.com>
70212
70213         * lib/file-type.h: Use the version from diffutils-2.8.2.
70214         * lib/file-type.c: Likewise.
70215
70216 2002-06-07  Jim Meyering  <meyering@lucent.com>
70217
70218         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70219         They're needed at least for NetBSD 1.5.2.
70220         ($statxfs_includes): Include those same headers.
70221         ($statxfs_includes): Include sys/vfs.h if available.
70222         ($statxfs_includes): Likewise for sys/statvfs.h.
70223         Check for the following members in both structs statfs and statvfs:
70224         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70225
70226 2002-06-01  Jim Meyering  <meyering@lucent.com>
70227
70228         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70229         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70230
70231 2002-05-28  Jim Meyering  <meyering@lucent.com>
70232
70233         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70234         Reported by Volker Borchert.
70235
70236 2002-05-27  Jim Meyering  <meyering@lucent.com>
70237
70238         Fix a problem seen only on nonconforming systems whereby ls.c's
70239         use of localtime, and then of gettimeofday would cause trouble:
70240         the localtime call used to initialize rpl_gettimeofday's save
70241         mechanism would clobber ls's current local time information so
70242         that in any long listing the first file would always be listed
70243         with date 1970-01-01.  Analysis by Volker Borchert.
70244
70245         * lib/gettimeofday.c (localtime): Undefine.
70246         (rpl_localtime): New function.
70247
70248 2002-05-27  Jim Meyering  <meyering@lucent.com>
70249
70250         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70251         localtime.
70252
70253         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70254         use the replacement function; it wouldn't resolve at link time.
70255         Reported by Volker Borchert.
70256
70257 2002-05-22  Jim Meyering  <meyering@lucent.com>
70258
70259         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70260         file-type.h.
70261         * lib/file-type.h: New file.
70262         * lib/file-type.c (file_type): New file/function.  Extracted from
70263         diffutils.
70264
70265 2002-04-30  Jim Meyering  <meyering@lucent.com>
70266
70267         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70268
70269 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70270
70271         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70272
70273 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70274
70275         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70276         Do not check for alloca.h (no longer used) or stdbool.h (was never
70277         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70278
70279 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70280
70281         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70282
70283 2002-04-29  Jim Meyering  <meyering@lucent.com>
70284
70285         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70286         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70287         Use AC_FUNC_STRNLEN here instead.
70288
70289         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70290         With autoconf-2.53a, it's part of AC_PROG_CC.
70291
70292 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70293
70294         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70296
70297 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70298
70299         * lib/sig2str.h, lib/sig2str.c: New files.
70300         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70301
70302 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70303
70304         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70305         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70306         of 127, since 64 is the largest conceivable number for ancient
70307         nonstandard hosts.
70308         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70309
70310 2002-04-28  Jim Meyering  <meyering@lucent.com>
70311
70312         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70313
70314 2002-04-24  Jim Meyering  <meyering@lucent.com>
70315
70316         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70317         (jm_PREREQ): Use it.
70318
70319         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70320         mach/mach.h fcntl.h.
70321         Check for this function: setlocale.
70322
70323 2002-04-24  Jim Meyering  <meyering@lucent.com>
70324
70325         * lib/gettext.h: New file, from Gettext.
70326         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70327         (libfetish_a_SOURCES): Add gettext.h.
70328
70329 2002-04-16  Jim Meyering  <meyering@lucent.com>
70330
70331         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70332         ut_pid, ut_id, ut_exit.
70333
70334 2002-04-16  Jim Meyering  <meyering@lucent.com>
70335
70336         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70337         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70338         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70339
70340 2002-04-12  Jim Meyering  <meyering@lucent.com>
70341
70342         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70343         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70344         existence of the getmntinfo function.  Needed for Darwin 5.3.
70345
70346         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70347         This is necessary at least on Darwin 5.3.
70348
70349         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70350         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70351         strnlen.o in the library, and that makes some versions of ranlib
70352         object.
70353
70354 2002-04-12  Jim Meyering  <meyering@lucent.com>
70355
70356         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70357
70358 2002-04-09  Jim Meyering  <meyering@lucent.com>
70359
70360         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70361         to be more precise.  Rather than saying we're checking whether the
70362         function `works', say what we're testing.
70363         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70364         Reported by Bruno Haible.
70365
70366 2002-03-10  Jim Meyering  <meyering@lucent.com>
70367
70368         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70369         Suggestion from Santiago Vila.
70370
70371 2002-03-08  Jim Meyering  <meyering@lucent.com>
70372
70373         * lib/rename.c: Mention that this wrapper is needed also on
70374         mips-dec-ultrix4.4 systems.
70375
70376 2002-03-02  Jim Meyering  <meyering@lucent.com>
70377
70378         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70379         not HAVE_CLOCK_SETTIME.
70380
70381 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70382
70383         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70384         Check for clock_settime.
70385
70386 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70387
70388         * lib/nanosleep.h: Rename to....
70389         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70390
70391         * lib/gettime.c: New file.
70392         * lib/settime.c: New file.
70393         * lib/stime.c: Remove.
70394
70395         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70396         timespec.h.  Remove nanosleep.h.
70397
70398 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70399
70400         * m4/acl.m4: New file.
70401         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70402         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70403
70404 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70405
70406         * lib/acl.c, lib/acl.h: New files.
70407         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70408
70409 2002-02-24  Jim Meyering  <meyering@lucent.com>
70410
70411         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70412         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70413         cause trouble.  Reported by Nelson Beebe.
70414
70415 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70416
70417         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70418         compilers that don't know that xalloc_die never returns.
70419
70420 2002-02-20  Jim Meyering  <meyering@lucent.com>
70421
70422         * lib/getdate.c: Regenerate using bison-1.33.
70423
70424 2002-02-17  Jim Meyering  <meyering@lucent.com>
70425
70426         * config/config.guess (main): Don't use `head -1'; it's no longer
70427         portable. Use `sed 1q' instead.
70428
70429 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70430
70431         * m4/codeset.m4: Upgrade to gettext-0.11.
70432         * m4/gettext.m4: Upgrade to gettext-0.11.
70433         * m4/glibc21.m4: Upgrade to gettext-0.11.
70434         * m4/iconv.m4: Upgrade to gettext-0.11.
70435         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70436         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70437         * m4/lib-ld.m4: New file, from gettext-0.11.
70438         * m4/lib-link.m4: New file, from gettext-0.11.
70439         * m4/lib-prefix.m4: New file, from gettext-0.11.
70440         * m4/progtest.m4: Upgrade to gettext-0.11.
70441
70442 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70443
70444         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70445         (jm_PREREQ): Use it.
70446
70447 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70448
70449         * lib/posixver.c, lib/posixver.h: New files.
70450         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70451
70452 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70453             Bruno Haible  <bruno@clisp.org>
70454
70455         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70456         (fwrite_success_callback): New declaration.
70457         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70458         print_unicode_char. Call failure callback instead of error.
70459         (fwrite_success_callback): New function.
70460         (exit_failure_callback): New function.
70461         (fallback_failure_callback): New function.
70462         (print_unicode_char): Call unicode_to_mb.
70463
70464 2002-01-26  Jim Meyering  <meyering@lucent.com>
70465
70466         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70467         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70468
70469 2002-01-26  Jim Meyering  <meyering@lucent.com>
70470
70471         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70472
70473 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70474
70475         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70476
70477 2002-01-22  Jim Meyering  <meyering@lucent.com>
70478
70479         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
70480         Otherwise, some versions of automake would omit the rule that makes
70481         Makefile from Makefile.in.
70482
70483 2002-01-21  Paul Eggert  <eggert@twinsun.com>
70484
70485         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
70486         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70487         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
70488         (memcoll): Set errno to zero if there is no error.
70489
70490         * lib/quotearg.c (quotearg_buffer_restyled):
70491         Fix bug with quoting buffers containing NUL when backslashing escapes.
70492         This bug was exposed by the other changes in this patch.
70493         (quotearg_n_options): New arg ARGSIZE.
70494         All callers changed.
70495         (quoting_options_from_style): New function.
70496         (quotearg_n_style): Use it.
70497         (quotearg_n_style_mem): New function.
70498
70499         * lib/quotearg.h (quotearg_n_style_mem): New function.
70500
70501 2002-01-19  Jim Meyering  <meyering@lucent.com>
70502
70503         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70504         Remove useless quotes: DF_PROG="df".
70505         * m4/strnlen.m4: New file.
70506
70507 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70508
70509         * lib/backupfile.c (ISDIGIT): Comment fix.
70510         * lib/getdate.y (ISDIGIT): Likewise.
70511         * lib/posixtm.c (ISDIGIT, year): Likewise.
70512         * lib/strverscmp.c (ISDIGIT): Likewise.
70513         * lib/userspec.c (ISDIGIT): Likewise.
70514
70515 2002-01-16  Jim Meyering  <meyering@lucent.com>
70516
70517         * lib/getdate.y: Add three semicolons, each just before a closing
70518         brace. Bison (as of version 1.31) no longer papers over that mistake.
70519
70520 2002-01-05  Jim Meyering  <meyering@lucent.com>
70521
70522         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70523
70524 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70525
70526         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70527         not silently exit merely because the output buffer happens to
70528         have nothing pending.
70529
70530 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70531
70532         See the big note in ../ChangeLog.
70533         * lib/human.c (suffixes): Prefer K to k for 1024.
70534         (generate_suffix_backwards): New function.
70535         (human_readable_inexact): Use it.
70536         * lib/xstrtol.c (__xstrtol): If there is no number but there
70537         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70538         Accept 'K' as well as 'k'.
70539
70540 2001-12-15  Jim Meyering  <meyering@lucent.com>
70541
70542         * lib/regex.h (__restrict_arr): Update from libc.
70543
70544         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70545         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70546         (STREQ): Define.
70547
70548 2001-12-14  Jim Meyering  <meyering@lucent.com>
70549
70550         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
70551         Suggestion from Bruno Haible.
70552
70553 2001-12-10  Jim Meyering  <meyering@lucent.com>
70554
70555         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
70556         xrealloc, Instead, include "xalloc.h".
70557         (initbuffer): Don't cast xmalloc return value to char*.
70558         (readline): Reword comment.
70559         Don't cast xrealloc return value to char*
70560         Return NULL, not 0.
70561
70562 2001-12-09  Jim Meyering  <meyering@lucent.com>
70563
70564         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
70565         about `signed and unsigned type in conditional expression'.
70566         * lib/posixtm.c (posix_time_parse): Likewise.
70567
70568         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
70569
70570         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
70571         to avoid a pedantic warning.
70572
70573         * lib/getstr.c: Don't include assert.h.
70574         (getstr): Remove warning-evoking assertions.
70575         Return -1 if offset parameter is out of bounds.
70576         Change the type of a local from int to size_t.
70577
70578         * lib/strftime.c (my_strftime_localtime_r): Include this function
70579         definition in the `#if ! HAVE_TM_GMTOFF' block.
70580
70581         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
70582         Include xalloc.h instead.
70583
70584 2001-12-02  Jim Meyering  <meyering@lucent.com>
70585
70586         * lib/tempname.c: Don't declare getenv, thus reverting the change of
70587         2001-11-18.  It's no longer necessary, now that stdlib.h is always
70588         included.
70589
70590         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
70591         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
70592
70593 2001-11-30  Akim Demaille  <akim@epita.fr>
70594
70595         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
70596         before being defined.
70597
70598 2001-11-27  Paul Eggert  <eggert@twinsun.com>
70599
70600         * lib/quotearg.h (quotearg_n, quotearg_n_style):
70601         First arg is int, not unsigned.
70602         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
70603         (SIZE_MAX, UINT_MAX): New macros.
70604         (quotearg_n_options): Abort if N is negative.
70605         Avoid overflow check on hosts where size_t is 64 bits and int
70606         is 32 bits, as overflow is impossible there.
70607         Fix off-by-one typo that caused unnecessary reallocation.
70608
70609 2001-11-27  Jim Meyering  <meyering@lucent.com>
70610
70611         * lib/tempname.c: Merge with version from libc.
70612         * lib/regex.c: Likewise.
70613
70614         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
70615         systems for which STDC_HEADERS is 0, it was not included, resulting in
70616         a warning about an integer-to-pointer conversion problem with getenv.
70617         Reported by Volker Borchert.
70618
70619 2001-11-26  Jim Meyering  <meyering@lucent.com>
70620
70621         * lib/gtod.h: Remove file.
70622         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
70623         * lib/gettimeofday.c: Don't include gtod.h.
70624         (GTOD_init): Remove function.
70625         (rpl_gettimeofday): Do its job here instead, rather than aborting.
70626         Suggestion from Volker Borchert.
70627
70628 2001-11-23  Jim Meyering  <meyering@lucent.com>
70629
70630         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
70631         it.
70632         * lib/hash.c (struct hash_table): Define it here instead.
70633
70634 2001-11-22  Jim Meyering  <meyering@lucent.com>
70635
70636         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
70637
70638 2001-11-20  Jim Meyering  <meyering@lucent.com>
70639
70640         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
70641         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
70642
70643 2001-11-19  Jim Meyering  <meyering@lucent.com>
70644
70645         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
70646         directory.  Use "conftestXXXXXX" as the template.
70647         Suggestion from Paul Eggert.
70648
70649         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
70650         immediately, so the test doesn't mistakenly hit the max-open-files
70651         limit.
70652
70653 2001-11-18  Paul Eggert  <eggert@twinsun.com>
70654
70655         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
70656         (TEMPORARIES): New macro.
70657         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
70658         removes an artificial limitation (e.g. HP-UX 10.20, where
70659         TMP_MAX is 17576).
70660
70661 2001-11-18  Jim Meyering  <meyering@lucent.com>
70662
70663         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
70664
70665 2001-11-18  Jim Meyering  <meyering@lucent.com>
70666
70667         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
70668         on SunOS 4.
70669
70670         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
70671         files will be created before anything else.
70672
70673 2001-11-17  Paul Eggert  <eggert@twinsun.com>
70674
70675         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
70676         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
70677
70678 2001-11-17  Jim Meyering  <meyering@lucent.com>
70679
70680         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
70681         Prompted by a report from Bob Proulx.
70682
70683         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
70684         Instead, require UTILS_FUNC_MKSTEMP.
70685
70686 2001-11-17  Jim Meyering  <meyering@lucent.com>
70687
70688         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
70689         Now, that's done as part of AC_FUNC_STRTOD.
70690
70691 2001-11-17  Jim Meyering  <meyering@lucent.com>
70692
70693         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
70694         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
70695         rather than group writable.  Patch by Juan F. Codagnone.
70696
70697         * lib/readtokens.c: Remove explicit declarations of xmalloc and
70698         xrealloc, Instead, include "xalloc.h".
70699
70700         * lib/mountlist.c: Include unlocked-io.h after all system headers.
70701         Remove explicit declarations of xmalloc, xrealloc,
70702         and xstrdup.  Instead, include "xalloc.h".
70703
70704         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
70705         unlocked-io.h.
70706         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
70707         Likewise.
70708         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
70709
70710         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
70711         Reported by Padraig Brady.
70712
70713         * lib/mkstemp.c: #undef mkstemp.
70714         Include config.h.
70715         (rpl_mkstemp): Rename from mkstemp.
70716         Protoize.
70717
70718 2001-11-16  Jim Meyering  <meyering@lucent.com>
70719
70720         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
70721         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
70722         determine the amount of total physical memory, use pstat_getstatic.
70723         HPUX-11 doesn't define _SC_PHYS_PAGES.
70724         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
70725         If sysconf couldn't be used to determine the amount of available
70726         physical memory, use both pstat_getstatic and pstat_getdynamic.
70727         Based on a patch from Bob Proulx.
70728
70729 2001-11-10  Jim Meyering  <meyering@lucent.com>
70730
70731         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
70732         (jm_PREREQ): Use it.
70733
70734 2001-11-09  Jim Meyering  <meyering@lucent.com>
70735
70736         * m4/jm-macros.m4: Require autoconf-2.52f.
70737         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
70738         Use these AC_-prefixed names, not the AM_-prefixed ones.
70739
70740         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
70741
70742 2001-11-05  Jim Meyering  <meyering@lucent.com>
70743
70744         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
70745
70746 2001-11-04  Jim Meyering  <meyering@lucent.com>
70747
70748         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
70749         $DEFS.
70750
70751 2001-11-03  Jim Meyering  <meyering@lucent.com>
70752
70753         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
70754         of AC_DEFUN.
70755
70756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
70757         know the name of the variable in the macro definition.
70758
70759 2001-11-03  Jim Meyering  <meyering@lucent.com>
70760
70761         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
70762         in argmatch_to_argument call.
70763
70764         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
70765         argument.
70766
70767         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
70768         e.g., a fault due to an attempt to free a NULL pointer.
70769
70770 2001-11-01  Jim Meyering  <meyering@lucent.com>
70771
70772         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
70773         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
70774
70775 2001-11-01  Jim Meyering  <meyering@lucent.com>
70776
70777         * lib/dirfd.c, lib/dirfd.h: New files.
70778         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
70779
70780         * lib/hash.c (hash_print) [TESTING]: Clean up.
70781
70782 2001-10-22  Paul Eggert  <eggert@twinsun.com>
70783
70784         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
70785         to avoid a warning if -Wall.
70786
70787 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
70788
70789         * README: New file
70790         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
70791         (per RMS's instructions, this is now the canonical source)
70792         * lgpl/, gpl/: New directories.
70793
70794 2001-10-21  Paul Eggert  <eggert@twinsun.com>
70795
70796         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
70797
70798 2001-10-21  Jim Meyering  <meyering@lucent.com>
70799
70800         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
70801         this code would end up calling gettext even in packages built
70802         with --disable-nls.
70803         * lib/getopt.c (_): Likewise.
70804         * lib/regex.c (_): Likewise.
70805
70806 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70807
70808         * m4/error.m4 (jm_PREREQ_ERROR):
70809         Do not invoke AC_CHECK_FUNCS with strerror_r, as
70810         AC_FUNC_STRERROR_R does that.
70811         Check for strerror declaration.
70812
70813         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
70814         are supposed to have them these days.
70815         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
70816         Merge changes from latest Autoconf CVS.
70817         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
70818         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
70819         POSIX decided to standardize on the int flavor of strerror_r.
70820
70821 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70822
70823         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
70824         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
70825         Use strerror_r that is only a macro, even if it is not a function.
70826         (strerror): Check for HAVE_DECL_STRERROR before declaring.
70827         (private_strerror): Use prototypes, not old-style function definition.
70828         (print_errno_message): New function.
70829         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
70830         char*-flavored one.
70831         (error_tail, error, error_at_line): Use it.
70832
70833 2001-10-11  Jim Meyering  <meyering@lucent.com>
70834
70835         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
70836         and quote_n (1, ... to avoid clobbering a buffer.
70837
70838 2001-10-05  Jim Meyering  <meyering@lucent.com>
70839
70840         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
70841         hash-pjw.h.
70842         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
70843         * lib/hash-pjw.h: New file.
70844
70845 2001-09-30  Jim Meyering  <meyering@lucent.com>
70846
70847         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
70848         `struct fsstat' has the `f_fstypename' member.
70849         Use that to define FS_TYPE, which is now used to make
70850         the getfsstat link test tighter.
70851
70852 2001-09-30  Jim Meyering  <meyering@lucent.com>
70853
70854         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
70855         Include <sys/ucred.h>, for Apple Darwin.
70856         Include sys/mount.h and sys/fs_types.h only if available.
70857         (FS_TYPE): Define.
70858         (read_filesystem_list): Use FS_TYPE.
70859
70860 2001-09-29  Paul Eggert  <eggert@twinsun.com>
70861
70862         * lib/exclude.c (excluded_filename): 0 -> false, since it's
70863         a boolean context.
70864
70865 2001-09-29  Jim Meyering  <meyering@lucent.com>
70866
70867         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70868         [one-argument getmntent function]): Include stdio.h before mntent.h.
70869         SunOS 4.1.x needs it for the declaration of `FILE'.
70870         Patch by Volker Borchert.
70871
70872         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70873         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
70874         sys/fs_types.h, and make the link-test for getfsstat guard #include
70875         directives with appropriate #if HAVE_*_H tests so that we can
70876         detect getfsstat on Apple Darwin1.3.7 systems.
70877         Reported by Nelson Beebe.
70878         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
70879
70880 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70881
70882         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70883         #defines strtoimax.  Also treat the other strto* functions
70884         like strtoimax.
70885
70886         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70887         Check for strtoul and strtoumax,
70888         as those declarations are made even in the signed case.
70889         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
70890         Likewise, for strtol and strtoimax.
70891
70892 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70893
70894         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70895         #defines strtoimax.  Also treat the other strto* functions
70896         like strtoimax.
70897
70898         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
70899         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
70900         (strtoimax, strtoumax): Do not declare if already defined as a macro.
70901
70902 2001-09-26  Jim Meyering  <meyering@lucent.com>
70903
70904         Most macros in unlocked-io.h had the wrong number of arguments.
70905         * lib/gen-uio: New script.
70906         (USE_UNLOCKED_IO): Define to 1 if not already defined.
70907         * lib/unlocked-io.hin: Remove file.
70908         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
70909         rather than trying to embed it here.
70910         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
70911         Reported by Padraig Brady.
70912
70913 2001-09-25  Volker Borchert  <bt@teknon.de>
70914
70915         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
70916         `result'.
70917
70918 2001-09-24  Jim Meyering  <meyering@lucent.com>
70919
70920         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
70921
70922 2001-09-23  Jim Meyering  <meyering@lucent.com>
70923
70924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
70925         instead of the mere test for existence of mntent.h.  The latter
70926         would get a false-positive on AIX 3.4 systems.
70927         In the outer getmntent if-block, don't die if neither of the getmntent
70928         tests succeeds.  Instead, just fall through and continue with the
70929         remaining tests.
70930
70931 2001-09-23  Jim Meyering  <meyering@lucent.com>
70932
70933         * lib/mountlist.c: Remove useless parentheses in #if directives.
70934         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
70935         the deprecated MOUNTED symbol is no longer defined in mntent.h.
70936
70937 2001-09-22  Jim Meyering  <meyering@lucent.com>
70938
70939         * m4/gettext.m4: New file.  From gettext.
70940         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
70941         * m4/progtest.m4: Likewise
70942         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
70943         * m4/glibc21.m4: Likewise.
70944
70945         * m4/libintl.m4: Remove.  No longer used.
70946
70947 2001-09-22  Jim Meyering  <meyering@lucent.com>
70948
70949         * lib/localcharset.c: Update from latest gettext.
70950         * lib/config.charset: Likewise.
70951
70952 2001-09-20  Jim Meyering  <meyering@lucent.com>
70953
70954         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
70955         strtoimax.
70956         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
70957         strtoumax.
70958
70959 2001-09-20  Jim Meyering  <meyering@lucent.com>
70960
70961         * lib/xstrtol.c (strtoimax): Guard declaration with
70962         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
70963         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
70964         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
70965         (strtoumax): Likewise, for completeness (it wasn't necessary).
70966
70967 2001-09-17  Paul Eggert  <eggert@twinsun.com>
70968
70969         * lib/strtoimax.c (HAVE_LONG_LONG):
70970         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
70971         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
70972         to work around bug in IBM C compiler.
70973
70974 2001-09-17  Jim Meyering  <meyering@lucent.com>
70975
70976         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
70977         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
70978         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
70979         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
70980         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
70981         whenever the right hand side need not be expanded by the shell.
70982
70983 2001-09-16  Paul Eggert  <eggert@twinsun.com>
70984
70985         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
70986         library.  It's not correct, as some older glibcs are buggy.
70987         fnmatch wasn't fixed until glibc 2.2.
70988
70989         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
70990         special shell magic here.
70991
70992 2001-09-16  Jim Meyering  <meyering@lucent.com>
70993
70994         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
70995         * m4/jm-macros.m4: Require it.
70996
70997 2001-09-16  Jim Meyering  <meyering@lucent.com>
70998
70999         * lib/mkdir.c: New file.
71000
71001 2001-09-15  Jim Meyering  <meyering@lucent.com>
71002
71003         * m4/jm-macros.m4: Check for help2man.
71004
71005 2001-09-11  Jim Meyering  <meyering@lucent.com>
71006
71007         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71008         The body, by Paul Eggert, was moved here from configure.in.
71009         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71010
71011 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71012
71013         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71014         (jm_PREREQ): Use it.
71015
71016 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71017
71018         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71019         Use ssize_t, not int, to store result of readlink.
71020         Check for ssize_t overflow as well as size_t overflow,
71021         as POSIX says the result of readlink is implementation-defined
71022         when ssize_t overflows.
71023         Remove unnecessary cast to char*.
71024         Use free+malloc instead of realloc, as the storage doesn't need
71025         to be preserved and it's clearer and can be more efficient that way.
71026         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71027         * lib/xreadlink.h (xreadlink): Update prototype.
71028
71029 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71030
71031         * lib/xgetcwd.c: Revert some of the previous change; intead,
71032         fix the HAVE_GETCWD_NULL code to behave more like the
71033         !HAVE_GETCWD_NULL code used to.
71034
71035         Include "xalloc.h".
71036         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71037         invoke xalloc_die.
71038
71039 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71040
71041         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71042         sys/param.h, as pathmax.h includes them.
71043
71044 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71045
71046         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71047         (jm_PREREQ_XGETCWD): New macro.
71048
71049         * m4/getcwd.m4: New file.
71050
71051 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71052
71053         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71054         like the HAVE_GETCWD_NULL code.
71055         Include pathmax.h if not HAVE_GETCWD.
71056         Do not include xalloc.h.
71057         (INITIAL_BUFFER_SIZE): New symbol.
71058         Do not use xmalloc / xrealloc, since the caller is responsible for
71059         handling errors.  Preserve errno around `free' during failure.
71060         Do not overrun buffer when using getwd.
71061
71062 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71063
71064         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71065         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71066         getcwd (NULL, 0).
71067
71068 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71069
71070         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71071         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71072         spotted by Jim Meyering.
71073
71074 2001-09-03  Jim Meyering  <meyering@lucent.com>
71075
71076         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71077         failure.
71078
71079 2001-09-02  Jim Meyering  <meyering@lucent.com>
71080
71081         * lib/error.c: Update from GNU libc.
71082
71083 2001-09-01  Jim Meyering  <meyering@lucent.com>
71084
71085         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71086         Used by df.
71087
71088 2001-09-01  Jim Meyering  <meyering@lucent.com>
71089
71090         * lib/xreadlink.c: New file.
71091         * lib/xreadlink.h: New file.
71092         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71093         xreadlink.h.
71094
71095         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71096         doesn't conflict with sparc Solaris 7's definition in
71097         /usr/include/sys/int_types.h.
71098
71099         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71100         files.
71101         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71102         and strncasecmp as r-values.  Unixware didn't have declarations.
71103
71104 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71105
71106         * lib/xstrtol.h: Add copyright notice.
71107         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71108         LONGINT_INVALID_SUFFIX_CHAR.
71109
71110 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71111
71112         * lib/xstrtol.c (strtoimax): New decl.
71113
71114 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71115
71116         * lib/xgetcwd.c: Don't include pathmax.h.
71117         Include stdlib.h and unistd.h if available.
71118         Include xalloc.h.
71119         (xmalloc, xstrdup, free): Remove decls.
71120         (xgetcwd): Don't assume sizes fit in unsigned.
71121         Check for overflow when computing sizes.
71122         Simplify reallocation code.
71123
71124 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71125
71126         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71127         a directory's st_size can have an arbitrary value, so the old
71128         usage could waste an arbitrary amount of memory.  All uses
71129         changed.
71130         * lib/savedir.h: Update prototype.
71131
71132 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71133
71134         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71135
71136         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71137         old strtoimax.c.
71138
71139         Also, make the following further changes to make this file's
71140         configuration more similar to that of strtol.c:
71141         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71142         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71143         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71144         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71145         changed to signed values.
71146
71147         And make the following changes as well:
71148         Fix copyright notice, as 1999 was missing.
71149         (verify): New macro.
71150         (strtoimax): Check sizes at compile-time, not run-time.
71151         Prefer strtol to strtoll if both work.
71152         (main): Remove; it was not that useful and was a pain to maintain.
71153
71154         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71155
71156 2001-08-31  Jim Meyering  <meyering@lucent.com>
71157
71158         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71159         Use an initial, malloc'd, buffer of length 128 rather than
71160         a statically allocated one of length 1024.
71161
71162 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71163
71164         Simplify code, partly by assuming autoconf 2.52 semantics.
71165
71166         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71167
71168         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71169         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71170         All uses removed.
71171         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71172         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71173         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71174         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71175         jm_AC_HEADER_INTTYPES_H.
71176         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71177
71178         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71179
71180         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71181         Quote first arg of AC_DEFUN.
71182         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71183         since they are needed to parse the include file even if we need
71184         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71185         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71186         but with opposite signedness.
71187
71188 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71189
71190         Merge 'exclude' changes from tar 1.13.22.
71191         This fixes one or two unlikely storage allocation overflow bugs,
71192         but doesn't change user-visible behavior otherwise.
71193
71194 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71195
71196         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71197         (jm_PREREQ_EXCLUDE): New macro.
71198
71199 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71200
71201         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71202         tm to be declared.
71203
71204 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71205
71206         * lib/hash.c: Remove '2001' from copyright notice.
71207
71208 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71209
71210         * lib/full-write.h: New file.
71211         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71212         * lib/full-write.c: Correct credits, as cccp.c no longer
71213         exists and anyway it was so heavily changed from the old cccp
71214         code as to be unrecognizable.  Include full-write.h.
71215         (full_write) Return size_t, with short writes meaning failure.
71216         All callers changed.  This fixes a bug with large buffers
71217         on 64-bit hosts.
71218         * lib/utime.c: Include full-write.h.
71219
71220 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71221
71222         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71223         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71224         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71225         Include if available.
71226         (<xalloc.h>): Include
71227         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71228         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71229         collide with FNM macros.
71230         (struct patopts): New struct.
71231         (struct exclude): Use it, as exclude patterns now come with options.
71232         (new_exclude): Support above changes.
71233         (new_exclude, add_exclude_file):
71234         Initial size must now be a power of two to simplify overflow checking.
71235         (free_exclude, fnmatch_no_wildcards): New function.
71236         (excluded_filename): No longer requires options arg, as the options
71237         are determined by add_exclude.  Now returns bool, not int.
71238         (excluded_filename, add_exclude):
71239         Add support for the fancy new exclusion options.
71240         (add_exclude, add_exclude_file): Now takes int options arg.
71241         Check for arithmetic overflow when computing sizes.
71242         (add_exclude_file): xrealloc might modify errno, so don't
71243         realloc until after errno might be used.
71244
71245         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71246         New macros.
71247         (free_exclude): New decl.
71248         (add_exclude, add_exclude_file): Now takes int options arg.
71249         (excluded_filename): No longer requires options arg, as the options
71250         are determined by add_exclude.  Now returns bool, not int.
71251
71252 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71253
71254         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71255
71256 2001-08-27  Jim Meyering  <meyering@lucent.com>
71257
71258         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71259
71260         * lib/version-etc.c (N_): Remove definition.
71261         Revert most of last change.
71262         Instead, simply don't mark the `Copyright...' string for translation.
71263         Based on advice from Paul Eggert.
71264
71265         * lib/strtoxmax.c: Tweak comment.
71266
71267 2001-08-26  Jim Meyering  <meyering@lucent.com>
71268
71269         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71270
71271         * m4/xstrtoimax.m4: New file.
71272         * m4/xstrtoumax.m4: Add comments explaining why we
71273         AC_REPLACE_FUNCS(strtol).
71274
71275 2001-08-26  Jim Meyering  <meyering@lucent.com>
71276
71277         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71278         of copyright with `%s' so translators don't get an untranslated
71279         message in 2002.
71280         (COPYRIGHT_YEAR): Define.
71281         (version_etc): Use fprintf rather than fputs.
71282         Suggestion from Ulrich Drepper.
71283
71284         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71285
71286         * lib/strtoll.c: New file, from GNU libc.
71287         * lib/xstrtoimax.c: New file.
71288
71289         * lib/xstrtol.h: Add xstrtoimax.
71290         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71291         * lib/strtoimax.c: New file.  Likewise, but first define
71292         STRTOUXMAX_SIGNED.
71293
71294         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71295         ...
71296         * lib/strtoxmax.c: ... then renamed to this.
71297
71298 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71299
71300         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71301         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71302         (jm_AC_TYPE_INTMAX_T): New macro.
71303         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71304
71305         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71306
71307         * m4/longlong.m4: Renamed from ulonglong.m4.
71308         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71309         * m4/uintmax_t.m4: Removed.
71310
71311 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71312
71313         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71314         Port to Solaris 8, where 'sed' requires a space after the 'r'
71315         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71316         Redirect output to $tmp just once.
71317
71318 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71319
71320         * lib/addext.c (<errno.h>): Include.
71321         (errno): Declare if not defined.
71322         (addext): Work correctly when pathconf returns -1 and leaves
71323         errno alone because there is no limit.  Also, work even if
71324         pathconf returns a value greater than SIZE_MAX.
71325
71326 2001-08-12  Jim Meyering  <meyering@lucent.com>
71327
71328         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71329         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71330         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71331         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71332         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71333         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71334         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71335         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71336         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71337         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71338         utime.m4, utimes.m4, xstrtoumax.m4:
71339         Quote the first argument in each use of AC_DEFUN.
71340
71341 2001-08-12  Jim Meyering  <meyering@lucent.com>
71342
71343         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71344         Simply `return getcwd (NULL, 0);'.
71345         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71346         Use 1300 as initial value for length, not PATH_MAX.
71347
71348         * lib/pathmax.h: Clean up cpp syntax.
71349
71350 2001-08-12  Jim Meyering  <meyering@lucent.com>
71351
71352         * lib/gettimeofday.c: New file.
71353         * lib/gtod.h: New file.
71354         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71355
71356 2001-08-05  Jim Meyering  <meyering@lucent.com>
71357
71358         * m4/jm-macros.m4: Require autoconf-2.52.
71359
71360 2001-08-04  Jim Meyering  <meyering@lucent.com>
71361
71362         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71363         stmt, to get in sync with glibc.
71364
71365 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71366
71367         The following changes are from gettext 0.10.39 as maintained by
71368         Bruno Haible.
71369
71370         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71371         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71372         with inverted sense.  All uses changed.
71373
71374         * lib/mbswidth.c: Don't include <limits.h>.
71375         Include <stdlib.h> and <string.h> unconditionally.
71376         (iswcntrl, mbsinit, ISCNTRL): New macros.
71377         (mbsnwidth): Use K&R style function declarations.
71378         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71379         can optimize it when MB_CUR_MAX == 1.
71380         The width of control characters is zero, not 1.
71381
71382 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71383
71384         The following changes are from gettext 0.10.39 as maintained by
71385         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71386
71387         * m4/codeset.m4: Upgrade to serial AM1.
71388         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71389         all uses changed.  Quote first arg of AC_DEFUN.
71390         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71391
71392         * m4/iconv.m4: Upgrade to serial AM2.
71393         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71394         Add --with-libconv-prefix.
71395         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71396         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71397         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71398         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71399         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71400
71401         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71402         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71403         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71404         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71405         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71406         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71407         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71408         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71409         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71410
71411         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71412         string.h any more.
71413
71414         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71415         not the default value.
71416
71417         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71418         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71419         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71420         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71421         Also check for iswcntrl, used for wcwidth fallback.
71422         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71423         to Autoconf 2.13.
71424
71425 2001-08-03  Jim Meyering  <meyering@lucent.com>
71426
71427         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71428         as it was in the original.  Reported by Paul Eggert.
71429
71430 2001-07-16  Jim Meyering  <meyering@lucent.com>
71431
71432         * m4/gettimeofday.m4: New file.
71433         Prompted by a report from Bernhard Baehr.
71434
71435 2001-07-15  Jim Meyering  <meyering@lucent.com>
71436
71437         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71438         stuff. Now it's in ../Makefile.cfg.
71439
71440 2001-07-15  Jim Meyering  <meyering@lucent.com>
71441
71442         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71443         (BUILT_SOURCES): Add unlocked-io.h.
71444         (io_functions): Define.
71445         (unlocked-io.h): New rule.
71446         (DISTCLEANFILES): Add unlocked-io.h.
71447         (all-local): Depend on unlocked-io.h, to ensure it is created.
71448
71449         * lib/unlocked-io.hin: New file
71450
71451         * lib/regex.c: Update from glibc.
71452
71453 2001-07-05  Jim Meyering  <meyering@lucent.com>
71454
71455         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71456         recommendation.
71457         (libfetish_a_SOURCES): Put all .h files here instead.
71458         Remove a thus-exposed (better checks in automake) duplicate and
71459         two unnecessary .h files.
71460
71461 2001-07-04  Jim Meyering  <meyering@lucent.com>
71462
71463         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71464         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71465         distcheck failure.
71466
71467 2001-07-02  Jim Meyering  <meyering@lucent.com>
71468
71469         The following changes were prompted by suggestions from Bruno Haible.
71470
71471         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71472         is now generated.
71473         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71474         definition of EXTRA_DIST.
71475         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71476         ensure that the generated file is created/updated whenever the list
71477         of $(unlocked_functions) is changed.
71478         (jm-glibc-io.m4): New rule.
71479         (unlocked-io.h): New rule -- currently unused.
71480
71481 2001-06-24  Jim Meyering  <meyering@lucent.com>
71482
71483         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
71484         unmatched right bracket, rather than kludging it with an extra,
71485         falsely-matching quote in a comment.  Patch by Akim Demaille.
71486
71487 2001-06-11  Jim Meyering  <meyering@lucent.com>
71488
71489         * lib/regex.c: Update from GNU libc.
71490
71491 2001-05-27  Jim Meyering  <meyering@lucent.com>
71492
71493         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
71494         Check for ut_type in struct utmp.
71495
71496 2001-05-27  Jim Meyering  <meyering@lucent.com>
71497
71498         * lib/readutmp.h (UT_TYPE): Define.
71499
71500 2001-05-24  Jim Meyering  <meyering@lucent.com>
71501
71502         * lib/argmatch.c: Include "quote.h".
71503         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71504         quote function.  Reported by Göran Uddeborg.
71505
71506 2001-05-22  Jim Meyering  <meyering@lucent.com>
71507
71508         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71509         now that we use the package-supplied version unconditionally.
71510         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71511
71512 2001-05-21  Jim Meyering  <meyering@lucent.com>
71513
71514         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71515         shell syntax errors.
71516
71517 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71518
71519         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71520
71521 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71522
71523         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71524         Don't bother to check library strftime, since
71525         we'll be using our own my_strftime function anyway.
71526         Define my_strftime instead of strftime.
71527
71528 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71529
71530         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71531         which is not yet declared.
71532
71533 2001-05-15  Jim Meyering  <meyering@lucent.com>
71534
71535         * m4/regex.m4: Use proper quoting so brackets appear in the test
71536         program.
71537         Reported by, and with help from, Bruno Haible.
71538
71539 2001-05-13  Jim Meyering  <meyering@lucent.com>
71540
71541         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71542         undefined.
71543
71544 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71545
71546         dirname code cleanup.  base_name now behaves more compatibly
71547         with POSIX basename when given file names that have trailing
71548         slashes, and similarly for dir_name.  Add new primitives
71549         base_len and dir_len.  Put the directory-name-related decls
71550         into dirname.h.
71551
71552         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
71553         * lib/backupfile.c (base_name): Likewise.
71554         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
71555         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
71556         * lib/makepath.c (strip_trailing_slashes): Likewise.
71557         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
71558         ISSLASH): Likewise.
71559         * lib/rename.c (strip_trailing_slashes): Likewise.
71560         * lib/same.c (base_name): Likewise.
71561         * lib/stripslash.c (ISSLASH): Likewise.
71562
71563         * lib/addext.c: Include <dirname.h> after size_t is defined.
71564         * lib/backupfile.c: Likewise.
71565
71566         * lib/addext.c (addext): Use base_len to trim redundant
71567         trailing slashes instead of doing it ourselves.
71568         But do not trim the last slash if it is not redundant.
71569
71570         * lib/backupfile.c (find_backup_file_name,
71571         max_backup_version): Use base_len instead of rolling it ourselves.
71572         Handle the case of "" and (on DOS) "C:" correctly.
71573
71574         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
71575         needed. Include <string.h>, <dirname.h>.
71576         (base_name): Allow file names ending in slashes, other than names
71577         that are all slashes.  In this case, return the basename followed
71578         by the slashes.  This is more general, and can be used in places
71579         where the original base_name purposely had an assertion failure.
71580         (base_len): New function.
71581
71582         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
71583         Do not include <assert.h>; no longer needed.
71584         Include xalloc.h.
71585         (memrchr): Remove decl.
71586         (dir_name_r): Remove.
71587         (dir_len): Renamed from dirlen.  All callers changed.
71588         Rewrite in terms of base_name, for simplicity and consistency.
71589         (dir_name): Never return NULL.  All callers changed.
71590         Do not include <stdlib.h> in test program; no longer needed.
71591         return 0; is fine for test program.
71592
71593         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
71594         New macros.
71595         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
71596
71597         * lib/path-concat.c (path_concat): Use base_len to compute
71598         base length, not strlen; this means we cannot rely on memcpy
71599         to null-terminate.
71600
71601         * lib/same.c (STREQ): Remove.
71602         (same_name): Handle the case where the basename ends in trailing '/'.
71603
71604         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
71605         a slash was stripped.  Do not strip the last slash after a
71606         file system prefix.
71607
71608 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71609
71610         * lib/Makefile.am (libfetish_a_SOURCES):
71611         Add strftime.c, since we now compile it on all hosts.
71612
71613         * lib/strftime.c (my_strftime):
71614         Define to nstrftime if emacs, but only if my_strftime is not defined.
71615         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
71616         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
71617         Add one more extra argument: a nanoseconds value.
71618         All uses changed.
71619         (ns): New macro.
71620         (my_strftime function): Add %N format.
71621         (emacs_strftimeu): Renamed from emacs_strftime,
71622         with extra ut argument.
71623
71624 2001-05-09  Paul Eggert  <eggert@twinsun.com>
71625
71626         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
71627
71628 2001-04-21  Jim Meyering  <meyering@lucent.com>
71629
71630         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
71631         doesn't interfere.
71632
71633 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71634
71635         * m4/ftruncate.m4: Check for chsize.
71636         Link with ftruncate.o unconditionally if ftruncate is missing.
71637         This was required when cross-compiling to i586-mingw32msvc.
71638
71639 2001-04-08  Jim Meyering  <meyering@lucent.com>
71640
71641         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
71642         recomputed; that's necessary when the offset spans a DST transition.
71643         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
71644
71645 2001-04-02  Jim Meyering  <meyering@lucent.com>
71646
71647         * lib/regex.h, regex.c: Update from GNU libc.
71648
71649 2001-03-24  Jim Meyering  <meyering@lucent.com>
71650
71651         * m4/jm-macros.m4: Require autoconf-2.49d.
71652
71653 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
71654
71655         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
71656
71657 2001-03-19  Paul Eggert  <eggert@twinsun.com>
71658
71659         * lib/version-etc.c (version_etc_copyright): Update to 2001.
71660
71661 2001-03-17  Jim Meyering  <meyering@lucent.com>
71662
71663         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
71664         now that the version in autoconf is equivalent.
71665         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
71666
71667         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
71668         Suggestion from Akim Demaille.
71669
71670         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
71671         (jm_PREREQ_TEMPNAME): New function.
71672
71673 2001-03-16  Paul Eggert  <eggert@twinsun.com>
71674
71675         * lib/tempname.c (uint64_t): Define to uintmax_t if
71676         not defined, and if UINT64_MAX is not defined.
71677         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
71678         Reported by John David Anglin.
71679
71680 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
71681
71682         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
71683         resolve alias if codeset is empty.
71684         * lib/config.charset (BeOS): Use wildcard syntax.
71685
71686 2001-03-13  Jim Meyering  <meyering@lucent.com>
71687
71688         * lib/path-concat.c (path_concat)
71689         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
71690         concatenating e.g., `C:' and `foo'.
71691         From Bruno Haible.
71692
71693 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71694
71695         * lib/localcharset.c (locale_charset): Don't use
71696         setlocale(LC_CTYPE,NULL). Don't return NULL.
71697         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
71698
71699 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71700
71701         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
71702         support for DOS/DJGPP.
71703
71704 2001-03-01  Paul Eggert  <eggert@twinsun.com>
71705
71706         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
71707         lacks mkstemp.  Compile our own tempname.c if we compile our own
71708         mkstemp.c, as mkstemp relies on tempname.
71709
71710 2001-03-01  Jim Meyering  <meyering@lucent.com>
71711
71712         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
71713         AH_VERBATIM really does output its argument verbatim.
71714
71715 2001-02-28  Paul Eggert  <eggert@twinsun.com>
71716
71717         * lib/Makefile.am (libfetish_a_SOURCES):
71718         Add dup-safer.c, fopen-safer.c.
71719         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
71720
71721         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
71722         * lib/unistd-safer.h: New files.
71723
71724 2001-02-25  Paul Eggert  <eggert@twinsun.com>
71725
71726         The mkstemp replacement is taken from glibc 2.2.2, with some
71727         portability fixes for use outside glibc, as follows:
71728
71729         * lib/tempname.c (struct_stat64): New macro.
71730         (direxists, __gen_tempname): Use it.
71731         This avoids a portability problem with Solaris 8.
71732
71733         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
71734         (<stddef.h>, <stdint.h>, <string.h>):
71735         Include only if STDC_HEADERS || _LIBC.
71736         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
71737         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
71738         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
71739         (__set_errno): Define this macro if <errno.h> doesn't.
71740         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
71741         Define these macros if <stdio.h> doesn't.
71742         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
71743         Define these macros if <sys/stat.h>
71744         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
71745         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
71746         __xstat64): Define if not _LIBC.
71747         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
71748         (__gen_tempname): Invoke gettimeofday only if
71749         HAVE_GETTIMEOFDAY || _LIBC;
71750         otherwise, fall back on plain "time".
71751         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
71752
71753         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
71754
71755         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
71756
71757 2001-02-18  Paul Eggert  <eggert@twinsun.com>
71758
71759         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
71760
71761 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71762
71763         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
71764         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
71765         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
71766         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71767
71768 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71769
71770         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
71771         Remove workaround macros for hosts that have mbrtowc but not
71772         mbstate_t, as we now insist on proper declarations for both
71773         before using mbrtowc.
71774
71775 2001-02-17  Jim Meyering  <meyering@lucent.com>
71776
71777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
71778         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
71779         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
71780         UnixWare 7.1.1.
71781
71782         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
71783         rather than AC_CACHE_VAL.
71784
71785 2001-02-17  Jim Meyering  <meyering@lucent.com>
71786
71787         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
71788         around included file name.
71789
71790         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
71791
71792         * lib/strftime.c: Update from GNU libc (the only changes were to
71793         comments).
71794
71795 2001-02-17  Jim Meyering  <meyering@lucent.com>
71796
71797         * lib/regex.c: Update from libc.
71798
71799 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
71800
71801         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
71802         clash.
71803
71804 2001-02-16  Paul Eggert  <eggert@twinsun.com>
71805
71806         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
71807         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
71808         Reported by Mark Hounschell via Paul Eggert.
71809
71810 2001-02-07  Jim Meyering  <meyering@lucent.com>
71811
71812         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
71813
71814 2001-02-05  Jim Meyering  <meyering@lucent.com>
71815
71816         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
71817         it includes the patch required for `large file' support with at least
71818         HP-UX's 10.20 /bin/cc.
71819
71820 2001-02-03  Jim Meyering  <meyering@lucent.com>
71821
71822         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
71823         AS_IF, now that it works once again (mysteriously).
71824         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71825
71826 2001-01-30  Jim Meyering  <meyering@lucent.com>
71827
71828         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
71829         * m4/chown.m4: Rename conftestchown to conftest.chown.
71830         * m4/rename.m4: s/conftestdir/conftest.d1/ and
71831         s/conftestdir2/conftest.d2/.
71832         * m4/utimes.m4: s/conftestdata/conftest.data/
71833         Inspired by Pavel Roskin's change in autoconf.
71834
71835 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
71836
71837         * lib/config.charset: Update for FreeBSD 4.2.
71838
71839 2001-01-27  Jim Meyering  <meyering@lucent.com>
71840
71841         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
71842         a use of AS_IF.
71843         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71844
71845 2001-01-26  Jim Meyering  <meyering@lucent.com>
71846
71847         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
71848         quotearg.c includes it.
71849
71850 2001-01-26  Jim Meyering  <meyering@lucent.com>
71851
71852         * lib/quotearg.c: Include stddef.h.
71853         * lib/quote.c: Include stddef.h.
71854         Reported by Axel Kittenberger.
71855
71856         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
71857         line in double quotes so that it evokes a better diagnostic.
71858         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
71859         Reported by Axel Kittenberger.
71860
71861 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
71862
71863         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
71864         as if it was a `charset'.
71865
71866 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71867
71868         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
71869         has const.
71870
71871 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71872
71873         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
71874         to avoid a warning.  Add back 'const' to inptr.
71875
71876 2001-01-20  Jim Meyering  <meyering@lucent.com>
71877
71878         Be sure that headers are checked before used in code compiled
71879         for the type checks.
71880         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
71881         In place of that, invoke jm_CHECK_ALL_TYPES.
71882         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
71883         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
71884         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
71885         The check for ssize_t was mistakenly run before the test for unistd.h.
71886
71887         The configure-time check for stdbool.h was missing.
71888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
71889         (jm_PREREQ_HASH): New function.
71890
71891 2001-01-17  Jim Meyering  <meyering@lucent.com>
71892
71893         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
71894         for autoconf-2.49c.
71895         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
71896
71897 2001-01-16  Jim Meyering  <meyering@lucent.com>
71898
71899         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
71900         From Bruno Haible.
71901
71902 2001-01-14  Jim Meyering  <meyering@lucent.com>
71903
71904         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
71905         foo and bar.  Create conftestdir/ in the script, not in the C code.
71906         Remove directories in the script, not in the C code.
71907         Remove conftestdir{,2} before trying to create the directory.
71908         Make the entire configure script fail if the mkdir fails.
71909
71910 2001-01-14  Jim Meyering  <meyering@lucent.com>
71911
71912         * lib/rename.c: New file.  From Volker Borchert.
71913         Include stdlib.h, string.h or strings.h, and xalloc.h.
71914         Use strip_trailing_slashes rather than open-coding it.
71915
71916 2001-01-03  Paul Eggert  <eggert@twinsun.com>
71917
71918         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
71919
71920 2001-01-03  Jim Meyering  <meyering@lucent.com>
71921
71922         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
71923         of local `inptr' to avoid warning with some system declarations of
71924         iconv.
71925
71926 2001-01-02  Volker Borchert  <bt@teknon.de>
71927
71928         * m4/rename.m4: New file.
71929         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
71930
71931 2001-01-01  Jim Meyering  <meyering@lucent.com>
71932
71933         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
71934         even on systems with utmpx.h.  It's necessary for the declaration of
71935         utmp's ut_user member.  Reported by Andreas Jaeger.
71936
71937         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
71938         available. They are required for the declarations of getgrgid and
71939         getpwuid resp.
71940         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
71941         Reported by Andreas Jaeger.
71942
71943 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
71944
71945         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
71946         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
71947         so `make install' also works in VPATH builds.
71948
71949 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
71950
71951         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
71952         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
71953         can be used in subdirectories.
71954
71955 2000-12-29  Paul Eggert  <eggert@twinsun.com>
71956
71957         * lib/modechange.c: Do not assume that mode_t uses the
71958         traditional octal encoding.  E.g. "chmod 1 FOO" should set
71959         the other-execute bit of FOO even if S_IXOTH != 1.
71960
71961         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
71962         WOTH, XOTH, ALLM): New macros.
71963         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
71964          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
71965         Use them.
71966         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
71967         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
71968         (mode_compile):
71969         No need to use uintmax_t; unsigned long is long enough.
71970         Don't bother to get suffix since we don't use it.
71971
71972 2000-12-26  Jim Meyering  <meyering@lucent.com>
71973
71974         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
71975         better with autoheader.
71976
71977 2000-12-24  Jim Meyering  <meyering@lucent.com>
71978
71979         * lib/hash.c (is_prime): Return explicit boolean values.
71980         (hash_get_first): Return NULL to appease Irix5.6's 89.
71981         Reported by Nelson Beebe.
71982
71983 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
71984
71985         * lib/localcharset.c (locale_charset): Add support for Win32.
71986
71987 2000-12-18  Paul Eggert  <eggert@twinsun.com>
71988
71989         * lib/physmem.h, lib/physmem.c: New files.
71990
71991         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
71992         (noinst_HEADERS): Add physmem.h.
71993
71994         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
71995         't' for compatibility with Solaris 8 sort.
71996
71997 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
71998
71999         * lib/config.charset: Add support for BeOS.
72000
72001 2000-12-17  Jim Meyering  <meyering@lucent.com>
72002
72003         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72004         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72005
72006 2000-12-16  Jim Meyering  <meyering@lucent.com>
72007
72008         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72009         N and M) would have treated it like `chown N:N FILE'.
72010
72011         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72012
72013 2000-12-16  Jim Meyering  <meyering@lucent.com>
72014
72015         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72016         SHELLS_FILE to a file name that's useful on djgpp systems.
72017         Include stdlib.h.
72018         (ADDITIONAL_DEFAULT_SHELLS): Define.
72019         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72020         Based mostly on a patch from Prashant TR.
72021
72022 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72023
72024         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72025         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72026         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72027
72028 2000-12-08  Andreas Schwab  <schwab@suse.de>
72029
72030         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72031         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72032
72033 2000-12-07  Jim Meyering  <meyering@lucent.com>
72034
72035         * lib/stripslash.c (ISSLASH): Define.
72036         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72037         `/'.
72038         From Prashant TR.
72039
72040         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72041         (dir_name_r): Declare this function as static.
72042         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72043         manifest itself on a name containing a mix of slashes and
72044         backslashes.
72045         Make this function work with names starting with a DOS-style
72046         drive letter and colon prefix.
72047         (dir_name): Append `.' if necessary.
72048         Based mostly on patches from Prashant TR and Eli Zaretskii.
72049
72050         * lib/dirname.h (dir_name_r): Remove prototype.
72051
72052 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72053
72054         * m4/off_t-format.m4: Remove this file.
72055         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72056
72057 2000-12-06  Jim Meyering  <meyering@lucent.com>
72058
72059         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72060         replacement strtoull, we may well need the replacement strtoul, too.
72061         Check for declarations of strtoul and strtoull.
72062         Check for strtol.  Mainly as a cue to cause automake to include
72063         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72064         Check for limits.h -- strtol.c needs it.
72065
72066 2000-12-05  Jim Meyering  <meyering@lucent.com>
72067
72068         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72069
72070 2000-12-04  Jim Meyering  <meyering@lucent.com>
72071
72072         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72073         Also include memory.h, stdlib.h, unistd.h if appropriate.
72074         Reported by Andreas Jaeger (conflicting declaration of malloc).
72075
72076 2000-12-02  Jim Meyering  <meyering@lucent.com>
72077
72078         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72079         * m4/jm-macros.m4 (jm_MACROS): require it.
72080
72081 2000-12-02  Jim Meyering  <meyering@lucent.com>
72082
72083         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72084
72085 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72086
72087         * lib/memrchr.c: Include <config.h> before any system include file.
72088
72089 2000-11-30  Jim Meyering  <meyering@lucent.com>
72090
72091         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72092
72093 2000-11-30  Jim Meyering  <meyering@lucent.com>
72094
72095         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72096
72097 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72098
72099         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72100
72101 2000-11-26  Jim Meyering  <meyering@lucent.com>
72102
72103         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72104
72105 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72106
72107         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72108         size of (size_t) -1; it's not portable.
72109
72110 2000-11-17  Jim Meyering  <meyering@lucent.com>
72111
72112         * lib/strstr.c: Update from GNU libc.
72113
72114 2000-11-17  Akim Demaille  <akim@epita.fr>
72115
72116         * lib/obstack.h: Formatting changes.
72117         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72118         prevent type checking.
72119         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72120         cast the value to (void *): assigning a `foo *' to a `void *'
72121         variable is valid.
72122         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72123
72124 2000-11-16  Jim Meyering  <meyering@lucent.com>
72125
72126         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72127
72128 2000-11-11  Jim Meyering  <meyering@lucent.com>
72129
72130         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72131
72132 2000-11-10  Jim Meyering  <meyering@lucent.com>
72133
72134         * lib/obstack.h: Update from GNU libc.
72135         * lib/obstack.c: Likewise.
72136
72137 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72138
72139         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72140
72141 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72142
72143         * lib/getusershell.c (setusershell): Use rewind rather than
72144         fseek/fseeko, to avoid configuration hassles with fseeko.
72145         Don't bother opening SHELLS_FILE if shellstream is NULL;
72146         it's not necessary.
72147
72148 2000-11-05  Jim Meyering  <meyering@lucent.com>
72149
72150         * lib/makepath.h (make_dir): Declare.
72151         * lib/makepath.c (make_dir): Remove `static' attribute.
72152         Tweak a comment.
72153
72154 2000-11-04  Jim Meyering  <meyering@lucent.com>
72155
72156         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72157
72158 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72159
72160         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72161         last one in a bucket, advance to the next bucket.
72162
72163 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72164
72165         * lib/fnmatch.c: Do not comment out all the code if we are using
72166         the GNU C library, because in some cases we are replacing buggy
72167         code in the GNU C library itself.
72168
72169 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72170
72171         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72172         (regex_compile): Catch bogus \(\1\).
72173
72174 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72175
72176         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72177         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72178         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72179
72180 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72181
72182         * lib/error.h, getline.h, modechange.h:
72183         Remove "2000" from Copyright line, as the file hasn't been
72184         changed this year other than in the copyright notice.
72185
72186         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72187         was changed this year.
72188
72189 2000-10-29  Jim Meyering  <meyering@lucent.com>
72190
72191         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72192         renaming.
72193         * m4/ls-mntd-fs.m4: Likewise
72194
72195 2000-10-29  Jim Meyering  <meyering@lucent.com>
72196
72197         * lib/xstat.in: Fix grammar in comment.
72198
72199 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72200
72201         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72202         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72203         doesn't define __restrict_arr.
72204
72205 2000-10-28  Jim Meyering  <meyering@lucent.com>
72206
72207         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72208         (jm_PREREQ_MEMCHR): New function.
72209
72210 2000-10-28  Jim Meyering  <meyering@lucent.com>
72211
72212         * lib/memchr.c: Update from libc.
72213         Adjust for portability:
72214         [HAVE_STDLIB_H]: Include stdlib.h.
72215         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72216         Undef __memchr, too.
72217         [!weak_alias]: Define __memchr to memchr.
72218
72219         * lib/regex.c: Update from libc.
72220         * lib/regex.h: Likewise.
72221         * lib/getopt1.c: Likewise.
72222         * lib/memcmp.c: Likewise.
72223
72224         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72225         Avoid using fseek, when possible -- it's broken by design.
72226         Patch by Ulrich Drepper.
72227
72228 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72229
72230         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72231         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72232         Giving in to popular pressure to shut up the compiler with casts.
72233
72234 2000-10-26  Jim Meyering  <meyering@lucent.com>
72235
72236         * lib/strftime.c: Update from libc.
72237
72238 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72239
72240         * regex.c: More `unsigned char' -> `re_char' changes.
72241         Also change several `int' into `re_wchar_t'.
72242         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72243         (PUSH_FAILURE_POINTER): Don't cast any more.
72244         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72245         We want GCC to complain, since this piece of code makes
72246         re_match non-reentrant, which *should* be fixed.
72247         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72248         (EXTEND_BUFFER): Use RETALLOC.
72249         (SET_LIST_BIT): Don't cast.
72250         (re_wchar_t): New type.
72251         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72252         that those two functions will always properly return.
72253         (IMMEDIATE_QUIT_CHECK): Cast to void.
72254         (analyse_first): Use recursion rather than an explicit stack.
72255         (re_compile_fastmap): Can't fail anymore.
72256         (re_search_2): Don't check re_compile_fastmap for failure.
72257         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72258         Now also sets the new value (passed in a new argument).
72259         (re_match_2_internal): Use it.
72260         Also, use a new var `reg' of type size_t when looping through regs
72261         rather than reuse the inappropriate `mcnt'.
72262
72263 2000-10-25  Jim Meyering  <meyering@lucent.com>
72264
72265         * lib/obstack.c: Update from libc.
72266
72267 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72268
72269         * regex.c (regex_compile): Change the way of handling a range from
72270         a char less than 256 to a char not less than 256.
72271
72272 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72273
72274         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72275         NT-Emacs only.
72276         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72277         so that re_search functions only quit when callers expect them to.
72278
72279 2000-10-23  Jim Meyering  <meyering@lucent.com>
72280
72281         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72282         wrong.  That set_locale call must not have any side effects.
72283         From Paul Eggert.
72284
72285 2000-10-22  Jim Meyering  <meyering@lucent.com>
72286
72287         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72288         [CYCLIC]: Remove now-unused definition.
72289
72290         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72291         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72292         Suggestion from Ulrich Drepper.
72293
72294 2000-10-21  Jim Meyering  <meyering@lucent.com>
72295
72296         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72297         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72299
72300 2000-10-21  Jim Meyering  <meyering@lucent.com>
72301
72302         * lib/dirname.c (memrchr): Declare if necessary.
72303         (dir_name): Remove the restriction that there be no
72304         trailing slashes.  Now, this code skips past them, effectively
72305         ignoring them.
72306         [TEST_DIRNAME] (main): New unit tests.
72307
72308         * lib/memrchr.c: New file from GNU libc.
72309         Undef __memrchr, too.
72310         [!weak_alias]: Define __memrchr to memrchr.
72311         Guard weak_alias use with `#ifdef weak_alias'.
72312
72313 2000-10-21  Jim Meyering  <meyering@lucent.com>
72314
72315         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72316         (dir_name): Use dir_name_r.
72317         * lib/dirname.h (dir_name_r): Declare it.
72318
72319 2000-10-17  Jim Meyering  <meyering@lucent.com>
72320
72321         * lib/quote.h (PARAMS): Define and use.
72322         Reported by Akim Demaille.
72323
72324         * lib/getopt.c: Update from libc.
72325
72326 2000-10-16  Jim Meyering  <meyering@lucent.com>
72327
72328         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72329         setlocale.
72330         From Jan Fedak.
72331
72332 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72333
72334         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72335
72336 2000-09-25  Jim Meyering  <meyering@lucent.com>
72337
72338         * lib/md5.h (rol): Define (from GnuPG).
72339
72340         * lib/sha.c: Give credit (GnuPG) where due.
72341         (M): Use rol rather than open-coding it.
72342         Add a FIXME comment.
72343
72344 2000-09-21  Jim Meyering  <meyering@lucent.com>
72345
72346         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72347         Reported by Michael Stone.
72348
72349 2000-09-20  Jim Meyering  <meyering@lucent.com>
72350
72351         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72352         (noinst_HEADERS): Add sha.h.
72353         Based on code from Scott G. Miller and from GnuPG.
72354
72355 2000-09-18  Jim Meyering  <meyering@lucent.com>
72356
72357         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72358         LIBS. Otherwise, everyone ends up linking with -lelf for some
72359         configurations.
72360         Reported by Mike Stone.
72361
72362 2000-09-15  Jim Meyering  <meyering@lucent.com>
72363
72364         * lib/regex.c: Update from libc.
72365
72366 2000-09-10  Jim Meyering  <meyering@lucent.com>
72367
72368         * lib/getopt.c (_getopt_internal): Update from glibc.
72369
72370 2000-09-09  Jim Meyering  <meyering@lucent.com>
72371
72372         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72373         think it should be used as a general replacement for isascii.
72374         * lib/fnmatch.c: Likewise.
72375         * lib/mbswidth.c: Likewise
72376         * lib/regex.c: Likewise.
72377
72378         Don't use atoi.
72379         * lib/userspec.c: Include sys/param.h and limits.h.
72380         Include xstrtol.h.
72381         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72382         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72383         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72384         UID, GID.  Check range.
72385
72386 2000-09-06  Jim Meyering  <meyering@lucent.com>
72387
72388         * lib/getopt.c (_getopt_internal): Update from glibc.
72389
72390 2000-08-30  Jim Meyering  <meyering@lucent.com>
72391
72392         * lib/strftime.c: Merge in changes from GNU libc.
72393
72394 2000-08-26  Jim Meyering  <meyering@lucent.com>
72395
72396         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72397         * m4/fpending.m4: New file.
72398
72399 2000-08-26  Jim Meyering  <meyering@lucent.com>
72400
72401         * lib/closeout.c: Include "__fpending.h".
72402         (close_stdout_status): Return right away if there's nothing to flush.
72403
72404         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72405         * lib/__fpending.c: New file.
72406         * lib/__fpending.h: New file.
72407
72408 2000-08-20  Jim Meyering  <meyering@lucent.com>
72409
72410         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72411         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72412         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72413
72414 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72415
72416         Improve fileutils installation on systems where running
72417         programs (like install) can't be unlinked.
72418         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72419         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72420
72421 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72422
72423         Standardize on "memory exhausted" instead of "Memory exhausted"
72424         or "virtual memory exhausted".
72425         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72426         "virtual memory exhausted".
72427         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72428         our own message.
72429         * lib/userspec.c (parse_user_spec): Likewise.
72430         * lib/bumpalloc.h: comment fix
72431         * lib/same.c, userspec.c: Include xalloc.h.
72432
72433         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72434         not char *const and pointing to a constant array.
72435         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72436         (xrealloc): Comment fix.
72437
72438         * lib/userspec.c (parse_user_spec):
72439         Don't translate a message until just before returning,
72440         to avoid unnecessary translation.
72441
72442 2000-08-07  Jim Meyering  <meyering@lucent.com>
72443
72444         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72445         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72446         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72447         getgroups.c, gethostname.c, getopt.h, group-member.c,
72448         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72449         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72450         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72451         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72452         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72453         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72454         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72455         yesno.c: Back out Copyright date changes for each file with no change
72456         this year.  This eases coordination with other programs using the same
72457         source code modules.  From Paul Eggert.
72458
72459 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72460
72461         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72462         not char, for compatibility with glibc 2.1.3 strftime.c.
72463
72464 2000-08-03  Greg McGary  <greg@mcgary.org>
72465
72466         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72467         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72468         (EXTEND_BUFFER): Use them.
72469
72470 2000-08-01  Jim Meyering  <meyering@lucent.com>
72471
72472         * lib/dirname.c (ISSLASH): Define.
72473         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72474         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72475         both `\' and `/' may be use as path separators.
72476         Based on a patch from Prashant TR.
72477
72478 2000-07-31  Paul Eggert  <eggert@twinsun.com>
72479
72480         * lib/quotearg.c (quotearg_n_options): Don't make the initial
72481         slot vector a constant, since it might get modified.
72482
72483 2000-07-31  Jim Meyering  <meyering@lucent.com>
72484
72485         * lib/xmalloc.c: Use `virtual memory exhausted', not
72486         `Memory exhausted'.
72487         * lib/obstack.c (print_and_abort): Likewise.
72488
72489 2000-07-30  Paul Eggert  <eggert@twinsun.com>
72490
72491         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
72492         buffer, so that the caller can always quote one small
72493         component of a "memory exhausted" message in slot 0.
72494         From a suggestion by Jim Meyering.
72495
72496 2000-07-30  Jim Meyering  <meyering@lucent.com>
72497
72498         * lib/makepath.c (make_path): Quote the other instance, too.
72499
72500         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
72501         (STATIC_BUF_SIZE): Define.
72502         (quotearg_n_options): Use only statically allocated storage when
72503         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72504         than STATIC_BUF_SIZE.
72505
72506 2000-07-29  Jim Meyering  <meyering@lucent.com>
72507
72508         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72509         * lib/dirname.c (dir_name): Likewise.
72510
72511         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72512         `/'.
72513
72514         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72515         (dir_name): Assert that there are no trailing slashes.
72516
72517 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72518
72519         * lib/mbswidth.h (mbswidth): Add a flags argument.
72520         (mbswidth): New declaration.
72521         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72522         * lib/mbswidth.c (mbswidth): Add a flags argument.
72523         (mbsnwidth): New function.
72524
72525 2000-07-24  Jim Meyering  <meyering@lucent.com>
72526
72527         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72528
72529 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72530
72531         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72532
72533 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72534
72535         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72536         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72537         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72538         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72539         invoke multibyte primitives.
72540
72541 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72542
72543         * lib/quotearg.c:
72544         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72545         so that mbstate_t is always defined.
72546
72547         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72548         be 1 in at least one GCC installation, and this configuration
72549         error is likely to be common.  Ignoring MB_LEN_MAX hurts
72550         performance on hosts that have mbrtowc but have only unibyte
72551         locales, but I assume these hosts are rare.
72552
72553 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72554
72555         * lib/mbswidth.c (_XOPEN_SOURCE):
72556         Don't define; this causes problems on Solaris 7.
72557         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
72558
72559 2000-07-23  Jim Meyering  <meyering@lucent.com>
72560
72561         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
72562         too: getgrgid, getpwuid, getuid.
72563
72564 2000-07-23  Jim Meyering  <meyering@lucent.com>
72565
72566         * lib/basename.c (base_name): Add an assertion.
72567
72568 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
72569
72570         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
72571         shadow its mbsinit function.
72572
72573 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72574
72575         * lib/mbswidth.h: New file.
72576         * lib/mbswidth.c: New file.
72577         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
72578         (noinst_HEADERS): Add mbswidth.h.
72579
72580 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72581
72582         * lib/config.charset: Add support for FreeBSD. Improve support for
72583         HP-UX and IRIX 6.
72584
72585 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
72586
72587         * m4/mbswidth.m4: New file.
72588         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
72589
72590 2000-07-15  Jim Meyering  <meyering@lucent.com>
72591
72592         * lib/makepath.c: Include quote.h.
72593         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
72594         corresponding argument in a `quote (...)' call.
72595         Give better diagnostics.
72596
72597         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
72598         (noinst_HEADERS): Add quote.h.
72599
72600         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
72601         from tar's src/misc.c.
72602         * lib/quote.h: New file.  Prototypes for same.
72603
72604 2000-07-14  Paul Eggert  <eggert@twinsun.com>
72605
72606         From a suggestion by Bruno Haible.
72607         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
72608         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
72609         to decide whether to define the BeOS workaround macro;
72610         this adjusts to the change to AC_MBSTATE_T.
72611
72612 2000-07-14  Jim Meyering  <meyering@lucent.com>
72613
72614         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
72615         jm_AC_TYPE_UINTMAX_T.
72616
72617 2000-07-13  Paul Eggert  <eggert@twinsun.com>
72618
72619         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
72620
72621         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
72622         quotearg_buffer_restyled): Add support for
72623         clocale_quoting_style.  Undo previous change to
72624         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
72625         and "{RIGHT QUOTATION MARK}" msgids.
72626
72627 2000-07-10  Paul Eggert  <eggert@twinsun.com>
72628
72629         From a suggestion by Bruno Haible.
72630         * m4/mbstate_t.m4 (AC_MBSTATE_T):
72631         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
72632         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
72633         and mbstate_t, to a single-part test that simply defines mbstate_t.
72634         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
72635         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
72636
72637 2000-07-10  Jim Meyering  <meyering@lucent.com>
72638
72639         * m4/strerror_r.m4: Mirror the correction made in autoconf.
72640
72641         * m4/gnu-source.m4: Output to confdefs.h directly.
72642         Suggestion from Akim Demaille.
72643
72644 2000-07-09  Paul Eggert  <eggert@twinsun.com>
72645
72646         The old behavior of quoting `like this' doesn't look good with
72647         newer, ISO-style fonts.  See:
72648         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
72649
72650         Instead, quote "like this" by default.  Let the translator
72651         tailor the locale-specific quoting behavior by providing
72652         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
72653
72654         * lib/quotearg.c (N_): New macro.
72655         (gettext_default): New function.
72656         (quotearg_buffer_restyled): Use
72657         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
72658         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
72659
72660 2000-07-09  Jim Meyering  <meyering@lucent.com>
72661
72662         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
72663         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
72664
72665         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
72666         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
72667
72668 2000-07-09  Jim Meyering  <meyering@lucent.com>
72669
72670         * lib/Most files: Update copyright dates to include 2000.
72671
72672 2000-07-08  Jim Meyering  <meyering@lucent.com>
72673
72674         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
72675         if not defined.
72676         (xgethostname): Remove now-unnecessary #ifdef.
72677         Move declaration of `err' into loop where it's used.
72678
72679 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72680         and Bruno Haible  <haible@clisp.cons.org>
72681
72682         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
72683         only if the test for an object-type mbstate_t fails.  This
72684         prevents us from mistakenly reporting that mbstate_t is a
72685         system object type after we "#define mbstate_t int" to work
72686         around its lack.
72687
72688 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72689         and Bruno Haible  <haible@clisp.cons.org>
72690
72691         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
72692
72693 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72694
72695         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
72696         to strerror_r.
72697         Include <ctype.h> for use of isalpha.
72698
72699 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72700
72701         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
72702         by allocating a larger buffer. Test the gethostname return value for
72703         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
72704         returns an error and ENAMETOOLONG isn't defined.
72705
72706 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72707
72708         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
72709         dimension.
72710
72711 2000-07-04  Jim Meyering  <meyering@lucent.com>
72712
72713         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
72714         of the deprecated AC_CHECKING.
72715
72716 2000-07-04  Jim Meyering  <meyering@lucent.com>
72717
72718         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
72719         Reported by Bruno Haible.
72720
72721 2000-07-04  Jim Meyering  <meyering@lucent.com>
72722
72723         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
72724         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
72725         lacks mbrtowc.
72726
72727 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72728
72729         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
72730         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
72731
72732 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72733         and Bruno Haible  <haible@clisp.cons.org>
72734
72735         * lib/quotearg.c (mbrtowc):
72736         Assign to *pwc, and return 1 only if result is nonzero.
72737         (iswprint): Use ISPRINT when substituting our own mbrtowc.
72738
72739 2000-07-03  Jim Meyering  <meyering@lucent.com>
72740
72741         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
72742
72743 2000-07-03  Jim Meyering  <meyering@lucent.com>
72744
72745         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
72746         This is necessary to get a definition of e.g., UTMP_FILE on
72747         HP-UX 10.20.
72748         From Bob Proulx.
72749
72750 2000-07-02  Jim Meyering  <meyering@lucent.com>
72751
72752         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
72753
72754         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
72755         AC_LIBOBJ(function_name).
72756         * m4/chown.m4: Likewise.
72757         * m4/fnmatch.m4: Likewise.
72758         * m4/ftruncate.m4: Likewise.
72759         * m4/getgroups.m4: Likewise.
72760         * m4/getline.m4: Likewise.
72761         * m4/group-member.m4: Likewise.
72762         * m4/jm-macros.m4: Likewise.
72763         * m4/lstat.m4: Likewise.
72764         * m4/malloc.m4: Likewise.
72765         * m4/memcmp.m4: Likewise.
72766         * m4/nanosleep.m4: Likewise.
72767         * m4/putenv.m4: Likewise.
72768         * m4/realloc.m4: Likewise.
72769         * m4/regex.m4: Likewise.
72770         * m4/stat.m4: Likewise.
72771         * m4/strftime.m4: Likewise.
72772
72773 2000-07-02  Jim Meyering  <meyering@lucent.com>
72774
72775         * lib/quotearg.c (mbstate_t): Don't define here.
72776
72777 2000-07-02  Jim Meyering  <meyering@lucent.com>
72778
72779         * lib/nanosleep.c (SIGCONT): Define if not already defined.
72780
72781 2000-07-01  Jim Meyering  <meyering@lucent.com>
72782
72783         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
72784
72785 2000-07-01  Jim Meyering  <meyering@lucent.com>
72786
72787         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
72788         problem.
72789
72790 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72791
72792         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
72793         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
72794
72795 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72796
72797         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
72798         per change in ../m4/ls-mntd-fs.m4.
72799         (read_filesystem_list): Ignore symbolic links.
72800
72801 2000-06-29  Jim Meyering  <meyering@lucent.com>
72802
72803         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
72804         for declaration of strcmp.
72805
72806         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
72807
72808         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
72809         Avoid warning by casting result to `char *' to remove `const'.
72810
72811 2000-06-28  Jim Meyering  <meyering@lucent.com>
72812
72813         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
72814         included by quotearg.c, for which we perform this test.  From
72815         Bruno Haible.
72816
72817 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72818
72819         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
72820         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
72821         <utmpx.h> exists, put readutmp.o into LIBOBJS.
72822
72823 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72824
72825         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
72826
72827 2000-06-26  Paul Eggert  <eggert@twinsun.com>
72828
72829         savedir now sets errno on failure and invokes xmalloc to get memory.
72830         Fix a couple of other minor bugs while we're at it.
72831
72832         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
72833         (NAMLEN): Remove macro.
72834         (malloc, realloc): Remove decls.
72835         (stpcpy): Likewise.
72836         ("xalloc.h"): Include.
72837         (NAME_SIZE_DEFAULT): New macro.
72838         (savedir): Use xmalloc / xrealloc to allocate memory.
72839         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
72840         Skip "" directory entries.
72841         Use strlen to calculate directory entry length, since the old method
72842         is rarely used these days and isn't worth supporting.
72843         Don't use a pointer after freeing it.
72844         Check for integer overflow when calculating allocation size.
72845         Use memcpy to copy entries, instead of stpcpy.
72846         Set errno properly when returning NULL.
72847         Check for readdir error.
72848
72849 2000-06-26  Jim Meyering  <meyering@lucent.com>
72850
72851         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
72852
72853 2000-06-25  Jim Meyering  <meyering@lucent.com>
72854
72855         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
72856         Linux header bug when _XOPEN_SOURCE is defined to 500.
72857
72858 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72859
72860         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
72861         deficiency.
72862
72863 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72864
72865         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
72866         Include xalloc.h.
72867         Don't include <stdlib.h>.  Don't declare malloc, realloc.
72868
72869 2000-06-24  Jim Meyering  <meyering@lucent.com>
72870
72871         * m4/strerror_r.m4: Revive this file -- to try out an experimental
72872         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
72873         for which strerror does return char*, but which lacks a conveniently
72874         accessible declaration of the function.  If the compile-test says
72875         strerror_r doesn't work, then resort to a `run'-test that works on
72876         BeOS and segfaults on DEC Unix.
72877
72878 2000-06-24  Jim Meyering  <meyering@lucent.com>
72879
72880         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
72881
72882 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72883
72884         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
72885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
72886
72887 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72888
72889         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
72890         (mbrtowc, mbstate_t): Define substitutes if
72891         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
72892         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
72893         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
72894
72895 2000-06-23  Jim Meyering  <meyering@lucent.com>
72896
72897         * m4/afs.m4: Add missing AC_MSG_RESULT.
72898         Reported by Bruno Haible.
72899
72900         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
72901         Suggestion from Bruno Haible.
72902
72903 2000-06-23  Jim Meyering  <meyering@lucent.com>
72904
72905         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
72906
72907 2000-06-21  Jim Meyering  <meyering@lucent.com>
72908
72909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
72910
72911 2000-06-21  Jim Meyering  <meyering@lucent.com>
72912
72913         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
72914         (noinst_HEADERS): Add getstr.h.
72915
72916         * lib/getline.c (getstr): Move into a separate file.
72917         * lib/getstr.c (getstr): New file, extracted from getline.c, with
72918         the following changes: new parameter, delim2; both delim[12]
72919         parameters have type `int', not `char'.  The latter would lose
72920         with 8-bit delimiters.
72921         * lib/getstr.h: New file.
72922
72923 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72924
72925         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
72926         than 1024, return a memory chunk of least possible size, instead
72927         of size PATH_MAX + 2. In the loop, increment the size proportionally.
72928         Use free/xmalloc instead of xrealloc to avoid copying for very long
72929         paths.
72930
72931 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72932
72933         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
72934         the empty string.
72935
72936 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72937
72938         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
72939         address, not strdup.  Include <stdlib.h> and don't declare free().
72940
72941 2000-06-19  Jim Meyering  <meyering@lucent.com>
72942
72943         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
72944
72945 2000-06-18  Jim Meyering  <meyering@lucent.com>
72946
72947         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
72948
72949         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
72950         `checking whether...' message to be consistent with that of the
72951         lstat test.
72952
72953 2000-06-18  Jim Meyering  <meyering@lucent.com>
72954
72955         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
72956         Besides, these days every porting target provides a mkdir function.
72957
72958         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
72959         needed. (this snippet comes from src/system.h).
72960
72961 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
72962
72963         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
72964
72965 2000-06-15  Paul Eggert  <eggert@twinsun.com>
72966
72967         * lib/human.c (adjust_value): New function.
72968         (human_readable_inexact): Apply rounding style even when
72969         printing approximate values.
72970
72971 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72972
72973         * lib/human.c (human_readable_inexact): Allow an input block
72974         size that is not a multiple of the output block size, and vice versa.
72975         Reported by Piergiorgio Sartor.
72976
72977 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72978
72979         * lib/getdate.y (get_date): Apply relative times after time
72980         zone indicator, not before.  Reported by Todd A. Jacobs.
72981
72982 2000-06-13  Jim Meyering  <meyering@lucent.com>
72983
72984         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
72985
72986         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
72987
72988 2000-06-12  Paul Eggert  <eggert@twinsun.com>
72989
72990         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
72991
72992 2000-06-12  Jim Meyering  <meyering@lucent.com>
72993
72994         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
72995         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
72996         optional argument.
72997         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
72998         the optional argument, `lib'.
72999
73000 2000-06-08  Jim Meyering  <meyering@lucent.com>
73001
73002         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73003
73004 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73005
73006         Rewrite largefile configuration so that we don't need to run
73007         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73008         AC_CANONICAL_HOST in configure.in -- jmm]
73009
73010         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73011         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73012         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73013         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73014         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73015         All uses changed.
73016         Instead of inspecting the output of getconf, try to compile the
73017         test program without and with the macro definition.
73018         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73019         for getconf.  Instead, check for the needed flags by compiling
73020         test programs.
73021
73022 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73023
73024         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73025
73026 2000-06-04  Jim Meyering  <meyering@lucent.com>
73027
73028         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73029         SunOS 4.1.4 for which gid_t is an unsigned type.
73030
73031 2000-06-03  Jim Meyering  <meyering@lucent.com>
73032
73033         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73034         now that autoconf requires that.
73035
73036         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73037         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73038         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73039
73040 2000-06-03  Jim Meyering  <meyering@lucent.com>
73041
73042         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73043
73044 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73045
73046         * m4/glibc21.m4: New file.
73047         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73048
73049 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73050
73051         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73052         newer, don't install charset.alias.
73053         * lib/config.charset: Change the Linux/glibc rules so they become empty
73054         on glibc-2.1 or newer.
73055
73056 2000-06-02  Jim Meyering  <meyering@lucent.com>
73057
73058         * lib/mountlist.c: Back out last change.  Instead, do this...
73059         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73060         me_dummy member using the same `ignore'-testing code.
73061         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73062         fs_type strings.
73063         From Mark D. Roth.
73064
73065 2000-05-29  Jim Meyering  <meyering@lucent.com>
73066
73067         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73068         mounts with the `ignore' attribute.  Based on a patch from
73069         Mark D. Roth.
73070
73071 2000-05-28  Jim Meyering  <meyering@lucent.com>
73072
73073         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73074         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73075         * m4/stat.m4: Likewise.
73076         * m4/lstat.m4: Likewise.
73077         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73078
73079         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73080         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73081
73082 2000-05-26  Jim Meyering  <meyering@lucent.com>
73083
73084         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73085
73086 2000-05-24  Jim Meyering  <meyering@lucent.com>
73087
73088         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73089         autoconf requires that.
73090         * m4/lib-check.m4: Likewise.
73091         * m4/jm-macros.m4: Likewise.
73092         * m4/strftime.m4: Likewise.
73093
73094         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73095         AC_CHECK_DECLS, now that autoconf requires that.
73096
73097 2000-05-22  Jim Meyering  <meyering@lucent.com>
73098
73099         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73100         * m4/lstat.m4: Likewise.
73101
73102 2000-05-22  Jim Meyering  <meyering@lucent.com>
73103
73104         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73105
73106 2000-05-20  Jim Meyering  <meyering@lucent.com>
73107
73108         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73109         (jm_PREREQ): Use it.
73110
73111 2000-05-18  Jim Meyering  <meyering@lucent.com>
73112
73113         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73114         back, too, since it may have been modified by allocate_entry.
73115         (hash_delete): Rewrite to use neither the assignment operator
73116         nor the comma operator in an if-expression.
73117
73118 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73119
73120         * lib/closeout.c:
73121         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73122         Remove; no longer needed.
73123         "quotearg.h": Add include.
73124         (file_name): Do not bother to explicitly initialize to NULL; it's less
73125         efficient on some hosts.
73126         (close_stdout_status): Remove test as to whether stdout was already
73127         closed; it breaks for the case "echo x | sort >&-".
73128         Quote file name colons.
73129         Do not assume that _("write error") lacks format strings.
73130
73131 2000-05-15  Jim Meyering  <meyering@lucent.com>
73132
73133         * lib/version-etc.c (version_etc_copyright): Update the copyright
73134         string used in all --version output.
73135
73136 2000-05-14  Jim Meyering  <meyering@lucent.com>
73137
73138         * lib/closeout.c (close_stdout_set_file_name): New function.
73139         (close_stdout_status): Use new file-scoped global.
73140         Return right away if fstat says the stdout file descriptor is invalid.
73141         * lib/closeout.h (close_stdout_set_file_name): Declare.
73142
73143 2000-05-10  Jim Meyering  <meyering@lucent.com>
73144
73145         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73146         (close_stdout_set_status): New function.
73147         * lib/closeout.h (close_stdout_set_status): Declare.
73148
73149 2000-05-09  Jim Meyering  <meyering@lucent.com>
73150
73151         * m4/gettext.m4: Rename this...
73152         * m4/libintl.m4: ...to this.
73153
73154 2000-05-08  Jim Meyering  <meyering@lucent.com>
73155
73156         * lib/long-options.c: Don't include closeout.h.
73157         (parse_long_options): Don't call close_stdout for --version.
73158
73159 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73160
73161         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73162         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73163         2.1.3 bug.  This avoids a clash when files like regex.c define
73164         _GNU_SOURCE.
73165
73166 2000-05-06  Jim Meyering  <meyering@lucent.com>
73167
73168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73169         (AC_REPLACE_FUNCS): Add strnlen.
73170
73171         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73172         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73173
73174         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73175         AC_SEARCH_LIBS call for nanosleep.
73176         (LIB_NANOSLEEP): Set and AC_SUBST.
73177
73178 2000-05-06  Jim Meyering  <meyering@lucent.com>
73179
73180         * lib/strnlen.c: Undefine __strnlen and strnlen.
73181         [!weak_alias]: Define __strnlen to strnlen.
73182
73183         * lib/atexit.c: New file, from libiberty.
73184
73185 2000-05-06  Jim Meyering  <meyering@lucent.com>
73186
73187         * lib/closeout.c (close_stdout_status): Also check for errors on the
73188         stderr stream.
73189
73190 2000-05-05  Jim Meyering  <meyering@lucent.com>
73191
73192         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73193         AC_SEARCH_LIBS call for clock_gettime.
73194         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73195
73196         * m4/search-libs.m4: Update from autoconf.
73197
73198         su doesn't work on Solaris 2.6.
73199         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73200         <shadow.h>.  Reported by Dragos Harabor.
73201
73202 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73203
73204         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73205         memcpy instead of xmalloc, xrealloc, path_concat.
73206         (locale_charset): Treat empty environment variables as absent.
73207         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73208
73209 2000-05-04  Jim Meyering  <meyering@lucent.com>
73210
73211         * lib/getopt.c: Update from glibc.
73212         * lib/obstack.c: Likewise.
73213         * lib/obstack.h: Likewise.
73214         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73215         file
73216
73217         * lib/regex.h: Likewise.
73218         * lib/strndup.c: Likewise.
73219         * lib/strnlen.c: New file, from glibc.
73220
73221 2000-05-03  Jim Meyering  <meyering@lucent.com>
73222
73223         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73224
73225 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73226
73227         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73228         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73229         compile-time test, rather than inspecting host and OS, to
73230         decide whether to define _LARGEFILE_SOURCE.
73231
73232 2000-05-01  Jim Meyering  <meyering@lucent.com>
73233
73234         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73235
73236         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73237         Based on a patch from Bruno Haible.
73238
73239 2000-05-01  Jim Meyering  <meyering@lucent.com>
73240
73241         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73242
73243 2000-04-29  Jim Meyering  <meyering@lucent.com>
73244
73245         * lib/path-concat.c: Declare strdup only if it's not defined.
73246         * lib/canon-host.c: Likewise.
73247
73248 2000-04-28  Jim Meyering  <meyering@lucent.com>
73249
73250         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73251         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73252         is included first, then limits.h is included by locale.h by libintl.h.
73253         From John David Anglin.
73254
73255 2000-04-25  Jim Meyering  <meyering@lucent.com>
73256
73257         * lib/makepath.c (S_IRWXUGO): Define.
73258         (make_path): Always perform explicit chmod if MODE specifies any
73259         of the `special' permission bits.  Prompted by a bug report against
73260         install from Mate Wierdl and Joost van Baal.
73261
73262 2000-04-18  Jim Meyering  <meyering@lucent.com>
73263
73264         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73265         (jm_PREREQ): Use it.
73266
73267 2000-04-18  Jim Meyering  <meyering@lucent.com>
73268
73269         * lib/README: New file.
73270
73271         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73272         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73273
73274 2000-04-17  Jim Meyering  <meyering@lucent.com>
73275
73276         Get it right :-)
73277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73278         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73279         Suggestion from Akim Demaille.
73280
73281 2000-04-17  Jim Meyering  <meyering@lucent.com>
73282
73283         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73284         the definition of it to rpl_strftime also defined-away the system's
73285         declaration.
73286
73287 2000-04-15  Jim Meyering  <meyering@lucent.com>
73288
73289         Use `C' to denote so-called `contiguous' files, the same way
73290         that tar does.
73291         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73292         (ftypelet): Use S_ISCTG.
73293         From Michael Deutschmann.
73294
73295 2000-04-14  Jim Meyering  <meyering@lucent.com>
73296
73297         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73298         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73299         clobbered.
73300
73301 2000-04-14  Jim Meyering  <meyering@lucent.com>
73302
73303         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73304
73305 2000-04-13  Jim Meyering  <meyering@lucent.com>
73306
73307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73308         AH_VERBATIM to insert required #ifndef into config.h.in.
73309         Suggestion from Akim Demaille.
73310
73311 2000-04-12  Jim Meyering  <meyering@lucent.com>
73312
73313         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73314         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73315         Christian Krackowizer.
73316
73317         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73318         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73319         (AC_SYS_LARGEFILE): Require.
73320         (AM_C_PROTOTYPES): Require.
73321
73322 2000-04-08  Jim Meyering  <meyering@lucent.com>
73323
73324         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73325         names don't conflict.  Reported by Eli Zaretskii.
73326
73327 2000-04-07  Jim Meyering  <meyering@lucent.com>
73328
73329         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73330         sys/types.h, to work around system header problems on AIX 3.2.5.
73331         From Bruno Haible.
73332
73333 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73334
73335         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73336         bug.  Deal with the different error behavior of Irix iconv.
73337
73338 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73339
73340         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73341         IRIX if the installer said otherwise.
73342
73343 2000-04-05  Jim Meyering  <meyering@lucent.com>
73344
73345         Portability tweaks required for ultrix4.3.
73346         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73347         (jm_CHECK_DECLS): Add getutent to the list of functions.
73348         (_jm_DECL_HEADERS): Add utmpx.h.
73349         From John David Anglin.
73350
73351         * m4/strftime.m4: Back out the 2000-04-02 change.
73352         Instead of that change, simply undefine putenv in the test program.
73353
73354 2000-04-05  Jim Meyering  <meyering@lucent.com>
73355
73356         Portability tweaks required for ultrix4.3.
73357         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73358         getutent.
73359         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73360         * lib/canon-host.c: Declare strdup.
73361         * lib/path-concat.c: Likewise.
73362         From John David Anglin.
73363
73364 2000-04-04  Jim Meyering  <meyering@lucent.com>
73365
73366         Be more DOS 8.3-friendly.
73367         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73368         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73369         * lib/Makefile.am: Reflect renaming.
73370         Reported by Eli Zaretskii.
73371
73372         Use a temporary file name that won't clash with `charset.alias'
73373         in the DOS 8.3 name space.
73374         * lib/Makefile.am (charset_tmp): Define.
73375         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73376         (uninstall-local): Likewise.
73377         Reported by Eli Zaretskii.
73378
73379 2000-04-03  Jim Meyering  <meyering@lucent.com>
73380
73381         * m4/gettext.m4: Fix typo in comment.
73382
73383         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73384         textutils/configure.in).  Suggestion from Paul Eggert.
73385         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73386
73387 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73388
73389         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73390         variable in the shell rather than using putenv, which isn't
73391         portable.  This avoids the configure-time inter-test dependency
73392         on the potentially-renamed putenv function.
73393
73394 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73395
73396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73397         before checking struct stat.st_blksize, so that
73398         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73399
73400 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73401
73402         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73403         since strftime.c uses HAVE_STRFTIME to decide whether to use
73404         the underlying strftime.
73405
73406 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73407
73408         * lib/time/strftime.c (my_strftime): Make sure we call the system
73409         strftime, not ourselves, when invoking the underlying strftime.
73410
73411 2000-03-24  Jim Meyering  <meyering@lucent.com>
73412
73413         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73414         (charset_alias): Define.
73415         (install-exec-local): Factor out common code.
73416         (uninstall-local): Split lines longer than 80.
73417         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73418         (SUFFIXES): Define.
73419         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73420         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73421
73422 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73423
73424         * lib/config.charset: Output a line containing "Packages using this
73425         file".
73426         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73427         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73428         ref-del.sed): New rules.
73429
73430 2000-03-17  Jim Meyering  <meyering@lucent.com>
73431
73432         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73433         Otherwise, include <strings.h>
73434
73435 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73436
73437         * lib/unicodeio.c (utf8_wctomb): New function.
73438         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73439         format instead of in UCS-4 with platform dependent endianness.
73440
73441 2000-03-10  Jim Meyering  <meyering@lucent.com>
73442
73443         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73444         From Marco Franzen.
73445
73446 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73447
73448         * lib/savedir.c (savedir): Work even if directory size is
73449         negative; this can happen with some screwy NFS configurations.
73450
73451 2000-03-06  Jim Meyering  <meyering@lucent.com>
73452
73453         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73454         if it's NULL (because we ran out of memory).  From Bruno Haible.
73455
73456 2000-03-05  Jim Meyering  <meyering@lucent.com>
73457
73458         * lib/localcharset.c ("path-concat.h"): Include.
73459         (get_charset_aliases): Use path_concat instead of ANSI string
73460         concatenation.
73461
73462         * lib/unicodeio.h (PARAMS): Define.
73463         Use it to guard prototype.
73464
73465 2000-03-04  Jim Meyering  <meyering@lucent.com>
73466
73467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73468         for lib/localcharset.c.
73469
73470 2000-03-04  Jim Meyering  <meyering@lucent.com>
73471
73472         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73473         installing into it.
73474         (uninstall-local): Uncomment this rule so `make distcheck' works
73475         once again.
73476
73477         * lib/unicodeio.c (<errno.h>): Include it.
73478         (errno): Declare if not defined.
73479
73480         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
73481
73482         * lib/config.charset: New version, incorporating remarks from a linux
73483         i18n mailing list.  From Bruno Haible.
73484
73485 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
73486
73487         * m4/codeset.m4: New file.
73488         * m4/iconv.m4: New file.
73489         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
73490
73491 2000-03-03  Jim Meyering  <meyering@lucent.com>
73492
73493         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
73494
73495 2000-03-02  Jim Meyering  <meyering@lucent.com>
73496
73497         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
73498         the messages come out on separate lines.
73499
73500         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
73501         rather than jm_CHECK_DECLARATIONS.
73502         * m4/decl.m4: Remove now-unused file.
73503
73504         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73505         geteuid.
73506
73507 2000-03-02  Jim Meyering  <meyering@lucent.com>
73508
73509         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73510
73511 2000-03-01  Jim Meyering  <meyering@lucent.com>
73512
73513         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73514         * lib/unicodeio.c: Likewise.
73515
73516 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73517
73518         * lib/config.charset: New file.
73519         * lib/localcharset.c: New file.
73520         * lib/unicodeio.h, lib/unicodeio.c: New files.
73521         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73522         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73523         (noinst_HEADERS): Add unicodeio.h.
73524         (all-local, install-exec-local, charset.alias): New targets.
73525
73526 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73527
73528         * lib/quotearg.c (ALERT_CHAR): New macro.
73529         (quotearg_buffer_restyled): Use it.
73530
73531 2000-02-27  Jim Meyering  <meyering@lucent.com>
73532
73533         * m4/check-decl.m4: Add getenv to the list.
73534
73535 2000-02-27  Jim Meyering  <meyering@lucent.com>
73536
73537         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73538         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73539
73540         * lib/backupfile.c: Guard inclusion of stdlib.h with
73541         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73542         Declare malloc if needed.
73543
73544         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73545         `#ifndef HAVE_DECL..'
73546         now that autoconf always defines the HAVE_DECL_ symbols.
73547         * lib/human.c: Likewise.
73548         * lib/same.c: Likewise.
73549         * lib/strtoumax.c: Likewise.
73550
73551         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
73552         declaration check was not run.
73553         * lib/hash.c: Likewise.
73554         * lib/human.c: Likewise.
73555         * lib/same.c: Likewise.
73556         * lib/strtoumax.c: Likewise.
73557
73558         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
73559         `.', then first look up the entire `.'-containing string as a login
73560         name.
73561
73562 2000-02-23  Jim Meyering  <meyering@lucent.com>
73563
73564         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
73565         in place of my hack.
73566
73567 2000-02-18  Paul Eggert  <eggert@twinsun.com>
73568
73569         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
73570         (textint): New typedef.
73571         (parser_control): Member year changed from int to textint.
73572         All uses changed.
73573         (YYSTYPE): Removed; replaced by %union with int and textint members.
73574         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
73575         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
73576         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
73577         (tSNUMBER, tUNUMBER): Now of type <textintval>.
73578         (date, number, to_year): Use width of number in digits, not its value,
73579         to determine whether it's a 2-digit year, or a 2-digit time.
73580         (yylex): Store number of digits of numeric tokens.
73581         Reported by John Kendall.
73582
73583         (parser_control): Changed from struct parser_control to typedef (for
73584         consistency).  All uses changed.
73585
73586         (tID): Removed; not used.
73587         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
73588
73589 2000-02-14  Paul Eggert  <eggert@twinsun.com>
73590
73591         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
73592         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
73593
73594 2000-02-12  Jim Meyering  <meyering@lucent.com>
73595
73596         * lib/userspec.c (ISDIGIT): Define it.
73597         (isdigit): Remove definition.
73598         (is_number): Use ISDIGIT, not isdigit.
73599         <libintl.h>: Include.
73600         (_ and N_): Define.
73601         (parse_user_spec): Mark translatable strings.
73602
73603 2000-02-10  Jim Meyering  <meyering@lucent.com>
73604
73605         With these changes, nanosleep.[ch] are finally enough like the other
73606         lib/* replacement files to compile on a few more losing systems.
73607
73608         * lib/nanosleep.h: Don't include config.h.
73609         Remove prototype from declaration of nanosleep.
73610         (PARAMS): Remove now-unneeded definition.
73611         * lib/nanosleep.c: #undef nanosleep.
73612         (rpl_nanosleep): Rename from nanosleep.
73613
73614 2000-02-10  Jim Meyering  <meyering@lucent.com>
73615
73616         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
73617         gnu_nanosleep to rpl_nanosleep.
73618
73619 2000-02-09  Jim Meyering  <meyering@lucent.com>
73620
73621         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
73622         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
73623
73624 2000-02-08  Akim Demaille  <akim@epita.fr>
73625
73626         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
73627         `[' and `]' and remove uses of `changequote'.
73628         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
73629         (AC_SYS_LARGEFILE): Likewise.
73630         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
73631         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
73632         of changequote.
73633         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
73634         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
73635         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
73636         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
73637
73638 2000-02-05  Jim Meyering  <meyering@lucent.com>
73639
73640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
73641         Remove explicit use of AC_HEADER_TIME.  It is required by
73642         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
73643         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
73644         in autoconf whereby the expansion of the latter ended up preceding
73645         the expansion of its prerequisite, AC_HEADER_TIME.
73646         Reported by Volker Borchert.
73647
73648 2000-02-03  Jim Meyering  <meyering@lucent.com>
73649
73650         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
73651
73652 2000-02-03  Jim Meyering  <meyering@lucent.com>
73653
73654         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
73655         rather than with `#if HAVE_UTMPNAME'.
73656
73657 2000-02-02  Jim Meyering  <meyering@lucent.com>
73658
73659         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
73660         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
73661         Reported by Eli Zaretskii.
73662
73663 2000-02-01  Jim Meyering  <meyering@lucent.com>
73664
73665         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
73666
73667 2000-01-31  Jim Meyering  <meyering@lucent.com>
73668
73669         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
73670         functions.  Add the time.h and sys/time.h headers along with the
73671         AC_REQUIRE'ment of AC_HEADER_TIME.
73672
73673 2000-01-31  Jim Meyering  <meyering@lucent.com>
73674
73675         * lib/nanosleep.h (nanosleep): Guard declaration with
73676         `#if ! HAVE_DECL_NANOSLEEP'.
73677         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
73678         the declaration in that vendor's sys/timers.h.
73679         Reported by Christian Krackowizer.
73680
73681         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
73682         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
73683         (ISPRINT): Likewise.
73684         Reported by Tom Tromey.
73685
73686 2000-01-30  Jim Meyering  <meyering@lucent.com>
73687
73688         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
73689
73690         * m4/prereq.m4 (utmp_includes): Define.
73691         Check for ut_user and ut_name members in both struct utmpx
73692         and struct utmp.
73693
73694 2000-01-30  Jim Meyering  <meyering@lucent.com>
73695
73696         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
73697         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
73698         header files where only utmpx.ut_user is declared.
73699
73700         * lib/readutmp.h (UT_USER): Define.
73701
73702 2000-01-29  Jim Meyering  <meyering@lucent.com>
73703
73704         * m4/lib-check.m4: New file containing library-related checks from
73705         fileutils and sh-utils (textutils had none).
73706
73707 2000-01-28  Jim Meyering  <meyering@lucent.com>
73708
73709         * m4/perl.m4: Change format of warning message to look more like that
73710         from the missing script.  Suggestion from François Pinard.
73711
73712 2000-01-25  Jim Meyering  <meyering@lucent.com>
73713
73714         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
73715         well as time.h in the compile check.
73716         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
73717         Fix typo in cross-compiling case: s/yes/no/.
73718
73719 2000-01-23  Jim Meyering  <meyering@lucent.com>
73720
73721         * m4/jm-macros.m4: Move df-related tests here from
73722         fileutils/configure.in
73723
73724         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
73725         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
73726
73727         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
73728         s/space/ac_fsusage_space/.
73729         (jm_FILE_SYSTEM_USAGE): Take two parameters.
73730
73731         * m4/ftruncate.m4: New file (derived from part of
73732         fileutils/configure.in).
73733         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
73734         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
73735
73736         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
73737         AC_SUBST these here, rather than just in sh-util/configure.in, so
73738         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
73739         all the same.
73740         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
73741         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
73742         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
73743         (AC_SUBST(POW_LIBM)): Likewise.
73744         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
73745
73746 2000-01-23  Jim Meyering  <meyering@lucent.com>
73747
73748         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
73749         obstack.c.
73750
73751 2000-01-22  Jim Meyering  <meyering@lucent.com>
73752
73753         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
73754
73755         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
73756
73757         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
73758         configure.in
73759         (AC_CHECK_HEADERS): Likewise for sh-utils.
73760         (AC_CHECK_HEADERS): Likewise for textutils.
73761         Merge the three lists of headers.
73762
73763         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
73764         from fileutils' configure.in.
73765
73766         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
73767         code. Moved tests into their own function (_jm_DECL_HEADERS) in
73768         check-decl.m4.
73769
73770         * m4/check-decl.m4: Use #if rather than #ifdef.
73771         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
73772         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
73773         (_jm_DECL_HEADERS): Define new function.
73774         (jm_CHECK_DECLARATIONS): Require it.
73775
73776 2000-01-22  Jim Meyering  <meyering@lucent.com>
73777
73778         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
73779         [! HAVE_DECL_STRTOULL]: Declare strtoull.
73780         Required for some AIX systems.  Reported by Christian Krackowizer.
73781         [TESTING] (main): New function.
73782
73783         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
73784         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
73785         letters.
73786
73787         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
73788         iswprint.
73789
73790         * lib/strverscmp.c (ISDIGIT): Define.
73791         (strverscmp): Use ISDIGIT, not isdigit.
73792
73793 2000-01-19  Jim Meyering  <meyering@lucent.com>
73794
73795         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
73796         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
73797         defines `struct timespec' in <sys/time.h>
73798
73799         * m4/c-bs-a.m4: Remove uses of changequote altogether.
73800         Thanks to Akim for explaining.
73801
73802 2000-01-17  Paul Eggert  <eggert@twinsun.com>
73803
73804         * lib/nanosleep.c (nanosleep):
73805         Don't use SA_INTERRUPT to decide whether to call sigaction, as
73806         POSIX.1 doesn't require SA_INTERRUPT and some systems
73807         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
73808         it's been part of POSIX.1 since day 1 (in 1988).
73809
73810 2000-01-17  Jim Meyering  <meyering@lucent.com>
73811
73812         * lib/interlock: Remove unused file.  Reported by François Pinard.
73813
73814 2000-01-16  Paul Eggert  <eggert@twinsun.com>
73815
73816         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
73817         alert, backslash, formfeed, and vertical tab unnecessarily in
73818         shell quoting style.
73819
73820 2000-01-16  Jim Meyering  <meyering@lucent.com>
73821
73822         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
73823         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
73824         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
73825         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
73826
73827 2000-01-16  Jim Meyering  <meyering@lucent.com>
73828
73829         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
73830         because the latter didn't work.
73831
73832 2000-01-15  Jim Meyering  <meyering@lucent.com>
73833
73834         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
73835         (AC_REPLACE_FUNCS): Add memcpy and memset.
73836         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
73837         Add strpbrk.
73838         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
73839
73840 2000-01-12  Jim Meyering  <meyering@lucent.com>
73841
73842         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
73843         (jm_PREREQ): Use it.
73844         (jm_PREREQ_READUTMP): New macro.
73845         (jm_PREREQ): Use it.
73846
73847 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73848
73849         Quote multibyte characters correctly.
73850         * m4/c-bs-a.m4: New file.
73851         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
73852         (jm_PREREQ): Use it.
73853
73854 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73855
73856         * m4/uintmax_t.m4: Port to autoconf 2.13.
73857
73858 2000-01-08  Jim Meyering  <meyering@ascend.com>
73859
73860         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
73861         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
73862
73863 2000-01-04  Jim Meyering  <meyering@ascend.com>
73864
73865         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
73866         jm_STRUCT_DIRENT_D_TYPE.
73867         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
73868         jm_STRUCT_DIRENT_D_INO.
73869         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
73870         jm_STRUCT_UTIMBUF.
73871         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
73872         renamings.
73873         * m4/utime.m4: Likewise.
73874
73875         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
73876         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
73877
73878 2000-01-03  Paul Eggert  <eggert@twinsun.com>
73879
73880         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
73881         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
73882
73883 2000-01-02  Jim Meyering  <meyering@ascend.com>
73884
73885         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
73886         remember if this is necessary.
73887
73888 1999-12-26  Jim Meyering  <meyering@ascend.com>
73889
73890         * m4/jm-macros.m4: Use it here.
73891         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
73892
73893 1999-12-23  Jim Meyering  <meyering@ascend.com>
73894
73895         * m4/jm-macros.m4: Check for clock_gettime (moved from
73896         fileutils/configure.in)
73897         Check for gettimeofday.
73898
73899 1999-12-20  Jim Meyering  <meyering@ascend.com>
73900
73901         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
73902         autoconf-2.14a-1999-12-20.
73903
73904 1999-12-19  Jim Meyering  <meyering@ascend.com>
73905
73906         * m4/lstat-slash.m4: New file.
73907         * m4/jm-macros.m4: Use the new macro:
73908         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73909
73910 1999-12-07  Jim Meyering  <meyering@ascend.com>
73911
73912         * m4/perl.m4: Require that File::Compare be available, too.
73913         Too many systems seem to lack it.
73914
73915         * m4/strftime.m4: Add checks for most of the cpp macros tested in
73916         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
73917
73918 1999-11-18  Paul Eggert  <eggert@twinsun.com>
73919
73920         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
73921         problem with the QNX 4.25 shell, which doesn't propagate exit
73922         status of failed commands inside shell assignments.
73923
73924 1999-11-17  Jim Meyering  <meyering@ascend.com>
73925
73926         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
73927
73928 1999-11-07  Jim Meyering  <meyering@ascend.com>
73929
73930         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
73931
73932 1999-11-06  Jim Meyering  <meyering@ascend.com>
73933
73934         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
73935         * m4/jm-macros.m4 (jm_MACROS): Use it here.
73936
73937 1999-11-05  Jim Meyering  <meyering@ascend.com>
73938
73939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
73940         configure.in of textutils, fileutils, and sh-utils into this one
73941         (shared between those packages) file.
73942         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
73943         AC_STRUCT_ST_BLKSIZE.
73944
73945 1999-11-03  Jim Meyering  <meyering@ascend.com>
73946
73947         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
73948         of AC_CHECK_TYPE checks includes unistd.h.
73949         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
73950         Suggestion from Akim Demaille.
73951
73952 1999-10-30  Jim Meyering  <meyering@ascend.com>
73953
73954         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
73955         m4-quoted string.
73956         * m4/ls-mntd-fs.m4: Likewise.
73957         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
73958         * m4/jm-winsz1.m4: Likewise.
73959
73960         * m4/const.m4: Remove file, since the fix made it into the experimental
73961         version of autoconf.
73962         * m4/mktime.m4: Likewise.
73963
73964         * m4/check-type.m4: Remove file, now that the latest version of
73965         AC_CHECK_TYPE takes a third arg to specify additional #includes.
73966
73967         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
73968         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
73969         AC_CHECK_TYPE.
73970
73971 1999-10-04  Jim Meyering  <meyering@ascend.com>
73972
73973         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
73974
73975 1999-09-22  Paul Eggert  <eggert@twinsun.com>
73976
73977         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
73978         2.95.1 bug with HP-UX 10.20.
73979
73980 1999-09-17  Jim Meyering  <meyering@ascend.com>
73981
73982         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
73983         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
73984         due to missing strdup (against sh-utils-2.0).
73985
73986 1999-08-29  Jim Meyering  <meyering@ascend.com>
73987
73988         * m4/jm-macros.m4: Require jm_BISON.
73989         * m4/bison.m4: New file.
73990
73991 1999-08-17  Paul Eggert  <eggert@twinsun.com>
73992
73993         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
73994         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
73995
73996 1999-08-05  Jim Meyering  <meyering@ascend.com>
73997
73998         * m4/getline.m4: Rename test file from conftestdata to conftest.data
73999         to avoid conflicts with `conftest' on 8+3 filesystems.
74000         Suggestion from Eli Zaretskii.
74001
74002 1999-08-04  Jim Meyering  <meyering@ascend.com>
74003
74004         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74005         fileutils and sh-utils (textutils's getline test was inadequate).
74006         (AM_FUNC_GETLINE): Run this test.
74007         (AC_CHECK_FUNCS): Check for getdelim.
74008         Reported by Bob Proulx.
74009
74010 1999-08-02  Jim Meyering  <meyering@ascend.com>
74011
74012         * m4/jm-macros.m4: Add a comment.
74013
74014 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74015
74016         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74017         <inttypes.h> defines strtoumax as a macro (and not as a
74018         function).
74019
74020 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74021
74022         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74023         that we can shift, multiply and divide unsigned long long
74024         values; Ultrix cc can't do it.
74025
74026 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74027
74028         * m4/mktime.m4: New file, which is a preview of what should appear
74029         in the next public autoconf release.
74030
74031 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74032
74033         * m4/lfs.m4: Remove this file.
74034         * m4/largefile.m4: New file.  It contains the old contents of
74035         lfs.m4, except that all names with prefix AC_LFS have been
74036         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74037         compatible with future autoconf versions.  Also, some minor m4
74038         quoting problems have been fixed.
74039
74040 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74041
74042         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74043         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74044         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74045         and simplify the shell code.
74046
74047 1999-08-01  Jim Meyering  <meyering@ascend.com>
74048
74049         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74050         m4.
74051
74052 1999-07-20  Jim Meyering  <meyering@ascend.com>
74053
74054         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74055
74056 1999-07-15  Jim Meyering  <meyering@ascend.com>
74057
74058         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74059
74060 1999-05-22  Jim Meyering  <meyering@ascend.com>
74061
74062         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74063
74064 1999-05-20  Jim Meyering  <meyering@ascend.com>
74065
74066         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74067         Add a colon after each `then' in case $4 is empty.
74068
74069 1999-05-16  Jim Meyering  <meyering@ascend.com>
74070
74071         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74072
74073 1999-05-10  Jim Meyering  <meyering@ascend.com>
74074
74075         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74076
74077         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74078         AC_FUNC_MKTIME.
74079
74080 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74081
74082         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74083
74084 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74085
74086         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74087         not CPPFLAGS, so that linking works correctly in IRIX.
74088
74089 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74090
74091         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74092
74093 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74094
74095         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74096         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74097         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74098         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74099         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74100
74101         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74102
74103 1999-04-20  Jim Meyering  <meyering@ascend.com>
74104
74105         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74106         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74107         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74108
74109 1999-04-18  Jim Meyering  <meyering@ascend.com>
74110
74111         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74112         * m4/jm-macros.m4: Use it.
74113
74114 1999-04-06  Jim Meyering  <meyering@ascend.com>
74115
74116         * m4/strftime.m4: Remove test for %f.
74117
74118 1999-03-29  Jim Meyering  <meyering@ascend.com>
74119
74120         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74121         superset of the AC_TYPE_* checks in the textutils, fileutils,
74122         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74123         AC_TYPE_PID_T.
74124
74125 1999-03-28  Jim Meyering  <meyering@ascend.com>
74126
74127         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74128         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74129         replaced e.g., in the *.sh files of the sh-utils.
74130
74131 1999-03-20  Jim Meyering  <meyering@ascend.com>
74132
74133         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74134         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74135         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74136
74137 1999-03-19  Jim Meyering  <meyering@ascend.com>
74138
74139         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74140
74141 1999-03-12  Jim Meyering  <meyering@ascend.com>
74142
74143         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74144
74145 1999-03-07  Jim Meyering  <meyering@ascend.com>
74146
74147         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74148         declared.
74149
74150 1999-02-17  Jim Meyering  <meyering@ascend.com>
74151
74152         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74153         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74154
74155 1999-02-07  Jim Meyering  <meyering@ascend.com>
74156
74157         * m4/group-member.m4: New file -- extracted from sh-utils'
74158         configure.in.
74159
74160         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74161         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74162
74163 1999-02-06  Jim Meyering  <meyering@ascend.com>
74164
74165         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74166         * m4/fnmatch.m4: Likewise.
74167         * m4/getgroups.m4: Likewise.
74168         * m4/lstat.m4: Likewise.
74169         * m4/malloc.m4: Likewise.
74170         * m4/putenv.m4: Likewise.
74171         * m4/realloc.m4: Likewise.
74172         * m4/regex.m4: Likewise.
74173         * m4/stat.m4: Likewise.
74174         * m4/strftime.m4: Likewise.
74175         Suggestion from Alain Magloire.
74176
74177         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74178         * m4/fnmatch.m4: Likewise.
74179         * m4/getgroups.m4: Likewise.
74180         * m4/getline.m4: Likewise.
74181         * m4/lstat.m4: Likewise.
74182         * m4/malloc.m4: Likewise.
74183         * m4/memcmp.m4: Likewise.
74184         * m4/putenv.m4: Likewise.
74185         * m4/realloc.m4: Likewise.
74186         * m4/regex.m4: Likewise.
74187         * m4/stat.m4: Likewise.
74188         * m4/strftime.m4: Likewise.
74189         Suggestion from Alain Magloire.
74190
74191         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74192         an argument.
74193
74194         * m4/regex.m4: Add a run-time Test for proper operation of
74195         re_compile_pattern.
74196
74197 1999-01-31  Jim Meyering  <meyering@ascend.com>
74198
74199         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74200
74201 1999-01-30  Jim Meyering  <meyering@ascend.com>
74202
74203         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74204
74205         * m4/jm-mktime.m4: Make this a wrapper around the official
74206         AM_FUNC_MKTIME rather than my private copy, now that the official one
74207         is up to date.
74208         * m4/mktime.m4: Remove file.
74209
74210         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74211         * m4/uptime.m4: Likewise.
74212         * m4/uintmax_t.m4: Likewise.
74213
74214 1999-01-28  Jim Meyering  <meyering@ascend.com>
74215
74216         * m4/jm-macros.m4: Use jm_AFS.
74217         * m4/afs.m4: New file (from fileutils' configure.in).
74218
74219         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74220         * m4/chown.m4: Likewise.
74221         * m4/d-ino.m4: Likewise.
74222         * m4/d-type.m4: Likewise.
74223         * m4/fnmatch.m4: Likewise.
74224         * m4/getgroups.m4: Likewise.
74225         * m4/gettext.m4: Likewise.
74226         * m4/jm-mktime.m4: Likewise.
74227         * m4/jm-winsz2.m4: Likewise.
74228         * m4/lcmessage.m4: Likewise.
74229         * m4/ls-mntd-fs.m4: Likewise.
74230         * m4/malloc.m4: Likewise.
74231         * m4/memcmp.m4: Likewise.
74232         * m4/putenv.m4: Likewise.
74233         * m4/realloc.m4: Likewise.
74234         * m4/st_mtim.m4: Likewise.
74235         * m4/strftime.m4: Likewise.
74236
74237 1999-01-16  Jim Meyering  <meyering@ascend.com>
74238
74239         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74240         (ARGMATCH_DIE_DECL): Define.
74241
74242 1999-01-12  Jim Meyering  <meyering@ascend.com>
74243
74244         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74245         Reported by Lars Hecking.
74246
74247 1999-01-10  Jim Meyering  <meyering@ascend.com>
74248
74249         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74250         gross kludge.
74251         * m4/inttypes_h.m4: Likewise.
74252         * m4/lstat.m4: Likewise.
74253         * m4/malloc.m4: Likewise.
74254         * m4/readdir.m4: Likewise.
74255         * m4/realloc.m4: Likewise.
74256         * m4/st_dm_mode.m4: Likewise.
74257         * m4/stat.m4: Likewise.
74258         * m4/utimbuf.m4: Likewise.
74259         * m4/utimes.m4: Likewise.
74260
74261         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74262         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74263         comments in config.h.in are meaningful.
74264
74265         * m4/jm-macros.m4: Require autoconf-2.13 here.
74266
74267         * m4/regex.m4: By default, don't use the included regex.c on systems
74268         with glibc 2.  Suggestion from Uli Drepper.
74269
74270 1999-01-02  Jim Meyering  <meyering@ascend.com>
74271
74272         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74273
74274 1998-12-18  Jim Meyering  <meyering@ascend.com>
74275
74276         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74277         Based on a suggestion from Lars Hecking.
74278
74279 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74280
74281         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74282
74283 1998-11-16  Jim Meyering  <meyering@ascend.com>
74284
74285         * m4/lfs.m4: Double-quote the `uname...` expression.
74286
74287 1998-11-14  Jim Meyering  <meyering@ascend.com>
74288
74289         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74290         * m4/stat.m4: Likewise.
74291
74292 1998-11-03  Jim Meyering  <meyering@ascend.com>
74293
74294         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74295         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74296
74297 1998-10-18  Jim Meyering  <meyering@ascend.com>
74298
74299         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74300
74301 1998-10-17  Jim Meyering  <meyering@ascend.com>
74302
74303         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74304         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74305         calls for those previously hard-coded headers.  Instead, take a new
74306         parameter.
74307         (jm_CHECK_DECLARATIONS): Reflect interface change.
74308         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74309         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74310
74311         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74312
74313 1998-10-14  Jim Meyering  <meyering@ascend.com>
74314
74315         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74316         instead of "TZ=America/Vancouver".  From Paul Eggert.
74317
74318 1998-10-11  Jim Meyering  <meyering@ascend.com>
74319
74320         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74321         This adds a test for a recently added compatibility fix for mktime.c.
74322         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74323
74324 1998-09-27  Jim Meyering  <meyering@ascend.com>
74325
74326         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74327
74328         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74329         ../configure.in, including a change from Gordon Matzigkeit to allow
74330         cross-compiling for the Hurd.
74331
74332         * m4/glibc.m4: New file/macro to test for the GNU C Library
74333         versions 1 and 2.  From Gordon Matzigkeit.
74334         Indent.
74335
74336 1998-09-21  Jim Meyering  <meyering@ascend.com>
74337
74338         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74339
74340 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74341
74342         Port nanosecond-resolution times to UnixWare 2.1.2 and
74343         pedantic Solaris 2.6.
74344
74345         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74346         AC_STRUCT_ST_MTIM.
74347         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74348         Generate name of ns member, instead of just 1 or undef.
74349         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74350
74351 1998-08-15  Jim Meyering  <meyering@ascend.com>
74352
74353         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74354         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74355         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74356         instead of jm_TYPE_SSIZE_T.
74357
74358 1998-08-12  Jim Meyering  <meyering@ascend.com>
74359
74360         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74361
74362 1998-08-02  Jim Meyering  <meyering@ascend.com>
74363
74364         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74365         in acconfig.h manually.
74366
74367 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74368
74369         * m4/st_mtim.m4: New file.
74370
74371 1998-07-28  Jim Meyering  <meyering@ascend.com>
74372
74373         * m4/utimes.m4: Undef stat.
74374
74375 1998-07-25  Jim Meyering  <meyering@ascend.com>
74376
74377         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74378         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74379
74380 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74381
74382         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74383         uid and gid actually remain unchanged.
74384
74385 1998-07-07  Jim Meyering  <meyering@ascend.com>
74386
74387         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74388
74389 1998-07-04  Jim Meyering  <meyering@ascend.com>
74390
74391         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74392         to prove that this macro can be used in packages without regex.c.
74393
74394 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74395
74396         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74397         is to be used.
74398
74399 1998-07-03  Jim Meyering  <meyering@ascend.com>
74400
74401         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74402
74403         * m4/gettext.m4: New file -- from gettext-0.10.35.
74404         * m4/lcmessage.m4: Likewise.
74405         * m4/progtest.m4: Likewise.
74406
74407         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74408         * m4/jm-macros.m4: Require the new macro.
74409
74410 1998-06-29  Jim Meyering  <meyering@ascend.com>
74411
74412         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74413         for the definition of NGROUPS (used in a system header included
74414         by sys/mount.h).
74415
74416 1998-06-28  Jim Meyering  <meyering@ascend.com>
74417
74418         * m4/ls-mntd-fs.m4: New file.
74419         * m4/fstypename.m4: New file.
74420
74421         * m4/jm-macros.m4: Require the new macro.
74422         * m4/jm-glibc-io.m4: New file.
74423
74424 1998-05-19  Jim Meyering  <meyering@ascend.com>
74425
74426         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74427         * m4/lchown.m4: New file.
74428
74429         * m4/Makefile.am.in: New file.
74430         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74431
74432 1998-05-14  Jim Meyering  <meyering@ascend.com>
74433
74434         * m4/Makefile.am (EXTRA_DIST): Add them.
74435         * m4/jm-macros.m4: New file.
74436         * m4/utimbuf.m4: New file.
74437
74438 1998-05-12  Jim Meyering  <meyering@ascend.com>
74439
74440         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74441
74442 1998-05-11  Jim Meyering  <meyering@ascend.com>
74443
74444         * m4/isc-posix.m4: New file.
74445
74446 1998-05-10  Jim Meyering  <meyering@ascend.com>
74447
74448         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74449
74450 1998-05-09  Jim Meyering  <meyering@ascend.com>
74451
74452         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74453         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74454         with automake.
74455
74456         * m4/ssize_t.m4: New file.
74457         * m4/mktime.m4: Remove file -- the new automake has this now.
74458
74459 1998-04-26  Jim Meyering  <meyering@ascend.com>
74460
74461         * m4/assert.m4: New file.
74462         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74463
74464 1998-04-05  Jim Meyering  <meyering@ascend.com>
74465
74466         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74467         (jm_PREREQ): Use it here.
74468
74469 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74470
74471         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74472         in acconfig.h.
74473
74474 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74475
74476         * m4/prereq.m4: New file.
74477         * m4/error.m4: New file.
74478         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
74479
74480 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
74481
74482         * m4/getline.m4: Don't set am_cv_func_working_getline before the
74483         cache-check for the same variable -- that defeated the purpose of
74484         the test; the test program was never run.  This was a problem only
74485         on systems with losing getline functions -- HP-UX 10.20 is one.
74486         Reported by Bjorn Helgaas.
74487
74488 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
74489
74490         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
74491
74492 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
74493
74494         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
74495
74496         * m4/const.m4: New file.  Use an initializer in this declaration
74497         typedef int charset[2]; const charset x;
74498         Reported by Bob Glickstein.
74499
74500 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
74501
74502         * m4/chown.m4: Fix reversed types on -1 args to chown.
74503         From Kaveh Ghazi.
74504
74505 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74506
74507         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74508         Add lseek and memchr.
74509
74510         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74511         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74512         have a 20-character limit on names.
74513
74514 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74515
74516         * m4/inttypes_h.m4: New file.
74517         * m4/uintmax_t.m4: New file.
74518         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74519
74520
74521         -----
74522
74523         Local Variables:
74524         coding: utf-8
74525         End:
74526
74527         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74528
74529         Copying and distribution of this file, with or without
74530         modification, are permitted provided the copyright notice
74531         and this notice are preserved.